@hua-labs/ui 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{Switch-O4TpMKfQ.d.mts → Switch-Dzm5TLR3.d.mts} +1 -1
- package/dist/advanced/dashboard.d.ts.map +1 -1
- package/dist/advanced-dashboard.js +1 -1
- package/dist/advanced-dashboard.js.map +1 -1
- package/dist/advanced-dashboard.mjs +1 -1
- package/dist/advanced-emotion.js +1 -1
- package/dist/advanced-emotion.js.map +1 -1
- package/dist/advanced-emotion.mjs +1 -1
- package/dist/advanced-motion.js +5 -5
- package/dist/advanced-motion.js.map +1 -1
- package/dist/advanced-motion.mjs +1 -1
- package/dist/advanced.js +7 -7
- package/dist/advanced.js.map +1 -1
- package/dist/advanced.mjs +1 -1
- package/dist/chunk-BXX2TZUB.mjs +3 -0
- package/dist/chunk-BXX2TZUB.mjs.map +1 -0
- package/dist/{chunk-ECLIPN34.mjs → chunk-COR6CDMA.mjs} +3 -3
- package/dist/{chunk-ECLIPN34.mjs.map → chunk-COR6CDMA.mjs.map} +1 -1
- package/dist/chunk-HN5LSP6L.mjs +3 -0
- package/dist/chunk-HN5LSP6L.mjs.map +1 -0
- package/dist/{chunk-T3GU5BJ3.mjs → chunk-LOYAJIWO.mjs} +2 -2
- package/dist/{chunk-T3GU5BJ3.mjs.map → chunk-LOYAJIWO.mjs.map} +1 -1
- package/dist/{chunk-TOANBEPN.mjs → chunk-NBJUE7NR.mjs} +2 -2
- package/dist/{chunk-TOANBEPN.mjs.map → chunk-NBJUE7NR.mjs.map} +1 -1
- package/dist/{chunk-5BMH7223.mjs → chunk-PYBYZVSL.mjs} +2 -2
- package/dist/{chunk-5BMH7223.mjs.map → chunk-PYBYZVSL.mjs.map} +1 -1
- package/dist/{chunk-PQ3DBOMK.mjs → chunk-QQCELXFD.mjs} +2 -2
- package/dist/{chunk-PQ3DBOMK.mjs.map → chunk-QQCELXFD.mjs.map} +1 -1
- package/dist/{chunk-OI66ZLUB.mjs → chunk-UWHCM3S6.mjs} +2 -2
- package/dist/{chunk-OI66ZLUB.mjs.map → chunk-UWHCM3S6.mjs.map} +1 -1
- package/dist/{chunk-MYFMKCYX.mjs → chunk-XV3Y7QVU.mjs} +2 -2
- package/dist/{chunk-MYFMKCYX.mjs.map → chunk-XV3Y7QVU.mjs.map} +1 -1
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Badge.d.ts +1 -1
- package/dist/components/Badge.d.ts.map +1 -1
- package/dist/components/Button.variants.d.ts +1 -1
- package/dist/components/Button.variants.d.ts.map +1 -1
- package/dist/components/Card.d.ts +1 -1
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/Container.d.ts +1 -1
- package/dist/components/Container.d.ts.map +1 -1
- package/dist/components/Grid.d.ts +1 -1
- package/dist/components/Grid.d.ts.map +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Input.d.ts +1 -1
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Label.d.ts +1 -1
- package/dist/components/Label.d.ts.map +1 -1
- package/dist/components/Link.d.ts +1 -1
- package/dist/components/Link.d.ts.map +1 -1
- package/dist/components/Panel.d.ts +1 -1
- package/dist/components/Panel.d.ts.map +1 -1
- package/dist/components/Progress.d.ts +2 -2
- package/dist/components/Progress.d.ts.map +1 -1
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton.d.ts.map +1 -1
- package/dist/components/Stack.d.ts +1 -1
- package/dist/components/Stack.d.ts.map +1 -1
- package/dist/components/Textarea.d.ts +1 -1
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/icons/essential.d.ts +68 -0
- package/dist/components/icons/essential.d.ts.map +1 -0
- package/dist/components/icons-bold/essential.d.ts +68 -0
- package/dist/components/icons-bold/essential.d.ts.map +1 -0
- package/dist/data.d.mts +1 -1
- package/dist/data.js.map +1 -1
- package/dist/data.mjs.map +1 -1
- package/dist/form.d.mts +1 -1
- package/dist/form.js +1 -1
- package/dist/form.js.map +1 -1
- package/dist/form.mjs +1 -1
- package/dist/iconsax-extended.d.ts +19 -0
- package/dist/iconsax-extended.d.ts.map +1 -0
- package/dist/iconsax-extended.js +3 -0
- package/dist/iconsax-extended.js.map +1 -0
- package/dist/iconsax-extended.mjs +4 -0
- package/dist/iconsax-extended.mjs.map +1 -0
- package/dist/iconsax.d.ts +10 -11
- package/dist/iconsax.d.ts.map +1 -1
- package/dist/iconsax.js +2 -2
- package/dist/iconsax.js.map +1 -1
- package/dist/iconsax.mjs +2 -2
- package/dist/iconsax.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interactive.js +1 -1
- package/dist/interactive.js.map +1 -1
- package/dist/interactive.mjs +1 -1
- package/dist/lib/iconsax-loader.d.ts +15 -45
- package/dist/lib/iconsax-loader.d.ts.map +1 -1
- package/dist/navigation.js +2 -2
- package/dist/navigation.js.map +1 -1
- package/dist/navigation.mjs +1 -1
- package/dist/overlay.js +1 -1
- package/dist/overlay.js.map +1 -1
- package/dist/overlay.mjs +1 -1
- package/dist/sdui.js +3 -3
- package/dist/sdui.js.map +1 -1
- package/dist/sdui.mjs +1 -1
- package/package.json +23 -7
- package/src/components/icons/essential.ts +195 -0
- package/src/components/icons-bold/essential.ts +195 -0
- package/LICENSE +0 -21
- package/dist/chunk-AANHUMJ2.mjs +0 -3
- package/dist/chunk-AANHUMJ2.mjs.map +0 -1
- package/dist/chunk-FSL373O6.mjs +0 -3
- package/dist/chunk-FSL373O6.mjs.map +0 -1
- package/dist/components/icons/Frame2.d.ts +0 -4
- package/dist/components/icons/Frame2.d.ts.map +0 -1
- package/dist/components/icons/Group.d.ts +0 -4
- package/dist/components/icons/Group.d.ts.map +0 -1
- package/dist/components/icons/Group1.d.ts +0 -4
- package/dist/components/icons/Group1.d.ts.map +0 -1
- package/dist/components/icons/GroupCopy.d.ts +0 -4
- package/dist/components/icons/GroupCopy.d.ts.map +0 -1
- package/dist/iconsax.d.mts +0 -160
- package/src/components/icons/Frame2.tsx +0 -28
- package/src/components/icons/Group.tsx +0 -35
- package/src/components/icons/Group1.tsx +0 -21
- package/src/components/icons/GroupCopy.tsx +0 -21
package/dist/navigation.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{a as Breadcrumb,b as BreadcrumbItem}from'./chunk-T3GU5BJ3.mjs';import {l}from'./chunk-AANHUMJ2.mjs';import {a as a$1}from'./chunk-6KTHJ3EL.mjs';import {a}from'./chunk-UUHAXGMO.mjs';import p,{useState,useEffect}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var A=p.forwardRef(({className:n,value:e,defaultValue:t,onValueChange:o,variant:s="pills",scale:l="medium",children:m,...d},f)=>{let [g,c]=p.useState(e||t||""),b=e!==void 0,x=b?e:g;return p.useEffect(()=>{e!==void 0&&c(e);},[e]),jsx("div",{ref:f,className:a("w-full",n),...d,children:p.Children.map(m,u=>p.isValidElement(u)?p.cloneElement(u,{value:x,variant:s,scale:l}):u)})});A.displayName="Navigation";var B=p.forwardRef(({className:n,value:e,onValueChange:t,variant:o="pills",scale:s="medium",children:l,...m},d)=>{let f=()=>{switch(o){case "pills":return "bg-muted p-1 rounded-xl";case "underline":return "border-b border-border";case "cards":return "bg-muted/50 p-1 rounded-xl";default:return "bg-muted p-1 rounded-xl"}},g=()=>{switch(s){case "small":return "gap-1";case "large":return "gap-3";default:return "gap-2"}};return jsx("div",{ref:d,className:a("flex",f(),g(),n),...m,children:p.Children.map(l,c=>p.isValidElement(c)?p.cloneElement(c,{value:e,variant:o,scale:s}):c)})});B.displayName="NavigationList";var O=p.forwardRef(({className:n,value:e,onValueChange:t,variant:o="pills",scale:s="medium",active:l=false,children:m,...d},f)=>{let g=()=>{switch(o){case "pills":return a("rounded-lg px-3 py-2 text-sm font-medium transition-all",l?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground");case "underline":return a("border-b-2 px-3 py-2 text-sm font-medium transition-all",l?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground");case "cards":return a("rounded-lg px-3 py-2 text-sm font-medium transition-all",l?"bg-background text-foreground shadow-sm border border-border":"text-muted-foreground hover:text-foreground");default:return a("rounded-lg px-3 py-2 text-sm font-medium transition-all",l?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground")}},c=()=>{switch(s){case "small":return "text-xs px-2 py-1";case "large":return "text-base px-4 py-3";default:return "text-sm px-3 py-2"}},b=()=>{t==null||t(e);};return jsx("button",{ref:f,className:a(g(),c(),"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",n),onClick:b,...d,children:m})});O.displayName="NavigationItem";var j=p.forwardRef(({className:n,active:e=false,...t},o)=>e?jsx("div",{ref:o,className:a("mt-4",n),...t}):null);j.displayName="NavigationContent";var H=A;H.List=B;H.Item=O;H.Content=j;var C=p.forwardRef(({className:n,currentPage:e,totalPages:t,onPageChange:o,showFirstLast:s=true,showPrevNext:l=true,maxVisiblePages:m=5,size:d="md",variant:f="default",shape:g="square",...c},b)=>{let x=()=>{let r=[],R=Math.floor(m/2),h=Math.max(1,e-R),P=Math.min(t,e+R);P-h+1<m&&(h===1?P=Math.min(t,h+m-1):h=Math.max(1,P-m+1)),h>1&&(r.push(1),h>2&&r.push("..."));for(let D=h;D<=P;D++)r.push(D);return P<t&&(P<t-1&&r.push("..."),r.push(t)),r},v=()=>{switch(d){case "sm":return "h-8 px-2 text-sm";case "lg":return "h-12 px-4 text-base";default:return "h-10 px-3 text-sm"}},u=()=>g==="circle"?"rounded-full aspect-square flex items-center justify-center":"rounded-md",N=(r=false)=>{switch(f){case "outlined":return a("border border-border",r?"bg-primary border-primary text-primary-foreground":"bg-background text-foreground hover:bg-muted");case "minimal":return a("border-0",r?"bg-primary/10 text-primary":"bg-transparent text-foreground hover:bg-muted");default:return a("border-0",r?"bg-primary text-primary-foreground":"bg-background text-foreground hover:bg-muted")}},M=r=>{r>=1&&r<=t&&r!==e&&o(r);},G=x();return jsxs("div",{ref:b,className:a("flex items-center justify-center gap-1",n),...c,children:[s&&e>1&&jsx("button",{onClick:()=>M(1),className:a("inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",v(),u(),N()),"aria-label":"\uCCAB \uD398\uC774\uC9C0\uB85C \uC774\uB3D9",children:jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 19l-7-7 7-7M19 19l-7-7 7-7"})})}),l&&e>1&&jsx("button",{onClick:()=>M(e-1),className:a("inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",v(),u(),N()),"aria-label":"\uC774\uC804 \uD398\uC774\uC9C0\uB85C \uC774\uB3D9",children:jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),G.map((r,R)=>jsx(p.Fragment,{children:r==="..."?jsx("span",{className:a("inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-muted-foreground",v()),children:"..."}):jsx("button",{onClick:()=>M(r),className:a("inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",v(),u(),N(r===e)),"aria-label":`${r}\uD398\uC774\uC9C0\uB85C \uC774\uB3D9`,"aria-current":r===e?"page":void 0,children:r})},R)),l&&e<t&&jsx("button",{onClick:()=>M(e+1),className:a("inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",v(),u(),N()),"aria-label":"\uB2E4\uC74C \uD398\uC774\uC9C0\uB85C \uC774\uB3D9",children:jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}),s&&e<t&&jsx("button",{onClick:()=>M(t),className:a("inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",v(),u(),N()),"aria-label":"\uB9C8\uC9C0\uB9C9 \uD398\uC774\uC9C0\uB85C \uC774\uB3D9",children:jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 5l7 7-7 7M5 5l7 7-7 7"})})})]})});C.displayName="Pagination";var V=p.forwardRef(({className:n,...e},t)=>jsx(C,{ref:t,variant:"outlined",className:n,...e}));V.displayName="PaginationOutlined";var q=p.forwardRef(({className:n,...e},t)=>jsx(C,{ref:t,variant:"minimal",className:n,...e}));q.displayName="PaginationMinimal";var z=p.forwardRef(({totalItems:n=0,itemsPerPage:e=10,showInfo:t=true,className:o,...s},l)=>{let m=(s.currentPage-1)*e+1,d=Math.min(s.currentPage*e,n);return jsxs("div",{className:a("flex flex-col sm:flex-row items-center justify-between gap-4",o),children:[t&&jsx("div",{className:"text-sm text-foreground",children:n>0?jsxs(Fragment,{children:[jsx("span",{className:"font-medium",children:m})," - ",jsx("span",{className:"font-medium",children:d})," of ",jsx("span",{className:"font-medium",children:n})," results"]}):"No results"}),jsx(C,{ref:l,...s})]})});z.displayName="PaginationWithInfo";var _=p.forwardRef(({className:n,prevPage:e,nextPage:t,showOnMobile:o=false,...s},l$1)=>!e&&!t?null:jsxs("div",{ref:l$1,className:a("flex items-center justify-between py-4",!o&&"hidden md:flex",n),...s,children:[jsx("div",{className:"flex-1",children:e&&jsxs("a",{href:e.href,className:"group inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[jsx(l,{name:"chevronLeft",className:"w-4 h-4 mr-2 transition-transform group-hover:-translate-x-1"}),jsx("span",{className:"hidden sm:inline",children:e.title})]})}),jsx("div",{className:"flex-1 flex justify-end",children:t&&jsxs("a",{href:t.href,className:"group inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[jsx("span",{className:"hidden sm:inline mr-2",children:t.title}),jsx(l,{name:"chevronRight",className:"w-4 h-4 transition-transform group-hover:translate-x-1"})]})})]}));_.displayName="PageNavigation";var T=p.forwardRef(({children:n,className:e,duration:t=300,variant:o="fade",loadingVariant:s="ripple",loadingText:l="\uD398\uC774\uC9C0 \uB85C\uB529 \uC911...",showLoading:m=true,onTransitionStart:d,onTransitionEnd:f},g)=>{let[c,b]=useState(true),[x,v]=useState(false);useEffect(()=>{let N=setTimeout(()=>{b(false),v(true),f==null||f();},t);return d==null||d(),()=>clearTimeout(N)},[t,d,f]);let u={fade:a("transition-opacity duration-300 ease-in-out",x?"opacity-100":"opacity-0"),slide:a("transition-transform duration-300 ease-in-out",x?"translate-x-0":"translate-x-full"),scale:a("transition-all duration-300 ease-in-out",x?"scale-100 opacity-100":"scale-95 opacity-0"),flip:a("transition-all duration-500 ease-in-out",x?"rotate-y-0 opacity-100":"rotate-y-90 opacity-0")};return c&&m?jsx("div",{className:a("flex flex-col items-center justify-center min-h-screen bg-gradient-to-br from-indigo-50 to-purple-50 dark:from-slate-900 dark:to-slate-800",e),children:jsx(a$1,{size:"lg",variant:s,text:l})}):jsx("div",{ref:g,className:a("w-full",u[o],e),style:{transitionDuration:`${t}ms`},children:n})});T.displayName="PageTransition";var Y=p.forwardRef((n,e)=>jsx(T,{ref:e,variant:"fade",...n})),Z=p.forwardRef((n,e)=>jsx(T,{ref:e,variant:"slide",...n})),ee=p.forwardRef((n,e)=>jsx(T,{ref:e,variant:"scale",...n})),te=p.forwardRef((n,e)=>jsx(T,{ref:e,variant:"flip",...n}));Y.displayName="FadeTransition";Z.displayName="SlideTransition";ee.displayName="ScaleTransition";te.displayName="FlipTransition";export{H as Navigation,j as NavigationContent,O as NavigationItem,B as NavigationList,_ as PageNavigation,T as PageTransition,C as Pagination,q as PaginationMinimal,V as PaginationOutlined,z as PaginationWithInfo};//# sourceMappingURL=navigation.mjs.map
|
|
2
|
+
export{a as Breadcrumb,b as BreadcrumbItem}from'./chunk-LOYAJIWO.mjs';import {l}from'./chunk-HN5LSP6L.mjs';import {a as a$1}from'./chunk-6KTHJ3EL.mjs';import {a}from'./chunk-UUHAXGMO.mjs';import p,{useState,useEffect}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var A=p.forwardRef(({className:n,value:e,defaultValue:t,onValueChange:o,variant:s="pills",scale:l="medium",children:m,...d},f)=>{let [g,c]=p.useState(e||t||""),b=e!==void 0,x=b?e:g;return p.useEffect(()=>{e!==void 0&&c(e);},[e]),jsx("div",{ref:f,className:a("w-full",n),...d,children:p.Children.map(m,u=>p.isValidElement(u)?p.cloneElement(u,{value:x,variant:s,scale:l}):u)})});A.displayName="Navigation";var B=p.forwardRef(({className:n,value:e,onValueChange:t,variant:o="pills",scale:s="medium",children:l,...m},d)=>{let f=()=>{switch(o){case "pills":return "bg-muted p-1 rounded-xl";case "underline":return "border-b border-border";case "cards":return "bg-muted/50 p-1 rounded-xl";default:return "bg-muted p-1 rounded-xl"}},g=()=>{switch(s){case "small":return "gap-1";case "large":return "gap-3";default:return "gap-2"}};return jsx("div",{ref:d,className:a("flex",f(),g(),n),...m,children:p.Children.map(l,c=>p.isValidElement(c)?p.cloneElement(c,{value:e,variant:o,scale:s}):c)})});B.displayName="NavigationList";var O=p.forwardRef(({className:n,value:e,onValueChange:t,variant:o="pills",scale:s="medium",active:l=false,children:m,...d},f)=>{let g=()=>{switch(o){case "pills":return a("rounded-lg px-3 py-2 text-sm font-medium transition-all",l?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground");case "underline":return a("border-b-2 px-3 py-2 text-sm font-medium transition-all",l?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground");case "cards":return a("rounded-lg px-3 py-2 text-sm font-medium transition-all",l?"bg-background text-foreground shadow-sm border border-border":"text-muted-foreground hover:text-foreground");default:return a("rounded-lg px-3 py-2 text-sm font-medium transition-all",l?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground")}},c=()=>{switch(s){case "small":return "text-xs px-2 py-1";case "large":return "text-base px-4 py-3";default:return "text-sm px-3 py-2"}},b=()=>{t==null||t(e);};return jsx("button",{ref:f,className:a(g(),c(),"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",n),onClick:b,...d,children:m})});O.displayName="NavigationItem";var j=p.forwardRef(({className:n,active:e=false,...t},o)=>e?jsx("div",{ref:o,className:a("mt-4",n),...t}):null);j.displayName="NavigationContent";var H=A;H.List=B;H.Item=O;H.Content=j;var C=p.forwardRef(({className:n,currentPage:e,totalPages:t,onPageChange:o,showFirstLast:s=true,showPrevNext:l=true,maxVisiblePages:m=5,size:d="md",variant:f="default",shape:g="square",...c},b)=>{let x=()=>{let r=[],R=Math.floor(m/2),h=Math.max(1,e-R),P=Math.min(t,e+R);P-h+1<m&&(h===1?P=Math.min(t,h+m-1):h=Math.max(1,P-m+1)),h>1&&(r.push(1),h>2&&r.push("..."));for(let D=h;D<=P;D++)r.push(D);return P<t&&(P<t-1&&r.push("..."),r.push(t)),r},v=()=>{switch(d){case "sm":return "h-8 px-2 text-sm";case "lg":return "h-12 px-4 text-base";default:return "h-10 px-3 text-sm"}},u=()=>g==="circle"?"rounded-full aspect-square flex items-center justify-center":"rounded-md",N=(r=false)=>{switch(f){case "outlined":return a("border border-border",r?"bg-primary border-primary text-primary-foreground":"bg-background text-foreground hover:bg-muted");case "minimal":return a("border-0",r?"bg-primary/10 text-primary":"bg-transparent text-foreground hover:bg-muted");default:return a("border-0",r?"bg-primary text-primary-foreground":"bg-background text-foreground hover:bg-muted")}},M=r=>{r>=1&&r<=t&&r!==e&&o(r);},G=x();return jsxs("div",{ref:b,className:a("flex items-center justify-center gap-1",n),...c,children:[s&&e>1&&jsx("button",{onClick:()=>M(1),className:a("inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",v(),u(),N()),"aria-label":"\uCCAB \uD398\uC774\uC9C0\uB85C \uC774\uB3D9",children:jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 19l-7-7 7-7M19 19l-7-7 7-7"})})}),l&&e>1&&jsx("button",{onClick:()=>M(e-1),className:a("inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",v(),u(),N()),"aria-label":"\uC774\uC804 \uD398\uC774\uC9C0\uB85C \uC774\uB3D9",children:jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),G.map((r,R)=>jsx(p.Fragment,{children:r==="..."?jsx("span",{className:a("inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-muted-foreground",v()),children:"..."}):jsx("button",{onClick:()=>M(r),className:a("inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",v(),u(),N(r===e)),"aria-label":`${r}\uD398\uC774\uC9C0\uB85C \uC774\uB3D9`,"aria-current":r===e?"page":void 0,children:r})},R)),l&&e<t&&jsx("button",{onClick:()=>M(e+1),className:a("inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",v(),u(),N()),"aria-label":"\uB2E4\uC74C \uD398\uC774\uC9C0\uB85C \uC774\uB3D9",children:jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}),s&&e<t&&jsx("button",{onClick:()=>M(t),className:a("inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",v(),u(),N()),"aria-label":"\uB9C8\uC9C0\uB9C9 \uD398\uC774\uC9C0\uB85C \uC774\uB3D9",children:jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 5l7 7-7 7M5 5l7 7-7 7"})})})]})});C.displayName="Pagination";var V=p.forwardRef(({className:n,...e},t)=>jsx(C,{ref:t,variant:"outlined",className:n,...e}));V.displayName="PaginationOutlined";var q=p.forwardRef(({className:n,...e},t)=>jsx(C,{ref:t,variant:"minimal",className:n,...e}));q.displayName="PaginationMinimal";var z=p.forwardRef(({totalItems:n=0,itemsPerPage:e=10,showInfo:t=true,className:o,...s},l)=>{let m=(s.currentPage-1)*e+1,d=Math.min(s.currentPage*e,n);return jsxs("div",{className:a("flex flex-col sm:flex-row items-center justify-between gap-4",o),children:[t&&jsx("div",{className:"text-sm text-foreground",children:n>0?jsxs(Fragment,{children:[jsx("span",{className:"font-medium",children:m})," - ",jsx("span",{className:"font-medium",children:d})," of ",jsx("span",{className:"font-medium",children:n})," results"]}):"No results"}),jsx(C,{ref:l,...s})]})});z.displayName="PaginationWithInfo";var _=p.forwardRef(({className:n,prevPage:e,nextPage:t,showOnMobile:o=false,...s},l$1)=>!e&&!t?null:jsxs("div",{ref:l$1,className:a("flex items-center justify-between py-4",!o&&"hidden md:flex",n),...s,children:[jsx("div",{className:"flex-1",children:e&&jsxs("a",{href:e.href,className:"group inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[jsx(l,{name:"chevronLeft",className:"w-4 h-4 mr-2 transition-transform group-hover:-translate-x-1"}),jsx("span",{className:"hidden sm:inline",children:e.title})]})}),jsx("div",{className:"flex-1 flex justify-end",children:t&&jsxs("a",{href:t.href,className:"group inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[jsx("span",{className:"hidden sm:inline mr-2",children:t.title}),jsx(l,{name:"chevronRight",className:"w-4 h-4 transition-transform group-hover:translate-x-1"})]})})]}));_.displayName="PageNavigation";var T=p.forwardRef(({children:n,className:e,duration:t=300,variant:o="fade",loadingVariant:s="ripple",loadingText:l="\uD398\uC774\uC9C0 \uB85C\uB529 \uC911...",showLoading:m=true,onTransitionStart:d,onTransitionEnd:f},g)=>{let[c,b]=useState(true),[x,v]=useState(false);useEffect(()=>{let N=setTimeout(()=>{b(false),v(true),f==null||f();},t);return d==null||d(),()=>clearTimeout(N)},[t,d,f]);let u={fade:a("transition-opacity duration-300 ease-in-out",x?"opacity-100":"opacity-0"),slide:a("transition-transform duration-300 ease-in-out",x?"translate-x-0":"translate-x-full"),scale:a("transition-all duration-300 ease-in-out",x?"scale-100 opacity-100":"scale-95 opacity-0"),flip:a("transition-all duration-500 ease-in-out",x?"rotate-y-0 opacity-100":"rotate-y-90 opacity-0")};return c&&m?jsx("div",{className:a("flex flex-col items-center justify-center min-h-screen bg-gradient-to-br from-indigo-50 to-purple-50 dark:from-slate-900 dark:to-slate-800",e),children:jsx(a$1,{size:"lg",variant:s,text:l})}):jsx("div",{ref:g,className:a("w-full",u[o],e),style:{transitionDuration:`${t}ms`},children:n})});T.displayName="PageTransition";var Y=p.forwardRef((n,e)=>jsx(T,{ref:e,variant:"fade",...n})),Z=p.forwardRef((n,e)=>jsx(T,{ref:e,variant:"slide",...n})),ee=p.forwardRef((n,e)=>jsx(T,{ref:e,variant:"scale",...n})),te=p.forwardRef((n,e)=>jsx(T,{ref:e,variant:"flip",...n}));Y.displayName="FadeTransition";Z.displayName="SlideTransition";ee.displayName="ScaleTransition";te.displayName="FlipTransition";export{H as Navigation,j as NavigationContent,O as NavigationItem,B as NavigationList,_ as PageNavigation,T as PageTransition,C as Pagination,q as PaginationMinimal,V as PaginationOutlined,z as PaginationWithInfo};//# sourceMappingURL=navigation.mjs.map
|
|
3
3
|
//# sourceMappingURL=navigation.mjs.map
|
package/dist/overlay.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';var H=require('react'),reactDom=require('react-dom'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),classVarianceAuthority=require('class-variance-authority'),ssr=require('@phosphor-icons/react/dist/ssr');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var H__default=/*#__PURE__*/_interopDefault(H);function s(...e){return tailwindMerge.twMerge(clsx.clsx(e))}function le(e){let o=Object.entries(e).filter(([,r])=>r).map(([r])=>r);return s(...o)}function mo(...e){return H__default.default.useCallback(o=>{e.forEach(r=>{r&&(typeof r=="function"?r(o):r.current=o);});},e)}var ne=H__default.default.forwardRef(({className:e,isOpen:o,onClose:r,children:t,size:n="md",closable:a,closeOnOverlayClick:R=true,title:u,description:k,showBackdrop:P=true,backdropClassName:E,centered:b=true},I)=>{let h=a!=null?a:true,x=H__default.default.useRef(null),p=mo(I,x);H__default.default.useEffect(()=>{let c=v=>{v.key==="Escape"&&r();};if(o){document.addEventListener("keydown",c);let v=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${v}px`;}return ()=>{document.removeEventListener("keydown",c),document.body.style.overflow="unset",document.body.style.paddingRight="unset";}},[o,r]);let l=c=>{R&&c.target===c.currentTarget&&r();},i={sm:"max-w-xs",md:"max-w-sm",lg:"max-w-md",xl:"max-w-lg","2xl":"max-w-xl","3xl":"max-w-2xl"},m=H__default.default.useId(),C=H__default.default.useId(),N=u?`modal-title-${m}`:void 0,S=k?`modal-description-${C}`:void 0,[f,d]=H__default.default.useState(false);if(H__default.default.useEffect(()=>{d(true);},[]),!o)return null;let A=jsxRuntime.jsxs("div",{className:s("fixed inset-0 z-50 overflow-y-auto",e),onClick:l,role:"dialog","aria-modal":"true","aria-labelledby":N,"aria-describedby":S,children:[P&&jsxRuntime.jsx("div",{className:s("fixed inset-0 bg-black/60 backdrop-blur-md transition-opacity duration-300 pointer-events-none",E)}),jsxRuntime.jsx("div",{className:s("flex h-full justify-center p-4",b?"items-center":"items-start pt-16"),children:jsxRuntime.jsxs("div",{ref:p,className:s("relative bg-[var(--modal-bg)] rounded-lg shadow-2xl border border-[var(--modal-border)] transform transition-all duration-300 ease-out",i[n]),style:{animation:"modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1)"},children:[u&&jsxRuntime.jsxs("div",{className:"relative z-10 px-6 pt-6 pb-4 border-b border-border/50",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-4 mb-2",children:[jsxRuntime.jsx("h2",{id:N,className:"text-xl font-semibold text-foreground flex-1 min-w-0",children:u}),h&&jsxRuntime.jsx("button",{onClick:r,className:"flex-shrink-0 p-2 text-muted-foreground hover:text-foreground transition-all duration-200 rounded-full hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 z-20","aria-label":"\uB2EB\uAE30",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),k&&jsxRuntime.jsx("p",{id:S,className:"text-sm text-muted-foreground",children:k})]}),!u&&h&&jsxRuntime.jsx("button",{onClick:r,className:"absolute top-4 right-4 p-2 text-muted-foreground hover:text-foreground transition-all duration-200 rounded-full hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 z-20","aria-label":"\uB2EB\uAE30",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),jsxRuntime.jsx("div",{className:`relative z-10 ${u?"px-6 mb-6":"p-6"}`,children:t})]})})]});return f&&typeof document!="undefined"?reactDom.createPortal(A,document.body):null});ne.displayName="Modal";var xe="[transition:transform_180ms_cubic-bezier(0.34,1.56,0.64,1),box-shadow_200ms_ease-out]",we=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap font-medium transition-all duration-200 disabled:pointer-events-none disabled:opacity-50 min-w-fit focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-background)]",{variants:{variant:{default:"bg-[var(--color-primary)] text-[var(--color-primary-foreground)] hover:opacity-90",destructive:"bg-[var(--color-destructive)] text-[var(--color-destructive-foreground)] hover:opacity-90 focus-visible:ring-[var(--color-destructive)]",outline:"border-2 border-[var(--color-border)] bg-transparent text-[var(--color-foreground)] hover:bg-[var(--color-accent)] hover:text-[var(--color-accent-foreground)] focus-visible:ring-offset-0",secondary:"bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)] hover:opacity-80",ghost:"bg-transparent text-[var(--color-foreground)] hover:bg-[var(--color-accent)] hover:text-[var(--color-accent-foreground)] focus-visible:ring-offset-0",link:"bg-transparent text-[var(--color-primary)] underline hover:opacity-80 focus-visible:ring-offset-0",gradient:"bg-gradient-to-r from-[var(--btn-gradient-from,theme(colors.teal.500))] to-[var(--btn-gradient-to,theme(colors.cyan.500))] text-white hover:shadow-lg",neon:"bg-slate-900 dark:bg-slate-950 text-teal-400 border border-teal-500/50 shadow-lg shadow-[var(--btn-neon-glow,theme(colors.teal.500/20%))] hover:shadow-[var(--btn-neon-glow,theme(colors.teal.500/40%))] hover:border-teal-400",glass:"bg-white/50 dark:bg-slate-900/50 backdrop-blur-md border border-slate-200/50 dark:border-slate-700/50 text-slate-900 dark:text-slate-100 hover:bg-white/70 dark:hover:bg-slate-900/70"},size:{sm:"h-8 px-4 py-2 text-sm",md:"h-10 px-6 py-2 text-base",lg:"h-12 px-8 py-3 text-lg",xl:"h-14 px-10 py-4 text-xl",icon:"h-10 w-10 p-0"},rounded:{sm:"rounded",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},shadow:{none:"",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl"},hover:{springy:`hover:scale-[1.015] hover:shadow-md active:scale-[0.985] ${xe} transform-gpu`,scale:"hover:scale-[1.015] active:scale-[0.985] transition-transform duration-150 ease-out transform-gpu",glow:"hover:shadow-lg hover:shadow-primary/25 transition-shadow duration-200",slide:`hover:-translate-y-0.5 hover:shadow-md ${xe} transform-gpu`,none:""},fullWidth:{true:"w-full",false:""}},defaultVariants:{variant:"default",size:"md",rounded:"md",shadow:"md",hover:"springy",fullWidth:false}}),ce={blue:"from-teal-500 to-cyan-500",purple:"from-purple-500 to-pink-500",green:"from-green-500 to-emerald-500 dark:from-green-400 dark:to-emerald-400",orange:"from-orange-500 to-red-500 dark:from-orange-300 dark:to-red-300",pink:"from-pink-500 to-rose-500"};function vo(...e){return o=>{e.forEach(r=>{typeof r=="function"?r(o):r!=null&&(r.current=o);});}}function xo(e,o){return r=>{e==null||e(r),r.defaultPrevented||o==null||o(r);}}function wo(e,o){if(!(!e&&!o))return clsx.clsx(e,o)}function yo(e,o){if(!(!e&&!o))return {...e,...o}}function ko(e,o){let r={...e};for(let t in o){let n=e[t],a=o[t];/^on[A-Z]/.test(t)?n&&a?r[t]=xo(n,a):r[t]=a||n:t==="className"?r[t]=wo(n,a):t==="style"?r[t]=yo(n,a):r[t]=a!==void 0?a:n;}return r}function Co(e){return H__default.default.isValidElement(e)}var de=H__default.default.forwardRef(({children:e,...o},r)=>{let t=H__default.default.Children.toArray(e);if(t.length!==1)return process.env.NODE_ENV!=="production"&&console.warn("[Slot] asChild\uB294 \uC815\uD655\uD788 \uD558\uB098\uC758 \uC790\uC2DD \uC694\uC18C\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4."),null;let n=t[0];if(!Co(n))return process.env.NODE_ENV!=="production"&&console.warn("[Slot] \uC790\uC2DD\uC740 \uC720\uD6A8\uD55C React \uC694\uC18C\uC5EC\uC57C \uD569\uB2C8\uB2E4."),null;let a=n.props,R=n.ref,u=ko(o,a),k=vo(r,R);return H__default.default.cloneElement(n,{...u,ref:k})});de.displayName="Slot";var Ro=typeof window!="undefined";function No(){let[e,o]=H__default.default.useState(false);return H__default.default.useEffect(()=>{var n;if(!Ro||!("matchMedia"in window))return;let r=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>o(!!r.matches);return t(),(n=r.addEventListener)==null||n.call(r,"change",t),()=>{var a;return (a=r.removeEventListener)==null?void 0:a.call(r,"change",t)}},[]),e}var ye=H__default.default.forwardRef(function({variant:o="default",size:r="md",loading:t=false,icon:n,iconPosition:a="left",gradient:R="blue",customGradient:u,rounded:k="md",shadow:P="md",hover:E="springy",fullWidth:b,iconOnly:I,className:h,children:x,disabled:p,asChild:l=false,...i},m){let C=No(),N=o==="gradient"?u?`bg-gradient-to-r ${u}`:`bg-gradient-to-r ${ce[R]||ce.blue}`:void 0,S=s(we({variant:o,size:r,rounded:k,shadow:P,hover:C?"none":E,fullWidth:b!=null?b:false}),N,h),d=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t&&jsxRuntime.jsxs("span",{role:"status","aria-live":"polite",className:"-ml-1 mr-2 inline-flex",children:[jsxRuntime.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",fill:"none",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),jsxRuntime.jsx("span",{className:"sr-only",children:"\uB85C\uB529 \uC911"})]}),!t&&n&&a==="left"&&jsxRuntime.jsx("span",{className:"mr-2",children:n}),x,!t&&n&&a==="right"&&jsxRuntime.jsx("span",{className:"ml-2",children:n})]});if(I&&!("aria-label"in i)&&process.env.NODE_ENV!=="production"&&console.warn("[Button] iconOnly \uC0AC\uC6A9 \uC2DC aria-label\uC744 \uC81C\uACF5\uD558\uC138\uC694."),l){let L={className:S,ref:m,disabled:p||t,"aria-busy":t||void 0,"aria-disabled":p||t||void 0,...i};return jsxRuntime.jsx(de,{...L,children:x})}if("href"in i&&i.href){let{onClick:L,target:W,rel:w,href:g,"aria-label":Q,className:ee,...y}=i,O=!!p||t,J=$=>{if(O){$.preventDefault(),$.stopPropagation();return}L==null||L($);};return jsxRuntime.jsx("a",{ref:m,href:g,className:s(S,ee),onClick:J,"aria-busy":t||void 0,"aria-disabled":O||void 0,tabIndex:O?-1:y.tabIndex,target:W,rel:W==="_blank"?w!=null?w:"noopener noreferrer":w,...y,children:d})}let{className:A,...c}=i,v=!!p||t;return jsxRuntime.jsx("button",{ref:m,className:s(S,A),type:"button",disabled:v,"aria-busy":t||void 0,"aria-disabled":v||void 0,...c,children:d})});ye.displayName="Button";var he=ye;var ke=H__default.default.forwardRef(({isOpen:e,onClose:o,onConfirm:r,title:t,message:n,warning:a,confirmText:R="\uD655\uC778",cancelText:u="\uCDE8\uC18C",confirmButtonText:k,type:P="danger",loading:E=false,disabled:b=false,showInput:I=false,inputValue:h="",onInputChange:x,inputPlaceholder:p,inputLabel:l,requiredInputValue:i,showCancel:m=true,size:C="md"},N)=>{let f={danger:{icon:jsxRuntime.jsx("svg",{className:"h-6 w-6 text-destructive",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})}),bgColor:"bg-destructive/10",buttonColor:"bg-destructive hover:bg-destructive/90 focus:ring-destructive",textColor:"text-destructive"},warning:{icon:jsxRuntime.jsx("svg",{className:"h-6 w-6 text-yellow-600 dark:text-yellow-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})}),bgColor:"bg-yellow-100 dark:bg-yellow-900/20",buttonColor:"bg-yellow-600 hover:bg-yellow-700 focus:ring-yellow-500",textColor:"text-yellow-600 dark:text-yellow-400"},info:{icon:jsxRuntime.jsx("svg",{className:"h-6 w-6 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),bgColor:"bg-primary/10",buttonColor:"bg-primary hover:bg-primary/80 focus:ring-ring",textColor:"text-primary"},success:{icon:jsxRuntime.jsx("svg",{className:"h-6 w-6 text-green-600 dark:text-green-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),bgColor:"bg-green-100 dark:bg-green-900/20",buttonColor:"bg-green-600 hover:bg-green-700 focus:ring-green-500",textColor:"text-green-600 dark:text-green-400"},error:{icon:jsxRuntime.jsx("svg",{className:"h-6 w-6 text-destructive",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),bgColor:"bg-destructive/10",buttonColor:"bg-destructive hover:bg-destructive/90 focus:ring-destructive",textColor:"text-destructive"}}[P],A=b||E||!(!I||!i||h===i);return jsxRuntime.jsx(ne,{isOpen:e,onClose:o,closable:false,size:C,children:jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("div",{className:s("mx-auto flex items-center justify-center h-16 w-16 rounded-full mb-6",f.bgColor),children:f.icon}),jsxRuntime.jsxs("h3",{className:"text-xl font-semibold text-foreground mb-4",children:[" ",t]}),jsxRuntime.jsxs("div",{className:"mb-6",children:[" ",jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:n}),a&&jsxRuntime.jsx("p",{className:s("text-sm mt-3 font-medium",f.textColor),children:a})]}),I&&jsxRuntime.jsxs("div",{className:"mb-6",children:[" ",jsxRuntime.jsxs("label",{htmlFor:"confirmInput",className:"block text-sm font-medium text-foreground mb-3 text-left",children:[" ",l]}),jsxRuntime.jsx("input",{type:"text",id:"confirmInput",value:h,onChange:c=>x==null?void 0:x(c.target.value),placeholder:p,className:"w-full px-4 py-3 border border-input rounded-lg focus:outline-none focus:ring-1 focus:ring-destructive focus:border-transparent bg-background text-foreground transition-colors"})]}),jsxRuntime.jsxs("div",{className:s("flex gap-3","justify-center"),children:[m&&jsxRuntime.jsx(he,{variant:"outline",onClick:o,disabled:E,className:"px-6 py-3",children:u}),jsxRuntime.jsx(he,{variant:"default",onClick:r,disabled:A,className:s("px-6 py-3",f.buttonColor),children:E?jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"\uCC98\uB9AC \uC911..."]}):k||R})]})]})})});ke.displayName="ConfirmModal";var Re=H__default.default.forwardRef(({className:e,children:o,trigger:r,open:t,onOpenChange:n,position:a="bottom",align:R="center",offset:u=8,disabled:k=false,contentClassName:P,...E},b)=>{let[I,h]=H__default.default.useState(false),x=H__default.default.useRef(null),p=H__default.default.useRef(null),l=t!==void 0,i=l?t:I,m=H__default.default.useCallback(d=>{k||(l||h(d),n==null||n(d));},[k,l,n]),C=()=>{m(!i);};H__default.default.useEffect(()=>{let d=A=>{x.current&&p.current&&!x.current.contains(A.target)&&!p.current.contains(A.target)&&m(false);};if(i)return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d);}},[i,m]);let N=()=>{let d="absolute z-50";switch(a){case "top":return s(d,"bottom-full",`mb-${Math.max(1,Math.floor(u/4))}`);case "bottom":return s(d,"top-full",`mt-${Math.max(1,Math.floor(u/4))}`);case "left":return s(d,"right-full",`mr-${Math.max(1,Math.floor(u/4))}`);case "right":return s(d,"left-full",`ml-${Math.max(1,Math.floor(u/4))}`);default:return s(d,"top-full",`mt-${Math.max(1,Math.floor(u/4))}`)}},S=()=>{switch(R){case "start":return a==="top"||a==="bottom"?"left-0":"top-0";case "end":return a==="top"||a==="bottom"?"right-0":"bottom-0";default:return a==="top"||a==="bottom"?"left-1/2 -translate-x-1/2":"top-1/2 -translate-y-1/2"}},f=()=>{let d="absolute w-0 h-0 border-4 border-transparent";switch(a){case "top":return `${d} top-full left-1/2 -translate-x-1/2 border-t-gray-200 dark:border-t-gray-700`;case "bottom":return `${d} bottom-full left-1/2 -translate-x-1/2 border-b-gray-200 dark:border-b-gray-700`;case "left":return `${d} left-full top-1/2 -translate-y-1/2 border-l-gray-200 dark:border-l-gray-700`;case "right":return `${d} right-full top-1/2 -translate-y-1/2 border-r-gray-200 dark:border-r-gray-700`;default:return `${d} bottom-full left-1/2 -translate-x-1/2 border-b-gray-200 dark:border-b-gray-700`}};return jsxRuntime.jsxs("div",{ref:b,className:s("relative",e),...E,children:[jsxRuntime.jsx("div",{ref:x,onClick:C,className:"inline-block cursor-pointer",children:r}),i&&jsxRuntime.jsxs("div",{ref:p,className:s("bg-popover text-popover-foreground border border-border rounded-lg shadow-lg p-4 min-w-[200px]",N(),S(),P),children:[jsxRuntime.jsx("div",{className:f()}),jsxRuntime.jsx("div",{className:"relative z-10",children:o})]})]})});Re.displayName="Popover";var Ne=H__default.default.forwardRef(({className:e,children:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("inline-block cursor-pointer",e),...r,children:o}));Ne.displayName="PopoverTrigger";var Ie=H__default.default.forwardRef(({className:e,children:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("bg-popover text-popover-foreground border border-border rounded-lg shadow-lg p-4",e),...r,children:o}));Ie.displayName="PopoverContent";var Se=H__default.default.forwardRef(({className:e,trigger:o,children:r,open:t,onOpenChange:n,placement:a="bottom",align:R="start",offset:u=8,disabled:k=false,showArrow:P=true,...E},b)=>{let[I,h]=H__default.default.useState(false),[x,p]=H__default.default.useState({x:0,y:0}),l=H__default.default.useRef(null),i=H__default.default.useRef(null),m=t!==void 0,C=m?t:I,N=H__default.default.useCallback(c=>{k||(m||h(c),n==null||n(c));},[k,m,n]),S=()=>{N(!C);},f=H__default.default.useCallback(()=>{if(!l.current||!i.current)return;let c=l.current.getBoundingClientRect(),v=i.current.getBoundingClientRect(),L=window.innerWidth,W=window.innerHeight,w=0,g=0;switch(a){case "top":w=c.left,g=c.top-u;break;case "bottom":w=c.left,g=c.bottom+u;break;case "left":w=c.left-u,g=c.top;break;case "right":w=c.right+u,g=c.top;break}switch(R){case "center":a==="top"||a==="bottom"?w=c.left+c.width/2-v.width/2:g=c.top+c.height/2-v.height/2;break;case "end":a==="top"||a==="bottom"?w=c.right-v.width:g=c.bottom-v.height;break;}w<8&&(w=8),w+v.width>L-8&&(w=L-v.width-8),g<8&&(g=8),g+v.height>W-8&&(g=W-v.height-8),p({x:w,y:g});},[a,R,u]);H__default.default.useEffect(()=>{if(C)return f(),window.addEventListener("resize",f),window.addEventListener("scroll",f),()=>{window.removeEventListener("resize",f),window.removeEventListener("scroll",f);}},[C,f]),H__default.default.useEffect(()=>{let c=v=>{l.current&&i.current&&!l.current.contains(v.target)&&!i.current.contains(v.target)&&N(false);};if(C)return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c);}},[C,N]);let d=()=>{switch(a){case "top":return "bottom-full left-0 mb-2";case "bottom":return "top-full left-0 mt-2";case "left":return "right-full top-0 mr-2";case "right":return "left-full top-0 ml-2";default:return "top-full left-0 mt-2"}},A=()=>{switch(a){case "top":return "top-full left-4 -translate-x-1/2 border-t-gray-100 dark:border-t-gray-800";case "bottom":return "bottom-full left-4 -translate-x-1/2 border-b-gray-100 dark:border-b-gray-800";case "left":return "left-full top-4 -translate-y-1/2 border-l-gray-100 dark:border-l-gray-800";case "right":return "right-full top-4 -translate-y-1/2 border-r-gray-100 dark:border-r-gray-800";default:return "bottom-full left-4 -translate-x-1/2 border-b-gray-100 dark:border-b-gray-800"}};return jsxRuntime.jsxs("div",{ref:b,className:s("relative",e),...E,children:[jsxRuntime.jsx("div",{ref:l,onClick:S,className:"inline-block cursor-pointer",children:o}),C&&jsxRuntime.jsxs("div",{ref:i,className:s("absolute z-50 bg-[var(--dropdown-bg)] rounded-lg shadow-xl backdrop-blur-sm","min-w-[200px] py-2",d()),style:{transform:`translate(${x.x}px, ${x.y}px)`,boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"},children:[P&&jsxRuntime.jsx("div",{className:s("absolute w-0 h-0 border-4 border-transparent",A())}),jsxRuntime.jsx("div",{className:"relative z-10",children:r})]})]})});Se.displayName="Dropdown";var Le=H__default.default.forwardRef(({className:e,icon:o,variant:r="default",children:t,disabled:n,...a},R)=>jsxRuntime.jsxs("button",{ref:R,className:s("w-full flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors duration-200 ease-in-out focus-visible:outline-none focus-visible:bg-muted",(()=>{switch(r){case "destructive":return "text-destructive hover:bg-destructive/10";case "disabled":return "text-muted-foreground cursor-not-allowed";default:return "text-foreground hover:bg-muted"}})(),e),disabled:n||r==="disabled",...a,children:[o&&jsxRuntime.jsx("div",{className:"flex-shrink-0 w-4 h-4",children:o}),jsxRuntime.jsx("span",{className:"flex-1 text-left",children:t})]}));Le.displayName="DropdownItem";var Me=H__default.default.forwardRef(({className:e,...o},r)=>jsxRuntime.jsx("div",{ref:r,className:s("h-px bg-border my-2",e),...o}));Me.displayName="DropdownSeparator";var Te=H__default.default.forwardRef(({className:e,children:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("px-4 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide",e),...r,children:o}));Te.displayName="DropdownLabel";var De=H__default.default.forwardRef(({className:e,children:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("py-1",e),...r,children:o}));De.displayName="DropdownMenu";var Pe=H__default.default.forwardRef(({className:e,children:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("space-y-1",e),...r,children:o}));Pe.displayName="DropdownGroup";var Ve={home:ssr.House,arrowLeft:ssr.ArrowLeft,arrowRight:ssr.ArrowRight,arrowUp:ssr.ArrowUp,arrowDown:ssr.ArrowDown,menu:ssr.List,close:ssr.X,search:ssr.MagnifyingGlass,settings:ssr.Gear,externalLink:ssr.ArrowSquareOut,chevronLeft:ssr.CaretLeft,chevronRight:ssr.CaretRight,chevronDown:ssr.CaretDown,chevronUp:ssr.CaretUp,edit:ssr.Pencil,delete:ssr.Trash,add:ssr.Plus,remove:ssr.Minus,download:ssr.Download,upload:ssr.Upload,refresh:ssr.ArrowClockwise,save:ssr.FloppyDisk,copy:ssr.Copy,loader:ssr.SpinnerGap,success:ssr.CheckCircle,error:ssr.XCircle,alertCircle:ssr.WarningCircle,warning:ssr.WarningCircle,info:ssr.Info,check:ssr.Check,circle:ssr.Circle,helpCircle:ssr.Question,user:ssr.User,users:ssr.Users,userPlus:ssr.UserPlus,logIn:ssr.SignIn,logOut:ssr.SignOut,eye:ssr.Eye,eyeOff:ssr.EyeSlash,chart:ssr.ChartBar,barChart:ssr.ChartBar,trendingUp:ssr.TrendUp,activity:ssr.Pulse,database:ssr.Database,zap:ssr.Lightning,fileText:ssr.FileText,file:ssr.File,folder:ssr.Folder,book:ssr.Book,bookOpen:ssr.BookOpen,mail:ssr.Envelope,message:ssr.ChatCircle,phone:ssr.Phone,image:ssr.Image,video:ssr.Video,camera:ssr.Camera,smile:ssr.Smiley,frown:ssr.SmileySad,meh:ssr.SmileyMeh,lock:ssr.Lock,unlock:ssr.LockOpen,shield:ssr.Shield,wallet:ssr.Wallet,key:ssr.Key,clock:ssr.Clock,calendar:ssr.Calendar,calendarPlus:ssr.CalendarPlus,bell:ssr.Bell,heart:ssr.Heart,star:ssr.Star,bookmark:ssr.Bookmark,share:ssr.Share,monitor:ssr.Monitor,sun:ssr.Sun,moon:ssr.Moon,lightbulb:ssr.Lightbulb,brain:ssr.Brain,flag:ssr.Flag,square:ssr.Square,sparkle:ssr.Sparkle,sparkles:ssr.Sparkle,globe:ssr.Globe,smartphone:ssr.DeviceMobile,deviceMobile:ssr.DeviceMobile,floppyDisk:ssr.FloppyDisk,ticket:ssr.Ticket,clipboard:ssr.Clipboard,wifi:ssr.WifiHigh,wifiOff:ssr.WifiSlash,cpu:ssr.Cpu,mask:ssr.MaskHappy,bold:ssr.TextB,italic:ssr.TextItalic,strikethrough:ssr.TextStrikethrough,heading:ssr.TextHOne,link:ssr.Link,code:ssr.Code,fileCode:ssr.FileCode,quote:ssr.Quotes,list:ssr.List,listOrdered:ssr.ListNumbers,minus:ssr.Minus},Ue={happy:"smile",sad:"frown",neutral:"meh",excited:"smile",angry:"frown",love:"heart",like:"heart",dislike:"frown"},We={loading:"loader",success:"success",error:"error",warning:"warning",info:"info",locked:"lock",unlocked:"unlock",visible:"eye",hidden:"eyeOff"};function $e(e){return !e||!/[-_]/.test(e)&&/^[a-z]/.test(e)?e:/^[A-Z]+$/.test(e)?e.toLowerCase():/^[A-Z]/.test(e)&&!/[-_]/.test(e)?e.charAt(0).toLowerCase()+e.slice(1):e.split(/[-_]/).map((o,r)=>r===0?o.toLowerCase():o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")}var T=null,D=null,re=null;function me(){return re}var Fe={home:{lucide:"Home",phosphor:"House",iconsax:"Home2"},"layout-dashboard":{lucide:"LayoutDashboard",phosphor:"SquaresFour"},folder:{lucide:"Folder",phosphor:"Folder",iconsax:"Folder"},"alert-circle":{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},alertCircle:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},columns:{lucide:"Columns",phosphor:"Columns"},users:{lucide:"Users",phosphor:"Users",iconsax:"People"},settings:{lucide:"Settings",phosphor:"Gear"},menu:{lucide:"Menu",phosphor:"List",iconsax:"Menu"},close:{lucide:"X",phosphor:"X",iconsax:"CloseCircle"},chevronLeft:{lucide:"ChevronLeft",phosphor:"CaretLeft",iconsax:"ArrowLeft2"},chevronRight:{lucide:"ChevronRight",phosphor:"CaretRight",iconsax:"ArrowRight2"},chevronDown:{lucide:"ChevronDown",phosphor:"CaretDown",iconsax:"ArrowDown2"},chevronUp:{lucide:"ChevronUp",phosphor:"CaretUp",iconsax:"ArrowUp2"},arrowLeft:{lucide:"ArrowLeft",phosphor:"ArrowLeft",iconsax:"ArrowLeft"},arrowRight:{lucide:"ArrowRight",phosphor:"ArrowRight",iconsax:"ArrowRight"},arrowUp:{lucide:"ArrowUp",phosphor:"ArrowUp",iconsax:"ArrowUp"},arrowDown:{lucide:"ArrowDown",phosphor:"ArrowDown",iconsax:"ArrowDown"},add:{lucide:"Plus",phosphor:"Plus",iconsax:"Add"},edit:{lucide:"Edit",phosphor:"Pencil"},pencil:{lucide:"Pencil",phosphor:"Pencil"},delete:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},trash:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},upload:{lucide:"Upload",phosphor:"Upload",iconsax:"Upload"},download:{lucide:"Download",phosphor:"Download",iconsax:"Download"},x:{lucide:"X",phosphor:"X"},check:{lucide:"Check",phosphor:"Check",iconsax:"Check"},search:{lucide:"Search",phosphor:"MagnifyingGlass",iconsax:"SearchNormal"},share:{lucide:"Share",phosphor:"Share"},copy:{lucide:"Copy",phosphor:"Copy"},save:{lucide:"Save",phosphor:"FloppyDisk"},loader:{lucide:"Loader2",phosphor:"Spinner"},loader2:{lucide:"Loader2",phosphor:"Spinner"},"check-circle":{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},checkCircle:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},success:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},error:{lucide:"XCircle",phosphor:"XCircle",iconsax:"CloseCircle"},warning:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Warning2"},info:{lucide:"Info",phosphor:"Info",iconsax:"InfoCircle"},refresh:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},refreshCw:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},bell:{lucide:"Bell",phosphor:"Bell",iconsax:"Bell"},heart:{lucide:"Heart",phosphor:"Heart",iconsax:"Heart"},star:{lucide:"Star",phosphor:"Star",iconsax:"Star"},bookmark:{lucide:"Bookmark",phosphor:"Bookmark"},user:{lucide:"User",phosphor:"User",iconsax:"User"},userPlus:{lucide:"UserPlus",phosphor:"UserPlus",iconsax:"UserAdd"},logIn:{lucide:"LogIn",phosphor:"SignIn",iconsax:"Login"},logOut:{lucide:"LogOut",phosphor:"SignOut",iconsax:"Logout"},chrome:{lucide:"Chrome",phosphor:"ChromeLogo",iconsax:"Chrome"},github:{lucide:"Github",phosphor:"GithubLogo"},message:{lucide:"MessageCircle",phosphor:"ChatCircle"},messageSquare:{lucide:"MessageSquare",phosphor:"ChatSquare"},"message-square":{lucide:"MessageSquare",phosphor:"ChatSquare"},inbox:{lucide:"Inbox",phosphor:"Inbox"},calendar:{lucide:"Calendar",phosphor:"Calendar"},calendarPlus:{lucide:"CalendarPlus",phosphor:"CalendarPlus"},checkSquare:{lucide:"CheckSquare",phosphor:"CheckSquare",iconsax:"TickSquare"},clock:{lucide:"Clock",phosphor:"Clock"},book:{lucide:"Book",phosphor:"Book",iconsax:"Book"},bookOpen:{lucide:"BookOpen",phosphor:"BookOpen",iconsax:"Book"},monitor:{lucide:"Monitor",phosphor:"Monitor",iconsax:"Monitor"},sun:{lucide:"Sun",phosphor:"Sun",iconsax:"Sun"},moon:{lucide:"Moon",phosphor:"Moon",iconsax:"Moon"},sparkle:{lucide:"Sparkle",phosphor:"Sparkle"},sparkles:{lucide:"Sparkles",phosphor:"Sparkle"},lightbulb:{lucide:"Lightbulb",phosphor:"Lightbulb"},brain:{lucide:"Brain",phosphor:"Brain"},zap:{lucide:"Zap",phosphor:"Lightning"},globe:{lucide:"Globe",phosphor:"Globe",iconsax:"Global"},deviceMobile:{lucide:"Smartphone",phosphor:"DeviceMobile"},smartphone:{lucide:"Smartphone",phosphor:"DeviceMobile"},floppyDisk:{lucide:"Save",phosphor:"FloppyDisk"},chart:{lucide:"BarChart3",phosphor:"ChartBar"},barChart:{lucide:"BarChart",phosphor:"ChartBar"},trendingUp:{lucide:"TrendingUp",phosphor:"TrendUp"},trendingDown:{lucide:"TrendingDown",phosphor:"TrendDown"},activity:{lucide:"Activity",phosphor:"Pulse"},database:{lucide:"Database",phosphor:"Database"},dollarSign:{lucide:"DollarSign",phosphor:"CurrencyDollar"},dollar:{lucide:"DollarSign",phosphor:"CurrencyDollar"},currency:{lucide:"DollarSign",phosphor:"CurrencyDollar"},layers:{lucide:"Layers",phosphor:"Stack"},ban:{lucide:"Ban",phosphor:"Prohibit"},lock:{lucide:"Lock",phosphor:"Lock",iconsax:"Lock"},unlock:{lucide:"Unlock",phosphor:"LockOpen",iconsax:"Unlock"},shield:{lucide:"Shield",phosphor:"Shield",iconsax:"Shield"},key:{lucide:"Key",phosphor:"Key"},play:{lucide:"Play",phosphor:"Play",iconsax:"Play"},pause:{lucide:"Pause",phosphor:"Pause",iconsax:"Pause"},image:{lucide:"Image",phosphor:"Image",iconsax:"Image"},video:{lucide:"Video",phosphor:"Video",iconsax:"Video"},camera:{lucide:"Camera",phosphor:"Camera",iconsax:"Camera"},fileText:{lucide:"FileText",phosphor:"FileText"},file:{lucide:"File",phosphor:"File"},externalLink:{lucide:"ExternalLink",phosphor:"ArrowSquareOut"},link:{lucide:"Link",phosphor:"Link",iconsax:"Link"},moreHorizontal:{lucide:"MoreHorizontal",phosphor:"DotsThreeOutline"},moreVertical:{lucide:"MoreVertical",phosphor:"DotsThreeVertical"},remove:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"},eye:{lucide:"Eye",phosphor:"Eye",iconsax:"Eye"},eyeOff:{lucide:"EyeOff",phosphor:"EyeSlash",iconsax:"EyeSlash"},smile:{lucide:"Smile",phosphor:"Smiley",iconsax:"EmojiHappy"},frown:{lucide:"Frown",phosphor:"SmileySad",iconsax:"EmojiSad"},meh:{lucide:"Meh",phosphor:"SmileyMeh",iconsax:"EmojiNormal"},mail:{lucide:"Mail",phosphor:"Envelope"},phone:{lucide:"Phone",phosphor:"Phone"},flag:{lucide:"Flag",phosphor:"Flag",iconsax:"Flag"},rocket:{lucide:"Rocket",phosphor:"Rocket",iconsax:"Rocket"},ticket:{lucide:"Ticket",phosphor:"Ticket",iconsax:"Ticket"},clipboard:{lucide:"ClipboardList",phosphor:"Clipboard",iconsax:"Sticker"},wifi:{lucide:"Wifi",phosphor:"WifiHigh",iconsax:"Wifi"},wifiOff:{lucide:"WifiOff",phosphor:"WifiSlash"},cpu:{lucide:"Cpu",phosphor:"Cpu",iconsax:"Computing"},mask:{lucide:"Drama",phosphor:"MaskHappy",iconsax:"EmojiHappy"},bold:{lucide:"Bold",phosphor:"TextB"},italic:{lucide:"Italic",phosphor:"TextItalic"},strikethrough:{lucide:"Strikethrough",phosphor:"TextStrikethrough"},heading:{lucide:"Heading",phosphor:"TextHOne"},code:{lucide:"Code",phosphor:"Code",iconsax:"Code"},fileCode:{lucide:"FileCode",phosphor:"FileCode"},quote:{lucide:"Quote",phosphor:"Quotes",iconsax:"QuoteUp"},list:{lucide:"List",phosphor:"List"},listOrdered:{lucide:"ListOrdered",phosphor:"ListNumbers"},minus:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"}};async function _e(){if(typeof window=="undefined")return null;if(!T)try{T=await import('@phosphor-icons/react');}catch{return console.warn("Phosphor Icons not available. Install @phosphor-icons/react to use."),null}return T}async function je(){if(typeof window=="undefined")return null;if(!D)try{D=await import('lucide-react');}catch{return console.warn("Lucide Icons not available. Install lucide-react to use lucide provider."),null}return D}function ie(e,o="phosphor"){let r=Fe[e];if(!r)return dt(e,o);let t=r[o];switch(o){case "phosphor":return !t||!T?null:(T==null?void 0:T[t])||null;case "lucide":return !t||!D?null:(D==null?void 0:D[t])||null;case "iconsax":{return null;}default:return null}}function dt(e,o){switch(o){case "phosphor":{if(!T)return null;let r=e.charAt(0).toUpperCase()+e.slice(1),t=e.split(/(?=[A-Z])/).map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("");return (T==null?void 0:T[r])||(T==null?void 0:T[t])||(T==null?void 0:T[e])||null}case "lucide":{if(!D)return null;let r=e.charAt(0).toUpperCase()+e.slice(1),t=e.replace(/([A-Z])/g,n=>n===e[0]?n.toLowerCase():n);return (D==null?void 0:D[r])||(D==null?void 0:D[e])||(D==null?void 0:D[t])||null}case "iconsax":{return null;}default:return null}}function Ge(e,o){let r=Fe[e];if(r){let t=r[o];if(t)return t}return e}var ge={"arrow-left":"arrowLeft","arrow-right":"arrowRight","arrow-up":"arrowUp","arrow-down":"arrowDown","chevron-left":"chevronLeft","chevron-right":"chevronRight","chevron-up":"chevronUp","chevron-down":"chevronDown","external-link":"externalLink","more-horizontal":"moreHorizontal","more-vertical":"moreVertical","user-plus":"userPlus","log-in":"logIn","log-out":"logOut","check-circle":"checkCircle","check-square":"checkSquare","alert-circle":"alertCircle","eye-off":"eyeOff","file-text":"fileText","book-open":"bookOpen","bar-chart":"barChart","trending-up":"trendingUp","trending-down":"trendingDown","message-square":"messageSquare","calendar-plus":"calendarPlus","refresh-cw":"refreshCw","dollar-sign":"dollarSign","layout-dashboard":"layoutDashboard","device-mobile":"deviceMobile","floppy-disk":"floppyDisk",back:"arrowLeft",prev:"arrowLeft",previous:"arrowLeft",forward:"arrowRight",next:"arrowRight",close:"x",cancel:"x",remove:"delete",trash:"delete",plus:"add",new:"add",pencil:"edit",modify:"edit",store:"save",floppy:"save",magnify:"search",person:"user",account:"user",profile:"user",gear:"settings",config:"settings",preferences:"settings",house:"home",main:"home",done:"check",complete:"check",tick:"check",information:"info",help:"info",alert:"warning",caution:"warning",checkmark:"success",checkCircle:"success",fail:"error",cross:"error",xCircle:"error",spinner:"loader",loading:"loader",wait:"loader",reload:"refresh",update:"refresh",sync:"refresh",show:"eye",view:"eye",hide:"eyeOff",hidden:"eyeOff",secure:"lock",locked:"lock",unsecure:"unlock",unlocked:"unlock",get:"download",fetch:"download",post:"upload",send:"share",export:"share",duplicate:"copy",clone:"copy",email:"mail",envelope:"mail",chat:"message",comment:"message",talk:"message",date:"calendar",schedule:"calendar",time:"clock",watch:"clock",document:"fileText",doc:"fileText",text:"fileText",directory:"folder",dir:"folder",picture:"image",img:"image",movie:"video",film:"video",photo:"camera",capture:"camera",start:"play",run:"play",stop:"pause",halt:"pause",like:"heart",love:"heart",favorite:"star",saveBookmark:"bookmark",notification:"bell",notify:"bell",alarm:"bell",prefs:"settings",lookup:"search",dots:"moreHorizontal",moreMenu:"moreHorizontal",moreOptions:"moreVertical",external:"externalLink",outbound:"externalLink",open:"externalLink",url:"link",hyperlink:"link",graph:"barChart",stats:"barChart",analytics:"barChart",db:"database",storage:"database",pulse:"activity",monitor:"activity",up:"trendingUp",down:"trendingDown",lightning:"zap",bolt:"zap",flash:"zap",security:"shield",protect:"shield",password:"key",secret:"key",signin:"logIn",login:"logIn",enter:"logIn",signout:"logOut",logout:"logOut",exit:"logOut",people:"users",group:"users",team:"users",addUser:"userPlus",invite:"userPlus",read:"book",library:"book",reading:"bookOpen",openBook:"bookOpen",light:"sun",day:"sun",dark:"moon",night:"moon",screen:"monitor",display:"monitor",ai:"brain",intelligence:"brain",think:"brain",idea:"lightbulb",bulb:"lightbulb",inspiration:"lightbulb",magic:"sparkles",stars:"sparkles",glitter:"sparkles"};function qe(e){if(!e||typeof e!="string")return {normalized:e||"",wasAlias:false};let o=$e(e),r=ge[e]||ge[o];return r?{normalized:r,wasAlias:true,originalAlias:e}:{normalized:o,wasAlias:false}}var Ke={set:"lucide",weight:"regular",size:20,color:"currentColor",strokeWidth:1.25,iconsaxVariant:"line"};var ht=H.createContext(Ke);function Ye(){return H.useContext(ht)}var Xe=H__default.default.forwardRef(({name:e,size:o,className:r,emotion:t,status:n,provider:a,weight:R,animated:u=false,pulse:k=false,spin:P=false,bounce:E=false,variant:b="default","aria-label":I,"aria-hidden":h},x)=>{var O,J;let p=Ye(),l=a||p.set,i=o!=null?o:p.size,m=R||p.weight,C=p.color,N=(O=p.strokeWidth)!=null?O:1.25,S=(J=p.iconsaxVariant)!=null?J:"line",[f,d]=H__default.default.useState(false),[A,c]=H__default.default.useState(false);H__default.default.useEffect(()=>{d(true),l==="lucide"?je().then(()=>c(true)):l==="phosphor"?_e().then(()=>c(true)):c(true);},[l]);let v=H__default.default.useMemo(()=>{let $=t?Ue[t]:n?We[n]:e,{normalized:ve}=qe($),uo=Ge(ve,l);return {normalized:ve,providerName:uo}},[e,t,n,l]),L=v.normalized,W=H__default.default.useMemo(()=>{return null},[l,v.providerName,f,S]),w=le({"text-current":b==="default","text-primary":b==="primary","text-muted-foreground":b==="secondary"||b==="muted","text-green-600 dark:text-green-400":b==="success","text-yellow-600 dark:text-yellow-400":b==="warning","text-destructive":b==="error"});if(!f)return jsxRuntime.jsx("span",{style:{width:i,height:i},className:s(w,r),"aria-hidden":h!==void 0?h:true,"aria-label":I});let g=null;if(l==="phosphor"?(g=Ve[L]||null,!g&&A&&(g=ie(L,l))):l==="iconsax"?(g=W,g||(g=ie(L,l))):g=ie(L,l),!g)return (l!=="iconsax"||me())&&console.warn(`Icon "${L}" not found for provider "${l}"`),jsxRuntime.jsx("span",{ref:x,className:s("inline-flex items-center justify-center rounded-full border-2 border-dashed border-border",w,r),style:{width:i,height:i},"aria-label":I||`\uC544\uC774\uCF58\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC74C: ${L}`,title:`Icon not found: ${L}`,children:jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground","aria-hidden":"true",children:"?"})});let Q={size:typeof i=="number"?i:void 0,width:i,height:i,color:C};l==="phosphor"?Q.weight=m:Q.strokeWidth=N;let ee=le({"animate-pulse":k,"animate-spin":P,"animate-bounce":E,"transition-all duration-200 ease-in-out":u}),y={};return I?(y["aria-label"]=I,y["aria-hidden"]=false):h!==void 0?y["aria-hidden"]=h:y["aria-hidden"]=true,jsxRuntime.jsx("span",{ref:x,className:s("inline-flex items-center justify-center",ee,w,r),style:{width:i,height:i},...y,children:g&&H__default.default.createElement(g,{...Q,className:w,"aria-hidden":true})})});Xe.displayName="Icon";var ft=H__default.default.memo(Xe,(e,o)=>e.name===o.name&&e.size===o.size&&e.className===o.className&&e.emotion===o.emotion&&e.status===o.status&&e.provider===o.provider&&e.animated===o.animated&&e.pulse===o.pulse&&e.spin===o.spin&&e.bounce===o.bounce&&e.variant===o.variant&&e.weight===o.weight&&e["aria-label"]===o["aria-label"]&&e["aria-hidden"]===o["aria-hidden"]),V=ft;V.displayName="Icon";var Ze=H__default.default.forwardRef((e,o)=>jsxRuntime.jsx(V,{ref:o,name:"smile",...e}));Ze.displayName="EmotionIcon";var Qe=H__default.default.forwardRef((e,o)=>jsxRuntime.jsx(V,{ref:o,name:"info",...e}));Qe.displayName="StatusIcon";var Je=H__default.default.forwardRef((e,o)=>jsxRuntime.jsx(V,{ref:o,name:"loader",status:"loading",spin:true,"aria-label":"\uB85C\uB529 \uC911",...e}));Je.displayName="LoadingIcon";var eo=H__default.default.forwardRef((e,o)=>jsxRuntime.jsx(V,{ref:o,name:"check",status:"success",variant:"success","aria-label":"\uC131\uACF5",...e}));eo.displayName="SuccessIcon";var oo=H__default.default.forwardRef((e,o)=>jsxRuntime.jsx(V,{ref:o,name:"alertCircle",status:"error",variant:"error","aria-label":"\uC624\uB958",...e}));oo.displayName="ErrorIcon";var ro=H__default.default.forwardRef(({isOpen:e,onClose:o,children:r,className:t,side:n="right",size:a="md",showBackdrop:R=true,backdropClassName:u,closeOnBackdropClick:k=true,closeOnEscape:P=true,closable:E=true,...b},I)=>{let h=e!=null?e:false,x=()=>{o==null||o();},[p,l]=H__default.default.useState(false),[i,m]=H__default.default.useState(false);if(H__default.default.useEffect(()=>{if(h){l(true),m(true);let f=setTimeout(()=>m(false),50);return ()=>clearTimeout(f)}else {m(true);let f=setTimeout(()=>{l(false),m(false);},300);return ()=>clearTimeout(f)}},[h]),H__default.default.useEffect(()=>{if(!P)return;let f=d=>{d.key==="Escape"&&h&&x();};return h&&(document.addEventListener("keydown",f),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",f),document.body.style.overflow="";}},[h,P]),!p)return null;let C={sm:n==="left"||n==="right"?"w-80":"h-64",md:n==="left"||n==="right"?"w-96":"h-96",lg:n==="left"||n==="right"?"w-[28rem]":"h-[32rem]",xl:n==="left"||n==="right"?"w-[32rem]":"h-[40rem]",full:n==="left"||n==="right"?"w-full":"h-full"},N={left:"left-0 top-0 h-full",right:"right-0 top-0 h-full",top:"top-0 left-0 w-full",bottom:"bottom-0 left-0 w-full"},S={left:h?"translate-x-0":"-translate-x-full",right:h?"translate-x-0":"translate-x-full",top:h?"translate-y-0":"-translate-y-full",bottom:h?"translate-y-0":"translate-y-full"};return jsxRuntime.jsxs("div",{className:"fixed inset-0 z-50",children:[R&&jsxRuntime.jsx("div",{className:s("absolute inset-0 bg-black/60 backdrop-blur-md transition-opacity duration-300",i?h?"opacity-100":"opacity-0":"",u),onClick:k?x:void 0}),jsxRuntime.jsx("div",{ref:I,className:s("absolute bg-background/95 backdrop-blur-xl border border-border/50 shadow-2xl transition-transform duration-300 ease-out",C[a],N[n],S[n],t),...b,children:r})]})});ro.displayName="Drawer";var to=H__default.default.forwardRef(({children:e,className:o,showCloseButton:r=true,onClose:t,...n},a)=>jsxRuntime.jsxs("div",{ref:a,className:s("flex items-center justify-between p-6 border-b border-border/50",o),...n,children:[jsxRuntime.jsx("div",{className:"flex-1",children:e}),r&&jsxRuntime.jsx("button",{onClick:t,className:"p-2 rounded-lg hover:bg-muted transition-colors",children:jsxRuntime.jsx(V,{name:"close",size:20})})]}));to.displayName="DrawerHeader";var no=H__default.default.forwardRef(({children:e,className:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("flex-1 p-6 overflow-y-auto",o),...r,children:e}));no.displayName="DrawerContent";var ao=H__default.default.forwardRef(({children:e,className:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("flex items-center justify-end gap-3 p-6 border-t border-border/50",o),...r,children:e}));ao.displayName="DrawerFooter";var io=H__default.default.forwardRef(({isOpen:e,onClose:o,children:r,className:t,height:n="md",showBackdrop:a=true,backdropClassName:R,closeOnBackdropClick:u=true,closeOnEscape:k=true,showDragHandle:P=true,closable:E=true,snapPoints:b=[25,50,75,100],defaultSnap:I=50,...h},x)=>{let p=e!=null?e:false,l=()=>{o==null||o();},[i,m]=H__default.default.useState(false),[C,N]=H__default.default.useState(false),[S,f]=H__default.default.useState(I),[d,A]=H__default.default.useState(false),[c,v]=H__default.default.useState(0),[L,W]=H__default.default.useState(0),w={sm:"h-64",md:"h-96",lg:"h-[32rem]",xl:"h-[40rem]",full:"h-full"};H__default.default.useEffect(()=>{if(p){m(true),N(true);let y=setTimeout(()=>N(false),50);return ()=>clearTimeout(y)}else {N(true);let y=setTimeout(()=>{m(false),N(false);},300);return ()=>clearTimeout(y)}},[p]),H__default.default.useEffect(()=>{if(!k)return;let y=O=>{O.key==="Escape"&&p&&l();};return p&&(document.addEventListener("keydown",y),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",y),document.body.style.overflow="";}},[p,k]);let g=y=>{A(true),v(y.touches[0].clientY),W(y.touches[0].clientY);},Q=y=>{d&&W(y.touches[0].clientY);},ee=()=>{if(!d)return;A(false);let y=L-c,O=100;if(y>O)l();else if(y<-O){let J=b.indexOf(S),$=Math.min(J+1,b.length-1);f(b[$]);}};return i?jsxRuntime.jsxs("div",{className:"fixed inset-0 z-50",children:[a&&jsxRuntime.jsx("div",{className:s("absolute inset-0 bg-black/60 backdrop-blur-md transition-opacity duration-300",C?p?"opacity-100":"opacity-0":"",R),onClick:u?l:void 0}),jsxRuntime.jsxs("div",{ref:x,className:s("absolute bottom-0 left-0 right-0 bg-background/95 backdrop-blur-xl border-t border-border/50 shadow-2xl rounded-t-lg transition-transform duration-300 ease-out pb-safe",n!=="full"?w[n]:"",C?p?"translate-y-0":"translate-y-full":"",t),style:{height:n==="full"?`${S}%`:void 0,maxHeight:n!=="full"?void 0:"100%",transform:d?`translateY(${L-c}px)`:void 0},onTouchStart:g,onTouchMove:Q,onTouchEnd:ee,...h,children:[P&&jsxRuntime.jsx("div",{className:"flex justify-center pt-3 pb-2",children:jsxRuntime.jsx("div",{className:"w-12 h-1.5 bg-muted-foreground/30 rounded-full"})}),r]})]}):null});io.displayName="BottomSheet";var lo=H__default.default.forwardRef(({children:e,className:o,showCloseButton:r=true,onClose:t,...n},a)=>jsxRuntime.jsxs("div",{ref:a,className:s("flex items-center justify-between px-6 py-4",o),...n,children:[jsxRuntime.jsx("div",{className:"flex-1",children:e}),r&&jsxRuntime.jsx("button",{onClick:t,className:"p-2 rounded-lg hover:bg-muted transition-colors",children:jsxRuntime.jsx(V,{name:"close",size:20})})]}));lo.displayName="BottomSheetHeader";var co=H__default.default.forwardRef(({children:e,className:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("flex-1 px-6 pb-6 overflow-y-auto",o),...r,children:e}));co.displayName="BottomSheetContent";
|
|
1
|
+
'use strict';var H=require('react'),reactDom=require('react-dom'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),classVarianceAuthority=require('class-variance-authority'),ssr=require('@phosphor-icons/react/dist/ssr');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var H__default=/*#__PURE__*/_interopDefault(H);function s(...e){return tailwindMerge.twMerge(clsx.clsx(e))}function le(e){let o=Object.entries(e).filter(([,r])=>r).map(([r])=>r);return s(...o)}function mo(...e){return H__default.default.useCallback(o=>{e.forEach(r=>{r&&(typeof r=="function"?r(o):r.current=o);});},e)}var ne=H__default.default.forwardRef(({className:e,isOpen:o,onClose:r,children:t,size:n="md",closable:a,closeOnOverlayClick:R=true,title:u,description:k,showBackdrop:P=true,backdropClassName:E,centered:b=true},S)=>{let h=a!=null?a:true,x=H__default.default.useRef(null),p=mo(S,x);H__default.default.useEffect(()=>{let c=v=>{v.key==="Escape"&&r();};if(o){document.addEventListener("keydown",c);let v=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${v}px`;}return ()=>{document.removeEventListener("keydown",c),document.body.style.overflow="unset",document.body.style.paddingRight="unset";}},[o,r]);let l=c=>{R&&c.target===c.currentTarget&&r();},i={sm:"max-w-xs",md:"max-w-sm",lg:"max-w-md",xl:"max-w-lg","2xl":"max-w-xl","3xl":"max-w-2xl"},m=H__default.default.useId(),C=H__default.default.useId(),N=u?`modal-title-${m}`:void 0,L=k?`modal-description-${C}`:void 0,[f,d]=H__default.default.useState(false);if(H__default.default.useEffect(()=>{d(true);},[]),!o)return null;let A=jsxRuntime.jsxs("div",{className:s("fixed inset-0 z-50 overflow-y-auto",e),onClick:l,role:"dialog","aria-modal":"true","aria-labelledby":N,"aria-describedby":L,children:[P&&jsxRuntime.jsx("div",{className:s("fixed inset-0 bg-black/60 backdrop-blur-md transition-opacity duration-300 pointer-events-none",E)}),jsxRuntime.jsx("div",{className:s("flex h-full justify-center p-4",b?"items-center":"items-start pt-16"),children:jsxRuntime.jsxs("div",{ref:p,className:s("relative bg-[var(--modal-bg)] rounded-lg shadow-2xl border border-[var(--modal-border)] transform transition-all duration-300 ease-out",i[n]),style:{animation:"modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1)"},children:[u&&jsxRuntime.jsxs("div",{className:"relative z-10 px-6 pt-6 pb-4 border-b border-border/50",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-4 mb-2",children:[jsxRuntime.jsx("h2",{id:N,className:"text-xl font-semibold text-foreground flex-1 min-w-0",children:u}),h&&jsxRuntime.jsx("button",{onClick:r,className:"flex-shrink-0 p-2 text-muted-foreground hover:text-foreground transition-all duration-200 rounded-full hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 z-20","aria-label":"\uB2EB\uAE30",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),k&&jsxRuntime.jsx("p",{id:L,className:"text-sm text-muted-foreground",children:k})]}),!u&&h&&jsxRuntime.jsx("button",{onClick:r,className:"absolute top-4 right-4 p-2 text-muted-foreground hover:text-foreground transition-all duration-200 rounded-full hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 z-20","aria-label":"\uB2EB\uAE30",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),jsxRuntime.jsx("div",{className:`relative z-10 ${u?"px-6 mb-6":"p-6"}`,children:t})]})})]});return f&&typeof document!="undefined"?reactDom.createPortal(A,document.body):null});ne.displayName="Modal";var xe="[transition:transform_180ms_cubic-bezier(0.34,1.56,0.64,1),box-shadow_200ms_ease-out]",we=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap font-medium transition-all duration-200 disabled:pointer-events-none disabled:opacity-50 min-w-fit focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-background)]",{variants:{variant:{default:"bg-[var(--color-primary)] text-[var(--color-primary-foreground)] hover:opacity-90",destructive:"bg-[var(--color-destructive)] text-[var(--color-destructive-foreground)] hover:opacity-90 focus-visible:ring-[var(--color-destructive)]",outline:"border-2 border-[var(--color-border)] bg-transparent text-[var(--color-foreground)] hover:bg-[var(--color-accent)] hover:text-[var(--color-accent-foreground)] focus-visible:ring-offset-0",secondary:"bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)] hover:opacity-80",ghost:"bg-transparent text-[var(--color-foreground)] hover:bg-[var(--color-accent)] hover:text-[var(--color-accent-foreground)] focus-visible:ring-offset-0",link:"bg-transparent text-[var(--color-primary)] underline hover:opacity-80 focus-visible:ring-offset-0",gradient:"bg-gradient-to-r from-[var(--btn-gradient-from,theme(colors.teal.500))] to-[var(--btn-gradient-to,theme(colors.cyan.500))] text-white hover:shadow-lg",neon:"bg-slate-900 dark:bg-slate-950 text-teal-400 border border-teal-500/50 shadow-lg shadow-[var(--btn-neon-glow,theme(colors.teal.500/20%))] hover:shadow-[var(--btn-neon-glow,theme(colors.teal.500/40%))] hover:border-teal-400",glass:"bg-white/50 dark:bg-slate-900/50 backdrop-blur-md border border-slate-200/50 dark:border-slate-700/50 text-slate-900 dark:text-slate-100 hover:bg-white/70 dark:hover:bg-slate-900/70"},size:{sm:"h-8 px-4 py-2 text-sm",md:"h-10 px-6 py-2 text-base",lg:"h-12 px-8 py-3 text-lg",xl:"h-14 px-10 py-4 text-xl",icon:"h-10 w-10 p-0"},rounded:{sm:"rounded",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},shadow:{none:"",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl"},hover:{springy:`hover:scale-[1.015] hover:shadow-md active:scale-[0.985] ${xe} transform-gpu`,scale:"hover:scale-[1.015] active:scale-[0.985] transition-transform duration-150 ease-out transform-gpu",glow:"hover:shadow-lg hover:shadow-primary/25 transition-shadow duration-200",slide:`hover:-translate-y-0.5 hover:shadow-md ${xe} transform-gpu`,none:""},fullWidth:{true:"w-full",false:""}},defaultVariants:{variant:"default",size:"md",rounded:"md",shadow:"md",hover:"springy",fullWidth:false}}),ce={blue:"from-teal-500 to-cyan-500",purple:"from-purple-500 to-pink-500",green:"from-green-500 to-emerald-500 dark:from-green-400 dark:to-emerald-400",orange:"from-orange-500 to-red-500 dark:from-orange-300 dark:to-red-300",pink:"from-pink-500 to-rose-500"};function vo(...e){return o=>{e.forEach(r=>{typeof r=="function"?r(o):r!=null&&(r.current=o);});}}function xo(e,o){return r=>{e==null||e(r),r.defaultPrevented||o==null||o(r);}}function wo(e,o){if(!(!e&&!o))return clsx.clsx(e,o)}function yo(e,o){if(!(!e&&!o))return {...e,...o}}function ko(e,o){let r={...e};for(let t in o){let n=e[t],a=o[t];/^on[A-Z]/.test(t)?n&&a?r[t]=xo(n,a):r[t]=a||n:t==="className"?r[t]=wo(n,a):t==="style"?r[t]=yo(n,a):r[t]=a!==void 0?a:n;}return r}function Co(e){return H__default.default.isValidElement(e)}var de=H__default.default.forwardRef(({children:e,...o},r)=>{let t=H__default.default.Children.toArray(e);if(t.length!==1)return process.env.NODE_ENV!=="production"&&console.warn("[Slot] asChild\uB294 \uC815\uD655\uD788 \uD558\uB098\uC758 \uC790\uC2DD \uC694\uC18C\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4."),null;let n=t[0];if(!Co(n))return process.env.NODE_ENV!=="production"&&console.warn("[Slot] \uC790\uC2DD\uC740 \uC720\uD6A8\uD55C React \uC694\uC18C\uC5EC\uC57C \uD569\uB2C8\uB2E4."),null;let a=n.props,R=n.ref,u=ko(o,a),k=vo(r,R);return H__default.default.cloneElement(n,{...u,ref:k})});de.displayName="Slot";var Ro=typeof window!="undefined";function No(){let[e,o]=H__default.default.useState(false);return H__default.default.useEffect(()=>{var n;if(!Ro||!("matchMedia"in window))return;let r=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>o(!!r.matches);return t(),(n=r.addEventListener)==null||n.call(r,"change",t),()=>{var a;return (a=r.removeEventListener)==null?void 0:a.call(r,"change",t)}},[]),e}var ye=H__default.default.forwardRef(function({variant:o="default",size:r="md",loading:t=false,icon:n,iconPosition:a="left",gradient:R="blue",customGradient:u,rounded:k="md",shadow:P="md",hover:E="springy",fullWidth:b,iconOnly:S,className:h,children:x,disabled:p,asChild:l=false,...i},m){let C=No(),N=o==="gradient"?u?`bg-gradient-to-r ${u}`:`bg-gradient-to-r ${ce[R]||ce.blue}`:void 0,L=s(we({variant:o,size:r,rounded:k,shadow:P,hover:C?"none":E,fullWidth:b!=null?b:false}),N,h),d=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t&&jsxRuntime.jsxs("span",{role:"status","aria-live":"polite",className:"-ml-1 mr-2 inline-flex",children:[jsxRuntime.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",fill:"none",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),jsxRuntime.jsx("span",{className:"sr-only",children:"\uB85C\uB529 \uC911"})]}),!t&&n&&a==="left"&&jsxRuntime.jsx("span",{className:"mr-2",children:n}),x,!t&&n&&a==="right"&&jsxRuntime.jsx("span",{className:"ml-2",children:n})]});if(S&&!("aria-label"in i)&&process.env.NODE_ENV!=="production"&&console.warn("[Button] iconOnly \uC0AC\uC6A9 \uC2DC aria-label\uC744 \uC81C\uACF5\uD558\uC138\uC694."),l){let I={className:L,ref:m,disabled:p||t,"aria-busy":t||void 0,"aria-disabled":p||t||void 0,...i};return jsxRuntime.jsx(de,{...I,children:x})}if("href"in i&&i.href){let{onClick:I,target:W,rel:w,href:g,"aria-label":Q,className:ee,...y}=i,O=!!p||t,J=$=>{if(O){$.preventDefault(),$.stopPropagation();return}I==null||I($);};return jsxRuntime.jsx("a",{ref:m,href:g,className:s(L,ee),onClick:J,"aria-busy":t||void 0,"aria-disabled":O||void 0,tabIndex:O?-1:y.tabIndex,target:W,rel:W==="_blank"?w!=null?w:"noopener noreferrer":w,...y,children:d})}let{className:A,...c}=i,v=!!p||t;return jsxRuntime.jsx("button",{ref:m,className:s(L,A),type:"button",disabled:v,"aria-busy":t||void 0,"aria-disabled":v||void 0,...c,children:d})});ye.displayName="Button";var he=ye;var ke=H__default.default.forwardRef(({isOpen:e,onClose:o,onConfirm:r,title:t,message:n,warning:a,confirmText:R="\uD655\uC778",cancelText:u="\uCDE8\uC18C",confirmButtonText:k,type:P="danger",loading:E=false,disabled:b=false,showInput:S=false,inputValue:h="",onInputChange:x,inputPlaceholder:p,inputLabel:l,requiredInputValue:i,showCancel:m=true,size:C="md"},N)=>{let f={danger:{icon:jsxRuntime.jsx("svg",{className:"h-6 w-6 text-destructive",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})}),bgColor:"bg-destructive/10",buttonColor:"bg-destructive hover:bg-destructive/90 focus:ring-destructive",textColor:"text-destructive"},warning:{icon:jsxRuntime.jsx("svg",{className:"h-6 w-6 text-yellow-600 dark:text-yellow-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})}),bgColor:"bg-yellow-100 dark:bg-yellow-900/20",buttonColor:"bg-yellow-600 hover:bg-yellow-700 focus:ring-yellow-500",textColor:"text-yellow-600 dark:text-yellow-400"},info:{icon:jsxRuntime.jsx("svg",{className:"h-6 w-6 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),bgColor:"bg-primary/10",buttonColor:"bg-primary hover:bg-primary/80 focus:ring-ring",textColor:"text-primary"},success:{icon:jsxRuntime.jsx("svg",{className:"h-6 w-6 text-green-600 dark:text-green-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),bgColor:"bg-green-100 dark:bg-green-900/20",buttonColor:"bg-green-600 hover:bg-green-700 focus:ring-green-500",textColor:"text-green-600 dark:text-green-400"},error:{icon:jsxRuntime.jsx("svg",{className:"h-6 w-6 text-destructive",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),bgColor:"bg-destructive/10",buttonColor:"bg-destructive hover:bg-destructive/90 focus:ring-destructive",textColor:"text-destructive"}}[P],A=b||E||!(!S||!i||h===i);return jsxRuntime.jsx(ne,{isOpen:e,onClose:o,closable:false,size:C,children:jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("div",{className:s("mx-auto flex items-center justify-center h-16 w-16 rounded-full mb-6",f.bgColor),children:f.icon}),jsxRuntime.jsxs("h3",{className:"text-xl font-semibold text-foreground mb-4",children:[" ",t]}),jsxRuntime.jsxs("div",{className:"mb-6",children:[" ",jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:n}),a&&jsxRuntime.jsx("p",{className:s("text-sm mt-3 font-medium",f.textColor),children:a})]}),S&&jsxRuntime.jsxs("div",{className:"mb-6",children:[" ",jsxRuntime.jsxs("label",{htmlFor:"confirmInput",className:"block text-sm font-medium text-foreground mb-3 text-left",children:[" ",l]}),jsxRuntime.jsx("input",{type:"text",id:"confirmInput",value:h,onChange:c=>x==null?void 0:x(c.target.value),placeholder:p,className:"w-full px-4 py-3 border border-input rounded-lg focus:outline-none focus:ring-1 focus:ring-destructive focus:border-transparent bg-background text-foreground transition-colors"})]}),jsxRuntime.jsxs("div",{className:s("flex gap-3","justify-center"),children:[m&&jsxRuntime.jsx(he,{variant:"outline",onClick:o,disabled:E,className:"px-6 py-3",children:u}),jsxRuntime.jsx(he,{variant:"default",onClick:r,disabled:A,className:s("px-6 py-3",f.buttonColor),children:E?jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"\uCC98\uB9AC \uC911..."]}):k||R})]})]})})});ke.displayName="ConfirmModal";var Re=H__default.default.forwardRef(({className:e,children:o,trigger:r,open:t,onOpenChange:n,position:a="bottom",align:R="center",offset:u=8,disabled:k=false,contentClassName:P,...E},b)=>{let[S,h]=H__default.default.useState(false),x=H__default.default.useRef(null),p=H__default.default.useRef(null),l=t!==void 0,i=l?t:S,m=H__default.default.useCallback(d=>{k||(l||h(d),n==null||n(d));},[k,l,n]),C=()=>{m(!i);};H__default.default.useEffect(()=>{let d=A=>{x.current&&p.current&&!x.current.contains(A.target)&&!p.current.contains(A.target)&&m(false);};if(i)return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d);}},[i,m]);let N=()=>{let d="absolute z-50";switch(a){case "top":return s(d,"bottom-full",`mb-${Math.max(1,Math.floor(u/4))}`);case "bottom":return s(d,"top-full",`mt-${Math.max(1,Math.floor(u/4))}`);case "left":return s(d,"right-full",`mr-${Math.max(1,Math.floor(u/4))}`);case "right":return s(d,"left-full",`ml-${Math.max(1,Math.floor(u/4))}`);default:return s(d,"top-full",`mt-${Math.max(1,Math.floor(u/4))}`)}},L=()=>{switch(R){case "start":return a==="top"||a==="bottom"?"left-0":"top-0";case "end":return a==="top"||a==="bottom"?"right-0":"bottom-0";default:return a==="top"||a==="bottom"?"left-1/2 -translate-x-1/2":"top-1/2 -translate-y-1/2"}},f=()=>{let d="absolute w-0 h-0 border-4 border-transparent";switch(a){case "top":return `${d} top-full left-1/2 -translate-x-1/2 border-t-gray-200 dark:border-t-gray-700`;case "bottom":return `${d} bottom-full left-1/2 -translate-x-1/2 border-b-gray-200 dark:border-b-gray-700`;case "left":return `${d} left-full top-1/2 -translate-y-1/2 border-l-gray-200 dark:border-l-gray-700`;case "right":return `${d} right-full top-1/2 -translate-y-1/2 border-r-gray-200 dark:border-r-gray-700`;default:return `${d} bottom-full left-1/2 -translate-x-1/2 border-b-gray-200 dark:border-b-gray-700`}};return jsxRuntime.jsxs("div",{ref:b,className:s("relative",e),...E,children:[jsxRuntime.jsx("div",{ref:x,onClick:C,className:"inline-block cursor-pointer",children:r}),i&&jsxRuntime.jsxs("div",{ref:p,className:s("bg-popover text-popover-foreground border border-border rounded-lg shadow-lg p-4 min-w-[200px]",N(),L(),P),children:[jsxRuntime.jsx("div",{className:f()}),jsxRuntime.jsx("div",{className:"relative z-10",children:o})]})]})});Re.displayName="Popover";var Ne=H__default.default.forwardRef(({className:e,children:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("inline-block cursor-pointer",e),...r,children:o}));Ne.displayName="PopoverTrigger";var Ie=H__default.default.forwardRef(({className:e,children:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("bg-popover text-popover-foreground border border-border rounded-lg shadow-lg p-4",e),...r,children:o}));Ie.displayName="PopoverContent";var Se=H__default.default.forwardRef(({className:e,trigger:o,children:r,open:t,onOpenChange:n,placement:a="bottom",align:R="start",offset:u=8,disabled:k=false,showArrow:P=true,...E},b)=>{let[S,h]=H__default.default.useState(false),[x,p]=H__default.default.useState({x:0,y:0}),l=H__default.default.useRef(null),i=H__default.default.useRef(null),m=t!==void 0,C=m?t:S,N=H__default.default.useCallback(c=>{k||(m||h(c),n==null||n(c));},[k,m,n]),L=()=>{N(!C);},f=H__default.default.useCallback(()=>{if(!l.current||!i.current)return;let c=l.current.getBoundingClientRect(),v=i.current.getBoundingClientRect(),I=window.innerWidth,W=window.innerHeight,w=0,g=0;switch(a){case "top":w=c.left,g=c.top-u;break;case "bottom":w=c.left,g=c.bottom+u;break;case "left":w=c.left-u,g=c.top;break;case "right":w=c.right+u,g=c.top;break}switch(R){case "center":a==="top"||a==="bottom"?w=c.left+c.width/2-v.width/2:g=c.top+c.height/2-v.height/2;break;case "end":a==="top"||a==="bottom"?w=c.right-v.width:g=c.bottom-v.height;break;}w<8&&(w=8),w+v.width>I-8&&(w=I-v.width-8),g<8&&(g=8),g+v.height>W-8&&(g=W-v.height-8),p({x:w,y:g});},[a,R,u]);H__default.default.useEffect(()=>{if(C)return f(),window.addEventListener("resize",f),window.addEventListener("scroll",f),()=>{window.removeEventListener("resize",f),window.removeEventListener("scroll",f);}},[C,f]),H__default.default.useEffect(()=>{let c=v=>{l.current&&i.current&&!l.current.contains(v.target)&&!i.current.contains(v.target)&&N(false);};if(C)return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c);}},[C,N]);let d=()=>{switch(a){case "top":return "bottom-full left-0 mb-2";case "bottom":return "top-full left-0 mt-2";case "left":return "right-full top-0 mr-2";case "right":return "left-full top-0 ml-2";default:return "top-full left-0 mt-2"}},A=()=>{switch(a){case "top":return "top-full left-4 -translate-x-1/2 border-t-gray-100 dark:border-t-gray-800";case "bottom":return "bottom-full left-4 -translate-x-1/2 border-b-gray-100 dark:border-b-gray-800";case "left":return "left-full top-4 -translate-y-1/2 border-l-gray-100 dark:border-l-gray-800";case "right":return "right-full top-4 -translate-y-1/2 border-r-gray-100 dark:border-r-gray-800";default:return "bottom-full left-4 -translate-x-1/2 border-b-gray-100 dark:border-b-gray-800"}};return jsxRuntime.jsxs("div",{ref:b,className:s("relative",e),...E,children:[jsxRuntime.jsx("div",{ref:l,onClick:L,className:"inline-block cursor-pointer",children:o}),C&&jsxRuntime.jsxs("div",{ref:i,className:s("absolute z-50 bg-[var(--dropdown-bg)] rounded-lg shadow-xl backdrop-blur-sm","min-w-[200px] py-2",d()),style:{transform:`translate(${x.x}px, ${x.y}px)`,boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"},children:[P&&jsxRuntime.jsx("div",{className:s("absolute w-0 h-0 border-4 border-transparent",A())}),jsxRuntime.jsx("div",{className:"relative z-10",children:r})]})]})});Se.displayName="Dropdown";var Le=H__default.default.forwardRef(({className:e,icon:o,variant:r="default",children:t,disabled:n,...a},R)=>jsxRuntime.jsxs("button",{ref:R,className:s("w-full flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors duration-200 ease-in-out focus-visible:outline-none focus-visible:bg-muted",(()=>{switch(r){case "destructive":return "text-destructive hover:bg-destructive/10";case "disabled":return "text-muted-foreground cursor-not-allowed";default:return "text-foreground hover:bg-muted"}})(),e),disabled:n||r==="disabled",...a,children:[o&&jsxRuntime.jsx("div",{className:"flex-shrink-0 w-4 h-4",children:o}),jsxRuntime.jsx("span",{className:"flex-1 text-left",children:t})]}));Le.displayName="DropdownItem";var Me=H__default.default.forwardRef(({className:e,...o},r)=>jsxRuntime.jsx("div",{ref:r,className:s("h-px bg-border my-2",e),...o}));Me.displayName="DropdownSeparator";var Te=H__default.default.forwardRef(({className:e,children:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("px-4 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide",e),...r,children:o}));Te.displayName="DropdownLabel";var De=H__default.default.forwardRef(({className:e,children:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("py-1",e),...r,children:o}));De.displayName="DropdownMenu";var Pe=H__default.default.forwardRef(({className:e,children:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("space-y-1",e),...r,children:o}));Pe.displayName="DropdownGroup";var Ve={home:ssr.House,arrowLeft:ssr.ArrowLeft,arrowRight:ssr.ArrowRight,arrowUp:ssr.ArrowUp,arrowDown:ssr.ArrowDown,menu:ssr.List,close:ssr.X,search:ssr.MagnifyingGlass,settings:ssr.Gear,externalLink:ssr.ArrowSquareOut,chevronLeft:ssr.CaretLeft,chevronRight:ssr.CaretRight,chevronDown:ssr.CaretDown,chevronUp:ssr.CaretUp,edit:ssr.Pencil,delete:ssr.Trash,add:ssr.Plus,remove:ssr.Minus,download:ssr.Download,upload:ssr.Upload,refresh:ssr.ArrowClockwise,save:ssr.FloppyDisk,copy:ssr.Copy,loader:ssr.SpinnerGap,success:ssr.CheckCircle,error:ssr.XCircle,alertCircle:ssr.WarningCircle,warning:ssr.WarningCircle,info:ssr.Info,check:ssr.Check,circle:ssr.Circle,helpCircle:ssr.Question,user:ssr.User,users:ssr.Users,userPlus:ssr.UserPlus,logIn:ssr.SignIn,logOut:ssr.SignOut,eye:ssr.Eye,eyeOff:ssr.EyeSlash,chart:ssr.ChartBar,barChart:ssr.ChartBar,trendingUp:ssr.TrendUp,activity:ssr.Pulse,database:ssr.Database,zap:ssr.Lightning,fileText:ssr.FileText,file:ssr.File,folder:ssr.Folder,book:ssr.Book,bookOpen:ssr.BookOpen,mail:ssr.Envelope,message:ssr.ChatCircle,phone:ssr.Phone,image:ssr.Image,video:ssr.Video,camera:ssr.Camera,smile:ssr.Smiley,frown:ssr.SmileySad,meh:ssr.SmileyMeh,lock:ssr.Lock,unlock:ssr.LockOpen,shield:ssr.Shield,wallet:ssr.Wallet,key:ssr.Key,clock:ssr.Clock,calendar:ssr.Calendar,calendarPlus:ssr.CalendarPlus,bell:ssr.Bell,heart:ssr.Heart,star:ssr.Star,bookmark:ssr.Bookmark,share:ssr.Share,monitor:ssr.Monitor,sun:ssr.Sun,moon:ssr.Moon,lightbulb:ssr.Lightbulb,brain:ssr.Brain,flag:ssr.Flag,square:ssr.Square,sparkle:ssr.Sparkle,sparkles:ssr.Sparkle,globe:ssr.Globe,smartphone:ssr.DeviceMobile,deviceMobile:ssr.DeviceMobile,floppyDisk:ssr.FloppyDisk,ticket:ssr.Ticket,clipboard:ssr.Clipboard,wifi:ssr.WifiHigh,wifiOff:ssr.WifiSlash,cpu:ssr.Cpu,mask:ssr.MaskHappy,bold:ssr.TextB,italic:ssr.TextItalic,strikethrough:ssr.TextStrikethrough,heading:ssr.TextHOne,link:ssr.Link,code:ssr.Code,fileCode:ssr.FileCode,quote:ssr.Quotes,list:ssr.List,listOrdered:ssr.ListNumbers,minus:ssr.Minus},Ue={happy:"smile",sad:"frown",neutral:"meh",excited:"smile",angry:"frown",love:"heart",like:"heart",dislike:"frown"},We={loading:"loader",success:"success",error:"error",warning:"warning",info:"info",locked:"lock",unlocked:"unlock",visible:"eye",hidden:"eyeOff"};function $e(e){return !e||!/[-_]/.test(e)&&/^[a-z]/.test(e)?e:/^[A-Z]+$/.test(e)?e.toLowerCase():/^[A-Z]/.test(e)&&!/[-_]/.test(e)?e.charAt(0).toLowerCase()+e.slice(1):e.split(/[-_]/).map((o,r)=>r===0?o.toLowerCase():o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")}var T=null,D=null;var Fe={home:{lucide:"Home",phosphor:"House",iconsax:"Home2"},"layout-dashboard":{lucide:"LayoutDashboard",phosphor:"SquaresFour"},folder:{lucide:"Folder",phosphor:"Folder",iconsax:"Folder"},"alert-circle":{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},alertCircle:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},columns:{lucide:"Columns",phosphor:"Columns"},users:{lucide:"Users",phosphor:"Users",iconsax:"People"},settings:{lucide:"Settings",phosphor:"Gear"},menu:{lucide:"Menu",phosphor:"List",iconsax:"Menu"},close:{lucide:"X",phosphor:"X",iconsax:"CloseCircle"},chevronLeft:{lucide:"ChevronLeft",phosphor:"CaretLeft",iconsax:"ArrowLeft2"},chevronRight:{lucide:"ChevronRight",phosphor:"CaretRight",iconsax:"ArrowRight2"},chevronDown:{lucide:"ChevronDown",phosphor:"CaretDown",iconsax:"ArrowDown2"},chevronUp:{lucide:"ChevronUp",phosphor:"CaretUp",iconsax:"ArrowUp2"},arrowLeft:{lucide:"ArrowLeft",phosphor:"ArrowLeft",iconsax:"ArrowLeft"},arrowRight:{lucide:"ArrowRight",phosphor:"ArrowRight",iconsax:"ArrowRight"},arrowUp:{lucide:"ArrowUp",phosphor:"ArrowUp",iconsax:"ArrowUp"},arrowDown:{lucide:"ArrowDown",phosphor:"ArrowDown",iconsax:"ArrowDown"},add:{lucide:"Plus",phosphor:"Plus",iconsax:"Add"},edit:{lucide:"Edit",phosphor:"Pencil"},pencil:{lucide:"Pencil",phosphor:"Pencil"},delete:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},trash:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},upload:{lucide:"Upload",phosphor:"Upload",iconsax:"Upload"},download:{lucide:"Download",phosphor:"Download",iconsax:"Download"},x:{lucide:"X",phosphor:"X"},check:{lucide:"Check",phosphor:"Check",iconsax:"Check"},search:{lucide:"Search",phosphor:"MagnifyingGlass",iconsax:"SearchNormal"},share:{lucide:"Share",phosphor:"Share"},copy:{lucide:"Copy",phosphor:"Copy"},save:{lucide:"Save",phosphor:"FloppyDisk"},loader:{lucide:"Loader2",phosphor:"Spinner"},loader2:{lucide:"Loader2",phosphor:"Spinner"},"check-circle":{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},checkCircle:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},success:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},error:{lucide:"XCircle",phosphor:"XCircle",iconsax:"CloseCircle"},warning:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Warning2"},info:{lucide:"Info",phosphor:"Info",iconsax:"InfoCircle"},refresh:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},refreshCw:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},bell:{lucide:"Bell",phosphor:"Bell",iconsax:"Bell"},heart:{lucide:"Heart",phosphor:"Heart",iconsax:"Heart"},star:{lucide:"Star",phosphor:"Star",iconsax:"Star"},bookmark:{lucide:"Bookmark",phosphor:"Bookmark"},user:{lucide:"User",phosphor:"User",iconsax:"User"},userPlus:{lucide:"UserPlus",phosphor:"UserPlus",iconsax:"UserAdd"},logIn:{lucide:"LogIn",phosphor:"SignIn",iconsax:"Login"},logOut:{lucide:"LogOut",phosphor:"SignOut",iconsax:"Logout"},chrome:{lucide:"Chrome",phosphor:"ChromeLogo",iconsax:"Chrome"},github:{lucide:"Github",phosphor:"GithubLogo"},message:{lucide:"MessageCircle",phosphor:"ChatCircle"},messageSquare:{lucide:"MessageSquare",phosphor:"ChatSquare"},"message-square":{lucide:"MessageSquare",phosphor:"ChatSquare"},inbox:{lucide:"Inbox",phosphor:"Inbox"},calendar:{lucide:"Calendar",phosphor:"Calendar"},calendarPlus:{lucide:"CalendarPlus",phosphor:"CalendarPlus"},checkSquare:{lucide:"CheckSquare",phosphor:"CheckSquare",iconsax:"TickSquare"},clock:{lucide:"Clock",phosphor:"Clock"},book:{lucide:"Book",phosphor:"Book",iconsax:"Book"},bookOpen:{lucide:"BookOpen",phosphor:"BookOpen",iconsax:"Book"},monitor:{lucide:"Monitor",phosphor:"Monitor",iconsax:"Monitor"},sun:{lucide:"Sun",phosphor:"Sun",iconsax:"Sun"},moon:{lucide:"Moon",phosphor:"Moon",iconsax:"Moon"},sparkle:{lucide:"Sparkle",phosphor:"Sparkle"},sparkles:{lucide:"Sparkles",phosphor:"Sparkle"},lightbulb:{lucide:"Lightbulb",phosphor:"Lightbulb"},brain:{lucide:"Brain",phosphor:"Brain"},zap:{lucide:"Zap",phosphor:"Lightning"},globe:{lucide:"Globe",phosphor:"Globe",iconsax:"Global"},deviceMobile:{lucide:"Smartphone",phosphor:"DeviceMobile"},smartphone:{lucide:"Smartphone",phosphor:"DeviceMobile"},floppyDisk:{lucide:"Save",phosphor:"FloppyDisk"},chart:{lucide:"BarChart3",phosphor:"ChartBar"},barChart:{lucide:"BarChart",phosphor:"ChartBar"},trendingUp:{lucide:"TrendingUp",phosphor:"TrendUp"},trendingDown:{lucide:"TrendingDown",phosphor:"TrendDown"},activity:{lucide:"Activity",phosphor:"Pulse"},database:{lucide:"Database",phosphor:"Database"},dollarSign:{lucide:"DollarSign",phosphor:"CurrencyDollar"},dollar:{lucide:"DollarSign",phosphor:"CurrencyDollar"},currency:{lucide:"DollarSign",phosphor:"CurrencyDollar"},layers:{lucide:"Layers",phosphor:"Stack"},ban:{lucide:"Ban",phosphor:"Prohibit"},lock:{lucide:"Lock",phosphor:"Lock",iconsax:"Lock"},unlock:{lucide:"Unlock",phosphor:"LockOpen",iconsax:"Unlock"},shield:{lucide:"Shield",phosphor:"Shield",iconsax:"Shield"},key:{lucide:"Key",phosphor:"Key"},play:{lucide:"Play",phosphor:"Play",iconsax:"Play"},pause:{lucide:"Pause",phosphor:"Pause",iconsax:"Pause"},image:{lucide:"Image",phosphor:"Image",iconsax:"Image"},video:{lucide:"Video",phosphor:"Video",iconsax:"Video"},camera:{lucide:"Camera",phosphor:"Camera",iconsax:"Camera"},fileText:{lucide:"FileText",phosphor:"FileText"},file:{lucide:"File",phosphor:"File"},externalLink:{lucide:"ExternalLink",phosphor:"ArrowSquareOut"},link:{lucide:"Link",phosphor:"Link",iconsax:"Link"},moreHorizontal:{lucide:"MoreHorizontal",phosphor:"DotsThreeOutline"},moreVertical:{lucide:"MoreVertical",phosphor:"DotsThreeVertical"},remove:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"},eye:{lucide:"Eye",phosphor:"Eye",iconsax:"Eye"},eyeOff:{lucide:"EyeOff",phosphor:"EyeSlash",iconsax:"EyeSlash"},smile:{lucide:"Smile",phosphor:"Smiley",iconsax:"EmojiHappy"},frown:{lucide:"Frown",phosphor:"SmileySad",iconsax:"EmojiSad"},meh:{lucide:"Meh",phosphor:"SmileyMeh",iconsax:"EmojiNormal"},mail:{lucide:"Mail",phosphor:"Envelope"},phone:{lucide:"Phone",phosphor:"Phone"},flag:{lucide:"Flag",phosphor:"Flag",iconsax:"Flag"},rocket:{lucide:"Rocket",phosphor:"Rocket",iconsax:"Rocket"},ticket:{lucide:"Ticket",phosphor:"Ticket",iconsax:"Ticket"},clipboard:{lucide:"ClipboardList",phosphor:"Clipboard",iconsax:"Sticker"},wifi:{lucide:"Wifi",phosphor:"WifiHigh",iconsax:"Wifi"},wifiOff:{lucide:"WifiOff",phosphor:"WifiSlash"},cpu:{lucide:"Cpu",phosphor:"Cpu",iconsax:"Computing"},mask:{lucide:"Drama",phosphor:"MaskHappy",iconsax:"EmojiHappy"},bold:{lucide:"Bold",phosphor:"TextB"},italic:{lucide:"Italic",phosphor:"TextItalic"},strikethrough:{lucide:"Strikethrough",phosphor:"TextStrikethrough"},heading:{lucide:"Heading",phosphor:"TextHOne"},code:{lucide:"Code",phosphor:"Code",iconsax:"Code"},fileCode:{lucide:"FileCode",phosphor:"FileCode"},quote:{lucide:"Quote",phosphor:"Quotes",iconsax:"QuoteUp"},list:{lucide:"List",phosphor:"List"},listOrdered:{lucide:"ListOrdered",phosphor:"ListNumbers"},minus:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"}};async function _e(){if(typeof window=="undefined")return null;if(!T)try{T=await import('@phosphor-icons/react');}catch{return console.warn("Phosphor Icons not available. Install @phosphor-icons/react to use."),null}return T}async function je(){if(typeof window=="undefined")return null;if(!D)try{D=await import('lucide-react');}catch{return console.warn("Lucide Icons not available. Install lucide-react to use lucide provider."),null}return D}function ie(e,o="phosphor"){let r=Fe[e];if(!r)return dt(e,o);let t=r[o];switch(o){case "phosphor":return !t||!T?null:(T==null?void 0:T[t])||null;case "lucide":return !t||!D?null:(D==null?void 0:D[t])||null;case "iconsax":{return null;}default:return null}}function dt(e,o){switch(o){case "phosphor":{if(!T)return null;let r=e.charAt(0).toUpperCase()+e.slice(1),t=e.split(/(?=[A-Z])/).map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("");return (T==null?void 0:T[r])||(T==null?void 0:T[t])||(T==null?void 0:T[e])||null}case "lucide":{if(!D)return null;let r=e.charAt(0).toUpperCase()+e.slice(1),t=e.replace(/([A-Z])/g,n=>n===e[0]?n.toLowerCase():n);return (D==null?void 0:D[r])||(D==null?void 0:D[e])||(D==null?void 0:D[t])||null}case "iconsax":{return null;}default:return null}}function Ge(e,o){let r=Fe[e];if(r){let t=r[o];if(t)return t}return e}var ge={"arrow-left":"arrowLeft","arrow-right":"arrowRight","arrow-up":"arrowUp","arrow-down":"arrowDown","chevron-left":"chevronLeft","chevron-right":"chevronRight","chevron-up":"chevronUp","chevron-down":"chevronDown","external-link":"externalLink","more-horizontal":"moreHorizontal","more-vertical":"moreVertical","user-plus":"userPlus","log-in":"logIn","log-out":"logOut","check-circle":"checkCircle","check-square":"checkSquare","alert-circle":"alertCircle","eye-off":"eyeOff","file-text":"fileText","book-open":"bookOpen","bar-chart":"barChart","trending-up":"trendingUp","trending-down":"trendingDown","message-square":"messageSquare","calendar-plus":"calendarPlus","refresh-cw":"refreshCw","dollar-sign":"dollarSign","layout-dashboard":"layoutDashboard","device-mobile":"deviceMobile","floppy-disk":"floppyDisk",back:"arrowLeft",prev:"arrowLeft",previous:"arrowLeft",forward:"arrowRight",next:"arrowRight",close:"x",cancel:"x",remove:"delete",trash:"delete",plus:"add",new:"add",pencil:"edit",modify:"edit",store:"save",floppy:"save",magnify:"search",person:"user",account:"user",profile:"user",gear:"settings",config:"settings",preferences:"settings",house:"home",main:"home",done:"check",complete:"check",tick:"check",information:"info",help:"info",alert:"warning",caution:"warning",checkmark:"success",checkCircle:"success",fail:"error",cross:"error",xCircle:"error",spinner:"loader",loading:"loader",wait:"loader",reload:"refresh",update:"refresh",sync:"refresh",show:"eye",view:"eye",hide:"eyeOff",hidden:"eyeOff",secure:"lock",locked:"lock",unsecure:"unlock",unlocked:"unlock",get:"download",fetch:"download",post:"upload",send:"share",export:"share",duplicate:"copy",clone:"copy",email:"mail",envelope:"mail",chat:"message",comment:"message",talk:"message",date:"calendar",schedule:"calendar",time:"clock",watch:"clock",document:"fileText",doc:"fileText",text:"fileText",directory:"folder",dir:"folder",picture:"image",img:"image",movie:"video",film:"video",photo:"camera",capture:"camera",start:"play",run:"play",stop:"pause",halt:"pause",like:"heart",love:"heart",favorite:"star",saveBookmark:"bookmark",notification:"bell",notify:"bell",alarm:"bell",prefs:"settings",lookup:"search",dots:"moreHorizontal",moreMenu:"moreHorizontal",moreOptions:"moreVertical",external:"externalLink",outbound:"externalLink",open:"externalLink",url:"link",hyperlink:"link",graph:"barChart",stats:"barChart",analytics:"barChart",db:"database",storage:"database",pulse:"activity",monitor:"activity",up:"trendingUp",down:"trendingDown",lightning:"zap",bolt:"zap",flash:"zap",security:"shield",protect:"shield",password:"key",secret:"key",signin:"logIn",login:"logIn",enter:"logIn",signout:"logOut",logout:"logOut",exit:"logOut",people:"users",group:"users",team:"users",addUser:"userPlus",invite:"userPlus",read:"book",library:"book",reading:"bookOpen",openBook:"bookOpen",light:"sun",day:"sun",dark:"moon",night:"moon",screen:"monitor",display:"monitor",ai:"brain",intelligence:"brain",think:"brain",idea:"lightbulb",bulb:"lightbulb",inspiration:"lightbulb",magic:"sparkles",stars:"sparkles",glitter:"sparkles"};function qe(e){if(!e||typeof e!="string")return {normalized:e||"",wasAlias:false};let o=$e(e),r=ge[e]||ge[o];return r?{normalized:r,wasAlias:true,originalAlias:e}:{normalized:o,wasAlias:false}}var Ke={set:"lucide",weight:"regular",size:20,color:"currentColor",strokeWidth:1.25,iconsaxVariant:"line"};var ht=H.createContext(Ke);function Ye(){return H.useContext(ht)}var Xe=H__default.default.forwardRef(({name:e,size:o,className:r,emotion:t,status:n,provider:a,weight:R,animated:u=false,pulse:k=false,spin:P=false,bounce:E=false,variant:b="default","aria-label":S,"aria-hidden":h},x)=>{var O,J;let p=Ye(),l=a||p.set,i=o!=null?o:p.size,m=R||p.weight,C=p.color,N=(O=p.strokeWidth)!=null?O:1.25,L=(J=p.iconsaxVariant)!=null?J:"line",[f,d]=H__default.default.useState(false),[A,c]=H__default.default.useState(false);H__default.default.useEffect(()=>{d(true),l==="lucide"?je().then(()=>c(true)):l==="phosphor"?_e().then(()=>c(true)):c(true);},[l]);let v=H__default.default.useMemo(()=>{let $=t?Ue[t]:n?We[n]:e,{normalized:ve}=qe($),uo=Ge(ve,l);return {normalized:ve,providerName:uo}},[e,t,n,l]),I=v.normalized,W=H__default.default.useMemo(()=>{return null},[l,v.providerName,f,L]),w=le({"text-current":b==="default","text-primary":b==="primary","text-muted-foreground":b==="secondary"||b==="muted","text-green-600 dark:text-green-400":b==="success","text-yellow-600 dark:text-yellow-400":b==="warning","text-destructive":b==="error"});if(!f)return jsxRuntime.jsx("span",{style:{width:i,height:i},className:s(w,r),"aria-hidden":h!==void 0?h:true,"aria-label":S});let g=null;if(l==="phosphor"?(g=Ve[I]||null,!g&&A&&(g=ie(I,l))):l==="iconsax"?(g=W,g||(g=ie(I,l))):g=ie(I,l),!g)return l==="iconsax"&&true?process.env.NODE_ENV==="development"&&console.warn(`Icon "${I}" \u2014 iconsax resolver not registered. Use HuaProvider with icons.set='iconsax', or add: import '@hua-labs/ui/iconsax'`):console.warn(`Icon "${I}" not found for provider "${l}"`),jsxRuntime.jsx("span",{ref:x,className:s("inline-flex items-center justify-center rounded-full border-2 border-dashed border-border",w,r),style:{width:i,height:i},"aria-label":S||`\uC544\uC774\uCF58\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC74C: ${I}`,title:`Icon not found: ${I}`,children:jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground","aria-hidden":"true",children:"?"})});let Q={size:typeof i=="number"?i:void 0,width:i,height:i,color:C};l==="phosphor"?Q.weight=m:Q.strokeWidth=N;let ee=le({"animate-pulse":k,"animate-spin":P,"animate-bounce":E,"transition-all duration-200 ease-in-out":u}),y={};return S?(y["aria-label"]=S,y["aria-hidden"]=false):h!==void 0?y["aria-hidden"]=h:y["aria-hidden"]=true,jsxRuntime.jsx("span",{ref:x,className:s("inline-flex items-center justify-center",ee,w,r),style:{width:i,height:i},...y,children:g&&H__default.default.createElement(g,{...Q,className:w,"aria-hidden":true})})});Xe.displayName="Icon";var ft=H__default.default.memo(Xe,(e,o)=>e.name===o.name&&e.size===o.size&&e.className===o.className&&e.emotion===o.emotion&&e.status===o.status&&e.provider===o.provider&&e.animated===o.animated&&e.pulse===o.pulse&&e.spin===o.spin&&e.bounce===o.bounce&&e.variant===o.variant&&e.weight===o.weight&&e["aria-label"]===o["aria-label"]&&e["aria-hidden"]===o["aria-hidden"]),V=ft;V.displayName="Icon";var Ze=H__default.default.forwardRef((e,o)=>jsxRuntime.jsx(V,{ref:o,name:"smile",...e}));Ze.displayName="EmotionIcon";var Qe=H__default.default.forwardRef((e,o)=>jsxRuntime.jsx(V,{ref:o,name:"info",...e}));Qe.displayName="StatusIcon";var Je=H__default.default.forwardRef((e,o)=>jsxRuntime.jsx(V,{ref:o,name:"loader",status:"loading",spin:true,"aria-label":"\uB85C\uB529 \uC911",...e}));Je.displayName="LoadingIcon";var eo=H__default.default.forwardRef((e,o)=>jsxRuntime.jsx(V,{ref:o,name:"check",status:"success",variant:"success","aria-label":"\uC131\uACF5",...e}));eo.displayName="SuccessIcon";var oo=H__default.default.forwardRef((e,o)=>jsxRuntime.jsx(V,{ref:o,name:"alertCircle",status:"error",variant:"error","aria-label":"\uC624\uB958",...e}));oo.displayName="ErrorIcon";var ro=H__default.default.forwardRef(({isOpen:e,onClose:o,children:r,className:t,side:n="right",size:a="md",showBackdrop:R=true,backdropClassName:u,closeOnBackdropClick:k=true,closeOnEscape:P=true,closable:E=true,...b},S)=>{let h=e!=null?e:false,x=()=>{o==null||o();},[p,l]=H__default.default.useState(false),[i,m]=H__default.default.useState(false);if(H__default.default.useEffect(()=>{if(h){l(true),m(true);let f=setTimeout(()=>m(false),50);return ()=>clearTimeout(f)}else {m(true);let f=setTimeout(()=>{l(false),m(false);},300);return ()=>clearTimeout(f)}},[h]),H__default.default.useEffect(()=>{if(!P)return;let f=d=>{d.key==="Escape"&&h&&x();};return h&&(document.addEventListener("keydown",f),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",f),document.body.style.overflow="";}},[h,P]),!p)return null;let C={sm:n==="left"||n==="right"?"w-80":"h-64",md:n==="left"||n==="right"?"w-96":"h-96",lg:n==="left"||n==="right"?"w-[28rem]":"h-[32rem]",xl:n==="left"||n==="right"?"w-[32rem]":"h-[40rem]",full:n==="left"||n==="right"?"w-full":"h-full"},N={left:"left-0 top-0 h-full",right:"right-0 top-0 h-full",top:"top-0 left-0 w-full",bottom:"bottom-0 left-0 w-full"},L={left:h?"translate-x-0":"-translate-x-full",right:h?"translate-x-0":"translate-x-full",top:h?"translate-y-0":"-translate-y-full",bottom:h?"translate-y-0":"translate-y-full"};return jsxRuntime.jsxs("div",{className:"fixed inset-0 z-50",children:[R&&jsxRuntime.jsx("div",{className:s("absolute inset-0 bg-black/60 backdrop-blur-md transition-opacity duration-300",i?h?"opacity-100":"opacity-0":"",u),onClick:k?x:void 0}),jsxRuntime.jsx("div",{ref:S,className:s("absolute bg-background/95 backdrop-blur-xl border border-border/50 shadow-2xl transition-transform duration-300 ease-out",C[a],N[n],L[n],t),...b,children:r})]})});ro.displayName="Drawer";var to=H__default.default.forwardRef(({children:e,className:o,showCloseButton:r=true,onClose:t,...n},a)=>jsxRuntime.jsxs("div",{ref:a,className:s("flex items-center justify-between p-6 border-b border-border/50",o),...n,children:[jsxRuntime.jsx("div",{className:"flex-1",children:e}),r&&jsxRuntime.jsx("button",{onClick:t,className:"p-2 rounded-lg hover:bg-muted transition-colors",children:jsxRuntime.jsx(V,{name:"close",size:20})})]}));to.displayName="DrawerHeader";var no=H__default.default.forwardRef(({children:e,className:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("flex-1 p-6 overflow-y-auto",o),...r,children:e}));no.displayName="DrawerContent";var ao=H__default.default.forwardRef(({children:e,className:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("flex items-center justify-end gap-3 p-6 border-t border-border/50",o),...r,children:e}));ao.displayName="DrawerFooter";var io=H__default.default.forwardRef(({isOpen:e,onClose:o,children:r,className:t,height:n="md",showBackdrop:a=true,backdropClassName:R,closeOnBackdropClick:u=true,closeOnEscape:k=true,showDragHandle:P=true,closable:E=true,snapPoints:b=[25,50,75,100],defaultSnap:S=50,...h},x)=>{let p=e!=null?e:false,l=()=>{o==null||o();},[i,m]=H__default.default.useState(false),[C,N]=H__default.default.useState(false),[L,f]=H__default.default.useState(S),[d,A]=H__default.default.useState(false),[c,v]=H__default.default.useState(0),[I,W]=H__default.default.useState(0),w={sm:"h-64",md:"h-96",lg:"h-[32rem]",xl:"h-[40rem]",full:"h-full"};H__default.default.useEffect(()=>{if(p){m(true),N(true);let y=setTimeout(()=>N(false),50);return ()=>clearTimeout(y)}else {N(true);let y=setTimeout(()=>{m(false),N(false);},300);return ()=>clearTimeout(y)}},[p]),H__default.default.useEffect(()=>{if(!k)return;let y=O=>{O.key==="Escape"&&p&&l();};return p&&(document.addEventListener("keydown",y),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",y),document.body.style.overflow="";}},[p,k]);let g=y=>{A(true),v(y.touches[0].clientY),W(y.touches[0].clientY);},Q=y=>{d&&W(y.touches[0].clientY);},ee=()=>{if(!d)return;A(false);let y=I-c,O=100;if(y>O)l();else if(y<-O){let J=b.indexOf(L),$=Math.min(J+1,b.length-1);f(b[$]);}};return i?jsxRuntime.jsxs("div",{className:"fixed inset-0 z-50",children:[a&&jsxRuntime.jsx("div",{className:s("absolute inset-0 bg-black/60 backdrop-blur-md transition-opacity duration-300",C?p?"opacity-100":"opacity-0":"",R),onClick:u?l:void 0}),jsxRuntime.jsxs("div",{ref:x,className:s("absolute bottom-0 left-0 right-0 bg-background/95 backdrop-blur-xl border-t border-border/50 shadow-2xl rounded-t-lg transition-transform duration-300 ease-out pb-safe",n!=="full"?w[n]:"",C?p?"translate-y-0":"translate-y-full":"",t),style:{height:n==="full"?`${L}%`:void 0,maxHeight:n!=="full"?void 0:"100%",transform:d?`translateY(${I-c}px)`:void 0},onTouchStart:g,onTouchMove:Q,onTouchEnd:ee,...h,children:[P&&jsxRuntime.jsx("div",{className:"flex justify-center pt-3 pb-2",children:jsxRuntime.jsx("div",{className:"w-12 h-1.5 bg-muted-foreground/30 rounded-full"})}),r]})]}):null});io.displayName="BottomSheet";var lo=H__default.default.forwardRef(({children:e,className:o,showCloseButton:r=true,onClose:t,...n},a)=>jsxRuntime.jsxs("div",{ref:a,className:s("flex items-center justify-between px-6 py-4",o),...n,children:[jsxRuntime.jsx("div",{className:"flex-1",children:e}),r&&jsxRuntime.jsx("button",{onClick:t,className:"p-2 rounded-lg hover:bg-muted transition-colors",children:jsxRuntime.jsx(V,{name:"close",size:20})})]}));lo.displayName="BottomSheetHeader";var co=H__default.default.forwardRef(({children:e,className:o,...r},t)=>jsxRuntime.jsx("div",{ref:t,className:s("flex-1 px-6 pb-6 overflow-y-auto",o),...r,children:e}));co.displayName="BottomSheetContent";
|
|
2
2
|
exports.BottomSheet=io;exports.BottomSheetContent=co;exports.BottomSheetHeader=lo;exports.ConfirmModal=ke;exports.Drawer=ro;exports.DrawerContent=no;exports.DrawerFooter=ao;exports.DrawerHeader=to;exports.Dropdown=Se;exports.DropdownGroup=Pe;exports.DropdownItem=Le;exports.DropdownLabel=Te;exports.DropdownMenu=De;exports.DropdownSeparator=Me;exports.Modal=ne;exports.Popover=Re;exports.PopoverContent=Ie;exports.PopoverTrigger=Ne;//# sourceMappingURL=overlay.js.map
|
|
3
3
|
//# sourceMappingURL=overlay.js.map
|