@pop-ui/core 0.0.18 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.umd.cjs CHANGED
@@ -1 +1 @@
1
- (function(a,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime"),require("@mantine/core"),require("react"),require("dayjs/locale/ko"),require("@mantine/dates"),require("@mantine/dropzone")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@mantine/core","react","dayjs/locale/ko","@mantine/dates","@mantine/dropzone"],t):(a=typeof globalThis<"u"?globalThis:a||self,t(a.Core={},a.jsxRuntime,a.core,a.React,null,a.dates,a.dropzone))})(this,function(a,t,d,p,yt,T,E){"use strict";const D={baseButton:"styles-module__baseButton___unrW0","baseButton--sizeLg":"styles-module__baseButton--sizeLg___bPUjP","baseButton--sizeMd":"styles-module__baseButton--sizeMd___--uGZ","baseButton--sizeSm":"styles-module__baseButton--sizeSm___tHRyb","baseButton--primary":"styles-module__baseButton--primary___s0JFt","baseButton--primaryLine":"styles-module__baseButton--primaryLine___fVpnP","baseButton--basic":"styles-module__baseButton--basic___9nyM-","baseButton--danger":"styles-module__baseButton--danger___tfxaF","baseButton--setting":"styles-module__baseButton--setting___LDz2x","baseButton--warning":"styles-module__baseButton--warning___hKAAj"},S="#ffffff",Q={primary:S,primaryLine:"#0fd3d8",basic:"#4a4a4a",danger:S,setting:S,warning:S};function U({children:e,size:o="md",styleType:s="primary",isLoading:l=!1,disabled:_=!1,...r}){const i=p.useMemo(()=>{const x={lg:"baseButton--sizeLg",md:"baseButton--sizeMd",sm:"baseButton--sizeSm"},g={primary:"baseButton--primary",primaryLine:"baseButton--primaryLine",basic:"baseButton--basic",danger:"baseButton--danger",setting:"baseButton--setting",warning:"baseButton--warning"};return`${D.baseButton} ${D[x[o]]} ${D[g[s]]}`},[o,s]),c=Q[s],n=p.useMemo(()=>{switch(o){case"lg":return 18;case"sm":return 14;case"md":default:return 16}},[o]);return t.jsx(d.Button,{type:"button",className:i,disabled:_||l,...r,children:l?t.jsx(d.Loader,{color:c,size:n}):e})}const Y="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.0877%207.65632L7.97702%207.92086L7.90164%208.27125L8.31695%208.34664C8.58707%208.41155%208.64081%208.50857%208.58218%208.77869L7.90164%2011.9734C7.72365%2012.7991%207.99936%2013.1879%208.6464%2013.1879C9.14895%2013.1879%209.73107%2012.9562%209.99561%2012.6372L10.0766%2012.254C9.89301%2012.4159%209.62288%2012.4808%209.4449%2012.4808C9.19153%2012.4808%209.10009%2012.3028%209.16431%2011.9894L10.0877%207.65632ZM10.1513%205.73336C10.1513%205.97772%2010.0542%206.21206%209.88141%206.38485C9.70862%206.55764%209.47427%206.65471%209.22992%206.65471C8.98556%206.65471%208.75121%206.55764%208.57843%206.38485C8.40564%206.21206%208.30857%205.97772%208.30857%205.73336C8.30857%205.489%208.40564%205.25465%208.57843%205.08187C8.75121%204.90908%208.98556%204.81201%209.22992%204.81201C9.47427%204.81201%209.70862%204.90908%209.88141%205.08187C10.0542%205.25465%2010.1513%205.489%2010.1513%205.73336Z'%20fill='%2353B1FD'/%3e%3ccircle%20cx='9'%20cy='9'%20r='6.1875'%20stroke='%2353B1FD'%20stroke-width='1.125'/%3e%3c/svg%3e",q="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='12'%20r='9'%20fill='%239B9B9B'/%3e%3cpath%20d='M9%209L15%2015'%20stroke='white'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3cpath%20d='M15%209L9%2015'%20stroke='white'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3c/svg%3e",u={left_label_textfield:"styles-module__left_label_textfield___PO5VM",top_label_textfield:"styles-module__top_label_textfield___qdd3L",sm_label:"styles-module__sm_label___GHuO5",md_label:"styles-module__md_label___tSA7q",lg_label:"styles-module__lg_label___2dLzT",sm_tooltip:"styles-module__sm_tooltip___TMegW",md_tooltip:"styles-module__md_tooltip___rNo2j",lg_tooltip:"styles-module__lg_tooltip___MrP5P",textfield_wrapper:"styles-module__textfield_wrapper___Vyo43",text_counter:"styles-module__text_counter___Ro-h4",textarea:"styles-module__textarea___gYl17",sm_textfield:"styles-module__sm_textfield___Bd8Ei",md_textfield:"styles-module__md_textfield___hd1CY",lg_textfield:"styles-module__lg_textfield___3nvf7",input_description:"styles-module__input_description___rT1V7",input_error_msg:"styles-module__input_error_msg___YKVZp",clear_button:"styles-module__clear_button___Z7xgY"},J=e=>{const{label:o,labelPosition:s="top",size:l="md",required:_,tooltip:r,tooltipPosition:i="top",errorMsg:c,description:n,textarea:x=!1,maxTextCount:g,onChange:f,onClear:m,...y}=e,w="minRows"in e?e.minRows:void 0,[C,k]=p.useState(0);let v=u.md_label,$=u.md_textfield,z=u.md_tooltip;l==="sm"?(v=u.sm_label,$=u.sm_textfield,z=u.sm_tooltip):l==="lg"&&(v=u.lg_label,$=u.lg_textfield,z=u.lg_tooltip);const W=p.useCallback(M=>{if(g){if(M.currentTarget?.value?.length>g)return;k(M.currentTarget?.value?.length),f&&f(M)}f&&(k(M.currentTarget?.value?.length),f(M))},[g,f]);return t.jsxs("div",{className:s==="top"?u.top_label_textfield:u.left_label_textfield,children:[t.jsxs("div",{children:[o&&t.jsx(d.Input.Label,{required:_,className:v,children:o}),r&&t.jsx(d.Tooltip,{label:r,position:i,children:t.jsx("img",{className:z,src:Y,alt:"tooltip_icon"})})]}),t.jsxs("div",{children:[t.jsxs("div",{className:u.textfield_wrapper,children:[x?t.jsx(d.Textarea,{className:u.textarea,size:l,minRows:w,error:c,onChange:W,disabled:y?.disabled,...y}):t.jsx(d.Input,{className:$,error:c,onChange:W,rightSection:m&&C>0?t.jsx("div",{className:u.clear_button,onClick:m,children:t.jsx("img",{src:q})}):void 0,...y}),g&&g>0&&t.jsx("span",{className:u.text_counter,children:`${C}/${g}`})]}),n&&t.jsx(d.Input.Description,{className:u.input_description,children:n}),c&&t.jsx(d.Input.Error,{className:u.input_error_msg,children:c})]})]})},K="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.1811%2017.3621C14.147%2017.3621%2017.3621%2014.147%2017.3621%2010.1811C17.3621%206.21507%2014.147%203%2010.1811%203C6.21507%203%203%206.21507%203%2010.1811C3%2014.147%206.21507%2017.3621%2010.1811%2017.3621Z'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-miterlimit='10'/%3e%3cpath%20d='M15.2876%2015.2874L21.0002%2021'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3c/svg%3e",h={left_label_textfield:"styles-module__left_label_textfield___KNg39",top_label_textfield:"styles-module__top_label_textfield___plWi-",sm_label:"styles-module__sm_label___cDDwr",md_label:"styles-module__md_label___CQRay",lg_label:"styles-module__lg_label___m3Xxi",sm_tooltip:"styles-module__sm_tooltip___w6lav",md_tooltip:"styles-module__md_tooltip___B4cfX",lg_tooltip:"styles-module__lg_tooltip___9-Nxt",textfield_wrapper:"styles-module__textfield_wrapper___yQZ5S",sm_textfield:"styles-module__sm_textfield___gxtsR",md_textfield:"styles-module__md_textfield___8ucoR",lg_textfield:"styles-module__lg_textfield___ZHlU2",input_description:"styles-module__input_description___zk91j",input_error_msg:"styles-module__input_error_msg___aeTfS",clear_button:"styles-module__clear_button___XFHzC"},X=({label:e,labelPosition:o="top",size:s="md",required:l,tooltip:_,tooltipPosition:r="top",errorMsg:i,description:c,onChange:n,onClear:x,...g})=>{const[f,m]=p.useState(0);let y=h.md_label,w=h.md_textfield,C=h.md_tooltip;s==="sm"?(y=h.sm_label,w=h.sm_textfield,C=h.sm_tooltip):s==="lg"&&(y=h.lg_label,w=h.lg_textfield,C=h.lg_tooltip);const k=p.useCallback(v=>{n&&(m(v?.length),n(v))},[n]);return t.jsxs("div",{className:o==="top"?h.top_label_textfield:h.left_label_textfield,children:[t.jsxs("div",{children:[e&&t.jsx(d.Input.Label,{required:l,className:y,children:e}),_&&t.jsx(d.Tooltip,{label:_,position:r,children:t.jsx("img",{className:C,src:Y,alt:"tooltip_icon"})})]}),t.jsxs("div",{children:[t.jsx("div",{className:h.textfield_wrapper,children:t.jsx(d.Autocomplete,{...g,size:s,error:i,className:w,onChange:k,leftSection:t.jsx("img",{src:K}),rightSection:x&&f>0?t.jsx("div",{className:h.clear_button,onClick:x,children:t.jsx("img",{src:q})}):void 0})}),c&&t.jsx(d.Input.Description,{className:h.input_description,children:c}),i&&t.jsx(d.Input.Error,{className:h.input_error_msg,children:i})]})]})},G="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%2015L12%209L6%2015'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",R="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%209L12%2015L6%209'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",b={left_label_textfield:"styles-module__left_label_textfield___UhCQL",top_label_textfield:"styles-module__top_label_textfield___JPXoC",sm_label:"styles-module__sm_label___B0s7a",md_label:"styles-module__md_label___JcIkl",lg_label:"styles-module__lg_label___-NGe2",sm_tooltip:"styles-module__sm_tooltip___8vbL2",md_tooltip:"styles-module__md_tooltip___7vlZ9",lg_tooltip:"styles-module__lg_tooltip___QYczb",sm_textfield:"styles-module__sm_textfield___kNlMo",md_textfield:"styles-module__md_textfield___-sLZE",lg_textfield:"styles-module__lg_textfield___xVbCh",input_description:"styles-module__input_description___pTq1F",input_error_msg:"styles-module__input_error_msg___zAIoT"},tt=({label:e,labelPosition:o="top",size:s="md",required:l,tooltip:_,tooltipPosition:r="top",errorMsg:i,description:c,...n})=>{const[x,g]=p.useState(!1);let f=b.md_label,m=b.md_textfield,y=b.md_tooltip,w=18;return s==="sm"?(f=b.sm_label,m=b.sm_textfield,y=b.sm_tooltip,w=14):s==="lg"&&(f=b.lg_label,m=b.lg_textfield,y=b.lg_tooltip,w=24),t.jsxs("div",{className:o==="top"?b.top_label_textfield:b.left_label_textfield,children:[t.jsxs("div",{children:[e&&t.jsx(d.Input.Label,{required:l,className:f,children:e}),_&&t.jsx(d.Tooltip,{label:_,position:r,children:t.jsx("img",{className:y,src:Y,alt:"tooltip_icon"})})]}),t.jsxs("div",{children:[t.jsx(d.Select,{...n,size:s,error:i,className:m,rightSection:x?t.jsx("img",{width:w,src:G}):t.jsx("img",{width:w,src:R}),onDropdownOpen:()=>g(!0),onDropdownClose:()=>g(!1),styles:()=>({option:{"&[data-selected]":{"&, &:hover":{backgroundColor:"#e7e7e7",color:"#000000"}}}})}),c&&t.jsx(d.Input.Description,{className:b.input_description,children:c}),i&&t.jsx(d.Input.Error,{className:b.input_error_msg,children:i})]})]})},I={sm_checkbox:"styles-module__sm_checkbox___0JMac",md_checkbox:"styles-module__md_checkbox___aP9T1",lg_checkbox:"styles-module__lg_checkbox___CmiVr"},et=({size:e="md",...o})=>{let s=I.md_checkbox,l=24;return e==="sm"?(s=I.sm_checkbox,l=18):e==="lg"&&(s=I.lg_checkbox,l=32),t.jsx(d.Checkbox,{className:s,styles:{inner:{width:l,height:l}},...o})},P={sm_radio:"styles-module__sm_radio___jQtvO",md_radio:"styles-module__md_radio___h-OD5",lg_radio:"styles-module__lg_radio___XdzaN"},lt=({size:e="md",...o})=>{let s=P.md_radio;return e==="sm"?s=P.sm_radio:e==="lg"&&(s=P.lg_radio),t.jsx(d.Radio,{className:s,size:e,...o})},j={sm_toggle:"styles-module__sm_toggle___Mabl5",md_toggle:"styles-module__md_toggle___6mSJO",lg_toggle:"styles-module__lg_toggle___Dv7k7"},st=({size:e="md",labelPosition:o="right",disabled:s,onChange:l,..._})=>{const[r,i]=p.useState(_?.checked||!1);let c=j.md_toggle,n=50;e==="sm"?(c=j.sm_toggle,n=38):e==="lg"&&(c=j.lg_toggle,n=67);const x=p.useCallback(g=>{l&&l(g),i(g?.target?.checked)},[l]);return t.jsx(d.Switch,{className:c,size:e,labelPosition:o,disabled:s,onChange:x,styles:()=>({track:{backgroundColor:!s&&r?"#0fd3d8 !important":void 0,borderColor:!s&&r?"#0fd3d8 !important":void 0,width:n}}),..._})},V="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='5'%20width='18'%20height='16'%20rx='2'%20stroke='%23808080'%20stroke-width='1.5'/%3e%3cpath%20d='M7%203V5'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17%203V5'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3crect%20x='3.7002'%20y='5.48511'%20width='16.8291'%20height='4.51416'%20fill='%23808080'/%3e%3c/svg%3e",A={sm_textfield:"styles-module__sm_textfield___EtBYr",md_textfield:"styles-module__md_textfield___Lzjxb",lg_textfield:"styles-module__lg_textfield___Zc8R8"},_t=({size:e="md",type:o="default",withTime:s,...l})=>{let _=A.md_textfield,r=18;return e==="sm"?(_=A.sm_textfield,r=14):e==="lg"&&(_=A.lg_textfield,r=24),s?t.jsx(T.DateTimePicker,{className:_,size:e,locale:"ko",firstDayOfWeek:0,monthLabelFormat:"YYYY년 MM월",valueFormat:"YYYY-MM-DD | a hh:mm",rightSection:t.jsx("img",{width:r,src:V}),...l}):t.jsx(T.DatePickerInput,{className:_,type:o,size:e,locale:"ko",firstDayOfWeek:0,monthLabelFormat:"YYYY년 MM월",valueFormat:"YYYY-MM-DD",rightSection:t.jsx("img",{width:r,src:V}),...l})},ot="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2021C16.9706%2021%2021%2016.9706%2021%2012C21%207.02944%2016.9706%203%2012%203C7.02944%203%203%207.02944%203%2012C3%2016.9706%207.02944%2021%2012%2021Z'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.1201%2011.9998V7.0498'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3cpath%20d='M16.1701%2012H12.1201'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3c/svg%3e",Z={sm_textfield:"styles-module__sm_textfield___sNGu-",md_textfield:"styles-module__md_textfield___0bonT",lg_textfield:"styles-module__lg_textfield___v-WEc"},it=({size:e="md",...o})=>{const s=p.useRef(null);let l=Z.md_textfield,_=18;return e==="sm"?(l=Z.sm_textfield,_=14):e==="lg"&&(l=Z.lg_textfield,_=24),t.jsx(T.TimeInput,{ref:s,className:l,size:e,...o,rightSection:t.jsx(d.ActionIcon,{onClick:()=>{s&&s?.current?.showPicker()},children:t.jsx("img",{width:_,src:ot,alt:"clock_icon"})})})},dt="data:image/svg+xml,%3csvg%20width='8'%20height='14'%20viewBox='0%200%208%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%201L1%207L7%2013'%20stroke='%23667085'/%3e%3c/svg%3e",nt="data:image/svg+xml,%3csvg%20width='8'%20height='14'%20viewBox='0%200%208%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%201L7%207L1%2013'%20stroke='%23667085'/%3e%3c/svg%3e",B={pagination:"style-module__pagination___kYC1n",page_index:"style-module__page_index___OZss8",page_index_active:"style-module__page_index_active___vi0-E",arrow:"style-module__arrow___pSNRc"},at=({currentPageIdx:e,rowsPerPage:o,totalLength:s,paginationSize:l,onPageChange:_,...r})=>{const[i,c]=p.useState(e),[n,x]=p.useState(50),[g,f]=p.useState(1),[m,y]=p.useState(5);p.useMemo(()=>{c(e),x(o||50),f(s||1),y(l||5)},[e,o,s,l]);const w=()=>{_&&_(i-(i%m+1)),c(k=>k-(k%m+1))},C=()=>{_&&_(i+m-i%m),c(k=>k+m-k%m)};return t.jsxs("div",{...r,className:B.pagination,children:[i>=m?t.jsx("button",{className:B.arrow,onClick:w,children:t.jsx("img",{src:dt,alt:"prev"})}):null,new Array(m).fill(0).map((k,v)=>{const $=Math.floor(i/m)*m+v+1;if(!($>Math.ceil(g/n)))return t.jsx("button",{className:i===$-1?B.page_index_active:B.page_index,onClick:()=>{c($-1),_&&_($-1)},children:$},`pagination_${v}`)}),Math.floor(i/m)*m+m<Math.ceil(g/n)?t.jsx("button",{className:B.arrow,onClick:C,children:t.jsx("img",{src:nt,alt:"next"})}):null]})},H={tab_title_list:"styles-module__tab_title_list___b6YAl",border_bottom:"styles-module__border_bottom___mZKE9"},rt=({tabList:e=[],containerPaddingTop:o,...s})=>t.jsxs(d.Tabs,{...s,children:[t.jsx(d.Tabs.List,{className:H.tab_title_list,children:e?.map((l,_)=>t.jsxs(d.Tabs.Tab,{value:l.value,leftSection:l.icon,children:[l.title,t.jsx("div",{className:H.border_bottom})]},`tab_${_}`))}),e?.map((l,_)=>t.jsx(d.Tabs.Panel,{value:l.value,pt:o,children:l.body},`tab_panel_${_}`))]}),F={sm_segment_button:"styles-module__sm_segment_button___-neWq",md_segment_button:"styles-module__md_segment_button___1xzQt",lg_segment_button:"styles-module__lg_segment_button___7OhhZ"},ct=({size:e="md",radius:o=6,...s})=>{let l=F.md_segment_button;return e==="sm"?l=F.sm_segment_button:e==="lg"&&(l=F.lg_segment_button),t.jsx(d.SegmentedControl,{className:l,size:e,radius:o,styles:{control:{borderWidth:"0 !important"}},...s})},mt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='9'%20cy='9'%20r='9'%20fill='%2330CC37'/%3e%3cpath%20d='M3.9375%209L7.51103%2012.375L14.0625%205.625'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",gt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='9.5625'%20cy='9.5625'%20r='6.1875'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%200C4.03729%200%200%204.03729%200%209C0%2013.9627%204.03729%2018%209%2018C13.9627%2018%2018%2013.9627%2018%209C18%204.03729%2013.9627%200%209%200ZM9.00413%2011.9604C9.58966%2011.9604%2010.063%2012.4337%2010.063%2013.0192C10.063%2013.6047%209.58966%2014.078%209.00413%2014.078C8.4186%2014.078%207.94001%2013.6047%207.94001%2013.0192C7.94001%2012.4337%208.40907%2011.9604%208.99354%2011.9604H9.00413ZM8.99375%204.18659C9.43211%204.18659%209.78787%204.54235%209.78787%204.98071V9.65965C9.78787%2010.098%209.43211%2010.4538%208.99375%2010.4538C8.5554%2010.4538%208.19963%2010.098%208.19963%209.65965V4.98071C8.19963%204.54235%208.5554%204.18659%208.99375%204.18659Z'%20fill='%23FA5252'/%3e%3c/svg%3e",N={light_success:"styles-module__light_success___696tv",light_error:"styles-module__light_error___KqP2q",fill_success:"styles-module__fill_success___P2asv",fill_error:"styles-module__fill_error___e1KYC"},pt=({visible:e=!1,type:o="success",variant:s="light",top:l=48,right:_=48,...r})=>{let i=N.light_success;return s==="fill"?o==="success"?i=N.fill_success:o==="error"&&(i=N.fill_error):o==="success"?i=N.light_success:o==="error"&&(i=N.light_error),e?t.jsx(d.Alert,{className:i,icon:t.jsx("img",{src:o==="success"?mt:gt,alt:"alert_icon"}),styles:{title:{marginBottom:r?.children?void 0:0}},pos:"fixed",top:l,right:_,...r}):null},O={tooltip_body:"styles-module__tooltip_body___3s5ij",tooltip_title:"styles-module__tooltip_title___glF9X",tooltip_content:"styles-module__tooltip_content___o94IZ"},ut=({title:e,content:o,maw:s=280,multiline:l=!0,..._})=>t.jsx(d.Tooltip,{..._,maw:s,multiline:l,label:t.jsxs("div",{className:O.tooltip_body,children:[e&&t.jsx("span",{className:O.tooltip_title,children:e}),t.jsx("span",{className:O.tooltip_content,children:o})]})}),ft=({size:e="md",width:o,withCloseButton:s=!1,...l})=>{let _=768;return e==="xs"?_=360:e==="sm"?_=544:e==="lg"?_=1e3:e==="xl"&&(_=1200),t.jsx(d.Modal,{size:o||_,withCloseButton:s,...l})},L={image_uploader:"styles-module__image_uploader___yzVim",preview:"styles-module__preview___nA1QH",image_uploader_wrapper:"styles-module__image_uploader_wrapper___0EZ7A",file_clear_button:"styles-module__file_clear_button___kEABJ"},ht="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='8'%20y='8'%20width='32'%20height='32'%20rx='4'%20stroke='%2307A3C6'%20stroke-width='2'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.4436%2016.8886C20.4436%2018.8532%2018.8527%2020.4441%2016.8881%2020.4441C14.9254%2020.4441%2013.3325%2018.8532%2013.3325%2016.8886C13.3325%2014.924%2014.9254%2013.333%2016.8881%2013.333C18.8508%2013.3349%2020.4417%2014.9259%2020.4436%2016.8886Z'%20stroke='%2307A3C6'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8%2032.8893L12.8471%2029.254C14.2038%2028.2365%2016.0548%2028.1851%2017.4659%2029.1258L17.9594%2029.4548C19.4333%2030.4375%2021.378%2030.3336%2022.7389%2029.1995L28.7618%2024.1804C30.1486%2023.0248%2032.1375%2022.9412%2033.6164%2023.9764L40%2028.4449'%20stroke='%2307A3C6'%20stroke-width='2'/%3e%3c/svg%3e",xt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='9'%20cy='9'%20r='9'%20fill='%239B9B9B'/%3e%3cpath%20d='M6%206L12%2012'%20stroke='white'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3cpath%20d='M12%206L6%2012'%20stroke='white'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3c/svg%3e",bt=({width:e,height:o,defaultMsg:s="이미지 업로드",file:l,onDrop:_,showClearButton:r,onClear:i,...c})=>{const[n,x]=p.useState(l),g=p.useCallback(()=>{x(void 0),i&&i()},[i]);return t.jsxs("div",{className:L.image_uploader_wrapper,children:[r&&n?t.jsx("div",{className:L.file_clear_button,onClick:g,children:t.jsx("img",{src:xt,alt:"clear_file_data"})}):null,t.jsx(E.Dropzone,{...c,maxFiles:1,className:L.image_uploader,accept:E.IMAGE_MIME_TYPE,onDrop:f=>{x(f[0]),_&&_(f)},style:{width:e,height:o},children:t.jsx(t.Fragment,{children:n?t.jsx("img",{className:L.preview,src:typeof n=="string"?n:URL.createObjectURL(n),alt:`파일명: ${typeof n=="string"?n:n.name}`,title:`파일명: ${typeof n=="string"?n:n.name}`}):t.jsxs("div",{children:[t.jsx("img",{src:ht,alt:"ic_image_colored"}),t.jsx("span",{children:s})]})})})]})};a.Alert=pt,a.Button=U,a.Checkbox=et,a.DatePicker=_t,a.Dropdown=tt,a.ImageUploader=bt,a.Modal=ft,a.Pagination=at,a.Radio=lt,a.SearchBar=X,a.SegmentButton=ct,a.Tab=rt,a.TextField=J,a.TimePicker=it,a.Toggle=st,a.Tooltip=ut,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
1
+ (function(d,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("@mantine/core"),require("react/jsx-runtime"),require("react"),require("dayjs/locale/ko"),require("@mantine/dates"),require("@mantine/dropzone")):typeof define=="function"&&define.amd?define(["exports","@mantine/core","react/jsx-runtime","react","dayjs/locale/ko","@mantine/dates","@mantine/dropzone"],r):(d=typeof globalThis<"u"?globalThis:d||self,r(d.Core={},d.core,d.jsxRuntime,d.React,null,d.dates,d.dropzone))})(this,function(d,r,t,f,ve,M,j){"use strict";const st="#0fd3d8",_t="#11badd",rt="#07a3c6",it="#11badd",nt="#b0b0b0",dt="#ffffff",ct="#e7e7e7",at="#cdcdcd",gt="#e7e7e7",mt="#b0b0b0",ft="#ffffff",ut="#e7e7e7",pt="#cdcdcd",bt="#e7e7e7",xt="#b0b0b0",O="#fa5252",E="#e03131",q="#c92a2a",V="#e03131",z="#b0b0b0",ht="#9b9b9b",yt="#808080",Ct="#666666",Bt="#808080",wt="#b0b0b0",T="#ffffff",kt="#ffffff",vt="#ffffff",Tt="#ffffff",$t="#ffffff",U="#0fd3d8",St="#11badd",Nt="#07a3c6",Pt="#11badd",Mt="#ffffff",Q="#4a4a4a",Dt="#4a4a4a",Lt="#4a4a4a",Ft="#4a4a4a",Yt="#ffffff",X="#ffffff",J="#ffffff",K="#ffffff",G="#ffffff",R="#ffffff",It="#ffffff",Ht="#ffffff",At="#ffffff",Wt="#ffffff",Zt="#ffffff",jt="#0fd3d8",Ot="#11badd",Et="#07a3c6",qt="#11badd",Vt="#b0b0b0",zt="#b0b0b0",Ut="#b0b0b0",Qt="#b0b0b0",Xt={primary:T,primaryLine:U,basic:Q,danger:T,setting:T,warning:T},Jt={primary:{default:{backgroundColor:st,color:T,border:"none"},hover:{backgroundColor:_t,color:kt},active:{backgroundColor:rt,color:vt},focus:{backgroundColor:it,color:Tt},disabled:{backgroundColor:nt,color:$t,cursor:"not-allowed"}},primaryLine:{default:{backgroundColor:dt,color:U,border:`1px solid ${jt}`},hover:{backgroundColor:ct,color:St,borderColor:Ot},active:{backgroundColor:at,color:Nt,borderColor:Et},focus:{backgroundColor:gt,color:Pt,borderColor:qt},disabled:{backgroundColor:mt,color:Mt,cursor:"not-allowed"}},basic:{default:{backgroundColor:ft,color:Q,border:`1px solid ${Vt}`},hover:{backgroundColor:ut,color:Dt,borderColor:zt},active:{backgroundColor:pt,color:Lt,borderColor:Ut},focus:{backgroundColor:bt,color:Ft,borderColor:Qt},disabled:{backgroundColor:xt,color:Yt,cursor:"not-allowed"}},danger:{default:{backgroundColor:O,color:X,border:"none"},hover:{backgroundColor:E,color:J},active:{backgroundColor:q,color:K},focus:{backgroundColor:V,color:G},disabled:{backgroundColor:z,color:R,cursor:"not-allowed"}},setting:{default:{backgroundColor:ht,color:It,border:"none"},hover:{backgroundColor:yt,color:Ht},active:{backgroundColor:Ct,color:At},focus:{backgroundColor:Bt,color:Wt},disabled:{backgroundColor:wt,color:Zt,cursor:"not-allowed"}},warning:{default:{backgroundColor:O,color:X,border:"none"},hover:{backgroundColor:E,color:J},active:{backgroundColor:q,color:K},focus:{backgroundColor:V,color:G},disabled:{backgroundColor:z,color:R,cursor:"not-allowed"}}},Kt={lg:{height:"50px",padding:"0 20px",fontSize:"18px",fontWeight:700,borderRadius:"6px",lineHeight:"130%",fontFamily:"Pretendard"},md:{height:"40px",padding:"0 16px",fontSize:"16px",fontWeight:600,borderRadius:"6px",lineHeight:"130%",fontFamily:"Pretendard"},sm:{height:"30px",padding:"0 12px",fontSize:"14px",fontWeight:600,borderRadius:"4px",lineHeight:"130%",fontFamily:"Pretendard"}};function Gt(e,_){const o=Jt[e];return{root:{...Kt[_],...o.default,"&:hover:not(:disabled)":o.hover,"&:active:not(:disabled)":o.active,"&:focus:not(:disabled)":o.focus,"&:disabled":o.disabled}}}function Rt({children:e,size:_="md",variant:o="primary",isLoading:l=!1,disabled:s=!1,...c}){const i=f.useMemo(()=>Gt(o,_),[o,_]),a=Xt[o],n=f.useMemo(()=>{switch(_){case"lg":return 18;case"sm":return 14;case"md":default:return 16}},[_]);return t.jsx(r.Button,{type:"button",styles:i,disabled:s||l,...c,children:l?t.jsx(r.Loader,{color:a,size:n}):e})}const D="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.0877%207.65632L7.97702%207.92086L7.90164%208.27125L8.31695%208.34664C8.58707%208.41155%208.64081%208.50857%208.58218%208.77869L7.90164%2011.9734C7.72365%2012.7991%207.99936%2013.1879%208.6464%2013.1879C9.14895%2013.1879%209.73107%2012.9562%209.99561%2012.6372L10.0766%2012.254C9.89301%2012.4159%209.62288%2012.4808%209.4449%2012.4808C9.19153%2012.4808%209.10009%2012.3028%209.16431%2011.9894L10.0877%207.65632ZM10.1513%205.73336C10.1513%205.97772%2010.0542%206.21206%209.88141%206.38485C9.70862%206.55764%209.47427%206.65471%209.22992%206.65471C8.98556%206.65471%208.75121%206.55764%208.57843%206.38485C8.40564%206.21206%208.30857%205.97772%208.30857%205.73336C8.30857%205.489%208.40564%205.25465%208.57843%205.08187C8.75121%204.90908%208.98556%204.81201%209.22992%204.81201C9.47427%204.81201%209.70862%204.90908%209.88141%205.08187C10.0542%205.25465%2010.1513%205.489%2010.1513%205.73336Z'%20fill='%2353B1FD'/%3e%3ccircle%20cx='9'%20cy='9'%20r='6.1875'%20stroke='%2353B1FD'%20stroke-width='1.125'/%3e%3c/svg%3e",tt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='12'%20r='9'%20fill='%239B9B9B'/%3e%3cpath%20d='M9%209L15%2015'%20stroke='white'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3cpath%20d='M15%209L9%2015'%20stroke='white'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3c/svg%3e",u={left_label_textfield:"styles-module__left_label_textfield___PO5VM",top_label_textfield:"styles-module__top_label_textfield___qdd3L",sm_label:"styles-module__sm_label___GHuO5",md_label:"styles-module__md_label___tSA7q",lg_label:"styles-module__lg_label___2dLzT",sm_tooltip:"styles-module__sm_tooltip___TMegW",md_tooltip:"styles-module__md_tooltip___rNo2j",lg_tooltip:"styles-module__lg_tooltip___MrP5P",textfield_wrapper:"styles-module__textfield_wrapper___Vyo43",text_counter:"styles-module__text_counter___Ro-h4",textarea:"styles-module__textarea___gYl17",sm_textfield:"styles-module__sm_textfield___Bd8Ei",md_textfield:"styles-module__md_textfield___hd1CY",lg_textfield:"styles-module__lg_textfield___3nvf7",input_description:"styles-module__input_description___rT1V7",input_error_msg:"styles-module__input_error_msg___YKVZp",clear_button:"styles-module__clear_button___Z7xgY"},te=e=>{const{label:_,labelPosition:o="top",size:l="md",required:s,tooltip:c,tooltipPosition:i="top",errorMsg:a,description:n,textarea:h=!1,maxTextCount:m,onChange:p,onClear:g,...y}=e,C="minRows"in e?e.minRows:void 0,[v,B]=f.useState(0);let w=u.md_label,k=u.md_textfield,Z=u.md_tooltip;l==="sm"?(w=u.sm_label,k=u.sm_textfield,Z=u.sm_tooltip):l==="lg"&&(w=u.lg_label,k=u.lg_textfield,Z=u.lg_tooltip);const lt=f.useCallback(N=>{if(m){if(N.currentTarget?.value?.length>m)return;B(N.currentTarget?.value?.length),p&&p(N)}p&&(B(N.currentTarget?.value?.length),p(N))},[m,p]);return t.jsxs("div",{className:o==="top"?u.top_label_textfield:u.left_label_textfield,children:[t.jsxs("div",{children:[_&&t.jsx(r.Input.Label,{required:s,className:w,children:_}),c&&t.jsx(r.Tooltip,{label:c,position:i,children:t.jsx("img",{className:Z,src:D,alt:"tooltip_icon"})})]}),t.jsxs("div",{children:[t.jsxs("div",{className:u.textfield_wrapper,children:[h?t.jsx(r.Textarea,{className:u.textarea,size:l,minRows:C,error:a,onChange:lt,disabled:y?.disabled,...y}):t.jsx(r.Input,{className:k,error:a,onChange:lt,rightSection:g&&v>0?t.jsx("div",{className:u.clear_button,onClick:g,children:t.jsx("img",{src:tt})}):void 0,...y}),m&&m>0&&t.jsx("span",{className:u.text_counter,children:`${v}/${m}`})]}),n&&t.jsx(r.Input.Description,{className:u.input_description,children:n}),a&&t.jsx(r.Input.Error,{className:u.input_error_msg,children:a})]})]})},ee="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.1811%2017.3621C14.147%2017.3621%2017.3621%2014.147%2017.3621%2010.1811C17.3621%206.21507%2014.147%203%2010.1811%203C6.21507%203%203%206.21507%203%2010.1811C3%2014.147%206.21507%2017.3621%2010.1811%2017.3621Z'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-miterlimit='10'/%3e%3cpath%20d='M15.2876%2015.2874L21.0002%2021'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3c/svg%3e",b={left_label_textfield:"styles-module__left_label_textfield___KNg39",top_label_textfield:"styles-module__top_label_textfield___plWi-",sm_label:"styles-module__sm_label___cDDwr",md_label:"styles-module__md_label___CQRay",lg_label:"styles-module__lg_label___m3Xxi",sm_tooltip:"styles-module__sm_tooltip___w6lav",md_tooltip:"styles-module__md_tooltip___B4cfX",lg_tooltip:"styles-module__lg_tooltip___9-Nxt",textfield_wrapper:"styles-module__textfield_wrapper___yQZ5S",sm_textfield:"styles-module__sm_textfield___gxtsR",md_textfield:"styles-module__md_textfield___8ucoR",lg_textfield:"styles-module__lg_textfield___ZHlU2",input_description:"styles-module__input_description___zk91j",input_error_msg:"styles-module__input_error_msg___aeTfS",clear_button:"styles-module__clear_button___XFHzC"},oe=({label:e,labelPosition:_="top",size:o="md",required:l,tooltip:s,tooltipPosition:c="top",errorMsg:i,description:a,onChange:n,onClear:h,...m})=>{const[p,g]=f.useState(0);let y=b.md_label,C=b.md_textfield,v=b.md_tooltip;o==="sm"?(y=b.sm_label,C=b.sm_textfield,v=b.sm_tooltip):o==="lg"&&(y=b.lg_label,C=b.lg_textfield,v=b.lg_tooltip);const B=f.useCallback(w=>{n&&(g(w?.length),n(w))},[n]);return t.jsxs("div",{className:_==="top"?b.top_label_textfield:b.left_label_textfield,children:[t.jsxs("div",{children:[e&&t.jsx(r.Input.Label,{required:l,className:y,children:e}),s&&t.jsx(r.Tooltip,{label:s,position:c,children:t.jsx("img",{className:v,src:D,alt:"tooltip_icon"})})]}),t.jsxs("div",{children:[t.jsx("div",{className:b.textfield_wrapper,children:t.jsx(r.Autocomplete,{...m,size:o,error:i,className:C,onChange:B,leftSection:t.jsx("img",{src:ee}),rightSection:h&&p>0?t.jsx("div",{className:b.clear_button,onClick:h,children:t.jsx("img",{src:tt})}):void 0})}),a&&t.jsx(r.Input.Description,{className:b.input_description,children:a}),i&&t.jsx(r.Input.Error,{className:b.input_error_msg,children:i})]})]})},le="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%2015L12%209L6%2015'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",se="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%209L12%2015L6%209'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",x={left_label_textfield:"styles-module__left_label_textfield___UhCQL",top_label_textfield:"styles-module__top_label_textfield___JPXoC",sm_label:"styles-module__sm_label___B0s7a",md_label:"styles-module__md_label___JcIkl",lg_label:"styles-module__lg_label___-NGe2",sm_tooltip:"styles-module__sm_tooltip___8vbL2",md_tooltip:"styles-module__md_tooltip___7vlZ9",lg_tooltip:"styles-module__lg_tooltip___QYczb",sm_textfield:"styles-module__sm_textfield___kNlMo",md_textfield:"styles-module__md_textfield___-sLZE",lg_textfield:"styles-module__lg_textfield___xVbCh",input_description:"styles-module__input_description___pTq1F",input_error_msg:"styles-module__input_error_msg___zAIoT"},_e=({label:e,labelPosition:_="top",size:o="md",required:l,tooltip:s,tooltipPosition:c="top",errorMsg:i,description:a,...n})=>{const[h,m]=f.useState(!1);let p=x.md_label,g=x.md_textfield,y=x.md_tooltip,C=18;return o==="sm"?(p=x.sm_label,g=x.sm_textfield,y=x.sm_tooltip,C=14):o==="lg"&&(p=x.lg_label,g=x.lg_textfield,y=x.lg_tooltip,C=24),t.jsxs("div",{className:_==="top"?x.top_label_textfield:x.left_label_textfield,children:[t.jsxs("div",{children:[e&&t.jsx(r.Input.Label,{required:l,className:p,children:e}),s&&t.jsx(r.Tooltip,{label:s,position:c,children:t.jsx("img",{className:y,src:D,alt:"tooltip_icon"})})]}),t.jsxs("div",{children:[t.jsx(r.Select,{...n,size:o,error:i,className:g,rightSection:h?t.jsx("img",{width:C,src:le}):t.jsx("img",{width:C,src:se}),onDropdownOpen:()=>m(!0),onDropdownClose:()=>m(!1),styles:()=>({option:{"&[data-selected]":{"&, &:hover":{backgroundColor:"#e7e7e7",color:"#000000"}}}})}),a&&t.jsx(r.Input.Description,{className:x.input_description,children:a}),i&&t.jsx(r.Input.Error,{className:x.input_error_msg,children:i})]})]})},L={sm_checkbox:"styles-module__sm_checkbox___0JMac",md_checkbox:"styles-module__md_checkbox___aP9T1",lg_checkbox:"styles-module__lg_checkbox___CmiVr"},re=({size:e="md",..._})=>{let o=L.md_checkbox,l=24;return e==="sm"?(o=L.sm_checkbox,l=18):e==="lg"&&(o=L.lg_checkbox,l=32),t.jsx(r.Checkbox,{className:o,styles:{inner:{width:l,height:l}},..._})},F={sm_radio:"styles-module__sm_radio___jQtvO",md_radio:"styles-module__md_radio___h-OD5",lg_radio:"styles-module__lg_radio___XdzaN"},ie=({size:e="md",..._})=>{let o=F.md_radio;return e==="sm"?o=F.sm_radio:e==="lg"&&(o=F.lg_radio),t.jsx(r.Radio,{className:o,size:e,..._})},Y={sm_toggle:"styles-module__sm_toggle___Mabl5",md_toggle:"styles-module__md_toggle___6mSJO",lg_toggle:"styles-module__lg_toggle___Dv7k7"},ne=({size:e="md",labelPosition:_="right",disabled:o,onChange:l,...s})=>{const[c,i]=f.useState(s?.checked||!1);let a=Y.md_toggle,n=50;e==="sm"?(a=Y.sm_toggle,n=38):e==="lg"&&(a=Y.lg_toggle,n=67);const h=f.useCallback(m=>{l&&l(m),i(m?.target?.checked)},[l]);return t.jsx(r.Switch,{className:a,size:e,labelPosition:_,disabled:o,onChange:h,styles:()=>({track:{backgroundColor:!o&&c?"#0fd3d8 !important":void 0,borderColor:!o&&c?"#0fd3d8 !important":void 0,width:n}}),...s})},et="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='5'%20width='18'%20height='16'%20rx='2'%20stroke='%23808080'%20stroke-width='1.5'/%3e%3cpath%20d='M7%203V5'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17%203V5'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3crect%20x='3.7002'%20y='5.48511'%20width='16.8291'%20height='4.51416'%20fill='%23808080'/%3e%3c/svg%3e",I={sm_textfield:"styles-module__sm_textfield___EtBYr",md_textfield:"styles-module__md_textfield___Lzjxb",lg_textfield:"styles-module__lg_textfield___Zc8R8"},de=({size:e="md",type:_="default",withTime:o,...l})=>{let s=I.md_textfield,c=18;return e==="sm"?(s=I.sm_textfield,c=14):e==="lg"&&(s=I.lg_textfield,c=24),o?t.jsx(M.DateTimePicker,{className:s,size:e,locale:"ko",firstDayOfWeek:0,monthLabelFormat:"YYYY년 MM월",valueFormat:"YYYY-MM-DD | a hh:mm",rightSection:t.jsx("img",{width:c,src:et}),...l}):t.jsx(M.DatePickerInput,{className:s,type:_,size:e,locale:"ko",firstDayOfWeek:0,monthLabelFormat:"YYYY년 MM월",valueFormat:"YYYY-MM-DD",rightSection:t.jsx("img",{width:c,src:et}),...l})},ce="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2021C16.9706%2021%2021%2016.9706%2021%2012C21%207.02944%2016.9706%203%2012%203C7.02944%203%203%207.02944%203%2012C3%2016.9706%207.02944%2021%2012%2021Z'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.1201%2011.9998V7.0498'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3cpath%20d='M16.1701%2012H12.1201'%20stroke='%23808080'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3c/svg%3e",H={sm_textfield:"styles-module__sm_textfield___sNGu-",md_textfield:"styles-module__md_textfield___0bonT",lg_textfield:"styles-module__lg_textfield___v-WEc"},ae=({size:e="md",..._})=>{const o=f.useRef(null);let l=H.md_textfield,s=18;return e==="sm"?(l=H.sm_textfield,s=14):e==="lg"&&(l=H.lg_textfield,s=24),t.jsx(M.TimeInput,{ref:o,className:l,size:e,..._,rightSection:t.jsx(r.ActionIcon,{onClick:()=>{o&&o?.current?.showPicker()},children:t.jsx("img",{width:s,src:ce,alt:"clock_icon"})})})},ge="data:image/svg+xml,%3csvg%20width='8'%20height='14'%20viewBox='0%200%208%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%201L1%207L7%2013'%20stroke='%23667085'/%3e%3c/svg%3e",me="data:image/svg+xml,%3csvg%20width='8'%20height='14'%20viewBox='0%200%208%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%201L7%207L1%2013'%20stroke='%23667085'/%3e%3c/svg%3e",$={pagination:"style-module__pagination___kYC1n",page_index:"style-module__page_index___OZss8",page_index_active:"style-module__page_index_active___vi0-E",arrow:"style-module__arrow___pSNRc"},fe=({currentPageIdx:e,rowsPerPage:_,totalLength:o,paginationSize:l,onPageChange:s,...c})=>{const[i,a]=f.useState(e),[n,h]=f.useState(50),[m,p]=f.useState(1),[g,y]=f.useState(5);f.useMemo(()=>{a(e),h(_||50),p(o||1),y(l||5)},[e,_,o,l]);const C=()=>{s&&s(i-(i%g+1)),a(B=>B-(B%g+1))},v=()=>{s&&s(i+g-i%g),a(B=>B+g-B%g)};return t.jsxs("div",{...c,className:$.pagination,children:[i>=g?t.jsx("button",{className:$.arrow,onClick:C,children:t.jsx("img",{src:ge,alt:"prev"})}):null,new Array(g).fill(0).map((B,w)=>{const k=Math.floor(i/g)*g+w+1;if(!(k>Math.ceil(m/n)))return t.jsx("button",{className:i===k-1?$.page_index_active:$.page_index,onClick:()=>{a(k-1),s&&s(k-1)},children:k},`pagination_${w}`)}),Math.floor(i/g)*g+g<Math.ceil(m/n)?t.jsx("button",{className:$.arrow,onClick:v,children:t.jsx("img",{src:me,alt:"next"})}):null]})},ot={tab_title_list:"styles-module__tab_title_list___b6YAl",border_bottom:"styles-module__border_bottom___mZKE9"},ue=({tabList:e=[],containerPaddingTop:_,...o})=>t.jsxs(r.Tabs,{...o,children:[t.jsx(r.Tabs.List,{className:ot.tab_title_list,children:e?.map((l,s)=>t.jsxs(r.Tabs.Tab,{value:l.value,leftSection:l.icon,children:[l.title,t.jsx("div",{className:ot.border_bottom})]},`tab_${s}`))}),e?.map((l,s)=>t.jsx(r.Tabs.Panel,{value:l.value,pt:_,children:l.body},`tab_panel_${s}`))]}),A={sm_segment_button:"styles-module__sm_segment_button___-neWq",md_segment_button:"styles-module__md_segment_button___1xzQt",lg_segment_button:"styles-module__lg_segment_button___7OhhZ"},pe=({size:e="md",radius:_=6,...o})=>{let l=A.md_segment_button;return e==="sm"?l=A.sm_segment_button:e==="lg"&&(l=A.lg_segment_button),t.jsx(r.SegmentedControl,{className:l,size:e,radius:_,styles:{control:{borderWidth:"0 !important"}},...o})},be="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='9'%20cy='9'%20r='9'%20fill='%2330CC37'/%3e%3cpath%20d='M3.9375%209L7.51103%2012.375L14.0625%205.625'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",xe="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='9.5625'%20cy='9.5625'%20r='6.1875'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%200C4.03729%200%200%204.03729%200%209C0%2013.9627%204.03729%2018%209%2018C13.9627%2018%2018%2013.9627%2018%209C18%204.03729%2013.9627%200%209%200ZM9.00413%2011.9604C9.58966%2011.9604%2010.063%2012.4337%2010.063%2013.0192C10.063%2013.6047%209.58966%2014.078%209.00413%2014.078C8.4186%2014.078%207.94001%2013.6047%207.94001%2013.0192C7.94001%2012.4337%208.40907%2011.9604%208.99354%2011.9604H9.00413ZM8.99375%204.18659C9.43211%204.18659%209.78787%204.54235%209.78787%204.98071V9.65965C9.78787%2010.098%209.43211%2010.4538%208.99375%2010.4538C8.5554%2010.4538%208.19963%2010.098%208.19963%209.65965V4.98071C8.19963%204.54235%208.5554%204.18659%208.99375%204.18659Z'%20fill='%23FA5252'/%3e%3c/svg%3e",S={light_success:"styles-module__light_success___696tv",light_error:"styles-module__light_error___KqP2q",fill_success:"styles-module__fill_success___P2asv",fill_error:"styles-module__fill_error___e1KYC"},he=({visible:e=!1,type:_="success",variant:o="light",top:l=48,right:s=48,...c})=>{let i=S.light_success;return o==="fill"?_==="success"?i=S.fill_success:_==="error"&&(i=S.fill_error):_==="success"?i=S.light_success:_==="error"&&(i=S.light_error),e?t.jsx(r.Alert,{className:i,icon:t.jsx("img",{src:_==="success"?be:xe,alt:"alert_icon"}),styles:{title:{marginBottom:c?.children?void 0:0}},pos:"fixed",top:l,right:s,...c}):null},W={tooltip_body:"styles-module__tooltip_body___3s5ij",tooltip_title:"styles-module__tooltip_title___glF9X",tooltip_content:"styles-module__tooltip_content___o94IZ"},ye=({title:e,content:_,maw:o=280,multiline:l=!0,...s})=>t.jsx(r.Tooltip,{...s,maw:o,multiline:l,label:t.jsxs("div",{className:W.tooltip_body,children:[e&&t.jsx("span",{className:W.tooltip_title,children:e}),t.jsx("span",{className:W.tooltip_content,children:_})]})}),Ce=({size:e="md",width:_,withCloseButton:o=!1,...l})=>{let s=768;return e==="xs"?s=360:e==="sm"?s=544:e==="lg"?s=1e3:e==="xl"&&(s=1200),t.jsx(r.Modal,{size:_||s,withCloseButton:o,...l})},P={image_uploader:"styles-module__image_uploader___yzVim",preview:"styles-module__preview___nA1QH",image_uploader_wrapper:"styles-module__image_uploader_wrapper___0EZ7A",file_clear_button:"styles-module__file_clear_button___kEABJ"},Be="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='8'%20y='8'%20width='32'%20height='32'%20rx='4'%20stroke='%2307A3C6'%20stroke-width='2'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.4436%2016.8886C20.4436%2018.8532%2018.8527%2020.4441%2016.8881%2020.4441C14.9254%2020.4441%2013.3325%2018.8532%2013.3325%2016.8886C13.3325%2014.924%2014.9254%2013.333%2016.8881%2013.333C18.8508%2013.3349%2020.4417%2014.9259%2020.4436%2016.8886Z'%20stroke='%2307A3C6'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8%2032.8893L12.8471%2029.254C14.2038%2028.2365%2016.0548%2028.1851%2017.4659%2029.1258L17.9594%2029.4548C19.4333%2030.4375%2021.378%2030.3336%2022.7389%2029.1995L28.7618%2024.1804C30.1486%2023.0248%2032.1375%2022.9412%2033.6164%2023.9764L40%2028.4449'%20stroke='%2307A3C6'%20stroke-width='2'/%3e%3c/svg%3e",we="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='9'%20cy='9'%20r='9'%20fill='%239B9B9B'/%3e%3cpath%20d='M6%206L12%2012'%20stroke='white'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3cpath%20d='M12%206L6%2012'%20stroke='white'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3c/svg%3e",ke=({width:e,height:_,defaultMsg:o="이미지 업로드",file:l,onDrop:s,showClearButton:c,onClear:i,...a})=>{const[n,h]=f.useState(l),m=f.useCallback(()=>{h(void 0),i&&i()},[i]);return t.jsxs("div",{className:P.image_uploader_wrapper,children:[c&&n?t.jsx("div",{className:P.file_clear_button,onClick:m,children:t.jsx("img",{src:we,alt:"clear_file_data"})}):null,t.jsx(j.Dropzone,{...a,maxFiles:1,className:P.image_uploader,accept:j.IMAGE_MIME_TYPE,onDrop:p=>{h(p[0]),s&&s(p)},style:{width:e,height:_},children:t.jsx(t.Fragment,{children:n?t.jsx("img",{className:P.preview,src:typeof n=="string"?n:URL.createObjectURL(n),alt:`파일명: ${typeof n=="string"?n:n.name}`,title:`파일명: ${typeof n=="string"?n:n.name}`}):t.jsxs("div",{children:[t.jsx("img",{src:Be,alt:"ic_image_colored"}),t.jsx("span",{children:o})]})})})]})};Object.defineProperty(d,"PopUiProvider",{enumerable:!0,get:()=>r.MantineProvider}),d.Alert=he,d.Button=Rt,d.Checkbox=re,d.DatePicker=de,d.Dropdown=_e,d.ImageUploader=ke,d.Modal=Ce,d.Pagination=fe,d.Radio=ie,d.SearchBar=oe,d.SegmentButton=pe,d.Tab=ue,d.TextField=te,d.TimePicker=ae,d.Toggle=ne,d.Tooltip=ye,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
@@ -9,6 +9,7 @@ import { HTMLAttributes } from 'react';
9
9
  import { InputProps } from '@mantine/core';
10
10
  import { JSX } from 'react/jsx-runtime';
11
11
  import { ModalProps as ModalProps_2 } from '@mantine/core';
12
+ import { MantineProvider as PopUiProvider } from '@mantine/core';
12
13
  import { RadioProps as RadioProps_2 } from '@mantine/core';
13
14
  import { ReactNode } from 'react';
14
15
  import { SegmentedControlProps } from '@mantine/core';
@@ -28,7 +29,7 @@ declare interface AlertProps extends AlertProps_2 {
28
29
  title?: string;
29
30
  }
30
31
 
31
- export declare function Button({ children, size, styleType, isLoading, disabled, ...props }: IButtonProps): JSX.Element;
32
+ export declare function Button({ children, size, variant, isLoading, disabled, ...props }: IButtonProps): JSX.Element;
32
33
 
33
34
  export declare const Checkbox: ({ size, ...props }: CheckboxProps) => JSX.Element;
34
35
 
@@ -60,10 +61,10 @@ declare interface DatePickerProps extends DatePickerInputProps {
60
61
 
61
62
  export declare const Dropdown: ({ label, labelPosition, size, required, tooltip, tooltipPosition, errorMsg, description, ...props }: SearchBarProps_2) => JSX.Element;
62
63
 
63
- declare interface IButtonProps extends ButtonProps {
64
+ declare interface IButtonProps extends Omit<ButtonProps, 'variant' | 'styles'> {
64
65
  onClick?: () => void;
65
66
  size?: TButtonSize;
66
- styleType?: TButtonVariant;
67
+ variant?: TButtonVariant;
67
68
  isLoading?: boolean;
68
69
  }
69
70
 
@@ -95,6 +96,8 @@ declare interface PaginationProps extends HTMLAttributes<HTMLDivElement> {
95
96
  onPageChange?: (e: number) => void;
96
97
  }
97
98
 
99
+ export { PopUiProvider }
100
+
98
101
  export declare const Radio: ({ size, ...props }: RadioProps) => JSX.Element;
99
102
 
100
103
  declare interface RadioProps extends RadioProps_2 {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pop-ui/core",
3
3
  "type": "module",
4
- "version": "0.0.18",
4
+ "version": "0.0.21",
5
5
  "main": "./dist/core.umd.cjs",
6
6
  "module": "./dist/core.js",
7
7
  "types": "./dist/types/index.d.ts",
@@ -70,7 +70,7 @@
70
70
  "@tiptap/core": "^3.9.1",
71
71
  "@tiptap/extension-link": "^3.9.1",
72
72
  "@tiptap/pm": "^3.9.1",
73
- "@tiptap/react": "^3.9.0",
73
+ "@tiptap/react": "^3.9.1",
74
74
  "@tiptap/starter-kit": "^3.9.1",
75
75
  "@types/node": "^24.9.2",
76
76
  "@types/react": "^19.2.2",
@@ -95,5 +95,5 @@
95
95
  "typescript": "^5.9.3",
96
96
  "vite": "^7.1.12"
97
97
  },
98
- "gitHead": "4c93386c28f983aabd31ef3c4ef983b49b803700"
98
+ "gitHead": "a896f83de9600ef14c080ee0aeb981a36924ecb0"
99
99
  }