@youngduck/yd-ui 0.13.1 → 0.14.1

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.
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),n=require("react");const r=n.createContext({overlays:new Map,mount:()=>{},unmount:()=>{}});function t(e){var n,r,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(r=t(e[n]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}const s=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=function(){for(var e,n,r=0,s="",o=arguments.length;r<o;r++)(e=arguments[r])&&(n=t(e))&&(s&&(s+=" "),s+=n);return s},l=(a="yds-modal z-modal",i={variants:{size:{sm:"yds-modal-size-sm",md:"yds-modal-size-md",lg:"yds-modal-size-lg",xl:"yds-modal-size-xl"}}},e=>{var n;if(null==(null==i?void 0:i.variants))return o(a,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:r,defaultVariants:t}=i,l=Object.keys(r).map(n=>{const o=null==e?void 0:e[n],l=null==t?void 0:t[n];if(null===o)return null;const a=s(o)||s(l);return r[n][a]}),d=e&&Object.entries(e).reduce((e,n)=>{let[r,t]=n;return void 0===t||(e[r]=t),e},{}),c=null==i||null===(n=i.compoundVariants)||void 0===n?void 0:n.reduce((e,n)=>{let{class:r,className:s,...o}=n;return Object.entries(o).every(e=>{let[n,r]=e;return Array.isArray(r)?r.includes({...t,...d}[n]):{...t,...d}[n]===r})?[...e,r,s]:e},[]);return o(a,l,c,null==e?void 0:e.class,null==e?void 0:e.className)});var a,i;const d=({onClose:n,children:r,size:t})=>e.jsx("div",{className:"yds-modal-backdrop z-modal-backdrop",onClick:e=>{e.target===e.currentTarget&&n()},children:e.jsx("div",{className:l({size:t}),children:r})});d.displayName="Modal";exports.OverlayProvider=({children:t})=>{const[s,o]=n.useState(new Map),l={overlays:s,mount:e=>{o(n=>new Map(n).set(e.id,e.component))},unmount:e=>{o(n=>{const r=new Map(n);return r.delete(e),r})}};return e.jsxs(r.Provider,{value:l,children:[t,e.jsx("div",{children:Array.from(s.entries()).map(([n,r])=>e.jsx("div",{children:r},n))})]})},exports.useOverlay=()=>{const t=n.useContext(r),{mount:s,unmount:o}=t,[l,a]=n.useState(0);if(!t)throw new Error("useOverlay는 OverlayProvider 내에서만 사용할 수 있습니다.");const i=e=>{o(e)};return{modalOpen:n=>{const r=l+1;a(r);const t="function"==typeof n.content?n.content(()=>i(r)):n.content;s({id:r,component:e.jsx(d,{onClose:()=>i(r),size:n.config.size,children:t})})},modalClose:i,toastOpen:()=>{}}};
1
+ "use strict";var e=require("react/jsx-runtime"),n=require("react");const r=n.createContext({overlays:new Map,mount:()=>{},unmount:()=>{}});function o(e){var n,r,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var t=e.length;for(n=0;n<t;n++)e[n]&&(r=o(e[n]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}const a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,t=function(){for(var e,n,r=0,a="",t=arguments.length;r<t;r++)(e=arguments[r])&&(n=o(e))&&(a&&(a+=" "),a+=n);return a},i=(e,n)=>r=>{var o;if(null==(null==n?void 0:n.variants))return t(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:i,defaultVariants:s}=n,l=Object.keys(i).map(e=>{const n=null==r?void 0:r[e],o=null==s?void 0:s[e];if(null===n)return null;const t=a(n)||a(o);return i[e][t]}),c=r&&Object.entries(r).reduce((e,n)=>{let[r,o]=n;return void 0===o||(e[r]=o),e},{}),d=null==n||null===(o=n.compoundVariants)||void 0===o?void 0:o.reduce((e,n)=>{let{class:r,className:o,...a}=n;return Object.entries(a).every(e=>{let[n,r]=e;return Array.isArray(r)?r.includes({...s,...c}[n]):{...s,...c}[n]===r})?[...e,r,o]:e},[]);return t(e,l,d,null==r?void 0:r.class,null==r?void 0:r.className)},s=i("yds-button",{variants:{size:{sm:"w-20",md:"w-[120px]",lg:"w-40",full:"w-full"},variant:{fill:"",outlined:"bg-transparent border-2"},color:{primary:""},disabled:{true:"opacity-50 cursor-not-allowed"}},compoundVariants:[{variant:"fill",color:"primary",class:"yds-button-fill-primary"},{variant:"outlined",color:"primary",class:"yds-button-outlined-primary"}],defaultVariants:{size:"md",variant:"fill",color:"primary"}});function l({size:n="md",variant:r,color:o,children:a,className:t="",ref:i,disabled:l=!1,...c}){return e.jsx("button",{ref:i,className:`${s({size:n,variant:r,color:o,className:t,disabled:l})}`,tabIndex:l?-1:0,"aria-label":c["aria-label"]||("string"==typeof a?a:"button"),disabled:l,...c,children:a})}l.displayName="Button";const c=({title:n,description:r,confirmText:o,cancelText:a,onConfirm:t,onCancel:i})=>e.jsx("div",{className:"yds-confirm-dialog-backdrop",onClick:e=>{e.target===e.currentTarget&&i()},onKeyDown:e=>{"Escape"===e.key&&i()},role:"alertdialog","aria-modal":"true",tabIndex:-1,ref:e=>e?.focus(),children:e.jsxs("div",{className:"yds-confirm-dialog",children:[e.jsx("h2",{className:"yds-confirm-dialog-title",children:n}),r&&e.jsx("p",{className:"yds-confirm-dialog-description",children:r}),e.jsxs("div",{className:"yds-confirm-dialog-actions",children:[e.jsx(l,{variant:"outlined",color:"primary",size:"full",onClick:i,children:a}),e.jsx(l,{variant:"fill",color:"primary",size:"full",onClick:async()=>{await t(),i()},children:o})]})]})});c.displayName="ConfirmDialog";const d=i("yds-modal",{variants:{size:{sm:"yds-modal-size-sm",md:"yds-modal-size-md",lg:"yds-modal-size-lg",xl:"yds-modal-size-xl"}}}),u=({onClose:n,children:r,size:o})=>e.jsx("div",{className:"yds-modal-backdrop",onClick:e=>{e.target===e.currentTarget&&n()},onKeyDown:e=>{"Escape"===e.key&&n()},role:"dialog","aria-modal":"true",tabIndex:-1,ref:e=>e?.focus(),children:e.jsx("div",{className:d({size:o}),children:r})});u.displayName="Modal";const m=({content:r,duration:o,onDismiss:a})=>(n.useEffect(()=>{const e=setTimeout(a,o);return()=>clearTimeout(e)},[]),e.jsx("div",{className:"yds-toast-container",children:e.jsx("div",{className:"yds-toast",children:r})}));m.displayName="Toast";let f=0;exports.OverlayProvider=({children:o})=>{const[a,t]=n.useState(new Map),i={overlays:a,mount:e=>{t(n=>new Map(n).set(e.id,e.component))},unmount:e=>{t(n=>{const r=new Map(n);return r.delete(e),r})}};return e.jsxs(r.Provider,{value:i,children:[o,e.jsx("div",{children:Array.from(a.entries()).map(([n,r])=>e.jsx("div",{children:r},n))})]})},exports.useOverlay=()=>{const o=n.useContext(r);if(!o)throw new Error("useOverlay는 OverlayProvider 내에서만 사용할 수 있습니다.");const{mount:a,unmount:t}=o,i=e=>{t(e)};return{modalOpen:n=>{const r=++f,o="function"==typeof n.content?n.content(()=>i(r)):n.content;a({id:r,component:e.jsx(u,{onClose:()=>i(r),size:n.config.size,children:o})})},modalClose:i,toast:n=>{const r=++f;a({id:r,component:e.jsx(m,{content:n.content,duration:n.duration??2e3,onDismiss:()=>t(r)})})},confirmDialog:n=>{const r=++f;a({id:r,component:e.jsx(c,{title:n.title,description:n.description,confirmText:n.confirmText??"확인",cancelText:n.cancelText??"취소",onConfirm:n.onConfirm,onCancel:()=>{n.onCancel?.(),t(r)}})})}}};
2
2
  //# sourceMappingURL=Overlays.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Overlays.cjs.js","sources":["../src/components/Overlays/OverlayProvider.tsx","../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs","../src/components/Overlays/Modal/ModalTypes.ts","../src/components/Overlays/Modal/Modal.tsx","../src/components/Overlays/useOverlay.tsx"],"sourcesContent":[null,"function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n",null,null,null],"names":["OverlayContext","createContext","overlays","Map","mount","unmount","r","e","t","f","n","Array","isArray","o","length","falsyToString","value","cx","arguments","modalSizeVariants","base","config","variants","size","sm","md","lg","xl","props","_config_compoundVariants","class","className","defaultVariants","getVariantClassNames","Object","keys","map","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","entries","reduce","acc","param","key","undefined","getCompoundVariantClassNames","compoundVariants","cvClass","cvClassName","compoundVariantOptions","every","includes","Modal","onClose","children","_jsx","onClick","target","currentTarget","displayName","setOverlays","useState","contextValue","overlayConfig","prev","set","id","component","clonedMap","delete","_jsxs","Provider","from","context","useContext","activeOverlayId","setActiveOverlayId","Error","modalClose","modalOpen","modalData","content","toastOpen"],"mappings":"mEAaO,MAAMA,EAAiBC,EAAAA,cAI3B,CACDC,SAAU,IAAIC,IACdC,MAAO,OACPC,QAAS,SCpBX,SAASC,EAAEC,GAAG,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAG,iBAAiBH,GAAG,iBAAiBA,EAAEG,GAAGH,OAAO,GAAG,iBAAiBA,EAAE,GAAGI,MAAMC,QAAQL,GAAG,CAAC,IAAIM,EAAEN,EAAEO,OAAO,IAAIN,EAAE,EAAEA,EAAEK,EAAEL,IAAID,EAAEC,KAAKC,EAAEH,EAAEC,EAAEC,OAAOE,IAAIA,GAAG,KAAKA,GAAGD,EAAE,MAAM,IAAIA,KAAKF,EAAEA,EAAEE,KAAKC,IAAIA,GAAG,KA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O,CAAEa,UAvBUC,IACjB,MAAMd,EAAKS,EAAkB,EAC7BC,EAAmBV,GAEnB,MAAMe,EACyB,mBAAtBD,EAAUC,QAAyBD,EAAUC,QAAQ,IAAMH,EAAWZ,IAAOc,EAAUC,QAEhGhF,EAAM,CACJiE,KACAC,UACEZ,EAAAA,IAACH,EAAK,CAACC,QAAS,IAAMyB,EAAWZ,GAAK9C,KAAM4D,EAAU9D,OAAOE,KAAIkC,SAC9D2B,OAYWH,aAAYI,UAFd","x_google_ignoreList":[1,2]}
1
+ {"version":3,"file":"Overlays.cjs.js","sources":["../src/components/Overlays/OverlayProvider.tsx","../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs","../src/components/Button/Button.tsx","../src/components/Overlays/ConfirmDialog/ConfirmDialog.tsx","../src/components/Overlays/Modal/ModalTypes.ts","../src/components/Overlays/Modal/Modal.tsx","../src/components/Overlays/Toast/Toast.tsx","../src/components/Overlays/useOverlay.tsx"],"sourcesContent":[null,"function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n",null,null,null,null,null,null],"names":["OverlayContext","createContext","overlays","Map","mount","unmount","r","e","t","f","n","Array","isArray","o","length","falsyToString","value","cx","arguments","cva","base","config","props","_config_compoundVariants","variants","class","className","defaultVariants","getVariantClassNames","Object","keys","map","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","entries","reduce","acc","param","key","undefined","getCompoundVariantClassNames","compoundVariants","cvClass","cvClassName","compoundVariantOptions","every","includes","buttonVariants","size","sm","md","lg","full","fill","outlined","color","primary","disabled","true","Button","children","ref","_jsx","tabIndex","displayName","ConfirmDialog","title","description","confirmText","cancelText","onConfirm","onCancel","onClick","target","currentTarget","onKeyDown","role","el","focus","_jsxs","async","modalSizeVariants","xl","Modal","onClose","Toast","content","duration","onDismiss","useEffect","timer","setTimeout","clearTimeout","overlayIdCounter","setOverlays","useState","contextValue","overlayConfig","prev","set","id","component","clonedMap","delete","Provider","from","context","useContext","Error","modalClose","modalOpen","modalData","toast","toastData","confirmDialog","confirmData"],"mappings":"mEAaO,MAAMA,EAAiBC,EAAAA,cAI3B,CACDC,SAAU,IAAIC,IACdC,MAAO,OACPC,QAAS,SCpBX,SAASC,EAAEC,GAAG,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAG,iBAAiBH,GAAG,iBAAiBA,EAAEG,GAAGH,OAAO,GAAG,iBAAiBA,EAAE,GAAGI,MAAMC,QAAQL,GAAG,CAAC,IAAIM,EAAEN,EAAEO,OAAO,IAAIN,EAAE,EAAEA,EAAEK,EAAEL,IAAID,EAAEC,KAAKC,EAAEH,EAAEC,EAAEC,OAAOE,IAAIA,GAAG,KAAKA,GAAGD,EAAE,MAAM,IAAIA,KAAKF,EAAEA,EAAEE,KAAKC,IAAIA,GAAG,KAAKA,GAAGD,GAAG,OAAOC,CAAC,CCehP,MAAMK,EAAiBC,GAAyB,kBAAVA,EAAsB,GAAGA,IAAoB,IAAVA,EAAc,IAAMA,EAChFC,EDhB2O,WAAgB,IAAI,IAAIV,EAAEC,EAAEC,EAAE,EAAEC,EAAE,GAAGG,EAAEK,UAAUJ,OAAOL,EAAEI,EAAEJ,KAAKF,EAAEW,UAAUT,MAAMD,EAAEF,EAAEC,MAAMG,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC,ECiBlWS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ACGpD,MAAMiG,KAAK1G,EAASmC,WAAWN,IAAI,EAAEwE,EAAIC,KACxCvC,EAAAA,IAAA,MAAA,CAAAF,SAAeyC,GAALD,6BQrCM,KACxB,MAAMM,EAAUC,EAAAA,WAAW9G,GAC3B,IAAK6G,EACH,MAAM,IAAIE,MAAM,gDAElB,MAAM3G,MAAEA,EAAKC,QAAEA,GAAYwG,EAkBrBG,EAAcT,IAClBlG,EAAQkG,IAyCV,MAAO,CAAEU,UA1DUC,IACjB,MAAMX,IAAOP,EAEPP,EACyB,mBAAtByB,EAAUzB,QAAyByB,EAAUzB,QAAQ,IAAMuB,EAAWT,IAAOW,EAAUzB,QAEhGrF,EAAM,CACJmG,KACAC,UACEvC,EAAAA,IAACqB,EAAK,CAACC,QAAS,IAAMyB,EAAWT,GAAKpD,KAAM+D,EAAU7F,OAAO8B,KAAIY,SAC9D0B,OAgDWuB,aAAYG,MAtCjBC,IACb,MAAMb,IAAOP,EAEb5F,EAAM,CACJmG,KACAC,UACEvC,EAAAA,IAACuB,EAAK,CACJC,QAAS2B,EAAU3B,QACnBC,SAAU0B,EAAU1B,UArCC,IAsCrBC,UAAW,IAAMtF,EAAQkG,QA6BMc,cAvBhBC,IACrB,MAAMf,IAAOP,EAIb5F,EAAM,CACJmG,KACAC,UACEvC,EAAAA,IAACG,EAAa,CACZC,MAAOiD,EAAYjD,MACnBC,YAAagD,EAAYhD,YACzBC,YAAa+C,EAAY/C,aATF,KAUvBC,WAAY8C,EAAY9C,YATF,KAUtBC,UAAW6C,EAAY7C,UACvBC,SAAU,KACR4C,EAAY5C,aACZrE,EAAQkG","x_google_ignoreList":[1,2]}
@@ -1,6 +1,15 @@
1
1
  import { ReactNode } from 'react';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
 
4
+ interface IConfirmDialogOpenRequestData {
5
+ title: string;
6
+ description?: ReactNode;
7
+ confirmText?: string;
8
+ cancelText?: string;
9
+ onConfirm: () => void | Promise<void>;
10
+ onCancel?: () => void;
11
+ }
12
+
4
13
  interface IModalConfig {
5
14
  size: 'sm' | 'md' | 'lg' | 'xl';
6
15
  }
@@ -9,10 +18,16 @@ interface IModalOpenRequestData {
9
18
  content: ReactNode | ((onClose: () => void) => ReactNode);
10
19
  }
11
20
 
21
+ interface IToastOpenRequestData {
22
+ content: ReactNode;
23
+ duration?: number;
24
+ }
25
+
12
26
  declare const useOverlay: () => {
13
27
  modalOpen: (modalData: IModalOpenRequestData) => void;
14
28
  modalClose: (id: number) => void;
15
- toastOpen: () => void;
29
+ toast: (toastData: IToastOpenRequestData) => void;
30
+ confirmDialog: (confirmData: IConfirmDialogOpenRequestData) => void;
16
31
  };
17
32
 
18
33
  declare const OverlayProvider: ({ children }: {
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as n}from"react/jsx-runtime";import{createContext as r,useState as o,useContext as t}from"react";const l=r({overlays:new Map,mount:()=>{},unmount:()=>{}}),s=({children:r})=>{const[t,s]=o(new Map),a={overlays:t,mount:e=>{s(n=>new Map(n).set(e.id,e.component))},unmount:e=>{s(n=>{const r=new Map(n);return r.delete(e),r})}};return e(l.Provider,{value:a,children:[r,n("div",{children:Array.from(t.entries()).map(([e,r])=>n("div",{children:r},e))})]})};function a(e){var n,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var t=e.length;for(n=0;n<t;n++)e[n]&&(r=a(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}const i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,d=function(){for(var e,n,r=0,o="",t=arguments.length;r<t;r++)(e=arguments[r])&&(n=a(e))&&(o&&(o+=" "),o+=n);return o},c=(u="yds-modal z-modal",m={variants:{size:{sm:"yds-modal-size-sm",md:"yds-modal-size-md",lg:"yds-modal-size-lg",xl:"yds-modal-size-xl"}}},e=>{var n;if(null==(null==m?void 0:m.variants))return d(u,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:r,defaultVariants:o}=m,t=Object.keys(r).map(n=>{const t=null==e?void 0:e[n],l=null==o?void 0:o[n];if(null===t)return null;const s=i(t)||i(l);return r[n][s]}),l=e&&Object.entries(e).reduce((e,n)=>{let[r,o]=n;return void 0===o||(e[r]=o),e},{}),s=null==m||null===(n=m.compoundVariants)||void 0===n?void 0:n.reduce((e,n)=>{let{class:r,className:t,...s}=n;return Object.entries(s).every(e=>{let[n,r]=e;return Array.isArray(r)?r.includes({...o,...l}[n]):{...o,...l}[n]===r})?[...e,r,t]:e},[]);return d(u,t,s,null==e?void 0:e.class,null==e?void 0:e.className)});var u,m;const v=({onClose:e,children:r,size:o})=>n("div",{className:"yds-modal-backdrop z-modal-backdrop",onClick:n=>{n.target===n.currentTarget&&e()},children:n("div",{className:c({size:o}),children:r})});v.displayName="Modal";const y=()=>{const e=t(l),{mount:r,unmount:s}=e,[a,i]=o(0);if(!e)throw new Error("useOverlay는 OverlayProvider 내에서만 사용할 수 있습니다.");const d=e=>{s(e)};return{modalOpen:e=>{const o=a+1;i(o);const t="function"==typeof e.content?e.content(()=>d(o)):e.content;r({id:o,component:n(v,{onClose:()=>d(o),size:e.config.size,children:t})})},modalClose:d,toastOpen:()=>{}}};export{s as OverlayProvider,y as useOverlay};
1
+ import{jsxs as e,jsx as n}from"react/jsx-runtime";import{createContext as o,useState as r,useEffect as i,useContext as a}from"react";const t=o({overlays:new Map,mount:()=>{},unmount:()=>{}}),l=({children:o})=>{const[i,a]=r(new Map),l={overlays:i,mount:e=>{a(n=>new Map(n).set(e.id,e.component))},unmount:e=>{a(n=>{const o=new Map(n);return o.delete(e),o})}};return e(t.Provider,{value:l,children:[o,n("div",{children:Array.from(i.entries()).map(([e,o])=>n("div",{children:o},e))})]})};function s(e){var n,o,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(o=s(e[n]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}const c=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,d=function(){for(var e,n,o=0,r="",i=arguments.length;o<i;o++)(e=arguments[o])&&(n=s(e))&&(r&&(r+=" "),r+=n);return r},m=(e,n)=>o=>{var r;if(null==(null==n?void 0:n.variants))return d(e,null==o?void 0:o.class,null==o?void 0:o.className);const{variants:i,defaultVariants:a}=n,t=Object.keys(i).map(e=>{const n=null==o?void 0:o[e],r=null==a?void 0:a[e];if(null===n)return null;const t=c(n)||c(r);return i[e][t]}),l=o&&Object.entries(o).reduce((e,n)=>{let[o,r]=n;return void 0===r||(e[o]=r),e},{}),s=null==n||null===(r=n.compoundVariants)||void 0===r?void 0:r.reduce((e,n)=>{let{class:o,className:r,...i}=n;return Object.entries(i).every(e=>{let[n,o]=e;return Array.isArray(o)?o.includes({...a,...l}[n]):{...a,...l}[n]===o})?[...e,o,r]:e},[]);return d(e,t,s,null==o?void 0:o.class,null==o?void 0:o.className)},u=m("yds-button",{variants:{size:{sm:"w-20",md:"w-[120px]",lg:"w-40",full:"w-full"},variant:{fill:"",outlined:"bg-transparent border-2"},color:{primary:""},disabled:{true:"opacity-50 cursor-not-allowed"}},compoundVariants:[{variant:"fill",color:"primary",class:"yds-button-fill-primary"},{variant:"outlined",color:"primary",class:"yds-button-outlined-primary"}],defaultVariants:{size:"md",variant:"fill",color:"primary"}});function f({size:e="md",variant:o,color:r,children:i,className:a="",ref:t,disabled:l=!1,...s}){return n("button",{ref:t,className:`${u({size:e,variant:o,color:r,className:a,disabled:l})}`,tabIndex:l?-1:0,"aria-label":s["aria-label"]||("string"==typeof i?i:"button"),disabled:l,...s,children:i})}f.displayName="Button";const y=({title:o,description:r,confirmText:i,cancelText:a,onConfirm:t,onCancel:l})=>n("div",{className:"yds-confirm-dialog-backdrop",onClick:e=>{e.target===e.currentTarget&&l()},onKeyDown:e=>{"Escape"===e.key&&l()},role:"alertdialog","aria-modal":"true",tabIndex:-1,ref:e=>e?.focus(),children:e("div",{className:"yds-confirm-dialog",children:[n("h2",{className:"yds-confirm-dialog-title",children:o}),r&&n("p",{className:"yds-confirm-dialog-description",children:r}),e("div",{className:"yds-confirm-dialog-actions",children:[n(f,{variant:"outlined",color:"primary",size:"full",onClick:l,children:a}),n(f,{variant:"fill",color:"primary",size:"full",onClick:async()=>{await t(),l()},children:i})]})]})});y.displayName="ConfirmDialog";const p=m("yds-modal",{variants:{size:{sm:"yds-modal-size-sm",md:"yds-modal-size-md",lg:"yds-modal-size-lg",xl:"yds-modal-size-xl"}}}),v=({onClose:e,children:o,size:r})=>n("div",{className:"yds-modal-backdrop",onClick:n=>{n.target===n.currentTarget&&e()},onKeyDown:n=>{"Escape"===n.key&&e()},role:"dialog","aria-modal":"true",tabIndex:-1,ref:e=>e?.focus(),children:n("div",{className:p({size:r}),children:o})});v.displayName="Modal";const b=({content:e,duration:o,onDismiss:r})=>(i(()=>{const e=setTimeout(r,o);return()=>clearTimeout(e)},[]),n("div",{className:"yds-toast-container",children:n("div",{className:"yds-toast",children:e})}));b.displayName="Toast";let h=0;const g=()=>{const e=a(t);if(!e)throw new Error("useOverlay는 OverlayProvider 내에서만 사용할 수 있습니다.");const{mount:o,unmount:r}=e,i=e=>{r(e)};return{modalOpen:e=>{const r=++h,a="function"==typeof e.content?e.content(()=>i(r)):e.content;o({id:r,component:n(v,{onClose:()=>i(r),size:e.config.size,children:a})})},modalClose:i,toast:e=>{const i=++h;o({id:i,component:n(b,{content:e.content,duration:e.duration??2e3,onDismiss:()=>r(i)})})},confirmDialog:e=>{const i=++h;o({id:i,component:n(y,{title:e.title,description:e.description,confirmText:e.confirmText??"확인",cancelText:e.cancelText??"취소",onConfirm:e.onConfirm,onCancel:()=>{e.onCancel?.(),r(i)}})})}}};export{l as OverlayProvider,g as useOverlay};
2
2
  //# sourceMappingURL=Overlays.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Overlays.esm.js","sources":["../src/components/Overlays/OverlayProvider.tsx","../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs","../src/components/Overlays/Modal/ModalTypes.ts","../src/components/Overlays/Modal/Modal.tsx","../src/components/Overlays/useOverlay.tsx"],"sourcesContent":[null,"function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n",null,null,null],"names":["OverlayContext","createContext","overlays","Map","mount","unmount","OverlayProvider","children","setOverlays","useState","contextValue","overlayConfig","prev","set","id","component","clonedMap","delete","_jsxs","Provider","value","_jsx","Array","from","entries","map","r","e","t","f","n","isArray","o","length","falsyToString","cx","arguments","modalSizeVariants","base","config","variants","size","sm","md","lg","xl","props","_config_compoundVariants","class","className","defaultVariants","getVariantClassNames","Object","keys","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","reduce","acc","param","key","undefined","getCompoundVariantClassNames","compoundVariants","cvClass","cvClassName","compoundVariantOptions","every","includes","Modal","onClose","onClick","target","currentTarget","displayName","useOverlay","context","useContext","activeOverlayId","setActiveOverlayId","Error","modalClose","modalOpen","modalData","content","toastOpen"],"mappings":"sHAaO,MAAMA,EAAiBC,EAI3B,CACDC,SAAU,IAAIC,IACdC,MAAO,OACPC,QAAS,SAGEC,EAAkB,EAAGC,eAChC,MAAOL,EAAUM,GAAeC,EAAiC,IAAIN,KAc/DO,EAAmC,CACvCR,WACAE,MAdaO,IACbH,E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,EAAMK,YAAc,QC3Bb,MAAMC,EAAa,KACxB,MAAMC,EAAUC,EAAW/E,IACrBI,MAAEA,EAAKC,QAAEA,GAAYyE,GACpBE,EAAiBC,GAAsBxE,EAAS,GACvD,IAAKqE,EACH,MAAM,IAAII,MAAM,gDAGlB,MAiBMC,EAAcrE,IAClBT,EAAQS,IAKV,MAAO,CAAEsE,UAvBUC,IACjB,MAAMvE,EAAKkE,EAAkB,EAC7BC,EAAmBnE,GAEnB,MAAMwE,EACyB,mBAAtBD,EAAUC,QAAyBD,EAAUC,QAAQ,IAAMH,EAAWrE,IAAOuE,EAAUC,QAEhGlF,EAAM,CACJU,KACAC,UACEM,EAACkD,EAAK,CAACC,QAAS,IAAMW,EAAWrE,GAAK2B,KAAM4C,EAAU9C,OAAOE,KAAIlC,SAC9D+E,OAYWH,aAAYI,UAFd","x_google_ignoreList":[1,2]}
1
+ {"version":3,"file":"Overlays.esm.js","sources":["../src/components/Overlays/OverlayProvider.tsx","../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs","../src/components/Button/Button.tsx","../src/components/Overlays/ConfirmDialog/ConfirmDialog.tsx","../src/components/Overlays/Modal/ModalTypes.ts","../src/components/Overlays/Modal/Modal.tsx","../src/components/Overlays/Toast/Toast.tsx","../src/components/Overlays/useOverlay.tsx"],"sourcesContent":[null,"function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n",null,null,null,null,null,null],"names":["OverlayContext","createContext","overlays","Map","mount","unmount","OverlayProvider","children","setOverlays","useState","contextValue","overlayConfig","prev","set","id","component","clonedMap","delete","_jsxs","Provider","value","_jsx","Array","from","entries","map","r","e","t","f","n","isArray","o","length","falsyToString","cx","arguments","cva","base","config","props","_config_compoundVariants","variants","class","className","defaultVariants","getVariantClassNames","Object","keys","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","reduce","acc","param","key","undefined","getCompoundVariantClassNames","compoundVariants","cvClass","cvClassName","compoundVariantOptions","every","includes","buttonVariants","size","sm","md","lg","full","fill","outlined","color","primary","disabled","true","Button","ref","tabIndex","displayName","ConfirmDialog","title","description","confirmText","cancelText","onConfirm","onCancel","onClick","target","currentTarget","onKeyDown","role","el","focus","async","modalSizeVariants","xl","Modal","onClose","Toast","content","duration","onDismiss","useEffect","timer","setTimeout","clearTimeout","overlayIdCounter","useOverlay","context","useContext","Error","modalClose","modalOpen","modalData","toast","toastData","confirmDialog","confirmData"],"mappings":"qIAaO,MAAMA,EAAiBC,EAI3B,CACDC,SAAU,IAAIC,IACdC,MAAO,OACPC,QAAS,SAGEC,EAAkB,EAAGC,eAChC,MAAOL,EAAUM,GAAeC,EAAiC,IAAIN,KAc/DO,EAAmC,CACvCR,WACAE,MAdaO,IACbH,EAAYI,GAAQ,IAAIT,IAAIS,GAAMC,IAAIF,EAAcG,GAAIH,EAAcI,aActEV,QAXeS,IACfN,EAAYI,IACV,MAAMI,EAAY,IAAIb,IAAIS,GAE1B,OADAI,EAAUC,OAAOH,GACVE,MAUX,OACEE,EAAClB,EAAemB,SAAQ,CAACC,MAAOV,EAAkCH,SAAA,CAC/DA,EACDc,EAAA,MAAA,CAAAd,SACGe,MAAMC,KAAKrB,EAASsB,WAAWC,IAAI,EAAEX,EAAIC,KACxCM,EAAA,MAAA,CAAAd,SAAeQ,GAALD,UCjDpB,SAASY,EAAEC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AAUC,gBAElCC,EAAU,KACR,MAAMC,EAAQC,WAAWH,EAAWD,GACpC,MAAO,IAAMK,aAAaF,IACzB,IAYDrF,EAAA,MAAA,CAAKuB,UAAU,sBAAqBrC,SAClCc,EAAA,MAAA,CAAKuB,UAAU,YAAWrC,SAAE+F,OAKlCD,EAAMpB,YAAc,QCtBpB,IAAI4B,EAAmB,EACvB,MAEaC,EAAa,KACxB,MAAMC,EAAUC,EAAWhH,GAC3B,IAAK+G,EACH,MAAM,IAAIE,MAAM,gDAElB,MAAM7G,MAAEA,EAAKC,QAAEA,GAAY0G,EAkBrBG,EAAcpG,IAClBT,EAAQS,IAyCV,MAAO,CAAEqG,UA1DUC,IACjB,MAAMtG,IAAO+F,EAEPP,EACyB,mBAAtBc,EAAUd,QAAyBc,EAAUd,QAAQ,IAAMY,EAAWpG,IAAOsG,EAAUd,QAEhGlG,EAAM,CACJU,KACAC,UACEM,EAAC8E,EAAK,CAACC,QAAS,IAAMc,EAAWpG,GAAKqD,KAAMiD,EAAU7E,OAAO4B,KAAI5D,SAC9D+F,OAgDWY,aAAYG,MAtCjBC,IACb,MAAMxG,IAAO+F,EAEbzG,EAAM,CACJU,KACAC,UACEM,EAACgF,EAAK,CACJC,QAASgB,EAAUhB,QACnBC,SAAUe,EAAUf,UArCC,IAsCrBC,UAAW,IAAMnG,EAAQS,QA6BMyG,cAvBhBC,IACrB,MAAM1G,IAAO+F,EAIbzG,EAAM,CACJU,KACAC,UACEM,EAAC6D,EAAa,CACZC,MAAOqC,EAAYrC,MACnBC,YAAaoC,EAAYpC,YACzBC,YAAamC,EAAYnC,aATF,KAUvBC,WAAYkC,EAAYlC,YATF,KAUtBC,UAAWiC,EAAYjC,UACvBC,SAAU,KACRgC,EAAYhC,aACZnF,EAAQS","x_google_ignoreList":[1,2]}
package/dist/index.cjs.js CHANGED
@@ -1,11 +1,11 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("react");function t(e){var r,a,l="";if("string"==typeof e||"number"==typeof e)l+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(a=t(e[r]))&&(l&&(l+=" "),l+=a)}else for(a in e)e[a]&&(l&&(l+=" "),l+=a);return l}function a(){for(var e,r,a=0,l="",s=arguments.length;a<s;a++)(e=arguments[a])&&(r=t(e))&&(l&&(l+=" "),l+=r);return l}const l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=a,n=(e,r)=>t=>{var a;if(null==(null==r?void 0:r.variants))return s(e,null==t?void 0:t.class,null==t?void 0:t.className);const{variants:n,defaultVariants:i}=r,o=Object.keys(n).map(e=>{const r=null==t?void 0:t[e],a=null==i?void 0:i[e];if(null===r)return null;const s=l(r)||l(a);return n[e][s]}),c=t&&Object.entries(t).reduce((e,r)=>{let[t,a]=r;return void 0===a||(e[t]=a),e},{}),d=null==r||null===(a=r.compoundVariants)||void 0===a?void 0:a.reduce((e,r)=>{let{class:t,className:a,...l}=r;return Object.entries(l).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...i,...c}[r]):{...i,...c}[r]===t})?[...e,t,a]:e},[]);return s(e,o,d,null==t?void 0:t.class,null==t?void 0:t.className)},i=n("yds-button",{variants:{size:{sm:"w-20",md:"w-[120px]",lg:"w-40",full:"w-full"},variant:{fill:"",outlined:"bg-transparent border-2"},color:{primary:""},disabled:{true:"opacity-50 cursor-not-allowed"}},compoundVariants:[{variant:"fill",color:"primary",class:"yds-button-fill-primary"},{variant:"outlined",color:"primary",class:"yds-button-outlined-primary"}],defaultVariants:{size:"md",variant:"fill",color:"primary"}});function o({size:r="md",variant:t,color:a,children:l,className:s="",ref:n,disabled:o=!1,...c}){return e.jsx("button",{ref:n,className:`${i({size:r,variant:t,color:a,className:s,disabled:o})}`,tabIndex:o?-1:0,"aria-label":c["aria-label"]||("string"==typeof l?l:"button"),disabled:o,...c,children:l})}function c({children:r,className:t="",...l}){return e.jsx("div",{className:a("yds-card","card-navy-50",t),...l,children:r})}o.displayName="Button",c.displayName="Card";const d=n("yds-chips",{variants:{variant:{fill:"",outlined:"bg-transparent border-2"},color:{primary:""}},compoundVariants:[{variant:"fill",color:"primary",class:"yds-chips-fill-primary"},{variant:"outlined",color:"primary",class:"yds-chips-outlined-primary"}],defaultVariants:{variant:"fill",color:"primary"}});function u({variant:r,color:t,children:a,...l}){return e.jsx("div",{className:d({variant:r,color:t}),...l,children:a})}u.displayName="Chips";
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("react");function a(e){var r,t,l="";if("string"==typeof e||"number"==typeof e)l+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(t=a(e[r]))&&(l&&(l+=" "),l+=t)}else for(t in e)e[t]&&(l&&(l+=" "),l+=t);return l}function t(){for(var e,r,t=0,l="",s=arguments.length;t<s;t++)(e=arguments[t])&&(r=a(e))&&(l&&(l+=" "),l+=r);return l}const l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=t,n=(e,r)=>a=>{var t;if(null==(null==r?void 0:r.variants))return s(e,null==a?void 0:a.class,null==a?void 0:a.className);const{variants:n,defaultVariants:i}=r,o=Object.keys(n).map(e=>{const r=null==a?void 0:a[e],t=null==i?void 0:i[e];if(null===r)return null;const s=l(r)||l(t);return n[e][s]}),c=a&&Object.entries(a).reduce((e,r)=>{let[a,t]=r;return void 0===t||(e[a]=t),e},{}),d=null==r||null===(t=r.compoundVariants)||void 0===t?void 0:t.reduce((e,r)=>{let{class:a,className:t,...l}=r;return Object.entries(l).every(e=>{let[r,a]=e;return Array.isArray(a)?a.includes({...i,...c}[r]):{...i,...c}[r]===a})?[...e,a,t]:e},[]);return s(e,o,d,null==a?void 0:a.class,null==a?void 0:a.className)},i=n("yds-button",{variants:{size:{sm:"w-20",md:"w-[120px]",lg:"w-40",full:"w-full"},variant:{fill:"",outlined:"bg-transparent border-2"},color:{primary:""},disabled:{true:"opacity-50 cursor-not-allowed"}},compoundVariants:[{variant:"fill",color:"primary",class:"yds-button-fill-primary"},{variant:"outlined",color:"primary",class:"yds-button-outlined-primary"}],defaultVariants:{size:"md",variant:"fill",color:"primary"}});function o({size:r="md",variant:a,color:t,children:l,className:s="",ref:n,disabled:o=!1,...c}){return e.jsx("button",{ref:n,className:`${i({size:r,variant:a,color:t,className:s,disabled:o})}`,tabIndex:o?-1:0,"aria-label":c["aria-label"]||("string"==typeof l?l:"button"),disabled:o,...c,children:l})}function c({children:r,className:a="",...l}){return e.jsx("div",{className:t("yds-card","card-navy-50",a),...l,children:r})}o.displayName="Button",c.displayName="Card";const d=n("yds-chips",{variants:{variant:{fill:"",outlined:"bg-transparent border-2"},color:{primary:""}},compoundVariants:[{variant:"fill",color:"primary",class:"yds-chips-fill-primary"},{variant:"outlined",color:"primary",class:"yds-chips-outlined-primary"}],defaultVariants:{variant:"fill",color:"primary"}});function u({variant:r,color:a,children:t,...l}){return e.jsx("div",{className:d({variant:r,color:a}),...l,children:t})}u.displayName="Chips";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
6
6
  * See the LICENSE file in the root directory of this source tree.
7
7
  */
8
- const p=e=>{const r=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase()))(e);return r.charAt(0).toUpperCase()+r.slice(1)},h=(...e)=>e.filter((e,r,t)=>Boolean(e)&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim(),m=e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
8
+ const p=e=>{const r=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,a)=>a?a.toUpperCase():r.toLowerCase()))(e);return r.charAt(0).toUpperCase()+r.slice(1)},h=(...e)=>e.filter((e,r,a)=>Boolean(e)&&""!==e.trim()&&a.indexOf(e)===r).join(" ").trim(),m=e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
9
9
  /**
10
10
  * @license lucide-react v0.542.0 - ISC
11
11
  *
@@ -18,11 +18,11 @@ var f={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const y=r.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:s="",children:n,iconNode:i,...o},c)=>r.createElement("svg",{ref:c,...f,width:t,height:t,stroke:e,strokeWidth:l?24*Number(a)/Number(t):a,className:h("lucide",s),...!n&&!m(o)&&{"aria-hidden":"true"},...o},[...i.map(([e,t])=>r.createElement(e,t)),...Array.isArray(n)?n:[n]])),v=(e,t)=>{const a=r.forwardRef(({className:a,...l},s)=>{return r.createElement(y,{ref:s,iconNode:t,className:h(`lucide-${n=p(e),n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...l});var n});return a.displayName=p(e),a},x=v("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),b=v("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),w=v("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),g=v("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),k=n("relative",{variants:{color:{"primary-400":"text-yellow-400","primary-100":"text-yellow-100",white:"text-white"}}}),N=n("yds-input-typography h-12 rounded-[8px] border-2 pr-3 focus:outline-none",{variants:{size:{sm:"w-[200px]",md:"w-[300px]",lg:"w-[400px]",full:"w-full"},color:{white:"border-white bg-transparent text-white placeholder-white","primary-400":"border-yellow-400 bg-transparent text-yellow-400 placeholder-yellow-400","primary-100":"border-yellow-100 bg-transparent text-yellow-100 placeholder-yellow-100"},variant:{search:"pl-10",input:"pl-3"},disabled:{true:"opacity-50 cursor-not-allowed bg-gray-100",false:""}},defaultVariants:{size:"md",color:"primary-100",variant:"input",disabled:!1}});
21
+ */const y=r.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:l,className:s="",children:n,iconNode:i,...o},c)=>r.createElement("svg",{ref:c,...f,width:a,height:a,stroke:e,strokeWidth:l?24*Number(t)/Number(a):t,className:h("lucide",s),...!n&&!m(o)&&{"aria-hidden":"true"},...o},[...i.map(([e,a])=>r.createElement(e,a)),...Array.isArray(n)?n:[n]])),v=(e,a)=>{const t=r.forwardRef(({className:t,...l},s)=>{return r.createElement(y,{ref:s,iconNode:a,className:h(`lucide-${n=p(e),n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,t),...l});var n});return t.displayName=p(e),t},x=v("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),b=v("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),w=v("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),g=v("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),k=n("relative",{variants:{color:{"primary-400":"text-yellow-400","primary-100":"text-yellow-100",white:"text-white"}}}),N=n("yds-input-typography h-12 rounded-[8px] border-2 pr-3 focus:outline-none",{variants:{size:{sm:"w-[200px]",md:"w-[300px]",lg:"w-[400px]",full:"w-full"},color:{white:"border-white bg-transparent text-white placeholder-white","primary-400":"border-yellow-400 bg-transparent text-yellow-400 placeholder-yellow-400","primary-100":"border-yellow-100 bg-transparent text-yellow-100 placeholder-yellow-100"},variant:{search:"pl-10",input:"pl-3"},disabled:{true:"opacity-50 cursor-not-allowed bg-gray-100",false:""}},defaultVariants:{size:"md",color:"primary-100",variant:"input",disabled:!1}});
22
22
  /**
23
23
  * @license lucide-react v0.542.0 - ISC
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
- */function j({size:r,color:t,variant:a,disabled:l,...s}){return e.jsxs("div",{className:k({color:t}),children:["search"===a&&e.jsx(g,{"aria-hidden":!0,className:"absolute top-1/2 left-3 h-6 w-6 -translate-y-1/2 text-current"}),e.jsx("input",{className:N({size:r,color:t,variant:a,disabled:l}),disabled:l,...s})]})}function C({value:t,name:a,checked:l,id:s,onCheckedChange:n,shape:i="square",indeterminate:o=!1,...c}){const d=s??r.useId(),u=r.useRef(null);r.useEffect(()=>{u.current&&(u.current.indeterminate=o)},[o]);const p=o?"indeterminate":l?"checked":"unchecked";return e.jsxs("label",{htmlFor:d,className:"yds-checkbox-wrapper",onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n(!l))},tabIndex:0,children:[e.jsx("input",{ref:u,id:d,type:"checkbox",checked:l,onChange:e=>{const r=e.target.checked;n(r)},className:"sr-only","aria-checked":o?"mixed":l?"true":"false",...c}),"square"===i&&e.jsx("div",{className:"yds-checkbox-indicator",children:e.jsx("div",{className:`yds-checkbox-indicator-inner-${p}`,children:o&&e.jsx(w,{size:20})})}),"check"===i&&e.jsx("div",{className:"yds-checkbox-icon-indicator",children:o?e.jsx("div",{children:e.jsx(w,{size:20})}):l?e.jsx(x,{size:20}):e.jsx(e.Fragment,{})}),e.jsx("span",{className:"yds-checkbox-typography",children:t})]})}j.displayName="Input",C.displayName="CheckBox";const O=n("relative h-12",{variants:{size:{sm:"w-[200px]",md:"w-[300px]",lg:"w-[400px]",full:"w-full"}},defaultVariants:{size:"full"}});const E={label:"",value:""};exports.Button=o,exports.Card=c,exports.CheckBox=C,exports.Chips=u,exports.Input=j,exports.SelectBox=function({size:r,selectBoxHook:t}){const{selectedOption:a,isOpen:l,searchValue:s,filteredOptions:n,selectedText:i,search:o,containerRef:c,handleClickOption:d,handleToggle:u,handleSearch:p}=t;return e.jsxs("div",{className:O({size:r}),ref:c,children:[e.jsxs("div",{className:"border-primary-100 text-yds-b1 flex h-full w-full cursor-pointer items-center justify-between rounded-lg border-2 p-3 text-yellow-100",onClick:u,children:[i,e.jsx(b,{className:"text-yellow-100 transition-transform duration-300"})]}),l&&e.jsxs("div",{className:"bg-background-secondary border-primary-100 z-select-box-dropdown absolute top-14 left-0 flex w-full flex-col gap-2 rounded-lg border-2 p-3",children:[o&&e.jsxs("div",{className:"flex h-[40px] items-center border-y-2 border-yellow-100",children:[e.jsx(g,{className:"text-yellow-100",size:20}),e.jsx("input",{type:"text",className:"w-full p-2 text-white hover:outline-none focus:outline-none",value:s,placeholder:"검색으로 쉽게찾기",onChange:e=>p(e.target.value)})]}),e.jsx("div",{className:"scrollbar-hide flex h-auto max-h-[200px] flex-col gap-2 overflow-y-scroll",children:n.map(r=>e.jsxs("div",{className:"text-yds-c1m hover:bg-background-primary flex cursor-pointer items-center justify-between text-white",onClick:()=>d(r),children:[r.value,a.value===r.value&&e.jsx(x,{className:"text-yellow-100",size:20})]},r.label))})]})]})},exports.useSelectBox=e=>{const{options:t,defaultValue:a,search:l=!1,value:s,onChange:n,filterFn:i=(e,r)=>e.value.toLowerCase().includes(r.toLowerCase()),itemToString:o=e=>e.value,getValue:c=e=>e.value}=e,d=void 0!==s,u=a&&t.find(e=>e.value===a)||E,[p,h]=r.useState(u),[m,f]=r.useReducer((e,r)=>{switch(r.type){case"OPEN":return{...e,isOpen:!0};case"CLOSE":return{isOpen:!1,searchValue:""};case"TOGGLE":return{...e,isOpen:!e.isOpen};case"SEARCH":return{...e,searchValue:r.term};case"RESET_SEARCH":return{...e,searchValue:""};default:return e}},{isOpen:!1,searchValue:""}),{isOpen:y,searchValue:v}=m,x=r.useMemo(()=>d&&t.find(e=>e.value===s)||E,[d,t,s]),b=d?x:p,w=""!==b.value&&""!==b.label,g=r.useRef(null),k=r.useCallback(()=>{f({type:"CLOSE"})},[]);var N,j;!function(e,t,a){r.useEffect(()=>{if(!t)return;const r=r=>{const t=e.current;t&&(t.contains(r.target)||a())};return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[t,e,a])}(g,y,k),N=y,j=k,r.useEffect(()=>{if(!N)return;const e=e=>{"Escape"===e.key&&j()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[N,j]),r.useEffect(()=>{if(d)return;if(!a)return void h(E);const e=t.find(e=>e.value===a||e.label===a)||E;h(e)},[d,a]);const C=r.useMemo(()=>v?t.filter(e=>i(e,v)):t,[t,v,i]),O=r.useMemo(()=>w?o(b):"선택",[w,o,b]);return{selectedOption:b,isOpen:y,searchValue:v,options:t,search:l,containerRef:g,handleClickOption:e=>{d?n?.(e.value,e):h(e),k()},handleToggle:()=>{f({type:"TOGGLE"})},handleSearch:e=>{f({type:"SEARCH",term:e})},handleClose:k,value:b.value,label:b.label,hasOption:w,filteredOptions:C,selectedText:O,itemToString:o,getValue:c}};
27
+ */function j({size:r,color:a,variant:t,disabled:l,...s}){return e.jsxs("div",{className:k({color:a}),children:["search"===t&&e.jsx(g,{"aria-hidden":!0,className:"absolute top-1/2 left-3 h-6 w-6 -translate-y-1/2 text-current"}),e.jsx("input",{className:N({size:r,color:a,variant:t,disabled:l}),disabled:l,...s})]})}function C({value:a,name:t,checked:l,id:s,onCheckedChange:n,shape:i="square",indeterminate:o=!1,...c}){const d=s??r.useId(),u=r.useRef(null);r.useEffect(()=>{u.current&&(u.current.indeterminate=o)},[o]);const p=o?"indeterminate":l?"checked":"unchecked";return e.jsxs("label",{htmlFor:d,className:"yds-checkbox-wrapper",onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n(!l))},tabIndex:0,children:[e.jsx("input",{ref:u,id:d,type:"checkbox",checked:l,onChange:e=>{const r=e.target.checked;n(r)},className:"sr-only","aria-checked":o?"mixed":l?"true":"false",...c}),"square"===i&&e.jsx("div",{className:"yds-checkbox-indicator",children:e.jsx("div",{className:`yds-checkbox-indicator-inner-${p}`,children:o&&e.jsx(w,{size:20})})}),"check"===i&&e.jsx("div",{className:"yds-checkbox-icon-indicator",children:o?e.jsx("div",{children:e.jsx(w,{size:20})}):l?e.jsx(x,{size:20}):e.jsx(e.Fragment,{})}),e.jsx("span",{className:"yds-checkbox-typography",children:a})]})}j.displayName="Input",C.displayName="CheckBox";const O=n("relative h-12",{variants:{size:{sm:"w-[200px]",md:"w-[300px]",lg:"w-[400px]",full:"w-full"}},defaultVariants:{size:"full"}});const E={label:"",value:""};exports.Button=o,exports.Card=c,exports.CheckBox=C,exports.Chips=u,exports.Input=j,exports.SelectBox=function({size:r,selectBoxHook:a}){const{selectedOption:t,isOpen:l,searchValue:s,filteredOptions:n,selectedText:i,search:o,containerRef:c,handleClickOption:d,handleToggle:u,handleSearch:p}=a;return e.jsxs("div",{className:O({size:r}),ref:c,children:[e.jsxs("div",{className:"border-primary-100 text-yds-b1 flex h-full w-full cursor-pointer items-center justify-between rounded-lg border-2 p-3 text-yellow-100",onClick:u,children:[i,e.jsx(b,{className:"text-yellow-100 transition-transform duration-300"})]}),l&&e.jsxs("div",{className:"bg-background-secondary border-primary-100 z-[var(--z-index-select-box-dropdown)] absolute top-14 left-0 flex w-full flex-col gap-2 rounded-lg border-2 p-3",children:[o&&e.jsxs("div",{className:"flex h-[40px] items-center border-y-2 border-yellow-100",children:[e.jsx(g,{className:"text-yellow-100",size:20}),e.jsx("input",{type:"text",className:"w-full p-2 text-white hover:outline-none focus:outline-none",value:s,placeholder:"검색으로 쉽게찾기",onChange:e=>p(e.target.value)})]}),e.jsx("div",{className:"scrollbar-hide flex h-auto max-h-[200px] flex-col gap-2 overflow-y-scroll",children:n.map(r=>e.jsxs("div",{className:"text-yds-c1m hover:bg-background-primary flex cursor-pointer items-center justify-between text-white",onClick:()=>d(r),children:[r.value,t.value===r.value&&e.jsx(x,{className:"text-yellow-100",size:20})]},r.label))})]})]})},exports.useSelectBox=e=>{const{options:a,defaultValue:t,search:l=!1,value:s,onChange:n,filterFn:i=(e,r)=>e.value.toLowerCase().includes(r.toLowerCase()),itemToString:o=e=>e.value,getValue:c=e=>e.value}=e,d=void 0!==s,u=t&&a.find(e=>e.value===t)||E,[p,h]=r.useState(u),[m,f]=r.useReducer((e,r)=>{switch(r.type){case"OPEN":return{...e,isOpen:!0};case"CLOSE":return{isOpen:!1,searchValue:""};case"TOGGLE":return{...e,isOpen:!e.isOpen};case"SEARCH":return{...e,searchValue:r.term};case"RESET_SEARCH":return{...e,searchValue:""};default:return e}},{isOpen:!1,searchValue:""}),{isOpen:y,searchValue:v}=m,x=r.useMemo(()=>d&&a.find(e=>e.value===s)||E,[d,a,s]),b=d?x:p,w=""!==b.value&&""!==b.label,g=r.useRef(null),k=r.useCallback(()=>{f({type:"CLOSE"})},[]);var N,j;!function(e,a,t){r.useEffect(()=>{if(!a)return;const r=r=>{const a=e.current;a&&(a.contains(r.target)||t())};return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[a,e,t])}(g,y,k),N=y,j=k,r.useEffect(()=>{if(!N)return;const e=e=>{"Escape"===e.key&&j()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[N,j]),r.useEffect(()=>{if(d)return;if(!t)return void h(E);const e=a.find(e=>e.value===t||e.label===t)||E;h(e)},[d,t]);const C=r.useMemo(()=>v?a.filter(e=>i(e,v)):a,[a,v,i]),O=r.useMemo(()=>w?o(b):"선택",[w,o,b]);return{selectedOption:b,isOpen:y,searchValue:v,options:a,search:l,containerRef:g,handleClickOption:e=>{d?n?.(e.value,e):h(e),k()},handleToggle:()=>{f({type:"TOGGLE"})},handleSearch:e=>{f({type:"SEARCH",term:e})},handleClose:k,value:b.value,label:b.label,hasOption:w,filteredOptions:C,selectedText:O,itemToString:o,getValue:c}};
28
28
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs","../src/components/Button/Button.tsx","../src/components/Card/Card.tsx","../src/components/Chips/Chips.tsx","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/defaultAttributes.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/check.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/minus.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/search.js","../src/components/Input/Input.tsx","../src/components/CheckBox/CheckBox.tsx","../src/components/SelectBox/SelectBox.tsx","../src/components/SelectBox/hooks/useSelectBox.tsx","../src/components/SelectBox/hooks/useDismiss.ts"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n",null,null,null,"/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\nconst hasA11yProp = (props) => {\n for (const prop in props) {\n if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") {\n return true;\n }\n }\n};\n\nexport { hasA11yProp, mergeClasses, toCamelCase, toKebabCase, toPascalCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { mergeClasses, hasA11yProp } from './shared/src/utils.js';\n\nconst Icon = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n iconNode,\n ...rest\n }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: mergeClasses(\"lucide\", className),\n ...!children && !hasA11yProp(rest) && { \"aria-hidden\": \"true\" },\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase, toPascalCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(\n `lucide-${toKebabCase(toPascalCase(iconName))}`,\n `lucide-${iconName}`,\n className\n ),\n ...props\n })\n );\n Component.displayName = toPascalCase(iconName);\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M20 6 9 17l-5-5\", key: \"1gmf2c\" }]];\nconst Check = createLucideIcon(\"check\", __iconNode);\n\nexport { __iconNode, Check as default };\n//# sourceMappingURL=check.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"m6 9 6 6 6-6\", key: \"qrunsl\" }]];\nconst ChevronDown = createLucideIcon(\"chevron-down\", __iconNode);\n\nexport { __iconNode, ChevronDown as default };\n//# sourceMappingURL=chevron-down.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }]];\nconst Minus = createLucideIcon(\"minus\", __iconNode);\n\nexport { __iconNode, Minus as default };\n//# sourceMappingURL=minus.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"m21 21-4.34-4.34\", key: \"14j7rj\" }],\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }]\n];\nconst Search = createLucideIcon(\"search\", __iconNode);\n\nexport { __iconNode, Search as default };\n//# sourceMappingURL=search.js.map\n",null,null,null,null,null],"names":["r","e","t","f","n","Array","isArray","o","length","clsx","arguments","falsyToString","value","cx","cva","base","config","props","_config_compoundVariants","variants","class","className","defaultVariants","getVariantClassNames","Object","keys","map","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","entries","reduce","acc","param","key","undefined","getCompoundVariantClassNames","compoundVariants","cvClass","cvClassName","compoundVariantOptions","every","includes","buttonVariants","size","sm","md","lg","full","fill","outlined","color","primary","disabled","true","Button","children","ref","_jsx","tabIndex","Card","displayName","chipsVariants","Chips","toPascalCase","string","camelCase","replace","match","p1","p2","toUpperCase","toLowerCase","toCamelCase","charAt","slice","mergeClasses","classes","filter","index","array","Boolean","trim","indexOf","join","hasA11yProp","prop","startsWith","defaultAttributes","xmlns","width","height","viewBox","stroke","strokeWidth","strokeLinecap","strokeLinejoin","Icon","forwardRef","absoluteStrokeWidth","iconNode","rest","createElement","Number","tag","attrs","createLucideIcon","iconName","Component","Check","d","ChevronDown","Minus","Search","cy","wrapperVariants","white","inputVariants","search","input","false","Input","_jsxs","CheckBox","name","checked","id","onCheckedChange","shape","indeterminate","checkboxId","useId","inputRef","useRef","useEffect","current","displayState","htmlFor","onKeyDown","preventDefault","type","onChange","newChecked","target","CheckIcon","_Fragment","EMPTY_OPTION","label","selectBoxHook","selectedOption","isOpen","searchValue","filteredOptions","selectedText","containerRef","handleClickOption","handleToggle","handleSearch","onClick","placeholder","option","options","defaultValue","filterFn","opt","term","itemToString","getValue","isControlled","defaultOption","find","setSelectedOption","useState","ui","dispatch","useReducer","s","a","controlledSelected","useMemo","viewSelected","hasOption","handleClose","useCallback","enabled","onDismiss","handle","event","el","contains","document","addEventListener","removeEventListener","useOutsideDismiss","next"],"mappings":"mEAAA,SAASA,EAAEC,GAAG,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAG,iBAAiBH,GAAG,iBAAiBA,EAAEG,GAAGH,OAAO,GAAG,iBAAiBA,EAAE,GAAGI,MAAMC,QAAQL,GAAG,CAAC,IAAIM,EAAEN,EAAEO,OAAO,IAAIN,EAAE,EAAEA,EAAEK,EAAEL,IAAID,EAAEC,KAAKC,EAAEH,EAAEC,EAAEC,OAAOE,IAAIA,GAAG,KAAKA,GAAGD,EAAE,MAAM,IAAIA,KAAKF,EAAEA,EAAEE,KAAKC,IAAIA,GAAG,KAAKA,GAAGD,GAAG,OAAOC,CAAC,CAAQ,SAASK,IAAO,IAAI,IAAIR,EAAEC,EAAEC,EAAE,EAAEC,EAAE,GAAGG,EAAEG,UAAUF,OAAOL,EAAEI,EAAEJ,KAAKF,EAAES,UAAUP,MAAMD,EAAEF,EAAEC,MAAMG,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC,CCe/W,MAAMO,EAAiBC,GAAyB,kBAAVA,EAAsB,GAAGA,IAAoB,IAAVA,EAAc,IAAMA,EAChFC,EAAKJ,EACLK,EAAM,CAACC,EAAMC,IAAUC,IAC5B,IAAIC,EACJ,GAAyE,OAApEF,aAAuC,EAASA,EAAOG,UAAmB,OAAON,EAAGE,EAAME,aAAqC,EAASA,EAAMG,MAAOH,aAAqC,EAASA,EAAMI,WAC9M,MAAMF,SAAEA,EAAQG,gBAAEA,GAAoBN,EAChCO,EAAuBC,OAAOC,KAAKN,GAAUO,IAAKC,IACpD,MAAMC,EAAcX,aAAqC,EAASA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WAAdA,EAAMzJ,KAAkBuJ,KAI9B,OADAK,SAASC,iBAAiB,UAAWL,GAC9B,IAAMI,SAASE,oBAAoB,UAAWN,IACpD,CAACF,EAASC,IDgDbnD,EAAAA,UAAU,KACR,GAAIkC,EAAc,OAClB,IAAKN,EAEH,YADAS,EAAkBzB,GAGpB,MAAMgD,EAAOjC,EAAQS,KAAKN,GAAOA,EAAI1J,QAAUwJ,GAAgBE,EAAIjB,QAAUe,IAAiBhB,EAC9FyB,EAAkBuB,IACjB,CAAC1B,EAAcN,IAGlB,MAAMV,EAAkB2B,EAAAA,QAAQ,IACzB5B,EACEU,EAAQnF,OAAOsF,GAAOD,EAASC,EAAKb,IADlBU,EAExB,CAACA,EAASV,EAAaY,IAEpBV,EAAe0B,EAAAA,QAAQ,IACpBE,EAAYf,EAAac,GAAgB,KAC/C,CAACC,EAAWf,EAAcc,IAmB7B,MAAO,CAEL/B,eAAgB+B,EAChB9B,SACAC,cACAU,UACA3C,SACAoC,eAGAC,kBAnBoBK,IAChBQ,EACF3B,IAAWmB,EAAOtJ,MAAOsJ,GAEzBW,EAAkBX,GAEpBsB,KAcA1B,aA5BmB,KACnBkB,EAAS,CAAElC,KAAM,YA4BjBiB,aAzBoBnJ,IACpBoK,EAAS,CAAElC,KAAM,SAAUyB,KAAM3J,KAyBjC4K,cAGA5K,MAAO0K,EAAa1K,MACpByI,MAAOiC,EAAajC,MACpBkC,YACA7B,kBACAC,eACAa,eACAC","x_google_ignoreList":[0,1,5,6,7,8,9,10,11,12]}
1
+ {"version":3,"file":"index.cjs.js","sources":["../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs","../src/components/Button/Button.tsx","../src/components/Card/Card.tsx","../src/components/Chips/Chips.tsx","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/defaultAttributes.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/check.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/minus.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/search.js","../src/components/Input/Input.tsx","../src/components/CheckBox/CheckBox.tsx","../src/components/SelectBox/SelectBox.tsx","../src/components/SelectBox/hooks/useSelectBox.tsx","../src/components/SelectBox/hooks/useDismiss.ts"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n",null,null,null,"/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\nconst hasA11yProp = (props) => {\n for (const prop in props) {\n if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") {\n return true;\n }\n }\n};\n\nexport { hasA11yProp, mergeClasses, toCamelCase, toKebabCase, toPascalCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { mergeClasses, hasA11yProp } from './shared/src/utils.js';\n\nconst Icon = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n iconNode,\n ...rest\n }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: mergeClasses(\"lucide\", className),\n ...!children && !hasA11yProp(rest) && { \"aria-hidden\": \"true\" },\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase, toPascalCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(\n `lucide-${toKebabCase(toPascalCase(iconName))}`,\n `lucide-${iconName}`,\n className\n ),\n ...props\n })\n );\n Component.displayName = toPascalCase(iconName);\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M20 6 9 17l-5-5\", key: \"1gmf2c\" }]];\nconst Check = createLucideIcon(\"check\", __iconNode);\n\nexport { __iconNode, Check as default };\n//# sourceMappingURL=check.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"m6 9 6 6 6-6\", key: \"qrunsl\" }]];\nconst ChevronDown = createLucideIcon(\"chevron-down\", __iconNode);\n\nexport { __iconNode, ChevronDown as default };\n//# sourceMappingURL=chevron-down.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }]];\nconst Minus = createLucideIcon(\"minus\", __iconNode);\n\nexport { __iconNode, Minus as default };\n//# sourceMappingURL=minus.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"m21 21-4.34-4.34\", key: \"14j7rj\" }],\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }]\n];\nconst Search = createLucideIcon(\"search\", __iconNode);\n\nexport { __iconNode, Search as default };\n//# sourceMappingURL=search.js.map\n",null,null,null,null,null],"names":["r","e","t","f","n","Array","isArray","o","length","clsx","arguments","falsyToString","value","cx","cva","base","config","props","_config_compoundVariants","variants","class","className","defaultVariants","getVariantClassNames","Object","keys","map","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","entries","reduce","acc","param","key","undefined","getCompoundVariantClassNames","compoundVariants","cvClass","cvClassName","compoundVariantOptions","every","includes","buttonVariants","size","sm","md","lg","full","fill","outlined","color","primary","disabled","true","Button","children","ref","_jsx","tabIndex","Card","displayName","chipsVariants","Chips","toPascalCase","string","camelCase","replace","match","p1","p2","toUpperCase","toLowerCase","toCamelCase","charAt","slice","mergeClasses","classes","filter","index","array","Boolean","trim","indexOf","join","hasA11yProp","prop","startsWith","defaultAttributes","xmlns","width","height","viewBox","stroke","strokeWidth","strokeLinecap","strokeLinejoin","Icon","forwardRef","absoluteStrokeWidth","iconNode","rest","createElement","Number","tag","attrs","createLucideIcon","iconName","Component","Check","d","ChevronDown","Minus","Search","cy","wrapperVariants","white","inputVariants","search","input","false","Input","_jsxs","CheckBox","name","checked","id","onCheckedChange","shape","indeterminate","checkboxId","useId","inputRef","useRef","useEffect","current","displayState","htmlFor","onKeyDown","preventDefault","type","onChange","newChecked","target","CheckIcon","_Fragment","EMPTY_OPTION","label","selectBoxHook","selectedOption","isOpen","searchValue","filteredOptions","selectedText","containerRef","handleClickOption","handleToggle","handleSearch","onClick","placeholder","option","options","defaultValue","filterFn","opt","term","itemToString","getValue","isControlled","defaultOption","find","setSelectedOption","useState","ui","dispatch","useReducer","s","a","controlledSelected","useMemo","viewSelected","hasOption","handleClose","useCallback","enabled","onDismiss","handle","event","el","contains","document","addEventListener","removeEventListener","useOutsideDismiss","next"],"mappings":"mEAAA,SAASA,EAAEC,GAAG,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAG,iBAAiBH,GAAG,iBAAiBA,EAAEG,GAAGH,OAAO,GAAG,iBAAiBA,EAAE,GAAGI,MAAMC,QAAQL,GAAG,CAAC,IAAIM,EAAEN,EAAEO,OAAO,IAAIN,EAAE,EAAEA,EAAEK,EAAEL,IAAID,EAAEC,KAAKC,EAAEH,EAAEC,EAAEC,OAAOE,IAAIA,GAAG,KAAKA,GAAGD,EAAE,MAAM,IAAIA,KAAKF,EAAEA,EAAEE,KAAKC,IAAIA,GAAG,KAAKA,GAAGD,GAAG,OAAOC,CAAC,CAAQ,SAASK,IAAO,IAAI,IAAIR,EAAEC,EAAEC,EAAE,EAAEC,EAAE,GAAGG,EAAEG,UAAUF,OAAOL,EAAEI,EAAEJ,KAAKF,EAAES,UAAUP,MAAMD,EAAEF,EAAEC,MAAMG,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC,CCe/W,MAAMO,EAAiBC,GAAyB,kBAAVA,EAAsB,GAAGA,IAAoB,IAAVA,EAAc,IAAMA,EAChFC,EAAKJ,EACLK,EAAM,CAACC,EAAMC,IAAUC,IAC5B,IAAIC,EACJ,GAAyE,OAApEF,aAAuC,EAASA,EAAOG,UAAmB,OAAON,EAAGE,EAAME,aAAqC,EAASA,EAAMG,MAAOH,aAAqC,EAASA,EAAMI,WAC9M,MAAMF,SAAEA,EAAQG,gBAAEA,GAAoBN,EAChCO,EAAuBC,OAAOC,KAAKN,GAAUO,IAAKC,IACpD,MAAMC,EAAcX,aAAqC,EAASA,EAAMU,GAClEE,EAAqBP,aAAyD,EAASA,EAAgBK,GAC7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iB,UAAWL,GAC9B,IAAMI,SAASE,oBAAoB,UAAWN,IACpD,CAACF,EAASC,IDgDbnD,EAAAA,UAAU,KACR,GAAIkC,EAAc,OAClB,IAAKN,EAEH,YADAS,EAAkBzB,GAGpB,MAAMgD,EAAOjC,EAAQS,KAAKN,GAAOA,EAAI1J,QAAUwJ,GAAgBE,EAAIjB,QAAUe,IAAiBhB,EAC9FyB,EAAkBuB,IACjB,CAAC1B,EAAcN,IAGlB,MAAMV,EAAkB2B,EAAAA,QAAQ,IACzB5B,EACEU,EAAQnF,OAAOsF,GAAOD,EAASC,EAAKb,IADlBU,EAExB,CAACA,EAASV,EAAaY,IAEpBV,EAAe0B,EAAAA,QAAQ,IACpBE,EAAYf,EAAac,GAAgB,KAC/C,CAACC,EAAWf,EAAcc,IAmB7B,MAAO,CAEL/B,eAAgB+B,EAChB9B,SACAC,cACAU,UACA3C,SACAoC,eAGAC,kBAnBoBK,IAChBQ,EACF3B,IAAWmB,EAAOtJ,MAAOsJ,GAEzBW,EAAkBX,GAEpBsB,KAcA1B,aA5BmB,KACnBkB,EAAS,CAAElC,KAAM,YA4BjBiB,aAzBoBnJ,IACpBoK,EAAS,CAAElC,KAAM,SAAUyB,KAAM3J,KAyBjC4K,cAGA5K,MAAO0K,EAAa1K,MACpByI,MAAOiC,EAAajC,MACpBkC,YACA7B,kBACAC,eACAa,eACAC","x_google_ignoreList":[0,1,5,6,7,8,9,10,11,12]}
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme, base, components, utilities;@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-yellow-50:oklch(98.7% 0.026 102.212);--color-yellow-100:oklch(97.3% 0.071 103.193);--color-yellow-200:oklch(94.5% 0.129 101.54);--color-yellow-300:oklch(90.5% 0.182 98.111);--color-yellow-400:oklch(85.2% 0.199 91.936);--color-gray-100:oklch(96.7% 0.003 264.542);--color-gray-300:oklch(87.2% 0.01 258.338);--color-gray-400:oklch(70.7% 0.022 261.325);--color-gray-600:oklch(44.6% 0.03 256.802);--color-gray-700:oklch(37.3% 0.034 259.733);--color-black:#000;--color-white:#fff;--spacing:0.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-4xl:56rem;--container-6xl:72rem;--text-sm:0.875rem;--text-sm--line-height:1.42857;--text-lg:1.125rem;--text-lg--line-height:1.55556;--font-weight-medium:500;--font-weight-bold:700;--radius-lg:0.5rem;--default-transition-duration:150ms;--default-transition-timing-function:cubic-bezier(0.4,0,0.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary-50:#fcf6df;--color-primary-100:#c9bf91;--color-primary-200:#fde68a;--color-primary-300:#eccb43;--color-primary-400:#e9be11;--color-secondary-50:#4d596d;--color-secondary-100:#343a46;--color-secondary-200:#2a303c;--color-secondary-300:#20242d;--color-secondary-400:#19191f;--color-secondary-50-opacity:rgba(77,89,109,.7);--color-secondary-100-opacity:rgba(52,58,70,.7);--color-secondary-200-opacity:rgba(42,48,60,.7);--color-secondary-300-opacity:rgba(32,36,45,.7);--color-secondary-400-opacity:rgba(25,25,31,.7);--font-size-yds-h1:48px;--line-height-yds-h1:58px;--font-weight-yds-h1:600;--font-size-yds-h2:40px;--line-height-yds-h2:48px;--font-weight-yds-h2:600;--font-size-yds-s1:24px;--line-height-yds-s1:30px;--font-weight-yds-s1:600;--font-size-yds-s2:20px;--line-height-yds-s2:26px;--font-weight-yds-s2:600;--font-size-yds-b1:18px;--line-height-yds-b1:26px;--font-weight-yds-b1:600;--font-size-yds-b2:16px;--line-height-yds-b2:24px;--font-weight-yds-b2:400;--font-size-yds-c1m:14px;--line-height-yds-c1m:16px;--font-weight-yds-c1m:500;--font-size-yds-c1r:12px;--line-height-yds-c1r:16px;--font-weight-yds-c1r:400;--font-size-yds-c2r:10px;--line-height-yds-c2r:14px;--font-weight-yds-c2r:400;--font-yds-wanted:"Wanted Sans Variable";--yds-border-width:2px;--yds-border-radius:8px;--yds-content-padding:16px;--color-background-primary:var(--color-secondary-400);--color-background-secondary:var(--color-secondary-300);--color-background-tertiary:var(--color-secondary-200);--color-background-forth:var(--color-secondary-100);--color-background-fifth:var(--color-secondary-50);--color-background-primary-layer:var(--color-secondary-400-opacity);--color-background-secondary-layer:var(--color-secondary-300-opacity);--color-background-tertiary-layer:var(--color-secondary-200-opacity);--color-background-forth-layer:var(--color-secondary-100-opacity);--color-background-fifth-layer:var(--color-secondary-50-opacity);--color-background2-primary-light:var(--color-primary-50);--color-background2-primary-deep:var(--color-primary-400);--color-border-primary-light:var(--color-primary-100);--color-border-primary-deep:var(--color-primary-400);--color-font-primary-light:var(--color-primary-100);--color-font-primary-deep:var(--color-primary-400);--color-table-wrapper-bg:var(--color-secondary-300);--color-table-header-bg:var(--color-secondary-200);--color-table-row-bg:var(--color-secondary-300);--color-table-border:var(--color-secondary-100);--color-table-text:var(--color-white);--color-table-text-header:var(--color-primary-100);--table-cell-padding-x:16px;--table-cell-padding-y:10px;--table-cell-height:40px;--table-header-height:40px;--color-button-fill-primary-bg:var(--color-background2-primary-deep);--color-button-fill-primary-text:var(--color-black);--color-button-outlined-primary-bg:transparent;--color-button-outlined-primary-border:var(--color-border-primary-deep);--color-button-outlined-primary-text:var(--color-font-primary-deep);--button-height:48px;--button-border-radius:var(--yds-border-radius);--modal-size-sm-width:320px;--modal-size-sm-height:400px;--modal-size-sm-max-height:400px;--modal-size-md-width:480px;--modal-size-md-height:600px;--modal-size-md-max-height:600px;--modal-size-lg-width:640px;--modal-size-lg-height:800px;--modal-size-lg-max-height:800px;--modal-size-xl-width:800px;--modal-size-xl-height:900px;--modal-size-xl-max-height:900px;--color-checkbox-text:var(--color-white);--color-checkbox-indicator-border:var(--color-border-primary-light);--color-checkbox-indicator-text:var(--color-font-primary-light);--color-checkbox-indicator-checked-bg:var(--color-background2-primary-light);--checkbox-wrapper-gap:6px;--checkbox-indicator-size:20px;--checkbox-indicator-inner-size:12px;--checkbox-indicator-border-radius:2px;--color-input-text:var(--color-white);--input-typography-font-size:var(--font-size-yds-b2);--input-typography-line-height:var(--line-height-yds-b2);--input-typography-font-weight:var(--font-weight-yds-b2);--input-typography-font-family:var(--font-yds-wanted);--chips-height:28px;--chips-padding-x:8px;--chips-typography-font-size:var(--font-size-yds-c1m);--chips-typography-line-height:var(--line-height-yds-c1m);--chips-typography-font-weight:var(--font-weight-yds-c1m);--chips-typography-font-family:var(--font-yds-wanted);--color-chips-fill-primary-bg:var(--color-background2-primary-deep);--color-chips-fill-primary-text:var(--color-black);--color-chips-outlined-primary-bg:transparent;--color-chips-outlined-primary-border:var(--color-border-primary-deep);--color-chips-outlined-primary-text:var(--color-font-primary-deep)}}@layer base{*,::backdrop,::file-selector-button,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:var(--default-font-feature-settings,normal);-webkit-tap-highlight-color:transparent;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:var(--default-mono-font-feature-settings,normal);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}::file-selector-button,button,input,optgroup,select,textarea{font-feature-settings:inherit;background-color:transparent;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentcolor;@supports (color:color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}::placeholder{color:currentcolor;@supports (color:color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}::file-selector-button,button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.sr-only{border-width:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;white-space:nowrap;width:1px}.absolute,.sr-only{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-5{top:calc(var(--spacing)*5)}.top-14{top:calc(var(--spacing)*14)}.right-5{right:calc(var(--spacing)*5)}.left-0{left:calc(var(--spacing)*0)}.left-3{left:calc(var(--spacing)*3)}.z-\[9999\]{z-index:9999}.mx-auto{margin-inline:auto}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-8{margin-top:calc(var(--spacing)*8)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.ml-6{margin-left:calc(var(--spacing)*6)}.block{display:block}.flex{display:flex}.grid{display:grid}.table{display:table}.h-6{height:calc(var(--spacing)*6)}.h-12{height:calc(var(--spacing)*12)}.h-24{height:calc(var(--spacing)*24)}.h-40{height:calc(var(--spacing)*40)}.h-64{height:calc(var(--spacing)*64)}.h-96{height:calc(var(--spacing)*96)}.h-\[40px\]{height:40px}.h-\[200px\]{height:200px}.h-\[500px\]{height:500px}.h-auto{height:auto}.h-full{height:100%}.max-h-96{max-height:calc(var(--spacing)*96)}.max-h-\[200px\]{max-height:200px}.min-h-\[200px\]{min-height:200px}.min-h-screen{min-height:100vh}.w-1\/4{width:25%}.w-6{width:calc(var(--spacing)*6)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-40{width:calc(var(--spacing)*40)}.w-64{width:calc(var(--spacing)*64)}.w-96{width:calc(var(--spacing)*96)}.w-\[50px\]{width:50px}.w-\[80px\]{width:80px}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[150px\]{width:150px}.w-\[180px\]{width:180px}.w-\[200px\]{width:200px}.w-\[250px\]{width:250px}.w-\[280px\]{width:280px}.w-\[300px\]{width:300px}.w-\[400px\]{width:400px}.w-\[500px\]{width:500px}.w-\[600px\]{width:600px}.w-\[800px\]{width:800px}.w-\[1200px\]{width:1200px}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.min-w-\[200px\]{min-width:200px}.flex-1{flex:1}.border-collapse{border-collapse:collapse}.-translate-y-1\/2{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.space-y-2{:where(&>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse))}}.space-y-4{:where(&>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*4*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*4*var(--tw-space-y-reverse))}}.space-y-6{:where(&>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*6*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*6*var(--tw-space-y-reverse))}}.space-y-8{:where(&>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*8*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*8*var(--tw-space-y-reverse))}}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-\[8px\]{border-radius:8px}.rounded-lg{border-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y-2{border-block-style:var(--tw-border-style);border-block-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-gray-600{border-color:var(--color-gray-600)}.border-gray-700{border-color:var(--color-gray-700)}.border-primary-100{border-color:var(--color-primary-100)}.border-white{border-color:var(--color-white)}.border-yellow-100{border-color:var(--color-yellow-100)}.border-yellow-400{border-color:var(--color-yellow-400)}.bg-\[var\(--color-primary-400\)\]{background-color:var(--color-primary-400)}.bg-background-primary{background-color:var(--color-background-primary)}.bg-background-secondary{background-color:var(--color-background-secondary)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-transparent{background-color:transparent}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-yellow-200{background-color:var(--color-yellow-200)}.bg-yellow-300{background-color:var(--color-yellow-300)}.bg-yellow-400{background-color:var(--color-yellow-400)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-3{padding-block:calc(var(--spacing)*3)}.pr-3{padding-right:calc(var(--spacing)*3)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-yds-b1{font-size:var(--font-size-yds-b1);font-weight:var(--font-weight-yds-b1);line-height:var(--line-height-yds-b1)}.text-yds-b1,.text-yds-b2{font-family:var(--font-yds-wanted)}.text-yds-b2{font-size:var(--font-size-yds-b2);font-weight:var(--font-weight-yds-b2);line-height:var(--line-height-yds-b2)}.text-yds-c1m{font-size:var(--font-size-yds-c1m);font-weight:var(--font-weight-yds-c1m);line-height:var(--line-height-yds-c1m)}.text-yds-c1m,.text-yds-c1r{font-family:var(--font-yds-wanted)}.text-yds-c1r{font-size:var(--font-size-yds-c1r);font-weight:var(--font-weight-yds-c1r);line-height:var(--line-height-yds-c1r)}.text-yds-c2r{font-size:var(--font-size-yds-c2r);font-weight:var(--font-weight-yds-c2r);line-height:var(--line-height-yds-c2r)}.text-yds-c2r,.text-yds-h1{font-family:var(--font-yds-wanted)}.text-yds-h1{font-size:var(--font-size-yds-h1);font-weight:var(--font-weight-yds-h1);line-height:var(--line-height-yds-h1)}.text-yds-h2{font-size:var(--font-size-yds-h2);font-weight:var(--font-weight-yds-h2);line-height:var(--line-height-yds-h2)}.text-yds-h2,.text-yds-s1{font-family:var(--font-yds-wanted)}.text-yds-s1{font-size:var(--font-size-yds-s1);font-weight:var(--font-weight-yds-s1);line-height:var(--line-height-yds-s1)}.text-yds-s2{font-size:var(--font-size-yds-s2);font-weight:var(--font-weight-yds-s2);line-height:var(--line-height-yds-s2)}.font-yds-wanted,.text-yds-s2{font-family:var(--font-yds-wanted)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-black{color:var(--color-black)}.text-current{color:currentcolor}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-primary-400{color:var(--color-primary-400)}.text-white{color:var(--color-white)}.text-yellow-100{color:var(--color-yellow-100)}.text-yellow-300{color:var(--color-yellow-300)}.text-yellow-400{color:var(--color-yellow-400)}.capitalize{text-transform:capitalize}.placeholder-white{&::-moz-placeholder{color:var(--color-white)}&::placeholder{color:var(--color-white)}}.placeholder-yellow-100{&::-moz-placeholder{color:var(--color-yellow-100)}&::placeholder{color:var(--color-yellow-100)}}.placeholder-yellow-400{&::-moz-placeholder{color:var(--color-yellow-400)}&::placeholder{color:var(--color-yellow-400)}}.opacity-50{opacity:50%}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,rgba(0,0,0,.1)),0 2px 4px -2px var(--tw-shadow-color,rgba(0,0,0,.1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-colors{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-transform{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.duration-300{--tw-duration:300ms;transition-duration:.3s}.hover\:bg-background-primary{&:hover{@media (hover:hover){background-color:var(--color-background-primary)}}}.hover\:bg-background-tertiary{&:hover{@media (hover:hover){background-color:var(--color-background-tertiary)}}}.hover\:outline-none{&:hover{@media (hover:hover){--tw-outline-style:none;outline-style:none}}}.focus\:outline-none{&:focus{--tw-outline-style:none;outline-style:none}}.lg\:grid-cols-3,.sm\:grid-cols-2{@media (width >= 64rem){grid-template-columns:repeat(3,minmax(0,1fr))}}.bg-background-primary{background-color:var(--color-background-primary)}.bg-background-secondary{background-color:var(--color-background-secondary)}.bg-background-tertiary{background-color:var(--color-background-tertiary)}.bg-background-forth{background-color:var(--color-background-forth)}.bg-background-fifth{background-color:var(--color-background-fifth)}.bg-background-primary-layer{background-color:var(--color-background-primary-layer)}.bg-background-secondary-layer{background-color:var(--color-background-secondary-layer)}.bg-background-tertiary-layer{background-color:var(--color-background-tertiary-layer)}.bg-background-forth-layer{background-color:var(--color-background-forth-layer)}.bg-background-fifth-layer{background-color:var(--color-background-fifth-layer)}.text-primary-50{color:var(--color-primary-50)}.text-primary-100{color:var(--color-primary-100)}.text-primary-200{color:var(--color-primary-200)}.text-primary-300{color:var(--color-primary-300)}.text-primary-400{color:var(--color-primary-400)}.border-primary-50{border-color:var(--color-primary-50);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-primary-100{border-color:var(--color-primary-100);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-primary-200{border-color:var(--color-primary-200);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-primary-300{border-color:var(--color-primary-300);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-primary-400{border-color:var(--color-primary-400);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-secondary-50{border-color:var(--color-secondary-50);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-secondary-100{border-color:var(--color-secondary-100);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-secondary-200{border-color:var(--color-secondary-200);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-secondary-300{border-color:var(--color-secondary-300);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-secondary-400{border-color:var(--color-secondary-400);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.card-navy-50{border-color:var(--color-secondary-50);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.card-navy-100,.card-navy-50{padding:var(--yds-content-padding)}.card-navy-100{border-color:var(--color-secondary-100);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.card-navy-200{border-color:var(--color-secondary-200);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.card-navy-200,.card-navy-300{padding:var(--yds-content-padding)}.card-navy-300{border-color:var(--color-secondary-300);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.card-navy-400{border-color:var(--color-secondary-400);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width);padding:var(--yds-content-padding)}.z-select-box-dropdown{z-index:1000}.z-modal-backdrop{z-index:1200}.z-modal{z-index:1210}}@import url("https://fastly.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.1/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css");@layer components{.yds-button{align-items:center;border-radius:var(--button-border-radius);cursor:pointer;display:flex;font-family:var(--font-yds-wanted);font-size:var(--font-size-yds-b1);font-weight:var(--font-weight-yds-b1);height:var(--button-height);justify-content:center;line-height:var(--line-height-yds-b1)}.yds-button-fill-primary{background-color:var(--color-button-fill-primary-bg);color:var(--color-button-fill-primary-text)}.yds-button-outlined-primary{background-color:var(--color-button-outlined-primary-bg);border:var(--yds-border-width) solid var(--color-button-outlined-primary-border);color:var(--color-button-outlined-primary-text)}.yds-input-typography{color:var(--color-input-text);font-family:var(--input-typography-font-family);font-size:var(--input-typography-font-size);font-weight:var(--input-typography-font-weight);line-height:var(--input-typography-line-height)}.yds-checkbox-wrapper{align-items:center;display:flex;gap:var(--checkbox-wrapper-gap)}.yds-checkbox-typography{color:var(--color-checkbox-text);font-family:var(--font-yds-wanted);font-size:var(--font-size-yds-b2);font-weight:var(--font-weight-yds-b2);line-height:var(--line-height-yds-b2)}.yds-checkbox-indicator{align-items:center;border:var(--yds-border-width) solid var(--color-checkbox-indicator-border);border-radius:var(--checkbox-indicator-border-radius);color:var(--color-checkbox-indicator-text);display:flex;height:var(--checkbox-indicator-size);justify-content:center;width:var(--checkbox-indicator-size)}.yds-checkbox-indicator-inner-checked{background-color:var(--color-checkbox-indicator-checked-bg)}.yds-checkbox-indicator-inner-checked,.yds-checkbox-indicator-inner-unchecked{height:var(--checkbox-indicator-inner-size);width:var(--checkbox-indicator-inner-size)}.yds-checkbox-indicator-inner-unchecked{background-color:transparent}.yds-checkbox-icon-indicator,.yds-checkbox-indicator-inner-indeterminate{align-items:center;display:flex;height:var(--checkbox-indicator-size);justify-content:center;width:var(--checkbox-indicator-size)}.yds-checkbox-icon-indicator{border:var(--yds-border-width) solid var(--color-checkbox-indicator-border);border-radius:var(--checkbox-indicator-border-radius);color:var(--color-checkbox-indicator-text)}.yds-modal-backdrop{align-items:center;background-color:var(--color-background-primary-layer);display:flex;inset:0;justify-content:center;position:fixed}.yds-modal{background-color:var(--color-background-secondary);border-radius:var(--yds-border-radius);display:flex;flex-direction:column;overflow-y:auto;padding:var(--yds-content-padding)}.yds-modal-size-sm{height:var(--modal-size-sm-height);max-height:var(--modal-size-sm-max-height);width:var(--modal-size-sm-width)}.yds-modal-size-md{height:var(--modal-size-md-height);max-height:var(--modal-size-md-max-height);width:var(--modal-size-md-width)}.yds-modal-size-lg{height:var(--modal-size-lg-height);max-height:var(--modal-size-lg-max-height);width:var(--modal-size-lg-width)}.yds-modal-size-xl{height:var(--modal-size-xl-height);max-height:var(--modal-size-xl-max-height);width:var(--modal-size-xl-width)}.yds-table-wrapper{background-color:var(--color-table-wrapper-bg);border-collapse:separate;border-spacing:0;color:var(--color-table-text);table-layout:fixed}.yds-table-header{background-color:var(--color-table-header-bg)}.yds-table-header-cell{color:var(--color-table-text-header);height:var(--table-header-height);overflow:hidden;padding:var(--table-cell-padding-y) var(--table-cell-padding-x);text-align:left;text-overflow:ellipsis;white-space:nowrap}.yds-table-row{background-color:var(--color-table-row-bg)}.yds-table-cell{border-bottom:var(--yds-border-width) solid var(--color-table-border);color:var(--color-table-text);height:var(--table-cell-height);overflow:hidden;padding:var(--table-cell-padding-y) var(--table-cell-padding-x);text-align:left;text-overflow:ellipsis;white-space:nowrap}.yds-card{border-style:solid;box-sizing:border-box;display:block}.yds-card.card-navy-50{border-color:var(--color-secondary-50);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width);padding:var(--yds-content-padding)}.yds-chips{align-items:center;border-radius:var(--yds-border-radius);border-style:solid;border-width:var(--yds-border-width);box-sizing:border-box;display:inline-flex;font-family:var(--chips-typography-font-family);font-size:var(--chips-typography-font-size);font-weight:var(--chips-typography-font-weight);height:var(--chips-height);line-height:var(--chips-typography-line-height);padding-left:var(--chips-padding-x);padding-right:var(--chips-padding-x)}.yds-chips-fill-primary{background-color:var(--color-chips-fill-primary-bg);border-color:transparent;color:var(--color-chips-fill-primary-text)}.yds-chips-outlined-primary{background-color:var(--color-chips-outlined-primary-bg);border-color:var(--color-chips-outlined-primary-border);color:var(--color-chips-outlined-primary-text)}}::-webkit-scrollbar{height:5px;width:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#888;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#555}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}}}
1
+ /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme, base, components, utilities;@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-yellow-50:oklch(98.7% 0.026 102.212);--color-yellow-100:oklch(97.3% 0.071 103.193);--color-yellow-200:oklch(94.5% 0.129 101.54);--color-yellow-300:oklch(90.5% 0.182 98.111);--color-yellow-400:oklch(85.2% 0.199 91.936);--color-gray-100:oklch(96.7% 0.003 264.542);--color-gray-300:oklch(87.2% 0.01 258.338);--color-gray-400:oklch(70.7% 0.022 261.325);--color-gray-600:oklch(44.6% 0.03 256.802);--color-gray-700:oklch(37.3% 0.034 259.733);--color-black:#000;--color-white:#fff;--spacing:0.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-4xl:56rem;--container-6xl:72rem;--text-sm:0.875rem;--text-sm--line-height:1.42857;--text-lg:1.125rem;--text-lg--line-height:1.55556;--font-weight-medium:500;--font-weight-bold:700;--radius-lg:0.5rem;--default-transition-duration:150ms;--default-transition-timing-function:cubic-bezier(0.4,0,0.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary-50:#fcf6df;--color-primary-100:#c9bf91;--color-primary-200:#fde68a;--color-primary-300:#eccb43;--color-primary-400:#e9be11;--color-secondary-50:#4d596d;--color-secondary-100:#343a46;--color-secondary-200:#2a303c;--color-secondary-300:#20242d;--color-secondary-400:#19191f;--color-secondary-50-opacity:rgba(77,89,109,.7);--color-secondary-100-opacity:rgba(52,58,70,.7);--color-secondary-200-opacity:rgba(42,48,60,.7);--color-secondary-300-opacity:rgba(32,36,45,.7);--color-secondary-400-opacity:rgba(25,25,31,.7);--font-size-yds-h1:48px;--line-height-yds-h1:58px;--font-weight-yds-h1:600;--font-size-yds-h2:40px;--line-height-yds-h2:48px;--font-weight-yds-h2:600;--font-size-yds-s1:24px;--line-height-yds-s1:30px;--font-weight-yds-s1:600;--font-size-yds-s2:20px;--line-height-yds-s2:26px;--font-weight-yds-s2:600;--font-size-yds-b1:18px;--line-height-yds-b1:26px;--font-weight-yds-b1:600;--font-size-yds-b2:16px;--line-height-yds-b2:24px;--font-weight-yds-b2:400;--font-size-yds-c1m:14px;--line-height-yds-c1m:16px;--font-weight-yds-c1m:500;--font-size-yds-c1r:12px;--line-height-yds-c1r:16px;--font-weight-yds-c1r:400;--font-size-yds-c2r:10px;--line-height-yds-c2r:14px;--font-weight-yds-c2r:400;--font-yds-wanted:"Wanted Sans Variable";--yds-border-width:2px;--yds-border-radius:8px;--yds-content-padding:16px;--color-background-primary:var(--color-secondary-400);--color-background-secondary:var(--color-secondary-300);--color-background-tertiary:var(--color-secondary-200);--color-background-fourth:var(--color-secondary-100);--color-background-fifth:var(--color-secondary-50);--color-background-primary-layer:var(--color-secondary-400-opacity);--color-background-secondary-layer:var(--color-secondary-300-opacity);--color-background-tertiary-layer:var(--color-secondary-200-opacity);--color-background-fourth-layer:var(--color-secondary-100-opacity);--color-background-fifth-layer:var(--color-secondary-50-opacity);--color-background2-primary-light:var(--color-primary-50);--color-background2-primary-deep:var(--color-primary-400);--color-border-primary-light:var(--color-primary-100);--color-border-primary-deep:var(--color-primary-400);--color-font-primary-light:var(--color-primary-100);--color-font-primary-deep:var(--color-primary-400);--color-table-wrapper-bg:var(--color-secondary-300);--color-table-header-bg:var(--color-secondary-200);--color-table-row-bg:var(--color-secondary-300);--color-table-border:var(--color-secondary-100);--color-table-text:var(--color-white);--color-table-text-header:var(--color-primary-100);--table-cell-padding-x:16px;--table-cell-padding-y:10px;--table-cell-height:40px;--table-header-height:40px;--color-button-fill-primary-bg:var(--color-background2-primary-deep);--color-button-fill-primary-text:var(--color-black);--color-button-outlined-primary-bg:transparent;--color-button-outlined-primary-border:var(--color-border-primary-deep);--color-button-outlined-primary-text:var(--color-font-primary-deep);--button-height:48px;--button-border-radius:var(--yds-border-radius);--modal-size-sm-width:320px;--modal-size-sm-height:400px;--modal-size-sm-max-height:400px;--modal-size-md-width:480px;--modal-size-md-height:600px;--modal-size-md-max-height:600px;--modal-size-lg-width:640px;--modal-size-lg-height:800px;--modal-size-lg-max-height:800px;--modal-size-xl-width:800px;--modal-size-xl-height:900px;--modal-size-xl-max-height:900px;--color-checkbox-text:var(--color-white);--color-checkbox-indicator-border:var(--color-border-primary-light);--color-checkbox-indicator-text:var(--color-font-primary-light);--color-checkbox-indicator-checked-bg:var(--color-background2-primary-light);--checkbox-wrapper-gap:6px;--checkbox-indicator-size:20px;--checkbox-indicator-inner-size:12px;--checkbox-indicator-border-radius:2px;--color-input-text:var(--color-white);--input-typography-font-size:var(--font-size-yds-b2);--input-typography-line-height:var(--line-height-yds-b2);--input-typography-font-weight:var(--font-weight-yds-b2);--input-typography-font-family:var(--font-yds-wanted);--chips-height:28px;--chips-padding-x:8px;--chips-typography-font-size:var(--font-size-yds-c1m);--chips-typography-line-height:var(--line-height-yds-c1m);--chips-typography-font-weight:var(--font-weight-yds-c1m);--chips-typography-font-family:var(--font-yds-wanted);--color-chips-fill-primary-bg:var(--color-background2-primary-deep);--color-chips-fill-primary-text:var(--color-black);--color-chips-outlined-primary-bg:transparent;--color-chips-outlined-primary-border:var(--color-border-primary-deep);--color-chips-outlined-primary-text:var(--color-font-primary-deep);--toast-min-width:280px;--toast-max-width:420px;--toast-padding-x:16px;--toast-padding-y:12px;--toast-border-width:2px;--toast-border-radius:var(--yds-border-radius);--toast-gap:8px;--toast-typography-font-size:var(--font-size-yds-b2);--toast-typography-line-height:var(--line-height-yds-b2);--toast-typography-font-weight:var(--font-weight-yds-b2);--toast-typography-font-family:var(--font-yds-wanted);--color-toast-bg:var(--color-background-tertiary);--color-toast-text:var(--color-white);--color-toast-border:var(--color-secondary-50);--confirm-dialog-width:360px;--confirm-dialog-max-width:90vw;--confirm-dialog-padding:24px;--confirm-dialog-gap:12px;--z-index-select-box-dropdown:1000;--z-index-modal-backdrop:1200;--z-index-modal:1210;--z-index-confirm-dialog-backdrop:1300;--z-index-confirm-dialog:1310;--z-index-toast:1400}}@layer base{*,::backdrop,::file-selector-button,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:var(--default-font-feature-settings,normal);-webkit-tap-highlight-color:transparent;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:var(--default-mono-font-feature-settings,normal);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}::file-selector-button,button,input,optgroup,select,textarea{font-feature-settings:inherit;background-color:transparent;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentcolor;@supports (color:color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}::placeholder{color:currentcolor;@supports (color:color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}::file-selector-button,button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.sr-only{border-width:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;white-space:nowrap;width:1px}.absolute,.sr-only{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-5{top:calc(var(--spacing)*5)}.top-14{top:calc(var(--spacing)*14)}.right-5{right:calc(var(--spacing)*5)}.left-0{left:calc(var(--spacing)*0)}.left-3{left:calc(var(--spacing)*3)}.z-\[9999\]{z-index:9999}.z-\[var\(--z-index-select-box-dropdown\)\]{z-index:var(--z-index-select-box-dropdown)}.z-modal{z-index:var(--z-index-modal)}.z-modal-backdrop{z-index:var(--z-index-modal-backdrop)}.z-select-box-dropdown{z-index:var(--z-index-select-box-dropdown)}.mx-auto{margin-inline:auto}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-8{margin-top:calc(var(--spacing)*8)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.ml-6{margin-left:calc(var(--spacing)*6)}.block{display:block}.flex{display:flex}.grid{display:grid}.table{display:table}.h-6{height:calc(var(--spacing)*6)}.h-12{height:calc(var(--spacing)*12)}.h-24{height:calc(var(--spacing)*24)}.h-40{height:calc(var(--spacing)*40)}.h-64{height:calc(var(--spacing)*64)}.h-96{height:calc(var(--spacing)*96)}.h-\[40px\]{height:40px}.h-\[200px\]{height:200px}.h-\[500px\]{height:500px}.h-auto{height:auto}.h-full{height:100%}.max-h-96{max-height:calc(var(--spacing)*96)}.max-h-\[200px\]{max-height:200px}.min-h-\[200px\]{min-height:200px}.min-h-screen{min-height:100vh}.w-1\/4{width:25%}.w-6{width:calc(var(--spacing)*6)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-40{width:calc(var(--spacing)*40)}.w-64{width:calc(var(--spacing)*64)}.w-96{width:calc(var(--spacing)*96)}.w-\[50px\]{width:50px}.w-\[80px\]{width:80px}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[150px\]{width:150px}.w-\[180px\]{width:180px}.w-\[200px\]{width:200px}.w-\[250px\]{width:250px}.w-\[280px\]{width:280px}.w-\[300px\]{width:300px}.w-\[400px\]{width:400px}.w-\[500px\]{width:500px}.w-\[600px\]{width:600px}.w-\[800px\]{width:800px}.w-\[1200px\]{width:1200px}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.min-w-\[200px\]{min-width:200px}.flex-1{flex:1}.border-collapse{border-collapse:collapse}.-translate-y-1\/2{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-around{justify-content:space-around}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.space-y-2{:where(&>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse))}}.space-y-4{:where(&>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*4*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*4*var(--tw-space-y-reverse))}}.space-y-6{:where(&>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*6*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*6*var(--tw-space-y-reverse))}}.space-y-8{:where(&>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*8*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*8*var(--tw-space-y-reverse))}}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-\[8px\]{border-radius:8px}.rounded-lg{border-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y-2{border-block-style:var(--tw-border-style);border-block-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-gray-600{border-color:var(--color-gray-600)}.border-gray-700{border-color:var(--color-gray-700)}.border-primary-50{border-color:var(--color-primary-50)}.border-primary-100{border-color:var(--color-primary-100)}.border-primary-400{border-color:var(--color-primary-400)}.border-secondary-50{border-color:var(--color-secondary-50)}.border-secondary-400{border-color:var(--color-secondary-400)}.border-white{border-color:var(--color-white)}.border-yellow-100{border-color:var(--color-yellow-100)}.border-yellow-400{border-color:var(--color-yellow-400)}.bg-\[var\(--color-primary-400\)\]{background-color:var(--color-primary-400)}.bg-background-fifth{background-color:var(--color-background-fifth)}.bg-background-fifth-layer{background-color:var(--color-background-fifth-layer)}.bg-background-fourth{background-color:var(--color-background-fourth)}.bg-background-fourth-layer{background-color:var(--color-background-fourth-layer)}.bg-background-primary{background-color:var(--color-background-primary)}.bg-background-primary-layer{background-color:var(--color-background-primary-layer)}.bg-background-secondary{background-color:var(--color-background-secondary)}.bg-background-secondary-layer{background-color:var(--color-background-secondary-layer)}.bg-background-tertiary{background-color:var(--color-background-tertiary)}.bg-background-tertiary-layer{background-color:var(--color-background-tertiary-layer)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-transparent{background-color:transparent}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-yellow-200{background-color:var(--color-yellow-200)}.bg-yellow-300{background-color:var(--color-yellow-300)}.bg-yellow-400{background-color:var(--color-yellow-400)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-3{padding-block:calc(var(--spacing)*3)}.pr-3{padding-right:calc(var(--spacing)*3)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-yds-b1{font-size:var(--font-size-yds-b1);font-weight:var(--font-weight-yds-b1);line-height:var(--line-height-yds-b1)}.text-yds-b1,.text-yds-b2{font-family:var(--font-yds-wanted)}.text-yds-b2{font-size:var(--font-size-yds-b2);font-weight:var(--font-weight-yds-b2);line-height:var(--line-height-yds-b2)}.text-yds-c1m{font-size:var(--font-size-yds-c1m);font-weight:var(--font-weight-yds-c1m);line-height:var(--line-height-yds-c1m)}.text-yds-c1m,.text-yds-c1r{font-family:var(--font-yds-wanted)}.text-yds-c1r{font-size:var(--font-size-yds-c1r);font-weight:var(--font-weight-yds-c1r);line-height:var(--line-height-yds-c1r)}.text-yds-c2r{font-size:var(--font-size-yds-c2r);font-weight:var(--font-weight-yds-c2r);line-height:var(--line-height-yds-c2r)}.text-yds-c2r,.text-yds-h1{font-family:var(--font-yds-wanted)}.text-yds-h1{font-size:var(--font-size-yds-h1);font-weight:var(--font-weight-yds-h1);line-height:var(--line-height-yds-h1)}.text-yds-h2{font-size:var(--font-size-yds-h2);font-weight:var(--font-weight-yds-h2);line-height:var(--line-height-yds-h2)}.text-yds-h2,.text-yds-s1{font-family:var(--font-yds-wanted)}.text-yds-s1{font-size:var(--font-size-yds-s1);font-weight:var(--font-weight-yds-s1);line-height:var(--line-height-yds-s1)}.text-yds-s2{font-size:var(--font-size-yds-s2);font-weight:var(--font-weight-yds-s2);line-height:var(--line-height-yds-s2)}.font-yds-wanted,.text-yds-s2{font-family:var(--font-yds-wanted)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-black{color:var(--color-black)}.text-current{color:currentcolor}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-primary-50{color:var(--color-primary-50)}.text-primary-100{color:var(--color-primary-100)}.text-primary-200{color:var(--color-primary-200)}.text-primary-300{color:var(--color-primary-300)}.text-primary-400{color:var(--color-primary-400)}.text-white{color:var(--color-white)}.text-yellow-100{color:var(--color-yellow-100)}.text-yellow-300{color:var(--color-yellow-300)}.text-yellow-400{color:var(--color-yellow-400)}.capitalize{text-transform:capitalize}.placeholder-white{&::-moz-placeholder{color:var(--color-white)}&::placeholder{color:var(--color-white)}}.placeholder-yellow-100{&::-moz-placeholder{color:var(--color-yellow-100)}&::placeholder{color:var(--color-yellow-100)}}.placeholder-yellow-400{&::-moz-placeholder{color:var(--color-yellow-400)}&::placeholder{color:var(--color-yellow-400)}}.opacity-50{opacity:50%}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,rgba(0,0,0,.1)),0 2px 4px -2px var(--tw-shadow-color,rgba(0,0,0,.1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-colors{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-transform{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.duration-300{--tw-duration:300ms;transition-duration:.3s}.hover\:bg-background-primary{&:hover{@media (hover:hover){background-color:var(--color-background-primary)}}}.hover\:bg-background-tertiary{&:hover{@media (hover:hover){background-color:var(--color-background-tertiary)}}}.hover\:outline-none{&:hover{@media (hover:hover){--tw-outline-style:none;outline-style:none}}}.focus\:outline-none{&:focus{--tw-outline-style:none;outline-style:none}}.lg\:grid-cols-3,.sm\:grid-cols-2{@media (width >= 64rem){grid-template-columns:repeat(3,minmax(0,1fr))}}.bg-background-primary{background-color:var(--color-background-primary)}.bg-background-secondary{background-color:var(--color-background-secondary)}.bg-background-tertiary{background-color:var(--color-background-tertiary)}.bg-background-fourth{background-color:var(--color-background-fourth)}.bg-background-fifth{background-color:var(--color-background-fifth)}.bg-background-primary-layer{background-color:var(--color-background-primary-layer)}.bg-background-secondary-layer{background-color:var(--color-background-secondary-layer)}.bg-background-tertiary-layer{background-color:var(--color-background-tertiary-layer)}.bg-background-fourth-layer{background-color:var(--color-background-fourth-layer)}.bg-background-fifth-layer{background-color:var(--color-background-fifth-layer)}.text-primary-50{color:var(--color-primary-50)}.text-primary-100{color:var(--color-primary-100)}.text-primary-200{color:var(--color-primary-200)}.text-primary-300{color:var(--color-primary-300)}.text-primary-400{color:var(--color-primary-400)}.border-primary-50{border-color:var(--color-primary-50);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-primary-100{border-color:var(--color-primary-100);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-primary-200{border-color:var(--color-primary-200);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-primary-300{border-color:var(--color-primary-300);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-primary-400{border-color:var(--color-primary-400);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-secondary-50{border-color:var(--color-secondary-50);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-secondary-100{border-color:var(--color-secondary-100);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-secondary-200{border-color:var(--color-secondary-200);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-secondary-300{border-color:var(--color-secondary-300);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.border-secondary-400{border-color:var(--color-secondary-400);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.card-navy-50{border-color:var(--color-secondary-50);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.card-navy-100,.card-navy-50{padding:var(--yds-content-padding)}.card-navy-100{border-color:var(--color-secondary-100);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.card-navy-200{border-color:var(--color-secondary-200);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.card-navy-200,.card-navy-300{padding:var(--yds-content-padding)}.card-navy-300{border-color:var(--color-secondary-300);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.card-navy-400{border-color:var(--color-secondary-400);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width);padding:var(--yds-content-padding)}}@import url("https://fastly.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.1/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css");@layer components{.yds-button{align-items:center;border-radius:var(--button-border-radius);cursor:pointer;display:flex;font-family:var(--font-yds-wanted);font-size:var(--font-size-yds-b1);font-weight:var(--font-weight-yds-b1);height:var(--button-height);justify-content:center;line-height:var(--line-height-yds-b1)}.yds-button-fill-primary{background-color:var(--color-button-fill-primary-bg);color:var(--color-button-fill-primary-text)}.yds-button-outlined-primary{background-color:var(--color-button-outlined-primary-bg);border:var(--yds-border-width) solid var(--color-button-outlined-primary-border);color:var(--color-button-outlined-primary-text)}.yds-input-typography{color:var(--color-input-text);font-family:var(--input-typography-font-family);font-size:var(--input-typography-font-size);font-weight:var(--input-typography-font-weight);line-height:var(--input-typography-line-height)}.yds-checkbox-wrapper{align-items:center;display:flex;gap:var(--checkbox-wrapper-gap)}.yds-checkbox-typography{color:var(--color-checkbox-text);font-family:var(--font-yds-wanted);font-size:var(--font-size-yds-b2);font-weight:var(--font-weight-yds-b2);line-height:var(--line-height-yds-b2)}.yds-checkbox-indicator{align-items:center;border:var(--yds-border-width) solid var(--color-checkbox-indicator-border);border-radius:var(--checkbox-indicator-border-radius);color:var(--color-checkbox-indicator-text);display:flex;height:var(--checkbox-indicator-size);justify-content:center;width:var(--checkbox-indicator-size)}.yds-checkbox-indicator-inner-checked{background-color:var(--color-checkbox-indicator-checked-bg)}.yds-checkbox-indicator-inner-checked,.yds-checkbox-indicator-inner-unchecked{height:var(--checkbox-indicator-inner-size);width:var(--checkbox-indicator-inner-size)}.yds-checkbox-indicator-inner-unchecked{background-color:transparent}.yds-checkbox-icon-indicator,.yds-checkbox-indicator-inner-indeterminate{align-items:center;display:flex;height:var(--checkbox-indicator-size);justify-content:center;width:var(--checkbox-indicator-size)}.yds-checkbox-icon-indicator{border:var(--yds-border-width) solid var(--color-checkbox-indicator-border);border-radius:var(--checkbox-indicator-border-radius);color:var(--color-checkbox-indicator-text)}.yds-modal-backdrop{align-items:center;background-color:var(--color-background-primary-layer);display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-index-modal-backdrop)}.yds-modal{background-color:var(--color-background-secondary);border-radius:var(--yds-border-radius);display:flex;flex-direction:column;overflow-y:auto;padding:var(--yds-content-padding);z-index:var(--z-index-modal)}.yds-modal-size-sm{height:var(--modal-size-sm-height);max-height:var(--modal-size-sm-max-height);width:var(--modal-size-sm-width)}.yds-modal-size-md{height:var(--modal-size-md-height);max-height:var(--modal-size-md-max-height);width:var(--modal-size-md-width)}.yds-modal-size-lg{height:var(--modal-size-lg-height);max-height:var(--modal-size-lg-max-height);width:var(--modal-size-lg-width)}.yds-modal-size-xl{height:var(--modal-size-xl-height);max-height:var(--modal-size-xl-max-height);width:var(--modal-size-xl-width)}.yds-table-wrapper{background-color:var(--color-table-wrapper-bg);border-collapse:separate;border-spacing:0;color:var(--color-table-text);table-layout:fixed}.yds-table-header{background-color:var(--color-table-header-bg)}.yds-table-header-cell{color:var(--color-table-text-header);height:var(--table-header-height);overflow:hidden;padding:var(--table-cell-padding-y) var(--table-cell-padding-x);text-align:left;text-overflow:ellipsis;white-space:nowrap}.yds-table-row{background-color:var(--color-table-row-bg)}.yds-table-cell{border-bottom:var(--yds-border-width) solid var(--color-table-border);color:var(--color-table-text);height:var(--table-cell-height);overflow:hidden;padding:var(--table-cell-padding-y) var(--table-cell-padding-x);text-align:left;text-overflow:ellipsis;white-space:nowrap}.yds-card{border-style:solid;box-sizing:border-box;display:block}.yds-card.card-navy-50{border-color:var(--color-secondary-50);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width);padding:var(--yds-content-padding)}.yds-chips{align-items:center;border-radius:var(--yds-border-radius);border-style:solid;border-width:var(--yds-border-width);box-sizing:border-box;display:inline-flex;font-family:var(--chips-typography-font-family);font-size:var(--chips-typography-font-size);font-weight:var(--chips-typography-font-weight);height:var(--chips-height);line-height:var(--chips-typography-line-height);padding-left:var(--chips-padding-x);padding-right:var(--chips-padding-x)}.yds-chips-fill-primary{background-color:var(--color-chips-fill-primary-bg);border-color:transparent;color:var(--color-chips-fill-primary-text)}.yds-chips-outlined-primary{background-color:var(--color-chips-outlined-primary-bg);border-color:var(--color-chips-outlined-primary-border);color:var(--color-chips-outlined-primary-text)}.yds-toast-container{align-items:center;bottom:100px;display:flex;flex-direction:column;gap:var(--toast-gap);left:50%;pointer-events:none;position:fixed;transform:translateX(-50%)}.yds-toast{animation:yds-toast-slide-in .35s cubic-bezier(.21,1.02,.73,1) forwards;background-color:var(--color-toast-bg);border:var(--toast-border-width) solid var(--color-toast-border);border-radius:var(--toast-border-radius);color:var(--color-toast-text);font-family:var(--toast-typography-font-family);font-size:var(--toast-typography-font-size);font-weight:var(--toast-typography-font-weight);line-height:var(--toast-typography-line-height);max-width:var(--toast-max-width);min-width:var(--toast-min-width);padding:var(--toast-padding-y) var(--toast-padding-x);pointer-events:auto;z-index:var(--z-index-toast)}}@layer components{@keyframes yds-toast-slide-in{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}}@layer components{.yds-confirm-dialog-backdrop{align-items:center;background-color:var(--color-background-primary-layer);display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-index-confirm-dialog-backdrop)}.yds-confirm-dialog{animation:yds-confirm-dialog-fade-in .2s ease-out forwards;background-color:var(--color-background-secondary);border-radius:var(--yds-border-radius);display:flex;flex-direction:column;gap:var(--confirm-dialog-gap);max-width:var(--confirm-dialog-max-width);padding:var(--confirm-dialog-padding);width:var(--confirm-dialog-width);z-index:var(--z-index-confirm-dialog)}.yds-confirm-dialog-title{color:var(--color-white);font-family:var(--font-yds-wanted);font-size:var(--font-size-yds-s1);font-weight:var(--font-weight-yds-s1);line-height:var(--line-height-yds-s1)}.yds-confirm-dialog-description{color:var(--color-primary-100);font-family:var(--font-yds-wanted);font-size:var(--font-size-yds-b2);font-weight:var(--font-weight-yds-b2);line-height:var(--line-height-yds-b2)}.yds-confirm-dialog-actions{display:flex;gap:8px;margin-top:8px}@keyframes yds-confirm-dialog-fade-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}}::-webkit-scrollbar{height:5px;width:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#888;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#555}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}}}
package/dist/index.esm.js CHANGED
@@ -24,5 +24,5 @@ var O={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
- */function $({size:a,color:t,variant:l,disabled:n,...i}){return r("div",{className:S({color:t}),children:["search"===l&&e(A,{"aria-hidden":!0,className:"absolute top-1/2 left-3 h-6 w-6 -translate-y-1/2 text-current"}),e("input",{className:T({size:a,color:t,variant:l,disabled:n}),disabled:n,...i})]})}function R({value:t,name:l,checked:s,id:c,onCheckedChange:d,shape:u="square",indeterminate:p=!1,...h}){const m=c??n(),y=i(null);o(()=>{y.current&&(y.current.indeterminate=p)},[p]);const f=p?"indeterminate":s?"checked":"unchecked";return r("label",{htmlFor:m,className:"yds-checkbox-wrapper",onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d(!s))},tabIndex:0,children:[e("input",{ref:y,id:m,type:"checkbox",checked:s,onChange:e=>{const r=e.target.checked;d(r)},className:"sr-only","aria-checked":p?"mixed":s?"true":"false",...h}),"square"===u&&e("div",{className:"yds-checkbox-indicator",children:e("div",{className:`yds-checkbox-indicator-inner-${f}`,children:p&&e(j,{size:20})})}),"check"===u&&e("div",{className:"yds-checkbox-icon-indicator",children:p?e("div",{children:e(j,{size:20})}):s?e(E,{size:20}):e(a,{})}),e("span",{className:"yds-checkbox-typography",children:t})]})}$.displayName="Input",R.displayName="CheckBox";const B=f("relative h-12",{variants:{size:{sm:"w-[200px]",md:"w-[300px]",lg:"w-[400px]",full:"w-full"}},defaultVariants:{size:"full"}});function W({size:a,selectBoxHook:t}){const{selectedOption:l,isOpen:n,searchValue:i,filteredOptions:o,selectedText:s,search:c,containerRef:d,handleClickOption:u,handleToggle:p,handleSearch:h}=t;return r("div",{className:B({size:a}),ref:d,children:[r("div",{className:"border-primary-100 text-yds-b1 flex h-full w-full cursor-pointer items-center justify-between rounded-lg border-2 p-3 text-yellow-100",onClick:p,children:[s,e(L,{className:"text-yellow-100 transition-transform duration-300"})]}),n&&r("div",{className:"bg-background-secondary border-primary-100 z-select-box-dropdown absolute top-14 left-0 flex w-full flex-col gap-2 rounded-lg border-2 p-3",children:[c&&r("div",{className:"flex h-[40px] items-center border-y-2 border-yellow-100",children:[e(A,{className:"text-yellow-100",size:20}),e("input",{type:"text",className:"w-full p-2 text-white hover:outline-none focus:outline-none",value:i,placeholder:"검색으로 쉽게찾기",onChange:e=>h(e.target.value)})]}),e("div",{className:"scrollbar-hide flex h-auto max-h-[200px] flex-col gap-2 overflow-y-scroll",children:o.map(a=>r("div",{className:"text-yds-c1m hover:bg-background-primary flex cursor-pointer items-center justify-between text-white",onClick:()=>u(a),children:[a.value,l.value===a.value&&e(E,{className:"text-yellow-100",size:20})]},a.label))})]})]})}const G={label:"",value:""},H=e=>{const{options:r,defaultValue:a,search:t=!1,value:l,onChange:n,filterFn:p=(e,r)=>e.value.toLowerCase().includes(r.toLowerCase()),itemToString:h=e=>e.value,getValue:m=e=>e.value}=e,y=void 0!==l,f=a&&r.find(e=>e.value===a)||G,[v,b]=s(f),[w,x]=c((e,r)=>{switch(r.type){case"OPEN":return{...e,isOpen:!0};case"CLOSE":return{isOpen:!1,searchValue:""};case"TOGGLE":return{...e,isOpen:!e.isOpen};case"SEARCH":return{...e,searchValue:r.term};case"RESET_SEARCH":return{...e,searchValue:""};default:return e}},{isOpen:!1,searchValue:""}),{isOpen:g,searchValue:N}=w,k=d(()=>y&&r.find(e=>e.value===l)||G,[y,r,l]),C=y?k:v,O=""!==C.value&&""!==C.label,z=i(null),V=u(()=>{x({type:"CLOSE"})},[]);var E,L;!function(e,r,a){o(()=>{if(!r)return;const t=r=>{const t=e.current;t&&(t.contains(r.target)||a())};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[r,e,a])}(z,g,V),o(()=>{if(!E)return;const e=e=>{"Escape"===e.key&&L()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[E=g,L=V]),o(()=>{if(y)return;if(!a)return void b(G);const e=r.find(e=>e.value===a||e.label===a)||G;b(e)},[y,a]);const j=d(()=>N?r.filter(e=>p(e,N)):r,[r,N,p]),A=d(()=>O?h(C):"선택",[O,h,C]);return{selectedOption:C,isOpen:g,searchValue:N,options:r,search:t,containerRef:z,handleClickOption:e=>{y?n?.(e.value,e):b(e),V()},handleToggle:()=>{x({type:"TOGGLE"})},handleSearch:e=>{x({type:"SEARCH",term:e})},handleClose:V,value:C.value,label:C.label,hasOption:O,filteredOptions:j,selectedText:A,itemToString:h,getValue:m}};export{b as Button,w as Card,R as CheckBox,g as Chips,$ as Input,W as SelectBox,H as useSelectBox};
27
+ */function $({size:a,color:t,variant:l,disabled:n,...i}){return r("div",{className:S({color:t}),children:["search"===l&&e(A,{"aria-hidden":!0,className:"absolute top-1/2 left-3 h-6 w-6 -translate-y-1/2 text-current"}),e("input",{className:T({size:a,color:t,variant:l,disabled:n}),disabled:n,...i})]})}function R({value:t,name:l,checked:s,id:c,onCheckedChange:d,shape:u="square",indeterminate:p=!1,...h}){const m=c??n(),y=i(null);o(()=>{y.current&&(y.current.indeterminate=p)},[p]);const f=p?"indeterminate":s?"checked":"unchecked";return r("label",{htmlFor:m,className:"yds-checkbox-wrapper",onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d(!s))},tabIndex:0,children:[e("input",{ref:y,id:m,type:"checkbox",checked:s,onChange:e=>{const r=e.target.checked;d(r)},className:"sr-only","aria-checked":p?"mixed":s?"true":"false",...h}),"square"===u&&e("div",{className:"yds-checkbox-indicator",children:e("div",{className:`yds-checkbox-indicator-inner-${f}`,children:p&&e(j,{size:20})})}),"check"===u&&e("div",{className:"yds-checkbox-icon-indicator",children:p?e("div",{children:e(j,{size:20})}):s?e(E,{size:20}):e(a,{})}),e("span",{className:"yds-checkbox-typography",children:t})]})}$.displayName="Input",R.displayName="CheckBox";const B=f("relative h-12",{variants:{size:{sm:"w-[200px]",md:"w-[300px]",lg:"w-[400px]",full:"w-full"}},defaultVariants:{size:"full"}});function W({size:a,selectBoxHook:t}){const{selectedOption:l,isOpen:n,searchValue:i,filteredOptions:o,selectedText:s,search:c,containerRef:d,handleClickOption:u,handleToggle:p,handleSearch:h}=t;return r("div",{className:B({size:a}),ref:d,children:[r("div",{className:"border-primary-100 text-yds-b1 flex h-full w-full cursor-pointer items-center justify-between rounded-lg border-2 p-3 text-yellow-100",onClick:p,children:[s,e(L,{className:"text-yellow-100 transition-transform duration-300"})]}),n&&r("div",{className:"bg-background-secondary border-primary-100 z-[var(--z-index-select-box-dropdown)] absolute top-14 left-0 flex w-full flex-col gap-2 rounded-lg border-2 p-3",children:[c&&r("div",{className:"flex h-[40px] items-center border-y-2 border-yellow-100",children:[e(A,{className:"text-yellow-100",size:20}),e("input",{type:"text",className:"w-full p-2 text-white hover:outline-none focus:outline-none",value:i,placeholder:"검색으로 쉽게찾기",onChange:e=>h(e.target.value)})]}),e("div",{className:"scrollbar-hide flex h-auto max-h-[200px] flex-col gap-2 overflow-y-scroll",children:o.map(a=>r("div",{className:"text-yds-c1m hover:bg-background-primary flex cursor-pointer items-center justify-between text-white",onClick:()=>u(a),children:[a.value,l.value===a.value&&e(E,{className:"text-yellow-100",size:20})]},a.label))})]})]})}const G={label:"",value:""},H=e=>{const{options:r,defaultValue:a,search:t=!1,value:l,onChange:n,filterFn:p=(e,r)=>e.value.toLowerCase().includes(r.toLowerCase()),itemToString:h=e=>e.value,getValue:m=e=>e.value}=e,y=void 0!==l,f=a&&r.find(e=>e.value===a)||G,[v,b]=s(f),[w,x]=c((e,r)=>{switch(r.type){case"OPEN":return{...e,isOpen:!0};case"CLOSE":return{isOpen:!1,searchValue:""};case"TOGGLE":return{...e,isOpen:!e.isOpen};case"SEARCH":return{...e,searchValue:r.term};case"RESET_SEARCH":return{...e,searchValue:""};default:return e}},{isOpen:!1,searchValue:""}),{isOpen:g,searchValue:N}=w,k=d(()=>y&&r.find(e=>e.value===l)||G,[y,r,l]),C=y?k:v,O=""!==C.value&&""!==C.label,z=i(null),V=u(()=>{x({type:"CLOSE"})},[]);var E,L;!function(e,r,a){o(()=>{if(!r)return;const t=r=>{const t=e.current;t&&(t.contains(r.target)||a())};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[r,e,a])}(z,g,V),o(()=>{if(!E)return;const e=e=>{"Escape"===e.key&&L()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[E=g,L=V]),o(()=>{if(y)return;if(!a)return void b(G);const e=r.find(e=>e.value===a||e.label===a)||G;b(e)},[y,a]);const j=d(()=>N?r.filter(e=>p(e,N)):r,[r,N,p]),A=d(()=>O?h(C):"선택",[O,h,C]);return{selectedOption:C,isOpen:g,searchValue:N,options:r,search:t,containerRef:z,handleClickOption:e=>{y?n?.(e.value,e):b(e),V()},handleToggle:()=>{x({type:"TOGGLE"})},handleSearch:e=>{x({type:"SEARCH",term:e})},handleClose:V,value:C.value,label:C.label,hasOption:O,filteredOptions:j,selectedText:A,itemToString:h,getValue:m}};export{b as Button,w as Card,R as CheckBox,g as Chips,$ as Input,W as SelectBox,H as useSelectBox};
28
28
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs","../src/components/Button/Button.tsx","../src/components/Card/Card.tsx","../src/components/Chips/Chips.tsx","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/defaultAttributes.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/check.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/minus.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/search.js","../src/components/Input/Input.tsx","../src/components/CheckBox/CheckBox.tsx","../src/components/SelectBox/SelectBox.tsx","../src/components/SelectBox/hooks/useSelectBox.tsx","../src/components/SelectBox/hooks/useDismiss.ts"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n",null,null,null,"/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\nconst hasA11yProp = (props) => {\n for (const prop in props) {\n if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") {\n return true;\n }\n }\n};\n\nexport { hasA11yProp, mergeClasses, toCamelCase, toKebabCase, toPascalCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { mergeClasses, hasA11yProp } from './shared/src/utils.js';\n\nconst Icon = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n iconNode,\n ...rest\n }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: mergeClasses(\"lucide\", className),\n ...!children && !hasA11yProp(rest) && { \"aria-hidden\": \"true\" },\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase, toPascalCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(\n `lucide-${toKebabCase(toPascalCase(iconName))}`,\n `lucide-${iconName}`,\n className\n ),\n ...props\n })\n );\n Component.displayName = toPascalCase(iconName);\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M20 6 9 17l-5-5\", key: \"1gmf2c\" }]];\nconst Check = createLucideIcon(\"check\", __iconNode);\n\nexport { __iconNode, Check as default };\n//# sourceMappingURL=check.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"m6 9 6 6 6-6\", key: \"qrunsl\" }]];\nconst ChevronDown = createLucideIcon(\"chevron-down\", __iconNode);\n\nexport { __iconNode, ChevronDown as default };\n//# sourceMappingURL=chevron-down.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }]];\nconst Minus = createLucideIcon(\"minus\", __iconNode);\n\nexport { __iconNode, Minus as default };\n//# sourceMappingURL=minus.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"m21 21-4.34-4.34\", key: \"14j7rj\" }],\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }]\n];\nconst Search = createLucideIcon(\"search\", __iconNode);\n\nexport { __iconNode, Search as default };\n//# sourceMappingURL=search.js.map\n",null,null,null,null,null],"names":["r","e","t","f","n","Array","isArray","o","length","clsx","arguments","falsyToString","value","cx","cva","base","config","props","_config_compoundVariants","variants","class","className","defaultVariants","getVariantClassNames","Object","keys","map","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","entries","reduce","acc","param","key","undefined","getCompoundVariantClassNames","compoundVariants","cvClass","cvClassName","compoundVariantOptions","every","includes","buttonVariants","size","sm","md","lg","full","fill","outlined","color","primary","disabled","true","Button","children","ref","_jsx","tabIndex","Card","displayName","chipsVariants","Chips","toPascalCase","string","camelCase","replace","match","p1","p2","toUpperCase","toLowerCase","toCamelCase","charAt","slice","mergeClasses","classes","filter","index","array","Boolean","trim","indexOf","join","hasA11yProp","prop","startsWith","defaultAttributes","xmlns","width","height","viewBox","stroke","strokeWidth","strokeLinecap","strokeLinejoin","Icon","forwardRef","absoluteStrokeWidth","iconNode","rest","createElement","Number","tag","attrs","createLucideIcon","iconName","Component","Check","d","ChevronDown","Minus","Search","cy","wrapperVariants","white","inputVariants","search","input","false","Input","_jsxs","CheckBox","name","checked","id","onCheckedChange","shape","indeterminate","checkboxId","useId","inputRef","useRef","useEffect","current","displayState","htmlFor","onKeyDown","preventDefault","type","onChange","newChecked","target","CheckIcon","_Fragment","SelectBox","selectBoxHook","selectedOption","isOpen","searchValue","filteredOptions","selectedText","containerRef","handleClickOption","handleToggle","handleSearch","onClick","placeholder","option","label","EMPTY_OPTION","useSelectBox","options","defaultValue","filterFn","opt","term","itemToString","getValue","isControlled","defaultOption","find","setSelectedOption","useState","ui","dispatch","useReducer","s","a","controlledSelected","useMemo","viewSelected","hasOption","handleClose","useCallback","enabled","onDismiss","handle","event","el","contains","document","addEventListener","removeEventListener","useOutsideDismiss","next"],"mappings":"wNAAA,SAASA,EAAEC,GAAG,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAG,iBAAiBH,GAAG,iBAAiBA,EAAEG,GAAGH,OAAO,GAAG,iBAAiBA,EAAE,GAAGI,MAAMC,QAAQL,GAAG,CAAC,IAAIM,EAAEN,EAAEO,OAAO,IAAIN,EAAE,EAAEA,EAAEK,EAAEL,IAAID,EAAEC,KAAKC,EAAEH,EAAEC,EAAEC,OAAOE,IAAIA,GAAG,KAAKA,GAAGD,EAAE,MAAM,IAAIA,K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5K,MACpBsJ,MAAOsB,EAAatB,MACpBuB,YACAhC,kBACAC,eACAgB,eACAC","x_google_ignoreList":[0,1,5,6,7,8,9,10,11,12]}
1
+ {"version":3,"file":"index.esm.js","sources":["../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs","../src/components/Button/Button.tsx","../src/components/Card/Card.tsx","../src/components/Chips/Chips.tsx","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/defaultAttributes.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/check.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/minus.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/search.js","../src/components/Input/Input.tsx","../src/components/CheckBox/CheckBox.tsx","../src/components/SelectBox/SelectBox.tsx","../src/components/SelectBox/hooks/useSelectBox.tsx","../src/components/SelectBox/hooks/useDismiss.ts"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n",null,null,null,"/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\nconst hasA11yProp = (props) => {\n for (const prop in props) {\n if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") {\n return true;\n }\n }\n};\n\nexport { hasA11yProp, mergeClasses, toCamelCase, toKebabCase, toPascalCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { mergeClasses, hasA11yProp } from './shared/src/utils.js';\n\nconst Icon = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n iconNode,\n ...rest\n }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: mergeClasses(\"lucide\", className),\n ...!children && !hasA11yProp(rest) && { \"aria-hidden\": \"true\" },\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase, toPascalCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(\n `lucide-${toKebabCase(toPascalCase(iconName))}`,\n `lucide-${iconName}`,\n className\n ),\n ...props\n })\n );\n Component.displayName = toPascalCase(iconName);\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M20 6 9 17l-5-5\", key: \"1gmf2c\" }]];\nconst Check = createLucideIcon(\"check\", __iconNode);\n\nexport { __iconNode, Check as default };\n//# sourceMappingURL=check.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"m6 9 6 6 6-6\", key: \"qrunsl\" }]];\nconst ChevronDown = createLucideIcon(\"chevron-down\", __iconNode);\n\nexport { __iconNode, ChevronDown as default };\n//# sourceMappingURL=chevron-down.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }]];\nconst Minus = createLucideIcon(\"minus\", __iconNode);\n\nexport { __iconNode, Minus as default };\n//# sourceMappingURL=minus.js.map\n","/**\n * @license lucide-react v0.542.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"m21 21-4.34-4.34\", key: \"14j7rj\" }],\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }]\n];\nconst Search = createLucideIcon(\"search\", __iconNode);\n\nexport { __iconNode, Search as default };\n//# sourceMappingURL=search.js.map\n",null,null,null,null,null],"names":["r","e","t","f","n","Array","isArray","o","length","clsx","arguments","falsyToString","value","cx","cva","base","config","props","_config_compoundVariants","variants","class","className","defaultVariants","getVariantClassNames","Object","keys","map","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","entries","reduce","acc","param","key","undefined","getCompoundVariantClassNames","compoundVariants","cvClass","cvClassName","compoundVariantOptions","every","includes","buttonVariants","size","sm","md","lg","full","fill","outlined","color","primary","disabled","true","Button","children","ref","_jsx","tabIndex","Card","displayName","chipsVariants","Chips","toPascalCase","string","camelCase","replace","match","p1","p2","toUpperCase","toLowerCase","toCamelCase","charAt","slice","mergeClasses","classes","filter","index","array","Boolean","trim","indexOf","join","hasA11yProp","prop","startsWith","defaultAttributes","xmlns","width","height","viewBox","stroke","strokeWidth","strokeLinecap","strokeLinejoin","Icon","forwardRef","absoluteStrokeWidth","iconNode","rest","createElement","Number","tag","attrs","createLucideIcon","iconName","Component","Check","d","ChevronDown","Minus","Search","cy","wrapperVariants","white","inputVariants","search","input","false","Input","_jsxs","CheckBox","name","checked","id","onCheckedChange","shape","indeterminate","checkboxId","useId","inputRef","useRef","useEffect","current","displayState","htmlFor","onKeyDown","preventDefault","type","onChange","newChecked","target","CheckIcon","_Fragment","SelectBox","selectBoxHook","selectedOption","isOpen","searchValue","filteredOptions","selectedText","containerRef","handleClickOption","handleToggle","handleSearch","onClick","placeholder","option","label","EMPTY_OPTION","useSelectBox","options","defaultValue","filterFn","opt","term","itemToString","getValue","isControlled","defaultOption","find","setSelectedOption","useState","ui","dispatch","useReducer","s","a","controlledSelected","useMemo","viewSelected","hasOption","handleClose","useCallback","enabled","onDismiss","handle","event","el","contains","document","addEventListener","removeEventListener","useOutsideDismiss","next"],"mappings":"wNAAA,SAASA,EAAEC,GAAG,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAG,iBAAiBH,GAAG,iBAAiBA,EAAEG,GAAGH,OAAO,GAAG,iBAAiBA,EAAE,GAAGI,MAAMC,QAAQL,GAAG,CAAC,IAAIM,EAAEN,EAAEO,OAAO,IAAIN,EAAE,EAAEA,EAAEK,EAAEL,IAAID,EAAEC,KAAKC,EAAEH,EAAEC,EAAEC,OAAOE,IAAIA,GAAG,KAAKA,GAAGD,EAAE,MAAM,IAAIA,KAAKF,EAAEA,EAAEE,KAAKC,IAAIA,GAAG,KAAKA,GAAGD,GAAG,OAAOC,CAAC,CAAQ,SAASK,IAAO,IAAI,IAAIR,EAAEC,EAAEC,EAAE,EAAEC,EAAE,GAAGG,EAAEG,UAAUF,OAAOL,EAAEI,EAAEJ,KAAKF,EAAES,UAAUP,MAAMD,EAAEF,EAAEC,MAAMG,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC,CCe/W,MAAMO,EAAiBC,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Q,CAAkB1C,EAAcJ,EAAQmC,GCrDxClD,EAAU,KACR,IAAKoD,EAAS,OAEd,MAAME,EAAUC,IACI,WAAdA,EAAM3J,KAAkByJ,KAI9B,OADAK,SAASC,iBAAiB,UAAWL,GAC9B,IAAMI,SAASE,oBAAoB,UAAWN,IACpD,CAV4BF,EDuDdrC,ECvDgCsC,EDuDxBH,IAGzBlD,EAAU,KACR,GAAIoC,EAAc,OAClB,IAAKN,EAEH,YADAS,EAAkBZ,GAGpB,MAAMmC,EAAOjC,EAAQS,KAAKN,GAAOA,EAAI5J,QAAU0J,GAAgBE,EAAIN,QAAUI,IAAiBH,EAC9FY,EAAkBuB,IACjB,CAAC1B,EAAcN,IAGlB,MAAMb,EAAkB8B,EAAQ,IACzB/B,EACEa,EAAQrF,OAAOwF,GAAOD,EAASC,EAAKhB,IADlBa,EAExB,CAACA,EAASb,EAAae,IAEpBb,EAAe6B,EAAQ,IACpBE,EAAYf,EAAac,GAAgB,KAC/C,CAACC,EAAWf,EAAcc,IAmB7B,MAAO,CAELlC,eAAgBkC,EAChBjC,SACAC,cACAa,UACA7C,SACAmC,eAGAC,kBAnBoBK,IAChBW,EACF7B,IAAWkB,EAAOrJ,MAAOqJ,GAEzBc,EAAkBd,GAEpByB,KAcA7B,aA5BmB,KACnBqB,EAAS,CAAEpC,KAAM,YA4BjBgB,aAzBoBlJ,IACpBsK,EAAS,CAAEpC,KAAM,SAAU2B,KAAM7J,KAyBjC8K,cAGA9K,MAAO4K,EAAa5K,MACpBsJ,MAAOsB,EAAatB,MACpBuB,YACAhC,kBACAC,eACAgB,eACAC","x_google_ignoreList":[0,1,5,6,7,8,9,10,11,12]}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const boxVariants: (props?: ({
4
+ size?: "sm" | "md" | "lg" | null | undefined;
5
+ state?: "disabled" | "checked" | "unchecked" | "indeterminate" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export type CheckboxSize = VariantProps<typeof boxVariants>['size'];
8
+ type BaseProps = {
9
+ id?: string;
10
+ name?: string;
11
+ value?: string;
12
+ checked?: boolean;
13
+ defaultChecked?: boolean;
14
+ indeterminate?: boolean;
15
+ disabled?: boolean;
16
+ required?: boolean;
17
+ ariaLabel?: string;
18
+ label?: React.ReactNode;
19
+ description?: React.ReactNode;
20
+ onCheckedChange?: (checked: boolean) => void;
21
+ className?: string;
22
+ boxClassName?: string;
23
+ };
24
+ export type CheckboxProps = BaseProps & VariantProps<typeof boxVariants> & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'checked' | 'defaultChecked' | 'onChange' | 'aria-label'> & {
25
+ ref?: React.Ref<HTMLInputElement>;
26
+ };
27
+ export declare const StudyCheckBox: ({ id, name, value, checked, defaultChecked, indeterminate, disabled, required, ariaLabel, label, description, onCheckedChange, size, className, boxClassName, ref, ...rest }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
28
+ export {};
@@ -0,0 +1,5 @@
1
+ import { IConfirmDialog } from './ConfirmDialogTypes';
2
+ export declare const ConfirmDialog: {
3
+ ({ title, description, confirmText, cancelText, onConfirm, onCancel }: IConfirmDialog): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
@@ -0,0 +1,15 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ConfirmDialog } from './ConfirmDialog';
3
+ declare const meta: Meta<typeof ConfirmDialog>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ConfirmDialog>;
6
+ export declare const Default: Story;
7
+ export declare const Examples: {
8
+ parameters: {
9
+ layout: string;
10
+ docs: {
11
+ disable: boolean;
12
+ };
13
+ };
14
+ render: () => import("react/jsx-runtime").JSX.Element;
15
+ };
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ export interface IConfirmDialogOpenRequestData {
3
+ title: string;
4
+ description?: ReactNode;
5
+ confirmText?: string;
6
+ cancelText?: string;
7
+ onConfirm: () => void | Promise<void>;
8
+ onCancel?: () => void;
9
+ }
10
+ export interface IConfirmDialog {
11
+ title: string;
12
+ description?: ReactNode;
13
+ confirmText: string;
14
+ cancelText: string;
15
+ onConfirm: () => void | Promise<void>;
16
+ onCancel: () => void;
17
+ }
@@ -0,0 +1,2 @@
1
+ export { ConfirmDialog } from './ConfirmDialog';
2
+ export type { IConfirmDialog, IConfirmDialogOpenRequestData } from './ConfirmDialogTypes';
@@ -0,0 +1,14 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ type Story = StoryObj;
5
+ export declare const Default: Story;
6
+ export declare const Examples: {
7
+ parameters: {
8
+ layout: string;
9
+ docs: {
10
+ disable: boolean;
11
+ };
12
+ };
13
+ render: () => import("react/jsx-runtime").JSX.Element;
14
+ };
@@ -0,0 +1,6 @@
1
+ import { IToast } from './ToastTypes';
2
+ declare const Toast: {
3
+ ({ content, duration, onDismiss }: IToast): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default Toast;
@@ -0,0 +1,15 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Toast from './Toast';
3
+ declare const meta: Meta<typeof Toast>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Toast>;
6
+ export declare const Default: Story;
7
+ export declare const Examples: {
8
+ parameters: {
9
+ layout: string;
10
+ docs: {
11
+ disable: boolean;
12
+ };
13
+ };
14
+ render: () => import("react/jsx-runtime").JSX.Element;
15
+ };
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export interface IToastOpenRequestData {
3
+ content: ReactNode;
4
+ duration?: number;
5
+ }
6
+ export interface IToast {
7
+ content: ReactNode;
8
+ duration: number;
9
+ onDismiss: () => void;
10
+ }
@@ -0,0 +1 @@
1
+ export * from './Toast';
@@ -1,6 +1,9 @@
1
+ import { IConfirmDialogOpenRequestData } from './ConfirmDialog/ConfirmDialogTypes';
1
2
  import { IModalOpenRequestData } from './Modal/ModalTypes';
3
+ import { IToastOpenRequestData } from './Toast/ToastTypes';
2
4
  export declare const useOverlay: () => {
3
5
  modalOpen: (modalData: IModalOpenRequestData) => void;
4
6
  modalClose: (id: number) => void;
5
- toastOpen: () => void;
7
+ toast: (toastData: IToastOpenRequestData) => void;
8
+ confirmDialog: (confirmData: IConfirmDialogOpenRequestData) => void;
6
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youngduck/yd-ui",
3
- "version": "0.13.1",
3
+ "version": "0.14.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -1,2 +0,0 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("react");const t=r.createContext({overlays:new Map,mount:()=>{},unmount:()=>{}});exports.OvelayProvider=({children:n})=>{const[o,s]=r.useState(new Map),u={overlays:o,mount:e=>{s(r=>new Map(r).set(e.id,e.component))},unmount:e=>{s(r=>{const t=new Map(r);return t.delete(e),t})}};return e.jsxs(t.Provider,{value:u,children:[n,e.jsx("div",{children:"안녕하세요"})]})},exports.useOverlay=()=>{};
2
- //# sourceMappingURL=Ovelrays.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Ovelrays.cjs.js","sources":["../src/components/Overlays/OvelayProvider.tsx","../src/components/Overlays/useOverlay.tsx"],"sourcesContent":[null,null],"names":["OverlayContext","createContext","overlays","Map","mount","unmount","children","setOverlays","useState","contextValue","overlayConfig","prev","set","id","component","clonedMap","delete","_jsxs","Provider","value","_jsx"],"mappings":"yEAaMA,EAAiBC,EAAAA,cAIpB,CACDC,SAAU,IAAIC,IACdC,MAAO,OACPC,QAAS,gCAGmB,EAAGC,eAC/B,MAAOJ,EAAUK,GAAeC,EAAAA,SAAiC,IAAIL,KAc/DM,EAAmC,CACvCP,WACAE,MAdaM,IACbH,EAAYI,GAAQ,IAAIR,IAAIQ,GAAMC,IAAIF,EAAcG,GAAIH,EAAcI,aActET,QAXeQ,IACfN,EAAYI,IACV,MAAMI,EAAY,IAAIZ,IAAIQ,GAE1B,OADAI,EAAUC,OAAOH,GACVE,MAUX,OACEE,EAAAA,KAACjB,EAAekB,SAAQ,CAACC,MAAOV,YAC7BH,EACDc,EAAAA,IAAA,MAAA,CAAAd,SAAA,iCC/CoB"}
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- declare const useOverlay: () => void;
5
-
6
- declare const OvelayProvider: ({ children }: {
7
- children: ReactNode;
8
- }) => react_jsx_runtime.JSX.Element;
9
-
10
- export { OvelayProvider, useOverlay };
@@ -1,2 +0,0 @@
1
- import{jsxs as e,jsx as n}from"react/jsx-runtime";import{createContext as r,useState as t}from"react";const o=()=>{},m=r({overlays:new Map,mount:()=>{},unmount:()=>{}}),u=({children:r})=>{const[o,u]=t(new Map),a={overlays:o,mount:e=>{u(n=>new Map(n).set(e.id,e.component))},unmount:e=>{u(n=>{const r=new Map(n);return r.delete(e),r})}};return e(m.Provider,{value:a,children:[r,n("div",{children:"안녕하세요"})]})};export{u as OvelayProvider,o as useOverlay};
2
- //# sourceMappingURL=Ovelrays.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Ovelrays.esm.js","sources":["../src/components/Overlays/useOverlay.tsx","../src/components/Overlays/OvelayProvider.tsx"],"sourcesContent":[null,null],"names":["useOverlay","OverlayContext","createContext","overlays","Map","mount","unmount","OvelayProvider","children","setOverlays","useState","contextValue","overlayConfig","prev","set","id","component","clonedMap","delete","_jsxs","Provider","value","_jsx"],"mappings":"4GAAaA,EAAa,OCapBC,EAAiBC,EAIpB,CACDC,SAAU,IAAIC,IACdC,MAAO,OACPC,QAAS,SAGEC,EAAiB,EAAGC,eAC/B,MAAOL,EAAUM,GAAeC,EAAiC,IAAIN,KAc/DO,EAAmC,CACvCR,WACAE,MAdaO,IACbH,EAAYI,GAAQ,IAAIT,IAAIS,GAAMC,IAAIF,EAAcG,GAAIH,EAAcI,aActEV,QAXeS,IACfN,EAAYI,IACV,MAAMI,EAAY,IAAIb,IAAIS,GAE1B,OADAI,EAAUC,OAAOH,GACVE,MAUX,OACEE,EAAClB,EAAemB,SAAQ,CAACC,MAAOV,YAC7BH,EACDc,EAAA,MAAA,CAAAd,SAAA"}
@@ -1,8 +0,0 @@
1
- import { type VariantProps } from 'class-variance-authority';
2
- export interface IModal extends VariantProps<typeof modalSizeVariants> {
3
- onClose: () => void;
4
- children: React.ReactNode;
5
- }
6
- export declare const modalSizeVariants: (props?: ({
7
- size?: "sm" | "md" | "lg" | "xl" | null | undefined;
8
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -1,16 +0,0 @@
1
- /**
2
- * 작성자: KYD
3
- * 기능:
4
- * 프로세스 설명: 프로세스 복잡시 노션링크 첨부권장
5
- */
6
- import React from 'react';
7
- import { type VariantProps } from 'class-variance-authority';
8
- declare const modalSizeVariants: (props?: ({
9
- size?: "sm" | "md" | "lg" | "xl" | "full" | "auto" | null | undefined;
10
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
- interface IModalFrame extends VariantProps<typeof modalSizeVariants> {
12
- onClose: () => void;
13
- children: React.ReactNode;
14
- }
15
- declare const ModalFrame: ({ onClose, children, size }: IModalFrame) => import("react/jsx-runtime").JSX.Element;
16
- export default ModalFrame;