@c-rex/ui 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alert.cjs +2 -0
- package/dist/alert.cjs.map +1 -0
- package/dist/alert.d.cts +11 -0
- package/dist/alert.d.ts +11 -0
- package/dist/alert.js +2 -0
- package/dist/alert.js.map +1 -0
- package/dist/breadcrumb.cjs +2 -0
- package/dist/breadcrumb.cjs.map +1 -0
- package/dist/breadcrumb.d.cts +22 -0
- package/dist/breadcrumb.d.ts +22 -0
- package/dist/breadcrumb.js +2 -0
- package/dist/breadcrumb.js.map +1 -0
- package/dist/button.cjs +2 -0
- package/dist/button.cjs.map +1 -0
- package/dist/button.d.cts +15 -0
- package/dist/button.d.ts +15 -0
- package/dist/button.js +2 -0
- package/dist/button.js.map +1 -0
- package/dist/command.cjs +2 -0
- package/dist/command.cjs.map +1 -0
- package/dist/command.d.cts +83 -0
- package/dist/command.d.ts +83 -0
- package/dist/command.js +2 -0
- package/dist/command.js.map +1 -0
- package/dist/dialog.cjs +2 -0
- package/dist/dialog.cjs.map +1 -0
- package/dist/dialog.d.cts +22 -0
- package/dist/dialog.d.ts +22 -0
- package/dist/dialog.js +2 -0
- package/dist/dialog.js.map +1 -0
- package/dist/hooks/use-mobile.cjs +2 -0
- package/dist/hooks/use-mobile.cjs.map +1 -0
- package/dist/hooks/use-mobile.d.cts +3 -0
- package/dist/hooks/use-mobile.d.ts +3 -0
- package/dist/hooks/use-mobile.js +2 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/input.cjs +2 -0
- package/dist/input.cjs.map +1 -0
- package/dist/input.d.cts +5 -0
- package/dist/input.d.ts +5 -0
- package/dist/input.js +2 -0
- package/dist/input.js.map +1 -0
- package/dist/popover.cjs +2 -0
- package/dist/popover.cjs.map +1 -0
- package/dist/popover.d.cts +9 -0
- package/dist/popover.d.ts +9 -0
- package/dist/popover.js +2 -0
- package/dist/popover.js.map +1 -0
- package/dist/select.cjs +2 -0
- package/dist/select.cjs.map +1 -0
- package/dist/select.d.cts +15 -0
- package/dist/select.d.ts +15 -0
- package/dist/select.js +2 -0
- package/dist/select.js.map +1 -0
- package/dist/separator.cjs +2 -0
- package/dist/separator.cjs.map +1 -0
- package/dist/separator.d.cts +6 -0
- package/dist/separator.d.ts +6 -0
- package/dist/separator.js +2 -0
- package/dist/separator.js.map +1 -0
- package/dist/sheet.cjs +2 -0
- package/dist/sheet.cjs.map +1 -0
- package/dist/sheet.d.cts +29 -0
- package/dist/sheet.d.ts +29 -0
- package/dist/sheet.js +2 -0
- package/dist/sheet.js.map +1 -0
- package/dist/sidebar.cjs +2 -0
- package/dist/sidebar.cjs.map +1 -0
- package/dist/sidebar.d.cts +72 -0
- package/dist/sidebar.d.ts +72 -0
- package/dist/sidebar.js +2 -0
- package/dist/sidebar.js.map +1 -0
- package/dist/skeleton.cjs +2 -0
- package/dist/skeleton.cjs.map +1 -0
- package/dist/skeleton.d.cts +5 -0
- package/dist/skeleton.d.ts +5 -0
- package/dist/skeleton.js +2 -0
- package/dist/skeleton.js.map +1 -0
- package/dist/table.cjs +2 -0
- package/dist/table.cjs.map +1 -0
- package/dist/table.d.cts +12 -0
- package/dist/table.d.ts +12 -0
- package/dist/table.js +2 -0
- package/dist/table.js.map +1 -0
- package/dist/tooltip.cjs +2 -0
- package/dist/tooltip.cjs.map +1 -0
- package/dist/tooltip.d.cts +9 -0
- package/dist/tooltip.d.ts +9 -0
- package/dist/tooltip.js +2 -0
- package/dist/tooltip.js.map +1 -0
- package/package.json +114 -97
- package/src/alert.tsx +0 -58
- package/src/breadcrumb.tsx +0 -115
- package/src/button.tsx +0 -66
- package/src/command.tsx +0 -151
- package/src/dialog.tsx +0 -122
- package/src/hooks/use-mobile.tsx +0 -19
- package/src/input.tsx +0 -22
- package/src/popover.tsx +0 -31
- package/src/select.tsx +0 -157
- package/src/separator.tsx +0 -29
- package/src/sheet.tsx +0 -140
- package/src/sidebar.tsx +0 -785
- package/src/skeleton.tsx +0 -15
- package/src/table.tsx +0 -120
- package/src/tooltip.tsx +0 -30
package/dist/dialog.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,KAAAC,MAAS,eCJlB,OAAS,QAAAC,MAA6B,OACtC,OAAS,WAAAC,MAAe,iBAEjB,SAASC,KAAMC,EAAsB,CACxC,OAAOF,EAAQD,EAAKG,CAAM,CAAC,CAC/B,CDeI,cAAAC,EA0BQ,QAAAC,MA1BR,oBAZJ,IAAMC,EAAyB,OAEzBC,EAAgC,UAEhCC,EAA+B,SAE/BC,EAA8B,QAE9BC,EAAsB,aAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAiB,UAAhB,CACG,IAAKS,EACL,UAAWC,EACP,0JACAH,CACJ,EACC,GAAGC,EACR,CACH,EACDF,EAAc,YAA8B,UAAQ,YAEpD,IAAMK,EAAsB,aAG1B,CAAC,CAAE,UAAAJ,EAAW,SAAAK,EAAU,GAAGJ,CAAM,EAAGC,IAClCR,EAACG,EAAA,CACG,UAAAJ,EAACM,EAAA,EAAc,EACfL,EAAiB,UAAhB,CACG,IAAKQ,EACL,UAAWC,EACP,8fACAH,CACJ,EACC,GAAGC,EAEH,UAAAI,EACDX,EAAiB,QAAhB,CAAsB,UAAU,gRAC7B,UAAAD,EAACa,EAAA,CAAE,UAAU,UAAU,EACvBb,EAAC,QAAK,UAAU,UAAU,iBAAK,GACnC,GACJ,GACJ,CACH,EACDW,EAAc,YAA8B,UAAQ,YAEpD,IAAMG,EAAe,CAAC,CAClB,UAAAP,EACA,GAAGC,CACP,IACIR,EAAC,OACG,UAAWU,EACP,qDACAH,CACJ,EACC,GAAGC,EACR,EAEJM,EAAa,YAAc,eAE3B,IAAMC,EAAe,CAAC,CAClB,UAAAR,EACA,GAAGC,CACP,IACIR,EAAC,OACG,UAAWU,EACP,gEACAH,CACJ,EACC,GAAGC,EACR,EAEJO,EAAa,YAAc,eAE3B,IAAMC,EAAoB,aAGxB,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAiB,QAAhB,CACG,IAAKS,EACL,UAAWC,EACP,oDACAH,CACJ,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"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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.d.cts
ADDED
package/dist/input.d.ts
ADDED
package/dist/input.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
|
|
4
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
5
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
|
|
4
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
5
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
package/dist/popover.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,IAAKA,EACL,UAAWC,EACP,iUACAJ,CACJ,EACC,GAAGE,EAEH,UAAAD,KACD,OAAiB,OAAhB,CAAqB,QAAO,GACzB,mBAAC,eAAY,UAAU,qBAAqB,EAChD,GACJ,CACH,EACDF,EAAc,YAA8B,UAAQ,YAEpD,IAAMM,EAA6B,aAGjC,CAAC,CAAE,UAAAL,EAAW,GAAGE,CAAM,EAAGC,OACxB,OAAiB,iBAAhB,CACG,IAAKA,EACL,UAAWC,EACP,uDACAJ,CACJ,EACC,GAAGE,EAEJ,mBAAC,aAAU,UAAU,UAAU,EACnC,CACH,EACDG,EAAqB,YAA8B,iBAAe,YAElE,IAAMC,EAA+B,aAGnC,CAAC,CAAE,UAAAN,EAAW,GAAGE,CAAM,EAAGC,OACxB,OAAiB,mBAAhB,CACG,IAAKA,EACL,UAAWC,EACP,uDACAJ,CACJ,EACC,GAAGE,EAEJ,mBAAC,eAAY,UAAU,UAAU,EACrC,CACH,EACDI,EAAuB,YACH,mBAAiB,YAErC,IAAMC,EAAsB,aAG1B,CAAC,CAAE,UAAAP,EAAW,SAAAC,EAAU,SAAAO,EAAW,SAAU,GAAGN,CAAM,EAAGC,OACvD,OAAiB,SAAhB,CACG,oBAAiB,UAAhB,CACG,IAAKA,EACL,UAAWC,EACP,scACAI,IAAa,UACb,kIACAR,CACJ,EACA,SAAUQ,EACT,GAAGN,EAEJ,oBAACG,EAAA,EAAqB,KACtB,OAAiB,WAAhB,CACG,UAAWD,EACP,MACAI,IAAa,UACb,yFACJ,EAEC,SAAAP,EACL,KACA,OAACK,EAAA,EAAuB,GAC5B,EACJ,CACH,EACDC,EAAc,YAA8B,UAAQ,YAEpD,IAAME,EAAoB,aAGxB,CAAC,CAAE,UAAAT,EAAW,GAAGE,CAAM,EAAGC,OACxB,OAAiB,QAAhB,CACG,IAAKA,EACL,UAAWC,EAAG,oCAAqCJ,CAAS,EAC3D,GAAGE,EACR,CACH,EACDO,EAAY,YAA8B,QAAM,YAEhD,IAAMC,EAAmB,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"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
+
|
|
4
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
5
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
package/dist/select.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
+
|
|
4
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
5
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
package/dist/select.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,YAErC,IAAMC,EAAsB,aAG1B,CAAC,CAAE,UAAAT,EAAW,SAAAC,EAAU,SAAAS,EAAW,SAAU,GAAGR,CAAM,EAAGC,IACvDT,EAAiB,SAAhB,CACG,SAAAC,EAAiB,UAAhB,CACG,IAAKQ,EACL,UAAWC,EACP,scACAM,IAAa,UACb,kIACAV,CACJ,EACA,SAAUU,EACT,GAAGR,EAEJ,UAAAR,EAACY,EAAA,EAAqB,EACtBZ,EAAiB,WAAhB,CACG,UAAWU,EACP,MACAM,IAAa,UACb,yFACJ,EAEC,SAAAT,EACL,EACAP,EAACc,EAAA,EAAuB,GAC5B,EACJ,CACH,EACDC,EAAc,YAA8B,UAAQ,YAEpD,IAAME,EAAoB,aAGxB,CAAC,CAAE,UAAAX,EAAW,GAAGE,CAAM,EAAGC,IACxBT,EAAiB,QAAhB,CACG,IAAKS,EACL,UAAWC,EAAG,oCAAqCJ,CAAS,EAC3D,GAAGE,EACR,CACH,EACDS,EAAY,YAA8B,QAAM,YAEhD,IAAMC,EAAmB,aAGvB,CAAC,CAAE,UAAAZ,EAAW,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAClCR,EAAiB,OAAhB,CACG,IAAKQ,EACL,UAAWC,EACP,4NACAJ,CACJ,EACC,GAAGE,EAEJ,UAAAR,EAAC,QAAK,UAAU,gEACZ,SAAAA,EAAiB,gBAAhB,CACG,SAAAA,EAACmB,EAAA,CAAM,UAAU,UAAU,EAC/B,EACJ,EACAnB,EAAiB,WAAhB,CAA0B,SAAAO,EAAS,GACxC,CACH,EACDW,EAAW,YAA8B,OAAK,YAE9C,IAAME,EAAwB,aAG5B,CAAC,CAAE,UAAAd,EAAW,GAAGE,CAAM,EAAGC,IACxBT,EAAiB,YAAhB,CACG,IAAKS,EACL,UAAWC,EAAG,2BAA4BJ,CAAS,EAClD,GAAGE,EACR,CACH,EACDY,EAAgB,YAA8B,YAAU","names":["React","SelectPrimitive","Check","ChevronDown","ChevronUp","clsx","twMerge","cn","inputs","jsx","jsxs","Select","SelectGroup","SelectValue","SelectTrigger","className","children","props","ref","cn","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","Check","SelectSeparator"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
+
|
|
4
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
|
|
6
|
+
export { Separator };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
+
|
|
4
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
|
|
6
|
+
export { Separator };
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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.d.cts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
|
|
7
|
+
declare const Sheet: React.FC<DialogPrimitive.DialogProps>;
|
|
8
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
declare const SheetClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
declare const SheetPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
11
|
+
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const sheetVariants: (props?: ({
|
|
13
|
+
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
14
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
15
|
+
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
16
|
+
}
|
|
17
|
+
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const SheetHeader: {
|
|
19
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
declare const SheetFooter: {
|
|
23
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
27
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
28
|
+
|
|
29
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
|
package/dist/sheet.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
|
|
7
|
+
declare const Sheet: React.FC<DialogPrimitive.DialogProps>;
|
|
8
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
declare const SheetClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
declare const SheetPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
11
|
+
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const sheetVariants: (props?: ({
|
|
13
|
+
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
14
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
15
|
+
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
16
|
+
}
|
|
17
|
+
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const SheetHeader: {
|
|
19
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
declare const SheetFooter: {
|
|
23
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
27
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
28
|
+
|
|
29
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
|
package/dist/sheet.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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
|