@chaibuilder/sdk 3.0.18 → 3.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/apply-binding-BIYK6lOq.cjs +1 -0
- package/dist/{apply-binding-B0CX8mDS.js → apply-binding-YbVf4970.js} +214 -170
- package/dist/{code-editor-e5WfREx8.js → code-editor--_5n1fHM.js} +11 -11
- package/dist/code-editor-CBlDQDOU.cjs +1 -0
- package/dist/core.cjs +1 -126
- package/dist/core.js +97 -10670
- package/dist/css-import-modal-BQLoUINw.cjs +13 -0
- package/dist/{css-import-modal-CSVrt6lz.js → css-import-modal-DaH4zyxk.js} +1 -1
- package/dist/index-D82Oycgh.js +10688 -0
- package/dist/index-yyKDajjI.cjs +128 -0
- package/dist/render.cjs +1 -1
- package/dist/render.js +2 -2
- package/dist/rte-widget-modal-DZeFdaqT.cjs +1 -0
- package/dist/rte-widget-modal-ZDCgSYTI.js +41 -0
- package/dist/sdk.css +1 -1
- package/dist/{toggle-C5YXnEL9.js → tooltip-Bz2MxMHf.js} +405 -405
- package/dist/tooltip-CzZ7Fvt7.cjs +1 -0
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +25 -27
- package/package.json +2 -1
- package/dist/apply-binding-DSgP62np.cjs +0 -1
- package/dist/code-editor-D5uDqrW1.cjs +0 -1
- package/dist/css-import-modal-Cm49bHmT.cjs +0 -13
- package/dist/toggle-Ca6BayTf.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const j=require("@chaibuilder/runtime"),t=require("lodash-es"),q=require("tailwind-merge"),b=require("./common-functions-BZmyleS1.cjs"),x=require("himalaya"),h="#styles:",O="__ADD_BLOCK_INTERNAL_ROOT",V="@",A="#",R=e=>{if(e=e.replace(h,""),!e)return{baseClasses:"",classes:""};const i=e.split(/,(?![^\[]*\])/);if(i.length===1)return{baseClasses:"",classes:i[0].trim()};const[n,...s]=i;return{baseClasses:n.trim(),classes:s.join(",").trim().replace(/ +(?= )/g,"")}};function W(e,i,n){const s=t.get(n,"i18nProps",[]);if(t.isEmpty(i)||t.isEmpty(s))return e;const a=t.cloneDeep(e);return t.forEach(t.keys(a),o=>{if(t.includes(s,o)&&!t.isEmpty(i)){const l=t.get(a,o),r=t.get(a,`${o}-${i}`,"");t.isString(l)?a[o]=t.isString(r)&&!t.isEmpty(r.trim())&&r.trimStart()||l:a[o]=t.isEmpty(r)?l:r}}),a}const F=t.memoize(e=>{const{baseClasses:i,classes:n}=R(e);return q.twMerge(i,n)});function z(e,i){return t.get(e,`${i}_attrs`,{})}function J(e,i=!0){const n={};return Object.keys(e).forEach(s=>{if(t.isString(e[s])&&e[s].startsWith(h)){const a=F(e[s]),o=z(e,s);n[s]={...!t.isEmpty(a)&&{className:a},...o,...i?{"data-style-prop":s,"data-block-parent":e._id,"data-style-id":`${s}-${e._id}`}:{}}}}),n}const Y=t.memoize(e=>{const i=j.getRegisteredChaiBlock(e),n=t.get(i,"schema.properties",{});return Object.fromEntries(Object.entries(n).filter(([,s])=>t.get(s,"runtime",!1)))}),K=(e,i)=>{if(!t.isArray(e))return e;let n=e,s;return typeof i.limit=="number"&&i.limit>0&&(s=i.limit),s!==void 0&&(n=n.slice(0,s)),n},U=(e,i)=>{const n=t.cloneDeep(e);return t.forEach(t.keys(n),s=>{if(t.isString(n[s])&&!t.startsWith(s,"_")){let a=n[s];s==="repeaterItems"&&(n.repeaterItemsBinding=a);const o=/\{\{(.*?)\}\}/g,l=a.match(o);l&&l.forEach(r=>{let u=r.slice(2,-2);const g=t.get(i,u,r);a=t.isArray(g)?g:a.replace(r,g)}),n[s]=a}}),n},X=e=>{const i=/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/,n=/(?:https?:\/\/)?(?:www\.)?(player)?.vimeo\.com/;return i.test(e)||n.test(e)},Z=e=>{if(t.isEmpty(e))return e;const i=/<video[^>]+src=['"]([^'">]+)['"]/,n=/<iframe[^>]+src=['"]([^'">]+)['"]/,s=e.match(i),a=e.match(n),o=s?s[1]:a?a[1]:null,l=/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/,r=/(?:https?:\/\/)?(?:www\.)?player.vimeo\.com/;return o&&(l.test(o)||r.test(o))?o:e},P=["chai-name","data-chai-name"],G={img:{alt:"alt",width:"width",height:"height",src:"image"},video:{src:"url",autoplay:"controls.autoPlay",muted:"controls.muted",loop:"controls.loop",controls:"controls.widgets"},a:{href:"link.href",target:"link.target",type:""},input:{placeholder:"placeholder",required:"required",type:"inputType",name:"fieldName"},textarea:{placeholder:"placeholder",required:"required",type:"inputType",name:"fieldName"},select:{placeholder:"placeholder",required:"required",multiple:"multiple",name:"fieldName"},form:{action:"action"}},Q=(e,i)=>e.children.length===1&&t.includes(["Heading","Paragraph","Span","ListItem","Button","Label","TableCell","Link","RichText"],i._type),_=e=>e.map(i=>i.type==="text"?t.get(i,"content",""):t.isEmpty(i.children)?"":_(i.children)).join(""),N=e=>e===null?"":e,M=e=>{const i=t.compact(t.map(e.split(/\s+/),t.trim)),n=t.find(i,r=>/^w-/.test(r)),s=t.find(i,r=>/^h-/.test(r));if(!s||!n)return{height:"",width:""};const a=r=>{if(!r)return;const u=r.match(/^[wh]-(?:\[(.*?)\]|(.+))$/);if(!u)return;if(u[1])return u[1];const g=u[2];return/^\d+(\.\d+)?$/.test(g)?`${Number(g)*4}px`:g==="auto"||t.includes(g,"%")?g:"16px"},o=a(n),l=a(s);return{width:t.includes(o,"px")?o:"16px",height:t.includes(l,"px")?l:"16px"}},D=e=>{if(e.tagName==="svg")return{};const i={},n=G[e.tagName]||{},s=e.attributes;return t.forEach(s,({key:a,value:o})=>{if(!t.includes(P,a))if(n[a]){if(e.tagName==="img"&&a==="src"&&!o.startsWith("http")){const l=t.find(e.attributes,{key:"width"}),r=t.find(e.attributes,{key:"height"});l&&r?o=`https://via.placeholder.com/${l==null?void 0:l.value}x${r==null?void 0:r.value}`:o="https://via.placeholder.com/150x150"}t.set(i,n[a],N(o))}else t.includes(["style","class","srcset"],a)||(t.has(i,"styles_attrs")||(i.styles_attrs={}),t.startsWith(a,"@")&&(a=a.replace("@","x-on:")),i.styles_attrs[`${a}`]=N(o))}),delete i.class,i},tt=(e,i="styles")=>{if(!e.attributes)return{[i]:`${h},`};const n=t.find(e.attributes,{key:"class"});if(n){const s=n.value;return{[i]:`${h},${s}`}}return{[i]:`${h},`}},et=e=>{const i=t.get(e,"attributes",[]),n=i.find(r=>r.key==="data-chai-richtext"||r.key==="chai-richtext"),s=i.find(r=>r.key==="data-chai-lightbox"||r.key==="chai-lightbox"),a=i.find(r=>r.key==="data-chai-dropdown"||r.key==="chai-dropdown"),o=i.find(r=>r.key==="data-chai-dropdown-button"||r.key==="chai-dropdown-button"),l=i.find(r=>r.key==="data-chai-dropdown-content"||r.key==="chai-dropdown-content");if(a)return{_type:"Dropdown"};if(o)return{_type:"DropdownButton"};if(l)return{_type:"DropdownContent"};if(n)return{_type:"RichText"};if(s)return{_type:"LightBoxLink"};switch(e.tagName){case"img":return{_type:"Image"};case"input":return{_type:"Input",showLabel:!1};case"hr":return{_type:"Divider"};case"br":return{_type:"LineBreak"};case"textarea":return{_type:"TextArea",showLabel:!1};case"audio":return{_type:"Audio"};case"canvas":return{_type:"Canvas"};case"video":case"iframe":return{_type:"CustomHTML"};case"svg":return{_type:"Icon"};case"select":return{_type:"Select",options:[]};case"option":return{_type:"Option"};case"ul":case"ol":case"dl":return{_type:"List",tag:e.tagName,_listType:e.tagName==="ol"?"list-decimal":"list-none"};case"li":case"dt":return{_type:"ListItem",tag:e.tagName};case"span":case"figcaption":case"legend":return{_type:"Span",tag:e.tagName};case"p":return{_type:"Paragraph",content:""};case"a":return{_type:"Link"};case"form":return{_type:"Form"};case"label":return{_type:"Label"};case"button":return{_type:"Button"};case"code":return{_type:"Box",_name:"Code"};case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return{_type:"Heading",tag:e.tagName};case"table":return{_type:"Table"};case"tr":return{_type:"TableRow"};case"td":case"th":return{_type:"TableCell",tag:e.tagName};case"thead":return{_type:"TableHead"};case"tbody":return{_type:"TableBody"};case"tfoot":return{_type:"TableFooter"};default:{const r=t.get(e,"children",[]).length>0?"Box":"EmptyBox";return{_type:r,tag:e.tagName,_name:r=="EmptyBox"||e.tagName==="div"?r:t.capitalize(e.tagName)}}}},H=(e,i=null)=>t.flatMapDeep(e,n=>{var T,B,E,w,v,$,C,I,S,L;if(n.type==="comment")return[];let s={_id:b.generateUUID()};if(i&&(s._parent=i.block._id),n.type==="text")return t.isEmpty(t.get(n,"content",""))?[]:i&&Q(i.node,i.block)?(t.set(i,"block.content",t.get(n,"content","")),[]):{...s,_type:"Text",content:t.get(n,"content","")};const a=t.get(n,"attributes",[]),o=a.find(c=>c.key==="data-chai-richtext"||c.key==="chai-richtext"),l=a.find(c=>c.key==="data-chai-lightbox"||c.key==="chai-lightbox"),r=a.find(c=>c.key==="data-chai-dropdown"||c.key==="chai-dropdown"),u=a.find(c=>c.key==="data-chai-dropdown-button"||c.key==="chai-dropdown-button"),g=a.find(c=>c.key==="data-chai-dropdown-content"||c.key==="chai-dropdown-content");if(s={...s,...et(n),...D(n),...tt(n)},n.attributes){const c=n.attributes.find(p=>t.includes(P,p.key));c&&(s._name=c.value)}if(o)return s.content=x.stringify(n.children),t.has(s,"styles_attrs.data-chai-richtext")&&delete s.styles_attrs["data-chai-richtext"],t.has(s,"styles_attrs.chai-richtext")&&delete s.styles_attrs["chai-richtext"],[s];if(l){const c=["data-chai-lightbox","chai-lightbox","data-vbtype","data-autoplay","data-maxwidth","data-overlay","data-gall","href"];s={...s,href:((T=a.find(p=>p.key==="href"))==null?void 0:T.value)||"",hrefType:((B=a.find(p=>p.key==="data-vbtype"))==null?void 0:B.value)||"video",autoplay:((E=a.find(p=>p.key==="data-autoplay"))==null?void 0:E.value)==="true"?"true":"false",maxWidth:((v=(w=a.find(p=>p.key==="data-maxwidth"))==null?void 0:w.value)==null?void 0:v.replace("px",""))||"",backdropColor:(($=a.find(p=>p.key==="data-overlay"))==null?void 0:$.value)||"",galleryName:((C=a.find(p=>p.key==="data-gall"))==null?void 0:C.value)||""},t.forEach(c,p=>{t.has(s,`styles_attrs.${p}`)&&delete s.styles_attrs[p]})}if(r&&(delete s.styles_attrs,s.showDropdown=!1),g&&delete s.styles_attrs,u){delete s.styles_attrs;const c=t.filter(n.children||[],d=>(d==null?void 0:d.tagName)!=="span");s.content=_(c);const p=t.find(n.children||[],d=>(d==null?void 0:d.tagName)==="span"&&t.some(d.children||[],y=>(y==null?void 0:y.tagName)==="svg"));if(p){const d=t.find(p.children||[],y=>(y==null?void 0:y.tagName)==="svg");if(d){s.icon=x.stringify([d]);const{height:y,width:f}=st(d,"16px","16px");s.iconHeight=y,s.iconWidth=f}}return[s]}if(s._type==="Input"){const c=s.inputType||"text";c==="checkbox"?t.set(s,"_type","Checkbox"):c==="radio"&&t.set(s,"_type","Radio")}else if(n.tagName==="video"||n.tagName==="iframe"){const c=x.stringify([n]);return X(c)&&(t.set(s,"_type","Video"),t.set(s,"url",Z(c)),t.set(s,"styles",`${h},`),t.set(s,"controls",{autoPlay:!1,muted:!0,loop:!1,controls:!1})),s.content=c,[s]}else if(n.tagName==="svg"){const c=t.get(t.find(n.attributes,{key:"class"}),"value",""),{height:p,width:d}=M(c);if(p&&d)s.styles=`${h}, ${b.cn(`w-${d} h-${p}`,c)}`.trim(),s.height=p==null?void 0:p.replace("px",""),s.width=d==null?void 0:d.replace("px","");else{const y=(I=t.find(n.attributes,{key:"height"}))==null?void 0:I.value,f=(S=t.find(n.attributes,{key:"width"}))==null?void 0:S.value;y&&f?(s.styles=`${h}, ${b.cn(`w-[${f}px] h-[${y}px]`,c)}`.trim(),s.height=y,s.width=f):s.styles=`${h}, ${b.cn("w-full h-full",c)}`.trim()}return n.attributes=t.filter(n.attributes,y=>!t.includes(["style","width","height","class"],y.key)),s.icon=x.stringify([n]),[s]}else if(n.tagName=="option"&&i&&((L=i.block)==null?void 0:L._type)==="Select")return i.block.options.push({label:_(n.children),...D(n)}),[];const m=H(n.children,{block:s,node:n});return[s,...m]}),st=(e,i,n)=>{var u,g;const s=t.get(e,"attributes",[]),{height:a,width:o}=M(t.get(t.find(s,{key:"class"}),"value",""));if(a&&o)return{height:`[${a}px]`,width:`[${o}px]`};const l=(u=t.find(s,{key:"height"}))==null?void 0:u.value,r=(g=t.find(s,{key:"width"}))==null?void 0:g.value;return{height:l?`[${l}px]`:n,width:r?`[${r}px]`:i}},nt=e=>{e=e.replace(/(\w+)=\\?"(.*?)\\?"/g,(s,a,o)=>{let l=o.replace(/\\"/g,'"');return l=l.replace(/{([^}]+)}/g,r=>r.replace(/"/g,'\\"')),`${a}="${l.replace(/\\"/g,'"')}"`}),e=e.replace(/\\n/g,"").replace(/\\\\/g,"").replace(/\\([/<>])/g,"$1").replace(/\\./g,"").replace(/[\n\r\t\f\v]/g,""),e=e.replace(/\$name="[^"]*"/g,"");const i=e.match(/<body[^>]*>[\s\S]*?<\/body>/);return(i&&i.length>0?i[0].replace(/<body/,"<div").replace(/<\/body>/,"</div>"):e).replace(/\s+/g," ").replaceAll("> <","><").replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").trim()},at=e=>{const i=x.parse(nt(e));return t.isEmpty(e)?[]:t.flatten(H(i))},rt=e=>{const i=t.last(e);return e.map(n=>{const s=Object.keys(n);for(let a=0;a<s.length;a++)if(t.isString(n[s[a]])&&t.startsWith(s[a],"content")){const o=n===i?"":" ";n[s[a]]=`${n[s[a]].trim()}${o}`}return n})},k=(e,i,{index:n,key:s})=>{if(t.isString(e)){let a=e;const o=/\{\{(.*?)\}\}/g,l=e.match(o);return l&&l.forEach(r=>{let u=r.slice(2,-2).trim(),g=s.slice(2,-2).trim();n!==-1&&t.startsWith(u,"$index.")?u=`${g}.${n}.${u.slice(7)}`:n!==-1&&t.startsWith(u,"$index")&&(u=`${g}.${n}`);const m=t.get(i,u);m===void 0?a=a.replace(r,""):a=t.isArray(m)?m:a.replace(r,m)}),a}if(t.isArray(e))return e.map(a=>k(a,i,{index:n,key:s}));if(e&&typeof e=="object"){const a={};return t.forEach(t.keys(e),o=>{!t.startsWith(o,"_")&&o!=="$repeaterItemsKey"?a[o]=k(e[o],i,{index:n,key:s}):a[o]=e[o]}),a}return e},ot=(e,i,{index:n,key:s})=>{let a=t.cloneDeep(e);return a.repeaterItems&&(a.$repeaterItemsKey=a.repeaterItems,t.startsWith(a.repeaterItems,`{{${A}`)&&(a.$repeaterItemsKey=a.repeaterItems=`${a.repeaterItems.replace("}}",`/${a._id}}}`)}`),!t.isEmpty(a.repeaterItems)&&a.pagination&&(a.repeaterTotalItems=`${a.repeaterItems.replace("}}",`/${a._id}/totalItems}}`)}`)),k(a,i,{index:n,key:s})};exports.COLLECTION_PREFIX=A;exports.REPEATER_PREFIX=V;exports.ROOT_TEMP_KEY=O;exports.STYLES_KEY=h;exports.adjustSpacingInContentBlocks=rt;exports.applyBindingToBlockProps=ot;exports.applyChaiDataBinding=U;exports.applyLanguage=W;exports.applyLimit=K;exports.getBlockRuntimeProps=Y;exports.getBlockTagAttributes=J;exports.getBlocksFromHTML=at;exports.getSplitChaiClasses=R;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("./core.cjs");require("lodash-es");require("clsx");require("tailwind-merge");require("tree-model");const i=require("react");require("jotai");require("@chaibuilder/runtime");require("sonner");const k=require("react-i18next"),r=require("./toggle-Ca6BayTf.cjs"),q=require("@react-hookz/web"),m=n=>{const s=document.createElement("div");return s.innerHTML=n,s.innerHTML};function j(){const{t:n}=k.useTranslation(),[s,h]=i.useState(!1),[a,p]=i.useState(""),[t,d]=c.useCodeEditor(),[u]=c.useSelectedBlockIds(),b=c.useUpdateBlocksProps(),f=c.useUpdateBlocksPropsRealtime(),C=q.useThrottledCallback(o=>{const l=m(o);f([t.blockId],{[t.blockProp]:l})},[],300),x=i.useCallback(()=>{if(s){const o=m(a);b([t.blockId],{[t.blockProp]:o})}},[s,a]);i.useEffect(()=>{u.includes(t==null?void 0:t.blockId)||(x(),d(null))},[u]);const g=()=>{x(),d(null)};return e.jsx(r.Dialog,{open:!0,onOpenChange:g,children:e.jsxs(r.DialogContent,{className:"flex max-h-[400px] min-h-[200px] max-w-4xl flex-col border-gray-700 text-black",children:[e.jsx(r.DialogHeader,{className:"shrink-0 border-b border-gray-700 pb-3",children:e.jsx(r.DialogTitle,{className:"flex items-center justify-between text-black",children:e.jsxs("div",{className:"space-x-3 text-sm font-semibold",children:[e.jsx("span",{children:n("HTML Code Editor |")}),e.jsx("span",{className:"text-xs text-gray-400",children:n("Scripts will be only executed in preview and live mode.")})]})})}),e.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:e.jsx(r.Textarea,{className:"h-full w-full resize-none font-mono text-xs",value:a||t.initialCode,onChange:o=>{const l=o.target.value;h(!0),p(l),C(l)},rows:10,placeholder:"Enter your code here..."})})]})})}exports.default=j;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),w=require("react"),i=require("./toggle-Ca6BayTf.cjs"),T=require("culori"),V=require("@chaibuilder/runtime"),N=require("react-i18next");function $(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const S=$(w),y=$(T),f=e=>e?e%1===0?e:e.toFixed(4):"0",R=e=>`hsl(${f(e.h)} ${f(e.s*100)}% ${f(e.l*100)}%)`,E=(e,o="hsl",t="4")=>{try{const r=y.parse(e);if(!r)throw new Error("Invalid color input");switch(o){case"hsl":{const s=y.converter("hsl")(r);return t==="4"?R(s):`${f(s.h)} ${f(s.s*100)}% ${f(s.l*100)}%`}case"rgb":return y.formatRgb(r);case"oklch":{const s=y.converter("oklch")(r);return`oklch(${f(s.l)} ${f(s.c)} ${f(s.h)})`}case"hex":return y.formatHex(r);default:return e}}catch(r){return console.error(`Failed to convert color: ${e}`,r),e}},b=e=>E(e,"hex"),I=e=>{const o={fontFamily:{heading:"",body:""},borderRadius:"",colors:{}};try{const t=F(e);if(!t.isValid)return console.warn("CSS validation failed:",t.error),k();const r=C(e,":root"),s=C(e,".dark"),c=m(r,"--font-sans")||m(r,"--font-family")||m(r,"--font-heading")||m(r,"--font-body"),a=D(c);o.fontFamily={heading:a,body:a};const u=m(r,"--radius")||m(r,"--border-radius")||"0.5rem";o.borderRadius=P(u),["background","foreground","primary","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","accent","accent-foreground","destructive","destructive-foreground","border","input","ring","card","card-foreground","popover","popover-foreground"].forEach(l=>{const p=m(r,`--${l}`),g=m(s,`--${l}`);if(p||g){const d=p?v(p):"#000000",x=g?v(g):d;o.colors[l]=[d,x]}})}catch(t){return console.error("Error parsing CSS to ChaiThemeValues:",t),k()}return o},C=(e,o)=>{var r,s;const t=new RegExp(`${j(o)}\\s*{([^}]+)}`);return((s=(r=e.match(t))==null?void 0:r[1])==null?void 0:s.trim())||null},m=(e,o)=>{var s;if(!e)return null;const t=new RegExp(`${j(o)}\\s*:\\s*([^;]+)`),r=e.match(t);return((s=r==null?void 0:r[1])==null?void 0:s.trim())||null},v=e=>{if(!e||typeof e!="string")return"#000000";try{const o=e.replace(/var\([^)]+\)/g,"").trim();if(!o)return"#000000";if(/^[a-z]+$/i.test(o))return b(o)||"#000000";if(/^#?([0-9A-F]{3,4}|[0-9A-F]{6}|[0-9A-F]{8})$/i.test(o.replace(/#/g,""))){const r=o.startsWith("#")?o:`#${o}`;return r.length<=5?`#${r.slice(1).split("").map(s=>s+s).join("")}`.slice(0,7):r.length>7?r.slice(0,7):r}if(/^(rgb|hsl|oklch)a?\(/i.test(o))return b(o)||"#000000";const t=o.match(/^(\d+\.?\d*)\s+(\d+\.?\d*)%\s+(\d+\.?\d*)%$/);if(t){const[r,s,c,a]=t,u=`hsl(${s} ${c}% ${a}%)`;return b(u)||"#000000"}if(/^[\d.]+[\s,]+[\d.]+[\s,]+[\d.]+(?:[\s,/]+[\d.]+)?$/.test(o)){const r=o.split(/[\s,]+/).filter(Boolean);if(r.length>=3){const c=r.some(a=>a.includes("%"))?`hsl(${r[0]} ${r[1]} ${r[2]})`:`rgb(${r[0]}, ${r[1]}, ${r[2]})`;return b(c)||"#000000"}}return b(o)||"#000000"}catch(o){return console.warn("Failed to process color:",e,o),"#000000"}},D=e=>{const o=V.getAllRegisteredFonts();if(!e)return"ui-sans-serif, system-ui, sans-serif";try{const r=e.replace(/["']/g,"").trim().split(",")[0].trim(),s=o.find(c=>c.family.toLowerCase()===r.toLowerCase());return(s==null?void 0:s.family)||"ui-sans-serif, system-ui, sans-serif"}catch(t){return console.warn("Error processing font family:",e,t),"ui-sans-serif, system-ui, sans-serif"}},P=e=>{if(!e)return"8px";try{const o=e.trim();if(o.endsWith("px"))return o;if(o.endsWith("rem")){const r=parseFloat(o.replace("rem",""));if(!isNaN(r))return`${Math.round(r*16)}px`}if(o.endsWith("em")){const r=parseFloat(o.replace("em",""));if(!isNaN(r))return`${Math.round(r*16)}px`}const t=parseFloat(o);return isNaN(t)?"8px":`${Math.round(t)}px`}catch(o){return console.warn("Error converting border radius to px:",e,o),"8px"}},k=()=>({fontFamily:{heading:"ui-sans-serif, system-ui, sans-serif",body:"ui-sans-serif, system-ui, sans-serif"},borderRadius:"8px",colors:{background:["#ffffff","#000000"],foreground:["#000000","#ffffff"],primary:["#3b82f6","#60a5fa"],"primary-foreground":["#ffffff","#1e293b"],secondary:["#f1f5f9","#334155"],"secondary-foreground":["#0f172a","#f8fafc"],muted:["#f8fafc","#1e293b"],"muted-foreground":["#64748b","#94a3b8"],accent:["#f1f5f9","#334155"],"accent-foreground":["#0f172a","#f8fafc"],destructive:["#ef4444","#f87171"],"destructive-foreground":["#ffffff","#1e293b"],border:["#e2e8f0","#475569"],input:["#e2e8f0","#475569"],ring:["#3b82f6","#60a5fa"],card:["#ffffff","#0f172a"],"card-foreground":["#000000","#f8fafc"],popover:["#ffffff","#0f172a"],"popover-foreground":["#000000","#f8fafc"]}}),j=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),q=e=>["background","foreground","primary","primary-foreground"].every(r=>e.colors[r]&&Array.isArray(e.colors[r])&&e.colors[r].length>=2)&&!!e.fontFamily.heading&&!!e.fontFamily.body&&!!e.borderRadius,F=e=>{if(!e||typeof e!="string")return{isValid:!1,error:"Please enter valid CSS content"};const o=e.trim();if(!o)return{isValid:!1,error:"Please enter CSS content"};try{if(!o.includes("{")||!o.includes("}"))return{isValid:!1,error:"Invalid CSS format. CSS should contain proper block structure with { }"};const t=(o.match(/{/g)||[]).length,r=(o.match(/}/g)||[]).length;return t!==r?{isValid:!1,error:"Invalid CSS format. Unmatched braces detected"}:!o.includes("--")||!o.includes(":")?{isValid:!1,error:"Invalid CSS format. CSS should contain variable definitions like --primary: #color"}:!o.includes(":root")&&!o.includes(".dark")?{isValid:!1,error:"CSS should contain at least :root or .dark selector with theme variables"}:{isValid:!0}}catch(t){return console.error("CSS validation error:",t),{isValid:!1,error:"Failed to parse CSS. Please check your syntax."}}},M=`:root {
|
|
2
|
-
--background: 0 0% 100%;
|
|
3
|
-
--foreground: oklch(0.52 0.13 144.17);
|
|
4
|
-
--primary: #3e2723;
|
|
5
|
-
--primary-foreground: #ffffff;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.dark {
|
|
9
|
-
--background: 222.2 84% 4.9%;
|
|
10
|
-
--foreground: hsl(37.50 36.36% 95.69%);
|
|
11
|
-
--primary: rgb(46, 125, 50);
|
|
12
|
-
--primary-foreground: #ffffff;
|
|
13
|
-
}`,_=({open:e,onOpenChange:o,onImport:t})=>{const[r,s]=S.useState(""),[c,a]=S.useState(null),[u,h]=S.useState(!1),{t:l}=N.useTranslation(),p=async()=>{h(!0),a(null);try{const d=F(r);if(!d.isValid){a(d.error||"Invalid CSS format"),setTimeout(()=>{a(null)},5e3),h(!1);return}const x=I(r);if(!q(x)){a("The CSS doesn't contain enough theme information. Please ensure it includes at least background, foreground, primary, and primary-foreground colors."),setTimeout(()=>{a(null)},5e3),h(!1);return}t(x),s(""),a(null),o(!1)}catch(d){console.error("Error importing CSS:",d),a("Failed to parse CSS. Please check your syntax and try again."),setTimeout(()=>{a(null)},5e3)}finally{h(!1)}},g=()=>{s(""),a(null),o(!1)};return n.jsx(i.Dialog,{open:e,onOpenChange:o,children:n.jsxs(i.DialogContent,{className:"flex max-h-[80vh] max-w-2xl flex-col",children:[n.jsxs(i.DialogHeader,{children:[n.jsx(i.DialogTitle,{children:l("Import CSS Theme")}),n.jsxs(i.DialogDescription,{className:"space-y-2",children:[n.jsx("p",{children:l("Paste your CSS variables to import a custom theme. The CSS should contain :root and .dark blocks with CSS custom properties.")}),n.jsxs("div",{className:"flex items-center",children:[n.jsx("p",{className:"font-bold",children:"Get theme resources:"}),n.jsx(i.Button,{variant:"link",size:"sm",onClick:()=>window.open("https://tweakcn.com/","_blank"),children:"TweakCN"}),n.jsx(i.Button,{variant:"link",size:"sm",onClick:()=>window.open("https://ui.shadcn.com/themes#themes","_blank"),children:"shadcn/ui Themes"}),n.jsx(i.Button,{variant:"link",size:"sm",onClick:()=>window.open("https://zippystarter.com/tools/shadcn-ui-theme-generator","_blank"),children:"ZippyStarter"})]})]})]}),n.jsxs("div",{className:"flex-1 space-y-4 overflow-hidden",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(i.Label,{htmlFor:"css-input",children:l("CSS Variables")}),n.jsx(i.Textarea,{id:"css-input",placeholder:M,value:r,onChange:d=>s(d.target.value),className:"min-h-[300px] resize-none font-mono text-sm",disabled:u})]}),c&&n.jsx("div",{className:"rounded-md border border-red-200 bg-red-50 p-3",children:n.jsx("p",{className:"text-sm text-red-600",children:c})})]}),n.jsxs(i.DialogFooter,{className:"gap-2",children:[n.jsx(i.Button,{variant:"outline",onClick:g,disabled:u,children:l("Cancel")}),n.jsx(i.Button,{onClick:p,disabled:!r.trim()||u,children:l(u?"Importing...":"Import Theme")})]})]})})};exports.CssImportModal=_;
|
package/dist/toggle-Ca6BayTf.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),ft=require("@radix-ui/react-dropdown-menu"),f=require("@radix-ui/react-icons"),gt=require("react"),N=require("class-variance-authority"),g=require("cmdk"),xt=require("@radix-ui/react-dialog"),bt=require("@radix-ui/react-popover"),ht=require("@radix-ui/react-tooltip"),vt=require("@radix-ui/react-accordion"),yt=require("@radix-ui/react-alert-dialog"),Nt=require("@radix-ui/react-slot"),wt=require("@radix-ui/react-avatar"),Ct=require("@radix-ui/react-context-menu"),jt=require("@radix-ui/react-hover-card"),St=require("@radix-ui/react-label"),Rt=require("@radix-ui/react-scroll-area"),Dt=require("@radix-ui/react-select"),Tt=require("@radix-ui/react-separator"),kt=require("@radix-ui/react-slider"),It=require("@radix-ui/react-switch"),_t=require("@radix-ui/react-tabs"),Mt=require("@radix-ui/react-toggle"),At=require("clsx"),Pt=require("tailwind-merge");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const d=p(ft),s=p(gt),i=p(xt),v=p(bt),y=p(ht),b=p(vt),u=p(yt),w=p(wt),l=p(Ct),j=p(jt),z=p(St),x=p(Rt),c=p(Dt),q=p(Tt),C=p(kt),R=p(It),h=p(_t),L=p(Mt);function r(...e){return Pt.twMerge(At.clsx(e))}const S=N.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),H=s.forwardRef(({className:e,variant:t,size:a,asChild:n=!1,...m},pt)=>{const ut=n?Nt.Slot:"button";return o.jsx(ut,{className:r(S({variant:t,size:a,className:e})),ref:pt,...m})});H.displayName="Button";const zt=d.Root,qt=d.Trigger,Lt=d.Group,Ht=d.Portal,Gt=d.Sub,Vt=d.RadioGroup,G=s.forwardRef(({className:e,inset:t,children:a,...n},m)=>o.jsxs(d.SubTrigger,{ref:m,className:r("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[a,o.jsx(f.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));G.displayName=d.SubTrigger.displayName;const V=s.forwardRef(({className:e,...t},a)=>o.jsx(d.SubContent,{ref:a,className:r("z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));V.displayName=d.SubContent.displayName;const O=s.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(d.Portal,{children:o.jsx(d.Content,{ref:n,sideOffset:t,className:r("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","origin-[--radix-dropdown-menu-content-transform-origin] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));O.displayName=d.Content.displayName;const F=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(d.Item,{ref:n,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));F.displayName=d.Item.displayName;const B=s.forwardRef(({className:e,children:t,checked:a,...n},m)=>o.jsxs(d.CheckboxItem,{ref:m,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(d.ItemIndicator,{children:o.jsx(f.CheckIcon,{className:"h-4 w-4"})})}),t]}));B.displayName=d.CheckboxItem.displayName;const U=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(d.RadioItem,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(d.ItemIndicator,{children:o.jsx(f.CircleIcon,{className:"h-2 w-2 fill-current"})})}),t]}));U.displayName=d.RadioItem.displayName;const E=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(d.Label,{ref:n,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));E.displayName=d.Label.displayName;const J=s.forwardRef(({className:e,...t},a)=>o.jsx(d.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));J.displayName=d.Separator.displayName;const K=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...t});K.displayName="DropdownMenuShortcut";const Ot=N.cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Q=s.forwardRef(({className:e,variant:t,...a},n)=>o.jsx("div",{ref:n,role:"alert",className:r(Ot({variant:t}),e),...a}));Q.displayName="Alert";const W=s.forwardRef(({className:e,...t},a)=>o.jsx("h5",{ref:a,className:r("mb-1 font-medium leading-none tracking-tight",e),...t}));W.displayName="AlertTitle";const X=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("text-sm [&_p]:leading-relaxed",e),...t}));X.displayName="AlertDescription";const Y=s.forwardRef(({className:e,type:t,...a},n)=>o.jsx("input",{type:t,className:r("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...a}));Y.displayName="Input";const Z=i.Root,Ft=i.Trigger,$=i.Portal,Bt=i.Close,D=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Overlay,{ref:a,className:r("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));D.displayName=i.Overlay.displayName;const T=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs($,{children:[o.jsx(D,{}),o.jsxs(i.Content,{ref:n,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,o.jsxs(i.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[o.jsx(f.Cross1Icon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));T.displayName=i.Content.displayName;const ee=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ee.displayName="DialogHeader";const te=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});te.displayName="DialogFooter";const ae=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Title,{ref:a,className:r("text-lg font-semibold leading-none tracking-tight",e),...t}));ae.displayName=i.Title.displayName;const oe=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));oe.displayName=i.Description.displayName;const k=s.forwardRef(({className:e,...t},a)=>o.jsx(g.Command,{ref:a,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));k.displayName=g.Command.displayName;const Ut=({children:e,...t})=>o.jsx(Z,{...t,children:o.jsx(T,{className:"overflow-hidden p-0",children:o.jsx(k,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),re=s.forwardRef(({className:e,...t},a)=>o.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[o.jsx(f.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),o.jsx(g.Command.Input,{ref:a,className:r("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));re.displayName=g.Command.Input.displayName;const se=s.forwardRef(({className:e,...t},a)=>o.jsx(g.Command.List,{ref:a,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));se.displayName=g.Command.List.displayName;const ne=s.forwardRef((e,t)=>o.jsx(g.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));ne.displayName=g.Command.Empty.displayName;const ie=s.forwardRef(({className:e,...t},a)=>o.jsx(g.Command.Group,{ref:a,className:r("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));ie.displayName=g.Command.Group.displayName;const de=s.forwardRef(({className:e,...t},a)=>o.jsx(g.Command.Separator,{ref:a,className:r("-mx-1 h-px bg-border",e),...t}));de.displayName=g.Command.Separator.displayName;const le=s.forwardRef(({className:e,...t},a)=>o.jsx(g.Command.Item,{ref:a,className:r("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));le.displayName=g.Command.Item.displayName;const ce=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});ce.displayName="CommandShortcut";const Et=v.Root,Jt=v.Trigger,Kt=v.Anchor,me=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},m)=>o.jsx(v.Portal,{children:o.jsx(v.Content,{ref:m,align:t,sideOffset:a,className:r("z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));me.displayName=v.Content.displayName;const Qt=y.Provider,Wt=y.Root,Xt=y.Trigger,pe=s.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(y.Portal,{children:o.jsx(y.Content,{ref:n,sideOffset:t,className:r("z-50 origin-[--radix-tooltip-content-transform-origin] overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));pe.displayName=y.Content.displayName;const Yt=b.Root,ue=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Item,{ref:a,className:r("border-b",e),...t}));ue.displayName="AccordionItem";const fe=s.forwardRef(({className:e,children:t,...a},n)=>o.jsx(b.Header,{className:"flex",children:o.jsxs(b.Trigger,{ref:n,className:r("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...a,children:[t,o.jsx(f.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));fe.displayName=b.Trigger.displayName;const ge=s.forwardRef(({className:e,children:t,...a},n)=>o.jsx(b.Content,{ref:n,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:o.jsx("div",{className:r("pb-4 pt-0",e),children:t})}));ge.displayName=b.Content.displayName;const Zt=u.Root,$t=u.Trigger,xe=u.Portal,I=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Overlay,{className:r("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));I.displayName=u.Overlay.displayName;const be=s.forwardRef(({className:e,...t},a)=>o.jsxs(xe,{children:[o.jsx(I,{}),o.jsx(u.Content,{ref:a,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));be.displayName=u.Content.displayName;const he=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});he.displayName="AlertDialogHeader";const ve=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ve.displayName="AlertDialogFooter";const ye=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Title,{ref:a,className:r("text-lg font-semibold",e),...t}));ye.displayName=u.Title.displayName;const Ne=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));Ne.displayName=u.Description.displayName;const we=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Action,{ref:a,className:r(S(),e),...t}));we.displayName=u.Action.displayName;const Ce=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Cancel,{ref:a,className:r(S({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Ce.displayName=u.Cancel.displayName;const je=s.forwardRef(({className:e,...t},a)=>o.jsx(w.Root,{ref:a,className:r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));je.displayName=w.Root.displayName;const Se=s.forwardRef(({className:e,...t},a)=>o.jsx(w.Image,{ref:a,className:r("aspect-square h-full w-full",e),...t}));Se.displayName=w.Image.displayName;const Re=s.forwardRef(({className:e,...t},a)=>o.jsx(w.Fallback,{ref:a,className:r("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Re.displayName=w.Fallback.displayName;const De=N.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ea({className:e,variant:t,...a}){return o.jsx("div",{className:r(De({variant:t}),e),...a})}const Te=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Te.displayName="Card";const ke=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("flex flex-col space-y-1.5 p-6",e),...t}));ke.displayName="CardHeader";const Ie=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("font-semibold leading-none tracking-tight",e),...t}));Ie.displayName="CardTitle";const _e=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("text-sm text-muted-foreground",e),...t}));_e.displayName="CardDescription";const Me=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("p-6 pt-0",e),...t}));Me.displayName="CardContent";const Ae=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("flex items-center p-6 pt-0",e),...t}));Ae.displayName="CardFooter";const ta=l.Root,aa=l.Trigger,oa=l.Group,ra=l.Portal,sa=l.Sub,na=l.RadioGroup,Pe=s.forwardRef(({className:e,inset:t,children:a,...n},m)=>o.jsxs(l.SubTrigger,{ref:m,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...n,children:[a,o.jsx(f.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));Pe.displayName=l.SubTrigger.displayName;const ze=s.forwardRef(({className:e,...t},a)=>o.jsx(l.SubContent,{ref:a,className:r("z-50 min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));ze.displayName=l.SubContent.displayName;const qe=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Portal,{children:o.jsx(l.Content,{ref:a,className:r("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));qe.displayName=l.Content.displayName;const Le=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(l.Item,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));Le.displayName=l.Item.displayName;const He=s.forwardRef(({className:e,children:t,checked:a,...n},m)=>o.jsxs(l.CheckboxItem,{ref:m,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(l.ItemIndicator,{children:o.jsx(f.CheckIcon,{className:"h-4 w-4"})})}),t]}));He.displayName=l.CheckboxItem.displayName;const Ge=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(l.RadioItem,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(l.ItemIndicator,{children:o.jsx(f.CircleIcon,{className:"h-2 w-2 fill-current"})})}),t]}));Ge.displayName=l.RadioItem.displayName;const Ve=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(l.Label,{ref:n,className:r("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...a}));Ve.displayName=l.Label.displayName;const Oe=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-border",e),...t}));Oe.displayName=l.Separator.displayName;const Fe=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Fe.displayName="ContextMenuShortcut";const ia=j.Root,da=j.Trigger,Be=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},m)=>o.jsx(j.Content,{ref:m,align:t,sideOffset:a,className:r("z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Be.displayName=j.Content.displayName;const la=N.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ue=s.forwardRef(({className:e,...t},a)=>o.jsx(z.Root,{ref:a,className:r(la(),e),...t}));Ue.displayName=z.Root.displayName;const Ee=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(x.Root,{ref:n,className:r("relative overflow-hidden",e),...a,children:[o.jsx(x.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(_,{}),o.jsx(x.Corner,{})]}));Ee.displayName=x.Root.displayName;const _=s.forwardRef(({className:e,orientation:t="vertical",...a},n)=>o.jsx(x.ScrollAreaScrollbar,{ref:n,orientation:t,className:r("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:o.jsx(x.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));_.displayName=x.ScrollAreaScrollbar.displayName;const ca=c.Root,ma=c.Group,pa=c.Value,Je=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(c.Trigger,{ref:n,className:r("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1",e),...a,children:[t,o.jsx(c.Icon,{asChild:!0,children:o.jsx(f.ChevronDownIcon,{className:"h-4 w-4 opacity-50"})})]}));Je.displayName=c.Trigger.displayName;const M=s.forwardRef(({className:e,...t},a)=>o.jsx(c.ScrollUpButton,{ref:a,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(f.ChevronUpIcon,{className:"h-4 w-4"})}));M.displayName=c.ScrollUpButton.displayName;const A=s.forwardRef(({className:e,...t},a)=>o.jsx(c.ScrollDownButton,{ref:a,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(f.ChevronDownIcon,{className:"h-4 w-4"})}));A.displayName=c.ScrollDownButton.displayName;const Ke=s.forwardRef(({className:e,children:t,position:a="popper",...n},m)=>o.jsx(c.Portal,{children:o.jsxs(c.Content,{ref:m,className:r("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...n,children:[o.jsx(M,{}),o.jsx(c.Viewport,{className:r("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),o.jsx(A,{})]})}));Ke.displayName=c.Content.displayName;const Qe=s.forwardRef(({className:e,...t},a)=>o.jsx(c.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",e),...t}));Qe.displayName=c.Label.displayName;const We=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(c.Item,{ref:n,className:r("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[o.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(c.ItemIndicator,{children:o.jsx(f.CheckIcon,{className:"h-4 w-4"})})}),o.jsx(c.ItemText,{children:t})]}));We.displayName=c.Item.displayName;const Xe=s.forwardRef(({className:e,...t},a)=>o.jsx(c.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));Xe.displayName=c.Separator.displayName;const Ye=s.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...n},m)=>o.jsx(q.Root,{ref:m,decorative:a,orientation:t,className:r("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Ye.displayName=q.Root.displayName;const ua=i.Root,fa=i.Trigger,ga=i.Close,Ze=i.Portal,P=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Overlay,{className:r("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));P.displayName=i.Overlay.displayName;const xa=N.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),$e=s.forwardRef(({side:e="right",className:t,children:a,...n},m)=>o.jsxs(Ze,{children:[o.jsx(P,{}),o.jsxs(i.Content,{ref:m,className:r(xa({side:e}),t),...n,children:[o.jsxs(i.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[o.jsx(f.Cross1Icon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),a]})]}));$e.displayName=i.Content.displayName;const et=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});et.displayName="SheetHeader";const tt=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});tt.displayName="SheetFooter";const at=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Title,{ref:a,className:r("text-lg font-semibold text-foreground",e),...t}));at.displayName=i.Title.displayName;const ot=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));ot.displayName=i.Description.displayName;function ba({className:e,...t}){return o.jsx("div",{className:r("animate-pulse rounded-md bg-primary/10",e),...t})}const rt=s.forwardRef(({className:e,...t},a)=>o.jsxs(C.Root,{ref:a,className:r("relative flex w-full touch-none select-none items-center",e),...t,children:[o.jsx(C.Track,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-neutral-300",children:o.jsx(C.Range,{className:"absolute h-full bg-neutral-900"})}),o.jsx(C.Thumb,{className:"block h-4 w-4 rounded-full border border-neutral-900 bg-neutral-900 shadow transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-900 disabled:pointer-events-none disabled:opacity-50"})]}));rt.displayName=C.Root.displayName;const st=s.forwardRef(({className:e,thumbClassName:t,...a},n)=>o.jsx(R.Root,{className:r("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...a,ref:n,children:o.jsx(R.Thumb,{className:r("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform",t,"data-[state=checked]:translate-x-3 data-[state=unchecked]:translate-x-0")})}));st.displayName=R.Root.displayName;const ha=h.Root,nt=s.forwardRef(({className:e,...t},a)=>o.jsx(h.List,{ref:a,className:r("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));nt.displayName=h.List.displayName;const it=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Trigger,{ref:a,className:r("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));it.displayName=h.Trigger.displayName;const dt=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Content,{ref:a,className:r("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));dt.displayName=h.Content.displayName;const lt=s.forwardRef(({className:e,...t},a)=>o.jsx("textarea",{className:r("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:a,...t}));lt.displayName="Textarea";const ct=N.cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),mt=s.forwardRef(({className:e,variant:t,size:a,...n},m)=>o.jsx(L.Root,{ref:m,className:r(ct({variant:t,size:a,className:e})),...n}));mt.displayName=L.Root.displayName;exports.Accordion=Yt;exports.AccordionContent=ge;exports.AccordionItem=ue;exports.AccordionTrigger=fe;exports.Alert=Q;exports.AlertDescription=X;exports.AlertDialog=Zt;exports.AlertDialogAction=we;exports.AlertDialogCancel=Ce;exports.AlertDialogContent=be;exports.AlertDialogDescription=Ne;exports.AlertDialogFooter=ve;exports.AlertDialogHeader=he;exports.AlertDialogOverlay=I;exports.AlertDialogPortal=xe;exports.AlertDialogTitle=ye;exports.AlertDialogTrigger=$t;exports.AlertTitle=W;exports.Avatar=je;exports.AvatarFallback=Re;exports.AvatarImage=Se;exports.Badge=ea;exports.Button=H;exports.Card=Te;exports.CardContent=Me;exports.CardDescription=_e;exports.CardFooter=Ae;exports.CardHeader=ke;exports.CardTitle=Ie;exports.Command=k;exports.CommandDialog=Ut;exports.CommandEmpty=ne;exports.CommandGroup=ie;exports.CommandInput=re;exports.CommandItem=le;exports.CommandList=se;exports.CommandSeparator=de;exports.CommandShortcut=ce;exports.ContextMenu=ta;exports.ContextMenuCheckboxItem=He;exports.ContextMenuContent=qe;exports.ContextMenuGroup=oa;exports.ContextMenuItem=Le;exports.ContextMenuLabel=Ve;exports.ContextMenuPortal=ra;exports.ContextMenuRadioGroup=na;exports.ContextMenuRadioItem=Ge;exports.ContextMenuSeparator=Oe;exports.ContextMenuShortcut=Fe;exports.ContextMenuSub=sa;exports.ContextMenuSubContent=ze;exports.ContextMenuSubTrigger=Pe;exports.ContextMenuTrigger=aa;exports.Dialog=Z;exports.DialogClose=Bt;exports.DialogContent=T;exports.DialogDescription=oe;exports.DialogFooter=te;exports.DialogHeader=ee;exports.DialogOverlay=D;exports.DialogPortal=$;exports.DialogTitle=ae;exports.DialogTrigger=Ft;exports.DropdownMenu=zt;exports.DropdownMenuCheckboxItem=B;exports.DropdownMenuContent=O;exports.DropdownMenuGroup=Lt;exports.DropdownMenuItem=F;exports.DropdownMenuLabel=E;exports.DropdownMenuPortal=Ht;exports.DropdownMenuRadioGroup=Vt;exports.DropdownMenuRadioItem=U;exports.DropdownMenuSeparator=J;exports.DropdownMenuShortcut=K;exports.DropdownMenuSub=Gt;exports.DropdownMenuSubContent=V;exports.DropdownMenuSubTrigger=G;exports.DropdownMenuTrigger=qt;exports.HoverCard=ia;exports.HoverCardContent=Be;exports.HoverCardTrigger=da;exports.Input=Y;exports.Label=Ue;exports.Popover=Et;exports.PopoverAnchor=Kt;exports.PopoverContent=me;exports.PopoverTrigger=Jt;exports.ScrollArea=Ee;exports.ScrollBar=_;exports.Select=ca;exports.SelectContent=Ke;exports.SelectGroup=ma;exports.SelectItem=We;exports.SelectLabel=Qe;exports.SelectScrollDownButton=A;exports.SelectScrollUpButton=M;exports.SelectSeparator=Xe;exports.SelectTrigger=Je;exports.SelectValue=pa;exports.Separator=Ye;exports.Sheet=ua;exports.SheetClose=ga;exports.SheetContent=$e;exports.SheetDescription=ot;exports.SheetFooter=tt;exports.SheetHeader=et;exports.SheetOverlay=P;exports.SheetPortal=Ze;exports.SheetTitle=at;exports.SheetTrigger=fa;exports.Skeleton=ba;exports.Slider=rt;exports.Switch=st;exports.Tabs=ha;exports.TabsContent=dt;exports.TabsList=nt;exports.TabsTrigger=it;exports.Textarea=lt;exports.Toggle=mt;exports.Tooltip=Wt;exports.TooltipContent=pe;exports.TooltipProvider=Qt;exports.TooltipTrigger=Xt;exports.badgeVariants=De;exports.buttonVariants=S;exports.cn=r;exports.toggleVariants=ct;
|