@jarllyng/nostromo 3.5.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/chunk-BX4VBLKZ.cjs +3 -0
  2. package/dist/chunk-BX4VBLKZ.cjs.map +1 -0
  3. package/dist/chunk-CT6LEOBW.js +3 -0
  4. package/dist/chunk-CT6LEOBW.js.map +1 -0
  5. package/dist/chunk-E44BBSLT.js +3 -0
  6. package/dist/chunk-E44BBSLT.js.map +1 -0
  7. package/dist/chunk-EZGTC7L3.js +3 -0
  8. package/dist/chunk-EZGTC7L3.js.map +1 -0
  9. package/dist/chunk-HCYZ3LZP.js +3 -0
  10. package/dist/chunk-HCYZ3LZP.js.map +1 -0
  11. package/dist/chunk-MQUHAWJ2.cjs +3 -0
  12. package/dist/chunk-MQUHAWJ2.cjs.map +1 -0
  13. package/dist/chunk-PZLBMQGI.cjs +3 -0
  14. package/dist/chunk-PZLBMQGI.cjs.map +1 -0
  15. package/dist/chunk-R4L5BZYI.cjs +3 -0
  16. package/dist/chunk-R4L5BZYI.cjs.map +1 -0
  17. package/dist/chunk-SZ34F6OZ.cjs +3 -0
  18. package/dist/chunk-SZ34F6OZ.cjs.map +1 -0
  19. package/dist/chunk-YCVOS3MT.js +3 -0
  20. package/dist/chunk-YCVOS3MT.js.map +1 -0
  21. package/dist/components/core/alert-dialog.cjs +3 -0
  22. package/dist/components/core/alert-dialog.cjs.map +1 -0
  23. package/dist/components/core/alert-dialog.d.cts +50 -0
  24. package/dist/components/core/alert-dialog.d.ts +50 -0
  25. package/dist/components/core/alert-dialog.js +3 -0
  26. package/dist/components/core/alert-dialog.js.map +1 -0
  27. package/dist/components/core/aspect-ratio.cjs +3 -0
  28. package/dist/components/core/aspect-ratio.cjs.map +1 -0
  29. package/dist/components/core/aspect-ratio.d.cts +24 -0
  30. package/dist/components/core/aspect-ratio.d.ts +24 -0
  31. package/dist/components/core/aspect-ratio.js +3 -0
  32. package/dist/components/core/aspect-ratio.js.map +1 -0
  33. package/dist/components/core/dropdown-menu.cjs +3 -0
  34. package/dist/components/core/dropdown-menu.cjs.map +1 -0
  35. package/dist/components/core/dropdown-menu.d.cts +43 -0
  36. package/dist/components/core/dropdown-menu.d.ts +43 -0
  37. package/dist/components/core/dropdown-menu.js +3 -0
  38. package/dist/components/core/dropdown-menu.js.map +1 -0
  39. package/dist/components/core/sheet.cjs +3 -0
  40. package/dist/components/core/sheet.cjs.map +1 -0
  41. package/dist/components/core/sheet.d.cts +55 -0
  42. package/dist/components/core/sheet.d.ts +55 -0
  43. package/dist/components/core/sheet.js +3 -0
  44. package/dist/components/core/sheet.js.map +1 -0
  45. package/dist/components/core/toggle.cjs +3 -0
  46. package/dist/components/core/toggle.cjs.map +1 -0
  47. package/dist/components/core/toggle.d.cts +33 -0
  48. package/dist/components/core/toggle.d.ts +33 -0
  49. package/dist/components/core/toggle.js +3 -0
  50. package/dist/components/core/toggle.js.map +1 -0
  51. package/dist/index.cjs +1 -1
  52. package/dist/index.cjs.map +1 -1
  53. package/dist/index.d.cts +10 -0
  54. package/dist/index.d.ts +10 -0
  55. package/dist/index.js +1 -1
  56. package/dist/index.js.map +1 -1
  57. package/package.json +49 -1
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ 'use strict';var 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 R=e__namespace.Root,b=e__namespace.Trigger,y=e__namespace.Group,g=e__namespace.Sub,h=e__namespace.RadioGroup,m="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",d="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",s=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(m,t),...r})));s.displayName=e__namespace.Content.displayName;var u=o__namespace.forwardRef(({className:t,destructive:n,inset:r,...i},p)=>o__namespace.createElement(e__namespace.Item,{ref:p,className:chunkITRGJNWL_cjs.a(d,r&&"pl-8",n&&"text-destructive focus:bg-destructive/10 focus:text-destructive",t),...i}));u.displayName=e__namespace.Item.displayName;var c=o__namespace.forwardRef(({className:t,children:n,...r},i)=>o__namespace.createElement(e__namespace.CheckboxItem,{ref:i,className:chunkITRGJNWL_cjs.a(d,"pl-8",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));c.displayName=e__namespace.CheckboxItem.displayName;var l=o__namespace.forwardRef(({className:t,children:n,...r},i)=>o__namespace.createElement(e__namespace.RadioItem,{ref:i,className:chunkITRGJNWL_cjs.a(d,"pl-8",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));l.displayName=e__namespace.RadioItem.displayName;var f=o__namespace.forwardRef(({className:t,inset:n,...r},i)=>o__namespace.createElement(e__namespace.Label,{ref:i,className:chunkITRGJNWL_cjs.a("px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground",n&&"pl-8",t),...r}));f.displayName=e__namespace.Label.displayName;var w=o__namespace.forwardRef(({className:t,...n},r)=>o__namespace.createElement(e__namespace.Separator,{ref:r,className:chunkITRGJNWL_cjs.a("-mx-1 my-1 h-px bg-border",t),...n}));w.displayName=e__namespace.Separator.displayName;function M({className:t,...n}){return o__namespace.createElement("span",{className:chunkITRGJNWL_cjs.a("ml-auto text-xs tracking-widest text-muted-foreground",t),...n})}M.displayName="DropdownMenuShortcut";var D=o__namespace.forwardRef(({className:t,inset:n,children:r,...i},p)=>o__namespace.createElement(e__namespace.SubTrigger,{ref:p,className:chunkITRGJNWL_cjs.a(d,"data-[state=open]:bg-muted",n&&"pl-8",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"}))));D.displayName=e__namespace.SubTrigger.displayName;var P=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(m,t),...n})));P.displayName=e__namespace.SubContent.displayName;exports.a=R;exports.b=b;exports.c=y;exports.d=g;exports.e=h;exports.f=s;exports.g=u;exports.h=c;exports.i=l;exports.j=f;exports.k=w;exports.l=M;exports.m=D;exports.n=P;//# sourceMappingURL=chunk-BX4VBLKZ.cjs.map
3
+ //# sourceMappingURL=chunk-BX4VBLKZ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/core/dropdown-menu.tsx"],"names":["DropdownMenu","e","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","menuSurface","menuItem","DropdownMenuContent","o","className","sideOffset","props","ref","cn","DropdownMenuItem","destructive","inset","DropdownMenuCheckboxItem","children","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSubTrigger","DropdownMenuSubContent"],"mappings":"0hBAeA,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,EACJ,gcAAA,CAOIC,CAAAA,CACJ,gOAIIC,CAAAA,CAA4BC,YAAA,CAAA,UAAA,CAGhC,CAAC,CAAE,SAAA,CAAAC,EAAW,UAAA,CAAAC,CAAAA,CAAa,EAAG,GAAGC,CAAM,EAAGC,CAAAA,GAI1CJ,YAAA,CAAA,aAAA,CAAuBR,oBAAtB,IAAA,CACCQ,YAAA,CAAA,aAAA,CAAuBR,qBAAtB,CACC,GAAA,CAAKY,EACL,UAAA,CAAYF,CAAAA,CACZ,UAAWG,mBAAAA,CAAGR,CAAAA,CAAaI,CAAS,CAAA,CACnC,GAAGE,EACN,CACF,CACD,EACDJ,CAAAA,CAAoB,WAAA,CAAoCP,qBAAQ,WAAA,CAWhE,IAAMc,EAAyBN,YAAA,CAAA,UAAA,CAG7B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,YAAAM,CAAAA,CAAa,KAAA,CAAAC,EAAO,GAAGL,CAAM,EAAGC,CAAAA,GAC9CJ,YAAA,CAAA,aAAA,CAAuBR,kBAAtB,CACC,GAAA,CAAKY,EACL,SAAA,CAAWC,mBAAAA,CACTP,EACAU,CAAAA,E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AAGC,IAC3CJ,YAAA,CAAA,aAAA,CAAuBR,YAAA,CAAA,UAAA,CAAtB,CACC,GAAA,CAAKY,CAAAA,CACL,UAAWC,mBAAAA,CACTP,CAAAA,CACA,6BACAU,CAAAA,EAAS,MAAA,CACTP,CACF,CAAA,CACC,GAAGE,GAEHO,CAAAA,CACDV,YAAA,CAAA,aAAA,CAAC,OACC,OAAA,CAAQ,WAAA,CACR,KAAK,MAAA,CACL,SAAA,CAAU,sBACV,aAAA,CAAY,MAAA,CAAA,CAEZA,YAAA,CAAA,aAAA,CAAC,MAAA,CAAA,CACC,CAAA,CAAE,cAAA,CACF,OAAO,cAAA,CACP,WAAA,CAAY,IACZ,aAAA,CAAc,OAAA,CACd,eAAe,OAAA,CACjB,CACF,CACF,CACD,EACDe,EAAuB,WAAA,CACCvB,YAAA,CAAA,UAAA,CAAW,YAEnC,IAAMwB,CAAAA,CAA+BhB,wBAGnC,CAAC,CAAE,UAAAC,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,GAC1BJ,2BAAuBR,YAAA,CAAA,MAAA,CAAtB,IAAA,CACCQ,2BAAuBR,YAAA,CAAA,UAAA,CAAtB,CACC,IAAKY,CAAAA,CACL,SAAA,CAAWC,oBAAGR,CAAAA,CAAaI,CAAS,EACnC,GAAGE,CAAAA,CACN,CACF,CACD,EACDa,CAAAA,CAAuB,WAAA,CACCxB,YAAA,CAAA,UAAA,CAAW,WAAA","file":"chunk-BX4VBLKZ.cjs","sourcesContent":["import * as React from \"react\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cn } from \"../../lib/utils\";\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 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\nconst 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\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 && \"pl-8\",\n destructive &&\n \"text-destructive focus:bg-destructive/10 focus:text-destructive\",\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, \"pl-8\", 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, \"pl-8\", 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(\n \"px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground\",\n inset && \"pl-8\",\n className,\n )}\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(\"-mx-1 my-1 h-px bg-border\", 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 (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className,\n )}\n {...props}\n />\n );\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 && \"pl-8\",\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}from'./chunk-AVTJE2O2.js';import {a}from'./chunk-AC2JBXHQ.js';import*as t from'react';import*as e from'@radix-ui/react-alert-dialog';var P=e.Root,y=e.Trigger,s=e.Portal,n=t.forwardRef(({className:i,...a$1},o)=>t.createElement(e.Overlay,{ref:o,className:a("fixed inset-0 z-50 bg-neutral-950/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",i),...a$1}));n.displayName=e.Overlay.displayName;var c=t.forwardRef(({className:i,...a$1},o)=>t.createElement(s,null,t.createElement(n,null),t.createElement(e.Content,{ref:o,className:a("fixed left-1/2 top-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-background p-6 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",i),...a$1})));c.displayName=e.Content.displayName;function f({className:i,...a$1}){return t.createElement("div",{className:a("flex flex-col gap-2",i),...a$1})}f.displayName="AlertDialogHeader";function d({className:i,...a$1}){return t.createElement("div",{className:a("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",i),...a$1})}d.displayName="AlertDialogFooter";var p=t.forwardRef(({className:i,...a$1},o)=>t.createElement(e.Title,{ref:o,className:a("text-lg font-semibold text-foreground",i),...a$1}));p.displayName=e.Title.displayName;var g=t.forwardRef(({className:i,...a$1},o)=>t.createElement(e.Description,{ref:o,className:a("text-sm text-muted-foreground",i),...a$1}));g.displayName=e.Description.displayName;var A=t.forwardRef(({className:i,variant:a$2="destructive",...o},m)=>t.createElement(e.Action,{ref:m,className:a(a$1({variant:a$2}),i),...o}));A.displayName=e.Action.displayName;var D=t.forwardRef(({className:i,...a$2},o)=>t.createElement(e.Cancel,{ref:o,className:a(a$1({variant:"outline"}),i),...a$2}));D.displayName=e.Cancel.displayName;export{P as a,y as b,s as c,n as d,c as e,f,d as g,p as h,g as i,A as j,D as k};//# sourceMappingURL=chunk-CT6LEOBW.js.map
3
+ //# sourceMappingURL=chunk-CT6LEOBW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/core/alert-dialog.tsx"],"names":["AlertDialog","AlertDialogTrigger","AlertDialogPortal","AlertDialogOverlay","className","props","ref","cn","AlertDialogContent","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","Alert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AAKA,CAAAA,CACL,SAAA,CAAWC,CAAAA,CAAGQ,GAAAA,CAAe,CAAE,OAAA,CAAAD,GAAQ,CAAC,CAAA,CAAGV,CAAS,CAAA,CACnD,GAAGC,CAAAA,CACN,CACD,EACDQ,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA,CAE5D,IAAMG,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAG9B,CAAC,CAAE,SAAA,CAAAZ,CAAAA,CAAW,GAAGC,GAAM,CAAA,CAAGC,CAAAA,GAC1B,CAAA,CAAA,aAAA,CAAsB,CAAA,CAAA,MAAA,CAArB,CACC,GAAA,CAAKA,CAAAA,CACL,SAAA,CAAWC,CAAAA,CAAGQ,GAAAA,CAAe,CAAE,OAAA,CAAS,SAAU,CAAC,CAAA,CAAGX,CAAS,CAAA,CAC9D,GAAGC,GAAAA,CACN,CACD,EACDW,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA","file":"chunk-CT6LEOBW.js","sourcesContent":["import * as React from \"react\";\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport { cn } from \"../../lib/utils\";\nimport { buttonVariants } from \"./button\";\n\n/**\n * A modal that interrupts to confirm something consequential: delete, revoke,\n * overwrite.\n *\n * Not a variant of `Dialog`, and not a styling choice. Radix enforces three\n * differences, all verified rather than assumed:\n *\n * - `role=\"alertdialog\"`, so it is announced as one\n * - clicking outside does not dismiss it, so a confirmation cannot be lost by\n * missing the button\n * - focus starts on Cancel, not on the action, so a reflexive Enter cancels\n * rather than deletes\n *\n * Escape *does* close it. That is deliberate on Radix's part and correct: a\n * modal a keyboard user cannot leave is a trap, and the APG asks every dialog to\n * be dismissible that way. Cancelling is the safe outcome here, so nothing is\n * lost by it.\n *\n * Reach for `Dialog` when the user opened it on purpose and can walk away, and\n * for this when the app is asking a question it needs answered.\n */\n\nconst AlertDialog = AlertDialogPrimitive.Root;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n ref={ref}\n className={cn(\n \"fixed inset-0 z-50 bg-neutral-950/50 data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n));\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed left-1/2 top-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 \" +\n \"rounded-xl border border-border bg-background p-6 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 className,\n )}\n {...props}\n />\n </AlertDialogPortal>\n));\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"flex flex-col gap-2\", className)} {...props} />;\n}\nAlertDialogHeader.displayName = \"AlertDialogHeader\";\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div\n className={cn(\n \"mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className,\n )}\n {...props}\n />\n );\n}\nAlertDialogFooter.displayName = \"AlertDialogFooter\";\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold text-foreground\", className)}\n {...props}\n />\n));\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName;\n\nexport interface AlertDialogActionProps extends React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Action\n> {\n /**\n * Most alert dialogs confirm something destructive, so this defaults to the\n * destructive button rather than leaving every call site to remember.\n */\n variant?: \"default\" | \"destructive\";\n}\n\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n AlertDialogActionProps\n>(({ className, variant = \"destructive\", ...props }, ref) => (\n <AlertDialogPrimitive.Action\n ref={ref}\n className={cn(buttonVariants({ variant }), className)}\n {...props}\n />\n));\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(buttonVariants({ variant: \"outline\" }), className)}\n {...props}\n />\n));\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import {a}from'./chunk-AC2JBXHQ.js';import*as o from'react';import*as e from'@radix-ui/react-dropdown-menu';var R=e.Root,b=e.Trigger,y=e.Group,g=e.Sub,h=e.RadioGroup,m="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",d="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",s=o.forwardRef(({className:t,sideOffset:n=6,...r},i)=>o.createElement(e.Portal,null,o.createElement(e.Content,{ref:i,sideOffset:n,className:a(m,t),...r})));s.displayName=e.Content.displayName;var u=o.forwardRef(({className:t,destructive:n,inset:r,...i},p)=>o.createElement(e.Item,{ref:p,className:a(d,r&&"pl-8",n&&"text-destructive focus:bg-destructive/10 focus:text-destructive",t),...i}));u.displayName=e.Item.displayName;var c=o.forwardRef(({className:t,children:n,...r},i)=>o.createElement(e.CheckboxItem,{ref:i,className:a(d,"pl-8",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));c.displayName=e.CheckboxItem.displayName;var l=o.forwardRef(({className:t,children:n,...r},i)=>o.createElement(e.RadioItem,{ref:i,className:a(d,"pl-8",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));l.displayName=e.RadioItem.displayName;var f=o.forwardRef(({className:t,inset:n,...r},i)=>o.createElement(e.Label,{ref:i,className:a("px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground",n&&"pl-8",t),...r}));f.displayName=e.Label.displayName;var w=o.forwardRef(({className:t,...n},r)=>o.createElement(e.Separator,{ref:r,className:a("-mx-1 my-1 h-px bg-border",t),...n}));w.displayName=e.Separator.displayName;function M({className:t,...n}){return o.createElement("span",{className:a("ml-auto text-xs tracking-widest text-muted-foreground",t),...n})}M.displayName="DropdownMenuShortcut";var D=o.forwardRef(({className:t,inset:n,children:r,...i},p)=>o.createElement(e.SubTrigger,{ref:p,className:a(d,"data-[state=open]:bg-muted",n&&"pl-8",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"}))));D.displayName=e.SubTrigger.displayName;var P=o.forwardRef(({className:t,...n},r)=>o.createElement(e.Portal,null,o.createElement(e.SubContent,{ref:r,className:a(m,t),...n})));P.displayName=e.SubContent.displayName;export{R as a,b,y as c,g as d,h as e,s as f,u as g,c as h,l as i,f as j,w as k,M as l,D as m,P as n};//# sourceMappingURL=chunk-E44BBSLT.js.map
3
+ //# sourceMappingURL=chunk-E44BBSLT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/core/dropdown-menu.tsx"],"names":["DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","menuSurface","menuItem","DropdownMenuContent","className","sideOffset","props","ref","cn","DropdownMenuItem","destructive","inset","DropdownMenuCheckboxItem","children","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSubTrigger","DropdownMenuSubContent"],"mappings":"4GAeA,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,EACJ,gcAAA,CAOIC,CAAAA,CACJ,gOAIIC,CAAAA,CAA4B,CAAA,CAAA,UAAA,CAGhC,CAAC,CAAE,SAAA,CAAAC,EAAW,UAAA,CAAAC,CAAAA,CAAa,EAAG,GAAGC,CAAM,EAAGC,CAAAA,GAI1C,CAAA,CAAA,aAAA,CAAuB,SAAtB,IAAA,CACC,CAAA,CAAA,aAAA,CAAuB,UAAtB,CACC,GAAA,CAAKA,EACL,UAAA,CAAYF,CAAAA,CACZ,UAAWG,CAAAA,CAAGP,CAAAA,CAAaG,CAAS,CAAA,CACnC,GAAGE,EACN,CACF,CACD,EACDH,CAAAA,CAAoB,WAAA,CAAoC,UAAQ,WAAA,CAWhE,IAAMM,EAAyB,CAAA,CAAA,UAAA,CAG7B,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,YAAAM,CAAAA,CAAa,KAAA,CAAAC,EAAO,GAAGL,CAAM,EAAGC,CAAAA,GAC9C,CAAA,CAAA,aAAA,CAAuB,OAAtB,CACC,GAAA,CAAKA,EACL,SAAA,CAAWC,CAAAA,CACTN,EACAS,CAAAA,EAAS,MAAA,CACTD,GACE,iEAAA,CACFN,CACF,EACC,GAAGE,CAAAA,CACN,CACD,EACDG,CAAAA,CAAiB,WAAA,CAAoC,CAAA,CAAA,IAAA,CAAK,WAAA,CAE1D,IAAMG,EAAiC,CAAA,CAAA,UAAA,CAMrC,CAAC,CAAE,SAAA,CAAAR,CAAAA,CAA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AAU,sBACV,aAAA,CAAY,MAAA,CAAA,CAEZ,CAAA,CAAA,aAAA,CAAC,MAAA,CAAA,CACC,CAAA,CAAE,cAAA,CACF,OAAO,cAAA,CACP,WAAA,CAAY,IACZ,aAAA,CAAc,OAAA,CACd,eAAe,OAAA,CACjB,CACF,CACF,CACD,EACDK,EAAuB,WAAA,CACC,CAAA,CAAA,UAAA,CAAW,YAEnC,IAAMC,CAAAA,CAA+B,aAGnC,CAAC,CAAE,UAAAf,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,GAC1B,gBAAuB,CAAA,CAAA,MAAA,CAAtB,IAAA,CACC,gBAAuB,CAAA,CAAA,UAAA,CAAtB,CACC,IAAKA,CAAAA,CACL,SAAA,CAAWC,EAAGP,CAAAA,CAAaG,CAAS,EACnC,GAAGE,CAAAA,CACN,CACF,CACD,EACDa,CAAAA,CAAuB,WAAA,CACC,CAAA,CAAA,UAAA,CAAW,WAAA","file":"chunk-E44BBSLT.js","sourcesContent":["import * as React from \"react\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cn } from \"../../lib/utils\";\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 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\nconst 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\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 && \"pl-8\",\n destructive &&\n \"text-destructive focus:bg-destructive/10 focus:text-destructive\",\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, \"pl-8\", 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, \"pl-8\", 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(\n \"px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground\",\n inset && \"pl-8\",\n className,\n )}\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(\"-mx-1 my-1 h-px bg-border\", 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 (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className,\n )}\n {...props}\n />\n );\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 && \"pl-8\",\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}from'./chunk-AC2JBXHQ.js';import*as e from'react';import*as p from'@radix-ui/react-toggle';import*as o from'@radix-ui/react-toggle-group';import {cva}from'class-variance-authority';var l=cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-foreground 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 data-[state=on]:bg-muted data-[state=on]:text-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-border bg-transparent hover:bg-muted data-[state=on]:border-primary"},size:{sm:"h-8 min-w-8 px-2",default:"h-9 min-w-9 px-2.5",lg:"h-10 min-w-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),u=e.forwardRef(({className:t,variant:r,size:i,...a$1},g)=>e.createElement(p.Root,{ref:g,className:a(l({variant:r,size:i}),t),...a$1}));u.displayName=p.Root.displayName;var m=e.createContext({size:"default",variant:"default"}),d=e.forwardRef(({className:t,variant:r,size:i,children:a$1,...g},n)=>e.createElement(o.Root,{ref:n,className:a("flex items-center gap-1",t),...g},e.createElement(m.Provider,{value:{variant:r,size:i}},a$1)));d.displayName=o.Root.displayName;var c=e.forwardRef(({className:t,variant:r,size:i,...a$1},g)=>{let n=e.useContext(m);return e.createElement(o.Item,{ref:g,className:a(l({variant:r??n.variant,size:i??n.size}),t),...a$1})});c.displayName=o.Item.displayName;export{l as a,u as b,d as c,c as d};//# sourceMappingURL=chunk-EZGTC7L3.js.map
3
+ //# sourceMappingURL=chunk-EZGTC7L3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/core/toggle.tsx"],"names":["toggleVariants","cva","Toggle","className","variant","size","props","ref","cn","ToggleGroupContext","ToggleGroup","children","ToggleGroupItem","group"],"mappings":"+LAcA,IAAMA,EAAiBC,GAAAA,CACrB,wXAAA,CAKA,CACE,QAAA,CAAU,CACR,QAAS,CACP,OAAA,CAAS,iBACT,OAAA,CACE,mFACJ,EACA,IAAA,CAAM,CACJ,GAAI,kBAAA,CACJ,OAAA,CAAS,qBACT,EAAA,CAAI,oBACN,CACF,CAAA,CACA,eAAA,CAAiB,CACf,OAAA,CAAS,SAAA,CACT,KAAM,SACR,CACF,CACF,CAAA,CAOMC,CAAAA,CAAe,aAGnB,CAAC,CAAE,UAAAC,CAAAA,CAAW,OAAA,CAAAC,EAAS,IAAA,CAAAC,CAAAA,CAAM,GAAGC,GAAM,CAAA,CAAGC,IACzC,CAAA,CAAA,aAAA,CAAiB,CAAA,CAAA,IAAA,CAAhB,CACC,GAAA,CAAKA,CAAAA,CACL,UAAWC,CAAAA,CAAGR,CAAAA,CAAe,CAAE,OAAA,CAAAI,CAAAA,CAAS,KAAAC,CAAK,CAAC,EAAGF,CAAS,CAAA,CACzD,GAAGG,GAAAA,CACN,CACD,EACDJ,CAAAA,CAAO,WAAA,CAA8B,OAAK,WAAA,CAO1C,IAAMO,EAA2B,CAAA,CAAA,aAAA,CAE/B,CAAE,KAAM,SAAA,CAAW,OAAA,CAAS,SAAU,CAAC,CAAA,CAanCC,CAAAA,CAAoB,aAGxB,CAAC,CAAE,UAAAP,CAAAA,CAAW,OAAA,CAAAC,EAAS,IAAA,CAAAC,CAAAA,CAAM,SAAAM,GAAAA,CAAU,GAAGL,CAAM,CAAA,CAAGC,CAAAA,GACnD,gBAAsB,CAAA,CAAA,IAAA,CAArB,CACC,IAAKA,CAAAA,CACL,SAAA,CAAWC,EAAG,yBAAA,CAA2BL,CAAS,EACjD,GAAGG,CAAAA,CAAAA,CAEJ,gBAACG,CAAAA,CAAmB,QAAA,CAAnB,CAA4B,KAAA,CAAO,CAAE,QAAAL,CAAAA,CAAS,IAAA,CAAAC,CAAK,CAAA,CAAA,CACjDM,GACH,CACF,CACD,EACDD,EAAY,WAAA,CAAmC,CAAA,CAAA,IAAA,CAAK,WAAA,CAOpD,IAAME,CAAAA,CAAwB,CAAA,CAAA,UAAA,CAG5B,CAAC,CAAE,SAAA,CAAAT,EAAW,OAAA,CAAAC,CAAAA,CAAS,KAAAC,CAAAA,CAAM,GAAGC,GAAM,CAAA,CAAGC,CAAAA,GAAQ,CACjD,IAAMM,CAAAA,CAAc,aAAWJ,CAAkB,CAAA,CACjD,OACE,CAAA,CAAA,aAAA,CAAsB,CAAA,CAAA,IAAA,CAArB,CACC,GAAA,CAAKF,CAAAA,CACL,UAAWC,CAAAA,CACTR,CAAAA,CAAe,CACb,OAAA,CAASI,CAAAA,EAAWS,EAAM,OAAA,CAC1B,IAAA,CAAMR,GAAQQ,CAAAA,CAAM,IACtB,CAAC,CAAA,CACDV,CACF,EACC,GAAGG,GAAAA,CACN,CAEJ,CAAC,EACDM,CAAAA,CAAgB,WAAA,CAAmC,CAAA,CAAA,IAAA,CAAK,WAAA","file":"chunk-EZGTC7L3.js","sourcesContent":["import * as React from \"react\";\nimport * as TogglePrimitive from \"@radix-ui/react-toggle\";\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * A button that stays pressed: bold in a toolbar, a filter chip, a view mode.\n *\n * Distinct from `Switch`, which is a form control with an on and an off state\n * and belongs next to a label. A toggle is a button, announces itself as one\n * with `aria-pressed`, and lives in a toolbar rather than a form.\n */\n\nconst toggleVariants = cva(\n \"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors \" +\n \"hover:bg-muted hover:text-foreground \" +\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 \"data-[state=on]:bg-muted data-[state=on]:text-foreground\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline:\n \"border border-border bg-transparent hover:bg-muted data-[state=on]:border-primary\",\n },\n size: {\n sm: \"h-8 min-w-8 px-2\",\n default: \"h-9 min-w-9 px-2.5\",\n lg: \"h-10 min-w-10 px-3\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nexport interface ToggleProps\n extends\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>,\n VariantProps<typeof toggleVariants> {}\n\nconst Toggle = React.forwardRef<\n React.ElementRef<typeof TogglePrimitive.Root>,\n ToggleProps\n>(({ className, variant, size, ...props }, ref) => (\n <TogglePrimitive.Root\n ref={ref}\n className={cn(toggleVariants({ variant, size }), className)}\n {...props}\n />\n));\nToggle.displayName = TogglePrimitive.Root.displayName;\n\n/**\n * The group passes its variant and size down through context rather than\n * through cloned children, so an item can still override either one and a\n * consumer can wrap items in their own markup without the styling falling off.\n */\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants>\n>({ size: \"default\", variant: \"default\" });\n\n/**\n * A type intersection, not `interface extends`. Radix's Root props are a\n * discriminated union of the single-select and multi-select shapes, and\n * extending it collapses the union: `children` disappears and neither `type`\n * variant is assignable. Intersecting distributes over the union and keeps both.\n */\nexport type ToggleGroupProps = React.ComponentPropsWithoutRef<\n typeof ToggleGroupPrimitive.Root\n> &\n VariantProps<typeof toggleVariants>;\n\nconst ToggleGroup = React.forwardRef<\n React.ElementRef<typeof ToggleGroupPrimitive.Root>,\n ToggleGroupProps\n>(({ className, variant, size, children, ...props }, ref) => (\n <ToggleGroupPrimitive.Root\n ref={ref}\n className={cn(\"flex items-center gap-1\", className)}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n));\nToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;\n\nexport interface ToggleGroupItemProps\n extends\n React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>,\n VariantProps<typeof toggleVariants> {}\n\nconst ToggleGroupItem = React.forwardRef<\n React.ElementRef<typeof ToggleGroupPrimitive.Item>,\n ToggleGroupItemProps\n>(({ className, variant, size, ...props }, ref) => {\n const group = React.useContext(ToggleGroupContext);\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={cn(\n toggleVariants({\n variant: variant ?? group.variant,\n size: size ?? group.size,\n }),\n className,\n )}\n {...props}\n />\n );\n});\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;\n\nexport { Toggle, ToggleGroup, ToggleGroupItem, toggleVariants };\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-dialog';import {cva}from'class-variance-authority';var d=cva("fixed z-50 flex flex-col gap-4 bg-background p-6 shadow-lg transition-none data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b border-border data-[state=closed]:slide-in-from-top-2 data-[state=open]:slide-in-from-top-2",bottom:"inset-x-0 bottom-0 border-t border-border data-[state=closed]:slide-in-from-bottom-2 data-[state=open]:slide-in-from-bottom-2",left:"inset-y-0 left-0 h-full w-3/4 border-r border-border sm:max-w-sm data-[state=closed]:slide-in-from-left-2 data-[state=open]:slide-in-from-left-2",right:"inset-y-0 right-0 h-full w-3/4 border-l border-border sm:max-w-sm data-[state=closed]:slide-in-from-right-2 data-[state=open]:slide-in-from-right-2"}},defaultVariants:{side:"right"}}),R=e.Root,b=e.Trigger,u=e.Close,f=e.Portal,n=t.forwardRef(({className:i,...o},a$1)=>t.createElement(e.Overlay,{ref:a$1,className:a("fixed inset-0 z-50 bg-neutral-950/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",i),...o}));n.displayName=e.Overlay.displayName;var p=t.forwardRef(({side:i,className:o,children:a$1,...s},m)=>t.createElement(f,null,t.createElement(n,null),t.createElement(e.Content,{ref:m,className:a(d({side:i}),o),...s},a$1)));p.displayName=e.Content.displayName;function h({className:i,...o}){return t.createElement("div",{className:a("flex flex-col gap-1.5",i),...o})}h.displayName="SheetHeader";function c({className:i,...o}){return t.createElement("div",{className:a("mt-auto flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",i),...o})}c.displayName="SheetFooter";var S=t.forwardRef(({className:i,srOnly:o,...a$1},s)=>t.createElement(e.Title,{ref:s,className:a(o?"absolute h-px w-px overflow-hidden whitespace-nowrap border-0 p-0 [clip:rect(0,0,0,0)]":"text-lg font-semibold text-foreground",i),...a$1}));S.displayName=e.Title.displayName;var v=t.forwardRef(({className:i,...o},a$1)=>t.createElement(e.Description,{ref:a$1,className:a("text-sm text-muted-foreground",i),...o}));v.displayName=e.Description.displayName;export{d as a,R as b,b as c,u as d,f as e,n as f,p as g,h,c as i,S as j,v as k};//# sourceMappingURL=chunk-HCYZ3LZP.js.map
3
+ //# sourceMappingURL=chunk-HCYZ3LZP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/core/sheet.tsx"],"names":["sheetVariants","cva","Sheet","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","className","props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AAA,CAAiCH,CAAS,CAAA,CACvD,GAAGC,CAAAA,CACN,CACD,EACDU,CAAAA,CAAiB,WAAA,CAA6B,CAAA,CAAA,WAAA,CAAY,WAAA","file":"chunk-HCYZ3LZP.js","sourcesContent":["import * as React from \"react\";\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * A panel that slides in from an edge: mobile navigation, a filter drawer, a\n * detail pane beside a table.\n *\n * Built on `@radix-ui/react-dialog` rather than on this package's own `Dialog`.\n * They are the same primitive underneath and a sheet is a dialog - but ours is\n * hand-rolled around a centred box, and bending it into an edge-anchored panel\n * would mean two layout modes in one component and a `variant` that changes what\n * every other prop means. Radix brings the focus trap, scroll lock and inert\n * background that a hand-rolled overlay has to get right on its own.\n */\n\nconst sheetVariants = cva(\n \"fixed z-50 flex flex-col gap-4 bg-background p-6 shadow-lg transition-none \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b border-border data-[state=closed]:slide-in-from-top-2 data-[state=open]:slide-in-from-top-2\",\n bottom:\n \"inset-x-0 bottom-0 border-t border-border data-[state=closed]:slide-in-from-bottom-2 data-[state=open]:slide-in-from-bottom-2\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r border-border sm:max-w-sm data-[state=closed]:slide-in-from-left-2 data-[state=open]:slide-in-from-left-2\",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l border-border sm:max-w-sm data-[state=closed]:slide-in-from-right-2 data-[state=open]:slide-in-from-right-2\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n },\n);\n\nconst Sheet = SheetPrimitive.Root;\nconst SheetTrigger = SheetPrimitive.Trigger;\nconst SheetClose = SheetPrimitive.Close;\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n ref={ref}\n className={cn(\n \"fixed inset-0 z-50 bg-neutral-950/50 data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nexport interface SheetContentProps\n extends\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\n/**\n * A `SheetTitle` is required, not decorative.\n *\n * Radix warns at runtime when a dialog has no title, and axe reports\n * `aria-dialog-name` - a screen reader announces \"dialog\" and nothing else. The\n * title can be visually hidden if the design has no room for one, which is what\n * `SheetTitle`'s `srOnly` is for; what it cannot be is absent.\n */\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side, className, children, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n {children}\n </SheetPrimitive.Content>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nfunction SheetHeader({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"flex flex-col gap-1.5\", className)} {...props} />;\n}\nSheetHeader.displayName = \"SheetHeader\";\n\nfunction SheetFooter({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div\n className={cn(\n \"mt-auto flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className,\n )}\n {...props}\n />\n );\n}\nSheetFooter.displayName = \"SheetFooter\";\n\nexport interface SheetTitleProps extends React.ComponentPropsWithoutRef<\n typeof SheetPrimitive.Title\n> {\n /**\n * Keeps the title for assistive technology while removing it visually, for\n * designs with no room for a heading. The accessible name still exists, which\n * is the part that is not optional.\n */\n srOnly?: boolean;\n}\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n SheetTitleProps\n>(({ className, srOnly, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn(\n srOnly\n ? \"absolute h-px w-px overflow-hidden whitespace-nowrap border-0 p-0 [clip:rect(0,0,0,0)]\"\n : \"text-lg font-semibold text-foreground\",\n className,\n )}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetPortal,\n SheetOverlay,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n sheetVariants,\n};\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-dialog'),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=classVarianceAuthority.cva("fixed z-50 flex flex-col gap-4 bg-background p-6 shadow-lg transition-none data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b border-border data-[state=closed]:slide-in-from-top-2 data-[state=open]:slide-in-from-top-2",bottom:"inset-x-0 bottom-0 border-t border-border data-[state=closed]:slide-in-from-bottom-2 data-[state=open]:slide-in-from-bottom-2",left:"inset-y-0 left-0 h-full w-3/4 border-r border-border sm:max-w-sm data-[state=closed]:slide-in-from-left-2 data-[state=open]:slide-in-from-left-2",right:"inset-y-0 right-0 h-full w-3/4 border-l border-border sm:max-w-sm data-[state=closed]:slide-in-from-right-2 data-[state=open]:slide-in-from-right-2"}},defaultVariants:{side:"right"}}),R=e__namespace.Root,b=e__namespace.Trigger,u=e__namespace.Close,f=e__namespace.Portal,n=t__namespace.forwardRef(({className:i,...o},a)=>t__namespace.createElement(e__namespace.Overlay,{ref:a,className:chunkITRGJNWL_cjs.a("fixed inset-0 z-50 bg-neutral-950/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",i),...o}));n.displayName=e__namespace.Overlay.displayName;var p=t__namespace.forwardRef(({side:i,className:o,children:a,...s},m)=>t__namespace.createElement(f,null,t__namespace.createElement(n,null),t__namespace.createElement(e__namespace.Content,{ref:m,className:chunkITRGJNWL_cjs.a(d({side:i}),o),...s},a)));p.displayName=e__namespace.Content.displayName;function h({className:i,...o}){return t__namespace.createElement("div",{className:chunkITRGJNWL_cjs.a("flex flex-col gap-1.5",i),...o})}h.displayName="SheetHeader";function c({className:i,...o}){return t__namespace.createElement("div",{className:chunkITRGJNWL_cjs.a("mt-auto flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",i),...o})}c.displayName="SheetFooter";var S=t__namespace.forwardRef(({className:i,srOnly:o,...a},s)=>t__namespace.createElement(e__namespace.Title,{ref:s,className:chunkITRGJNWL_cjs.a(o?"absolute h-px w-px overflow-hidden whitespace-nowrap border-0 p-0 [clip:rect(0,0,0,0)]":"text-lg font-semibold text-foreground",i),...a}));S.displayName=e__namespace.Title.displayName;var v=t__namespace.forwardRef(({className:i,...o},a)=>t__namespace.createElement(e__namespace.Description,{ref:a,className:chunkITRGJNWL_cjs.a("text-sm text-muted-foreground",i),...o}));v.displayName=e__namespace.Description.displayName;exports.a=d;exports.b=R;exports.c=b;exports.d=u;exports.e=f;exports.f=n;exports.g=p;exports.h=h;exports.i=c;exports.j=S;exports.k=v;//# sourceMappingURL=chunk-MQUHAWJ2.cjs.map
3
+ //# sourceMappingURL=chunk-MQUHAWJ2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/core/sheet.tsx"],"names":["sheetVariants","cva","Sheet","e","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","t","className","props","ref","cn","SheetContent","side","children","SheetHeader","SheetFooter","SheetTitle","srOnly","SheetDescription"],"mappings":"8kBAiBA,IAAMA,CAAAA,CAAgBC,0BAAAA,CACpB,0IAEA,CACE,QAAA,CAAU,CACR,IAAA,CAAM,CACJ,GAAA,CAAK,uHACL,MAAA,CACE,+HAAA,CACF,IAAA,CAAM,kJAAA,CACN,KAAA,CACE,qJACJ,CACF,CAAA,CACA,eAAA,CAAiB,CACf,IAAA,CAAM,OACR,CACF,CACF,CAAA,CAEMC,CAAAA,CAAuBC,YAAA,CAAA,IAAA,CACvBC,CAAAA,CAA8BD,YAAA,CAAA,OAAA,CAC9BE,CAAAA,CAA4BF,mBAC5BG,CAAAA,CAA6BH,YAAA,CAAA,MAAA,CAE7BI,CAAAA,CAAqBC,YAAA,CAAA,UAAA,CAGzB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GAC1BH,YAAA,CAAA,aAAA,CAAgBL,YAAA,CAAA,OAAA,CAAf,CACC,GAAA,CAAKQ,CAAAA,CACL,SAAA,CAAWC,mBAAAA,CACT,8JAAA,CAEAH,CACF,EACC,GAAGC,CAAAA,CACN,CACD,EACDH,CAAAA,CAAa,WAAA,CAA6BJ,qBAAQ,WAAA,CAelD,IAAMU,CAAAA,CAAqBL,YAAA,CAAA,UAAA,CAGzB,CAAC,CAAE,IAAA,CAAAM,CAAAA,CAAM,SAA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A,CACTO,CAAAA,CACI,wFAAA,CACA,uCAAA,CACJV,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CACD,EACDQ,CAAAA,CAAW,WAAA,CAA6Bf,YAAA,CAAA,KAAA,CAAM,WAAA,KAExCiB,CAAAA,CAAyBZ,YAAA,CAAA,UAAA,CAG7B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GAC1BH,YAAA,CAAA,aAAA,CAAgBL,YAAA,CAAA,WAAA,CAAf,CACC,IAAKQ,CAAAA,CACL,SAAA,CAAWC,mBAAAA,CAAG,+BAAA,CAAiCH,CAAS,CAAA,CACvD,GAAGC,CAAAA,CACN,CACD,EACDU,CAAAA,CAAiB,WAAA,CAA6BjB,YAAA,CAAA,WAAA,CAAY,WAAA","file":"chunk-MQUHAWJ2.cjs","sourcesContent":["import * as React from \"react\";\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * A panel that slides in from an edge: mobile navigation, a filter drawer, a\n * detail pane beside a table.\n *\n * Built on `@radix-ui/react-dialog` rather than on this package's own `Dialog`.\n * They are the same primitive underneath and a sheet is a dialog - but ours is\n * hand-rolled around a centred box, and bending it into an edge-anchored panel\n * would mean two layout modes in one component and a `variant` that changes what\n * every other prop means. Radix brings the focus trap, scroll lock and inert\n * background that a hand-rolled overlay has to get right on its own.\n */\n\nconst sheetVariants = cva(\n \"fixed z-50 flex flex-col gap-4 bg-background p-6 shadow-lg transition-none \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b border-border data-[state=closed]:slide-in-from-top-2 data-[state=open]:slide-in-from-top-2\",\n bottom:\n \"inset-x-0 bottom-0 border-t border-border data-[state=closed]:slide-in-from-bottom-2 data-[state=open]:slide-in-from-bottom-2\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r border-border sm:max-w-sm data-[state=closed]:slide-in-from-left-2 data-[state=open]:slide-in-from-left-2\",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l border-border sm:max-w-sm data-[state=closed]:slide-in-from-right-2 data-[state=open]:slide-in-from-right-2\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n },\n);\n\nconst Sheet = SheetPrimitive.Root;\nconst SheetTrigger = SheetPrimitive.Trigger;\nconst SheetClose = SheetPrimitive.Close;\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n ref={ref}\n className={cn(\n \"fixed inset-0 z-50 bg-neutral-950/50 data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nexport interface SheetContentProps\n extends\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\n/**\n * A `SheetTitle` is required, not decorative.\n *\n * Radix warns at runtime when a dialog has no title, and axe reports\n * `aria-dialog-name` - a screen reader announces \"dialog\" and nothing else. The\n * title can be visually hidden if the design has no room for one, which is what\n * `SheetTitle`'s `srOnly` is for; what it cannot be is absent.\n */\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side, className, children, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n {children}\n </SheetPrimitive.Content>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nfunction SheetHeader({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"flex flex-col gap-1.5\", className)} {...props} />;\n}\nSheetHeader.displayName = \"SheetHeader\";\n\nfunction SheetFooter({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div\n className={cn(\n \"mt-auto flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className,\n )}\n {...props}\n />\n );\n}\nSheetFooter.displayName = \"SheetFooter\";\n\nexport interface SheetTitleProps extends React.ComponentPropsWithoutRef<\n typeof SheetPrimitive.Title\n> {\n /**\n * Keeps the title for assistive technology while removing it visually, for\n * designs with no room for a heading. The accessible name still exists, which\n * is the part that is not optional.\n */\n srOnly?: boolean;\n}\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n SheetTitleProps\n>(({ className, srOnly, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn(\n srOnly\n ? \"absolute h-px w-px overflow-hidden whitespace-nowrap border-0 p-0 [clip:rect(0,0,0,0)]\"\n : \"text-lg font-semibold text-foreground\",\n className,\n )}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetPortal,\n SheetOverlay,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n sheetVariants,\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ 'use strict';var chunk5PVFLXPO_cjs=require('./chunk-5PVFLXPO.cjs'),chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),t=require('react'),e=require('@radix-ui/react-alert-dialog');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 P=e__namespace.Root,y=e__namespace.Trigger,s=e__namespace.Portal,n=t__namespace.forwardRef(({className:i,...a},o)=>t__namespace.createElement(e__namespace.Overlay,{ref:o,className:chunkITRGJNWL_cjs.a("fixed inset-0 z-50 bg-neutral-950/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",i),...a}));n.displayName=e__namespace.Overlay.displayName;var c=t__namespace.forwardRef(({className:i,...a},o)=>t__namespace.createElement(s,null,t__namespace.createElement(n,null),t__namespace.createElement(e__namespace.Content,{ref:o,className:chunkITRGJNWL_cjs.a("fixed left-1/2 top-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-background p-6 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",i),...a})));c.displayName=e__namespace.Content.displayName;function f({className:i,...a}){return t__namespace.createElement("div",{className:chunkITRGJNWL_cjs.a("flex flex-col gap-2",i),...a})}f.displayName="AlertDialogHeader";function d({className:i,...a}){return t__namespace.createElement("div",{className:chunkITRGJNWL_cjs.a("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",i),...a})}d.displayName="AlertDialogFooter";var p=t__namespace.forwardRef(({className:i,...a},o)=>t__namespace.createElement(e__namespace.Title,{ref:o,className:chunkITRGJNWL_cjs.a("text-lg font-semibold text-foreground",i),...a}));p.displayName=e__namespace.Title.displayName;var g=t__namespace.forwardRef(({className:i,...a},o)=>t__namespace.createElement(e__namespace.Description,{ref:o,className:chunkITRGJNWL_cjs.a("text-sm text-muted-foreground",i),...a}));g.displayName=e__namespace.Description.displayName;var A=t__namespace.forwardRef(({className:i,variant:a="destructive",...o},m)=>t__namespace.createElement(e__namespace.Action,{ref:m,className:chunkITRGJNWL_cjs.a(chunk5PVFLXPO_cjs.a({variant:a}),i),...o}));A.displayName=e__namespace.Action.displayName;var D=t__namespace.forwardRef(({className:i,...a},o)=>t__namespace.createElement(e__namespace.Cancel,{ref:o,className:chunkITRGJNWL_cjs.a(chunk5PVFLXPO_cjs.a({variant:"outline"}),i),...a}));D.displayName=e__namespace.Cancel.displayName;exports.a=P;exports.b=y;exports.c=s;exports.d=n;exports.e=c;exports.f=f;exports.g=d;exports.h=p;exports.i=g;exports.j=A;exports.k=D;//# sourceMappingURL=chunk-PZLBMQGI.cjs.map
3
+ //# sourceMappingURL=chunk-PZLBMQGI.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/core/alert-dialog.tsx"],"names":["AlertDialog","e","AlertDialogTrigger","AlertDialogPortal","AlertDialogOverlay","t","className","props","ref","cn","AlertDialogContent","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","variant","buttonVariants","AlertDialogCancel"],"mappings":"2kBA2BA,IAAMA,CAAAA,CAAmCC,YAAA,CAAA,IAAA,CACnCC,CAAAA,CAA0CD,YAAA,CAAA,OAAA,CAC1CE,CAAAA,CAAyCF,YAAA,CAAA,MAAA,CAEzCG,CAAAA,CAA2BC,YAAA,CAAA,UAAA,CAG/B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GAC1BH,YAAA,CAAA,aAAA,CAAsBJ,YAAA,CAAA,OAAA,CAArB,CACC,GAAA,CAAKO,CAAAA,CACL,SAAA,CAAWC,mBAAAA,CACT,8JAAA,CAEAH,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CACD,EACDH,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AAA,CACL,SAAA,CAAWC,mBAAAA,CAAGQ,mBAAAA,CAAe,CAAE,OAAA,CAAS,SAAU,CAAC,CAAA,CAAGX,CAAS,CAAA,CAC9D,GAAGC,CAAAA,CACN,CACD,EACDW,CAAAA,CAAkB,WAAA,CAAmCjB,YAAA,CAAA,MAAA,CAAO,WAAA","file":"chunk-PZLBMQGI.cjs","sourcesContent":["import * as React from \"react\";\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport { cn } from \"../../lib/utils\";\nimport { buttonVariants } from \"./button\";\n\n/**\n * A modal that interrupts to confirm something consequential: delete, revoke,\n * overwrite.\n *\n * Not a variant of `Dialog`, and not a styling choice. Radix enforces three\n * differences, all verified rather than assumed:\n *\n * - `role=\"alertdialog\"`, so it is announced as one\n * - clicking outside does not dismiss it, so a confirmation cannot be lost by\n * missing the button\n * - focus starts on Cancel, not on the action, so a reflexive Enter cancels\n * rather than deletes\n *\n * Escape *does* close it. That is deliberate on Radix's part and correct: a\n * modal a keyboard user cannot leave is a trap, and the APG asks every dialog to\n * be dismissible that way. Cancelling is the safe outcome here, so nothing is\n * lost by it.\n *\n * Reach for `Dialog` when the user opened it on purpose and can walk away, and\n * for this when the app is asking a question it needs answered.\n */\n\nconst AlertDialog = AlertDialogPrimitive.Root;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n ref={ref}\n className={cn(\n \"fixed inset-0 z-50 bg-neutral-950/50 data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n));\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed left-1/2 top-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 \" +\n \"rounded-xl border border-border bg-background p-6 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 className,\n )}\n {...props}\n />\n </AlertDialogPortal>\n));\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"flex flex-col gap-2\", className)} {...props} />;\n}\nAlertDialogHeader.displayName = \"AlertDialogHeader\";\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div\n className={cn(\n \"mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className,\n )}\n {...props}\n />\n );\n}\nAlertDialogFooter.displayName = \"AlertDialogFooter\";\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold text-foreground\", className)}\n {...props}\n />\n));\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName;\n\nexport interface AlertDialogActionProps extends React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Action\n> {\n /**\n * Most alert dialogs confirm something destructive, so this defaults to the\n * destructive button rather than leaving every call site to remember.\n */\n variant?: \"default\" | \"destructive\";\n}\n\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n AlertDialogActionProps\n>(({ className, variant = \"destructive\", ...props }, ref) => (\n <AlertDialogPrimitive.Action\n ref={ref}\n className={cn(buttonVariants({ variant }), className)}\n {...props}\n />\n));\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(buttonVariants({ variant: \"outline\" }), className)}\n {...props}\n />\n));\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ 'use strict';var chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),e=require('react');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 l=e__namespace.forwardRef(({ratio:i=1,className:a,style:o,children:r,...s},c)=>e__namespace.createElement("div",{ref:c,className:chunkITRGJNWL_cjs.a("relative w-full overflow-hidden",a),style:{aspectRatio:String(i),...o},...s},r));l.displayName="AspectRatio";exports.a=l;//# sourceMappingURL=chunk-R4L5BZYI.cjs.map
3
+ //# sourceMappingURL=chunk-R4L5BZYI.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/core/aspect-ratio.tsx"],"names":["AspectRatio","e","ratio","className","style","children","props","ref","cn"],"mappings":"4bAwBA,IAAMA,CAAAA,CAAoBC,wBACxB,CAAC,CAAE,MAAAC,CAAAA,CAAQ,CAAA,CAAG,UAAAC,CAAAA,CAAW,KAAA,CAAAC,EAAO,QAAA,CAAAC,CAAAA,CAAU,GAAGC,CAAM,CAAA,CAAGC,IACpDN,YAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CACC,IAAKM,CAAAA,CAIL,SAAA,CAAWC,oBAAG,iCAAA,CAAmCL,CAAS,EAC1D,KAAA,CAAO,CAAE,YAAa,MAAA,CAAOD,CAAK,EAAG,GAAGE,CAAM,EAC7C,GAAGE,CAAAA,CAAAA,CAEHD,CACH,CAEJ,EACAL,EAAY,WAAA,CAAc,aAAA","file":"chunk-R4L5BZYI.cjs","sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * Holds a box at a fixed ratio while its width is free: video embeds, image\n * grids, map panes.\n *\n * Written here rather than pulled from `@radix-ui/react-aspect-ratio`. That\n * package exists for the padding-bottom trick browsers needed before the CSS\n * `aspect-ratio` property, and every browser this library supports has had it\n * for years. Gallery already relies on it through Tailwind's `aspect-[3/4]`. A\n * dependency to set one CSS property would be a dependency to maintain, audit\n * and ship for nothing.\n */\n\nexport interface AspectRatioProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * Width divided by height. `16 / 9` for video, `1` for a square, `4 / 3` for\n * a photo. Written as a division rather than a string so the intent survives\n * in the source.\n */\n ratio?: number;\n}\n\nconst AspectRatio = React.forwardRef<HTMLDivElement, AspectRatioProps>(\n ({ ratio = 1, className, style, children, ...props }, ref) => (\n <div\n ref={ref}\n // `overflow-hidden` so an oversized child is cropped to the box rather\n // than spilling out of it, which is what a caller means by giving it a\n // ratio in the first place.\n className={cn(\"relative w-full overflow-hidden\", className)}\n style={{ aspectRatio: String(ratio), ...style }}\n {...props}\n >\n {children}\n </div>\n ),\n);\nAspectRatio.displayName = \"AspectRatio\";\n\nexport { AspectRatio };\n"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ 'use strict';var chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),e=require('react'),p=require('@radix-ui/react-toggle'),o=require('@radix-ui/react-toggle-group'),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 e__namespace=/*#__PURE__*/_interopNamespace(e);var p__namespace=/*#__PURE__*/_interopNamespace(p);var o__namespace=/*#__PURE__*/_interopNamespace(o);var l=classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-foreground 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 data-[state=on]:bg-muted data-[state=on]:text-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-border bg-transparent hover:bg-muted data-[state=on]:border-primary"},size:{sm:"h-8 min-w-8 px-2",default:"h-9 min-w-9 px-2.5",lg:"h-10 min-w-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),u=e__namespace.forwardRef(({className:t,variant:r,size:i,...a},g)=>e__namespace.createElement(p__namespace.Root,{ref:g,className:chunkITRGJNWL_cjs.a(l({variant:r,size:i}),t),...a}));u.displayName=p__namespace.Root.displayName;var m=e__namespace.createContext({size:"default",variant:"default"}),d=e__namespace.forwardRef(({className:t,variant:r,size:i,children:a,...g},n)=>e__namespace.createElement(o__namespace.Root,{ref:n,className:chunkITRGJNWL_cjs.a("flex items-center gap-1",t),...g},e__namespace.createElement(m.Provider,{value:{variant:r,size:i}},a)));d.displayName=o__namespace.Root.displayName;var c=e__namespace.forwardRef(({className:t,variant:r,size:i,...a},g)=>{let n=e__namespace.useContext(m);return e__namespace.createElement(o__namespace.Item,{ref:g,className:chunkITRGJNWL_cjs.a(l({variant:r??n.variant,size:i??n.size}),t),...a})});c.displayName=o__namespace.Item.displayName;exports.a=l;exports.b=u;exports.c=d;exports.d=c;//# sourceMappingURL=chunk-SZ34F6OZ.cjs.map
3
+ //# sourceMappingURL=chunk-SZ34F6OZ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/core/toggle.tsx"],"names":["toggleVariants","cva","Toggle","e","className","variant","size","props","ref","p","cn","ToggleGroupContext","ToggleGroup","children","o","ToggleGroupItem","group"],"mappings":"2qBAcA,IAAMA,EAAiBC,0BAAAA,CACrB,wXAAA,CAKA,CACE,QAAA,CAAU,CACR,QAAS,CACP,OAAA,CAAS,iBACT,OAAA,CACE,mFACJ,EACA,IAAA,CAAM,CACJ,GAAI,kBAAA,CACJ,OAAA,CAAS,qBACT,EAAA,CAAI,oBACN,CACF,CAAA,CACA,eAAA,CAAiB,CACf,OAAA,CAAS,SAAA,CACT,KAAM,SACR,CACF,CACF,CAAA,CAOMC,CAAAA,CAAeC,wBAGnB,CAAC,CAAE,UAAAC,CAAAA,CAAW,OAAA,CAAAC,EAAS,IAAA,CAAAC,CAAAA,CAAM,GAAGC,CAAM,CAAA,CAAGC,IACzCL,YAAA,CAAA,aAAA,CAAiBM,YAAA,CAAA,IAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,UAAWE,mBAAAA,CAAGV,CAAAA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G,CAAAA,CACN,CAEJ,CAAC,EACDQ,CAAAA,CAAgB,WAAA,CAAmCD,YAAA,CAAA,IAAA,CAAK,WAAA","file":"chunk-SZ34F6OZ.cjs","sourcesContent":["import * as React from \"react\";\nimport * as TogglePrimitive from \"@radix-ui/react-toggle\";\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * A button that stays pressed: bold in a toolbar, a filter chip, a view mode.\n *\n * Distinct from `Switch`, which is a form control with an on and an off state\n * and belongs next to a label. A toggle is a button, announces itself as one\n * with `aria-pressed`, and lives in a toolbar rather than a form.\n */\n\nconst toggleVariants = cva(\n \"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors \" +\n \"hover:bg-muted hover:text-foreground \" +\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 \"data-[state=on]:bg-muted data-[state=on]:text-foreground\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline:\n \"border border-border bg-transparent hover:bg-muted data-[state=on]:border-primary\",\n },\n size: {\n sm: \"h-8 min-w-8 px-2\",\n default: \"h-9 min-w-9 px-2.5\",\n lg: \"h-10 min-w-10 px-3\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nexport interface ToggleProps\n extends\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>,\n VariantProps<typeof toggleVariants> {}\n\nconst Toggle = React.forwardRef<\n React.ElementRef<typeof TogglePrimitive.Root>,\n ToggleProps\n>(({ className, variant, size, ...props }, ref) => (\n <TogglePrimitive.Root\n ref={ref}\n className={cn(toggleVariants({ variant, size }), className)}\n {...props}\n />\n));\nToggle.displayName = TogglePrimitive.Root.displayName;\n\n/**\n * The group passes its variant and size down through context rather than\n * through cloned children, so an item can still override either one and a\n * consumer can wrap items in their own markup without the styling falling off.\n */\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants>\n>({ size: \"default\", variant: \"default\" });\n\n/**\n * A type intersection, not `interface extends`. Radix's Root props are a\n * discriminated union of the single-select and multi-select shapes, and\n * extending it collapses the union: `children` disappears and neither `type`\n * variant is assignable. Intersecting distributes over the union and keeps both.\n */\nexport type ToggleGroupProps = React.ComponentPropsWithoutRef<\n typeof ToggleGroupPrimitive.Root\n> &\n VariantProps<typeof toggleVariants>;\n\nconst ToggleGroup = React.forwardRef<\n React.ElementRef<typeof ToggleGroupPrimitive.Root>,\n ToggleGroupProps\n>(({ className, variant, size, children, ...props }, ref) => (\n <ToggleGroupPrimitive.Root\n ref={ref}\n className={cn(\"flex items-center gap-1\", className)}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n));\nToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;\n\nexport interface ToggleGroupItemProps\n extends\n React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>,\n VariantProps<typeof toggleVariants> {}\n\nconst ToggleGroupItem = React.forwardRef<\n React.ElementRef<typeof ToggleGroupPrimitive.Item>,\n ToggleGroupItemProps\n>(({ className, variant, size, ...props }, ref) => {\n const group = React.useContext(ToggleGroupContext);\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={cn(\n toggleVariants({\n variant: variant ?? group.variant,\n size: size ?? group.size,\n }),\n className,\n )}\n {...props}\n />\n );\n});\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;\n\nexport { Toggle, ToggleGroup, ToggleGroupItem, toggleVariants };\n"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import {a}from'./chunk-AC2JBXHQ.js';import*as e from'react';var l=e.forwardRef(({ratio:i=1,className:a$1,style:o,children:r,...s},c)=>e.createElement("div",{ref:c,className:a("relative w-full overflow-hidden",a$1),style:{aspectRatio:String(i),...o},...s},r));l.displayName="AspectRatio";export{l as a};//# sourceMappingURL=chunk-YCVOS3MT.js.map
3
+ //# sourceMappingURL=chunk-YCVOS3MT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/core/aspect-ratio.tsx"],"names":["AspectRatio","ratio","className","style","children","props","ref","cn"],"mappings":"4DAwBA,IAAMA,CAAAA,CAAoB,aACxB,CAAC,CAAE,MAAAC,CAAAA,CAAQ,CAAA,CAAG,UAAAC,GAAAA,CAAW,KAAA,CAAAC,EAAO,QAAA,CAAAC,CAAAA,CAAU,GAAGC,CAAM,CAAA,CAAGC,IACpD,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CACC,IAAKA,CAAAA,CAIL,SAAA,CAAWC,EAAG,iCAAA,CAAmCL,GAAS,EAC1D,KAAA,CAAO,CAAE,YAAa,MAAA,CAAOD,CAAK,EAAG,GAAGE,CAAM,EAC7C,GAAGE,CAAAA,CAAAA,CAEHD,CACH,CAEJ,EACAJ,EAAY,WAAA,CAAc,aAAA","file":"chunk-YCVOS3MT.js","sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * Holds a box at a fixed ratio while its width is free: video embeds, image\n * grids, map panes.\n *\n * Written here rather than pulled from `@radix-ui/react-aspect-ratio`. That\n * package exists for the padding-bottom trick browsers needed before the CSS\n * `aspect-ratio` property, and every browser this library supports has had it\n * for years. Gallery already relies on it through Tailwind's `aspect-[3/4]`. A\n * dependency to set one CSS property would be a dependency to maintain, audit\n * and ship for nothing.\n */\n\nexport interface AspectRatioProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * Width divided by height. `16 / 9` for video, `1` for a square, `4 / 3` for\n * a photo. Written as a division rather than a string so the intent survives\n * in the source.\n */\n ratio?: number;\n}\n\nconst AspectRatio = React.forwardRef<HTMLDivElement, AspectRatioProps>(\n ({ ratio = 1, className, style, children, ...props }, ref) => (\n <div\n ref={ref}\n // `overflow-hidden` so an oversized child is cropped to the box rather\n // than spilling out of it, which is what a caller means by giving it a\n // ratio in the first place.\n className={cn(\"relative w-full overflow-hidden\", className)}\n style={{ aspectRatio: String(ratio), ...style }}\n {...props}\n >\n {children}\n </div>\n ),\n);\nAspectRatio.displayName = \"AspectRatio\";\n\nexport { AspectRatio };\n"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ 'use strict';var chunkPZLBMQGI_cjs=require('../../chunk-PZLBMQGI.cjs');require('../../chunk-5PVFLXPO.cjs'),require('../../chunk-7SPPGTBT.cjs'),require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"AlertDialog",{enumerable:true,get:function(){return chunkPZLBMQGI_cjs.a}});Object.defineProperty(exports,"AlertDialogAction",{enumerable:true,get:function(){return chunkPZLBMQGI_cjs.j}});Object.defineProperty(exports,"AlertDialogCancel",{enumerable:true,get:function(){return chunkPZLBMQGI_cjs.k}});Object.defineProperty(exports,"AlertDialogContent",{enumerable:true,get:function(){return chunkPZLBMQGI_cjs.e}});Object.defineProperty(exports,"AlertDialogDescription",{enumerable:true,get:function(){return chunkPZLBMQGI_cjs.i}});Object.defineProperty(exports,"AlertDialogFooter",{enumerable:true,get:function(){return chunkPZLBMQGI_cjs.g}});Object.defineProperty(exports,"AlertDialogHeader",{enumerable:true,get:function(){return chunkPZLBMQGI_cjs.f}});Object.defineProperty(exports,"AlertDialogOverlay",{enumerable:true,get:function(){return chunkPZLBMQGI_cjs.d}});Object.defineProperty(exports,"AlertDialogPortal",{enumerable:true,get:function(){return chunkPZLBMQGI_cjs.c}});Object.defineProperty(exports,"AlertDialogTitle",{enumerable:true,get:function(){return chunkPZLBMQGI_cjs.h}});Object.defineProperty(exports,"AlertDialogTrigger",{enumerable:true,get:function(){return chunkPZLBMQGI_cjs.b}});//# sourceMappingURL=alert-dialog.cjs.map
3
+ //# sourceMappingURL=alert-dialog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"alert-dialog.cjs"}
@@ -0,0 +1,50 @@
1
+ import * as React from 'react';
2
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+
4
+ /**
5
+ * A modal that interrupts to confirm something consequential: delete, revoke,
6
+ * overwrite.
7
+ *
8
+ * Not a variant of `Dialog`, and not a styling choice. Radix enforces three
9
+ * differences, all verified rather than assumed:
10
+ *
11
+ * - `role="alertdialog"`, so it is announced as one
12
+ * - clicking outside does not dismiss it, so a confirmation cannot be lost by
13
+ * missing the button
14
+ * - focus starts on Cancel, not on the action, so a reflexive Enter cancels
15
+ * rather than deletes
16
+ *
17
+ * Escape *does* close it. That is deliberate on Radix's part and correct: a
18
+ * modal a keyboard user cannot leave is a trap, and the APG asks every dialog to
19
+ * be dismissible that way. Cancelling is the safe outcome here, so nothing is
20
+ * lost by it.
21
+ *
22
+ * Reach for `Dialog` when the user opened it on purpose and can walk away, and
23
+ * for this when the app is asking a question it needs answered.
24
+ */
25
+ declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
26
+ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
27
+ declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
28
+ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
29
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
30
+ declare function AlertDialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
31
+ declare namespace AlertDialogHeader {
32
+ var displayName: string;
33
+ }
34
+ declare function AlertDialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
35
+ declare namespace AlertDialogFooter {
36
+ var displayName: string;
37
+ }
38
+ declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
39
+ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
40
+ interface AlertDialogActionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {
41
+ /**
42
+ * Most alert dialogs confirm something destructive, so this defaults to the
43
+ * destructive button rather than leaving every call site to remember.
44
+ */
45
+ variant?: "default" | "destructive";
46
+ }
47
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
48
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
49
+
50
+ export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
@@ -0,0 +1,50 @@
1
+ import * as React from 'react';
2
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+
4
+ /**
5
+ * A modal that interrupts to confirm something consequential: delete, revoke,
6
+ * overwrite.
7
+ *
8
+ * Not a variant of `Dialog`, and not a styling choice. Radix enforces three
9
+ * differences, all verified rather than assumed:
10
+ *
11
+ * - `role="alertdialog"`, so it is announced as one
12
+ * - clicking outside does not dismiss it, so a confirmation cannot be lost by
13
+ * missing the button
14
+ * - focus starts on Cancel, not on the action, so a reflexive Enter cancels
15
+ * rather than deletes
16
+ *
17
+ * Escape *does* close it. That is deliberate on Radix's part and correct: a
18
+ * modal a keyboard user cannot leave is a trap, and the APG asks every dialog to
19
+ * be dismissible that way. Cancelling is the safe outcome here, so nothing is
20
+ * lost by it.
21
+ *
22
+ * Reach for `Dialog` when the user opened it on purpose and can walk away, and
23
+ * for this when the app is asking a question it needs answered.
24
+ */
25
+ declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
26
+ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
27
+ declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
28
+ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
29
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
30
+ declare function AlertDialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
31
+ declare namespace AlertDialogHeader {
32
+ var displayName: string;
33
+ }
34
+ declare function AlertDialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
35
+ declare namespace AlertDialogFooter {
36
+ var displayName: string;
37
+ }
38
+ declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
39
+ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
40
+ interface AlertDialogActionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {
41
+ /**
42
+ * Most alert dialogs confirm something destructive, so this defaults to the
43
+ * destructive button rather than leaving every call site to remember.
44
+ */
45
+ variant?: "default" | "destructive";
46
+ }
47
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
48
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
49
+
50
+ export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ export{a as AlertDialog,j as AlertDialogAction,k as AlertDialogCancel,e as AlertDialogContent,i as AlertDialogDescription,g as AlertDialogFooter,f as AlertDialogHeader,d as AlertDialogOverlay,c as AlertDialogPortal,h as AlertDialogTitle,b as AlertDialogTrigger}from'../../chunk-CT6LEOBW.js';import'../../chunk-AVTJE2O2.js';import'../../chunk-COXN6XBA.js';import'../../chunk-AC2JBXHQ.js';//# sourceMappingURL=alert-dialog.js.map
3
+ //# sourceMappingURL=alert-dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"alert-dialog.js"}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ 'use strict';var chunkR4L5BZYI_cjs=require('../../chunk-R4L5BZYI.cjs');require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"AspectRatio",{enumerable:true,get:function(){return chunkR4L5BZYI_cjs.a}});//# sourceMappingURL=aspect-ratio.cjs.map
3
+ //# sourceMappingURL=aspect-ratio.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"aspect-ratio.cjs"}
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+
3
+ /**
4
+ * Holds a box at a fixed ratio while its width is free: video embeds, image
5
+ * grids, map panes.
6
+ *
7
+ * Written here rather than pulled from `@radix-ui/react-aspect-ratio`. That
8
+ * package exists for the padding-bottom trick browsers needed before the CSS
9
+ * `aspect-ratio` property, and every browser this library supports has had it
10
+ * for years. Gallery already relies on it through Tailwind's `aspect-[3/4]`. A
11
+ * dependency to set one CSS property would be a dependency to maintain, audit
12
+ * and ship for nothing.
13
+ */
14
+ interface AspectRatioProps extends React.HTMLAttributes<HTMLDivElement> {
15
+ /**
16
+ * Width divided by height. `16 / 9` for video, `1` for a square, `4 / 3` for
17
+ * a photo. Written as a division rather than a string so the intent survives
18
+ * in the source.
19
+ */
20
+ ratio?: number;
21
+ }
22
+ declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
23
+
24
+ export { AspectRatio, type AspectRatioProps };
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+
3
+ /**
4
+ * Holds a box at a fixed ratio while its width is free: video embeds, image
5
+ * grids, map panes.
6
+ *
7
+ * Written here rather than pulled from `@radix-ui/react-aspect-ratio`. That
8
+ * package exists for the padding-bottom trick browsers needed before the CSS
9
+ * `aspect-ratio` property, and every browser this library supports has had it
10
+ * for years. Gallery already relies on it through Tailwind's `aspect-[3/4]`. A
11
+ * dependency to set one CSS property would be a dependency to maintain, audit
12
+ * and ship for nothing.
13
+ */
14
+ interface AspectRatioProps extends React.HTMLAttributes<HTMLDivElement> {
15
+ /**
16
+ * Width divided by height. `16 / 9` for video, `1` for a square, `4 / 3` for
17
+ * a photo. Written as a division rather than a string so the intent survives
18
+ * in the source.
19
+ */
20
+ ratio?: number;
21
+ }
22
+ declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
23
+
24
+ export { AspectRatio, type AspectRatioProps };
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ export{a as AspectRatio}from'../../chunk-YCVOS3MT.js';import'../../chunk-AC2JBXHQ.js';//# sourceMappingURL=aspect-ratio.js.map
3
+ //# sourceMappingURL=aspect-ratio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"aspect-ratio.js"}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ 'use strict';var chunkBX4VBLKZ_cjs=require('../../chunk-BX4VBLKZ.cjs');require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"DropdownMenu",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.a}});Object.defineProperty(exports,"DropdownMenuCheckboxItem",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.h}});Object.defineProperty(exports,"DropdownMenuContent",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.f}});Object.defineProperty(exports,"DropdownMenuGroup",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.c}});Object.defineProperty(exports,"DropdownMenuItem",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.g}});Object.defineProperty(exports,"DropdownMenuLabel",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.j}});Object.defineProperty(exports,"DropdownMenuRadioGroup",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.e}});Object.defineProperty(exports,"DropdownMenuRadioItem",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.i}});Object.defineProperty(exports,"DropdownMenuSeparator",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.k}});Object.defineProperty(exports,"DropdownMenuShortcut",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.l}});Object.defineProperty(exports,"DropdownMenuSub",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.d}});Object.defineProperty(exports,"DropdownMenuSubContent",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.n}});Object.defineProperty(exports,"DropdownMenuSubTrigger",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.m}});Object.defineProperty(exports,"DropdownMenuTrigger",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.b}});//# sourceMappingURL=dropdown-menu.cjs.map
3
+ //# sourceMappingURL=dropdown-menu.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"dropdown-menu.cjs"}
@@ -0,0 +1,43 @@
1
+ import * as React from 'react';
2
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
+
4
+ /**
5
+ * The menu that hangs off a button: row actions, account menus, overflow.
6
+ *
7
+ * Radix owns the hard parts - roving focus, typeahead, submenu timing, pointer
8
+ * versus keyboard intent - so this is styling plus two defaults worth having in
9
+ * one place rather than at every call site.
10
+ *
11
+ * `Select` is the neighbouring component and a different thing: it edits a form
12
+ * value and has a selected state. A dropdown menu runs commands.
13
+ */
14
+ declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
15
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
16
+ declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
17
+ declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
18
+ declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
19
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ interface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> {
21
+ /** Pulls the item into the destructive palette. */
22
+ destructive?: boolean;
23
+ /** Indents to line up with checkbox and radio items in the same menu. */
24
+ inset?: boolean;
25
+ }
26
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
27
+ declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
28
+ declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
29
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
30
+ inset?: boolean;
31
+ } & React.RefAttributes<HTMLDivElement>>;
32
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
33
+ /** For a keyboard hint on the right of an item. Not interactive. */
34
+ declare function DropdownMenuShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
35
+ declare namespace DropdownMenuShortcut {
36
+ var displayName: string;
37
+ }
38
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
39
+ inset?: boolean;
40
+ } & React.RefAttributes<HTMLDivElement>>;
41
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
42
+
43
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };