@pop-ui/core 0.0.16 → 0.0.20
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.css +8688 -0
- package/dist/core.js +218 -216
- package/dist/core.umd.cjs +1 -1
- package/dist/types/index.d.ts +3 -0
- package/package.json +7 -6
- package/dist/assets/core-CLrOLE_3.css +0 -1
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(a,i){typeof exports=="object"&&typeof module<"u"?i(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"],i):(a=typeof globalThis<"u"?globalThis:a||self,i(a.Core={},a.core,a.jsxRuntime,a.React,null,a.dates,a.dropzone))})(this,function(a,i,t,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",U={primary:S,primaryLine:"#0fd3d8",basic:"#4a4a4a",danger:S,setting:S,warning:S};function Q({children:e,size:o="md",styleType:_="primary",isLoading:l=!1,disabled:s=!1,...r}){const d=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[_]]}`},[o,_]),c=U[_],n=p.useMemo(()=>{switch(o){case"lg":return 18;case"sm":return 14;case"md":default:return 16}},[o]);return t.jsx(i.Button,{type:"button",className:d,disabled:s||l,...r,children:l?t.jsx(i.Loader,{color:c,size:n}):e})}const P="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:_="top",size:l="md",required:s,tooltip:r,tooltipPosition:d="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:_==="top"?u.top_label_textfield:u.left_label_textfield,children:[t.jsxs("div",{children:[o&&t.jsx(i.Input.Label,{required:s,className:v,children:o}),r&&t.jsx(i.Tooltip,{label:r,position:d,children:t.jsx("img",{className:z,src:P,alt:"tooltip_icon"})})]}),t.jsxs("div",{children:[t.jsxs("div",{className:u.textfield_wrapper,children:[x?t.jsx(i.Textarea,{className:u.textarea,size:l,minRows:w,error:c,onChange:W,disabled:y?.disabled,...y}):t.jsx(i.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(i.Input.Description,{className:u.input_description,children:n}),c&&t.jsx(i.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:_="md",required:l,tooltip:s,tooltipPosition:r="top",errorMsg:d,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;_==="sm"?(y=h.sm_label,w=h.sm_textfield,C=h.sm_tooltip):_==="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(i.Input.Label,{required:l,className:y,children:e}),s&&t.jsx(i.Tooltip,{label:s,position:r,children:t.jsx("img",{className:C,src:P,alt:"tooltip_icon"})})]}),t.jsxs("div",{children:[t.jsx("div",{className:h.textfield_wrapper,children:t.jsx(i.Autocomplete,{...g,size:_,error:d,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(i.Input.Description,{className:h.input_description,children:c}),d&&t.jsx(i.Input.Error,{className:h.input_error_msg,children:d})]})]})},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:_="md",required:l,tooltip:s,tooltipPosition:r="top",errorMsg:d,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 _==="sm"?(f=b.sm_label,m=b.sm_textfield,y=b.sm_tooltip,w=14):_==="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(i.Input.Label,{required:l,className:f,children:e}),s&&t.jsx(i.Tooltip,{label:s,position:r,children:t.jsx("img",{className:y,src:P,alt:"tooltip_icon"})})]}),t.jsxs("div",{children:[t.jsx(i.Select,{...n,size:_,error:d,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(i.Input.Description,{className:b.input_description,children:c}),d&&t.jsx(i.Input.Error,{className:b.input_error_msg,children:d})]})]})},Y={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 _=Y.md_checkbox,l=24;return e==="sm"?(_=Y.sm_checkbox,l=18):e==="lg"&&(_=Y.lg_checkbox,l=32),t.jsx(i.Checkbox,{className:_,styles:{inner:{width:l,height:l}},...o})},I={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 _=I.md_radio;return e==="sm"?_=I.sm_radio:e==="lg"&&(_=I.lg_radio),t.jsx(i.Radio,{className:_,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"},_t=({size:e="md",labelPosition:o="right",disabled:_,onChange:l,...s})=>{const[r,d]=p.useState(s?.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),d(g?.target?.checked)},[l]);return t.jsx(i.Switch,{className:c,size:e,labelPosition:o,disabled:_,onChange:x,styles:()=>({track:{backgroundColor:!_&&r?"#0fd3d8 !important":void 0,borderColor:!_&&r?"#0fd3d8 !important":void 0,width:n}}),...s})},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"},st=({size:e="md",type:o="default",withTime:_,...l})=>{let s=A.md_textfield,r=18;return e==="sm"?(s=A.sm_textfield,r=14):e==="lg"&&(s=A.lg_textfield,r=24),_?t.jsx(T.DateTimePicker,{className:s,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:s,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 _=p.useRef(null);let l=Z.md_textfield,s=18;return e==="sm"?(l=Z.sm_textfield,s=14):e==="lg"&&(l=Z.lg_textfield,s=24),t.jsx(T.TimeInput,{ref:_,className:l,size:e,...o,rightSection:t.jsx(i.ActionIcon,{onClick:()=>{_&&_?.current?.showPicker()},children:t.jsx("img",{width:s,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:_,paginationSize:l,onPageChange:s,...r})=>{const[d,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(_||1),y(l||5)},[e,o,_,l]);const w=()=>{s&&s(d-(d%m+1)),c(k=>k-(k%m+1))},C=()=>{s&&s(d+m-d%m),c(k=>k+m-k%m)};return t.jsxs("div",{...r,className:B.pagination,children:[d>=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(d/m)*m+v+1;if(!($>Math.ceil(g/n)))return t.jsx("button",{className:d===$-1?B.page_index_active:B.page_index,onClick:()=>{c($-1),s&&s($-1)},children:$},`pagination_${v}`)}),Math.floor(d/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,..._})=>t.jsxs(i.Tabs,{..._,children:[t.jsx(i.Tabs.List,{className:H.tab_title_list,children:e?.map((l,s)=>t.jsxs(i.Tabs.Tab,{value:l.value,leftSection:l.icon,children:[l.title,t.jsx("div",{className:H.border_bottom})]},`tab_${s}`))}),e?.map((l,s)=>t.jsx(i.Tabs.Panel,{value:l.value,pt:o,children:l.body},`tab_panel_${s}`))]}),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,..._})=>{let l=F.md_segment_button;return e==="sm"?l=F.sm_segment_button:e==="lg"&&(l=F.lg_segment_button),t.jsx(i.SegmentedControl,{className:l,size:e,radius:o,styles:{control:{borderWidth:"0 !important"}},..._})},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:_="light",top:l=48,right:s=48,...r})=>{let d=N.light_success;return _==="fill"?o==="success"?d=N.fill_success:o==="error"&&(d=N.fill_error):o==="success"?d=N.light_success:o==="error"&&(d=N.light_error),e?t.jsx(i.Alert,{className:d,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:s,...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:_=280,multiline:l=!0,...s})=>t.jsx(i.Tooltip,{...s,maw:_,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:_=!1,...l})=>{let s=768;return e==="xs"?s=360:e==="sm"?s=544:e==="lg"?s=1e3:e==="xl"&&(s=1200),t.jsx(i.Modal,{size:o||s,withCloseButton:_,...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:_="이미지 업로드",file:l,onDrop:s,showClearButton:r,onClear:d,...c})=>{const[n,x]=p.useState(l),g=p.useCallback(()=>{x(void 0),d&&d()},[d]);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]),s&&s(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:_})]})})})]})};Object.defineProperty(a,"PopUiProvider",{enumerable:!0,get:()=>i.MantineProvider}),a.Alert=pt,a.Button=Q,a.Checkbox=et,a.DatePicker=st,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=_t,a.Tooltip=ut,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -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.
|
|
4
|
+
"version": "0.0.20",
|
|
5
5
|
"main": "./dist/core.umd.cjs",
|
|
6
6
|
"module": "./dist/core.js",
|
|
7
7
|
"types": "./dist/types/index.d.ts",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"@mantine/core": "^8.3.6",
|
|
47
47
|
"@mantine/dates": "^8.3.6",
|
|
48
48
|
"@mantine/dropzone": "^8.3.6",
|
|
49
|
+
"@mantine/hooks": "^8.3.6",
|
|
49
50
|
"dayjs": "^1.11.18"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|
|
@@ -66,11 +67,11 @@
|
|
|
66
67
|
"@mantine/spotlight": "^8.3.6",
|
|
67
68
|
"@mantine/tiptap": "^8.3.6",
|
|
68
69
|
"@tabler/icons-react": "^3.35.0",
|
|
69
|
-
"@tiptap/core": "^3.9.
|
|
70
|
-
"@tiptap/extension-link": "^3.9.
|
|
71
|
-
"@tiptap/pm": "^3.9.
|
|
70
|
+
"@tiptap/core": "^3.9.1",
|
|
71
|
+
"@tiptap/extension-link": "^3.9.1",
|
|
72
|
+
"@tiptap/pm": "^3.9.1",
|
|
72
73
|
"@tiptap/react": "^3.9.0",
|
|
73
|
-
"@tiptap/starter-kit": "^3.9.
|
|
74
|
+
"@tiptap/starter-kit": "^3.9.1",
|
|
74
75
|
"@types/node": "^24.9.2",
|
|
75
76
|
"@types/react": "^19.2.2",
|
|
76
77
|
"@types/react-dom": "^19.2.2",
|
|
@@ -94,5 +95,5 @@
|
|
|
94
95
|
"typescript": "^5.9.3",
|
|
95
96
|
"vite": "^7.1.12"
|
|
96
97
|
},
|
|
97
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "a939a0fa8690eae40d9bddbdee7c230d25a99b6a"
|
|
98
99
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@font-face{font-family:Pretendard;font-weight:500;font-style:normal;font-display:swap;src:url(./PretendardVariable.woff2) format("woff2-variations")}.styles-module__baseButton___unrW0{cursor:pointer}.styles-module__baseButton--sizeLg___bPUjP{font-family:Pretendard;font-size:18;font-weight:700;line-height:130%;height:50px;padding:20;border-radius:6px}.styles-module__baseButton--sizeMd___--uGZ{font-family:Pretendard;font-size:16;font-weight:SemiBold;line-height:130%;height:40px;padding:16;border-radius:6px}.styles-module__baseButton--sizeSm___tHRyb{font-family:Pretendard;font-size:14;font-weight:SemiBold;line-height:130%;height:30px;padding:12;border-radius:4px}.styles-module__baseButton--primary___s0JFt{background-color:#0fd3d8;color:#fff}.styles-module__baseButton--primary___s0JFt:focus{background-color:#11badd;color:#fff}.styles-module__baseButton--primary___s0JFt:hover{background-color:#11badd;color:#fff}.styles-module__baseButton--primary___s0JFt:active{background-color:#07a3c6;color:#fff}.styles-module__baseButton--primary___s0JFt:disabled{background-color:#b0b0b0;color:#fff}.styles-module__baseButton--primaryLine___fVpnP{background-color:#fff;color:#0fd3d8;border:1px solid #0fd3d8}.styles-module__baseButton--primaryLine___fVpnP:focus{background-color:#e7e7e7;color:#11badd;border-color:#11badd}.styles-module__baseButton--primaryLine___fVpnP:hover{background-color:#e7e7e7;color:#11badd;border-color:#11badd}.styles-module__baseButton--primaryLine___fVpnP:active{background-color:#cdcdcd;color:#07a3c6;border-color:#07a3c6}.styles-module__baseButton--primaryLine___fVpnP:disabled{background-color:#b0b0b0;color:#fff}.styles-module__baseButton--basic___9nyM-{background-color:#fff;color:#4a4a4a;border:1px solid #b0b0b0}.styles-module__baseButton--basic___9nyM-:focus{background-color:#e7e7e7;color:#4a4a4a;border-color:#b0b0b0}.styles-module__baseButton--basic___9nyM-:hover{background-color:#e7e7e7;color:#4a4a4a;border-color:#b0b0b0}.styles-module__baseButton--basic___9nyM-:active{background-color:#cdcdcd;color:#4a4a4a;border-color:#b0b0b0}.styles-module__baseButton--basic___9nyM-:disabled{background-color:#b0b0b0;color:#fff}.styles-module__baseButton--danger___tfxaF{background-color:#fa5252;color:#fff}.styles-module__baseButton--danger___tfxaF:focus{background-color:#e03131;color:#fff}.styles-module__baseButton--danger___tfxaF:hover{background-color:#e03131;color:#fff}.styles-module__baseButton--danger___tfxaF:active{background-color:#c92a2a;color:#fff}.styles-module__baseButton--danger___tfxaF:disabled{background-color:#b0b0b0;color:#fff}.styles-module__baseButton--setting___LDz2x{background-color:#9b9b9b;color:#fff}.styles-module__baseButton--setting___LDz2x:focus{background-color:gray;color:#fff}.styles-module__baseButton--setting___LDz2x:hover{background-color:gray;color:#fff}.styles-module__baseButton--setting___LDz2x:active{background-color:#666;color:#fff}.styles-module__baseButton--setting___LDz2x:disabled{background-color:#b0b0b0;color:#fff}.styles-module__baseButton--warning___hKAAj{background-color:#fa5252;color:#fff}.styles-module__baseButton--warning___hKAAj:focus{background-color:#e03131;color:#fff}.styles-module__baseButton--warning___hKAAj:hover{background-color:#e03131;color:#fff}.styles-module__baseButton--warning___hKAAj:active{background-color:#c92a2a;color:#fff}.styles-module__baseButton--warning___hKAAj:disabled{background-color:#b0b0b0;color:#fff}.styles-module__left_label_textfield___PO5VM{display:flex;flex-direction:row;gap:20px}.styles-module__top_label_textfield___qdd3L{display:flex;flex-direction:column}.styles-module__sm_label___GHuO5{font-family:Pretendard;font-size:14px;font-weight:600;letter-spacing:0em;text-align:left;margin:8px 3px}.styles-module__md_label___tSA7q{font-family:Pretendard;font-size:16px;font-weight:600;letter-spacing:0em;text-align:left;margin:12px 4px}.styles-module__lg_label___2dLzT{font-family:Pretendard;font-size:18px;font-weight:600;letter-spacing:0em;text-align:left;margin:16px 4px}.styles-module__sm_tooltip___TMegW{width:14px;height:14px}.styles-module__md_tooltip___rNo2j{width:16px;height:16px}.styles-module__lg_tooltip___MrP5P{width:18px;height:18px}.styles-module__textfield_wrapper___Vyo43{position:relative}.styles-module__text_counter___Ro-h4{position:absolute;bottom:-16px;right:0;font-family:Pretendard;font-size:12px;font-weight:500;letter-spacing:0em;text-align:right;color:gray}.styles-module__textarea___gYl17 textarea:hover{outline:1.5px solid #72eef1;border-color:transparent}.styles-module__textarea___gYl17 textarea:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__sm_textfield___Bd8Ei input{height:30px;min-height:30px;padding:8px;font-size:14px}.styles-module__sm_textfield___Bd8Ei input:hover{outline:1.5px solid #72eef1;border-color:transparent}.styles-module__sm_textfield___Bd8Ei input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__md_textfield___hd1CY input{height:40px;min-height:40px;padding:12px;font-size:14px}.styles-module__md_textfield___hd1CY input:hover{outline:1.5px solid #72eef1;border-color:transparent}.styles-module__md_textfield___hd1CY input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__lg_textfield___3nvf7 input{height:50px;min-height:50px;padding:16px;font-size:16px}.styles-module__lg_textfield___3nvf7 input:hover{outline:1.5px solid #72eef1;border-color:transparent}.styles-module__lg_textfield___3nvf7 input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__input_description___rT1V7{margin-top:8px}.styles-module__input_error_msg___YKVZp{margin-top:4px}.styles-module__clear_button___Z7xgY{display:flex;align-items:center;justify-content:center;cursor:pointer}.styles-module__left_label_textfield___KNg39{display:flex;flex-direction:row;gap:20px}.styles-module__top_label_textfield___plWi-{display:flex;flex-direction:column}.styles-module__sm_label___cDDwr{font-family:Pretendard;font-size:14px;font-weight:600;letter-spacing:0em;text-align:left;margin:8px 3px}.styles-module__md_label___CQRay{font-family:Pretendard;font-size:16px;font-weight:600;letter-spacing:0em;text-align:left;margin:12px 4px}.styles-module__lg_label___m3Xxi{font-family:Pretendard;font-size:18px;font-weight:600;letter-spacing:0em;text-align:left;margin:16px 4px}.styles-module__sm_tooltip___w6lav{width:14px;height:14px}.styles-module__md_tooltip___B4cfX{width:16px;height:16px}.styles-module__lg_tooltip___9-Nxt{width:18px;height:18px}.styles-module__textfield_wrapper___yQZ5S{position:relative}.styles-module__text_counter___IMvbp{position:absolute;bottom:-16px;right:0;font-family:Pretendard;font-size:12px;font-weight:500;letter-spacing:0em;text-align:right;color:gray}.styles-module__textarea___kydav textarea:hover{outline:1.5px solid #72eef1;border-color:transparent}.styles-module__textarea___kydav textarea:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__sm_textfield___gxtsR input{height:30px;min-height:30px;padding:8px;font-size:14px}.styles-module__sm_textfield___gxtsR input:hover{outline:1.5px solid #72eef1;border-color:transparent}.styles-module__sm_textfield___gxtsR input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__md_textfield___8ucoR input{height:40px;min-height:40px;padding:12px;font-size:14px}.styles-module__md_textfield___8ucoR input:hover{outline:1.5px solid #72eef1;border-color:transparent}.styles-module__md_textfield___8ucoR input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__lg_textfield___ZHlU2 input{height:50px;min-height:50px;padding:16px;font-size:16px}.styles-module__lg_textfield___ZHlU2 input:hover{outline:1.5px solid #72eef1;border-color:transparent}.styles-module__lg_textfield___ZHlU2 input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__input_description___zk91j{margin-top:8px}.styles-module__input_error_msg___aeTfS{margin-top:4px}.styles-module__clear_button___XFHzC{display:flex;align-items:center;justify-content:center;cursor:pointer}.styles-module__left_label_textfield___UhCQL{display:flex;flex-direction:row;gap:20px}.styles-module__top_label_textfield___JPXoC{display:flex;flex-direction:column}.styles-module__sm_label___B0s7a{font-family:Pretendard;font-size:14px;font-weight:600;letter-spacing:0em;text-align:left;margin:8px 3px}.styles-module__md_label___JcIkl{font-family:Pretendard;font-size:16px;font-weight:600;letter-spacing:0em;text-align:left;margin:12px 4px}.styles-module__lg_label___-NGe2{font-family:Pretendard;font-size:18px;font-weight:600;letter-spacing:0em;text-align:left;margin:16px 4px}.styles-module__sm_tooltip___8vbL2{width:14px;height:14px}.styles-module__md_tooltip___7vlZ9{width:16px;height:16px}.styles-module__lg_tooltip___QYczb{width:18px;height:18px}.styles-module__sm_textfield___kNlMo input{height:30px;padding:8px;font-size:14px;min-height:30px}.styles-module__sm_textfield___kNlMo input:hover{outline:1.5px solid #72eef1;border-color:transparent}.styles-module__sm_textfield___kNlMo input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__md_textfield___-sLZE input{height:40px;padding:12px;font-size:14px;min-height:40px}.styles-module__md_textfield___-sLZE input:hover{outline:1.5px solid #72eef1;border-color:transparent}.styles-module__md_textfield___-sLZE input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__lg_textfield___xVbCh input{height:50px;padding:16px;font-size:16px;min-height:50px}.styles-module__lg_textfield___xVbCh input:hover{outline:1.5px solid #72eef1;border-color:transparent}.styles-module__lg_textfield___xVbCh input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__input_description___pTq1F{margin-top:8px}.styles-module__input_error_msg___zAIoT{margin-top:4px}.styles-module__sm_checkbox___0JMac input:hover{background-color:#edfcff;border-color:#72eef1;border-width:2px}.styles-module__sm_checkbox___0JMac input:checked{background-color:#0fd3d8;border-color:#0fd3d8}.styles-module__sm_checkbox___0JMac input:disabled{background-color:#e7e7e7;border-color:#d8d8d8;border-width:2px}.styles-module__sm_checkbox___0JMac input{width:18px;height:18px}.styles-module__sm_checkbox___0JMac label{height:18px;color:#333;font-family:Pretendard;font-size:16px;font-style:normal;font-weight:500;display:flex;align-items:center}.styles-module__sm_checkbox___0JMac div{color:gray;font-family:Pretendard;font-size:12px;font-style:normal;font-weight:500}.styles-module__md_checkbox___aP9T1 input:hover{background-color:#edfcff;border-color:#72eef1;border-width:2px}.styles-module__md_checkbox___aP9T1 input:checked{background-color:#0fd3d8;border-color:#0fd3d8}.styles-module__md_checkbox___aP9T1 input:disabled{background-color:#e7e7e7;border-color:#d8d8d8;border-width:2px}.styles-module__md_checkbox___aP9T1 input{width:24px;height:24px}.styles-module__md_checkbox___aP9T1 label{height:24px;color:#333;font-family:Pretendard;font-size:18px;font-style:normal;font-weight:600;display:flex;align-items:center}.styles-module__md_checkbox___aP9T1 div{color:gray;font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500}.styles-module__lg_checkbox___CmiVr input:hover{background-color:#edfcff;border-color:#72eef1;border-width:2px}.styles-module__lg_checkbox___CmiVr input:checked{background-color:#0fd3d8;border-color:#0fd3d8}.styles-module__lg_checkbox___CmiVr input:disabled{background-color:#e7e7e7;border-color:#d8d8d8;border-width:2px}.styles-module__lg_checkbox___CmiVr input{width:32px;height:32px}.styles-module__lg_checkbox___CmiVr label{height:32px;color:#333;font-family:Pretendard;font-size:24px;font-style:normal;font-weight:700;display:flex;align-items:center}.styles-module__lg_checkbox___CmiVr div{color:gray;font-family:Pretendard;font-size:16px;font-style:normal;font-weight:500}.styles-module__sm_radio___jQtvO input:hover{background-color:#edfcff;border-color:#72eef1;border-width:2px}.styles-module__sm_radio___jQtvO input:checked{background-color:#0fd3d8;border-color:#0fd3d8}.styles-module__sm_radio___jQtvO input:disabled{background-color:#e7e7e7;border-color:#d8d8d8;border-width:2px}.styles-module__sm_radio___jQtvO input{width:18px;height:18px}.styles-module__sm_radio___jQtvO label{height:18px;color:#333;font-family:Pretendard;font-size:16px;font-style:normal;font-weight:500;display:flex;align-items:center}.styles-module__sm_radio___jQtvO div{color:gray;font-family:Pretendard;font-size:12px;font-style:normal;font-weight:500}.styles-module__md_radio___h-OD5 input:hover{background-color:#edfcff;border-color:#72eef1;border-width:2px}.styles-module__md_radio___h-OD5 input:checked{background-color:#0fd3d8;border-color:#0fd3d8}.styles-module__md_radio___h-OD5 input:disabled{background-color:#e7e7e7;border-color:#d8d8d8;border-width:2px}.styles-module__md_radio___h-OD5 input{width:24px;height:24px}.styles-module__md_radio___h-OD5 label{height:24px;color:#333;font-family:Pretendard;font-size:18px;font-style:normal;font-weight:600;display:flex;align-items:center}.styles-module__md_radio___h-OD5 div{color:gray;font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500}.styles-module__lg_radio___XdzaN input:hover{background-color:#edfcff;border-color:#72eef1;border-width:2px}.styles-module__lg_radio___XdzaN input:checked{background-color:#0fd3d8;border-color:#0fd3d8}.styles-module__lg_radio___XdzaN input:disabled{background-color:#e7e7e7;border-color:#d8d8d8;border-width:2px}.styles-module__lg_radio___XdzaN input{width:32px;height:32px}.styles-module__lg_radio___XdzaN label{height:32px;color:#333;font-family:Pretendard;font-size:24px;font-style:normal;font-weight:700;display:flex;align-items:center}.styles-module__lg_radio___XdzaN div{color:gray;font-family:Pretendard;font-size:16px;font-style:normal;font-weight:500}.styles-module__sm_toggle___Mabl5 label{height:18px;color:#333;font-family:Pretendard;font-size:16px;font-style:normal;font-weight:500;display:flex;align-items:center}.styles-module__sm_toggle___Mabl5 div{color:gray;font-family:Pretendard;font-size:12px;font-style:normal;font-weight:500}.styles-module__md_toggle___6mSJO label{height:24px;color:#333;font-family:Pretendard;font-size:18px;font-style:normal;font-weight:600;display:flex;align-items:center}.styles-module__md_toggle___6mSJO div{color:gray;font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500}.styles-module__lg_toggle___Dv7k7 label{height:32px;color:#333;font-family:Pretendard;font-size:24px;font-style:normal;font-weight:700;display:flex;align-items:center}.styles-module__lg_toggle___Dv7k7 div{color:gray;font-family:Pretendard;font-size:16px;font-style:normal;font-weight:500}.styles-module__sm_textfield___EtBYr button{height:30px;min-height:30px;padding:8px;font-size:14px;line-height:100%}.styles-module__sm_textfield___EtBYr button:hover{outline:1.5px solid #72eef1;border-color:transparent;background-color:#fff}.styles-module__sm_textfield___EtBYr button:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__sm_textfield___EtBYr button[data-in-range]{background-color:#edfcff}.styles-module__sm_textfield___EtBYr button[data-selected]{background-color:#0fd3d8}.styles-module__sm_textfield___EtBYr button[data-selected]:hover{outline:1.5px solid #72eef1;background-color:#edfcff;color:#000;border-color:transparent}.styles-module__sm_textfield___EtBYr input:hover{outline:1.5px solid #72eef1;border-color:transparent;background-color:#fff}.styles-module__sm_textfield___EtBYr input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__sm_textfield___EtBYr input[data-in-range]{background-color:#edfcff}.styles-module__sm_textfield___EtBYr input[data-selected]{background-color:#0fd3d8}.styles-module__sm_textfield___EtBYr input[data-selected]:hover{outline:1.5px solid #72eef1;background-color:#edfcff;color:#000;border-color:transparent}.styles-module__md_textfield___Lzjxb button{height:40px;min-height:40px;padding:12px;font-size:14px;line-height:100%}.styles-module__md_textfield___Lzjxb button:hover{outline:1.5px solid #72eef1;border-color:transparent;background-color:#fff}.styles-module__md_textfield___Lzjxb button:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__md_textfield___Lzjxb button[data-in-range]{background-color:#edfcff}.styles-module__md_textfield___Lzjxb button[data-selected]{background-color:#0fd3d8}.styles-module__md_textfield___Lzjxb button[data-selected]:hover{outline:1.5px solid #72eef1;background-color:#edfcff;color:#000;border-color:transparent}.styles-module__md_textfield___Lzjxb input:hover{outline:1.5px solid #72eef1;border-color:transparent;background-color:#fff}.styles-module__md_textfield___Lzjxb input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__md_textfield___Lzjxb input[data-in-range]{background-color:#edfcff}.styles-module__md_textfield___Lzjxb input[data-selected]{background-color:#0fd3d8}.styles-module__md_textfield___Lzjxb input[data-selected]:hover{outline:1.5px solid #72eef1;background-color:#edfcff;color:#000;border-color:transparent}.styles-module__lg_textfield___Zc8R8 button{height:50px;min-height:50px;padding:16px;font-size:16px;line-height:100%}.styles-module__lg_textfield___Zc8R8 button:hover{outline:1.5px solid #72eef1;border-color:transparent;background-color:#fff}.styles-module__lg_textfield___Zc8R8 button:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__lg_textfield___Zc8R8 button[data-in-range]{background-color:#edfcff}.styles-module__lg_textfield___Zc8R8 button[data-selected]{background-color:#0fd3d8}.styles-module__lg_textfield___Zc8R8 button[data-selected]:hover{outline:1.5px solid #72eef1;background-color:#edfcff;color:#000;border-color:transparent}.styles-module__lg_textfield___Zc8R8 input:hover{outline:1.5px solid #72eef1;border-color:transparent;background-color:#fff}.styles-module__lg_textfield___Zc8R8 input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__lg_textfield___Zc8R8 input[data-in-range]{background-color:#edfcff}.styles-module__lg_textfield___Zc8R8 input[data-selected]{background-color:#0fd3d8}.styles-module__lg_textfield___Zc8R8 input[data-selected]:hover{outline:1.5px solid #72eef1;background-color:#edfcff;color:#000;border-color:transparent}.styles-module__sm_textfield___sNGu- input{height:30px;min-height:30px;padding:8px;font-size:14px;line-height:100%}.styles-module__sm_textfield___sNGu- input:hover{outline:1.5px solid #72eef1;border-color:transparent;background-color:#fff}.styles-module__sm_textfield___sNGu- input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__md_textfield___0bonT input{height:40px;min-height:40px;padding:12px;font-size:14px;line-height:100%}.styles-module__md_textfield___0bonT input:hover{outline:1.5px solid #72eef1;border-color:transparent;background-color:#fff}.styles-module__md_textfield___0bonT input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}.styles-module__lg_textfield___v-WEc input{height:50px;min-height:50px;padding:16px;font-size:16px;line-height:100%}.styles-module__lg_textfield___v-WEc input:hover{outline:1.5px solid #72eef1;border-color:transparent;background-color:#fff}.styles-module__lg_textfield___v-WEc input:focus-within{outline:1.5px solid #0fd3d8;border-color:transparent}@font-face{font-family:Pretendard;font-weight:500;font-style:normal;font-display:swap;src:url(./PretendardVariable.woff2) format("woff2-variations")}.style-module__pagination___kYC1n{display:flex;flex-direction:row;width:100%;align-items:center;justify-content:center;flex-wrap:wrap}.style-module__pagination___kYC1n .style-module__page_index___OZss8{display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;border-radius:8px;gap:10px;font-family:Pretendard;font-size:14px;font-weight:400;letter-spacing:0px;text-align:center;color:gray;border:none;cursor:pointer}.style-module__pagination___kYC1n .style-module__page_index___OZss8:hover{background-color:#f6f6f6}.style-module__pagination___kYC1n .style-module__page_index___OZss8:active{background-color:#e7e7e7}.style-module__pagination___kYC1n .style-module__page_index___OZss8{background-color:#fff0}.style-module__pagination___kYC1n .style-module__page_index_active___vi0-E{display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;border-radius:8px;gap:10px;font-family:Pretendard;font-size:14px;font-weight:400;letter-spacing:0px;text-align:center;color:gray;border:none;cursor:pointer}.style-module__pagination___kYC1n .style-module__page_index_active___vi0-E:hover{background-color:#f6f6f6}.style-module__pagination___kYC1n .style-module__page_index_active___vi0-E:active{background-color:#e7e7e7}.style-module__pagination___kYC1n .style-module__page_index_active___vi0-E{font-weight:700;background-color:#e7e7e7;color:#4a4a4a}.style-module__pagination___kYC1n .style-module__arrow___pSNRc{display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;border-radius:8px;gap:10px;font-family:Pretendard;font-size:14px;font-weight:400;letter-spacing:0px;text-align:center;color:gray;border:none;cursor:pointer}.style-module__pagination___kYC1n .style-module__arrow___pSNRc:hover{background-color:#f6f6f6}.style-module__pagination___kYC1n .style-module__arrow___pSNRc:active{background-color:#e7e7e7}.style-module__pagination___kYC1n .style-module__arrow___pSNRc{border:1px solid #b0b0b0;margin:0 8px;width:40px;height:40px;background-color:#fff}.styles-module__tab_title_list___b6YAl{border-bottom:2px solid #d8d8d8}.styles-module__tab_title_list___b6YAl button{margin-bottom:7px;display:flex;align-items:center;text-align:center;font-family:Pretendard;font-size:18px;font-style:normal;font-weight:700;height:50px;color:#b0b0b0;border-radius:6px;border:none;padding:0 20px;cursor:pointer}.styles-module__tab_title_list___b6YAl button:hover{background-color:#f6f6f6}.styles-module__tab_title_list___b6YAl button .styles-module__border_bottom___mZKE9{position:absolute;bottom:-9px;left:0;width:100%}.styles-module__tab_title_list___b6YAl button[data-active]{position:relative;color:#006180}.styles-module__tab_title_list___b6YAl button[data-active] .styles-module__border_bottom___mZKE9{position:absolute;bottom:-9px;left:0;width:100%;border-bottom:2px solid #006180;border-color:#006180}.styles-module__sm_segment_button___-neWq label{box-sizing:border-box;display:flex;align-items:center;color:#9b9b9b}.styles-module__sm_segment_button___-neWq label[data-active]{color:#4a4a4a}.styles-module__sm_segment_button___-neWq label{height:30px;padding:0 8px;font-size:14px}.styles-module__md_segment_button___1xzQt label{box-sizing:border-box;display:flex;align-items:center;color:#9b9b9b}.styles-module__md_segment_button___1xzQt label[data-active]{color:#4a4a4a}.styles-module__md_segment_button___1xzQt label{height:40px;padding:0 12px;font-size:14px}.styles-module__lg_segment_button___7OhhZ label{box-sizing:border-box;display:flex;align-items:center;color:#9b9b9b}.styles-module__lg_segment_button___7OhhZ label[data-active]{color:#4a4a4a}.styles-module__lg_segment_button___7OhhZ label{height:50px;padding:0 16px;font-size:16px}.styles-module__light_success___696tv{background-color:#efffef;border-radius:6px;border:1.5px solid #30cc37}.styles-module__light_success___696tv span{font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500;line-height:150%;color:#30cc37}.styles-module__light_success___696tv div{color:#333;font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.styles-module__light_error___KqP2q{background-color:#fef3f2;border-radius:6px;border:1.5px solid #fa5252}.styles-module__light_error___KqP2q span{font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500;line-height:150%;color:#fa5252}.styles-module__light_error___KqP2q div{color:#333;font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.styles-module__fill_success___P2asv{background-color:#d1fcd3;border-radius:6px}.styles-module__fill_success___P2asv span{font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500;line-height:150%;color:#30cc37}.styles-module__fill_success___P2asv div{color:#333;font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.styles-module__fill_error___e1KYC{background-color:#fee4e2;border-radius:6px}.styles-module__fill_error___e1KYC span{font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500;line-height:150%;color:#fa5252}.styles-module__fill_error___e1KYC div{color:#333;font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.styles-module__tooltip_body___3s5ij{display:flex;flex-direction:column}.styles-module__tooltip_title___glF9X{font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500;line-height:150%;color:#fff;margin-bottom:8px}.styles-module__tooltip_content___o94IZ{font-family:Pretendard;font-size:14px;font-style:normal;font-weight:500;line-height:150%;color:#fff}.styles-module__image_uploader___yzVim{width:200px;height:200px;border:none;border-radius:6px;background-color:#edfcff;padding:0;overflow:hidden}.styles-module__image_uploader___yzVim[data-accept]{opacity:.7}.styles-module__image_uploader___yzVim:hover{background-color:#c8fdff}.styles-module__image_uploader___yzVim .styles-module__preview___nA1QH{object-fit:cover;width:100%;height:100%}.styles-module__image_uploader___yzVim div{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:12px}.styles-module__image_uploader___yzVim div span{color:#07a3c6;text-align:center;font-family:Pretendard;font-size:16px;font-style:normal;font-weight:500;line-height:140%}.styles-module__image_uploader_wrapper___0EZ7A{position:relative;width:fit-content;height:fit-content}.styles-module__image_uploader_wrapper___0EZ7A .styles-module__file_clear_button___kEABJ{position:absolute;display:flex;align-items:center;justify-content:center;top:-12px;right:-12px;width:24px;height:24px;z-index:1;cursor:pointer}.styles-module__image_uploader_wrapper___0EZ7A .styles-module__file_clear_button___kEABJ:hover{opacity:.9}
|