@c-rex/ui 0.0.10 → 0.0.11

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 (121) hide show
  1. package/dist/alert.cjs.js +197 -0
  2. package/dist/alert.cjs.js.map +1 -0
  3. package/dist/alert.esm.js +116 -0
  4. package/dist/alert.esm.js.map +1 -0
  5. package/dist/breadcrumb.cjs.js +299 -0
  6. package/dist/breadcrumb.cjs.js.map +1 -0
  7. package/dist/breadcrumb.esm.js +202 -0
  8. package/dist/breadcrumb.esm.js.map +1 -0
  9. package/dist/button.cjs.js +200 -0
  10. package/dist/button.cjs.js.map +1 -0
  11. package/dist/button.esm.js +123 -0
  12. package/dist/button.esm.js.map +1 -0
  13. package/dist/command.cjs.js +387 -0
  14. package/dist/command.cjs.js.map +1 -0
  15. package/dist/command.esm.js +282 -0
  16. package/dist/command.esm.js.map +1 -0
  17. package/dist/dialog.cjs.js +290 -0
  18. package/dist/dialog.cjs.js.map +1 -0
  19. package/dist/dialog.esm.js +181 -0
  20. package/dist/dialog.esm.js.map +1 -0
  21. package/dist/hooks/use-mobile.cjs.js +127 -0
  22. package/dist/hooks/use-mobile.cjs.js.map +1 -0
  23. package/dist/hooks/use-mobile.esm.js +66 -0
  24. package/dist/hooks/use-mobile.esm.js.map +1 -0
  25. package/dist/input.cjs.js +155 -0
  26. package/dist/input.cjs.js.map +1 -0
  27. package/dist/input.esm.js +82 -0
  28. package/dist/input.esm.js.map +1 -0
  29. package/dist/popover.cjs.js +175 -0
  30. package/dist/popover.cjs.js.map +1 -0
  31. package/dist/popover.esm.js +90 -0
  32. package/dist/popover.esm.js.map +1 -0
  33. package/dist/select.cjs.js +326 -0
  34. package/dist/select.cjs.js.map +1 -0
  35. package/dist/select.esm.js +217 -0
  36. package/dist/select.esm.js.map +1 -0
  37. package/dist/separator.cjs.js +158 -0
  38. package/dist/separator.cjs.js.map +1 -0
  39. package/dist/separator.esm.js +85 -0
  40. package/dist/separator.esm.js.map +1 -0
  41. package/dist/sheet.cjs.js +308 -0
  42. package/dist/sheet.cjs.js.map +1 -0
  43. package/dist/sheet.esm.js +199 -0
  44. package/dist/sheet.esm.js.map +1 -0
  45. package/dist/sidebar.cjs.js +1077 -0
  46. package/dist/sidebar.cjs.js.map +1 -0
  47. package/dist/sidebar.esm.js +912 -0
  48. package/dist/sidebar.esm.js.map +1 -0
  49. package/dist/skeleton.cjs.js +138 -0
  50. package/dist/skeleton.cjs.js.map +1 -0
  51. package/dist/skeleton.esm.js +76 -0
  52. package/dist/skeleton.esm.js.map +1 -0
  53. package/dist/table.cjs.js +254 -0
  54. package/dist/table.cjs.js.map +1 -0
  55. package/dist/table.esm.js +153 -0
  56. package/dist/table.esm.js.map +1 -0
  57. package/dist/tooltip.cjs.js +173 -0
  58. package/dist/tooltip.cjs.js.map +1 -0
  59. package/dist/tooltip.esm.js +88 -0
  60. package/dist/tooltip.esm.js.map +1 -0
  61. package/package.json +105 -105
  62. package/dist/alert.cjs +0 -2
  63. package/dist/alert.cjs.map +0 -1
  64. package/dist/alert.js +0 -2
  65. package/dist/alert.js.map +0 -1
  66. package/dist/breadcrumb.cjs +0 -2
  67. package/dist/breadcrumb.cjs.map +0 -1
  68. package/dist/breadcrumb.js +0 -2
  69. package/dist/breadcrumb.js.map +0 -1
  70. package/dist/button.cjs +0 -2
  71. package/dist/button.cjs.map +0 -1
  72. package/dist/button.js +0 -2
  73. package/dist/button.js.map +0 -1
  74. package/dist/command.cjs +0 -2
  75. package/dist/command.cjs.map +0 -1
  76. package/dist/command.js +0 -2
  77. package/dist/command.js.map +0 -1
  78. package/dist/dialog.cjs +0 -2
  79. package/dist/dialog.cjs.map +0 -1
  80. package/dist/dialog.js +0 -2
  81. package/dist/dialog.js.map +0 -1
  82. package/dist/hooks/use-mobile.cjs +0 -2
  83. package/dist/hooks/use-mobile.cjs.map +0 -1
  84. package/dist/hooks/use-mobile.js +0 -2
  85. package/dist/hooks/use-mobile.js.map +0 -1
  86. package/dist/input.cjs +0 -2
  87. package/dist/input.cjs.map +0 -1
  88. package/dist/input.js +0 -2
  89. package/dist/input.js.map +0 -1
  90. package/dist/popover.cjs +0 -2
  91. package/dist/popover.cjs.map +0 -1
  92. package/dist/popover.js +0 -2
  93. package/dist/popover.js.map +0 -1
  94. package/dist/select.cjs +0 -2
  95. package/dist/select.cjs.map +0 -1
  96. package/dist/select.js +0 -2
  97. package/dist/select.js.map +0 -1
  98. package/dist/separator.cjs +0 -2
  99. package/dist/separator.cjs.map +0 -1
  100. package/dist/separator.js +0 -2
  101. package/dist/separator.js.map +0 -1
  102. package/dist/sheet.cjs +0 -2
  103. package/dist/sheet.cjs.map +0 -1
  104. package/dist/sheet.js +0 -2
  105. package/dist/sheet.js.map +0 -1
  106. package/dist/sidebar.cjs +0 -2
  107. package/dist/sidebar.cjs.map +0 -1
  108. package/dist/sidebar.js +0 -2
  109. package/dist/sidebar.js.map +0 -1
  110. package/dist/skeleton.cjs +0 -2
  111. package/dist/skeleton.cjs.map +0 -1
  112. package/dist/skeleton.js +0 -2
  113. package/dist/skeleton.js.map +0 -1
  114. package/dist/table.cjs +0 -2
  115. package/dist/table.cjs.map +0 -1
  116. package/dist/table.js +0 -2
  117. package/dist/table.js.map +0 -1
  118. package/dist/tooltip.cjs +0 -2
  119. package/dist/tooltip.cjs.map +0 -1
  120. package/dist/tooltip.js +0 -2
  121. package/dist/tooltip.js.map +0 -1
package/dist/dialog.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";import*as s from"react";import*as e from"@radix-ui/react-dialog";import{X as f}from"lucide-react";import{clsx as c}from"clsx";import{twMerge as d}from"tailwind-merge";function r(...t){return d(c(t))}import{jsx as o,jsxs as n}from"react/jsx-runtime";var k=e.Root,H=e.Trigger,p=e.Portal,L=e.Close,l=s.forwardRef(({className:t,...a},i)=>o(e.Overlay,{ref:i,className:r("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a}));l.displayName=e.Overlay.displayName;var g=s.forwardRef(({className:t,children:a,...i},m)=>n(p,{children:[o(l,{}),n(e.Content,{ref:m,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...i,children:[a,n(e.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[o(f,{className:"h-4 w-4"}),o("span",{className:"sr-only",children:"Close"})]})]})]}));g.displayName=e.Content.displayName;var u=({className:t,...a})=>o("div",{className:r("flex flex-col space-y-1.5 text-center sm:text-left",t),...a});u.displayName="DialogHeader";var D=({className:t,...a})=>o("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});D.displayName="DialogFooter";var y=s.forwardRef(({className:t,...a},i)=>o(e.Title,{ref:i,className:r("text-lg font-semibold leading-none tracking-tight",t),...a}));y.displayName=e.Title.displayName;var P=s.forwardRef(({className:t,...a},i)=>o(e.Description,{ref:i,className:r("text-sm text-muted-foreground",t),...a}));P.displayName=e.Description.displayName;export{k as Dialog,L as DialogClose,g as DialogContent,P as DialogDescription,D as DialogFooter,u as DialogHeader,l as DialogOverlay,p as DialogPortal,y as DialogTitle,H as DialogTrigger};
2
- //# sourceMappingURL=dialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/dialog.tsx","../../utils/src/classMerge.ts"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { X } from \"lucide-react\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n));\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\nconst DialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col space-y-1.5 text-center sm:text-left\",\n className,\n )}\n {...props}\n />\n);\nDialogHeader.displayName = \"DialogHeader\";\n\nconst DialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n className,\n )}\n {...props}\n />\n);\nDialogFooter.displayName = \"DialogFooter\";\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\n \"text-lg font-semibold leading-none tracking-tight\",\n className,\n )}\n {...props}\n />\n));\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n};\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"aAEA,UAAYA,MAAW,QACvB,UAAYC,MAAqB,yBACjC,OAAS,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,EACC,GAAGC,EACR,CACH,EACDQ,EAAY,YAA8B,QAAM,YAEhD,IAAMC,EAA0B,aAG9B,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAiB,cAAhB,CACG,IAAKS,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACR,CACH,EACDS,EAAkB,YAA8B,cAAY","names":["React","DialogPrimitive","X","clsx","twMerge","cn","inputs","jsx","jsxs","Dialog","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","className","props","ref","cn","DialogContent","children","X","DialogHeader","DialogFooter","DialogTitle","DialogDescription"]}
@@ -1,2 +0,0 @@
1
- "use strict";var s=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var h=(n,e)=>{for(var t in e)s(n,t,{get:e[t],enumerable:!0})},w=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of c(e))!u.call(n,o)&&o!==t&&s(n,o,{get:()=>e[o],enumerable:!(i=a(e,o))||i.enumerable});return n};var f=n=>w(s({},"__esModule",{value:!0}),n);var l={};h(l,{useIsMobile:()=>m});module.exports=f(l);var d=require("react"),r=768;function m(){let[n,e]=(0,d.useState)(void 0);return(0,d.useEffect)(()=>{let t=window.matchMedia(`(max-width: ${r-1}px)`),i=()=>{e(window.innerWidth<r)};return t.addEventListener("change",i),e(window.innerWidth<r),()=>t.removeEventListener("change",i)},[]),!!n}0&&(module.exports={useIsMobile});
2
- //# sourceMappingURL=use-mobile.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/hooks/use-mobile.tsx"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nconst MOBILE_BREAKPOINT = 768;\n\nexport function useIsMobile() {\n const [isMobile, setIsMobile] = useState<boolean | undefined>(undefined);\n\n useEffect(() => {\n const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);\n const onChange = () => {\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n };\n mql.addEventListener(\"change\", onChange);\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n return () => mql.removeEventListener(\"change\", onChange);\n }, []);\n\n return !!isMobile;\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,iBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAoC,iBAE9BC,EAAoB,IAEnB,SAASH,GAAc,CAC5B,GAAM,CAACI,EAAUC,CAAW,KAAI,YAA8B,MAAS,EAEvE,sBAAU,IAAM,CACd,IAAMC,EAAM,OAAO,WAAW,eAAeH,EAAoB,CAAC,KAAK,EACjEI,EAAW,IAAM,CACrBF,EAAY,OAAO,WAAaF,CAAiB,CACnD,EACA,OAAAG,EAAI,iBAAiB,SAAUC,CAAQ,EACvCF,EAAY,OAAO,WAAaF,CAAiB,EAC1C,IAAMG,EAAI,oBAAoB,SAAUC,CAAQ,CACzD,EAAG,CAAC,CAAC,EAEE,CAAC,CAACH,CACX","names":["use_mobile_exports","__export","useIsMobile","__toCommonJS","import_react","MOBILE_BREAKPOINT","isMobile","setIsMobile","mql","onChange"]}
@@ -1,2 +0,0 @@
1
- import{useEffect as d,useState as s}from"react";var e=768;function a(){let[o,n]=s(void 0);return d(()=>{let t=window.matchMedia(`(max-width: ${e-1}px)`),i=()=>{n(window.innerWidth<e)};return t.addEventListener("change",i),n(window.innerWidth<e),()=>t.removeEventListener("change",i)},[]),!!o}export{a as useIsMobile};
2
- //# sourceMappingURL=use-mobile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/hooks/use-mobile.tsx"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nconst MOBILE_BREAKPOINT = 768;\n\nexport function useIsMobile() {\n const [isMobile, setIsMobile] = useState<boolean | undefined>(undefined);\n\n useEffect(() => {\n const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);\n const onChange = () => {\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n };\n mql.addEventListener(\"change\", onChange);\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n return () => mql.removeEventListener(\"change\", onChange);\n }, []);\n\n return !!isMobile;\n}\n"],"mappings":"AAAA,OAAS,aAAAA,EAAW,YAAAC,MAAgB,QAEpC,IAAMC,EAAoB,IAEnB,SAASC,GAAc,CAC5B,GAAM,CAACC,EAAUC,CAAW,EAAIJ,EAA8B,MAAS,EAEvE,OAAAD,EAAU,IAAM,CACd,IAAMM,EAAM,OAAO,WAAW,eAAeJ,EAAoB,CAAC,KAAK,EACjEK,EAAW,IAAM,CACrBF,EAAY,OAAO,WAAaH,CAAiB,CACnD,EACA,OAAAI,EAAI,iBAAiB,SAAUC,CAAQ,EACvCF,EAAY,OAAO,WAAaH,CAAiB,EAC1C,IAAMI,EAAI,oBAAoB,SAAUC,CAAQ,CACzD,EAAG,CAAC,CAAC,EAEE,CAAC,CAACH,CACX","names":["useEffect","useState","MOBILE_BREAKPOINT","useIsMobile","isMobile","setIsMobile","mql","onChange"]}
package/dist/input.cjs DELETED
@@ -1,2 +0,0 @@
1
- "use strict";var f=Object.create;var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var h=(e,r)=>{for(var t in r)a(e,t,{get:r[t],enumerable:!0})},s=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of g(r))!y.call(e,o)&&o!==t&&a(e,o,{get:()=>r[o],enumerable:!(n=d(r,o))||n.enumerable});return e};var b=(e,r,t)=>(t=e!=null?f(x(e)):{},s(r||!e||!e.__esModule?a(t,"default",{value:e,enumerable:!0}):t,e)),P=e=>s(a({},"__esModule",{value:!0}),e);var w={};h(w,{Input:()=>u});module.exports=P(w);var p=b(require("react"),1);var i=require("clsx"),m=require("tailwind-merge");function l(...e){return(0,m.twMerge)((0,i.clsx)(e))}var c=require("react/jsx-runtime"),u=p.forwardRef(({className:e,type:r,...t},n)=>(0,c.jsx)("input",{type:r,className:l("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));u.displayName="Input";0&&(module.exports={Input});
2
- //# sourceMappingURL=input.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/input.tsx","../../utils/src/classMerge.ts"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<\"input\">>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\nInput.displayName = \"Input\";\n\nexport { Input };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAuB,sBCAvB,IAAAC,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CACxC,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC/B,CDEY,IAAAC,EAAA,6BAHNC,EAAc,aAChB,CAAC,CAAE,UAAAC,EAAW,KAAAC,EAAM,GAAGC,CAAM,EAAGC,OAExB,OAAC,SACG,KAAMF,EACN,UAAWG,EACP,0WACAJ,CACJ,EACA,IAAKG,EACJ,GAAGD,EACR,CAGZ,EACAH,EAAM,YAAc","names":["input_exports","__export","Input","__toCommonJS","React","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","Input","className","type","props","ref","cn"]}
package/dist/input.js DELETED
@@ -1,2 +0,0 @@
1
- import*as t from"react";import{clsx as s}from"clsx";import{twMerge as i}from"tailwind-merge";function r(...e){return i(s(e))}import{jsx as l}from"react/jsx-runtime";var m=t.forwardRef(({className:e,type:o,...n},a)=>l("input",{type:o,className:r("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:a,...n}));m.displayName="Input";export{m as Input};
2
- //# sourceMappingURL=input.js.map
package/dist/input.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/input.tsx","../../utils/src/classMerge.ts"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<\"input\">>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\nInput.displayName = \"Input\";\n\nexport { Input };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"AAAA,UAAYA,MAAW,QCAvB,OAAS,QAAAC,MAA6B,OACtC,OAAS,WAAAC,MAAe,iBAEjB,SAASC,KAAMC,EAAsB,CACxC,OAAOF,EAAQD,EAAKG,CAAM,CAAC,CAC/B,CDEY,cAAAC,MAAA,oBAHZ,IAAMC,EAAc,aAChB,CAAC,CAAE,UAAAC,EAAW,KAAAC,EAAM,GAAGC,CAAM,EAAGC,IAExBL,EAAC,SACG,KAAMG,EACN,UAAWG,EACP,0WACAJ,CACJ,EACA,IAAKG,EACJ,GAAGD,EACR,CAGZ,EACAH,EAAM,YAAc","names":["React","clsx","twMerge","cn","inputs","jsx","Input","className","type","props","ref","cn"]}
package/dist/popover.cjs DELETED
@@ -1,2 +0,0 @@
1
- "use strict";var v=Object.create;var i=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var C=(e,o)=>{for(var r in o)i(e,r,{get:o[r],enumerable:!0})},m=(e,o,r,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of g(o))!y.call(e,a)&&a!==r&&i(e,a,{get:()=>o[a],enumerable:!(n=u(o,a))||n.enumerable});return e};var p=(e,o,r)=>(r=e!=null?v(h(e)):{},m(o||!e||!e.__esModule?i(r,"default",{value:e,enumerable:!0}):r,e)),R=e=>m(i({},"__esModule",{value:!0}),e);var b={};C(b,{Popover:()=>x,PopoverAnchor:()=>T,PopoverContent:()=>l,PopoverTrigger:()=>w});module.exports=R(b);var P=p(require("react"),1),t=p(require("@radix-ui/react-popover"),1);var d=require("clsx"),c=require("tailwind-merge");function f(...e){return(0,c.twMerge)((0,d.clsx)(e))}var s=require("react/jsx-runtime"),x=t.Root,w=t.Trigger,T=t.Anchor,l=P.forwardRef(({className:e,align:o="center",sideOffset:r=4,...n},a)=>(0,s.jsx)(t.Portal,{children:(0,s.jsx)(t.Content,{ref:a,align:o,sideOffset:r,className:f("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));l.displayName=t.Content.displayName;0&&(module.exports={Popover,PopoverAnchor,PopoverContent,PopoverTrigger});
2
- //# sourceMappingURL=popover.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/popover.tsx","../../utils/src/classMerge.ts"],"sourcesContent":["import * as React from \"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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\",\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,EAAA,kBAAAC,EAAA,mBAAAC,EAAA,mBAAAC,IAAA,eAAAC,EAAAN,GAAA,IAAAO,EAAuB,sBACvBC,EAAkC,wCCDlC,IAAAC,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CACxC,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC/B,CDWQ,IAAAC,EAAA,6BAXFC,EAA2B,OAE3BC,EAAkC,UAElCC,EAAiC,SAEjCC,EAAuB,aAG3B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,OAC1D,OAAkB,SAAjB,CACG,mBAAkB,UAAjB,CACG,IAAKA,EACL,MAAOH,EACP,WAAYC,EACZ,UAAWG,EACP,6aACAL,CACJ,EACC,GAAGG,EACR,EACJ,CACH,EACDJ,EAAe,YAA+B,UAAQ","names":["popover_exports","__export","Popover","PopoverAnchor","PopoverContent","PopoverTrigger","__toCommonJS","React","PopoverPrimitive","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","Popover","PopoverTrigger","PopoverAnchor","PopoverContent","className","align","sideOffset","props","ref","cn"]}
package/dist/popover.js DELETED
@@ -1,2 +0,0 @@
1
- import*as a from"react";import*as e from"@radix-ui/react-popover";import{clsx as p}from"clsx";import{twMerge as d}from"tailwind-merge";function t(...o){return d(p(o))}import{jsx as r}from"react/jsx-runtime";var x=e.Root,w=e.Trigger,T=e.Anchor,c=a.forwardRef(({className:o,align:n="center",sideOffset:i=4,...s},m)=>r(e.Portal,{children:r(e.Content,{ref:m,align:n,sideOffset:i,className:t("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",o),...s})}));c.displayName=e.Content.displayName;export{x as Popover,T as PopoverAnchor,c as PopoverContent,w as PopoverTrigger};
2
- //# sourceMappingURL=popover.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/popover.tsx","../../utils/src/classMerge.ts"],"sourcesContent":["import * as React from \"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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\",\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,0BCDlC,OAAS,QAAAC,MAA6B,OACtC,OAAS,WAAAC,MAAe,iBAEjB,SAASC,KAAMC,EAAsB,CACxC,OAAOF,EAAQD,EAAKG,CAAM,CAAC,CAC/B,CDWQ,cAAAC,MAAA,oBAXR,IAAMC,EAA2B,OAE3BC,EAAkC,UAElCC,EAAiC,SAEjCC,EAAuB,aAG3B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IAC1DT,EAAkB,SAAjB,CACG,SAAAA,EAAkB,UAAjB,CACG,IAAKS,EACL,MAAOH,EACP,WAAYC,EACZ,UAAWG,EACP,6aACAL,CACJ,EACC,GAAGG,EACR,EACJ,CACH,EACDJ,EAAe,YAA+B,UAAQ","names":["React","PopoverPrimitive","clsx","twMerge","cn","inputs","jsx","Popover","PopoverTrigger","PopoverAnchor","PopoverContent","className","align","sideOffset","props","ref","cn"]}
package/dist/select.cjs DELETED
@@ -1,2 +0,0 @@
1
- "use strict";var w=Object.create;var s=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var I=(t,r)=>{for(var i in r)s(t,i,{get:r[i],enumerable:!0})},f=(t,r,i,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of N(r))!b.call(t,n)&&n!==i&&s(t,n,{get:()=>r[n],enumerable:!(l=x(r,n))||l.enumerable});return t};var u=(t,r,i)=>(i=t!=null?w(C(t)):{},f(r||!t||!t.__esModule?s(i,"default",{value:t,enumerable:!0}):i,t)),B=t=>f(s({},"__esModule",{value:!0}),t);var W={};I(W,{Select:()=>T,SelectContent:()=>y,SelectGroup:()=>U,SelectItem:()=>h,SelectLabel:()=>R,SelectScrollDownButton:()=>d,SelectScrollUpButton:()=>p,SelectSeparator:()=>g,SelectTrigger:()=>v,SelectValue:()=>E});module.exports=B(W);var c=u(require("react"),1),e=u(require("@radix-ui/react-select"),1),m=require("lucide-react");var S=require("clsx"),P=require("tailwind-merge");function a(...t){return(0,P.twMerge)((0,S.clsx)(t))}var o=require("react/jsx-runtime"),T=e.Root,U=e.Group,E=e.Value,v=c.forwardRef(({className:t,children:r,...i},l)=>(0,o.jsxs)(e.Trigger,{ref:l,className:a("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...i,children:[r,(0,o.jsx)(e.Icon,{asChild:!0,children:(0,o.jsx)(m.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));v.displayName=e.Trigger.displayName;var p=c.forwardRef(({className:t,...r},i)=>(0,o.jsx)(e.ScrollUpButton,{ref:i,className:a("flex cursor-default items-center justify-center py-1",t),...r,children:(0,o.jsx)(m.ChevronUp,{className:"h-4 w-4"})}));p.displayName=e.ScrollUpButton.displayName;var d=c.forwardRef(({className:t,...r},i)=>(0,o.jsx)(e.ScrollDownButton,{ref:i,className:a("flex cursor-default items-center justify-center py-1",t),...r,children:(0,o.jsx)(m.ChevronDown,{className:"h-4 w-4"})}));d.displayName=e.ScrollDownButton.displayName;var y=c.forwardRef(({className:t,children:r,position:i="popper",...l},n)=>(0,o.jsx)(e.Portal,{children:(0,o.jsxs)(e.Content,{ref:n,className:a("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:i,...l,children:[(0,o.jsx)(p,{}),(0,o.jsx)(e.Viewport,{className:a("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,o.jsx)(d,{})]})}));y.displayName=e.Content.displayName;var R=c.forwardRef(({className:t,...r},i)=>(0,o.jsx)(e.Label,{ref:i,className:a("px-2 py-1.5 text-sm font-semibold",t),...r}));R.displayName=e.Label.displayName;var h=c.forwardRef(({className:t,children:r,...i},l)=>(0,o.jsxs)(e.Item,{ref:l,className:a("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...i,children:[(0,o.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,o.jsx)(e.ItemIndicator,{children:(0,o.jsx)(m.Check,{className:"h-4 w-4"})})}),(0,o.jsx)(e.ItemText,{children:r})]}));h.displayName=e.Item.displayName;var g=c.forwardRef(({className:t,...r},i)=>(0,o.jsx)(e.Separator,{ref:i,className:a("-mx-1 my-1 h-px bg-muted",t),...r}));g.displayName=e.Separator.displayName;0&&(module.exports={Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue});
2
- //# sourceMappingURL=select.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/select.tsx","../../utils/src/classMerge.ts"],"sourcesContent":["import * as React from \"react\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1\",\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n \"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"p-1\",\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\",\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn(\"px-2 py-1.5 text-sm font-semibold\", className)}\n {...props}\n />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,YAAAE,EAAA,kBAAAC,EAAA,gBAAAC,EAAA,eAAAC,EAAA,gBAAAC,EAAA,2BAAAC,EAAA,yBAAAC,EAAA,oBAAAC,EAAA,kBAAAC,EAAA,gBAAAC,IAAA,eAAAC,EAAAZ,GAAA,IAAAa,EAAuB,sBACvBC,EAAiC,uCACjCC,EAA8C,wBCF9C,IAAAC,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CACxC,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC/B,CDWI,IAAAC,EAAA,6BAVEC,EAAyB,OAEzBC,EAA8B,QAE9BC,EAA8B,QAE9BC,EAAsB,aAG1B,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,CAAM,EAAGC,OAClC,QAAiB,UAAhB,CACG,I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,aAGvB,CAAC,CAAE,UAAAV,EAAW,SAAAC,EAAU,GAAGC,CAAM,EAAGC,OAClC,QAAiB,OAAhB,CACG,IAAKA,EACL,UAAWC,EACP,4NACAJ,CACJ,EACC,GAAGE,EAEJ,oBAAC,QAAK,UAAU,gEACZ,mBAAiB,gBAAhB,CACG,mBAAC,SAAM,UAAU,UAAU,EAC/B,EACJ,KACA,OAAiB,WAAhB,CAA0B,SAAAD,EAAS,GACxC,CACH,EACDS,EAAW,YAA8B,OAAK,YAE9C,IAAMC,EAAwB,aAG5B,CAAC,CAAE,UAAAX,EAAW,GAAGE,CAAM,EAAGC,OACxB,OAAiB,YAAhB,CACG,IAAKA,EACL,UAAWC,EAAG,2BAA4BJ,CAAS,EAClD,GAAGE,EACR,CACH,EACDS,EAAgB,YAA8B,YAAU","names":["select_exports","__export","Select","SelectContent","SelectGroup","SelectItem","SelectLabel","SelectScrollDownButton","SelectScrollUpButton","SelectSeparator","SelectTrigger","SelectValue","__toCommonJS","React","SelectPrimitive","import_lucide_react","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","Select","SelectGroup","SelectValue","SelectTrigger","className","children","props","ref","cn","SelectScrollUpButton","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","SelectSeparator"]}
package/dist/select.js DELETED
@@ -1,2 +0,0 @@
1
- import*as l from"react";import*as e from"@radix-ui/react-select";import{Check as S,ChevronDown as m,ChevronUp as P}from"lucide-react";import{clsx as f}from"clsx";import{twMerge as u}from"tailwind-merge";function a(...r){return u(f(r))}import{jsx as t,jsxs as n}from"react/jsx-runtime";var D=e.Root,L=e.Group,V=e.Value,v=l.forwardRef(({className:r,children:o,...i},c)=>n(e.Trigger,{ref:c,className:a("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...i,children:[o,t(e.Icon,{asChild:!0,children:t(m,{className:"h-4 w-4 opacity-50"})})]}));v.displayName=e.Trigger.displayName;var s=l.forwardRef(({className:r,...o},i)=>t(e.ScrollUpButton,{ref:i,className:a("flex cursor-default items-center justify-center py-1",r),...o,children:t(P,{className:"h-4 w-4"})}));s.displayName=e.ScrollUpButton.displayName;var p=l.forwardRef(({className:r,...o},i)=>t(e.ScrollDownButton,{ref:i,className:a("flex cursor-default items-center justify-center py-1",r),...o,children:t(m,{className:"h-4 w-4"})}));p.displayName=e.ScrollDownButton.displayName;var y=l.forwardRef(({className:r,children:o,position:i="popper",...c},d)=>t(e.Portal,{children:n(e.Content,{ref:d,className:a("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:i,...c,children:[t(s,{}),t(e.Viewport,{className:a("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),t(p,{})]})}));y.displayName=e.Content.displayName;var R=l.forwardRef(({className:r,...o},i)=>t(e.Label,{ref:i,className:a("px-2 py-1.5 text-sm font-semibold",r),...o}));R.displayName=e.Label.displayName;var h=l.forwardRef(({className:r,children:o,...i},c)=>n(e.Item,{ref:c,className:a("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[t("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:t(e.ItemIndicator,{children:t(S,{className:"h-4 w-4"})})}),t(e.ItemText,{children:o})]}));h.displayName=e.Item.displayName;var g=l.forwardRef(({className:r,...o},i)=>t(e.Separator,{ref:i,className:a("-mx-1 my-1 h-px bg-muted",r),...o}));g.displayName=e.Separator.displayName;export{D as Select,y as SelectContent,L as SelectGroup,h as SelectItem,R as SelectLabel,p as SelectScrollDownButton,s as SelectScrollUpButton,g as SelectSeparator,v as SelectTrigger,V as SelectValue};
2
- //# sourceMappingURL=select.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/select.tsx","../../utils/src/classMerge.ts"],"sourcesContent":["import * as React from \"react\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1\",\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n \"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"p-1\",\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\",\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn(\"px-2 py-1.5 text-sm font-semibold\", className)}\n {...props}\n />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,UAAYC,MAAqB,yBACjC,OAAS,SAAAC,EAAO,eAAAC,EAAa,aAAAC,MAAiB,eCF9C,OAAS,QAAAC,MAA6B,OACtC,OAAS,WAAAC,MAAe,iBAEjB,SAASC,KAAMC,EAAsB,CACxC,OAAOF,EAAQD,EAAKG,CAAM,CAAC,CAC/B,CDWI,OAUQ,OAAAC,EAVR,QAAAC,MAAA,oBAVJ,IAAMC,EAAyB,OAEzBC,EAA8B,QAE9BC,EAA8B,QAE9BC,EAAsB,aAG1B,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAClCR,EAAiB,UAAhB,CACG,IAAKQ,EACL,UAAWC,EACP,iUACAJ,CACJ,EACC,GAAGE,EAEH,UAAAD,EACDP,EAAiB,OAAhB,CAAqB,QAAO,GACzB,SAAAA,EAACW,EAAA,CAAY,UAAU,qBAAqB,EAChD,GACJ,CACH,EACDN,EAAc,YAA8B,UAAQ,YAEpD,IAAMO,EAA6B,aAGjC,CAAC,CAAE,UAAAN,EAAW,GAAGE,CAAM,EAAGC,IACxBT,EAAiB,iBAAhB,CACG,IAAKS,EACL,UAAWC,EACP,uDACAJ,CACJ,EACC,GAAGE,EAEJ,SAAAR,EAACa,EAAA,CAAU,UAAU,UAAU,EACnC,CACH,EACDD,EAAqB,YAA8B,iBAAe,YAElE,IAAME,EAA+B,aAGnC,CAAC,CAAE,UAAAR,EAAW,GAAGE,CAAM,EAAGC,IACxBT,EAAiB,mBAAhB,CACG,IAAKS,EACL,UAAWC,EACP,uDACAJ,CACJ,EACC,GAAGE,EAEJ,SAAAR,EAACW,EAAA,CAAY,UAAU,UAAU,EACrC,CACH,EACDG,EAAuB,YACH,mBAAiB,YAEr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s","Select","SelectGroup","SelectValue","SelectTrigger","className","children","props","ref","cn","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","Check","SelectSeparator"]}
@@ -1,2 +0,0 @@
1
- "use strict";var y=Object.create;var n=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var g=(e,r)=>{for(var t in r)n(e,t,{get:r[t],enumerable:!0})},s=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of d(r))!x.call(e,o)&&o!==t&&n(e,o,{get:()=>r[o],enumerable:!(a=P(r,o))||a.enumerable});return e};var m=(e,r,t)=>(t=e!=null?y(R(e)):{},s(r||!e||!e.__esModule?n(t,"default",{value:e,enumerable:!0}):t,e)),v=e=>s(n({},"__esModule",{value:!0}),e);var C={};g(C,{Separator:()=>u});module.exports=v(C);var l=m(require("react"),1),i=m(require("@radix-ui/react-separator"),1);var p=require("clsx"),c=require("tailwind-merge");function f(...e){return(0,c.twMerge)((0,p.clsx)(e))}var h=require("react/jsx-runtime"),u=l.forwardRef(({className:e,orientation:r="horizontal",decorative:t=!0,...a},o)=>(0,h.jsx)(i.Root,{ref:o,decorative:t,orientation:r,className:f("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...a}));u.displayName=i.Root.displayName;0&&(module.exports={Separator});
2
- //# sourceMappingURL=separator.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/separator.tsx","../../utils/src/classMerge.ts"],"sourcesContent":["import * as React from \"react\";\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(\n (\n { className, orientation = \"horizontal\", decorative = true, ...props },\n ref,\n ) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"shrink-0 bg-border\",\n orientation === \"horizontal\" ? \"h-[1px] w-full\" : \"h-full w-[1px]\",\n className,\n )}\n {...props}\n />\n ),\n);\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,eAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAuB,sBACvBC,EAAoC,0CCDpC,IAAAC,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CACxC,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC/B,CDQQ,IAAAC,EAAA,6BARFC,EAAkB,aAIpB,CACI,CAAE,UAAAC,EAAW,YAAAC,EAAc,aAAc,WAAAC,EAAa,GAAM,GAAGC,CAAM,EACrEC,OAEA,OAAoB,OAAnB,CACG,IAAKA,EACL,WAAYF,EACZ,YAAaD,EACb,UAAWI,EACP,qBACAJ,IAAgB,aAAe,iBAAmB,iBAClDD,CACJ,EACC,GAAGG,EACR,CAER,EACAJ,EAAU,YAAiC,OAAK","names":["separator_exports","__export","Separator","__toCommonJS","React","SeparatorPrimitive","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","Separator","className","orientation","decorative","props","ref","cn"]}
package/dist/separator.js DELETED
@@ -1,2 +0,0 @@
1
- import*as a from"react";import*as r from"@radix-ui/react-separator";import{clsx as m}from"clsx";import{twMerge as p}from"tailwind-merge";function o(...e){return p(m(e))}import{jsx as f}from"react/jsx-runtime";var c=a.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...i},s)=>f(r.Root,{ref:s,decorative:n,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...i}));c.displayName=r.Root.displayName;export{c as Separator};
2
- //# sourceMappingURL=separator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/separator.tsx","../../utils/src/classMerge.ts"],"sourcesContent":["import * as React from \"react\";\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(\n (\n { className, orientation = \"horizontal\", decorative = true, ...props },\n ref,\n ) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"shrink-0 bg-border\",\n orientation === \"horizontal\" ? \"h-[1px] w-full\" : \"h-full w-[1px]\",\n className,\n )}\n {...props}\n />\n ),\n);\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BCDpC,OAAS,QAAAC,MAA6B,OACtC,OAAS,WAAAC,MAAe,iBAEjB,SAASC,KAAMC,EAAsB,CACxC,OAAOF,EAAQD,EAAKG,CAAM,CAAC,CAC/B,CDQQ,cAAAC,MAAA,oBARR,IAAMC,EAAkB,aAIpB,CACI,CAAE,UAAAC,EAAW,YAAAC,EAAc,aAAc,WAAAC,EAAa,GAAM,GAAGC,CAAM,EACrEC,IAEAN,EAAoB,OAAnB,CACG,IAAKM,EACL,WAAYF,EACZ,YAAaD,EACb,UAAWI,EACP,qBACAJ,IAAgB,aAAe,iBAAmB,iBAClDD,CACJ,EACC,GAAGG,EACR,CAER,EACAJ,EAAU,YAAiC,OAAK","names":["React","SeparatorPrimitive","clsx","twMerge","cn","inputs","jsx","Separator","className","orientation","decorative","props","ref","cn"]}
package/dist/sheet.cjs DELETED
@@ -1,2 +0,0 @@
1
- "use strict";"use client";var C=Object.create;var l=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var O=(e,t)=>{for(var a in t)l(e,a,{get:t[a],enumerable:!0})},d=(e,t,a,m)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of N(t))!T.call(e,r)&&r!==a&&l(e,r,{get:()=>t[r],enumerable:!(m=b(t,r))||m.enumerable});return e};var p=(e,t,a)=>(a=e!=null?C(w(e)):{},d(t||!e||!e.__esModule?l(a,"default",{value:e,enumerable:!0}):a,e)),E=e=>d(l({},"__esModule",{value:!0}),e);var L={};O(L,{Sheet:()=>D,SheetClose:()=>k,SheetContent:()=>S,SheetDescription:()=>x,SheetFooter:()=>g,SheetHeader:()=>v,SheetOverlay:()=>c,SheetPortal:()=>P,SheetTitle:()=>R,SheetTrigger:()=>V});module.exports=E(L);var n=p(require("react"),1),o=p(require("@radix-ui/react-dialog"),1),u=require("class-variance-authority"),y=require("lucide-react");var f=require("clsx"),h=require("tailwind-merge");function s(...e){return(0,h.twMerge)((0,f.clsx)(e))}var i=require("react/jsx-runtime"),D=o.Root,V=o.Trigger,k=o.Close,P=o.Portal,c=n.forwardRef(({className:e,...t},a)=>(0,i.jsx)(o.Overlay,{className:s("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));c.displayName=o.Overlay.displayName;var H=(0,u.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),S=n.forwardRef(({side:e="right",className:t,children:a,...m},r)=>(0,i.jsxs)(P,{children:[(0,i.jsx)(c,{}),(0,i.jsxs)(o.Content,{ref:r,className:s(H({side:e}),t),...m,children:[(0,i.jsxs)(o.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,i.jsx)(y.X,{className:"h-4 w-4"}),(0,i.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));S.displayName=o.Content.displayName;var v=({className:e,...t})=>(0,i.jsx)("div",{className:s("flex flex-col space-y-2 text-center sm:text-left",e),...t});v.displayName="SheetHeader";var g=({className:e,...t})=>(0,i.jsx)("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});g.displayName="SheetFooter";var R=n.forwardRef(({className:e,...t},a)=>(0,i.jsx)(o.Title,{ref:a,className:s("text-lg font-semibold text-foreground",e),...t}));R.displayName=o.Title.displayName;var x=n.forwardRef(({className:e,...t},a)=>(0,i.jsx)(o.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));x.displayName=o.Description.displayName;0&&(module.exports={Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger});
2
- //# sourceMappingURL=sheet.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/sheet.tsx","../../utils/src/classMerge.ts"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { X } from \"lucide-react\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n className={cn(\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n \"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n bottom:\n \"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n },\n);\n\ninterface SheetContentProps\n extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> { }\n\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = \"right\", className, children, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n <SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n {children}\n </SheetPrimitive.Content>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col space-y-2 text-center sm:text-left\",\n className,\n )}\n {...props}\n />\n);\nSheetHeader.displayName = \"SheetHeader\";\n\nconst SheetFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n className,\n )}\n {...props}\n />\n);\nSheetFooter.displayName = \"SheetFooter\";\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold text-foreground\", className)}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,EAAA,eAAAC,EAAA,iBAAAC,EAAA,qBAAAC,EAAA,gBAAAC,EAAA,gBAAAC,EAAA,iBAAAC,EAAA,gBAAAC,EAAA,eAAAC,EAAA,iBAAAC,IAAA,eAAAC,EAAAZ,GAEA,IAAAa,EAAuB,sBACvBC,EAAgC,uCAChCC,EAAuC,oCACvCC,EAAkB,wBCLlB,IAAAC,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CACxC,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC/B,CDgBI,IAAAC,EAAA,6BAZEC,EAAuB,OAEvBC,EAA8B,UAE9BC,EAA4B,QAE5BC,EAA6B,SAE7BC,EAAqB,aAGzB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,OACxB,OAAgB,UAAf,CACG,UAAWC,EACP,0JACAH,CACJ,EACC,GAAGC,EACJ,IAAKC,EACT,CACH,EACDH,EAAa,YAA6B,UAAQ,YAElD,IAAMK,KAAgB,OAClB,mMACA,CACI,SAAU,CACN,KAAM,CACF,IAAK,oGACL,OACI,6GACJ,KAAM,gIACN,MACI,kIACR,CACJ,EACA,gBAAiB,CACb,KAAM,OACV,CACJ,CACJ,EAMMC,EAAqB,aAGzB,CAAC,CAAE,KAAAC,EAAO,QAAS,UAAAN,EAAW,SAAAO,EAAU,GAAGN,CAAM,EAAGC,OAClD,QAACJ,EAAA,CACG,oBAACC,EAAA,EAAa,KACd,QAAgB,UAAf,CACG,IAAKG,EACL,UAAWC,EAAGC,EAAc,CAAE,KAAAE,CAAK,CAAC,EAAGN,CAAS,EAC/C,GAAGC,EAEJ,qBAAgB,QAAf,CAAqB,UAAU,2OAC5B,oBAAC,KAAE,UAAU,UAAU,KACvB,OAAC,QAAK,UAAU,UAAU,iBAAK,GACnC,EACCM,GACL,GACJ,CACH,EACDF,EAAa,YAA6B,UAAQ,YAElD,IAAMG,EAAc,CAAC,CACjB,UAAAR,EACA,GAAGC,CACP,OACI,OAAC,OACG,UAAWE,EACP,mDACAH,CACJ,EACC,GAAGC,EACR,EAEJO,EAAY,YAAc,cAE1B,IAAMC,EAAc,CAAC,CACjB,UAAAT,EACA,GAAGC,CACP,OACI,OAAC,OACG,UAAWE,EACP,gEACAH,CACJ,EACC,GAAGC,EACR,EAEJQ,EAAY,YAAc,cAE1B,IAAMC,EAAmB,aAGvB,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,OACxB,OAAgB,QAAf,CACG,IAAKA,EACL,UAAWC,EAAG,wCAAyCH,CAAS,EAC/D,GAAGC,EACR,CACH,EACDS,EAAW,YAA6B,QAAM,YAE9C,IAAMC,EAAyB,aAG7B,CAAC,CAAE,UAAAX,EAAW,GAAGC,CAAM,EAAGC,OACxB,OAAgB,cAAf,CACG,IAAKA,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACR,CACH,EACDU,EAAiB,YAA6B,cAAY","names":["sheet_exports","__export","Sheet","SheetClose","SheetContent","SheetDescription","SheetFooter","SheetHeader","SheetOverlay","SheetPortal","SheetTitle","SheetTrigger","__toCommonJS","React","SheetPrimitive","import_class_variance_authority","import_lucide_react","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","Sheet","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","className","props","ref","cn","sheetVariants","SheetContent","side","children","SheetHeader","SheetFooter","SheetTitle","SheetDescription"]}
package/dist/sheet.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";import*as s from"react";import*as e from"@radix-ui/react-dialog";import{cva as f}from"class-variance-authority";import{X as h}from"lucide-react";import{clsx as d}from"clsx";import{twMerge as p}from"tailwind-merge";function r(...t){return p(d(t))}import{jsx as a,jsxs as n}from"react/jsx-runtime";var L=e.Root,M=e.Trigger,W=e.Close,u=e.Portal,m=s.forwardRef(({className:t,...o},i)=>a(e.Overlay,{className:r("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...o,ref:i}));m.displayName=e.Overlay.displayName;var y=f("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),P=s.forwardRef(({side:t="right",className:o,children:i,...l},c)=>n(u,{children:[a(m,{}),n(e.Content,{ref:c,className:r(y({side:t}),o),...l,children:[n(e.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[a(h,{className:"h-4 w-4"}),a("span",{className:"sr-only",children:"Close"})]}),i]})]}));P.displayName=e.Content.displayName;var S=({className:t,...o})=>a("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",t),...o});S.displayName="SheetHeader";var v=({className:t,...o})=>a("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...o});v.displayName="SheetFooter";var g=s.forwardRef(({className:t,...o},i)=>a(e.Title,{ref:i,className:r("text-lg font-semibold text-foreground",t),...o}));g.displayName=e.Title.displayName;var R=s.forwardRef(({className:t,...o},i)=>a(e.Description,{ref:i,className:r("text-sm text-muted-foreground",t),...o}));R.displayName=e.Description.displayName;export{L as Sheet,W as SheetClose,P as SheetContent,R as SheetDescription,v as SheetFooter,S as SheetHeader,m as SheetOverlay,u as SheetPortal,g as SheetTitle,M as SheetTrigger};
2
- //# sourceMappingURL=sheet.js.map
package/dist/sheet.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/sheet.tsx","../../utils/src/classMerge.ts"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { X } from \"lucide-react\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n className={cn(\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n \"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n bottom:\n \"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n },\n);\n\ninterface SheetContentProps\n extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> { }\n\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = \"right\", className, children, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n <SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n {children}\n </SheetPrimitive.Content>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col space-y-2 text-center sm:text-left\",\n className,\n )}\n {...props}\n />\n);\nSheetHeader.displayName = \"SheetHeader\";\n\nconst SheetFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n className,\n )}\n {...props}\n />\n);\nSheetFooter.displayName = \"SheetFooter\";\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold text-foreground\", className)}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"aAEA,UAAYA,MAAW,QACvB,UAAYC,MAAoB,yBAChC,OAAS,OAAAC,MAA8B,2BACvC,OAAS,KAAAC,MAAS,eCLlB,OAAS,QAAAC,MAA6B,OACtC,OAAS,WAAAC,MAAe,iBAEjB,SAASC,KAAMC,EAAsB,CACxC,OAAOF,EAAQD,EAAKG,CAAM,CAAC,CAC/B,CDgBI,cAAAC,EA6CQ,QAAAC,MA7CR,oBAZJ,IAAMC,EAAuB,OAEvBC,EAA8B,UAE9BC,EAA4B,QAE5BC,EAA6B,SAE7BC,EAAqB,aAGzB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAgB,UAAf,CACG,UAAWU,EACP,0JACAH,CACJ,EACC,GAAGC,EACJ,IAAKC,EACT,CACH,EACDH,EAAa,YAA6B,UAAQ,YAElD,IAAMK,EAAgBC,EAClB,mMACA,CACI,SAAU,CACN,KAAM,CACF,IAAK,oGACL,OACI,6GACJ,KAAM,gIACN,MACI,kIACR,CACJ,EACA,gBAAiB,CACb,KAAM,OACV,CACJ,CACJ,EAMMC,EAAqB,aAGzB,CAAC,CAAE,KAAAC,EAAO,QAAS,UAAAP,EAAW,SAAAQ,EAAU,GAAGP,CAAM,EAAGC,IAClDR,EAACI,EAAA,CACG,UAAAL,EAACM,EAAA,EAAa,EACdL,EAAgB,UAAf,CACG,IAAKQ,EACL,UAAWC,EAAGC,EAAc,CAAE,KAAAG,CAAK,CAAC,EAAGP,CAAS,EAC/C,GAAGC,EAEJ,UAAAP,EAAgB,QAAf,CAAqB,UAAU,2OAC5B,UAAAD,EAACgB,EAAA,CAAE,UAAU,UAAU,EACvBhB,EAAC,QAAK,UAAU,UAAU,iBAAK,GACnC,EACCe,GACL,GACJ,CACH,EACDF,EAAa,YAA6B,UAAQ,YAElD,IAAMI,EAAc,CAAC,CACjB,UAAAV,EACA,GAAGC,CACP,IACIR,EAAC,OACG,UAAWU,EACP,mDACAH,CACJ,EACC,GAAGC,EACR,EAEJS,EAAY,YAAc,cAE1B,IAAMC,EAAc,CAAC,CACjB,UAAAX,EACA,GAAGC,CACP,IACIR,EAAC,OACG,UAAWU,EACP,gEACAH,CACJ,EACC,GAAGC,EACR,EAEJU,EAAY,YAAc,cAE1B,IAAMC,EAAmB,aAGvB,CAAC,CAAE,UAAAZ,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAgB,QAAf,CACG,IAAKS,EACL,UAAWC,EAAG,wCAAyCH,CAAS,EAC/D,GAAGC,EACR,CACH,EACDW,EAAW,YAA6B,QAAM,YAE9C,IAAMC,EAAyB,aAG7B,CAAC,CAAE,UAAAb,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAgB,cAAf,CACG,IAAKS,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACR,CACH,EACDY,EAAiB,YAA6B,cAAY","names":["React","SheetPrimitive","cva","X","clsx","twMerge","cn","inputs","jsx","jsxs","Sheet","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","className","props","ref","cn","sheetVariants","cva","SheetContent","side","children","X","SheetHeader","SheetFooter","SheetTitle","SheetDescription"]}
package/dist/sidebar.cjs DELETED
@@ -1,2 +0,0 @@
1
- "use strict";"use client";var ze=Object.create;var T=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var Ae=Object.getOwnPropertyNames;var Ve=Object.getPrototypeOf,We=Object.prototype.hasOwnProperty;var Ge=(e,t)=>{for(var a in t)T(e,a,{get:t[a],enumerable:!0})},G=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ae(t))!We.call(e,s)&&s!==a&&T(e,s,{get:()=>t[s],enumerable:!(n=Oe(t,s))||n.enumerable});return e};var b=(e,t,a)=>(a=e!=null?ze(Ve(e)):{},G(t||!e||!e.__esModule?T(a,"default",{value:e,enumerable:!0}):a,e)),$e=e=>G(T({},"__esModule",{value:!0}),e);var tt={};Ge(tt,{Sidebar:()=>fe,SidebarContent:()=>Se,SidebarFooter:()=>xe,SidebarGroup:()=>ye,SidebarGroupAction:()=>Pe,SidebarGroupContent:()=>Ce,SidebarGroupLabel:()=>we,SidebarHeader:()=>ve,SidebarInput:()=>he,SidebarInset:()=>ge,SidebarMenu:()=>Ne,SidebarMenuAction:()=>Ee,SidebarMenuBadge:()=>Le,SidebarMenuButton:()=>Me,SidebarMenuItem:()=>Te,SidebarMenuSkeleton:()=>He,SidebarMenuSub:()=>Ie,SidebarMenuSubButton:()=>ke,SidebarMenuSubItem:()=>_e,SidebarProvider:()=>me,SidebarRail:()=>be,SidebarSeparator:()=>Re,SidebarTrigger:()=>ue,useSidebar:()=>w});module.exports=$e(tt);var i=b(require("react"),1),R=require("@radix-ui/react-slot"),le=require("class-variance-authority"),ce=require("lucide-react");var $=require("clsx"),K=require("tailwind-merge");function r(...e){return(0,K.twMerge)((0,$.clsx)(e))}var M=require("react"),E=768;function U(){let[e,t]=(0,M.useState)(void 0);return(0,M.useEffect)(()=>{let a=window.matchMedia(`(max-width: ${E-1}px)`),n=()=>{t(window.innerWidth<E)};return a.addEventListener("change",n),t(window.innerWidth<E),()=>a.removeEventListener("change",n)},[]),!!e}var q=b(require("react"),1),F=require("@radix-ui/react-slot"),Q=require("class-variance-authority");var X=require("react/jsx-runtime"),Ke=(0,Q.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"},rounded:{default:"rounded-md",sm:"rounded-sm",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl",full:"rounded-full"}},defaultVariants:{variant:"default",size:"default",rounded:"default"}}),L=q.forwardRef(({className:e,variant:t,size:a,rounded:n,asChild:s=!1,...l},f)=>(0,X.jsx)(s?F.Slot:"button",{className:r(Ke({variant:t,size:a,rounded:n,className:e})),ref:f,...l}));L.displayName="Button";var Y=b(require("react"),1);var J=require("react/jsx-runtime"),H=Y.forwardRef(({className:e,type:t,...a},n)=>(0,J.jsx)("input",{type:t,className:r("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...a}));H.displayName="Input";var Z=b(require("react"),1),I=b(require("@radix-ui/react-separator"),1);var j=require("react/jsx-runtime"),_=Z.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...n},s)=>(0,j.jsx)(I.Root,{ref:s,decorative:a,orientation:t,className:r("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));_.displayName=I.Root.displayName;var y=b(require("react"),1),d=b(require("@radix-ui/react-dialog"),1),ee=require("class-variance-authority"),te=require("lucide-react");var c=require("react/jsx-runtime"),ae=d.Root;var Ue=d.Portal,oe=y.forwardRef(({className:e,...t},a)=>(0,c.jsx)(d.Overlay,{className:r("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));oe.displayName=d.Overlay.displayName;var qe=(0,ee.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),k=y.forwardRef(({side:e="right",className:t,children:a,...n},s)=>(0,c.jsxs)(Ue,{children:[(0,c.jsx)(oe,{}),(0,c.jsxs)(d.Content,{ref:s,className:r(qe({side:e}),t),...n,children:[(0,c.jsxs)(d.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,c.jsx)(te.X,{className:"h-4 w-4"}),(0,c.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));k.displayName=d.Content.displayName;var D=({className:e,...t})=>(0,c.jsx)("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});D.displayName="SheetHeader";var Fe=({className:e,...t})=>(0,c.jsx)("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Fe.displayName="SheetFooter";var B=y.forwardRef(({className:e,...t},a)=>(0,c.jsx)(d.Title,{ref:a,className:r("text-lg font-semibold text-foreground",e),...t}));B.displayName=d.Title.displayName;var z=y.forwardRef(({className:e,...t},a)=>(0,c.jsx)(d.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));z.displayName=d.Description.displayName;var re=require("react/jsx-runtime");function O({className:e,...t}){return(0,re.jsx)("div",{className:r("animate-pulse rounded-md bg-primary/10",e),...t})}var ie=b(require("react"),1),p=b(require("@radix-ui/react-tooltip"),1);var A=require("react/jsx-runtime"),ne=p.Provider,se=p.Root,de=p.Trigger,V=ie.forwardRef(({className:e,sideOffset:t=4,...a},n)=>(0,A.jsx)(p.Portal,{children:(0,A.jsx)(p.Content,{ref:n,sideOffset:t,className:r("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));V.displayName=p.Content.displayName;var o=require("react/jsx-runtime"),Qe="sidebar_state",Xe=60*60*24*7,Ye="16rem",Je="18rem",Ze="3rem",je="b",pe=i.createContext(null);function w(){let e=i.useContext(pe);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var me=i.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:n,style:s,children:l,...f},v)=>{let u=U(),[x,g]=i.useState(!1),[P,De]=i.useState(e),S=t??P,C=i.useCallback(m=>{let h=typeof m=="function"?m(S):m;a?a(h):De(h),document.cookie=`${Qe}=${h}; path=/; max-age=${Xe}`},[a,S]),N=i.useCallback(()=>u?g(m=>!m):C(m=>!m),[u,C,g]);i.useEffect(()=>{let m=h=>{h.key===je&&(h.metaKey||h.ctrlKey)&&(h.preventDefault(),N())};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[N]);let W=S?"expanded":"collapsed",Be=i.useMemo(()=>({state:W,open:S,setOpen:C,isMobile:u,openMobile:x,setOpenMobile:g,toggleSidebar:N}),[W,S,C,u,x,g,N]);return(0,o.jsx)(pe.Provider,{value:Be,children:(0,o.jsx)(ne,{delayDuration:0,children:(0,o.jsx)("div",{style:{"--sidebar-width":Ye,"--sidebar-width-icon":Ze,...s},className:r("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",n),ref:v,...f,children:l})})})});me.displayName="SidebarProvider";var fe=i.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:n,children:s,...l},f)=>{let{isMobile:v,state:u,openMobile:x,setOpenMobile:g}=w();return a==="none"?(0,o.jsx)("div",{className:r("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:f,...l,children:s}):v?(0,o.jsx)(ae,{open:x,onOpenChange:g,...l,children:(0,o.jsxs)(k,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Je},side:e,children:[(0,o.jsxs)(D,{className:"sr-only",children:[(0,o.jsx)(B,{children:"Sidebar"}),(0,o.jsx)(z,{children:"Displays the mobile sidebar."})]}),(0,o.jsx)("div",{className:"flex h-full w-full flex-col",children:s})]})}):(0,o.jsxs)("div",{ref:f,className:"group peer hidden text-sidebar-foreground md:block","data-state":u,"data-collapsible":u==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,o.jsx)("div",{className:r("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,o.jsx)("div",{className:r("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...l,children:(0,o.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:s})})]})});fe.displayName="Sidebar";var ue=i.forwardRef(({className:e,onClick:t,...a},n)=>{let{toggleSidebar:s}=w();return(0,o.jsxs)(L,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:r("h-7 w-7",e),onClick:l=>{t?.(l),s()},...a,children:[(0,o.jsx)(ce.PanelLeft,{}),(0,o.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ue.displayName="SidebarTrigger";var be=i.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:n}=w();return(0,o.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:r("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});be.displayName="SidebarRail";var ge=i.forwardRef(({className:e,...t},a)=>(0,o.jsx)("main",{ref:a,className:r("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));ge.displayName="SidebarInset";var he=i.forwardRef(({className:e,...t},a)=>(0,o.jsx)(H,{ref:a,"data-sidebar":"input",className:r("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));he.displayName="SidebarInput";var ve=i.forwardRef(({className:e,...t},a)=>(0,o.jsx)("div",{ref:a,"data-sidebar":"header",className:r("flex flex-col gap-2 p-2",e),...t}));ve.displayName="SidebarHeader";var xe=i.forwardRef(({className:e,...t},a)=>(0,o.jsx)("div",{ref:a,"data-sidebar":"footer",className:r("flex flex-col gap-2 p-2",e),...t}));xe.displayName="SidebarFooter";var Re=i.forwardRef(({className:e,...t},a)=>(0,o.jsx)(_,{ref:a,"data-sidebar":"separator",className:r("mx-2 w-auto bg-sidebar-border",e),...t}));Re.displayName="SidebarSeparator";var Se=i.forwardRef(({className:e,...t},a)=>(0,o.jsx)("div",{ref:a,"data-sidebar":"content",className:r("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Se.displayName="SidebarContent";var ye=i.forwardRef(({className:e,...t},a)=>(0,o.jsx)("div",{ref:a,"data-sidebar":"group",className:r("relative flex w-full min-w-0 flex-col p-2",e),...t}));ye.displayName="SidebarGroup";var we=i.forwardRef(({className:e,asChild:t=!1,...a},n)=>(0,o.jsx)(t?R.Slot:"div",{ref:n,"data-sidebar":"group-label",className:r("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));we.displayName="SidebarGroupLabel";var Pe=i.forwardRef(({className:e,asChild:t=!1,...a},n)=>(0,o.jsx)(t?R.Slot:"button",{ref:n,"data-sidebar":"group-action",className:r("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));Pe.displayName="SidebarGroupAction";var Ce=i.forwardRef(({className:e,...t},a)=>(0,o.jsx)("div",{ref:a,"data-sidebar":"group-content",className:r("w-full text-sm",e),...t}));Ce.displayName="SidebarGroupContent";var Ne=i.forwardRef(({className:e,...t},a)=>(0,o.jsx)("ul",{ref:a,"data-sidebar":"menu",className:r("flex w-full min-w-0 flex-col gap-1",e),...t}));Ne.displayName="SidebarMenu";var Te=i.forwardRef(({className:e,...t},a)=>(0,o.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:r("group/menu-item relative",e),...t}));Te.displayName="SidebarMenuItem";var et=(0,le.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"text-sm",sm:"text-xs",lg:"text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Me=i.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:n="default",tooltip:s,className:l,...f},v)=>{let u=e?R.Slot:"button",{isMobile:x,state:g}=w(),P=(0,o.jsx)(u,{ref:v,"data-sidebar":"menu-button","data-size":n,"data-active":t,className:r(t&&"font-bold",et({variant:a,size:n}),l),...f});return s?(typeof s=="string"&&(s={children:s}),(0,o.jsxs)(se,{children:[(0,o.jsx)(de,{asChild:!0,children:P}),(0,o.jsx)(V,{side:"right",align:"center",hidden:g!=="collapsed"||x,...s})]})):P});Me.displayName="SidebarMenuButton";var Ee=i.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...n},s)=>(0,o.jsx)(t?R.Slot:"button",{ref:s,"data-sidebar":"menu-action",className:r("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...n}));Ee.displayName="SidebarMenuAction";var Le=i.forwardRef(({className:e,...t},a)=>(0,o.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:r("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Le.displayName="SidebarMenuBadge";var He=i.forwardRef(({className:e,showIcon:t=!1,...a},n)=>{let s=i.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,o.jsxs)("div",{ref:n,"data-sidebar":"menu-skeleton",className:r("flex h-8 items-center gap-2 rounded-md px-2",e),...a,children:[t&&(0,o.jsx)(O,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,o.jsx)(O,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]})});He.displayName="SidebarMenuSkeleton";var Ie=i.forwardRef(({className:e,...t},a)=>(0,o.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:r("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ie.displayName="SidebarMenuSub";var _e=i.forwardRef(({...e},t)=>(0,o.jsx)("li",{ref:t,...e}));_e.displayName="SidebarMenuSubItem";var ke=i.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:n,...s},l)=>(0,o.jsx)(e?R.Slot:"a",{ref:l,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:r("flex min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md p-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm",a&&"font-bold","group-data-[collapsible=icon]:hidden",n),...s}));ke.displayName="SidebarMenuSubButton";0&&(module.exports={Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarSeparator,SidebarTrigger,useSidebar});
2
- //# sourceMappingURL=sidebar.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/sidebar.tsx","../../utils/src/classMerge.ts","../src/hooks/use-mobile.tsx","../src/button.tsx","../src/input.tsx","../src/separator.tsx","../src/sheet.tsx","../src/skeleton.tsx","../src/tooltip.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { VariantProps, cva } from \"class-variance-authority\";\nimport { PanelLeft } from \"lucide-react\";\nimport { cn } from \"@c-rex/utils\";\nimport { useIsMobile } from \"./hooks/use-mobile\";\nimport { Button } from \"./button\";\nimport { Input } from \"./input\";\nimport { Separator } from \"./separator\";\nimport {\n Sheet,\n SheetContent,\n SheetDescription,\n SheetHeader,\n SheetTitle,\n} from \"./sheet\";\nimport { Skeleton } from \"./skeleton\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"./tooltip\";\n\nconst SIDEBAR_COOKIE_NAME = \"sidebar_state\";\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;\nconst SIDEBAR_WIDTH = \"16rem\";\nconst SIDEBAR_WIDTH_MOBILE = \"18rem\";\nconst SIDEBAR_WIDTH_ICON = \"3rem\";\nconst SIDEBAR_KEYBOARD_SHORTCUT = \"b\";\n\ntype SidebarContext = {\n state: \"expanded\" | \"collapsed\";\n open: boolean;\n setOpen: (open: boolean) => void;\n openMobile: boolean;\n setOpenMobile: (open: boolean) => void;\n isMobile: boolean;\n toggleSidebar: () => void;\n};\n\nconst SidebarContext = React.createContext<SidebarContext | null>(null);\n\nfunction useSidebar() {\n const context = React.useContext(SidebarContext);\n if (!context) {\n throw new Error(\"useSidebar must be used within a SidebarProvider.\");\n }\n\n return context;\n}\n\nconst SidebarProvider = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\"> & {\n defaultOpen?: boolean;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n }\n>(\n (\n {\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n children,\n ...props\n },\n ref,\n ) => {\n const isMobile = useIsMobile();\n const [openMobile, setOpenMobile] = React.useState(false);\n\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [_open, _setOpen] = React.useState(defaultOpen);\n const open = openProp ?? _open;\n const setOpen = React.useCallback(\n (value: boolean | ((value: boolean) => boolean)) => {\n const openState = typeof value === \"function\" ? value(open) : value;\n if (setOpenProp) {\n setOpenProp(openState);\n } else {\n _setOpen(openState);\n }\n\n // This sets the cookie to keep the sidebar state.\n document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;\n },\n [setOpenProp, open],\n );\n\n // Helper to toggle the sidebar.\n const toggleSidebar = React.useCallback(() => {\n return isMobile\n ? setOpenMobile((open) => !open)\n : setOpen((open) => !open);\n }, [isMobile, setOpen, setOpenMobile]);\n\n // Adds a keyboard shortcut to toggle the sidebar.\n React.useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (\n event.key === SIDEBAR_KEYBOARD_SHORTCUT &&\n (event.metaKey || event.ctrlKey)\n ) {\n event.preventDefault();\n toggleSidebar();\n }\n };\n\n window.addEventListener(\"keydown\", handleKeyDown);\n return () => window.removeEventListener(\"keydown\", handleKeyDown);\n }, [toggleSidebar]);\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = open ? \"expanded\" : \"collapsed\";\n\n const contextValue = React.useMemo<SidebarContext>(\n () => ({\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n }),\n [\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n ],\n );\n\n return (\n <SidebarContext.Provider value={contextValue}>\n <TooltipProvider delayDuration={0}>\n <div\n style={\n {\n \"--sidebar-width\": SIDEBAR_WIDTH,\n \"--sidebar-width-icon\": SIDEBAR_WIDTH_ICON,\n ...style,\n } as React.CSSProperties\n }\n className={cn(\n \"group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar\",\n className,\n )}\n ref={ref}\n {...props}\n >\n {children}\n </div>\n </TooltipProvider>\n </SidebarContext.Provider>\n );\n },\n);\nSidebarProvider.displayName = \"SidebarProvider\";\n\nconst Sidebar = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\"> & {\n side?: \"left\" | \"right\";\n variant?: \"sidebar\" | \"floating\" | \"inset\";\n collapsible?: \"offcanvas\" | \"icon\" | \"none\";\n }\n>(\n (\n {\n side = \"left\",\n variant = \"sidebar\",\n collapsible = \"offcanvas\",\n className,\n children,\n ...props\n },\n ref,\n ) => {\n const { isMobile, state, openMobile, setOpenMobile } = useSidebar();\n\n if (collapsible === \"none\") {\n return (\n <div\n className={cn(\n \"flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground\",\n className,\n )}\n ref={ref}\n {...props}\n >\n {children}\n </div>\n );\n }\n\n if (isMobile) {\n return (\n <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n <SheetContent\n data-sidebar=\"sidebar\"\n data-mobile=\"true\"\n className=\"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden\"\n style={\n {\n \"--sidebar-width\": SIDEBAR_WIDTH_MOBILE,\n } as React.CSSProperties\n }\n side={side}\n >\n <SheetHeader className=\"sr-only\">\n <SheetTitle>Sidebar</SheetTitle>\n <SheetDescription>Displays the mobile sidebar.</SheetDescription>\n </SheetHeader>\n <div className=\"flex h-full w-full flex-col\">{children}</div>\n </SheetContent>\n </Sheet>\n );\n }\n\n return (\n <div\n ref={ref}\n className=\"group peer hidden text-sidebar-foreground md:block\"\n data-state={state}\n data-collapsible={state === \"collapsed\" ? collapsible : \"\"}\n data-variant={variant}\n data-side={side}\n >\n {/* This is what handles the sidebar gap on desktop */}\n <div\n className={cn(\n \"relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear\",\n \"group-data-[collapsible=offcanvas]:w-0\",\n \"group-data-[side=right]:rotate-180\",\n variant === \"floating\" || variant === \"inset\"\n ? \"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]\"\n : \"group-data-[collapsible=icon]:w-[--sidebar-width-icon]\",\n )}\n />\n <div\n className={cn(\n \"fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex\",\n side === \"left\"\n ? \"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]\"\n : \"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]\",\n // Adjust the padding for floating and inset variants.\n variant === \"floating\" || variant === \"inset\"\n ? \"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]\"\n : \"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l\",\n className,\n )}\n {...props}\n >\n <div\n data-sidebar=\"sidebar\"\n className=\"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow\"\n >\n {children}\n </div>\n </div>\n </div>\n );\n },\n);\nSidebar.displayName = \"Sidebar\";\n\nconst SidebarTrigger = React.forwardRef<\n React.ElementRef<typeof Button>,\n React.ComponentProps<typeof Button>\n>(({ className, onClick, ...props }, ref) => {\n const { toggleSidebar } = useSidebar();\n\n return (\n <Button\n ref={ref}\n data-sidebar=\"trigger\"\n variant=\"ghost\"\n size=\"icon\"\n className={cn(\"h-7 w-7\", className)}\n onClick={(event) => {\n onClick?.(event);\n toggleSidebar();\n }}\n {...props}\n >\n <PanelLeft />\n <span className=\"sr-only\">Toggle Sidebar</span>\n </Button>\n );\n});\nSidebarTrigger.displayName = \"SidebarTrigger\";\n\nconst SidebarRail = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<\"button\">\n>(({ className, ...props }, ref) => {\n const { toggleSidebar } = useSidebar();\n\n return (\n <button\n ref={ref}\n data-sidebar=\"rail\"\n aria-label=\"Toggle Sidebar\"\n tabIndex={-1}\n onClick={toggleSidebar}\n title=\"Toggle Sidebar\"\n className={cn(\n \"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex\",\n \"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize\",\n \"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize\",\n \"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar\",\n \"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2\",\n \"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2\",\n className,\n )}\n {...props}\n />\n );\n});\nSidebarRail.displayName = \"SidebarRail\";\n\nconst SidebarInset = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"main\">\n>(({ className, ...props }, ref) => {\n return (\n <main\n ref={ref}\n className={cn(\n \"relative flex w-full flex-1 flex-col bg-background\",\n \"md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow\",\n className,\n )}\n {...props}\n />\n );\n});\nSidebarInset.displayName = \"SidebarInset\";\n\nconst SidebarInput = React.forwardRef<\n React.ElementRef<typeof Input>,\n React.ComponentProps<typeof Input>\n>(({ className, ...props }, ref) => {\n return (\n <Input\n ref={ref}\n data-sidebar=\"input\"\n className={cn(\n \"h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring\",\n className,\n )}\n {...props}\n />\n );\n});\nSidebarInput.displayName = \"SidebarInput\";\n\nconst SidebarHeader = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-sidebar=\"header\"\n className={cn(\"flex flex-col gap-2 p-2\", className)}\n {...props}\n />\n );\n});\nSidebarHeader.displayName = \"SidebarHeader\";\n\nconst SidebarFooter = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-sidebar=\"footer\"\n className={cn(\"flex flex-col gap-2 p-2\", className)}\n {...props}\n />\n );\n});\nSidebarFooter.displayName = \"SidebarFooter\";\n\nconst SidebarSeparator = React.forwardRef<\n React.ElementRef<typeof Separator>,\n React.ComponentProps<typeof Separator>\n>(({ className, ...props }, ref) => {\n return (\n <Separator\n ref={ref}\n data-sidebar=\"separator\"\n className={cn(\"mx-2 w-auto bg-sidebar-border\", className)}\n {...props}\n />\n );\n});\nSidebarSeparator.displayName = \"SidebarSeparator\";\n\nconst SidebarContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-sidebar=\"content\"\n className={cn(\n \"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden\",\n className,\n )}\n {...props}\n />\n );\n});\nSidebarContent.displayName = \"SidebarContent\";\n\nconst SidebarGroup = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-sidebar=\"group\"\n className={cn(\"relative flex w-full min-w-0 flex-col p-2\", className)}\n {...props}\n />\n );\n});\nSidebarGroup.displayName = \"SidebarGroup\";\n\nconst SidebarGroupLabel = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\"> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"div\";\n\n return (\n <Comp\n ref={ref}\n data-sidebar=\"group-label\"\n className={cn(\n \"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0\",\n \"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0\",\n className,\n )}\n {...props}\n />\n );\n});\nSidebarGroupLabel.displayName = \"SidebarGroupLabel\";\n\nconst SidebarGroupAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<\"button\"> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\";\n\n return (\n <Comp\n ref={ref}\n data-sidebar=\"group-action\"\n className={cn(\n \"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0\",\n // Increases the hit area of the button on mobile.\n \"after:absolute after:-inset-2 after:md:hidden\",\n \"group-data-[collapsible=icon]:hidden\",\n className,\n )}\n {...props}\n />\n );\n});\nSidebarGroupAction.displayName = \"SidebarGroupAction\";\n\nconst SidebarGroupContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-sidebar=\"group-content\"\n className={cn(\"w-full text-sm\", className)}\n {...props}\n />\n));\nSidebarGroupContent.displayName = \"SidebarGroupContent\";\n\nconst SidebarMenu = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n data-sidebar=\"menu\"\n className={cn(\"flex w-full min-w-0 flex-col gap-1\", className)}\n {...props}\n />\n));\nSidebarMenu.displayName = \"SidebarMenu\";\n\nconst SidebarMenuItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<\"li\">\n>(({ className, ...props }, ref) => (\n <li\n ref={ref}\n data-sidebar=\"menu-item\"\n className={cn(\"group/menu-item relative\", className)}\n {...props}\n />\n));\nSidebarMenuItem.displayName = \"SidebarMenuItem\";\n\nconst sidebarMenuButtonVariants = cva(\n \"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground\",\n outline:\n \"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]\",\n },\n size: {\n default: \"text-sm\",\n sm: \"text-xs\",\n lg: \"text-sm group-data-[collapsible=icon]:!p-0\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nconst SidebarMenuButton = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<\"button\"> & {\n asChild?: boolean;\n isActive?: boolean;\n tooltip?: string | React.ComponentProps<typeof TooltipContent>;\n } & VariantProps<typeof sidebarMenuButtonVariants>\n>(\n (\n {\n asChild = false,\n isActive = false,\n variant = \"default\",\n size = \"default\",\n tooltip,\n className,\n ...props\n },\n ref,\n ) => {\n const Comp = asChild ? Slot : \"button\";\n const { isMobile, state } = useSidebar();\n\n const button = (\n <Comp\n ref={ref}\n data-sidebar=\"menu-button\"\n data-size={size}\n data-active={isActive}\n className={cn(\n isActive && \"font-bold\",\n sidebarMenuButtonVariants({ variant, size }),\n className,\n )}\n {...props}\n />\n );\n\n if (!tooltip) {\n return button;\n }\n\n if (typeof tooltip === \"string\") {\n tooltip = {\n children: tooltip,\n };\n }\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>{button}</TooltipTrigger>\n <TooltipContent\n side=\"right\"\n align=\"center\"\n hidden={state !== \"collapsed\" || isMobile}\n {...tooltip}\n />\n </Tooltip>\n );\n },\n);\nSidebarMenuButton.displayName = \"SidebarMenuButton\";\n\nconst SidebarMenuAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<\"button\"> & {\n asChild?: boolean;\n showOnHover?: boolean;\n }\n>(({ className, asChild = false, showOnHover = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\";\n\n return (\n <Comp\n ref={ref}\n data-sidebar=\"menu-action\"\n className={cn(\n \"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0\",\n // Increases the hit area of the button on mobile.\n \"after:absolute after:-inset-2 after:md:hidden\",\n \"peer-data-[size=sm]/menu-button:top-1\",\n \"peer-data-[size=default]/menu-button:top-1.5\",\n \"peer-data-[size=lg]/menu-button:top-2.5\",\n \"group-data-[collapsible=icon]:hidden\",\n showOnHover &&\n \"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0\",\n className,\n )}\n {...props}\n />\n );\n});\nSidebarMenuAction.displayName = \"SidebarMenuAction\";\n\nconst SidebarMenuBadge = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-sidebar=\"menu-badge\"\n className={cn(\n \"pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground\",\n \"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground\",\n \"peer-data-[size=sm]/menu-button:top-1\",\n \"peer-data-[size=default]/menu-button:top-1.5\",\n \"peer-data-[size=lg]/menu-button:top-2.5\",\n \"group-data-[collapsible=icon]:hidden\",\n className,\n )}\n {...props}\n />\n));\nSidebarMenuBadge.displayName = \"SidebarMenuBadge\";\n\nconst SidebarMenuSkeleton = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\"> & {\n showIcon?: boolean;\n }\n>(({ className, showIcon = false, ...props }, ref) => {\n // Random width between 50 to 90%.\n const width = React.useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`;\n }, []);\n\n return (\n <div\n ref={ref}\n data-sidebar=\"menu-skeleton\"\n className={cn(\"flex h-8 items-center gap-2 rounded-md px-2\", className)}\n {...props}\n >\n {showIcon && (\n <Skeleton\n className=\"size-4 rounded-md\"\n data-sidebar=\"menu-skeleton-icon\"\n />\n )}\n <Skeleton\n className=\"h-4 max-w-[--skeleton-width] flex-1\"\n data-sidebar=\"menu-skeleton-text\"\n style={\n {\n \"--skeleton-width\": width,\n } as React.CSSProperties\n }\n />\n </div>\n );\n});\nSidebarMenuSkeleton.displayName = \"SidebarMenuSkeleton\";\n\nconst SidebarMenuSub = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n data-sidebar=\"menu-sub\"\n className={cn(\n \"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5\",\n \"group-data-[collapsible=icon]:hidden\",\n className,\n )}\n {...props}\n />\n));\nSidebarMenuSub.displayName = \"SidebarMenuSub\";\n\nconst SidebarMenuSubItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<\"li\">\n>(({ ...props }, ref) => <li ref={ref} {...props} />);\nSidebarMenuSubItem.displayName = \"SidebarMenuSubItem\";\n\nconst SidebarMenuSubButton = React.forwardRef<\n HTMLAnchorElement,\n React.ComponentProps<\"a\"> & {\n asChild?: boolean;\n size?: \"sm\" | \"md\";\n isActive?: boolean;\n }\n>(({ asChild = false, size = \"md\", isActive, className, ...props }, ref) => {\n const Comp = asChild ? Slot : \"a\";\n\n return (\n <Comp\n ref={ref}\n data-sidebar=\"menu-sub-button\"\n data-size={size}\n data-active={isActive}\n className={cn(\n \"flex min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md p-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground\",\n \"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground\",\n size === \"sm\" && \"text-xs\",\n size === \"md\" && \"text-sm\",\n isActive && \"font-bold\",\n \"group-data-[collapsible=icon]:hidden\",\n className,\n )}\n {...props}\n />\n );\n});\nSidebarMenuSubButton.displayName = \"SidebarMenuSubButton\";\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n};\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import { useEffect, useState } from \"react\";\n\nconst MOBILE_BREAKPOINT = 768;\n\nexport function useIsMobile() {\n const [isMobile, setIsMobile] = useState<boolean | undefined>(undefined);\n\n useEffect(() => {\n const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);\n const onChange = () => {\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n };\n mql.addEventListener(\"change\", onChange);\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n return () => mql.removeEventListener(\"change\", onChange);\n }, []);\n\n return !!isMobile;\n}\n","import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default:\n \"bg-primary text-primary-foreground shadow hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground\",\n secondary:\n \"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2\",\n sm: \"h-8 rounded-md px-3 text-xs\",\n lg: \"h-10 rounded-md px-8\",\n icon: \"h-9 w-9\",\n },\n rounded: {\n default: \"rounded-md\",\n sm: \"rounded-sm\",\n lg: \"rounded-lg\",\n xl: \"rounded-xl\",\n \"2xl\": \"rounded-2xl\",\n full: \"rounded-full\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n rounded: \"default\",\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, rounded, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\";\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, rounded, className }))}\n ref={ref}\n {...props}\n />\n );\n },\n);\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n","import * as React from \"react\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<\"input\">>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\nInput.displayName = \"Input\";\n\nexport { Input };\n","import * as React from \"react\";\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(\n (\n { className, orientation = \"horizontal\", decorative = true, ...props },\n ref,\n ) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"shrink-0 bg-border\",\n orientation === \"horizontal\" ? \"h-[1px] w-full\" : \"h-full w-[1px]\",\n className,\n )}\n {...props}\n />\n ),\n);\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { X } from \"lucide-react\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n className={cn(\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n \"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n bottom:\n \"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n },\n);\n\ninterface SheetContentProps\n extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> { }\n\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = \"right\", className, children, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n <SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n {children}\n </SheetPrimitive.Content>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col space-y-2 text-center sm:text-left\",\n className,\n )}\n {...props}\n />\n);\nSheetHeader.displayName = \"SheetHeader\";\n\nconst SheetFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n className,\n )}\n {...props}\n />\n);\nSheetFooter.displayName = \"SheetFooter\";\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold text-foreground\", className)}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n","import { cn } from \"@c-rex/utils\";\n\nfunction Skeleton({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div\n className={cn(\"animate-pulse rounded-md bg-primary/10\", className)}\n {...props}\n />\n );\n}\n\nexport { Skeleton };\n","import * as React from \"react\";\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\n\nimport { cn } from \"@c-rex/utils\";\n\nconst TooltipProvider = TooltipPrimitive.Provider;\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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\",\n className,\n )}\n {...props}\n />\n </TooltipPrimitive.Portal>\n));\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n"],"mappings":"mlBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,aAAAE,GAAA,mBAAAC,GAAA,kBAAAC,GAAA,iBAAAC,GAAA,uBAAAC,GAAA,wBAAAC,GAAA,sBAAAC,GAAA,kBAAAC,GAAA,iBAAAC,GAAA,iBAAAC,GAAA,gBAAAC,GAAA,sBAAAC,GAAA,qBAAAC,GAAA,sBAAAC,GAAA,oBAAAC,GAAA,wBAAAC,GAAA,mBAAAC,GAAA,yBAAAC,GAAA,uBAAAC,GAAA,oBAAAC,GAAA,gBAAAC,GAAA,qBAAAC,GAAA,mBAAAC,GAAA,eAAAC,IAAA,eAAAC,GAAA1B,IAEA,IAAA2B,EAAuB,sBACvBC,EAAqB,gCACrBC,GAAkC,oCAClCC,GAA0B,wBCL1B,IAAAC,EAAsC,gBACtCC,EAAwB,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C,CAAC,CAAE,UAAA/D,EAAW,SAAAgE,EAAW,GAAO,GAAG7D,CAAM,EAAGC,IAAQ,CAElD,IAAM6D,EAAc,UAAQ,IACjB,GAAG,KAAK,MAAM,KAAK,OAAO,EAAI,EAAE,EAAI,EAAE,IAC9C,CAAC,CAAC,EAEL,SACI,QAAC,OACG,IAAK7D,EACL,eAAa,gBACb,UAAWiB,EAAG,8CAA+CrB,CAAS,EACrE,GAAGG,EAEH,UAAA6D,MACG,OAACE,EAAA,CACG,UAAU,oBACV,eAAa,qBACjB,KAEJ,OAACA,EAAA,CACG,UAAU,sCACV,eAAa,qBACb,MACI,CACI,mBAAoBD,CACxB,EAER,GACJ,CAER,CAAC,EACDF,GAAoB,YAAc,sBAElC,IAAMI,GAAuB,aAG3B,CAAC,CAAE,UAAAnE,EAAW,GAAGG,CAAM,EAAGC,OACxB,OAAC,MACG,IAAKA,EACL,eAAa,WACb,UAAWiB,EACP,iGACA,uCACArB,CACJ,EACC,GAAGG,EACR,CACH,EACDgE,GAAe,YAAc,iBAE7B,IAAMC,GAA2B,aAG/B,CAAC,CAAE,GAAGjE,CAAM,EAAGC,OAAQ,OAAC,MAAG,IAAKA,EAAM,GAAGD,EAAO,CAAE,EACpDiE,GAAmB,YAAc,qBAEjC,IAAMC,GAA6B,aAOjC,CAAC,CAAE,QAAAxB,EAAU,GAAO,KAAAQ,EAAO,KAAM,SAAAD,EAAU,UAAApD,EAAW,GAAGG,CAAM,EAAGC,OAI5D,OAHSyC,EAAU,OAAO,IAGzB,CACG,IAAKzC,EACL,eAAa,kBACb,YAAWiD,EACX,cAAaD,EACb,UAAW/B,EACP,yeACA,yFACAgC,IAAS,MAAQ,UACjBA,IAAS,MAAQ,UACjBD,GAAY,YACZ,uCACApD,CACJ,EACC,GAAGG,EACR,CAEP,EACDkE,GAAqB,YAAc","names":["sidebar_exports","__export","Sidebar","SidebarContent","SidebarFooter","SidebarGroup","SidebarGroupAction","SidebarGroupContent","SidebarGroupLabel","SidebarHeader","SidebarInput","SidebarInset","SidebarMenu","SidebarMenuAction","SidebarMenuBadge","SidebarMenuButton","SidebarMenuItem","SidebarMenuSkeleton","SidebarMenuSub","SidebarMenuSubButton","SidebarMenuSubItem","SidebarProvider","SidebarRail","SidebarSeparator","SidebarTrigger","useSidebar","__toCommonJS","React","import_react_slot","import_class_variance_authority","import_lucide_react","import_clsx","import_tailwind_merge","cn","inputs","import_react","MOBILE_BREAKPOINT","useIsMobile","isMobile","setIsMobile","mql","onChange","React","import_react_slot","import_class_variance_authority","import_jsx_runtime","buttonVariants","Button","className","variant","size","rounded","asChild","props","ref","cn","React","import_jsx_runtime","Input","className","type","props","ref","cn","React","SeparatorPrimitive","import_jsx_runtime","Separator","className","orientation","decorative","props","ref","cn","React","SheetPrimitive","import_class_variance_authority","import_lucide_react","import_jsx_runtime","Sheet","SheetPortal","SheetOverlay","className","props","ref","cn","sheetVariants","SheetContent","side","children","SheetHeader","SheetFooter","SheetTitle","SheetDescription","import_jsx_runtime","Skeleton","className","props","cn","React","TooltipPrimitive","import_jsx_runtime","TooltipProvider","Tooltip","TooltipTrigger","TooltipContent","className","sideOffset","props","ref","cn","import_jsx_runtime","SIDEBAR_COOKIE_NAME","SIDEBAR_COOKIE_MAX_AGE","SIDEBAR_WIDTH","SIDEBAR_WIDTH_MOBILE","SIDEBAR_WIDTH_ICON","SIDEBAR_KEYBOARD_SHORTCUT","SidebarContext","useSidebar","context","SidebarProvider","defaultOpen","openProp","setOpenProp","className","style","children","props","ref","isMobile","useIsMobile","openMobile","setOpenMobile","_open","_setOpen","open","setOpen","value","openState","toggleSidebar","handleKeyDown","event","state","contextValue","TooltipProvider","cn","Sidebar","side","variant","collapsible","Sheet","SheetContent","SheetHeader","SheetTitle","SheetDescription","SidebarTrigger","onClick","Button","SidebarRail","SidebarInset","SidebarInput","Input","SidebarHeader","SidebarFooter","SidebarSeparator","Separator","SidebarContent","SidebarGroup","SidebarGroupLabel","asChild","SidebarGroupAction","SidebarGroupContent","SidebarMenu","SidebarMenuItem","sidebarMenuButtonVariants","SidebarMenuButton","isActive","size","tooltip","Comp","button","Tooltip","TooltipTrigger","TooltipContent","SidebarMenuAction","showOnHover","SidebarMenuBadge","SidebarMenuSkeleton","showIcon","width","Skeleton","SidebarMenuSub","SidebarMenuSubItem","SidebarMenuSubButton"]}
package/dist/sidebar.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";import*as r from"react";import{Slot as y}from"@radix-ui/react-slot";import{cva as ge}from"class-variance-authority";import{PanelLeft as he}from"lucide-react";import{clsx as ee}from"clsx";import{twMerge as te}from"tailwind-merge";function o(...t){return te(ee(t))}import{useEffect as ae,useState as oe}from"react";var T=768;function V(){let[t,e]=oe(void 0);return ae(()=>{let a=window.matchMedia(`(max-width: ${T-1}px)`),n=()=>{e(window.innerWidth<T)};return a.addEventListener("change",n),e(window.innerWidth<T),()=>a.removeEventListener("change",n)},[]),!!t}import*as W from"react";import{Slot as re}from"@radix-ui/react-slot";import{cva as ie}from"class-variance-authority";import{jsx as se}from"react/jsx-runtime";var ne=ie("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"},rounded:{default:"rounded-md",sm:"rounded-sm",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl",full:"rounded-full"}},defaultVariants:{variant:"default",size:"default",rounded:"default"}}),M=W.forwardRef(({className:t,variant:e,size:a,rounded:n,asChild:s=!1,...l},m)=>se(s?re:"button",{className:o(ne({variant:e,size:a,rounded:n,className:t})),ref:m,...l}));M.displayName="Button";import*as G from"react";import{jsx as de}from"react/jsx-runtime";var E=G.forwardRef(({className:t,type:e,...a},n)=>de("input",{type:e,className:o("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:n,...a}));E.displayName="Input";import*as $ from"react";import*as L from"@radix-ui/react-separator";import{jsx as le}from"react/jsx-runtime";var H=$.forwardRef(({className:t,orientation:e="horizontal",decorative:a=!0,...n},s)=>le(L.Root,{ref:s,decorative:a,orientation:e,className:o("shrink-0 bg-border",e==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...n}));H.displayName=L.Root.displayName;import*as S from"react";import*as d from"@radix-ui/react-dialog";import{cva as ce}from"class-variance-authority";import{X as pe}from"lucide-react";import{jsx as g,jsxs as I}from"react/jsx-runtime";var K=d.Root;var me=d.Portal,U=S.forwardRef(({className:t,...e},a)=>g(d.Overlay,{className:o("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:a}));U.displayName=d.Overlay.displayName;var fe=ce("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),_=S.forwardRef(({side:t="right",className:e,children:a,...n},s)=>I(me,{children:[g(U,{}),I(d.Content,{ref:s,className:o(fe({side:t}),e),...n,children:[I(d.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[g(pe,{className:"h-4 w-4"}),g("span",{className:"sr-only",children:"Close"})]}),a]})]}));_.displayName=d.Content.displayName;var k=({className:t,...e})=>g("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",t),...e});k.displayName="SheetHeader";var ue=({className:t,...e})=>g("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});ue.displayName="SheetFooter";var D=S.forwardRef(({className:t,...e},a)=>g(d.Title,{ref:a,className:o("text-lg font-semibold text-foreground",t),...e}));D.displayName=d.Title.displayName;var B=S.forwardRef(({className:t,...e},a)=>g(d.Description,{ref:a,className:o("text-sm text-muted-foreground",t),...e}));B.displayName=d.Description.displayName;import{jsx as be}from"react/jsx-runtime";function z({className:t,...e}){return be("div",{className:o("animate-pulse rounded-md bg-primary/10",t),...e})}import*as F from"react";import*as c from"@radix-ui/react-tooltip";import{jsx as q}from"react/jsx-runtime";var Q=c.Provider,X=c.Root,Y=c.Trigger,O=F.forwardRef(({className:t,sideOffset:e=4,...a},n)=>q(c.Portal,{children:q(c.Content,{ref:n,sideOffset:e,className:o("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",t),...a})}));O.displayName=c.Content.displayName;import{jsx as i,jsxs as x}from"react/jsx-runtime";var ve="sidebar_state",xe=60*60*24*7,Re="16rem",Se="18rem",ye="3rem",we="b",J=r.createContext(null);function N(){let t=r.useContext(J);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}var Pe=r.forwardRef(({defaultOpen:t=!0,open:e,onOpenChange:a,className:n,style:s,children:l,...m},h)=>{let f=V(),[v,u]=r.useState(!1),[w,Z]=r.useState(t),R=e??w,P=r.useCallback(p=>{let b=typeof p=="function"?p(R):p;a?a(b):Z(b),document.cookie=`${ve}=${b}; path=/; max-age=${xe}`},[a,R]),C=r.useCallback(()=>f?u(p=>!p):P(p=>!p),[f,P,u]);r.useEffect(()=>{let p=b=>{b.key===we&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),C())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[C]);let A=R?"expanded":"collapsed",j=r.useMemo(()=>({state:A,open:R,setOpen:P,isMobile:f,openMobile:v,setOpenMobile:u,toggleSidebar:C}),[A,R,P,f,v,u,C]);return i(J.Provider,{value:j,children:i(Q,{delayDuration:0,children:i("div",{style:{"--sidebar-width":Re,"--sidebar-width-icon":ye,...s},className:o("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",n),ref:h,...m,children:l})})})});Pe.displayName="SidebarProvider";var Ce=r.forwardRef(({side:t="left",variant:e="sidebar",collapsible:a="offcanvas",className:n,children:s,...l},m)=>{let{isMobile:h,state:f,openMobile:v,setOpenMobile:u}=N();return a==="none"?i("div",{className:o("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:m,...l,children:s}):h?i(K,{open:v,onOpenChange:u,...l,children:x(_,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Se},side:t,children:[x(k,{className:"sr-only",children:[i(D,{children:"Sidebar"}),i(B,{children:"Displays the mobile sidebar."})]}),i("div",{className:"flex h-full w-full flex-col",children:s})]})}):x("div",{ref:m,className:"group peer hidden text-sidebar-foreground md:block","data-state":f,"data-collapsible":f==="collapsed"?a:"","data-variant":e,"data-side":t,children:[i("div",{className:o("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),i("div",{className:o("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...l,children:i("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:s})})]})});Ce.displayName="Sidebar";var Ne=r.forwardRef(({className:t,onClick:e,...a},n)=>{let{toggleSidebar:s}=N();return x(M,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:o("h-7 w-7",t),onClick:l=>{e?.(l),s()},...a,children:[i(he,{}),i("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Ne.displayName="SidebarTrigger";var Te=r.forwardRef(({className:t,...e},a)=>{let{toggleSidebar:n}=N();return i("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:o("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),...e})});Te.displayName="SidebarRail";var Me=r.forwardRef(({className:t,...e},a)=>i("main",{ref:a,className:o("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",t),...e}));Me.displayName="SidebarInset";var Ee=r.forwardRef(({className:t,...e},a)=>i(E,{ref:a,"data-sidebar":"input",className:o("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",t),...e}));Ee.displayName="SidebarInput";var Le=r.forwardRef(({className:t,...e},a)=>i("div",{ref:a,"data-sidebar":"header",className:o("flex flex-col gap-2 p-2",t),...e}));Le.displayName="SidebarHeader";var He=r.forwardRef(({className:t,...e},a)=>i("div",{ref:a,"data-sidebar":"footer",className:o("flex flex-col gap-2 p-2",t),...e}));He.displayName="SidebarFooter";var Ie=r.forwardRef(({className:t,...e},a)=>i(H,{ref:a,"data-sidebar":"separator",className:o("mx-2 w-auto bg-sidebar-border",t),...e}));Ie.displayName="SidebarSeparator";var _e=r.forwardRef(({className:t,...e},a)=>i("div",{ref:a,"data-sidebar":"content",className:o("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...e}));_e.displayName="SidebarContent";var ke=r.forwardRef(({className:t,...e},a)=>i("div",{ref:a,"data-sidebar":"group",className:o("relative flex w-full min-w-0 flex-col p-2",t),...e}));ke.displayName="SidebarGroup";var De=r.forwardRef(({className:t,asChild:e=!1,...a},n)=>i(e?y:"div",{ref:n,"data-sidebar":"group-label",className:o("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),...a}));De.displayName="SidebarGroupLabel";var Be=r.forwardRef(({className:t,asChild:e=!1,...a},n)=>i(e?y:"button",{ref:n,"data-sidebar":"group-action",className:o("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t),...a}));Be.displayName="SidebarGroupAction";var ze=r.forwardRef(({className:t,...e},a)=>i("div",{ref:a,"data-sidebar":"group-content",className:o("w-full text-sm",t),...e}));ze.displayName="SidebarGroupContent";var Oe=r.forwardRef(({className:t,...e},a)=>i("ul",{ref:a,"data-sidebar":"menu",className:o("flex w-full min-w-0 flex-col gap-1",t),...e}));Oe.displayName="SidebarMenu";var Ae=r.forwardRef(({className:t,...e},a)=>i("li",{ref:a,"data-sidebar":"menu-item",className:o("group/menu-item relative",t),...e}));Ae.displayName="SidebarMenuItem";var Ve=ge("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"text-sm",sm:"text-xs",lg:"text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),We=r.forwardRef(({asChild:t=!1,isActive:e=!1,variant:a="default",size:n="default",tooltip:s,className:l,...m},h)=>{let f=t?y:"button",{isMobile:v,state:u}=N(),w=i(f,{ref:h,"data-sidebar":"menu-button","data-size":n,"data-active":e,className:o(e&&"font-bold",Ve({variant:a,size:n}),l),...m});return s?(typeof s=="string"&&(s={children:s}),x(X,{children:[i(Y,{asChild:!0,children:w}),i(O,{side:"right",align:"center",hidden:u!=="collapsed"||v,...s})]})):w});We.displayName="SidebarMenuButton";var Ge=r.forwardRef(({className:t,asChild:e=!1,showOnHover:a=!1,...n},s)=>i(e?y:"button",{ref:s,"data-sidebar":"menu-action",className:o("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",t),...n}));Ge.displayName="SidebarMenuAction";var $e=r.forwardRef(({className:t,...e},a)=>i("div",{ref:a,"data-sidebar":"menu-badge",className:o("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t),...e}));$e.displayName="SidebarMenuBadge";var Ke=r.forwardRef(({className:t,showIcon:e=!1,...a},n)=>{let s=r.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return x("div",{ref:n,"data-sidebar":"menu-skeleton",className:o("flex h-8 items-center gap-2 rounded-md px-2",t),...a,children:[e&&i(z,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),i(z,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]})});Ke.displayName="SidebarMenuSkeleton";var Ue=r.forwardRef(({className:t,...e},a)=>i("ul",{ref:a,"data-sidebar":"menu-sub",className:o("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),...e}));Ue.displayName="SidebarMenuSub";var qe=r.forwardRef(({...t},e)=>i("li",{ref:e,...t}));qe.displayName="SidebarMenuSubItem";var Fe=r.forwardRef(({asChild:t=!1,size:e="md",isActive:a,className:n,...s},l)=>i(t?y:"a",{ref:l,"data-sidebar":"menu-sub-button","data-size":e,"data-active":a,className:o("flex min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md p-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm",a&&"font-bold","group-data-[collapsible=icon]:hidden",n),...s}));Fe.displayName="SidebarMenuSubButton";export{Ce as Sidebar,_e as SidebarContent,He as SidebarFooter,ke as SidebarGroup,Be as SidebarGroupAction,ze as SidebarGroupContent,De as SidebarGroupLabel,Le as SidebarHeader,Ee as SidebarInput,Me as SidebarInset,Oe as SidebarMenu,Ge as SidebarMenuAction,$e as SidebarMenuBadge,We as SidebarMenuButton,Ae as SidebarMenuItem,Ke as SidebarMenuSkeleton,Ue as SidebarMenuSub,Fe as SidebarMenuSubButton,qe as SidebarMenuSubItem,Pe as SidebarProvider,Te as SidebarRail,Ie as SidebarSeparator,Ne as SidebarTrigger,N as useSidebar};
2
- //# sourceMappingURL=sidebar.js.map