@youngduck/yd-ui 0.4.2 → 0.5.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.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
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}const a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=function(){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},s=(e,r)=>t=>{var s;if(null==(null==r?void 0:r.variants))return l(e,null==t?void 0:t.class,null==t?void 0:t.className);const{variants:n,defaultVariants:o}=r,i=Object.keys(n).map(e=>{const r=null==t?void 0:t[e],l=null==o?void 0:o[e];if(null===r)return null;const s=a(r)||a(l);return n[e][s]}),c=t&&Object.entries(t).reduce((e,r)=>{let[t,a]=r;return void 0===a||(e[t]=a),e},{}),u=null==r||null===(s=r.compoundVariants)||void 0===s?void 0:s.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({...o,...c}[r]):{...o,...c}[r]===t})?[...e,t,a]:e},[]);return l(e,i,u,null==t?void 0:t.class,null==t?void 0:t.className)},n=s("yds-button-typography",{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-wait"}},compoundVariants:[{variant:"fill",color:"primary",class:"bg-primary-400 text-black"},{variant:"outlined",color:"primary",class:"border-primary-400 text-primary-400"}],defaultVariants:{size:"md",variant:"fill",color:"primary"}});function o({size:r="md",variant:t,color:a,children:l,className:s="",ref:o,disabled:i=!1,...c}){return e.jsx("button",{ref:o,className:`${n({size:r,variant:t,color:a,className:s,disabled:i})}`,tabIndex:i?-1:0,"aria-label":c["aria-label"]||("string"==typeof l?l:"button"),disabled:i,...c,children:l})}o.displayName="Button";
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("react");function t(e){var r,l,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(l=t(e[r]))&&(a&&(a+=" "),a+=l)}else for(l in e)e[l]&&(a&&(a+=" "),a+=l);return a}const l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=function(){for(var e,r,l=0,a="",s=arguments.length;l<s;l++)(e=arguments[l])&&(r=t(e))&&(a&&(a+=" "),a+=r);return a},s=(e,r)=>t=>{var s;if(null==(null==r?void 0:r.variants))return a(e,null==t?void 0:t.class,null==t?void 0:t.className);const{variants:n,defaultVariants:o}=r,i=Object.keys(n).map(e=>{const r=null==t?void 0:t[e],a=null==o?void 0:o[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,l]=r;return void 0===l||(e[t]=l),e},{}),u=null==r||null===(s=r.compoundVariants)||void 0===s?void 0:s.reduce((e,r)=>{let{class:t,className:l,...a}=r;return Object.entries(a).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...o,...c}[r]):{...o,...c}[r]===t})?[...e,t,l]:e},[]);return a(e,i,u,null==t?void 0:t.class,null==t?void 0:t.className)},n=s("yds-button-typography",{variants:{size:{sm:"w-20",md:"w-[120px]",lg:"w-40",full:"w-full"},variant:{fill:"",outlined:"bg-transparent border-2"},color:{primary:""}},compoundVariants:[{variant:"fill",color:"primary",class:"bg-primary-400 text-black"},{variant:"outlined",color:"primary",class:"border-primary-400 text-primary-400"}],defaultVariants:{size:"md",variant:"fill",color:"primary"}});function o({size:r="md",variant:t,color:l,children:a,className:s="",ref:o,...i}){return e.jsx("button",{ref:o,className:n({size:r,variant:t,color:l,className:s}),tabIndex:0,"aria-label":i["aria-label"]||("string"==typeof a?a:"button"),...i,children:a})}o.displayName="Button";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *
@@ -18,11 +18,11 @@ var d={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 p=r.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:s="",children:n,iconNode:o,...i},p)=>r.createElement("svg",{ref:p,...d,width:t,height:t,stroke:e,strokeWidth:l?24*Number(a)/Number(t):a,className:c("lucide",s),...!n&&!u(i)&&{"aria-hidden":"true"},...i},[...o.map(([e,t])=>r.createElement(e,t)),...Array.isArray(n)?n:[n]])),f=(e,t)=>{const a=r.forwardRef(({className:a,...l},s)=>{return r.createElement(p,{ref:s,iconNode:t,className:c(`lucide-${n=i(e),n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...l});var n});return a.displayName=i(e),a},m=f("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),h=f("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),v=f("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),y=s("relative",{variants:{color:{"primary-400":"text-yellow-400","primary-100":"text-yellow-100",white:"text-white"}}}),x=s("text-yds-b2 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 p=r.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:s="",children:n,iconNode:o,...i},p)=>r.createElement("svg",{ref:p,...d,width:t,height:t,stroke:e,strokeWidth:a?24*Number(l)/Number(t):l,className:c("lucide",s),...!n&&!u(i)&&{"aria-hidden":"true"},...i},[...o.map(([e,t])=>r.createElement(e,t)),...Array.isArray(n)?n:[n]])),f=(e,t)=>{const l=r.forwardRef(({className:l,...a},s)=>{return r.createElement(p,{ref:s,iconNode:t,className:c(`lucide-${n=i(e),n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,l),...a});var n});return l.displayName=i(e),l},m=f("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),h=f("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),v=f("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),y=s("relative",{variants:{color:{"primary-400":"text-yellow-400","primary-100":"text-yellow-100",white:"text-white"}}}),x=s("text-yds-b2 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 w({size:r,color:t,variant:a,disabled:l,...s}){return e.jsxs("div",{className:y({color:t}),children:["search"===a&&e.jsx(v,{"aria-hidden":!0,className:"absolute top-1/2 left-3 h-6 w-6 -translate-y-1/2 text-current"}),e.jsx("input",{className:x({size:r,color:t,variant:a,disabled:l}),disabled:l,...s})]})}w.displayName="Input";const b=s("relative h-12",{variants:{size:{sm:"w-[200px]",md:"w-[300px]",lg:"w-[400px]",full:"w-full"}},defaultVariants:{size:"full"}});const g={label:"",value:""};exports.Button=o,exports.Input=w,exports.SelectBox=function({size:r,selectBoxHook:t}){const{selectedOption:a,isOpen:l,searchValue:s,filteredOptions:n,selectedText:o,search:i,containerRef:c,handleClickOption:u,handleToggle:d,handleSearch:p}=t;return e.jsxs("div",{className:b({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:d,children:[o,e.jsx(h,{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:[i&&e.jsxs("div",{className:"flex h-[40px] items-center border-y-2 border-yellow-100",children:[e.jsx(v,{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:()=>u(r),children:[r.value,a.value===r.value&&e.jsx(m,{className:"text-yellow-100",size:20})]},r.label))})]})]})},exports.useSelectBox=e=>{const{options:t,defaultValue:a,search:l=!1,value:s,onChange:n,filterFn:o=(e,r)=>e.value.toLowerCase().includes(r.toLowerCase()),itemToString:i=e=>e.value,getValue:c=e=>e.value}=e,u=void 0!==s,d=a&&t.find(e=>e.value===a)||g,[p,f]=r.useState(d),[m,h]=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:v,searchValue:y}=m,x=r.useMemo(()=>u&&t.find(e=>e.value===s)||g,[u,t,s]),w=u?x:p,b=""!==w.value&&""!==w.label,N=r.useRef(null),j=r.useCallback(()=>{h({type:"CLOSE"})},[]);var k,O;!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])}(N,v,j),k=v,O=j,r.useEffect(()=>{if(!k)return;const e=e=>{"Escape"===e.key&&O()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[k,O]),r.useEffect(()=>{if(u)return;if(!a)return void f(g);const e=t.find(e=>e.value===a||e.label===a)||g;f(e)},[u,a]);const C=r.useMemo(()=>y?t.filter(e=>o(e,y)):t,[t,y,o]),E=r.useMemo(()=>b?i(w):"선택",[b,i,w]);return{selectedOption:w,isOpen:v,searchValue:y,options:t,search:l,containerRef:N,handleClickOption:e=>{u?n?.(e.value,e):f(e),j()},handleToggle:()=>{h({type:"TOGGLE"})},handleSearch:e=>{h({type:"SEARCH",term:e})},handleClose:j,value:w.value,label:w.label,hasOption:b,filteredOptions:C,selectedText:E,itemToString:i,getValue:c}};
27
+ */function w({size:r,color:t,variant:l,disabled:a,...s}){return e.jsxs("div",{className:y({color:t}),children:["search"===l&&e.jsx(v,{"aria-hidden":!0,className:"absolute top-1/2 left-3 h-6 w-6 -translate-y-1/2 text-current"}),e.jsx("input",{className:x({size:r,color:t,variant:l,disabled:a}),disabled:a,...s})]})}w.displayName="Input";const b=s("relative h-12",{variants:{size:{sm:"w-[200px]",md:"w-[300px]",lg:"w-[400px]",full:"w-full"}},defaultVariants:{size:"full"}});const g={label:"",value:""};exports.Button=o,exports.Input=w,exports.SelectBox=function({size:r,selectBoxHook:t}){const{selectedOption:l,isOpen:a,searchValue:s,filteredOptions:n,selectedText:o,search:i,containerRef:c,handleClickOption:u,handleToggle:d,handleSearch:p}=t;return e.jsxs("div",{className:b({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:d,children:[o,e.jsx(h,{className:"text-yellow-100 transition-transform duration-300"})]}),a&&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:[i&&e.jsxs("div",{className:"flex h-[40px] items-center border-y-2 border-yellow-100",children:[e.jsx(v,{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:()=>u(r),children:[r.value,l.value===r.value&&e.jsx(m,{className:"text-yellow-100",size:20})]},r.label))})]})]})},exports.useSelectBox=e=>{const{options:t,defaultValue:l,search:a=!1,value:s,onChange:n,filterFn:o=(e,r)=>e.value.toLowerCase().includes(r.toLowerCase()),itemToString:i=e=>e.value,getValue:c=e=>e.value}=e,u=void 0!==s,d=l&&t.find(e=>e.value===l)||g,[p,f]=r.useState(d),[m,h]=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:v,searchValue:y}=m,x=r.useMemo(()=>u&&t.find(e=>e.value===s)||g,[u,t,s]),w=u?x:p,b=""!==w.value&&""!==w.label,N=r.useRef(null),j=r.useCallback(()=>{h({type:"CLOSE"})},[]);var k,O;!function(e,t,l){r.useEffect(()=>{if(!t)return;const r=r=>{const t=e.current;t&&(t.contains(r.target)||l())};return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[t,e,l])}(N,v,j),k=v,O=j,r.useEffect(()=>{if(!k)return;const e=e=>{"Escape"===e.key&&O()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[k,O]),r.useEffect(()=>{if(u)return;if(!l)return void f(g);const e=t.find(e=>e.value===l||e.label===l)||g;f(e)},[u,l]);const C=r.useMemo(()=>y?t.filter(e=>o(e,y)):t,[t,y,o]),E=r.useMemo(()=>b?i(w):"선택",[b,i,w]);return{selectedOption:w,isOpen:v,searchValue:y,options:t,search:a,containerRef:N,handleClickOption:e=>{u?n?.(e.value,e):f(e),j()},handleToggle:()=>{h({type:"TOGGLE"})},handleSearch:e=>{h({type:"SEARCH",term:e})},handleClose:j,value:w.value,label:w.label,hasOption:b,filteredOptions:C,selectedText:E,itemToString:i,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","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/shared/src/utils.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/defaultAttributes.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/Icon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/createLucideIcon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/check.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/search.js","../src/components/Input/Input.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,"/**\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 = [\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],"names":["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","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","Search","cy","wrapperVariants","white","inputVariants","search","input","false","Input","_jsxs","EMPTY_OPTION","label","selectBoxHook","selectedOption","isOpen","searchValue","filteredOptions","selectedText","containerRef","handleClickOption","handleToggle","handleSearch","onClick","type","placeholder","onChange","target","option","options","defaultValue","filterFn","opt","term","itemToString","getValue","isControlled","defaultOption","find","setSelectedOption","useState","ui","dispatch","useReducer","s","a","controlledSelected","useMemo","viewSelected","hasOption","useRef","handleClose","useCallback","enabled","onDismiss","useEffect","handle","event","el","current","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,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O,SAASC,iBAAiB,UAAWN,GAC9B,IAAMK,SAASE,oBAAoB,UAAWP,IACpD,CAACH,EAASC,IDgDbC,EAAAA,UAAU,KACR,GAAInB,EAAc,OAClB,IAAKN,EAEH,YADAS,EAAkB5B,GAGpB,MAAMsD,EAAOpC,EAAQS,KAAKN,GAAOA,EAAInI,QAAUiI,GAAgBE,EAAIpB,QAAUkB,IAAiBnB,EAC9F4B,EAAkB0B,IACjB,CAAC7B,EAAcN,IAGlB,MAAMb,EAAkB8B,EAAAA,QAAQ,IACzB/B,EACEa,EAAQ9D,OAAOiE,GAAOD,EAASC,EAAKhB,IADlBa,EAExB,CAACA,EAASb,EAAae,IAEpBb,EAAe6B,EAAAA,QAAQ,IACpBE,EAAYf,EAAac,GAAgB,KAC/C,CAACC,EAAWf,EAAcc,IAmB7B,MAAO,CAELlC,eAAgBkC,EAChBjC,SACAC,cACAa,UACAvB,SACAa,eAGAC,kBAnBoBQ,IAChBQ,EACFV,IAAWE,EAAO/H,MAAO+H,GAEzBW,EAAkBX,GAEpBuB,KAcA9B,aA5BmB,KACnBqB,EAAS,CAAElB,KAAM,YA4BjBF,aAzBoBzH,IACpB6I,EAAS,CAAElB,KAAM,SAAUS,KAAMpI,KAyBjCsJ,cAGAtJ,MAAOmJ,EAAanJ,MACpB+G,MAAOoC,EAAapC,MACpBqC,YACAhC,kBACAC,eACAgB,eACAC","x_google_ignoreList":[0,1,3,4,5,6,7,8,9]}
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","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/shared/src/utils.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/defaultAttributes.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/Icon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/createLucideIcon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/check.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/search.js","../src/components/Input/Input.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,"/**\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 = [\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],"names":["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","Button","children","ref","_jsx","tabIndex","displayName","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","Search","cy","wrapperVariants","white","inputVariants","search","input","disabled","true","false","Input","_jsxs","EMPTY_OPTION","label","selectBoxHook","selectedOption","isOpen","searchValue","filteredOptions","selectedText","containerRef","handleClickOption","handleToggle","handleSearch","onClick","type","placeholder","onChange","target","option","options","defaultValue","filterFn","opt","term","itemToString","getValue","isControlled","defaultOption","find","setSelectedOption","useState","ui","dispatch","useReducer","s","a","controlledSelected","useMemo","viewSelected","hasOption","useRef","handleClose","useCallback","enabled","onDismiss","useEffect","handle","event","el","current","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,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AClB,IAAKN,EAEH,YADAS,EAAkB5B,GAGpB,MAAMsD,EAAOpC,EAAQS,KAAKN,GAAOA,EAAInI,QAAUiI,GAAgBE,EAAIpB,QAAUkB,IAAiBnB,EAC9F4B,EAAkB0B,IACjB,CAAC7B,EAAcN,IAGlB,MAAMb,EAAkB8B,EAAAA,QAAQ,IACzB/B,EACEa,EAAQhE,OAAOmE,GAAOD,EAASC,EAAKhB,IADlBa,EAExB,CAACA,EAASb,EAAae,IAEpBb,EAAe6B,EAAAA,QAAQ,IACpBE,EAAYf,EAAac,GAAgB,KAC/C,CAACC,EAAWf,EAAcc,IAmB7B,MAAO,CAELlC,eAAgBkC,EAChBjC,SACAC,cACAa,UACAzB,SACAe,eAGAC,kBAnBoBQ,IAChBQ,EACFV,IAAWE,EAAO/H,MAAO+H,GAEzBW,EAAkBX,GAEpBuB,KAcA9B,aA5BmB,KACnBqB,EAAS,CAAElB,KAAM,YA4BjBF,aAzBoBzH,IACpB6I,EAAS,CAAElB,KAAM,SAAUS,KAAMpI,KAyBjCsJ,cAGAtJ,MAAOmJ,EAAanJ,MACpB+G,MAAOoC,EAAapC,MACpBqC,YACAhC,kBACAC,eACAgB,eACAC","x_google_ignoreList":[0,1,3,4,5,6,7,8,9]}
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- /*! tailwindcss v4.1.12 | 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:#fcf6df;--color-yellow-100:#c9bf91;--color-yellow-200:#fde68a;--color-yellow-300:#eccb43;--color-yellow-400:#e9be11;--color-purple-500:oklch(62.7% 0.265 303.9);--color-purple-600:oklch(55.8% 0.288 302.321);--color-pink-500:oklch(65.6% 0.241 354.308);--color-pink-600:oklch(59.2% 0.249 0.584);--color-gray-100:oklch(96.7% 0.003 264.542);--color-gray-600:oklch(44.6% 0.03 256.802);--color-black:#000;--color-white:#fff;--spacing:0.25rem;--container-md:28rem;--container-2xl:42rem;--container-4xl:56rem;--text-sm:0.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-lg:1.125rem;--text-lg--line-height:1.55556;--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-navy-50:#343a46;--color-navy-100:#2a303c;--color-navy-200:#20242d;--color-navy-300:#19191f;--color-background-primary:var(--color-navy-300);--color-background-secondary:var(--color-navy-200);--color-background-tertiary:var(--color-navy-100);--color-background-forth:var(--color-navy-50);--color-background-primary-layer:rgba(25,25,31,.7);--color-background-secondary-layer:rgba(32,36,45,.7);--color-background-tertiary-layer:rgba(42,48,60,.7);--color-background-forth-layer:rgba(52,58,70,.7);--color-primary-50:var(--color-yellow-50);--color-primary-100:var(--color-yellow-100);--color-primary-200:var(--color-yellow-200);--color-primary-300:var(--color-yellow-300);--color-primary-400:var(--color-yellow-400);--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:400;--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}}@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{.absolute{position:absolute}.relative{position:relative}.top-1\/2{top:50%}.top-14{top:calc(var(--spacing)*14)}.left-0{left:calc(var(--spacing)*0)}.left-3{left:calc(var(--spacing)*3)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.h-6{height:calc(var(--spacing)*6)}.h-12{height:calc(var(--spacing)*12)}.h-\[40px\]{height:40px}.h-auto{height:auto}.h-full{height:100%}.max-h-\[200px\]{max-height:200px}.w-6{width:calc(var(--spacing)*6)}.w-20{width:calc(var(--spacing)*20)}.w-40{width:calc(var(--spacing)*40)}.w-\[120px\]{width:120px}.w-\[200px\]{width:200px}.w-\[300px\]{width:300px}.w-\[400px\]{width:400px}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-md{max-width:var(--container-md)}.flex-1{flex:1}.-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}.cursor-wait{cursor:wait}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:calc(var(--spacing)*2)}.gap-8{gap:calc(var(--spacing)*8)}.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-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-scroll{overflow-y:scroll}.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-gray-600{border-color:var(--color-gray-600)}.border-primary-100{border-color:var(--color-primary-100)}.border-primary-400{border-color:var(--color-primary-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-background-secondary{background-color:var(--color-background-secondary)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-primary-400{background-color:var(--color-primary-400)}.bg-transparent{background-color:transparent}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-purple-500{--tw-gradient-from:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-pink-500{--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-to) var(--tw-gradient-to-position))}.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)}.pr-3{padding-right:calc(var(--spacing)*3)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-10{padding-left:calc(var(--spacing)*10)}.font-yds-wanted{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)}.text-black{color:var(--color-black)}.text-current{color:currentcolor}.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-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,rgba(0,0,0,.1)),0 4px 6px -4px 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-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\:from-purple-600{&:hover{@media (hover:hover){--tw-gradient-from:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-to) var(--tw-gradient-to-position))}}}.hover\:to-pink-600{&:hover{@media (hover:hover){--tw-gradient-to:var(--color-pink-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-to) var(--tw-gradient-to-position))}}}.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}}}@import url("https://fastly.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.1/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css");@layer utilities{.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-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)}.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)}.card-navy-50{border-color:var(--color-navy-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-navy-100);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.card-navy-200{border-color:var(--color-navy-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-navy-300);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.z-select-box-dropdown{z-index:1000}.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-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)}.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-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-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)}.font-yds-wanted{font-family:var(--font-yds-wanted)}}@layer components{.yds-button-typography{align-items:center;border-radius:var(--radius-lg);cursor:pointer;display:flex;font-family:var(--font-yds-wanted);font-size:var(--font-size-yds-s2);font-weight:var(--font-weight-yds-s2);height:calc(var(--spacing)*12);justify-content:center;line-height:var(--line-height-yds-s2)}.yds-input-typography{font-size:var(--font-size-yds-b2);font-weight:var(--font-weight-yds-b2);line-height:var(--line-height-yds-b2)}}@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-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@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-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--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.12 | 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:#fcf6df;--color-yellow-100:#c9bf91;--color-yellow-200:#fde68a;--color-yellow-300:#eccb43;--color-yellow-400:#e9be11;--color-purple-500:oklch(62.7% 0.265 303.9);--color-purple-600:oklch(55.8% 0.288 302.321);--color-pink-500:oklch(65.6% 0.241 354.308);--color-pink-600:oklch(59.2% 0.249 0.584);--color-gray-100:oklch(96.7% 0.003 264.542);--color-gray-600:oklch(44.6% 0.03 256.802);--color-black:#000;--color-white:#fff;--spacing:0.25rem;--container-md:28rem;--container-2xl:42rem;--container-4xl:56rem;--text-sm:0.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-lg:1.125rem;--text-lg--line-height:1.55556;--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-navy-50:#343a46;--color-navy-100:#2a303c;--color-navy-200:#20242d;--color-navy-300:#19191f;--color-background-primary:var(--color-navy-300);--color-background-secondary:var(--color-navy-200);--color-background-tertiary:var(--color-navy-100);--color-background-forth:var(--color-navy-50);--color-background-primary-layer:rgba(25,25,31,.7);--color-background-secondary-layer:rgba(32,36,45,.7);--color-background-tertiary-layer:rgba(42,48,60,.7);--color-background-forth-layer:rgba(52,58,70,.7);--color-primary-50:var(--color-yellow-50);--color-primary-100:var(--color-yellow-100);--color-primary-200:var(--color-yellow-200);--color-primary-300:var(--color-yellow-300);--color-primary-400:var(--color-yellow-400);--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:400;--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}}@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{.absolute{position:absolute}.relative{position:relative}.top-1\/2{top:50%}.top-14{top:calc(var(--spacing)*14)}.left-0{left:calc(var(--spacing)*0)}.left-3{left:calc(var(--spacing)*3)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.h-6{height:calc(var(--spacing)*6)}.h-12{height:calc(var(--spacing)*12)}.h-\[40px\]{height:40px}.h-auto{height:auto}.h-full{height:100%}.max-h-\[200px\]{max-height:200px}.w-6{width:calc(var(--spacing)*6)}.w-20{width:calc(var(--spacing)*20)}.w-40{width:calc(var(--spacing)*40)}.w-\[120px\]{width:120px}.w-\[200px\]{width:200px}.w-\[300px\]{width:300px}.w-\[400px\]{width:400px}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-md{max-width:var(--container-md)}.flex-1{flex:1}.-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}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:calc(var(--spacing)*2)}.gap-8{gap:calc(var(--spacing)*8)}.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-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-scroll{overflow-y:scroll}.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-gray-600{border-color:var(--color-gray-600)}.border-primary-100{border-color:var(--color-primary-100)}.border-primary-400{border-color:var(--color-primary-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-background-secondary{background-color:var(--color-background-secondary)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-primary-400{background-color:var(--color-primary-400)}.bg-transparent{background-color:transparent}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-purple-500{--tw-gradient-from:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-pink-500{--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-to) var(--tw-gradient-to-position))}.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)}.pr-3{padding-right:calc(var(--spacing)*3)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-10{padding-left:calc(var(--spacing)*10)}.font-yds-wanted{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)}.text-black{color:var(--color-black)}.text-current{color:currentcolor}.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-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,rgba(0,0,0,.1)),0 4px 6px -4px 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-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\:from-purple-600{&:hover{@media (hover:hover){--tw-gradient-from:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-to) var(--tw-gradient-to-position))}}}.hover\:to-pink-600{&:hover{@media (hover:hover){--tw-gradient-to:var(--color-pink-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-to) var(--tw-gradient-to-position))}}}.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}}}@import url("https://fastly.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.1/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css");@layer utilities{.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-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)}.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)}.card-navy-50{border-color:var(--color-navy-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-navy-100);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.card-navy-200{border-color:var(--color-navy-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-navy-300);border-radius:var(--yds-border-radius);border-width:var(--yds-border-width)}.z-select-box-dropdown{z-index:1000}.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-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)}.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-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-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)}.font-yds-wanted{font-family:var(--font-yds-wanted)}}@layer components{.yds-button-typography{align-items:center;border-radius:var(--radius-lg);cursor:pointer;display:flex;font-family:var(--font-yds-wanted);font-size:var(--font-size-yds-s2);font-weight:var(--font-weight-yds-s2);height:calc(var(--spacing)*12);justify-content:center;line-height:var(--line-height-yds-s2)}.yds-input-typography{font-size:var(--font-size-yds-b2);font-weight:var(--font-weight-yds-b2);line-height:var(--line-height-yds-b2)}}@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-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@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-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--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.d.ts CHANGED
@@ -8,14 +8,13 @@ declare const buttonVariants: (props?: ({
8
8
  size?: "sm" | "md" | "lg" | "full" | null | undefined;
9
9
  variant?: "fill" | "outlined" | null | undefined;
10
10
  color?: "primary" | null | undefined;
11
- disabled?: boolean | null | undefined;
12
11
  } & class_variance_authority_types.ClassProp) | undefined) => string;
13
12
  type ButtonProps = {
14
13
  ref?: React__default.Ref<HTMLButtonElement>;
15
14
  isActive?: boolean;
16
15
  children: React__default.ReactNode;
17
16
  } & React__default.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants>;
18
- declare function Button({ size, variant, color, children, className, ref, disabled, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
17
+ declare function Button({ size, variant, color, children, className, ref, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
19
18
  declare namespace Button {
20
19
  var displayName: string;
21
20
  }
package/dist/index.esm.js CHANGED
@@ -1,28 +1,28 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{forwardRef as t,createElement as l,useEffect as a,useState as n,useReducer as o,useMemo as i,useRef as s,useCallback as c}from"react";function d(e){var r,t,l="";if("string"==typeof e||"number"==typeof e)l+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=d(e[r]))&&(l&&(l+=" "),l+=t)}else for(t in e)e[t]&&(l&&(l+=" "),l+=t);return l}const u=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,p=function(){for(var e,r,t=0,l="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=d(e))&&(l&&(l+=" "),l+=r);return l},m=(e,r)=>t=>{var l;if(null==(null==r?void 0:r.variants))return p(e,null==t?void 0:t.class,null==t?void 0:t.className);const{variants:a,defaultVariants:n}=r,o=Object.keys(a).map(e=>{const r=null==t?void 0:t[e],l=null==n?void 0:n[e];if(null===r)return null;const o=u(r)||u(l);return a[e][o]}),i=t&&Object.entries(t).reduce((e,r)=>{let[t,l]=r;return void 0===l||(e[t]=l),e},{}),s=null==r||null===(l=r.compoundVariants)||void 0===l?void 0:l.reduce((e,r)=>{let{class:t,className:l,...a}=r;return Object.entries(a).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...n,...i}[r]):{...n,...i}[r]===t})?[...e,t,l]:e},[]);return p(e,o,s,null==t?void 0:t.class,null==t?void 0:t.className)},f=m("yds-button-typography",{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-wait"}},compoundVariants:[{variant:"fill",color:"primary",class:"bg-primary-400 text-black"},{variant:"outlined",color:"primary",class:"border-primary-400 text-primary-400"}],defaultVariants:{size:"md",variant:"fill",color:"primary"}});function h({size:r="md",variant:t,color:l,children:a,className:n="",ref:o,disabled:i=!1,...s}){return e("button",{ref:o,className:`${f({size:r,variant:t,color:l,className:n,disabled:i})}`,tabIndex:i?-1:0,"aria-label":s["aria-label"]||("string"==typeof a?a:"button"),disabled:i,...s,children:a})}h.displayName="Button";
1
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{forwardRef as t,createElement as l,useEffect as a,useState as n,useReducer as o,useMemo as i,useRef as s,useCallback as c}from"react";function u(e){var r,t,l="";if("string"==typeof e||"number"==typeof e)l+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=u(e[r]))&&(l&&(l+=" "),l+=t)}else for(t in e)e[t]&&(l&&(l+=" "),l+=t);return l}const d=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,p=function(){for(var e,r,t=0,l="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=u(e))&&(l&&(l+=" "),l+=r);return l},m=(e,r)=>t=>{var l;if(null==(null==r?void 0:r.variants))return p(e,null==t?void 0:t.class,null==t?void 0:t.className);const{variants:a,defaultVariants:n}=r,o=Object.keys(a).map(e=>{const r=null==t?void 0:t[e],l=null==n?void 0:n[e];if(null===r)return null;const o=d(r)||d(l);return a[e][o]}),i=t&&Object.entries(t).reduce((e,r)=>{let[t,l]=r;return void 0===l||(e[t]=l),e},{}),s=null==r||null===(l=r.compoundVariants)||void 0===l?void 0:l.reduce((e,r)=>{let{class:t,className:l,...a}=r;return Object.entries(a).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...n,...i}[r]):{...n,...i}[r]===t})?[...e,t,l]:e},[]);return p(e,o,s,null==t?void 0:t.class,null==t?void 0:t.className)},f=m("yds-button-typography",{variants:{size:{sm:"w-20",md:"w-[120px]",lg:"w-40",full:"w-full"},variant:{fill:"",outlined:"bg-transparent border-2"},color:{primary:""}},compoundVariants:[{variant:"fill",color:"primary",class:"bg-primary-400 text-black"},{variant:"outlined",color:"primary",class:"border-primary-400 text-primary-400"}],defaultVariants:{size:"md",variant:"fill",color:"primary"}});function h({size:r="md",variant:t,color:l,children:a,className:n="",ref:o,...i}){return e("button",{ref:o,className:f({size:r,variant:t,color:l,className:n}),tabIndex:0,"aria-label":i["aria-label"]||("string"==typeof a?a:"button"),...i,children:a})}h.displayName="Button";
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 v=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)},y=(...e)=>e.filter((e,r,t)=>Boolean(e)&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim(),b=e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
8
+ const v=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)},y=(...e)=>e.filter((e,r,t)=>Boolean(e)&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim(),w=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
  *
12
12
  * This source code is licensed under the ISC license.
13
13
  * See the LICENSE file in the root directory of this source tree.
14
14
  */
15
- var w={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
15
+ var b={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
16
16
  /**
17
17
  * @license lucide-react v0.542.0 - ISC
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 x=t(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...s},c)=>l("svg",{ref:c,...w,width:r,height:r,stroke:e,strokeWidth:a?24*Number(t)/Number(r):t,className:y("lucide",n),...!o&&!b(s)&&{"aria-hidden":"true"},...s},[...i.map(([e,r])=>l(e,r)),...Array.isArray(o)?o:[o]])),g=(e,r)=>{const a=t(({className:t,...a},n)=>{return l(x,{ref:n,iconNode:r,className:y(`lucide-${o=v(e),o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,t),...a});var o});return a.displayName=v(e),a},N=g("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),k=g("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),O=g("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),C=m("relative",{variants:{color:{"primary-400":"text-yellow-400","primary-100":"text-yellow-100",white:"text-white"}}}),z=m("text-yds-b2 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 x=t(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...s},c)=>l("svg",{ref:c,...b,width:r,height:r,stroke:e,strokeWidth:a?24*Number(t)/Number(r):t,className:y("lucide",n),...!o&&!w(s)&&{"aria-hidden":"true"},...s},[...i.map(([e,r])=>l(e,r)),...Array.isArray(o)?o:[o]])),g=(e,r)=>{const a=t(({className:t,...a},n)=>{return l(x,{ref:n,iconNode:r,className:y(`lucide-${o=v(e),o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,t),...a});var o});return a.displayName=v(e),a},N=g("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),k=g("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),O=g("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),C=m("relative",{variants:{color:{"primary-400":"text-yellow-400","primary-100":"text-yellow-100",white:"text-white"}}}),z=m("text-yds-b2 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 V({size:t,color:l,variant:a,disabled:n,...o}){return r("div",{className:C({color:l}),children:["search"===a&&e(O,{"aria-hidden":!0,className:"absolute top-1/2 left-3 h-6 w-6 -translate-y-1/2 text-current"}),e("input",{className:z({size:t,color:l,variant:a,disabled:n}),disabled:n,...o})]})}V.displayName="Input";const E=m("relative h-12",{variants:{size:{sm:"w-[200px]",md:"w-[300px]",lg:"w-[400px]",full:"w-full"}},defaultVariants:{size:"full"}});function L({size:t,selectBoxHook:l}){const{selectedOption:a,isOpen:n,searchValue:o,filteredOptions:i,selectedText:s,search:c,containerRef:d,handleClickOption:u,handleToggle:p,handleSearch:m}=l;return r("div",{className:E({size:t}),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(k,{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(O,{className:"text-yellow-100",size:20}),e("input",{type:"text",className:"w-full p-2 text-white hover:outline-none focus:outline-none",value:o,placeholder:"검색으로 쉽게찾기",onChange:e=>m(e.target.value)})]}),e("div",{className:"scrollbar-hide flex h-auto max-h-[200px] flex-col gap-2 overflow-y-scroll",children:i.map(t=>r("div",{className:"text-yds-c1m hover:bg-background-primary flex cursor-pointer items-center justify-between text-white",onClick:()=>u(t),children:[t.value,a.value===t.value&&e(N,{className:"text-yellow-100",size:20})]},t.label))})]})]})}const j={label:"",value:""},A=e=>{const{options:r,defaultValue:t,search:l=!1,value:d,onChange:u,filterFn:p=(e,r)=>e.value.toLowerCase().includes(r.toLowerCase()),itemToString:m=e=>e.value,getValue:f=e=>e.value}=e,h=void 0!==d,v=t&&r.find(e=>e.value===t)||j,[y,b]=n(v),[w,x]=o((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=i(()=>h&&r.find(e=>e.value===d)||j,[h,r,d]),O=h?k:y,C=""!==O.value&&""!==O.label,z=s(null),V=c(()=>{x({type:"CLOSE"})},[]);var E,L;!function(e,r,t){a(()=>{if(!r)return;const l=r=>{const l=e.current;l&&(l.contains(r.target)||t())};return document.addEventListener("mousedown",l),()=>document.removeEventListener("mousedown",l)},[r,e,t])}(z,g,V),a(()=>{if(!E)return;const e=e=>{"Escape"===e.key&&L()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[E=g,L=V]),a(()=>{if(h)return;if(!t)return void b(j);const e=r.find(e=>e.value===t||e.label===t)||j;b(e)},[h,t]);const A=i(()=>N?r.filter(e=>p(e,N)):r,[r,N,p]),S=i(()=>C?m(O):"선택",[C,m,O]);return{selectedOption:O,isOpen:g,searchValue:N,options:r,search:l,containerRef:z,handleClickOption:e=>{h?u?.(e.value,e):b(e),V()},handleToggle:()=>{x({type:"TOGGLE"})},handleSearch:e=>{x({type:"SEARCH",term:e})},handleClose:V,value:O.value,label:O.label,hasOption:C,filteredOptions:A,selectedText:S,itemToString:m,getValue:f}};export{h as Button,V as Input,L as SelectBox,A as useSelectBox};
27
+ */function V({size:t,color:l,variant:a,disabled:n,...o}){return r("div",{className:C({color:l}),children:["search"===a&&e(O,{"aria-hidden":!0,className:"absolute top-1/2 left-3 h-6 w-6 -translate-y-1/2 text-current"}),e("input",{className:z({size:t,color:l,variant:a,disabled:n}),disabled:n,...o})]})}V.displayName="Input";const E=m("relative h-12",{variants:{size:{sm:"w-[200px]",md:"w-[300px]",lg:"w-[400px]",full:"w-full"}},defaultVariants:{size:"full"}});function L({size:t,selectBoxHook:l}){const{selectedOption:a,isOpen:n,searchValue:o,filteredOptions:i,selectedText:s,search:c,containerRef:u,handleClickOption:d,handleToggle:p,handleSearch:m}=l;return r("div",{className:E({size:t}),ref:u,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(k,{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(O,{className:"text-yellow-100",size:20}),e("input",{type:"text",className:"w-full p-2 text-white hover:outline-none focus:outline-none",value:o,placeholder:"검색으로 쉽게찾기",onChange:e=>m(e.target.value)})]}),e("div",{className:"scrollbar-hide flex h-auto max-h-[200px] flex-col gap-2 overflow-y-scroll",children:i.map(t=>r("div",{className:"text-yds-c1m hover:bg-background-primary flex cursor-pointer items-center justify-between text-white",onClick:()=>d(t),children:[t.value,a.value===t.value&&e(N,{className:"text-yellow-100",size:20})]},t.label))})]})]})}const j={label:"",value:""},A=e=>{const{options:r,defaultValue:t,search:l=!1,value:u,onChange:d,filterFn:p=(e,r)=>e.value.toLowerCase().includes(r.toLowerCase()),itemToString:m=e=>e.value,getValue:f=e=>e.value}=e,h=void 0!==u,v=t&&r.find(e=>e.value===t)||j,[y,w]=n(v),[b,x]=o((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}=b,k=i(()=>h&&r.find(e=>e.value===u)||j,[h,r,u]),O=h?k:y,C=""!==O.value&&""!==O.label,z=s(null),V=c(()=>{x({type:"CLOSE"})},[]);var E,L;!function(e,r,t){a(()=>{if(!r)return;const l=r=>{const l=e.current;l&&(l.contains(r.target)||t())};return document.addEventListener("mousedown",l),()=>document.removeEventListener("mousedown",l)},[r,e,t])}(z,g,V),a(()=>{if(!E)return;const e=e=>{"Escape"===e.key&&L()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[E=g,L=V]),a(()=>{if(h)return;if(!t)return void w(j);const e=r.find(e=>e.value===t||e.label===t)||j;w(e)},[h,t]);const A=i(()=>N?r.filter(e=>p(e,N)):r,[r,N,p]),S=i(()=>C?m(O):"선택",[C,m,O]);return{selectedOption:O,isOpen:g,searchValue:N,options:r,search:l,containerRef:z,handleClickOption:e=>{h?d?.(e.value,e):w(e),V()},handleToggle:()=>{x({type:"TOGGLE"})},handleSearch:e=>{x({type:"SEARCH",term:e})},handleClose:V,value:O.value,label:O.label,hasOption:C,filteredOptions:A,selectedText:S,itemToString:m,getValue:f}};export{h as Button,V as Input,L as SelectBox,A 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","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/shared/src/utils.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/defaultAttributes.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/Icon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/createLucideIcon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/check.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/search.js","../src/components/Input/Input.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,"/**\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 = [\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],"names":["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","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","Search","cy","wrapperVariants","white","inputVariants","search","input","false","Input","_jsxs","SelectBox","selectBoxHook","selectedOption","isOpen","searchValue","filteredOptions","selectedText","containerRef","handleClickOption","handleToggle","handleSearch","onClick","type","placeholder","onChange","target","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","useRef","handleClose","useCallback","enabled","onDismiss","useEffect","handle","event","el","current","contains","document","addEventListener","removeEventListener","useOutsideDismiss","next"],"mappings":"+LAAA,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,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,EAAM,CAACC,EAAMC,IAAUC,IAC5B,IAAIC,EACJ,GAAyE,OAApEF,aAAuC,EAASA,EAAOG,UAAmB,OAAOP,EAAGG,EAAME,aAAqC,EAASA,EAAMG,MAAOH,aAAqC,EAASA,EAAMI,WAC9M,MAAMF,SAAEA,EAAQG,gBAAEA,GAAoBN,EAChC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AM,SAAUY,KAAMtI,KAyBjCwJ,cAGAxJ,MAAOqJ,EAAarJ,MACpB+H,MAAOsB,EAAatB,MACpBuB,YACAnC,kBACAC,eACAmB,eACAC","x_google_ignoreList":[0,1,3,4,5,6,7,8,9]}
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","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/shared/src/utils.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/defaultAttributes.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/Icon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/createLucideIcon.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/check.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js","../node_modules/.pnpm/lucide-react@0.542.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/search.js","../src/components/Input/Input.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,"/**\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 = [\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],"names":["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","Button","children","ref","_jsx","tabIndex","displayName","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","Search","cy","wrapperVariants","white","inputVariants","search","input","disabled","true","false","Input","_jsxs","SelectBox","selectBoxHook","selectedOption","isOpen","searchValue","filteredOptions","selectedText","containerRef","handleClickOption","handleToggle","handleSearch","onClick","type","placeholder","onChange","target","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","useRef","handleClose","useCallback","enabled","onDismiss","useEffect","handle","event","el","current","contains","document","addEventListener","removeEventListener","useOutsideDismiss","next"],"mappings":"+LAAA,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,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,EAAM,CAACC,EAAMC,IAAUC,IAC5B,IAAIC,EACJ,GAAyE,OAApEF,aAAuC,EAASA,EAAOG,UAAmB,OAAOP,EAAGG,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,GAC7G,GAAoB,OAAhBC,EAAsB,OAAO,KACjC,MAAME,EAAapB,EAAckB,IAAgBl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N,GAChC,IAAMK,SAASE,oBAAoB,YAAaP,IACtD,CAACH,EAASrC,EAAcsC,GAC7B,CDwDEU,CAAkBhD,EAAcJ,EAAQuC,GCrDxCI,EAAU,KACR,IAAKF,EAAS,OAEd,MAAMG,EAAUC,IACI,WAAdA,EAAMrI,KAAkBkI,KAI9B,OADAO,SAASC,iBAAiB,UAAWN,GAC9B,IAAMK,SAASE,oBAAoB,UAAWP,IACpD,CAV4BH,EDuDdzC,ECvDgC0C,EDuDxBH,IAGzBI,EAAU,KACR,GAAInB,EAAc,OAClB,IAAKN,EAEH,YADAS,EAAkBZ,GAGpB,MAAMsC,EAAOpC,EAAQS,KAAKN,GAAOA,EAAIrI,QAAUmI,GAAgBE,EAAIN,QAAUI,IAAiBH,EAC9FY,EAAkB0B,IACjB,CAAC7B,EAAcN,IAGlB,MAAMhB,EAAkBiC,EAAQ,IACzBlC,EACEgB,EAAQlE,OAAOqE,GAAOD,EAASC,EAAKnB,IADlBgB,EAExB,CAACA,EAAShB,EAAakB,IAEpBhB,EAAegC,EAAQ,IACpBE,EAAYf,EAAac,GAAgB,KAC/C,CAACC,EAAWf,EAAcc,IAmB7B,MAAO,CAELrC,eAAgBqC,EAChBpC,SACAC,cACAgB,UACA3B,SACAc,eAGAC,kBAnBoBQ,IAChBW,EACFb,IAAWE,EAAO9H,MAAO8H,GAEzBc,EAAkBd,GAEpB0B,KAcAjC,aA5BmB,KACnBwB,EAAS,CAAErB,KAAM,YA4BjBF,aAzBoBxH,IACpB+I,EAAS,CAAErB,KAAM,SAAUY,KAAMtI,KAyBjCwJ,cAGAxJ,MAAOqJ,EAAarJ,MACpB+H,MAAOsB,EAAatB,MACpBuB,YACAnC,kBACAC,eACAmB,eACAC","x_google_ignoreList":[0,1,3,4,5,6,7,8,9]}
@@ -4,18 +4,16 @@ declare const buttonVariants: (props?: ({
4
4
  size?: "sm" | "md" | "lg" | "full" | null | undefined;
5
5
  variant?: "fill" | "outlined" | null | undefined;
6
6
  color?: "primary" | null | undefined;
7
- disabled?: boolean | null | undefined;
8
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
8
  export type ButtonSize = VariantProps<typeof buttonVariants>['size'];
10
9
  export type ButtonVariant = VariantProps<typeof buttonVariants>['variant'];
11
10
  export type ButtonColor = VariantProps<typeof buttonVariants>['color'];
12
- export type ButtonDisabled = VariantProps<typeof buttonVariants>['disabled'];
13
11
  type ButtonProps = {
14
12
  ref?: React.Ref<HTMLButtonElement>;
15
13
  isActive?: boolean;
16
14
  children: React.ReactNode;
17
15
  } & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants>;
18
- export declare function Button({ size, variant, color, children, className, ref, disabled, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function Button({ size, variant, color, children, className, ref, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
19
17
  export declare namespace Button {
20
18
  var displayName: string;
21
19
  }
@@ -1,10 +1,10 @@
1
1
  export type SelectBoxOption = {
2
2
  label: string;
3
- value: string;
3
+ value: any;
4
4
  };
5
- export declare const useSelectBox: (config: {
5
+ export declare const useSelect: (config: {
6
6
  options: SelectBoxOption[];
7
- defaultValue?: string;
7
+ defaultValue?: any;
8
8
  search?: boolean;
9
9
  }) => {
10
10
  selectedValue: SelectBoxOption | null;
@@ -15,6 +15,6 @@ export declare const useSelectBox: (config: {
15
15
  handleSelect: (option: SelectBoxOption) => void;
16
16
  handleToggle: () => void;
17
17
  handleSearch: (value: string) => void;
18
- value: string | undefined;
18
+ value: any;
19
19
  selectedOption: SelectBoxOption | null;
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youngduck/yd-ui",
3
- "version": "0.4.2",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -21,6 +21,7 @@
21
21
  "watch": "rollup -c -w",
22
22
  "storybook": "storybook dev -p 6006",
23
23
  "build-storybook": "storybook build",
24
+ "chromatic": "chromatic --exit-zero-on-changes",
24
25
  "lint": "eslint src --ext .js,.jsx,.ts,.tsx",
25
26
  "lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
26
27
  "format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
@@ -54,6 +55,7 @@
54
55
  "@types/react": "^19.0.2",
55
56
  "@types/react-dom": "^19.0.2",
56
57
  "autoprefixer": "^10.4.19",
58
+ "chromatic": "^13.3.3",
57
59
  "class-variance-authority": "^0.7.1",
58
60
  "clsx": "^2.1.0",
59
61
  "eslint": "^9.32.0",
package/CHANGELOG.md DELETED
@@ -1,228 +0,0 @@
1
- # Changelog
2
-
3
-
4
- ## [0.4.2] - 2025-10-02
5
-
6
- ### 추가
7
- - husky 설치, 빌드전 검증 추가
8
- - Button 컴포넌트 disabled 상황시 디자인 추가
9
- ### 수정
10
- - SelectBox컴포넌트 미사용코드제거
11
-
12
- ## [0.4.1] - 2025-09-25
13
-
14
- ### 변경
15
- - 토큰 색상 정의 변경
16
- - 디자인 시스템 토큰 값 재정의 및 최적화
17
- - 색상 일관성 개선 및 사용성 향상
18
- - Navy 색상 값 재지정 및 border 모듈화
19
- - Navy 색상 팔레트 재정의
20
- - Border 관련 스타일 모듈화로 재사용성 향상
21
-
22
- ## [0.3.5] - 2025-09-22
23
-
24
- ### 추가
25
- - SelectBox 선언적 리팩토링 관련 유틸/전략 추가
26
- - `useDismiss` 훅: 외부 클릭/ESC 닫기 전용 훅 분리
27
- - `filterFn`, `itemToString`, `getValue` 전략 주입 지원
28
-
29
- ### 변경
30
- - `useSelectBox` 리팩토링 (선언적/확장성 강화)
31
- - 파생값을 선언형으로 계산: `filteredOptions`, `selectedText`
32
- - 컨트롤드/언컨트롤드 동시 지원 (`value`, `onChange` + `defaultValue`는 언컨트롤드 전용)
33
- - UI 상태를 리듀서로 통합: `isOpen`, `searchValue` + 액션(`OPEN/CLOSE/TOGGLE/SEARCH/RESET_SEARCH`)
34
- - 닫기 로직 단일화 `handleClose` 사용 및 사이드이펙트 분리(`useDismiss`)
35
- - SelectBox 옵션 리스트 기본 스크롤 제공 (`max-height` 적용)
36
-
37
- ### 문서
38
- - Devlog 글(`yds-3.md`)에 선언적 리팩토링 기록 추가
39
- - 파생값 이전, 외부 클릭 훅 분리, 컨트롤드/언컨트롤드 지원, 리듀서 전이 테이블화 정리
40
-
41
-
42
- ## [0.3.4] - 2025-09-18
43
-
44
- ### 추가
45
- - SelectBox 컴포넌트 추가
46
- - 기본 드롭다운 선택 기능
47
- - 검색 기능 지원 (옵션별 활성화/비활성화)
48
- - 선택된 항목 표시 및 체크 아이콘
49
-
50
-
51
- ### 변경
52
- - `.text-yds-c1m` (Caption 1 Medium) 폰트크기 변경. 피그마 동기화완료
53
-
54
- ### 고도화 예정
55
- - Compound Component패턴 + TypeGuard 패턴 활용해서 고도화 해볼예정
56
- - 외부 클릭 시 자동 닫기 방식 검토
57
- - 다양한 사이즈 지원 (sm, md, lg, full)
58
- - 키보드 내비게이션 지원 (Enter, Space, Arrow keys)
59
-
60
- ## [0.3.2] - 2025-08-29
61
-
62
- ### 추가
63
- - Input 컴포넌트 추가
64
-
65
- ## [0.3.1] - 2025-08-28
66
-
67
- ### 추가
68
- - Input 컴포넌트(초안) 추가
69
- - 투명 레이어용 유틸리티 CSS 추가
70
-
71
- ### 변경
72
- - React peerDependencies를 19로 상향 (`react`, `react-dom` → ^19.0.0)
73
- - 라이브러리 CSS 전파 방식 정리: Tailwind v4 대응 유틸리티 제공
74
- - 색상: `.text-primary-50~400`, `.bg-primary-50~400`, `.border-primary-50~400`
75
- - 타이포그래피: `.text-yds-h1/h2/s1/s2/b1/b2/c1m/c1r/c2r`, `.font-yds-wanted`
76
- - 컴포넌트 베이스 타이포그래피 클래스 정리 (`.yds-button-typography`, `.yds-input-typography`)
77
-
78
- ## [0.2.1] - 2025-08-27
79
-
80
- ### 변경
81
-
82
- - **패키지 매니저 마이그레이션**: npm에서 pnpm으로 전환
83
- - **개발 환경 개선**: pnpm 기반 의존성 관리로 성능 및 안정성 향상
84
- - **빌드 시스템 최적화**: pnpm의 효율적인 패키지 관리로 빌드 속도 개선
85
-
86
- ### 개선
87
-
88
- - `package-lock.json` 제거 및 `pnpm-lock.yaml` 적용
89
- - pnpm의 심볼릭 링크 시스템으로 디스크 공간 절약
90
- - 의존성 중복 설치 방지로 번들 크기 최적화
91
- - 일관된 패키지 관리 환경 제공 (사이드프로젝트 pnpm 사용중)
92
-
93
- ## [0.1.4] - 2025-08-05
94
-
95
- ### 수정
96
-
97
- - yd-ui라이브러리 실행시 로컬에서는 적용, 실서버에서는 미적용 현상 최종 해결
98
- - `rollup-plugin-postcss` 설정에서 `inject: true`와 `extract: 'index.css'` 동시 적용
99
- - CSS 파일이 JS에 주입되면서 동시에 별도 파일로도 추출되도록 수정
100
- - `package.json`의 `exports` 필드에 `"./styles": "./dist/index.css"` 추가로 import 경로 커스텀 제공
101
- - 사이드 프로젝트에서 `@import "@youngduck/yd-ui/styles";` 형태로 CSS 간편 import 가능
102
-
103
- ### 버그 수정
104
-
105
- - 개발 환경과 프로덕션 환경 모두에서 YD-UI 적용
106
-
107
- ## [0.1.3] - 2025-08-04
108
-
109
- ### 버그 수정
110
-
111
- - yd-ui라이브러리 실행시 로컬에서는 적용, 실서버에서는 미적용 현상 발견
112
- - PostCSS 설정에서 CSS 파일 추출 기능 추가 (`extract: 'index.css'`)
113
- - `package.json`에서 CSS 파일 배포 설정 추가
114
- - 빌드 결과물에 CSS 파일이 포함되지 않던 문제 해결
115
- <!-- - 개발 환경과 빌드 환경 간 스타일 적용 불일치 문제 해결 -->
116
-
117
- ## [0.1.2] - 2025-01-27
118
-
119
- <!-- Tailwind v4버전 업에 따른 마이너버전 업 -->
120
-
121
- ### 추가
122
-
123
- - TailwindCSS v4 완전 호환 지원
124
- - `@tailwindcss/postcss` 플러그인 통합으로 라이브러리 빌드 최적화
125
- - CSS 파일 기반 설정 시스템 (`@theme`, `@import "tailwindcss"`)
126
- - PostCSS 기반 스타일 주입 시스템으로 `inject: true` 설정
127
-
128
- ### 변경
129
-
130
- - TailwindCSS v3.4.1에서 v4.1.11로 메이저 업그레이드
131
- - `tailwind.config.js` 제거 및 CSS 파일 기반 설정으로 마이그레이션
132
- - `@tailwindcss/vite` 의존성 제거 (PostCSS 방식으로 통합)
133
- - Rollup 설정에서 PostCSS 플러그인 설정
134
- - Storybook 설정에서 TailwindCSS v4 호환 적용
135
-
136
- ### 개선
137
-
138
- - CSS 변수 시스템 v4양식에 맞게끔 재구성 (`--color-primary-*`, `--font-size-yds-*`)
139
-
140
- ### 수정
141
-
142
- - ESLint 설정에서 빌드 결과물 및 타입 정의 파일 제외
143
- - Button 컴포넌트의 CSS 변수 참조 오류 수정
144
- - Storybook 무한 로딩 문제 해결
145
- - PostCSS 설정 충돌 문제 해결
146
-
147
- ### 삭제
148
-
149
- - 불필요한 `@tailwindcss/vite` 의존성 제거
150
- - 기존 styled-components 관련 캐싱 파일 제거
151
- - 중복된 TailwindCSS 설정 파일 정리
152
-
153
- ## [0.0.15] - 2025-01-27
154
-
155
- ### 추가
156
-
157
- - ESLint 및 Prettier 설정 추가
158
- - `lint`, `lint:fix`, `format`, `format:check`, `check` 스크립트 추가
159
- - CSS 모듈 시스템 도입으로 스타일 충돌 방지
160
- - 독립적인 스타일 시스템으로 YD-UI 컴포넌트 스코핑 구현
161
-
162
- ### 변경
163
-
164
- - ESLint flat config 시스템으로 마이그레이션
165
- - 롤업 PostCSS 자동주입설정
166
- - 패키지 이름을 `@yds/yd-ui`에서 `@youngduck/yd-ui`로 복원
167
- - 버전을 0.0.15로 업데이트
168
-
169
-
170
- ## [0.0.10] - 2025-07-31
171
-
172
- ### 추가
173
-
174
- - Tokens Studio for Figma 연동을 위한 자동 토큰 동기화 스크립트 추가
175
- - `auto-token-sync.js` 스크립트로 `tokens.json` → CSS/Tailwind 설정 자동 변환
176
- - `tokens:test` 스크립트로 테스트 파일 생성 기능 추가
177
- - Wanted Sans Variable 폰트 통합 및 YDS 디자인 시스템 타이포그래피 적용
178
- - Toss 패턴 기반 버튼 타이포그래피 시스템 구현
179
-
180
- ### 변경
181
-
182
- - 패키지 이름을 `@youngduck/yd-ui`에서 `@yds/yd-ui`로 변경
183
- - 디자인 토큰 기반 색상 시스템 (Primary 50-400) 적용
184
- - YDS 타이포그래피 토큰 (H1, H2, S1, S2, B1, B2, C1, C2, C3) 적용
185
- - 버튼 컴포넌트에 인라인 CSS 변수를 통한 동적 타이포그래피 적용
186
-
187
- ### 개선
188
-
189
- - 디자인 토큰과 컴포넌트 간 일관성 향상
190
- - Figma Variables와 코드 간 자동 동기화 워크플로우 구축
191
-
192
- ## [0.0.8] - 2025-06-08
193
-
194
- ### 추가
195
-
196
- - Storybook에 Tailwind CSS 스타일 적용
197
- - Storybook preview에 전역 CSS 불러오기 설정 추가
198
-
199
- ### 수정
200
-
201
- - Storybook에서 컴포넌트 스타일이 보이지 않는 문제 해결
202
-
203
- ### 삭제
204
-
205
- - 테스트로 만든 Input 컴포넌트 제거
206
-
207
- ## [0.0.7] - 2025-06-08
208
-
209
- ### 추가
210
-
211
- - Tailwind CSS 기반으로 Button 컴포넌트 재구현
212
- - class-variance-authority(cva)를 사용한 variant 시스템 추가
213
- - 시그니처 노란색을 primary 색상으로 추가
214
- - cn() 유틸리티 함수 추가
215
-
216
- ### 변경
217
-
218
- - styled-components에서 Tailwind CSS로 스타일링 방식 변경
219
- - Button 컴포넌트 API 개선 (variant, size, fullWidth 속성 추가)
220
- - 접근성 향상을 위한 aria-label 및 tabIndex 속성 추가
221
-
222
- ### 삭제
223
-
224
- - ButtonStyle.ts 파일 및 styled-components 종속성 제거
225
-
226
- ## [0.0.6] - 이전 버전
227
-
228
- 초기 릴리스