@likelion-design/ui 1.0.1 → 1.0.4
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 +64 -66
- package/dist/colors.css.css +1 -1
- package/dist/colors.css.css.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +921 -44
- package/dist/index.d.ts +921 -44
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as h,b as I,c as y}from"./chunk-H3TEQK57.mjs";import lo from"react";var S=l=>{var i=l,{variant:o,decoration:r="none",as:t,children:a,className:c=""}=i,n=y(i,["variant","decoration","as","children","className"]);let s=(()=>{if(o.startsWith("heading-")){let u=o.split("-")[1];return u.startsWith("d")?"h1":u}return o.startsWith("subtitle-")?"h3":"p"})(),e=t||s,b=["typography",`typography--${o}`,r!=="none"&&`typography--decoration-${r}`,c].filter(Boolean).join(" ");return lo.createElement(e,h({className:b},n),a)};import{jsx as T,jsxs as G}from"react/jsx-runtime";var N=u=>{var m=u,{size:o="medium",color:r="primary",type:t="solid",state:a="enabled",label:c,prefixIcon:n,suffixIcon:l,loading:i=!1,className:s="",disabled:e}=m,b=y(m,["size","color","type","state","label","prefixIcon","suffixIcon","loading","className","disabled"]);let f=e||a==="disabled",g=a;t==="ghost"?(a==="hovered"||a==="loading"||i)&&(g="enabled"):g=i?"loading":a;let p=["action-button",`action-button--${o}`,`action-button--${r}`,`action-button--${t}`,`action-button--${g}`,s].filter(Boolean).join(" "),x=o==="xlarge"?"heading-h6":o==="large"||o==="medium"?"subtitle-p2":"subtitle-p3";return G("button",I(h({type:"button",className:p,disabled:f},b),{children:[G("span",{className:"action-button__content",children:[n&&T("span",{className:"action-button__prefix-icon",children:n}),T("p",{className:"action-button__label",children:T(S,{variant:x,children:c})}),l&&T("span",{className:"action-button__suffix-icon",children:l})]}),i&&t!=="ghost"&&T("span",{className:"action-button__spinner","aria-hidden":"true",children:T("svg",{className:"action-button__spinner-svg",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:G("circle",{className:"action-button__spinner-circle",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"32",children:[T("animate",{attributeName:"stroke-dasharray",dur:"2s",values:"0 40;40 40;0 40",repeatCount:"indefinite"}),T("animate",{attributeName:"stroke-dashoffset",dur:"2s",values:"0;-40;-80",repeatCount:"indefinite"})]})})})]}))};import{jsx as J}from"react/jsx-runtime";var so=u=>{var m=u,{size:o="large",color:r="primary",type:t="solid",state:a="enabled",icon:c,className:n="",disabled:l,htmlType:i="button",style:s,customColor:e}=m,b=y(m,["size","color","type","state","icon","className","disabled","htmlType","style","customColor"]);let f=l||a==="disabled",g=t==="weak",p=g&&f?"enabled":a,x=e?"":g?`icon-button--weak-${r}`:`icon-button--${r}`,w=g?"icon-button--weak":`icon-button--${t}`,C=["icon-button",`icon-button--${o}`,x,w,`icon-button--${p}`,n].filter(Boolean).join(" "),d=g&&f,v=h(h({},(e==null?void 0:e.background)&&{backgroundColor:e.background}),(e==null?void 0:e.color)&&{color:e.color});return J("button",I(h({type:i,className:C,disabled:f,style:h(h(h({},s),v),d?{opacity:0,pointerEvents:"none"}:{})},b),{children:J("span",{className:"icon-button__icon",children:c})}))};import E,{useState as po}from"react";import{jsx as Y}from"react/jsx-runtime";var Z=l=>{var i=l,{type:o="number",variant:r="primary",value:t,maxValue:a=99,className:c=""}=i,n=y(i,["type","variant","value","maxValue","className"]);let s=["badge",`badge--${r}`,`badge--${o}`,c].filter(Boolean).join(" "),e=o==="number"&&t!==void 0?typeof t=="number"&&t>a?`${a}+`:String(t):null;return Y("span",I(h({className:s},n),{children:o==="number"&&e&&Y(S,{variant:"subtitle-p3",as:"span",children:e})}))};import{jsx as H,jsxs as fo}from"react/jsx-runtime";var $=b=>{var u=b,{type:o="round",size:r="large",badge:t=!1,label:a,mode:c=!1,className:n="",selected:l,disabled:i=!1,onClick:s}=u,e=y(u,["type","size","badge","label","mode","className","selected","disabled","onClick"]);let[m,f]=po(!1),g=l!==void 0,p=g?l:m,x=d=>{i||(g||f(v=>!v),s==null||s(d))},w=i?"disabled":p?"pressed":"enabled",C=["tab",`tab--${o}`,`tab--${r}`,`tab--${w}`,c&&"tab--dark",n].filter(Boolean).join(" ");return fo("button",I(h({type:"button",className:C,"aria-pressed":p,disabled:i,onClick:x},e),{children:[H("span",{className:"tab__label",children:a}),t&&H(Z,{type:"dot",variant:"primary",className:"tab__badge","aria-label":"\uC54C\uB9BC"})]}))},j=({value:o,defaultValue:r,onChange:t,type:a="round",size:c="large",mode:n=!1,disabled:l=!1,children:i,className:s=""})=>{let[e,b]=E.useState(r),u=o!==void 0,m=u?o:e,f=["tab-group",`tab-group--${a}`,`tab-group--${c}`,n&&"tab-group--dark",l&&"tab-group--disabled",s].filter(Boolean).join(" "),g=E.Children.map(i,p=>{var x,w,C;if(E.isValidElement(p)&&p.type===$){let d=p.props.value;if(d===void 0)return console.warn("Tab.Group \uB0B4\uBD80\uC758 Tab\uC740 value prop\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."),p;let v=m===d;return E.cloneElement(p,{type:(x=p.props.type)!=null?x:a,size:(w=p.props.size)!=null?w:c,mode:(C=p.props.mode)!=null?C:n,selected:v,disabled:l||p.props.disabled,role:"tab","aria-selected":v,onClick:B=>{var k,A;u||b(d),t==null||t(d),(A=(k=p.props).onClick)==null||A.call(k,B)}})}return p});return H("div",{className:f,role:"tablist",children:g})};j.displayName="TabGroup";$.Group=j;import R from"react";import*as P from"react";function uo(c,a){var n=c,{title:o,titleId:r}=n,t=y(n,["title","titleId"]);return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),o?P.createElement("title",{id:r},o):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}var mo=P.forwardRef(uo),W=mo;import{jsx as D,jsxs as go}from"react/jsx-runtime";var V=C=>{var d=C,{type:o="solid",size:r="medium",variant:t="primary",value:a,onChange:c,checked:n,defaultChecked:l=!1,selectedValue:i,selectedValues:s,label:e,prefixIcon:b,suffixIcon:u,showClose:m=!1,onClose:f,className:g="",disabled:p,onClick:x}=d,w=y(d,["type","size","variant","value","onChange","checked","defaultChecked","selectedValue","selectedValues","label","prefixIcon","suffixIcon","showClose","onClose","className","disabled","onClick"]);let[v,B]=R.useState(l),k=n!==void 0,A=R.useMemo(()=>k?n:i!=null?i===a:s!==void 0?s.includes(a):v,[k,n,i,s,a,v]),z=b||o==="outline"&&A&&!b&&D(W,{className:"chip__check-icon",style:{width:r==="small"?"14px":"16px",height:r==="small"?"14px":"16px"}}),M=!!z,K=!!(u||m),ao=M&&K?"chip--has-prefix-suffix":M?"chip--has-prefix":K?"chip--has-suffix":"chip--no-icon",ro=["chip",`chip--${o}`,`chip--${r}`,`chip--${t}`,ao,A&&"chip--checked",p&&"chip--disabled",g].filter(Boolean).join(" "),io=L=>{p||(!k&&i===void 0&&s===void 0&&B(co=>!co),c&&c(a),x==null||x(L))},no=L=>{L.stopPropagation(),f&&!p&&f(L)};return go("button",I(h({type:"button",className:ro,disabled:p,onClick:io,"aria-pressed":A},w),{children:[z&&D("span",{className:"chip__prefix-icon",children:z}),D(S,{variant:r==="small"?"body-p3":"body-p2",children:e}),u&&!m&&D("span",{className:"chip__suffix-icon",children:u}),m&&D("button",{type:"button",className:"chip__close-button",onClick:no,disabled:p,"aria-label":"Close",children:D("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:D("path",{d:"M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM10.7803 5.21973C10.4874 4.92683 10.0126 4.92683 9.71973 5.21973L8 6.93945L6.28027 5.21973C5.98738 4.92683 5.51262 4.92683 5.21973 5.21973C4.92683 5.51262 4.92683 5.98738 5.21973 6.28027L6.93945 8L5.21973 9.71973C4.92683 10.0126 4.92683 10.4874 5.21973 10.7803C5.51262 11.0732 5.98738 11.0732 6.28027 10.7803L8 9.06055L9.71973 10.7803C10.0126 11.0732 10.4874 11.0732 10.7803 10.7803C11.0732 10.4874 11.0732 10.0126 10.7803 9.71973L9.06055 8L10.7803 6.28027C11.0732 5.98738 11.0732 5.51262 10.7803 5.21973Z",fill:"currentColor",fillOpacity:"0.56"})})})]}))},q=({value:o,defaultValue:r,onChange:t,multiple:a=!1,type:c="solid",size:n="medium",variant:l="primary",disabled:i=!1,children:s,className:e=""})=>{let[b,u]=R.useState(()=>r!=null?r:a?[]:""),m=o!==void 0,f=m?o:b,g=d=>{if(a){let v=Array.isArray(f)?f:[],B=v.includes(d)?v.filter(k=>k!==d):[...v,d];m||u(B),t==null||t(d)}else m||u(d),t==null||t(d)},p=a?void 0:f,x=a?f:void 0,w=["chip-group",e].filter(Boolean).join(" "),C=R.Children.map(s,d=>{var v,B,k;return R.isValidElement(d)&&d.type===V?d.props.value===void 0?(console.warn("Chip.Group \uB0B4\uBD80\uC758 Chip\uC740 value prop\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."),d):R.cloneElement(d,{type:(v=d.props.type)!=null?v:c,size:(B=d.props.size)!=null?B:n,variant:(k=d.props.variant)!=null?k:l,selectedValue:p,selectedValues:x,onChange:U=>{var z,M;g(U),(M=(z=d.props).onChange)==null||M.call(z,U)},disabled:i||d.props.disabled}):d});return D("div",{className:w,children:C})};q.displayName="ChipGroup";V.Group=q;import F from"react";import{createPortal as yo}from"react-dom";import{createContext as ho,useContext as bo,useSyncExternalStore as xo}from"react";var oo=ho(null),gt=oo.Provider;function O(o){return xo(c=>{let n=window.matchMedia(o);return n.addEventListener("change",c),()=>n.removeEventListener("change",c)},()=>window.matchMedia(o).matches,()=>!1)}function to(){var n,l,i,s;let o=bo(oo),r=O("(min-width: 375px) and (max-width: 743px)"),t=O("(min-width: 744px) and (max-width: 1279px)"),a=O("(min-width: 1280px)"),c=O("(max-width: 743px)");return{isMobile:(n=o==null?void 0:o.isMobile)!=null?n:r,isTablet:(l=o==null?void 0:o.isTablet)!=null?l:t,isDesktop:(i=o==null?void 0:o.isDesktop)!=null?i:a,isUnderTablet:(s=o==null?void 0:o.isUnderTablet)!=null?s:c}}import{jsx as _,jsxs as Q}from"react/jsx-runtime";var X=u=>{var m=u,{open:o=!0,variant:r="confirm",align:t,title:a,description:c,icon:n,actionItems:l,footerLayout:i="horizontal",onActionClose:s,className:e=""}=m,b=y(m,["open","variant","align","title","description","icon","actionItems","footerLayout","onActionClose","className"]);let{isUnderTablet:f}=to();if(!o)return null;let g=t!=null?t:r==="alert"?"left":"center";console.log(r,f);let p=["dialog",`dialog--${r}`,`dialog--${g}`,f?"is-mobile":"",e].filter(Boolean).join(" "),x=["dialog__footer",`dialog__footer--${i}`].filter(Boolean).join(" ");return Q("div",I(h({className:p},b),{children:[(n||a)&&Q("div",{className:"dialog__header",children:[n&&_("span",{className:"dialog__icon",children:n}),a&&_(S,{variant:f?"subtitle-p1":"heading-h6",children:a})]}),c&&_("div",{className:"dialog__body",children:_("div",{className:"body-p2",children:c})}),l&&l.length>0&&_("div",{className:x,children:vo(f,r,l,i,s)})]}))},vo=(o,r,t,a,c)=>{let n=a==="vertical"?"dialog__actions--vertical":"dialog__actions--horizontal",l=r==="confirm"?"100%":"auto",i=r==="alert"?o?"small":"medium":"large",s=r==="alert"?"outline":"solid";return _("div",{className:`dialog__actions ${n}`,children:t.map((e,b)=>{var m,f,g;let u=()=>{var p,x;(p=e.onClick)==null||p.call(e),((x=e.closeOnClick)==null||x)&&c&&c()};return _(N,{size:(m=e.size)!=null?m:i,color:(f=e.color)!=null?f:"neutral",type:(g=e.type)!=null?g:s,label:e.label,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,loading:e.loading,disabled:e.disabled,onClick:u,style:{width:l}},`${e.label}-${b}`)})})};function eo(){let[o,r]=F.useState(null),t=F.useRef(void 0),a=l=>{r(l)},c=()=>{var l;(l=t.current)==null||l.call(t),r(null)};return F.useEffect(()=>{var s;if(!((s=o==null?void 0:o.closeOnEsc)!=null?s:!0))return;let i=e=>{e.key==="Escape"&&c()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[o==null?void 0:o.closeOnEsc]),F.useEffect(()=>{t.current=o==null?void 0:o.onClose},[o==null?void 0:o.onClose]),{openDialog:a,closeDialog:c,DialogContainer:()=>{if(!o)return null;let u=o,{actionItems:l,footerLayout:i="horizontal",closeOnOverlayClick:s=!0}=u,e=y(u,["actionItems","footerLayout","closeOnOverlayClick"]),b=Q("div",{className:"dialog-overlay",role:"presentation",children:[_("button",{type:"button",className:"dialog-overlay__backdrop","aria-label":"Close dialog",onClick:s?c:void 0}),_("div",{className:"dialog-overlay__content",role:"dialog","aria-modal":"true",children:_(X,I(h({},e),{open:!0,actionItems:l,footerLayout:i,onActionClose:c}))})]});return yo(b,document.body)}}}export{N as ActionButton,N as Button,V as Chip,q as ChipGroup,X as Dialog,so as IconButton,$ as Tab,j as TabGroup,eo as useDialog};
|
|
1
|
+
import{a as x,b as k,c as _}from"./chunk-H3TEQK57.mjs";import jo from"react";var R=p=>{var i=p,{variant:e,decoration:t="none",as:o,children:a,className:c=""}=i,r=_(i,["variant","decoration","as","children","className"]);let n=(()=>{if(e.startsWith("heading-")){let d=e.split("-")[1];return d.startsWith("d")?"h1":d}return e.startsWith("subtitle-")?"h3":"p"})(),s=o||n,v=["typography",`typography--${e}`,t!=="none"&&`typography--decoration-${t}`,c].filter(Boolean).join(" ");return jo.createElement(s,x({className:v},r),a)};import{jsx as J,jsxs as Ue}from"react/jsx-runtime";var De=d=>{var m=d,{size:e="medium",color:t="primary",type:o="solid",state:a="enabled",label:c,prefixIcon:r,suffixIcon:p,loading:i=!1,className:n="",disabled:s}=m,v=_(m,["size","color","type","state","label","prefixIcon","suffixIcon","loading","className","disabled"]);let h=s||a==="disabled",l=a;o==="ghost"?(a==="hovered"||a==="loading"||i)&&(l="enabled"):l=i?"loading":a;let f=["action-button",`action-button--${e}`,`action-button--${t}`,`action-button--${o}`,`action-button--${l}`,n].filter(Boolean).join(" "),g=e==="xlarge"?"heading-h6":e==="large"||e==="medium"?"subtitle-p2":"subtitle-p3";return Ue("button",k(x({type:"button",className:f,disabled:h},v),{children:[Ue("span",{className:"action-button__content",children:[r&&J("span",{className:"action-button__prefix-icon",children:r}),J("p",{className:"action-button__label",children:J(R,{variant:g,children:c})}),p&&J("span",{className:"action-button__suffix-icon",children:p})]}),i&&o!=="ghost"&&J("span",{className:"action-button__spinner","aria-hidden":"true",children:J("svg",{className:"action-button__spinner-svg",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ue("circle",{className:"action-button__spinner-circle",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"32",children:[J("animate",{attributeName:"stroke-dasharray",dur:"2s",values:"0 40;40 40;0 40",repeatCount:"indefinite"}),J("animate",{attributeName:"stroke-dashoffset",dur:"2s",values:"0;-40;-80",repeatCount:"indefinite"})]})})})]}))};import{jsx as yo}from"react/jsx-runtime";var Vo=d=>{var m=d,{size:e="large",color:t="primary",type:o="solid",state:a="enabled",icon:c,className:r="",disabled:p,htmlType:i="button",style:n,customColor:s}=m,v=_(m,["size","color","type","state","icon","className","disabled","htmlType","style","customColor"]);let h=p||a==="disabled",l=o==="weak",f=l&&h?"enabled":a,g=s?"":l?`icon-button--weak-${t}`:`icon-button--${t}`,y=l?"icon-button--weak":`icon-button--${o}`,C=["icon-button",`icon-button--${e}`,g,y,`icon-button--${f}`,r].filter(Boolean).join(" "),b=l&&h,u=x(x({},(s==null?void 0:s.background)&&{backgroundColor:s.background}),(s==null?void 0:s.color)&&{color:s.color});return yo("button",k(x({type:i,className:C,disabled:h,style:x(x(x({},n),u),b?{opacity:0,pointerEvents:"none"}:{})},v),{children:yo("span",{className:"icon-button__icon",children:c})}))};import Pe,{useState as Wo}from"react";import{jsx as Io}from"react/jsx-runtime";var Ge=p=>{var i=p,{type:e="number",variant:t="primary",value:o,maxValue:a=99,className:c=""}=i,r=_(i,["type","variant","value","maxValue","className"]);let n=["badge",`badge--${t}`,`badge--${e}`,c].filter(Boolean).join(" "),s=e==="number"&&o!==void 0?typeof o=="number"&&o>a?`${a}+`:String(o):null;return Io("span",k(x({className:n},r),{children:e==="number"&&s&&Io(R,{variant:"subtitle-p3",as:"span",children:s})}))};import{jsx as $e,jsxs as qo}from"react/jsx-runtime";var je=v=>{var d=v,{type:e="round",size:t="large",badge:o=!1,label:a,mode:c=!1,className:r="",selected:p,disabled:i=!1,onClick:n}=d,s=_(d,["type","size","badge","label","mode","className","selected","disabled","onClick"]);let[m,h]=Wo(!1),l=p!==void 0,f=l?p:m,g=b=>{i||(l||h(u=>!u),n==null||n(b))},y=i?"disabled":f?"pressed":"enabled",C=["tab",`tab--${e}`,`tab--${t}`,`tab--${y}`,c&&"tab--dark",r].filter(Boolean).join(" ");return qo("button",k(x({type:"button",className:C,"aria-pressed":f,disabled:i,onClick:g},s),{children:[$e("span",{className:"tab__label",children:a}),o&&$e(Ge,{type:"dot",variant:"primary",className:"tab__badge","aria-label":"\uC54C\uB9BC"})]}))},Ve=({value:e,defaultValue:t,onChange:o,type:a="round",size:c="large",mode:r=!1,disabled:p=!1,children:i,className:n=""})=>{let[s,v]=Pe.useState(t),d=e!==void 0,m=d?e:s,h=["tab-group",`tab-group--${a}`,`tab-group--${c}`,r&&"tab-group--dark",p&&"tab-group--disabled",n].filter(Boolean).join(" "),l=Pe.Children.map(i,f=>{var g,y,C;if(Pe.isValidElement(f)&&f.type===je){let b=f.props.value;if(b===void 0)return console.warn("Tab.Group \uB0B4\uBD80\uC758 Tab\uC740 value prop\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."),f;let u=m===b;return Pe.cloneElement(f,{type:(g=f.props.type)!=null?g:a,size:(y=f.props.size)!=null?y:c,mode:(C=f.props.mode)!=null?C:r,selected:u,disabled:p||f.props.disabled,role:"tab","aria-selected":u,onClick:B=>{var w,I;d||v(b),o==null||o(b),(I=(w=f.props).onClick)==null||I.call(w,B)}})}return f});return $e("div",{className:h,role:"tablist",children:l})};Ve.displayName="TabGroup";je.Group=Ve;import fe from"react";import*as se from"react";function Xo(c,a){var r=c,{title:e,titleId:t}=r,o=_(r,["title","titleId"]);return se.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},o),e?se.createElement("title",{id:t},e):null,se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}var Zo=se.forwardRef(Xo),We=Zo;import*as pe from"react";function Yo(c,a){var r=c,{title:e,titleId:t}=r,o=_(r,["title","titleId"]);return pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},o),e?pe.createElement("title",{id:t},e):null,pe.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}var Qo=pe.forwardRef(Yo),qe=Qo;import*as de from"react";function Ko(c,a){var r=c,{title:e,titleId:t}=r,o=_(r,["title","titleId"]);return de.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},o),e?de.createElement("title",{id:t},e):null,de.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}var Jo=de.forwardRef(Ko),Xe=Jo;import{jsx as ee,jsxs as et}from"react/jsx-runtime";var _o=C=>{var b=C,{type:e="solid",size:t="medium",variant:o="primary",value:a,onChange:c,checked:r,defaultChecked:p=!1,selectedValue:i,selectedValues:n,label:s,prefixIcon:v,suffixIcon:d,showClose:m=!1,onClose:h,className:l="",disabled:f,onClick:g}=b,y=_(b,["type","size","variant","value","onChange","checked","defaultChecked","selectedValue","selectedValues","label","prefixIcon","suffixIcon","showClose","onClose","className","disabled","onClick"]);let[u,B]=fe.useState(p),w=r!==void 0,I=fe.useMemo(()=>w?r:i!=null?i===a:n!==void 0?n.includes(a):u,[w,r,i,n,a,u]),S=v||e==="outline"&&I&&!v&&ee(We,{className:"chip__check-icon",style:{width:t==="small"?"14px":"16px",height:t==="small"?"14px":"16px"}}),M=!!S,D=!!(d||m),T=M&&D?"chip--has-prefix-suffix":M?"chip--has-prefix":D?"chip--has-suffix":"chip--no-icon",A=["chip",`chip--${e}`,`chip--${t}`,`chip--${o}`,T,I&&"chip--checked",f&&"chip--disabled",l].filter(Boolean).join(" "),L=E=>{f||(!w&&i===void 0&&n===void 0&&B(N=>!N),c&&c(a),g==null||g(E))},z=E=>{E.stopPropagation(),h&&!f&&h(E)};return et("button",k(x({type:"button",className:A,disabled:f,onClick:L,"aria-pressed":I},y),{children:[S&&ee("span",{className:"chip__prefix-icon",children:S}),ee(R,{variant:t==="small"?"body-p3":"body-p2",children:s}),d&&!m&&ee("span",{className:"chip__suffix-icon",children:d}),m&&ee("button",{type:"button",className:"chip__close-button",onClick:z,disabled:f,"aria-label":"Close",children:ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:ee("path",{d:"M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM10.7803 5.21973C10.4874 4.92683 10.0126 4.92683 9.71973 5.21973L8 6.93945L6.28027 5.21973C5.98738 4.92683 5.51262 4.92683 5.21973 5.21973C4.92683 5.51262 4.92683 5.98738 5.21973 6.28027L6.93945 8L5.21973 9.71973C4.92683 10.0126 4.92683 10.4874 5.21973 10.7803C5.51262 11.0732 5.98738 11.0732 6.28027 10.7803L8 9.06055L9.71973 10.7803C10.0126 11.0732 10.4874 11.0732 10.7803 10.7803C11.0732 10.4874 11.0732 10.0126 10.7803 9.71973L9.06055 8L10.7803 6.28027C11.0732 5.98738 11.0732 5.51262 10.7803 5.21973Z",fill:"currentColor",fillOpacity:"0.56"})})})]}))},Ze=d=>{var m=d,{value:e,defaultValue:t,onChange:o,multiple:a=!1,type:c="solid",size:r="medium",variant:p="primary",disabled:i=!1,children:n,className:s=""}=m,v=_(m,["value","defaultValue","onChange","multiple","type","size","variant","disabled","children","className"]);let[h,l]=fe.useState(()=>t!=null?t:a?[]:""),f=e!==void 0,g=f?e:h,y=w=>{if(a){let I=Array.isArray(g)?g:[],P=I.includes(w)?I.filter(S=>S!==w):[...I,w];f||l(P),o==null||o(w)}else f||l(w),o==null||o(w)},C=a?void 0:g,b=a?g:void 0,u=["chip-group",s].filter(Boolean).join(" "),B=fe.Children.map(n,w=>{var I,P,S;return fe.isValidElement(w)&&w.type===wo?w.props.value===void 0?(console.warn("Chip.Group \uB0B4\uBD80\uC758 Chip\uC740 value prop\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."),w):fe.cloneElement(w,{type:(I=w.props.type)!=null?I:c,size:(P=w.props.size)!=null?P:r,variant:(S=w.props.variant)!=null?S:p,selectedValue:C,selectedValues:b,onChange:D=>{var T,A;y(D),(A=(T=w.props).onChange)==null||A.call(T,D)},disabled:i||w.props.disabled}):w});return ee("div",k(x({className:u},v),{children:B}))};Ze.displayName="ChipGroup";_o.displayName="Chip";var wo=Object.assign(_o,{Group:Ze});import V from"react";import{createPortal as nt}from"react-dom";import{createContext as ot,useContext as tt,useSyncExternalStore as at}from"react";var ko=ot(null),rt=ko.Provider;function Ce(e){return at(c=>{let r=window.matchMedia(e);return r.addEventListener("change",c),()=>r.removeEventListener("change",c)},()=>window.matchMedia(e).matches,()=>!1)}function G(){var r,p,i,n;let e=tt(ko),t=Ce("(min-width: 375px) and (max-width: 743px)"),o=Ce("(min-width: 744px) and (max-width: 1279px)"),a=Ce("(min-width: 1280px)"),c=Ce("(max-width: 743px)");return{isMobile:(r=e==null?void 0:e.isMobile)!=null?r:t,isTablet:(p=e==null?void 0:e.isTablet)!=null?p:o,isDesktop:(i=e==null?void 0:e.isDesktop)!=null?i:a,isUnderTablet:(n=e==null?void 0:e.isUnderTablet)!=null?n:c}}import{Fragment as Po,jsx as F,jsxs as Le}from"react/jsx-runtime";var Co=V.createContext(null),To=f=>{var g=f,{open:e=!1,onClose:t,closeOnOverlayClick:o=!0,closeOnEsc:a=!0,variant:c="confirm",align:r,title:p,description:i,icon:n,actionItems:s,footerLayout:v="horizontal",content:d,className:m="",children:h}=g,l=_(g,["open","onClose","closeOnOverlayClick","closeOnEsc","variant","align","title","description","icon","actionItems","footerLayout","content","className","children"]);let{isUnderTablet:y}=G();if(V.useEffect(()=>{if(!e||!a)return;let I=P=>{P.key==="Escape"&&(t==null||t())};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[e,a,t]),!e)return null;let C=r!=null?r:c==="alert"?"left":"center",b=["dialog",`dialog--${c}`,`dialog--${C}`,y?"is-mobile":"",m].filter(Boolean).join(" "),u=I=>{I.target===I.currentTarget&&o&&(t==null||t())},B;return d?B=d:h?B=h:B=Le(Po,{children:[(p||n)&&F(Ro,{title:p,icon:n}),i&&F(So,{children:i}),s&&s.length>0&&F(Bo,{layout:v,children:s.map((I,P)=>{var S;return F(Ao,{label:I.label,color:I.color,type:I.type,size:I.size,prefixIcon:I.prefixIcon,suffixIcon:I.suffixIcon,loading:I.loading,disabled:I.disabled,onClick:I.onClick,closeOnClick:(S=I.closeOnClick)!=null?S:!0},`${I.label}-${P}`)})})]}),F("div",{className:"dialog-overlay",role:"presentation",onClick:u,children:F("div",k(x({className:b,role:"dialog","aria-modal":"true"},l),{children:F(Co.Provider,{value:{onClose:t,variant:c},children:B})}))})},Ro=r=>{var p=r,{title:e,icon:t,className:o="",children:a}=p,c=_(p,["title","icon","className","children"]);let{isUnderTablet:i}=G();return Le("div",k(x({className:`dialog__header ${o}`},c),{children:[t&&F("span",{className:"dialog__icon",children:t}),e&&F(R,{variant:i?"subtitle-p1":"heading-h6",children:e}),a]}))},So=a=>{var c=a,{className:e="",children:t}=c,o=_(c,["className","children"]);return F("div",k(x({className:`dialog__body ${e}`},o),{children:F("div",{className:"body-p2",children:t})}))},Bo=c=>{var r=c,{layout:e="horizontal",className:t="",children:o}=r,a=_(r,["layout","className","children"]);let p=e==="vertical"?"dialog__actions--vertical":"dialog__actions--horizontal";return F("div",k(x({className:`dialog__footer dialog__footer--${e} ${t}`},a),{children:F("div",{className:`dialog__actions ${p}`,children:o})}))},Ao=m=>{var h=m,{label:e,color:t,type:o,size:a,prefixIcon:c,suffixIcon:r,loading:p,disabled:i,onClick:n,closeOnClick:s=!1,style:v}=h,d=_(h,["label","color","type","size","prefixIcon","suffixIcon","loading","disabled","onClick","closeOnClick","style"]);var w;let l=V.useContext(Co),{isUnderTablet:f}=G(),g=(w=l==null?void 0:l.variant)!=null?w:"confirm",y=g==="confirm"?"100%":"auto",C=g==="alert"?f?"small":"medium":"large",b=g==="alert"?"outline":"solid",u="neutral",B=I=>{var P;n==null||n(I),s&&((P=l==null?void 0:l.onClose)==null||P.call(l))};return F(De,x({label:e,size:a!=null?a:C,color:t!=null?t:u,type:o!=null?o:b,prefixIcon:c,suffixIcon:r,loading:p,disabled:i,onClick:B,style:x({width:y},v)},d))},it=Object.assign(To,{Header:Ro,Body:So,Footer:Bo,Button:Ao}),Do=V.createContext(void 0),lt=({children:e})=>{let[t,o]=V.useState([]),a=V.useCallback(n=>{o(s=>s.filter(v=>v.id!==n))},[]),c=V.useCallback(()=>{o([])},[]),r=V.useCallback(n=>{let s=n.id||`dialog-${Date.now()}-${Math.random()}`;return o(v=>[...v,k(x({},n),{id:s})]),s},[]),p=V.useCallback(n=>new Promise(s=>{var d,m;let v=`alert-${Date.now()}`;r(k(x({},n),{id:v,variant:(d=n.variant)!=null?d:"alert",buttons:[{label:(m=n.confirmLabel)!=null?m:"\uD655\uC778",color:"primary",type:"solid",closeOnClick:!0,onClick:async()=>{var h;await((h=n.onConfirm)==null?void 0:h.call(n)),s()}}],onClose:()=>{s(),a(v)}}))}),[r,a]),i=V.useCallback(n=>new Promise(s=>{var d,m,h;let v=`confirm-${Date.now()}`;r(k(x({},n),{id:v,variant:(d=n.variant)!=null?d:"confirm",buttons:[{label:(m=n.cancelLabel)!=null?m:"\uCDE8\uC18C",color:"neutral",type:"outline",closeOnClick:!0,onClick:async()=>{var l;await((l=n.onCancel)==null?void 0:l.call(n)),s(!1)}},{label:(h=n.confirmLabel)!=null?h:"\uD655\uC778",color:"primary",type:"solid",closeOnClick:!0,onClick:async()=>{var l;await((l=n.onConfirm)==null?void 0:l.call(n)),s(!0)}}],onClose:()=>{s(!1),a(v)}}))}),[r,a]);return Le(Do.Provider,{value:{open:r,close:a,closeAll:c,alert:p,confirm:i},children:[e,nt(F(Po,{children:t.map(n=>Le(To,{open:!0,onClose:()=>{var s;(s=n.onClose)==null||s.call(n),a(n.id)},variant:n.variant,align:n.align,closeOnOverlayClick:n.closeOnOverlayClick,closeOnEsc:n.closeOnEsc,title:n.title,description:n.description,icon:n.icon,actionItems:n.buttons,content:n.content,children:[n.content," "]},n.id))}),document.body)]})};function ct(){let e=V.useContext(Do);if(!e)throw new Error("useDialog must be used within a DialogProvider");return e}import{useState as Lo,useId as ut}from"react";import*as ue from"react";function st(c,a){var r=c,{title:e,titleId:t}=r,o=_(r,["title","titleId"]);return ue.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},o),e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}var pt=ue.forwardRef(st),Te=pt;import*as me from"react";function dt(c,a){var r=c,{title:e,titleId:t}=r,o=_(r,["title","titleId"]);return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},o),e?me.createElement("title",{id:t},e):null,me.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z",clipRule:"evenodd"}))}var ft=me.forwardRef(dt),Ye=ft;import{Fragment as Mo,jsx as $,jsxs as oe}from"react/jsx-runtime";var mt=C=>{var b=C,{required:e=!1,size:t,error:o=!1,description:a,maxLength:c,prefixIcon:r,suffixIcon:p,suffixUnit:i,title:n,accentIcon:s=!0,className:v="",id:d,value:m,defaultValue:h,onChange:l,onFocus:f,onBlur:g}=b,y=_(b,["required","size","error","description","maxLength","prefixIcon","suffixIcon","suffixUnit","title","accentIcon","className","id","value","defaultValue","onChange","onFocus","onBlur"]);let{isUnderTablet:u}=G(),B=ut(),w=d||`textinput-${B}`,[I,P]=Lo(!1),M=((H,Z)=>H==="medium"?"pc":H==="small"?"mo":H!=null?H:Z?"mo":"pc")(t,u),D=m!==void 0,[T,A]=Lo(h!=null?h:""),L=D?m:T,z=o?"error":"default",E=c?`${String(L).length}/${c}`:void 0,N=!!E,[q,ce]=typeof E=="string"&&E.includes("/")?E.split("/"):[E,void 0],_e=typeof s=="boolean"?s?$(Te,{className:"help-text__icon-svg"}):null:s,we=o?"error":"inform",ke=H=>{P(!0),f==null||f(H)},He=H=>{P(!1),g==null||g(H)},Be=H=>{let Z=H.target.value;c!=null&&Z.length>c&&(Z=Z.slice(0,c),H.target.value=Z),D||A(Z),l==null||l(H)},Fe=["text-input",`text-input--${M}`,`text-input--${z}`,I&&"text-input--focused",v].filter(Boolean).join(" ");return oe("div",{className:"text-input-wrapper",children:[n&&oe("label",{htmlFor:w,className:"flex items-center gap-1",children:[$(R,{variant:"body-p3",children:n}),e&&$("span",{className:"text-input__required",children:" *"})]}),$("div",{className:`text-input-shell text-input-shell--${z} text-input-shell--${M}`,children:oe("div",{className:`text-input-container text-input-container--${M}`,children:[r&&$("span",{className:"text-input__left-section",children:r}),$("input",k(x({},y),{id:w,className:Fe,value:L,onChange:Be,onFocus:ke,onBlur:He,maxLength:c,"aria-invalid":o,"aria-describedby":a||E?`${w}-description`:void 0})),(p||i)&&oe("div",{className:"text-input__right-section",children:[p&&$(Mo,{children:p}),i&&$(Mo,{children:i})]})]})}),(a||N)&&$("div",{id:`${w}-description`,className:"text-input__footer",children:oe("div",{className:`help-text-wrapper ${a&&N?"help-text-wrapper--between":a?"help-text-wrapper--start":"help-text-wrapper--end"}`,children:[a&&oe("span",{className:`help-text help-text--${we}`,children:[_e&&$("span",{className:"help-text__icon",children:_e}),typeof a=="string"||typeof a=="number"?$(R,{variant:"body-p3",className:"help-text__content",children:a}):$("span",{className:"help-text__content",children:a})]}),N&&oe("span",{className:`help-text__count help-text__count--${we}`,children:[q&&$(R,{variant:"body-p3",className:"help-text__count-number",children:q}),ce&&oe(R,{variant:"body-p3",className:"help-text__count-total",children:["/",ce]})]})]})})]})};import Re from"react";import{jsx as ge,jsxs as Qe}from"react/jsx-runtime";var No=Re.forwardRef((m,d)=>{var h=m,{size:e="medium",label:t,labelPosition:o="end",description:a,checked:c,defaultChecked:r=!1,onChange:p,disabled:i,className:n="",id:s}=h,v=_(h,["size","label","labelPosition","description","checked","defaultChecked","onChange","disabled","className","id"]);let l=Re.useRef(null),f=Re.useMemo(()=>typeof d=="function"?S=>{l.current=S,d(S)}:d?S=>{l.current=S,d&&(d.current=S)}:S=>{l.current=S},[d]),[g,y]=Re.useState(r),C=c!==void 0,b=C?c:g,u=S=>{i||(C||y(S.target.checked),p==null||p(S))},B=Re.useId(),w=s||B,I=a?`${w}-description`:void 0,P=["toggle",`toggle--${e}`,o==="start"&&"toggle--label-start",i&&"toggle--disabled",n].filter(Boolean).join(" ");return Qe("div",{className:P,children:[Qe("div",{className:"toggle__wrapper",children:[ge("input",x({ref:f,type:"checkbox",id:w,checked:b,defaultChecked:r,onChange:u,disabled:i,"aria-describedby":I,className:"toggle__input",role:"switch","aria-checked":b},v)),Qe("label",{htmlFor:w,className:"toggle__label-wrapper",children:[o==="start"&&t&&ge(R,{variant:e==="medium"?"body-p2":"body-p3",as:"span",children:t}),ge("span",{className:"toggle__switch",children:ge("span",{className:"toggle__thumb"})}),o==="end"&&t&&ge(R,{variant:e==="medium"?"body-p2":"body-p3",as:"span",children:t})]})]}),a&&ge("div",{id:I,className:"toggle__description",children:a})]})});No.displayName="Toggle";import W from"react";import{RiCheckboxBlankLine as gt,RiCheckboxFill as xt,RiCheckboxIndeterminateFill as ht}from"@remixicon/react";import{jsx as X,jsxs as Me}from"react/jsx-runtime";var Ne=W.forwardRef((h,m)=>{var l=h,{label:e,labelProps:t,description:o,value:a,checked:c,defaultChecked:r=!1,onChange:p,disabled:i,indeterminate:n=!1,className:s="",id:v}=l,d=_(l,["label","labelProps","description","value","checked","defaultChecked","onChange","disabled","indeterminate","className","id"]);var T,A;let f=W.useRef(null),g=W.useMemo(()=>typeof m=="function"?L=>{f.current=L,m(L)}:m?L=>{f.current=L,m&&(m.current=L)}:L=>{f.current=L},[m]);W.useEffect(()=>{f.current&&(f.current.indeterminate=n)},[n]);let[y,C]=W.useState(r),b=c!==void 0,u=b?c:y,B=L=>{i||(b||C(L.target.checked),p==null||p(L))},w=W.useId(),I=v||w,P=o?`${I}-description`:void 0,S=["checkbox",i&&"checkbox--disabled",s].filter(Boolean).join(" "),M=t!=null?t:{},D=["checkbox__label-text",M.className].filter(Boolean).join(" ");return Me("div",{className:S,children:[Me("div",{className:"checkbox__wrapper",children:[X("input",x({ref:g,type:"checkbox",id:I,checked:u,defaultChecked:r,onChange:B,disabled:i,value:a,"aria-describedby":P||void 0,className:"checkbox__input"},d)),Me("label",{htmlFor:I,className:"checkbox__label-wrapper",children:[X("span",{className:"checkbox__icon-wrapper","aria-hidden":"true",children:n?X(ht,{className:"checkbox__icon"}):u?X(xt,{className:"checkbox__icon"}):X(gt,{className:"checkbox__icon"})}),e&&X(R,k(x({variant:(T=M.variant)!=null?T:"body-p2",as:(A=M.as)!=null?A:"span"},M),{className:D,children:e}))]})]}),o&&X("div",{id:P,className:"checkbox__description",children:o})]})});Ne.displayName="Checkbox";var Ke=({label:e,labelProps:t,description:o,descriptionProps:a,multiple:c=!0,value:r,defaultValue:p=[],onChange:i,disabled:n,children:s,className:v=""})=>{var P,S,M,D;let[d,m]=W.useState(p),h=r!==void 0,l=h?r:d,f=(T,A)=>{let L=c?A?[...l,T]:l.filter(z=>z!==T):A?[T]:[];h||m(L),i==null||i(L)},g=W.useId(),y=o?`${g}-description`:void 0,C=t!=null?t:{},b=a!=null?a:{},u=["checkbox-group__label",C.className].filter(Boolean).join(" "),B=["checkbox-group__description",b.className].filter(Boolean).join(" "),w=["checkbox-group",n&&"checkbox-group--disabled",v].filter(Boolean).join(" "),I=W.Children.map(s,T=>{if(W.isValidElement(T)&&T.type===Ne){let A=T.props.value;if(A===void 0)return console.warn("Checkbox.Group \uB0B4\uBD80\uC758 Checkbox\uB294 value prop\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."),T;let L=l.includes(A);return W.cloneElement(T,{checked:L,onChange:z=>{var E,N;f(A,z.target.checked),(N=(E=T.props).onChange)==null||N.call(E,z)},disabled:n||T.props.disabled})}return T});return Me("div",{className:w,children:[e&&X(R,k(x({variant:(P=C.variant)!=null?P:"subtitle-p2",as:(S=C.as)!=null?S:"div"},C),{className:u,children:e})),o&&X(R,k(x({id:y,variant:(M=b.variant)!=null?M:"body-p3",as:(D=b.as)!=null?D:"div"},b),{className:B,children:o})),X("div",{className:"checkbox-group__content",children:I})]})};Ke.displayName="CheckboxGroup";Ne.Group=Ke;import Je from"react";function bt(e){let{options:t,defaultValue:o=[],value:a,onChange:c}=e,[r,p]=Je.useState(o),i=a!==void 0,n=i?a:r,s=Je.useCallback(f=>{i||p(f),c==null||c(f)},[i,c]),v=n.length===t.length,d=n.length>0,m=v,h=d&&!v,l=Je.useCallback(f=>{s(f.target.checked?[...t]:[])},[t,s]);return{value:n,onChange:s,selectAllChecked:m,selectAllIndeterminate:h,handleSelectAll:l,selectAllProps:{checked:m,indeterminate:h,onChange:l}}}import te from"react";import{RiCheckboxCircleFill as vt}from"@remixicon/react";import{jsx as ne,jsxs as Eo}from"react/jsx-runtime";var eo=te.forwardRef((e,t)=>{let M=e,{items:o,size:a,value:c,defaultValue:r,onChange:p,multiple:i,itemTextProps:n,suffixIcon:s,className:v="",id:d}=M,m=_(M,["items","size","value","defaultValue","onChange","multiple","itemTextProps","suffixIcon","className","id"]),h=Object.prototype.hasOwnProperty.call(e,"value"),[l,f]=te.useState(r),g=h?c:l,y=!!i,{isUnderTablet:C}=G(),b=a!=null?a:C?"small":"medium",u=te.useId(),B=d||`select-menu-${u}`,w=D=>{let T;if(y){let A=Array.isArray(g)?g:g?[g]:[];T=A.includes(D)?A.filter(L=>L!==D):[...A,D]}else T=g===D?void 0:D;h||f(T),p==null||p(T)},I=["select-menu",`select-menu--${b}`,v].filter(Boolean).join(" "),P=n!=null?n:{},S=b==="medium"?"body-p2":"body-p3";return ne("div",k(x({ref:t,id:B,className:I,role:"listbox"},m),{children:o.map((D,T)=>{var N,q;let A=Array.isArray(g)?g.includes(D.value):g===D.value,L=`${B}-option-${D.value}`,z=ne(vt,{className:"select-menu__suffix-icon"}),E=typeof s=="function"?s(D):s!=null?s:z;return Eo("button",{id:L,type:"button",role:"option","aria-selected":A,disabled:D.disabled,className:"select-menu__item",onClick:()=>!D.disabled&&w(D.value),children:[ne(R,k(x({variant:(N=P.variant)!=null?N:S,as:(q=P.as)!=null?q:"span"},P),{className:["select-menu__item-text",P.className].filter(Boolean).join(" "),children:D.label})),A&&ne("span",{className:"select-menu__suffix",children:E})]},D.value)})}))});eo.displayName="SelectMenu";var Ee=p=>{var i=p,{children:e,open:t,defaultOpen:o=!1,onOpenChange:a,menuContainerStyle:c}=i,r=_(i,["children","open","defaultOpen","onOpenChange","menuContainerStyle"]);let[n,s]=te.useState(o),v=t!==void 0,d=v?t:n,m=te.useRef(null),h=g=>{v||s(g),a==null||a(g)};te.useEffect(()=>{if(!d)return;let g=y=>{m.current&&(m.current.contains(y.target)||h(!1))};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[d,h]);let l=()=>{h(!d)},f=e;if(te.isValidElement(e)){let g=e.props.onClick;f=te.cloneElement(e,k(x({},e.props),{onClick:y=>{g==null||g(y),l()},"aria-haspopup":"listbox","aria-expanded":d}))}else f=ne("button",{type:"button",onClick:l,"aria-haspopup":"listbox","aria-expanded":d,children:e});return Eo("div",{ref:m,style:{position:"relative",display:"inline-flex"},children:[f,d&&ne("div",{style:x({position:"absolute",top:"100%",left:0,marginTop:4,zIndex:1e3},c),children:ne(eo,x({},r))})]})};Ee.displayName="SelectMenuOverlay";import oo from"react";import{jsx as U,jsxs as Se}from"react/jsx-runtime";var zo=oo.forwardRef((P,I)=>{var S=P,{type:e="outlined",title:t,required:o=!1,value:a,placeholder:c="\uC120\uD0DD\uD558\uC138\uC694",disabled:r=!1,error:p=!1,description:i,accentIcon:n=!0,onClick:s,onClear:v,icon:d,className:m="",id:h,items:l,defaultValue:f,onChange:g,multiple:y,wrapperClassName:C="",wrapperStyle:b,width:u,size:B}=S,w=_(S,["type","title","required","value","placeholder","disabled","error","description","accentIcon","onClick","onClear","icon","className","id","items","defaultValue","onChange","multiple","wrapperClassName","wrapperStyle","width","size"]);let{isUnderTablet:M}=G(),D=oo.useId(),T=h||`select-header-${D}`,A=i?`${T}-description`:void 0,L=B==="medium"?"web-tab":B==="small"||M?"mo":"web-tab",[z,E]=oo.useState(f),N=l!=null&&l.length>0,q=a!==void 0,ce;N&&(ce=q?a===null?void 0:a:z);let _e=K=>{q||E(K),g==null||g(K)},we=(()=>{var K;if(N){let re=ce;if(re==null||Array.isArray(re)&&re.length===0)return null;if(Array.isArray(re))return re.map(Ae=>{var bo,vo;return(vo=(bo=l.find($o=>$o.value===Ae))==null?void 0:bo.label)!=null?vo:Ae}).filter(Boolean).join(", ");let ho=(K=l.find(Ae=>Ae.value===re))==null?void 0:K.label;return ho!=null?String(ho):re}return a==null?null:Array.isArray(a)?a.join(", "):typeof a=="string"?a:null})(),ke=!!we,He=ke&&!r&&(N?!!g:!!v),Be=typeof n=="boolean"?n?p?U(Te,{className:"help-text__icon-svg"}):U(Ye,{className:"help-text__icon-svg"}):null:n,Fe=p?"error":"inform",H=["select-header",`select-header--${L}`,`select-header--${e}`,r&&"select-header--disabled",p&&"select-header--error",ke&&"select-header--has-value",u&&"select-header--full",m].filter(Boolean).join(" "),Z=K=>{K.stopPropagation(),N?_e(void 0):v==null||v(K)},xo=Se("button",k(x({ref:I,type:"button",id:T,className:H,disabled:r,onClick:s,"aria-haspopup":"listbox","aria-describedby":A},w),{children:[U("span",{className:"select-header__content",children:ke?U(R,{as:"span",variant:"body-p2",children:we}):U(R,{as:"span",variant:"body-p2",children:c})}),Se("span",{className:"select-header__actions",children:[He&&U("button",{type:"button",className:"select-header__clear",onClick:Z,"aria-label":"\uAC12 \uC9C0\uC6B0\uAE30",children:U(Xe,{className:"select-header__clear-icon"})}),U("span",{className:"select-header__icon",children:d||U(qe,{className:"select-header__chevron"})})]})]}));return Se("div",{className:`select-header-wrapper ${C}`,style:x(x({},b),u?{width:u}:{}),children:[(t||o)&&Se("label",{htmlFor:T,className:"select-header__label",children:[t&&U(R,{as:"span",variant:"subtitle-p3",children:t}),o&&U(R,{as:"span",variant:"subtitle-p3",children:"*"})]}),N?U(Ee,{items:l,value:ce,multiple:y,onChange:_e,menuContainerStyle:{width:"100%"},children:xo}):xo,i&&U("div",{id:A,className:"select-header__footer",children:Se("span",{className:`help-text help-text--${Fe}`,children:[Be&&U("span",{className:"help-text__icon",children:Be}),U(R,{as:"span",variant:"body-p3",children:i})]})})]})});zo.displayName="SelectHeader";import to from"react";import{RiArrowLeftSLine as ao,RiArrowRightSLine as ro,RiMoreLine as yt}from"@remixicon/react";import{Fragment as Oo,jsx as j,jsxs as no}from"react/jsx-runtime";var xe=(e,t)=>{let o=t-e+1;return Array.from({length:o},(a,c)=>e+c)},It=({totalPages:e,currentPage:t,siblingCount:o,showEdgeButtons:a,showPrevNext:c})=>{if(e<=0)return[];let r=Math.min(Math.max(t,1),e),p=[],i=d=>p.push(d),n=r===1,s=r===e;a&&i({type:"first",page:1,key:"first",disabled:n}),c&&i({type:"prev",page:Math.max(1,r-1),key:"prev",disabled:n});let v=o*2+5;if(e<=v)xe(1,e).forEach(d=>i({type:"page",page:d,key:`page-${d}`,selected:d===r}));else{let d=Math.max(r-o,2),m=Math.min(r+o,e-1),h=d>2,l=m<e-1;if(i({type:"page",page:1,key:"page-1",selected:r===1}),!h&&l){let f=3+2*o;xe(2,f).forEach(y=>i({type:"page",page:y,key:`page-dynamic-${y}-${r}`,selected:y===r})),i({type:"ellipsis",key:`ellipsis-right-${m}`}),i({type:"page",page:e,key:`page-${e}`,selected:r===e})}else if(h&&!l){i({type:"ellipsis",key:`ellipsis-left-${d}`});let f=3+2*o;xe(e-f+1,e-1).forEach(y=>i({type:"page",page:y,key:`page-dynamic-${y}-${r}`,selected:y===r})),i({type:"page",page:e,key:`page-${e}`,selected:r===e})}else h&&l?(i({type:"ellipsis",key:`ellipsis-left-${d}`}),xe(d,m).forEach(f=>i({type:"page",page:f,key:`page-dynamic-${f}-${r}`,selected:f===r})),i({type:"ellipsis",key:`ellipsis-right-${m}`}),i({type:"page",page:e,key:`page-${e}`,selected:r===e})):xe(1,e).forEach(f=>i({type:"page",page:f,key:`page-dynamic-${f}-${r}`,selected:f===r}))}return c&&i({type:"next",page:Math.min(e,r+1),key:"next",disabled:s}),a&&i({type:"last",page:e,key:"last",disabled:s}),p},_t=({totalPages:e,currentPage:t})=>{if(e<=0)return[];let o=Math.min(Math.max(t,1),e),a=[],c=i=>a.push(i),r=o===1,p=o===e;return c({type:"prev",page:Math.max(1,o-1),key:"prev",disabled:r}),xe(1,e).forEach(i=>c({type:"page",page:i,key:`page-${i}`,selected:i===o})),c({type:"next",page:Math.min(e,o+1),key:"next",disabled:p}),a},Ho=p=>{var i=p,{totalPages:e,currentPage:t,onChange:o,type:a="basic",className:c=""}=i,r=_(i,["totalPages","currentPage","onChange","type","className"]);let n="web-tab",s=a!=null?a:"basic",v=to.useMemo(()=>s==="basic"?_t({totalPages:e,currentPage:t}):It({totalPages:e,currentPage:t,siblingCount:1,showEdgeButtons:!1,showPrevNext:!0}),[e,t,s]),d=to.useCallback(l=>{l.disabled||l.page&&(o==null||o(l.page))},[o]),m=to.useCallback(l=>{l==="ellipsis-left"?o==null||o(1):l==="ellipsis-right"&&(o==null||o(e))},[o,e]),h=["pagination",`pagination--${n}`,c].filter(Boolean).join(" ");return j("nav",k(x({className:h,"aria-label":"\uD398\uC774\uC9C0\uB124\uC774\uC158"},r),{children:j("ul",{className:"pagination__list",children:v.map(l=>{let f=l.type==="page",g=!!l.selected,y=!!l.disabled,C=["pagination__button",`pagination__button--${l.type}`,f&&"pagination__button--page",g&&"pagination__button--selected",y&&"pagination__button--disabled"].filter(Boolean).join(" "),b=l.type==="page"?String(l.page):l.type==="prev"?"\uC774\uC804 \uD398\uC774\uC9C0":l.type==="next"?"\uB2E4\uC74C \uD398\uC774\uC9C0":l.type==="first"?"\uCCAB \uD398\uC774\uC9C0":l.type==="last"?"\uB9C8\uC9C0\uB9C9 \uD398\uC774\uC9C0":"",u=l.type==="page"?`${l.page}\uD398\uC774\uC9C0`:b;return l.type==="ellipsis"?j("li",{className:"pagination__item pagination__item--ellipsis",children:j("button",{type:"button",className:"pagination__button pagination__button--ellipsis",onClick:()=>m(l.key),"aria-label":l.key==="ellipsis-left"?"\uCCAB \uD398\uC774\uC9C0\uB85C \uC774\uB3D9":"\uB9C8\uC9C0\uB9C9 \uD398\uC774\uC9C0\uB85C \uC774\uB3D9",children:j(yt,{})})},l.key):j("li",{className:"pagination__item",children:no("button",{type:"button",className:C,onClick:()=>d(l),disabled:y,"aria-label":u,"aria-current":f&&g?"page":void 0,children:[l.type==="prev"&&j(ao,{className:"pagination__icon"}),l.type==="next"&&j(ro,{className:"pagination__icon"}),l.type==="first"&&no(Oo,{children:[j(ao,{className:"pagination__icon pagination__icon--double"}),j(ao,{className:"pagination__icon pagination__icon--double"})]}),l.type==="last"&&no(Oo,{children:[j(ro,{className:"pagination__icon pagination__icon--double"}),j(ro,{className:"pagination__icon pagination__icon--double"})]}),l.type==="page"&&j(R,{as:"span",variant:n==="web-tab"?"body-p2":"body-p3",children:l.page})]})},l.key)})})}))};Ho.displayName="Pagination";import Q from"react";import{RiCircleLine as wt,RiRadioButtonLine as kt}from"@remixicon/react";import{jsx as Y,jsxs as ze}from"react/jsx-runtime";var Oe=Q.forwardRef((l,h)=>{var f=l,{label:e,labelProps:t,description:o,value:a,checked:c,defaultChecked:r=!1,onChange:p,disabled:i,className:n="",id:s,name:v,onClick:d}=f,m=_(f,["label","labelProps","description","value","checked","defaultChecked","onChange","disabled","className","id","name","onClick"]);var z,E;let[g,y]=Q.useState(r),C=c!==void 0,b=C?c:g,u=N=>{i||(C||y(N.target.checked),p==null||p(N))},B=N=>{if(b&&!i){N.preventDefault(),C||y(!1);let q=k(x({},N),{target:k(x({},N.target),{checked:!1})});p==null||p(q)}d==null||d(N)},w=Q.useId(),I=s||w,P=o?`${I}-description`:void 0,[S,M]=Q.useState(!1),D=["radio-button",i&&"radio-button--disabled",n].filter(Boolean).join(" "),T=["radio-button__label-wrapper",S&&!b&&!i&&"radio-button__label-wrapper--hovered"].filter(Boolean).join(" "),A=t!=null?t:{},L=["radio-button__label-text",A.className].filter(Boolean).join(" ");return ze("div",{className:D,"data-checked":b,children:[ze("div",{className:"radio-button__wrapper",children:[Y("input",x({ref:h,type:"radio",id:I,name:v,checked:b,defaultChecked:r,onChange:u,onClick:B,disabled:i,value:a,"aria-describedby":P||void 0,className:"radio-button__input"},m)),ze("label",{htmlFor:I,className:T,onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:[Y("span",{className:"radio-button__icon-wrapper","aria-hidden":"true",children:b?Y(kt,{className:"radio-button__icon"}):Y(wt,{className:"radio-button__icon"})}),e&&Y(R,k(x({variant:(z=A.variant)!=null?z:"body-p2",as:(E=A.as)!=null?E:"span"},A),{className:L,children:e}))]})]}),o&&Y("div",{id:P,className:"radio-button__description",children:o})]})});Oe.displayName="RadioButton";var io=({label:e,labelProps:t,description:o,descriptionProps:a,value:c,defaultValue:r,onChange:p,disabled:i,name:n,children:s,className:v=""})=>{var P,S,M,D;let[d,m]=Q.useState(r),h=c!==void 0,l=h?c:d,f=Q.useId(),g=n||`radio-group-${f}`,y=o?`${f}-description`:void 0,C=t!=null?t:{},b=a!=null?a:{},u=["radio-button-group__label",C.className].filter(Boolean).join(" "),B=["radio-button-group__description",b.className].filter(Boolean).join(" "),w=["radio-button-group",i&&"radio-button-group--disabled",v].filter(Boolean).join(" "),I=Q.Children.map(s,T=>{if(Q.isValidElement(T)&&T.type===Oe){let A=T.props.value;if(A===void 0)return console.warn("RadioButton.Group \uB0B4\uBD80\uC758 RadioButton\uC740 value prop\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."),T;let L=l===A;return Q.cloneElement(T,{name:g,checked:L,onChange:z=>{var E,N;z.target.checked?(h||m(A),p==null||p(A)):(h||m(void 0),p==null||p(void 0)),(N=(E=T.props).onChange)==null||N.call(E,z)},disabled:i||T.props.disabled})}return T});return ze("div",{className:w,role:"radiogroup","aria-describedby":y||void 0,children:[e&&Y(R,k(x({variant:(P=C.variant)!=null?P:"subtitle-p2",as:(S=C.as)!=null?S:"div"},C),{className:u,children:e})),o&&Y(R,k(x({id:y,variant:(M=b.variant)!=null?M:"body-p3",as:(D=b.as)!=null?D:"div"},b),{className:B,children:o})),Y("div",{className:"radio-button-group__content",children:I})]})};io.displayName="RadioButtonGroup";Oe.Group=io;import{jsx as lo,jsxs as Tt}from"react/jsx-runtime";var Ct=n=>{var s=n,{type:e="solid",size:t="medium",state:o="enabled",label:a,prefixIcon:c,suffixIcon:r,className:p=""}=s,i=_(s,["type","size","state","label","prefixIcon","suffixIcon","className"]);let v=e==="weak"?o:"enabled",d=["tag",`tag--${e}`,`tag--${t}`,`tag--${v}`,p].filter(Boolean).join(" ").trim(),m=t==="medium"?"body-p2":"body-p3";return Tt("span",k(x({},i),{className:d,children:[c&&lo("span",{className:"tag__prefix-icon",children:c}),lo(R,{variant:m,children:a}),r&&lo("span",{className:"tag__suffix-icon",children:r})]}))};import{useState as Rt,useRef as co,useEffect as St}from"react";import{jsx as ie,jsxs as so}from"react/jsx-runtime";var Bt=({label:e,type:t="word",prefixIcon:o,onClose:a,direction:c="top",withArrow:r=!0,opened:p,defaultOpened:i=!1,disabled:n=!1,width:s,offset:v=8,withinPortal:d=!0,openDelay:m=0,closeDelay:h=0,children:l,className:f=""})=>{let[g,y]=Rt(i),C=co(null),b=co(null),u=co(null),B=p!==void 0,w=B?p:g;St(()=>()=>{b.current&&clearTimeout(b.current),u.current&&clearTimeout(u.current)},[]);let I=()=>{!n&&!B&&(u.current&&(clearTimeout(u.current),u.current=null),m>0?b.current=setTimeout(()=>{y(!0)},m):y(!0))},P=()=>{!n&&!B&&(b.current&&(clearTimeout(b.current),b.current=null),h>0?u.current=setTimeout(()=>{y(!1)},h):y(!1))},S=()=>{!n&&!B&&(u.current&&(clearTimeout(u.current),u.current=null),m>0?b.current=setTimeout(()=>{y(!0)},m):y(!0))},M=()=>{!n&&!B&&(b.current&&(clearTimeout(b.current),b.current=null),h>0?u.current=setTimeout(()=>{y(!1)},h):y(!1))},D=A=>{A.stopPropagation(),a&&a(A),!n&&!B&&y(!1)},T=so("div",{className:`tooltip tooltip--${t} tooltip--${c} ${r?"tooltip--with-arrow":""} ${f}`,style:s?{width:typeof s=="number"?`${s}px`:s}:void 0,role:"tooltip",children:[so("div",{className:"tooltip__content",children:[o&&ie("div",{className:"tooltip__prefix-icon",children:o}),ie("div",{className:"tooltip__label",children:ie(R,{variant:"body-p3",children:e})}),a&&ie("button",{type:"button",className:"tooltip__close-button",onClick:D,"aria-label":"Close tooltip",children:ie("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ie("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),r&&ie("div",{className:`tooltip__arrow tooltip__arrow--${c.split("-")[0]}`})]});return so("div",{ref:C,className:"tooltip__wrapper",onMouseEnter:I,onMouseLeave:P,onFocus:S,onBlur:M,children:[l,w&&!n&&T]})};import le from"react";import{createPortal as Ot}from"react-dom";import*as he from"react";function At(c,a){var r=c,{title:e,titleId:t}=r,o=_(r,["title","titleId"]);return he.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},o),e?he.createElement("title",{id:t},e):null,he.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"}))}var Dt=he.forwardRef(At),po=Dt;import*as be from"react";function Pt(c,a){var r=c,{title:e,titleId:t}=r,o=_(r,["title","titleId"]);return be.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},o),e?be.createElement("title",{id:t},e):null,be.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}var Lt=be.forwardRef(Pt),fo=Lt;import*as ve from"react";function Mt(c,a){var r=c,{title:e,titleId:t}=r,o=_(r,["title","titleId"]);return ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},o),e?ve.createElement("title",{id:t},e):null,ve.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}var Nt=ve.forwardRef(Mt),uo=Nt;import*as ye from"react";function Et(c,a){var r=c,{title:e,titleId:t}=r,o=_(r,["title","titleId"]);return ye.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},o),e?ye.createElement("title",{id:t},e):null,ye.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z",clipRule:"evenodd"}))}var zt=ye.forwardRef(Et),mo=zt;import{Fragment as Gt,jsx as ae,jsxs as go}from"react/jsx-runtime";var Fo=e=>{let w=e,{size:t,state:o="default",label:a,icon:c,position:r="top",horizontalAlign:p="center",topOffset:i,bottomOffset:n,horizontalPadding:s,className:v="",style:d}=w,m=_(w,["size","state","label","icon","position","horizontalAlign","topOffset","bottomOffset","horizontalPadding","className","style"]),{isUnderTablet:h}=G(),l=t!=null?t:h?"small":"medium",f=["toast",`toast--${l}`,`toast--${o}`,v].filter(Boolean).join(" "),g=l==="medium"?60:20,y=l==="medium"?60:20,C=16,b=(d==null?void 0:d.position)!==void 0,u=x(b?{}:{position:"fixed",zIndex:1e3},d);if(!b)if(r==="top"?(u.top=`${i!=null?i:g}px`,u.bottom="auto"):(u.bottom=`${n!=null?n:y}px`,u.top="auto"),l==="small"){let I=s!=null?s:C;u.left=`${I}px`,u.right=`${I}px`,u.transform="none",u.width=`calc(100% - ${I*2}px)`}else p==="center"?(u.left="50%",u.right="auto",u.transform="translateX(-50%)",u.width="auto",u.minWidth="540px",u.maxWidth="760px"):p==="left"?(u.left="16px",u.right="auto",u.transform="none",u.width="auto",u.minWidth="540px",u.maxWidth="760px"):(u.right="16px",u.left="auto",u.transform="none",u.width="auto",u.minWidth="540px",u.maxWidth="760px");let B=!c&&o!=="default"?go("div",{className:"toast__icon",children:[o==="error"&&ae(mo,{style:{width:"100%",height:"100%"}}),o==="warning"&&ae(fo,{style:{width:"100%",height:"100%"}}),o==="success"&&ae(po,{style:{width:"100%",height:"100%"}}),o==="information"&&ae(uo,{style:{width:"100%",height:"100%"}})]}):c?ae("div",{className:"toast__icon",children:c}):null;return go("div",k(x({className:f,style:u},m),{children:[B,ae(R,{variant:l==="medium"?"heading-h6":"subtitle-p2",children:a})]}))},Ht=250,Uo=le.createContext(void 0),Ft=({children:e})=>{let[t,o]=le.useState([]),[a,c]=le.useState(!1);le.useEffect(()=>{c(!0)},[]);let r=le.useCallback((i,n={})=>{let s=`toast-${Date.now()}-${Math.random()}`,{state:v="default",size:d,duration:m=3e3,position:h="top",horizontalAlign:l="center",topOffset:f,bottomOffset:g,horizontalPadding:y}=n,C=k(x({id:s,message:i,state:v},d!==void 0&&{size:d}),{duration:m,position:h,horizontalAlign:l,topOffset:f,bottomOffset:g,horizontalPadding:y});o(b=>[...b,C]),m>0&&setTimeout(()=>{o(b=>b.map(u=>u.id===s?k(x({},u),{exiting:!0}):u)),setTimeout(()=>{o(b=>b.filter(u=>u.id!==s))},Ht)},m)},[]),p=le.useCallback(i=>{o(n=>n.filter(s=>s.id!==i))},[]);return go(Uo.Provider,{value:{showToast:r,hideToast:p},children:[e,a&&Ot(ae(Gt,{children:t.map(i=>ae(Fo,x({state:i.state,size:i.size,label:i.message,position:i.position,horizontalAlign:i.horizontalAlign,topOffset:i.topOffset,bottomOffset:i.bottomOffset,horizontalPadding:i.horizontalPadding},i.exiting&&{className:"toast--exiting"}),i.id))}),document.body)]})};function Ut(){let e=le.useContext(Uo);if(!e)throw new Error("useToast must be used within a ToastProvider");return e}import{jsx as O,jsxs as jt}from"react/jsx-runtime";var Ie=(e,t)=>`/logo/${e}-${t}.svg`,Go=({className:e})=>O("img",{src:"/logo/symbol-white.svg",alt:"Lion Icon",className:e}),$t=p=>{var i=p,{type:e="likelion-kr",variant:t="primary",size:o="medium",service:a="likelion",className:c=""}=i,r=_(i,["type","variant","size","service","className"]);let n=["logo",`logo--${e}`,`logo--${t}`,`logo--${o}`,c].filter(Boolean).join(" ");if(e==="likelion-eng")return O("div",k(x({className:n},r),{children:O("img",{src:Ie("likelion-eng",t),alt:"\uBA4B\uC7C1\uC774\uC0AC\uC790\uCC98\uB7FC_ENG",style:{width:"100%",height:"100%",display:"block"}})}));if(e==="likelion-kr")return O("div",k(x({className:n},r),{children:O("img",{src:Ie("likelion-kr",t),alt:"\uBA4B\uC7C1\uC774\uC0AC\uC790\uCC98\uB7FC_KR",style:{width:"100%",height:"100%",display:"block"}})}));if(e==="bootcamp")return O("div",k(x({className:n},r),{children:O("img",{src:Ie("bootcamp",t),alt:"\uBA4B\uC0AC \uBD80\uD2B8\uCEA0\uD504",style:{width:"100%",height:"100%",display:"block"}})}));let s=()=>null;if(e==="symbol")return O("div",k(x({className:n},r),{children:O("img",{src:Ie("symbol",t),alt:"\uC2EC\uBCFC",style:{width:"100%",height:"100%",display:"block"}})}));if(e==="favicon")return O("div",k(x({className:n},r),{children:O("div",{className:"logo__favicon-container",children:O("div",{className:"logo__icon logo__icon--white",children:O(Go,{})})})}));if(e==="og-image"){let d=a==="likelion"?"\uBA4B\uC7C1\uC774\uC0AC\uC790\uCC98\uB7FC":"\uBA4B\uC0AC \uBD80\uD2B8\uCEA0\uD504",m=Ie(a==="likelion"?"likelion-kr":"bootcamp","white");return O("div",k(x({className:n},r),{children:O("div",{className:"logo__og-container",children:O("img",{src:m,alt:d,style:{width:"auto",height:"37.8px",display:"block"}})})}))}let v=s();return jt("div",k(x({className:n},r),{children:[O("div",{className:"logo__icon",children:O(Go,{})}),v&&O("span",{className:"logo__text",children:v})]}))};var ol={mobile:{min:375,max:743},tablet:{min:744,max:1279},desktop:{min:1280}},tl={mo:"375px",tb:"744px",pc:"1280px"},al={mobile:"(min-width: 375px) and (max-width: 743px)",tablet:"(min-width: 744px) and (max-width: 1279px)",desktop:"(min-width: 1280px)",underTablet:"(max-width: 743px)"},rl={mobile:{margin:16,column:4,gutter:16},tablet:{margin:24,column:8,gutter:24},desktop:{margin:24,column:12,gutter:24}};export{De as ActionButton,ol as BREAKPOINTS,Ge as Badge,rt as BreakpointProvider,De as Button,Ne as Checkbox,Ke as CheckboxGroup,wo as Chip,Ze as ChipGroup,it as Dialog,lt as DialogProvider,Vo as IconButton,rl as LAYOUT_SYSTEM,$t as Logo,al as MEDIA_QUERIES,Ho as Pagination,Oe as RadioButton,io as RadioButtonGroup,zo as SelectHeader,eo as SelectMenu,Ee as SelectMenuOverlay,tl as TAILWIND_SCREENS,je as Tab,Ve as TabGroup,Ct as Tag,R as Text,mt as TextInput,Fo as Toast,Ft as ToastProvider,No as Toggle,Bt as Tooltip,G as useBreakpoint,bt as useCheckboxGroup,ct as useDialog,Ce as useMediaQuery,Ut as useToast};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|