@onu-ui/preset
Advanced tools
Comparing version 1.0.13-beta.1 to 1.0.13-beta.2
@@ -6,2 +6,2 @@ "use strict";var v=Object.defineProperty;var io=Object.getOwnPropertyDescriptor;var lo=Object.getOwnPropertyNames;var uo=Object.prototype.hasOwnProperty;var po=(o,e)=>{for(var t in e)v(o,t,{get:e[t],enumerable:!0})},ho=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of lo(e))!uo.call(o,n)&&n!==t&&v(o,n,{get:()=>e[n],enumerable:!(r=io(e,n))||r.enumerable});return o};var fo=o=>ho(v({},"__esModule",{value:!0}),o);var Jo={};po(Jo,{darkTheme:()=>Yo,getCSSPreflights:()=>Ko,lightTheme:()=>qo,presetOnu:()=>Xo});module.exports=fo(Jo);var C={"o-border-base":"border-gray-400/50","o-transition":"transition-all duration-200","o-focus-base":"ring-2 ring-context/50","o-active-base":"ring-3 ring-context/10","o-borderless":"!border-none !shadow-none","o-solid":"bg-context border-context c-white","o-transparent":"bg-light-100 dark:bg-lightBackground c-baseText","o-light":"shadow-transparent bg-context:12 !hover-bg-context border-context c-context !hover-c-white !active-c-white !hover-border-context !active-border-context:64 !active-bg-context:64","o-light-simple":"shadow-transparent bg-context:12 border-context c-context","o-text":`!shadow-transparent !bg-transparent !hover-bg-context:32 !active-bg-context:12 | ||
80%{ box-shadow: 0 0 0 6px #1890ff1a; } | ||
100%{ box-shadow: 0 0 0 8px #1890ff0d; }}`},durations:{switching:"0.3s"}}};function G(o){return o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function q(o){let e=o.length,t=-1,r,n="",s=o.charCodeAt(0);for(;++t<e;){if(r=o.charCodeAt(t),r===0){n+="\uFFFD";continue}if(r===44){n+="\\,";continue}if(r>=1&&r<=31||r===127||t===0&&r>=48&&r<=57||t===1&&r>=48&&r<=57&&s===45){n+=`\\${r.toString(16)} `;continue}if(t===0&&e===1&&r===45){n+=`\\${o.charAt(t)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){n+=o.charAt(t);continue}n+=`\\${o.charAt(t)}`}return n}function Y(o){return typeof o=="string"}function K(o){let e=function(r){let n=this.__options?.sequence||[];this.__options.sequence=[];for(let s of n){let c=o[s](r);if(c!=null)return c}};function t(r,n){return r.__options||(r.__options={sequence:[]}),r.__options.sequence.push(n),r}for(let r of Object.keys(o))Object.defineProperty(e,r,{enumerable:!0,get(){return t(this,r)}});return e}var go="default",mo="preflights",bo="shortcuts",je={[mo]:-100,[bo]:-10,[go]:0};var J={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},xo={...J,s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]};var X=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],yo=Object.assign({},...X.map(o=>({[o.replace(/ /,"-")]:o})),...X.map(o=>({[o.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:o}))),Q=["inherit","initial","revert","revert-layer","unset"],$=/^(-?[0-9.]+)(px|pt|pc|%|r?em|ex|ch|ic|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,vo=/^(-?[0-9.]+)$/i,Z=/^(px)$/i,wo=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","background-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"];function l(o){return o.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function $o(o){let e=o.match($);if(!e)return;let[,t,r]=e,n=parseFloat(t);if(r&&!Number.isNaN(n))return`${l(n)}${r}`}function Fo(o){if(o==="auto"||o==="a")return"auto"}function ko(o){if(o.match(Z))return`1${o}`;let e=o.match($);if(!e)return;let[,t,r]=e,n=parseFloat(t);if(!Number.isNaN(n))return r?`${l(n)}${r}`:`${l(n/4)}rem`}function Co(o){if(o.match(Z))return`1${o}`;let e=o.match($);if(!e)return;let[,t,r]=e,n=parseFloat(t);if(!Number.isNaN(n))return r?`${l(n)}${r}`:`${l(n)}px`}function So(o){if(!vo.test(o))return;let e=parseFloat(o);if(!Number.isNaN(e))return l(e)}function Ao(o){o.endsWith("%")&&(o=o.slice(0,-1));let e=parseFloat(o);if(!Number.isNaN(e))return`${l(e/100)}`}function Bo(o){if(o==="full")return"100%";let[e,t]=o.split("/"),r=parseFloat(e)/parseFloat(t);if(!Number.isNaN(r))return`${l(r*100)}%`}var Eo=/^\[(color|length|position|quoted|string):/i;function x(o,e){if(o&&o.startsWith("[")&&o.endsWith("]")){let t,r,n=o.match(Eo);if(n?(e||(r=n[1]),t=o.slice(n[0].length,-1)):t=o.slice(1,-1),!t)return;let s=0;for(let c of t)if(c==="[")s+=1;else if(c==="]"&&(s-=1,s<0))return;if(s)return;switch(r){case"string":return t.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return t.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return t.replace(/(url\(.*?\))/g,c=>c.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,c=>c.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function Do(o){return x(o)}function To(o){return x(o,"color")}function _o(o){return x(o,"length")}function Lo(o){return x(o,"position")}function Mo(o){if(o.match(/^\$\S/))return`var(--${q(o.slice(1))})`}function jo(o){let e=o.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,t,r]=e,n=parseFloat(t);if(!Number.isNaN(n))return r?`${l(n)}${r}`:`${l(n)}ms`}function Ro(o){let e=o.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,t,r]=e,n=parseFloat(t);if(!Number.isNaN(n))return r?`${l(n)}${r}`:`${l(n)}deg`}function Ho(o){if(Q.includes(o))return o}function Oo(o){if(o.split(",").every(e=>wo.includes(e)))return o}function No(o){if(["top","left","right","bottom","center"].includes(o))return o}var oo={__proto__:null,numberWithUnit:$o,auto:Fo,rem:ko,px:Co,number:So,percent:Ao,fraction:Bo,bracket:Do,bracketOfColor:To,bracketOfLength:_o,bracketOfPosition:Lo,cssvar:Mo,time:jo,degree:Ro,global:Ho,properties:Oo,position:No},m=K(oo);function w(o,e){let t=o.colors,r=-1;for(let n of e){if(r+=1,t&&typeof t!="string"){let s=e.slice(r).join("-").replace(/(-[a-z])/g,c=>c.slice(1).toUpperCase());if(t[s])return t[s];if(t[n]){t=t[n];continue}}return}return t}function F(o,e){let t=o.split(/(?:\/|:)/),r,n;t[0]==="[color"?(r=t.slice(0,2).join(":"),n=t[2]):[r,n]=t;let s=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[c]=s;if(!c)return;let a,h=m.bracketOfColor(r),g=h||r;g.match(/^#[\da-fA-F]+/g)?a=g:g.match(/^hex-[\da-fA-F]+/g)?a=`#${g.slice(4)}`:r.startsWith("$")&&(a=m.cssvar(r)),a=a||h;let f="DEFAULT";if(!a){let u,[k]=s.slice(-1);k.match(/^\d+$/)?(f=k,u=w(e,s.slice(0,-1)),!u||typeof u=="string"?a=void 0:a=u[f]):(u=w(e,s),!u&&s.length<=2&&([,f=f]=s,u=w(e,[c])),typeof u=="string"?a=u:f&&u&&(a=u[f]))}return{opacity:n,name:c,no:f,color:a,cssColor:to(a),alpha:m.bracket.cssvar.percent(n??"")}}function eo(o,e,t,r){if(o===""||(Y(r)&&(r=[r]),r.length===0))return;let n=o.length,s=0;for(let c=0;c<n;c++)switch(o[c]){case e:s++;break;case t:if(--s<0)return;break;default:for(let a of r){let h=a.length;if(h&&a===o.slice(c,c+h)&&s===0)return c===0||c===n-h?void 0:[o.slice(0,c),o.slice(c+h)]}}return[o,""]}function b(o,e,t){t=t??10;let r=[],n=0;for(;o!=="";){if(++n>t)return;let s=eo(o,"(",")",e);if(!s)return;let[c,a]=s;r.push(c),o=a}if(r.length>0)return r}var ro=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],zo=["%alpha","<alpha-value>"],Ne=new RegExp(zo.map(o=>G(o)).join("|"));function p(o=""){let e=no(o);if(e!=null){let{components:t,alpha:r}=e;return r==null?t:[...t,r]}}function to(o=""){let e=Po(o);if(e==null||e===!1)return;let{type:t,components:r,alpha:n}=e,s=t.toLowerCase();if(r.length!==0&&!(["rgba","hsla"].includes(s)&&n==null)&&!(ro.includes(s)&&![1,3].includes(r.length)))return{type:s,components:r.map(c=>typeof c=="string"?c.trim():c),alpha:typeof n=="string"?n.trim():n}}function Po(o){if(!o)return;let e=no(o);if(e!=null||(e=Vo(o),e!=null)||(e=Uo(o),e!=null)||(e=Wo(o),e!=null)||(e=Go(o),e!=null))return e}function no(o){let[,e]=o.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let t=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:t.slice(0,3),alpha:e.length===3?void 0:Math.round(t[3]/255*100)/100};case 6:case 8:let r=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:e.length===6?void 0:Math.round((r&255)/255*100)/100}}}function Vo(o){let e={rebeccapurple:[102,51,153,1]}[o];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Uo(o){let e=o.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,t,r]=e,n=b(r,",",5);if(n){if([3,4].includes(n.length))return{type:t,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var Io=new RegExp(`^(${ro.join("|")})\\((.+)\\)$`,"i");function Wo(o){let e=o.match(Io);if(!e)return;let[,t,r]=e,n=so(`${t} ${r}`);if(n){let{alpha:s,components:[c,...a]}=n;return{type:c,components:a,alpha:s}}}function Go(o){let e=o.match(/^color\((.+)\)$/);if(!e)return;let t=so(e[1]);if(t){let{alpha:r,components:[n,...s]}=t;return{type:n,components:s,alpha:r}}}function so(o){let e=b(o," ");if(!e)return;let t=e.length;if(e[t-2]==="/")return{components:e.slice(0,t-2),alpha:e[t-1]};if(e[t-2]!=null&&(e[t-2].endsWith("/")||e[t-1].startsWith("/"))){let s=e.splice(t-2);e.push(s.join(" ")),--t}let r=b(e[t-1],"/",2);if(!r)return;if(r.length===1||r[r.length-1]==="")return{components:e};let n=r.pop();return e[t-1]=r.join("/"),{components:e,alpha:n}}var y={sm:["2rem","1.125rem","0.85rem"],md:["2.5rem","1.375rem","1.1rem"],lg:["3rem","1.625rem","1.375rem"]};var co=[[/^o-(.*)$/,([,o],{theme:e})=>{let t=F(o,e);return t?.cssColor?.type==="rgb"&&t.cssColor.components?{"--onu-c-context":`${t.cssColor.components.join(",")}`}:{"--onu-c-context":t?.color}}],[/^o-switch-(.+)$/,([,o])=>{if(["sm","md","lg"].includes(o))return{"--o-switch-offset":y[o][2],width:y[o][0],height:y[o][1]}}],["o-dashed",{"border-style":"dashed"}],["o-solid",{"background-color":"rgba(var(--onu-c-context), 1) !important","border-color":"rgba(var(--onu-c-context), 1)",color:"white !important"}],["o-bg-clip-half",{"clip-path":"polygon(0% 0%, 50% 0, 50% 50%, 50% 100%, 0% 100%)"}]];var ao=[o=>{let e="o-disabled:";if(o.startsWith(e))return{matcher:o.slice(e.length),selector:t=>`[disabled] ${t}, ${t}[disabled]`}},o=>{let e="o-checked:";if(o.startsWith(e))return{matcher:o.slice(e.length),selector:t=>`[checked] ${t}, ${t}[checked]`}}];var qo={"--onu-colors-blue50":"#EDF5FF","--onu-colors-blue100":"#E1EFFF","--onu-colors-blue200":"#ecf5ff","--onu-colors-blue300":"#B7D5F8","--onu-colors-blue400":"#79bbff","--onu-colors-blue500":"#409EFF","--onu-colors-blue600":"#0072F5","--onu-colors-blue700":"#005FCC","--onu-colors-blue800":"#004799","--onu-colors-blue900":"#00254D","--onu-colors-purple50":"#F7F2FD","--onu-colors-purple100":"#F1E8FB","--onu-colors-purple200":"#EADCF8","--onu-colors-purple300":"#E0CBF5","--onu-colors-purple400":"#D1B1F0","--onu-colors-purple500":"#BC8EE9","--onu-colors-purple600":"#A855F7","--onu-colors-purple700":"#6622AA","--onu-colors-purple800":"#4D1980","--onu-colors-purple900":"#290E44","--onu-colors-green50":"#F1FDF7","--onu-colors-green100":"#E8FCF1","--onu-colors-green200":"#DAFBE8","--onu-colors-green300":"#C8F9DD","--onu-colors-green400":"#ADF5CC","--onu-colors-green500":"#67eaa0","--onu-colors-green600":"#0ACF83","--onu-colors-green700":"#13A452","--onu-colors-green800":"#108944","--onu-colors-green900":"#06371B","--onu-colors-yellow50":"#FEF9F0","--onu-colors-yellow100":"#FEF5E7","--onu-colors-yellow200":"#FDEFD8","--onu-colors-yellow300":"#FCE7C5","--onu-colors-yellow400":"#FBDBA7","--onu-colors-yellow500":"#F9CB80","--onu-colors-yellow600":"#F5A524","--onu-colors-yellow700":"#B97509","--onu-colors-yellow800":"#925D07","--onu-colors-yellow900":"#4E3104","--onu-colors-red50":"#FEF0F5","--onu-colors-red100":"#FEE7EF","--onu-colors-red200":"#FDD8E5","--onu-colors-red300":"#FCC5D8","--onu-colors-red400":"#FAA8C5","--onu-colors-red500":"#f89898","--onu-colors-red600":"#FF5C5C","--onu-colors-red700":"#c45656","--onu-colors-red800":"#910838","--onu-colors-red900":"#4E041E","--onu-colors-cyan50":"#F0FCFF","--onu-colors-cyan100":"#E6FAFE","--onu-colors-cyan200":"#D7F8FE","--onu-colors-cyan300":"#C3F4FD","--onu-colors-cyan400":"#A5EEFD","--onu-colors-cyan500":"#7EE7FC","--onu-colors-cyan600":"#06B7DB","--onu-colors-cyan700":"#09AACD","--onu-colors-cyan800":"#0E8AAA","--onu-colors-cyan900":"#053B48","--onu-colors-pink50":"#FFF0FB","--onu-colors-pink100":"#FFE5F8","--onu-colors-pink200":"#FFD6F3","--onu-colors-pink300":"#FFC2EE","--onu-colors-pink400":"#FFA3E5","--onu-colors-pink500":"#FF7AD9","--onu-colors-pink600":"#FF4ECD","--onu-colors-pink700":"#D6009A","--onu-colors-pink800":"#B80084","--onu-colors-pink900":"#4D0037","--onu-colors-gray50":"#F1F3F5","--onu-colors-gray100":"#ECEEF0","--onu-colors-gray200":"#E6E8EB","--onu-colors-gray300":"#DFE3E6","--onu-colors-gray400":"#D7DBDF","--onu-colors-gray500":"#C1C8CD","--onu-colors-gray600":"#889096","--onu-colors-gray700":"#7E868C","--onu-colors-gray800":"#687076","--onu-colors-gray900":"#11181C","--onu-colors-white":"#ffffff","--onu-colors-black":"#000000","--onu-colors-black-light":"var(--onu-colors-white)","--onu-colors-background":"var(--onu-colors-white)","--onu-colors-background-light":"var(--onu-colors-black-light)","--onu-colors-background-gray":"var(--onu-colors-gray600)","--onu-colors-backgroundAlpha":"rgba(255, 255, 255, 0.8)","--onu-colors-foreground":"var(--onu-colors-black)","--onu-colors-backgroundContrast":"var(--onu-colors-white)","--onu-colors-text":"#606266","--onu-colors-text-darker":"#606266","--onu-colors-text-light":"#909399","--onu-colors-title":"#11181C","--onu-colors-placeholder":"#a8abb2","--onu-colors-grayBg":"#373739","--onu-colors-lightContext":"#f9f9f9","--onu-colors-embed":"#F1F3F5","--onu-colors-darkContext":"#1c1f23","--onu-colors-link":"var(--onu-colors-blue600)","--onu-colors-codeLight":"var(--onu-colors-pink100)","--onu-colors-code":"var(--onu-colors-pink600)","--onu-colors-selection":"var(--onu-colors-blue200)","--onu-colors-border":"#dcdfe6","--onu-colors-border-light":"#efeff5","--onu-colors-border-darker":"#cdd0d6","--onu-colors-headerBackground":"hsla(0,0%,100%,0.8)","--onu-colors-menuBackground":"rgba(255, 255, 255, 0.8)","--onu-colors-headerIconColor":"var(--onu-colors-gray400)","--onu-colors-codeBackground":"#363449","--onu-colors-codeComment":"var(--onu-colors-gray700)","--onu-colors-codeCopyIconColor":"var(--onu-colors-gray200)","--onu-colors-cardBackground":"var(--onu-colors-white)","--onu-colors-codeHighlight":"hsl(243, 16%, 30%)","--onu-colors-backgroundBlur":"rgba(255, 255, 255, 0.3)","--onu-colors-blockLinkBackground":"var(--onu-colors-accents1)","--onu-colors-blockLinkHoverBackground":"#FFD1ED","--onu-shadows-xs":"0 2px 8px 1px rgb(104 112 118 / 0.07), 0 1px 1px -1px rgb(104 112 118 / 0.04)","--onu-shadows-sm":"0 2px 8px 2px rgb(104 112 118 / 0.07), 0 2px 4px -1px rgb(104 112 118 / 0.04)","--onu-shadows-md":"0 12px 20px 6px rgb(104 112 118 / 0.08)","--onu-shadows-lg":"0 12px 34px 6px rgb(104 112 118 / 0.18)","--onu-shadows-xl":"0 25px 65px 0px inset","--onu-dropShadows-xs":"drop-shadow(0 2px 4px rgb(104 112 118 / 0.07)) drop-shadow(0 1px 1px rgb(104 112 118 / 0.04))","--onu-dropShadows-sm":"drop-shadow(0 2px 8px rgb(104 112 118 / 0.07)) drop-shadow(0 2px 4px rgb(104 112 118 / 0.04))","--onu-dropShadows-md":"drop-shadow(0 4px 12px rgb(104 112 118 / 0.08)) drop-shadow(0 20px 8px rgb(104 112 118 / 0.04))","--onu-dropShadows-lg":"drop-shadow(0 12px 24px rgb(104 112 118 / 0.15)) drop-shadow(0 12px 14px rgb(104 112 118 / 0.1))","--onu-dropShadows-xl":"drop-shadow(0 25px 34px rgb(104 112 118 / 0.35))","--onu-theme-primary":"var(--onu-colors-blue500)","--onu-theme-primaryHsl":`${p("#409EFF")}`,"--onu-theme-primaryLight":"var(--onu-colors-blue200)","--onu-theme-primaryBorder":"var(--onu-colors-blue500)","--onu-theme-primaryLightHover":"var(--onu-colors-blue400)","--onu-theme-primaryLightActive":"var(--onu-colors-blue600)","--onu-theme-primaryBorderHover":"var(--onu-colors-blue400)","--onu-theme-primaryBorderActive":"var(--onu-colors-blue600)","--onu-theme-primaryShadow":"var(--onu-colors-blue500)","--onu-theme-secondary":"var(--onu-colors-purple600)","--onu-theme-secondaryHsl":`${p("#A855F7")}`,"--onu-theme-secondaryBorder":"var(--onu-colors-purple600)","--onu-theme-secondaryLightHover":"var(--onu-colors-purple500)","--onu-theme-secondaryLightActive":"var(--onu-colors-purple700)","--onu-theme-secondaryBorderHover":"var(--onu-colors-purple500)","--onu-theme-secondaryBorderActive":"var(--onu-colors-purple700)","--onu-theme-secondaryShadow":"var(--onu-colors-purple500)","--onu-theme-success":"var(--onu-colors-green600)","--onu-theme-successHsl":`${p("#0ACF83")}`,"--onu-theme-successBorder":"var(--onu-colors-green600)","--onu-theme-successLightHover":"var(--onu-colors-green500)","--onu-theme-successLightActive":"var(--onu-colors-green700)","--onu-theme-successBorderHover":"var(--onu-colors-green500)","--onu-theme-successBorderActive":"var(--onu-colors-green700)","--onu-theme-successShadow":"var(--onu-colors-green500)","--onu-theme-warning":"var(--onu-colors-yellow600)","--onu-theme-warningHsl":`${p("#F5A524")}`,"--onu-theme-warningBorder":"var(--onu-colors-yellow500)","--onu-theme-warningLightHover":"var(--onu-colors-yellow500)","--onu-theme-warningLightActive":"var(--onu-colors-yellow700)","--onu-theme-warningBorderHover":"var(--onu-colors-yellow500)","--onu-theme-warningBorderActive":"var(--onu-colors-yellow700)","--onu-theme-warningShadow":"var(--onu-colors-yellow500)","--onu-theme-error":"var(--onu-colors-red600)","--onu-theme-errorHsl":`${p("#FF5C5C")}`,"--onu-theme-errorBorder":"var(--onu-colors-red600)","--onu-theme-errorLightHover":"var(--onu-colors-red500)","--onu-theme-errorLightActive":"var(--onu-colors-red700)","--onu-theme-errorBorderHover":"var(--onu-colors-red500)","--onu-theme-errorBorderActive":"var(--onu-colors-red700)","--onu-theme-errorShadow":"var(--onu-colors-red500)","--onu-theme-info":"var(--onu-colors-gray700)","--onu-theme-infoHsl":`${p("#7E868C")}`,"--onu-theme-infoBorder":"var(--onu-colors-gray700)","--onu-theme-infoLightHover":"var(--onu-colors-gray500)","--onu-theme-infoLightActive":"var(--onu-colors-gray800)","--onu-theme-infoBorderHover":"var(--onu-colors-gray500)","--onu-theme-infoBorderActive":"var(--onu-colors-gray800)","--onu-theme-infoShadow":"var(--onu-colors-gray400)"},Yo={"--onu-colors-blue50":"#10253E","--onu-colors-blue100":"#102C4C","--onu-colors-blue200":"#18222c","--onu-colors-blue300":"#0F3158","--onu-colors-blue400":"#79bbff","--onu-colors-blue500":"#0952A5","--onu-colors-blue600":"#0072F5","--onu-colors-blue700":"#3694FF","--onu-colors-blue800":"#3694FF","--onu-colors-blue900":"#EAF4FF","--onu-colors-purple50":"#1F0A33","--onu-colors-purple100":"#240C3C","--onu-colors-purple200":"#2E0F4D","--onu-colors-purple300":"#3B1362","--onu-colors-purple400":"#451773","--onu-colors-purple500":"#571D91","--onu-colors-purple600":"#7828C8","--onu-colors-purple700":"#9750DD","--onu-colors-purple800":"#B583E7","--onu-colors-purple900":"#F7ECFC","--onu-colors-green50":"#042F14","--onu-colors-green100":"#06381B","--onu-colors-green200":"#074A24","--onu-colors-green300":"#0A6130","--onu-colors-green400":"#0B7439","--onu-colors-green500":"#0F9549","--onu-colors-green600":"#17C964","--onu-colors-green700":"#41EC8B","--onu-colors-green800":"#78F2AD","--onu-colors-green900":"#ECFDF4","--onu-colors-yellow50":"#3A2503","--onu-colors-yellow100":"#442B03","--onu-colors-yellow200":"#583804","--onu-colors-yellow300":"#704705","--onu-colors-yellow400":"#845306","--onu-colors-yellow500":"#A66908","--onu-colors-yellow600":"#F5A524","--onu-colors-yellow700":"#F6AD37","--onu-colors-yellow800":"#F8C572","--onu-colors-yellow900":"#FEF7EC","--onu-colors-red50":"#300313","--onu-colors-red100":"#300313","--onu-colors-red200":"#44041A","--onu-colors-red300":"#5C0523","--onu-colors-red400":"#6F062B","--onu-colors-red500":"#c45656","--onu-colors-red600":"#F31260","--onu-colors-red700":"#f89898","--onu-colors-red800":"#F75F94","--onu-colors-red900":"#FDD8E5","--onu-colors-cyan50":"#012A32","--onu-colors-cyan100":"#023A46","--onu-colors-cyan200":"#024B5A","--onu-colors-cyan300":"#036072","--onu-colors-cyan400":"#037086","--onu-colors-cyan500":"#048EA9","--onu-colors-cyan600":"#06B7DB","--onu-colors-cyan700":"#33D9FA","--onu-colors-cyan800":"#6FE4FB","--onu-colors-cyan900":"#EBFBFE","--onu-colors-pink50":"#330025","--onu-colors-pink100":"#470033","--onu-colors-pink200":"#5C0042","--onu-colors-pink300":"#750054","--onu-colors-pink400":"#8A0063","--onu-colors-pink500":"#AD007C","--onu-colors-pink600":"#FF4ECD","--onu-colors-pink700":"#FF2EC4","--onu-colors-pink800":"#FF6BD5","--onu-colors-pink900":"#FFEBF9","--onu-colors-gray50":"#16181A","--onu-colors-gray100":"#26292B","--onu-colors-gray200":"#2B2F31","--onu-colors-gray300":"#313538","--onu-colors-gray400":"#3A3F42","--onu-colors-gray500":"#4C5155","--onu-colors-gray600":"#697177","--onu-colors-gray700":"#787F85","--onu-colors-gray800":"#9BA1A6","--onu-colors-gray900":"#ECEDEE","--onu-colors-white-light":"#ffffff","--onu-colors-text":"#CFD3DC","--onu-colors-text-darker":"#7C7C7D","--onu-colors-text-light":"#A3A6AD","--onu-colors-title":"#ECEDEE","--onu-colors-placeholder":"#8D9095","--onu-colors-border":"#4C4D4F","--onu-colors-border-light":"#414243","--onu-colors-border-darker":"#636466","--onu-colors-background":"var(--onu-colors-black)","--onu-colors-black-light":"#1d1e1f","--onu-colors-arrow":"#373739","--onu-colors-backgroundAlpha":"rgba(0, 0, 0, 0.6)","--onu-colors-foreground":"var(--onu-colors-white)","--onu-colors-backgroundContrast":"var(--onu-colors-gray50)","--onu-theme-primary":"var(--onu-colors-blue600)","--onu-theme-primaryHsl":`${p("#0072F5")}`,"--onu-theme-primaryLightHover":"var(--onu-colors-blue500)","--onu-theme-primaryLightActive":"var(--onu-colors-blue700)","--onu-theme-primaryBorderHover":"var(--onu-colors-blue500)","--onu-theme-primaryBorderActive":"var(--onu-colors-blue700)","--onu-theme-secondary":"var(--onu-colors-purple700)","--onu-theme-secondaryHsl":`${p("#9750DD")}`,"--onu-theme-secondaryLightHover":"var(--onu-colors-purple600)","--onu-theme-secondaryLightActive":"var(--onu-colors-purple800)","--onu-theme-secondaryBorderHover":"var(--onu-colors-purple600)","--onu-theme-secondaryBorderActive":"var(--onu-colors-purple800)","--onu-theme-success":"var(--onu-colors-green600)","--onu-theme-warning":"var(--onu-colors-yellow600)","--onu-theme-error":"var(--onu-colors-red600)","--onu-theme-info":"var(--onu-colors-gray700)","--onu-theme-infoHsl":`${p("#787F85")}`,"--onu-theme-infoLightHover":"var(--onu-colors-gray600)","--onu-theme-infoLightActive":"var(--onu-colors-gray800)","--onu-theme-infoBorderHover":"var(--onu-colors-gray600)","--onu-theme-infoBorderActive":"var(--onu-colors-gray800)"},Ko=o=>Object.entries(o).map(([e,t])=>`${e}: ${t}`).join(";");function Xo(){return{name:"@onu-ui/preset",theme:W,rules:co,variants:ao,shortcuts:I}}0&&(module.exports={darkTheme,getCSSPreflights,lightTheme,presetOnu}); | ||
100%{ box-shadow: 0 0 0 8px #1890ff0d; }}`},durations:{switching:"0.3s"}}};function G(o){return o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function q(o){let e=o.length,t=-1,r,n="",s=o.charCodeAt(0);for(;++t<e;){if(r=o.charCodeAt(t),r===0){n+="\uFFFD";continue}if(r===44){n+="\\,";continue}if(r>=1&&r<=31||r===127||t===0&&r>=48&&r<=57||t===1&&r>=48&&r<=57&&s===45){n+=`\\${r.toString(16)} `;continue}if(t===0&&e===1&&r===45){n+=`\\${o.charAt(t)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){n+=o.charAt(t);continue}n+=`\\${o.charAt(t)}`}return n}function Y(o){return typeof o=="string"}function K(o){let e=function(r){let n=this.__options?.sequence||[];this.__options.sequence=[];for(let s of n){let c=o[s](r);if(c!=null)return c}};function t(r,n){return r.__options||(r.__options={sequence:[]}),r.__options.sequence.push(n),r}for(let r of Object.keys(o))Object.defineProperty(e,r,{enumerable:!0,get(){return t(this,r)}});return e}var go="default",mo="preflights",bo="shortcuts",je={[mo]:-100,[bo]:-10,[go]:0};var J={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},xo={...J,s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]};var X=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],yo=Object.assign({},...X.map(o=>({[o.replace(/ /,"-")]:o})),...X.map(o=>({[o.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:o}))),Q=["inherit","initial","revert","revert-layer","unset"],$=/^(-?[0-9.]+)(px|pt|pc|%|r?em|ex|ch|ic|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,vo=/^(-?[0-9.]+)$/i,Z=/^(px)$/i,wo=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","background-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"];function l(o){return o.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function $o(o){let e=o.match($);if(!e)return;let[,t,r]=e,n=parseFloat(t);if(r&&!Number.isNaN(n))return`${l(n)}${r}`}function Fo(o){if(o==="auto"||o==="a")return"auto"}function ko(o){if(o.match(Z))return`1${o}`;let e=o.match($);if(!e)return;let[,t,r]=e,n=parseFloat(t);if(!Number.isNaN(n))return r?`${l(n)}${r}`:`${l(n/4)}rem`}function Co(o){if(o.match(Z))return`1${o}`;let e=o.match($);if(!e)return;let[,t,r]=e,n=parseFloat(t);if(!Number.isNaN(n))return r?`${l(n)}${r}`:`${l(n)}px`}function So(o){if(!vo.test(o))return;let e=parseFloat(o);if(!Number.isNaN(e))return l(e)}function Ao(o){o.endsWith("%")&&(o=o.slice(0,-1));let e=parseFloat(o);if(!Number.isNaN(e))return`${l(e/100)}`}function Bo(o){if(o==="full")return"100%";let[e,t]=o.split("/"),r=parseFloat(e)/parseFloat(t);if(!Number.isNaN(r))return`${l(r*100)}%`}var Eo=/^\[(color|length|position|quoted|string):/i;function x(o,e){if(o&&o.startsWith("[")&&o.endsWith("]")){let t,r,n=o.match(Eo);if(n?(e||(r=n[1]),t=o.slice(n[0].length,-1)):t=o.slice(1,-1),!t)return;let s=0;for(let c of t)if(c==="[")s+=1;else if(c==="]"&&(s-=1,s<0))return;if(s)return;switch(r){case"string":return t.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return t.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return t.replace(/(url\(.*?\))/g,c=>c.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,c=>c.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function Do(o){return x(o)}function To(o){return x(o,"color")}function _o(o){return x(o,"length")}function Lo(o){return x(o,"position")}function Mo(o){if(o.match(/^\$\S/))return`var(--${q(o.slice(1))})`}function jo(o){let e=o.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,t,r]=e,n=parseFloat(t);if(!Number.isNaN(n))return r?`${l(n)}${r}`:`${l(n)}ms`}function Ro(o){let e=o.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,t,r]=e,n=parseFloat(t);if(!Number.isNaN(n))return r?`${l(n)}${r}`:`${l(n)}deg`}function Ho(o){if(Q.includes(o))return o}function Oo(o){if(o.split(",").every(e=>wo.includes(e)))return o}function No(o){if(["top","left","right","bottom","center"].includes(o))return o}var oo={__proto__:null,numberWithUnit:$o,auto:Fo,rem:ko,px:Co,number:So,percent:Ao,fraction:Bo,bracket:Do,bracketOfColor:To,bracketOfLength:_o,bracketOfPosition:Lo,cssvar:Mo,time:jo,degree:Ro,global:Ho,properties:Oo,position:No},m=K(oo);function w(o,e){let t=o.colors,r=-1;for(let n of e){if(r+=1,t&&typeof t!="string"){let s=e.slice(r).join("-").replace(/(-[a-z])/g,c=>c.slice(1).toUpperCase());if(t[s])return t[s];if(t[n]){t=t[n];continue}}return}return t}function F(o,e){let t=o.split(/(?:\/|:)/),r,n;t[0]==="[color"?(r=t.slice(0,2).join(":"),n=t[2]):[r,n]=t;let s=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[c]=s;if(!c)return;let a,h=m.bracketOfColor(r),g=h||r;g.match(/^#[\da-fA-F]+/g)?a=g:g.match(/^hex-[\da-fA-F]+/g)?a=`#${g.slice(4)}`:r.startsWith("$")&&(a=m.cssvar(r)),a=a||h;let f="DEFAULT";if(!a){let u,[k]=s.slice(-1);k.match(/^\d+$/)?(f=k,u=w(e,s.slice(0,-1)),!u||typeof u=="string"?a=void 0:a=u[f]):(u=w(e,s),!u&&s.length<=2&&([,f=f]=s,u=w(e,[c])),typeof u=="string"?a=u:f&&u&&(a=u[f]))}return{opacity:n,name:c,no:f,color:a,cssColor:to(a),alpha:m.bracket.cssvar.percent(n??"")}}function eo(o,e,t,r){if(o===""||(Y(r)&&(r=[r]),r.length===0))return;let n=o.length,s=0;for(let c=0;c<n;c++)switch(o[c]){case e:s++;break;case t:if(--s<0)return;break;default:for(let a of r){let h=a.length;if(h&&a===o.slice(c,c+h)&&s===0)return c===0||c===n-h?void 0:[o.slice(0,c),o.slice(c+h)]}}return[o,""]}function b(o,e,t){t=t??10;let r=[],n=0;for(;o!=="";){if(++n>t)return;let s=eo(o,"(",")",e);if(!s)return;let[c,a]=s;r.push(c),o=a}if(r.length>0)return r}var ro=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],zo=["%alpha","<alpha-value>"],Ne=new RegExp(zo.map(o=>G(o)).join("|"));function p(o=""){let e=no(o);if(e!=null){let{components:t,alpha:r}=e;return r==null?t:[...t,r]}}function to(o=""){let e=Po(o);if(e==null||e===!1)return;let{type:t,components:r,alpha:n}=e,s=t.toLowerCase();if(r.length!==0&&!(["rgba","hsla"].includes(s)&&n==null)&&!(ro.includes(s)&&![1,3].includes(r.length)))return{type:s,components:r.map(c=>typeof c=="string"?c.trim():c),alpha:typeof n=="string"?n.trim():n}}function Po(o){if(!o)return;let e=no(o);if(e!=null||(e=Vo(o),e!=null)||(e=Uo(o),e!=null)||(e=Wo(o),e!=null)||(e=Go(o),e!=null))return e}function no(o){let[,e]=o.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let t=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:t.slice(0,3),alpha:e.length===3?void 0:Math.round(t[3]/255*100)/100};case 6:case 8:let r=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:e.length===6?void 0:Math.round((r&255)/255*100)/100}}}function Vo(o){let e={rebeccapurple:[102,51,153,1]}[o];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Uo(o){let e=o.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,t,r]=e,n=b(r,",",5);if(n){if([3,4].includes(n.length))return{type:t,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var Io=new RegExp(`^(${ro.join("|")})\\((.+)\\)$`,"i");function Wo(o){let e=o.match(Io);if(!e)return;let[,t,r]=e,n=so(`${t} ${r}`);if(n){let{alpha:s,components:[c,...a]}=n;return{type:c,components:a,alpha:s}}}function Go(o){let e=o.match(/^color\((.+)\)$/);if(!e)return;let t=so(e[1]);if(t){let{alpha:r,components:[n,...s]}=t;return{type:n,components:s,alpha:r}}}function so(o){let e=b(o," ");if(!e)return;let t=e.length;if(e[t-2]==="/")return{components:e.slice(0,t-2),alpha:e[t-1]};if(e[t-2]!=null&&(e[t-2].endsWith("/")||e[t-1].startsWith("/"))){let s=e.splice(t-2);e.push(s.join(" ")),--t}let r=b(e[t-1],"/",2);if(!r)return;if(r.length===1||r[r.length-1]==="")return{components:e};let n=r.pop();return e[t-1]=r.join("/"),{components:e,alpha:n}}var y={sm:["2rem","1.125rem","0.85rem"],md:["2.5rem","1.375rem","1.1rem"],lg:["3rem","1.625rem","1.375rem"]};var co=[[/^o-(.*)$/,([,o],{theme:e})=>{let t=F(o,e);return t?.cssColor?.type==="rgb"&&t.cssColor.components?{"--onu-c-context":`${t.cssColor.components.join(",")}`}:{"--onu-c-context":t?.color}}],[/^o-switch-(.+)$/,([,o])=>{if(["sm","md","lg"].includes(o))return{"--o-switch-offset":y[o][2],width:y[o][0],height:y[o][1]}}],["o-dashed",{"border-style":"dashed"}],["o-solid",{"background-color":"rgba(var(--onu-c-context), 1) !important","border-color":"rgba(var(--onu-c-context), 1)",color:"white !important"}],["o-bg-clip-half",{"clip-path":"polygon(0% 0%, 50% 0, 50% 50%, 50% 100%, 0% 100%)"}]];var ao=[o=>{let e="o-disabled:";if(o.startsWith(e))return{matcher:o.slice(e.length),selector:t=>`[disabled] ${t}, ${t}[disabled]`}},o=>{let e="o-checked:";if(o.startsWith(e))return{matcher:o.slice(e.length),selector:t=>`[checked] ${t}, ${t}[checked]`}}];var qo={"--onu-colors-blue50":"#EDF5FF","--onu-colors-blue100":"#E1EFFF","--onu-colors-blue200":"#ecf5ff","--onu-colors-blue300":"#B7D5F8","--onu-colors-blue400":"#79bbff","--onu-colors-blue500":"#409EFF","--onu-colors-blue600":"#0072F5","--onu-colors-blue700":"#005FCC","--onu-colors-blue800":"#004799","--onu-colors-blue900":"#00254D","--onu-colors-purple50":"#F7F2FD","--onu-colors-purple100":"#F1E8FB","--onu-colors-purple200":"#EADCF8","--onu-colors-purple300":"#E0CBF5","--onu-colors-purple400":"#D1B1F0","--onu-colors-purple500":"#BC8EE9","--onu-colors-purple600":"#A855F7","--onu-colors-purple700":"#6622AA","--onu-colors-purple800":"#4D1980","--onu-colors-purple900":"#290E44","--onu-colors-green50":"#F1FDF7","--onu-colors-green100":"#E8FCF1","--onu-colors-green200":"#DAFBE8","--onu-colors-green300":"#C8F9DD","--onu-colors-green400":"#ADF5CC","--onu-colors-green500":"#67eaa0","--onu-colors-green600":"#0ACF83","--onu-colors-green700":"#13A452","--onu-colors-green800":"#108944","--onu-colors-green900":"#06371B","--onu-colors-yellow50":"#FEF9F0","--onu-colors-yellow100":"#FEF5E7","--onu-colors-yellow200":"#FDEFD8","--onu-colors-yellow300":"#FCE7C5","--onu-colors-yellow400":"#FBDBA7","--onu-colors-yellow500":"#F9CB80","--onu-colors-yellow600":"#F5A524","--onu-colors-yellow700":"#B97509","--onu-colors-yellow800":"#925D07","--onu-colors-yellow900":"#4E3104","--onu-colors-red50":"#FEF0F5","--onu-colors-red100":"#FEE7EF","--onu-colors-red200":"#FDD8E5","--onu-colors-red300":"#FCC5D8","--onu-colors-red400":"#FAA8C5","--onu-colors-red500":"#f89898","--onu-colors-red600":"#FF5C5C","--onu-colors-red700":"#c45656","--onu-colors-red800":"#910838","--onu-colors-red900":"#4E041E","--onu-colors-cyan50":"#F0FCFF","--onu-colors-cyan100":"#E6FAFE","--onu-colors-cyan200":"#D7F8FE","--onu-colors-cyan300":"#C3F4FD","--onu-colors-cyan400":"#A5EEFD","--onu-colors-cyan500":"#7EE7FC","--onu-colors-cyan600":"#06B7DB","--onu-colors-cyan700":"#09AACD","--onu-colors-cyan800":"#0E8AAA","--onu-colors-cyan900":"#053B48","--onu-colors-pink50":"#FFF0FB","--onu-colors-pink100":"#FFE5F8","--onu-colors-pink200":"#FFD6F3","--onu-colors-pink300":"#FFC2EE","--onu-colors-pink400":"#FFA3E5","--onu-colors-pink500":"#FF7AD9","--onu-colors-pink600":"#FF4ECD","--onu-colors-pink700":"#D6009A","--onu-colors-pink800":"#B80084","--onu-colors-pink900":"#4D0037","--onu-colors-gray50":"#F1F3F5","--onu-colors-gray100":"#ECEEF0","--onu-colors-gray200":"#E6E8EB","--onu-colors-gray300":"#DFE3E6","--onu-colors-gray400":"#D7DBDF","--onu-colors-gray500":"#C1C8CD","--onu-colors-gray600":"#889096","--onu-colors-gray700":"#7E868C","--onu-colors-gray800":"#687076","--onu-colors-gray900":"#11181C","--onu-colors-white":"#ffffff","--onu-colors-black":"#000000","--onu-colors-black-light":"var(--onu-colors-white)","--onu-colors-background":"var(--onu-colors-white)","--onu-colors-background-light":"var(--onu-colors-black-light)","--onu-colors-background-gray":"var(--onu-colors-gray600)","--onu-colors-backgroundAlpha":"rgba(255, 255, 255, 0.8)","--onu-colors-foreground":"var(--onu-colors-black)","--onu-colors-backgroundContrast":"var(--onu-colors-white)","--onu-colors-text":"#606266","--onu-colors-text-darker":"#606266","--onu-colors-text-light":"#909399","--onu-colors-title":"#11181C","--onu-colors-placeholder":"#a8abb2","--onu-colors-grayBg":"#373739","--onu-colors-lightContext":"#f9f9f9","--onu-colors-embed":"#F1F3F5","--onu-colors-darkContext":"#1c1f23","--onu-colors-link":"var(--onu-colors-blue600)","--onu-colors-codeLight":"var(--onu-colors-pink100)","--onu-colors-code":"var(--onu-colors-pink600)","--onu-colors-selection":"var(--onu-colors-blue200)","--onu-colors-border":"#dcdfe6","--onu-colors-border-light":"#efeff5","--onu-colors-border-darker":"#cdd0d6","--onu-colors-headerBackground":"hsla(0,0%,100%,0.8)","--onu-colors-menuBackground":"rgba(255, 255, 255, 0.8)","--onu-colors-headerIconColor":"var(--onu-colors-gray400)","--onu-colors-codeBackground":"#363449","--onu-colors-codeComment":"var(--onu-colors-gray700)","--onu-colors-codeCopyIconColor":"var(--onu-colors-gray200)","--onu-colors-cardBackground":"var(--onu-colors-white)","--onu-colors-codeHighlight":"hsl(243, 16%, 30%)","--onu-colors-backgroundBlur":"rgba(255, 255, 255, 0.3)","--onu-colors-blockLinkBackground":"var(--onu-colors-accents1)","--onu-colors-blockLinkHoverBackground":"#FFD1ED","--onu-shadows-xs":"0 2px 8px 1px rgb(104 112 118 / 0.07), 0 1px 1px -1px rgb(104 112 118 / 0.04)","--onu-shadows-sm":"0 2px 8px 2px rgb(104 112 118 / 0.07), 0 2px 4px -1px rgb(104 112 118 / 0.04)","--onu-shadows-md":"0 12px 20px 6px rgb(104 112 118 / 0.08)","--onu-shadows-lg":"0 12px 34px 6px rgb(104 112 118 / 0.18)","--onu-shadows-xl":"0 25px 65px 0px inset","--onu-dropShadows-xs":"drop-shadow(0 2px 4px rgb(104 112 118 / 0.07)) drop-shadow(0 1px 1px rgb(104 112 118 / 0.04))","--onu-dropShadows-sm":"drop-shadow(0 2px 8px rgb(104 112 118 / 0.07)) drop-shadow(0 2px 4px rgb(104 112 118 / 0.04))","--onu-dropShadows-md":"drop-shadow(0 4px 12px rgb(104 112 118 / 0.08)) drop-shadow(0 20px 8px rgb(104 112 118 / 0.04))","--onu-dropShadows-lg":"drop-shadow(0 12px 24px rgb(104 112 118 / 0.15)) drop-shadow(0 12px 14px rgb(104 112 118 / 0.1))","--onu-dropShadows-xl":"drop-shadow(0 25px 34px rgb(104 112 118 / 0.35))","--onu-theme-primary":"var(--onu-colors-blue500)","--onu-theme-primaryHsl":`${p("#409EFF")}`,"--onu-theme-primaryLight":"var(--onu-colors-blue200)","--onu-theme-primaryBorder":"var(--onu-colors-blue500)","--onu-theme-primaryLightHover":"var(--onu-colors-blue400)","--onu-theme-primaryLightActive":"var(--onu-colors-blue600)","--onu-theme-primaryBorderHover":"var(--onu-colors-blue400)","--onu-theme-primaryBorderActive":"var(--onu-colors-blue600)","--onu-theme-primaryShadow":"var(--onu-colors-blue500)","--onu-theme-secondary":"var(--onu-colors-purple600)","--onu-theme-secondaryHsl":`${p("#A855F7")}`,"--onu-theme-secondaryBorder":"var(--onu-colors-purple600)","--onu-theme-secondaryLightHover":"var(--onu-colors-purple500)","--onu-theme-secondaryLightActive":"var(--onu-colors-purple700)","--onu-theme-secondaryBorderHover":"var(--onu-colors-purple500)","--onu-theme-secondaryBorderActive":"var(--onu-colors-purple700)","--onu-theme-secondaryShadow":"var(--onu-colors-purple500)","--onu-theme-success":"var(--onu-colors-green600)","--onu-theme-successHsl":`${p("#0ACF83")}`,"--onu-theme-successBorder":"var(--onu-colors-green600)","--onu-theme-successLightHover":"var(--onu-colors-green500)","--onu-theme-successLightActive":"var(--onu-colors-green700)","--onu-theme-successBorderHover":"var(--onu-colors-green500)","--onu-theme-successBorderActive":"var(--onu-colors-green700)","--onu-theme-successShadow":"var(--onu-colors-green500)","--onu-theme-warning":"var(--onu-colors-yellow600)","--onu-theme-warningHsl":`${p("#F5A524")}`,"--onu-theme-warningBorder":"var(--onu-colors-yellow500)","--onu-theme-warningLightHover":"var(--onu-colors-yellow500)","--onu-theme-warningLightActive":"var(--onu-colors-yellow700)","--onu-theme-warningBorderHover":"var(--onu-colors-yellow500)","--onu-theme-warningBorderActive":"var(--onu-colors-yellow700)","--onu-theme-warningShadow":"var(--onu-colors-yellow500)","--onu-theme-error":"var(--onu-colors-red600)","--onu-theme-errorHsl":`${p("#FF5C5C")}`,"--onu-theme-errorBorder":"var(--onu-colors-red600)","--onu-theme-errorLightHover":"var(--onu-colors-red500)","--onu-theme-errorLightActive":"var(--onu-colors-red700)","--onu-theme-errorBorderHover":"var(--onu-colors-red500)","--onu-theme-errorBorderActive":"var(--onu-colors-red700)","--onu-theme-errorShadow":"var(--onu-colors-red500)","--onu-theme-info":"var(--onu-colors-gray700)","--onu-theme-infoHsl":`${p("#7E868C")}`,"--onu-theme-infoBorder":"var(--onu-colors-gray700)","--onu-theme-infoLightHover":"var(--onu-colors-gray500)","--onu-theme-infoLightActive":"var(--onu-colors-gray800)","--onu-theme-infoBorderHover":"var(--onu-colors-gray500)","--onu-theme-infoBorderActive":"var(--onu-colors-gray800)","--onu-theme-infoShadow":"var(--onu-colors-gray400)"},Yo={"--onu-colors-blue50":"#10253E","--onu-colors-blue100":"#102C4C","--onu-colors-blue200":"#18222c","--onu-colors-blue300":"#0F3158","--onu-colors-blue400":"#79bbff","--onu-colors-blue500":"#0952A5","--onu-colors-blue600":"#0072F5","--onu-colors-blue700":"#3694FF","--onu-colors-blue800":"#3694FF","--onu-colors-blue900":"#EAF4FF","--onu-colors-purple50":"#1F0A33","--onu-colors-purple100":"#240C3C","--onu-colors-purple200":"#2E0F4D","--onu-colors-purple300":"#3B1362","--onu-colors-purple400":"#451773","--onu-colors-purple500":"#571D91","--onu-colors-purple600":"#7828C8","--onu-colors-purple700":"#9750DD","--onu-colors-purple800":"#B583E7","--onu-colors-purple900":"#F7ECFC","--onu-colors-green50":"#042F14","--onu-colors-green100":"#06381B","--onu-colors-green200":"#074A24","--onu-colors-green300":"#0A6130","--onu-colors-green400":"#0B7439","--onu-colors-green500":"#0F9549","--onu-colors-green600":"#17C964","--onu-colors-green700":"#41EC8B","--onu-colors-green800":"#78F2AD","--onu-colors-green900":"#ECFDF4","--onu-colors-yellow50":"#3A2503","--onu-colors-yellow100":"#442B03","--onu-colors-yellow200":"#583804","--onu-colors-yellow300":"#704705","--onu-colors-yellow400":"#845306","--onu-colors-yellow500":"#A66908","--onu-colors-yellow600":"#F5A524","--onu-colors-yellow700":"#F6AD37","--onu-colors-yellow800":"#F8C572","--onu-colors-yellow900":"#FEF7EC","--onu-colors-red50":"#300313","--onu-colors-red100":"#300313","--onu-colors-red200":"#44041A","--onu-colors-red300":"#5C0523","--onu-colors-red400":"#6F062B","--onu-colors-red500":"#c45656","--onu-colors-red600":"#F31260","--onu-colors-red700":"#f89898","--onu-colors-red800":"#F75F94","--onu-colors-red900":"#FDD8E5","--onu-colors-cyan50":"#012A32","--onu-colors-cyan100":"#023A46","--onu-colors-cyan200":"#024B5A","--onu-colors-cyan300":"#036072","--onu-colors-cyan400":"#037086","--onu-colors-cyan500":"#048EA9","--onu-colors-cyan600":"#06B7DB","--onu-colors-cyan700":"#33D9FA","--onu-colors-cyan800":"#6FE4FB","--onu-colors-cyan900":"#EBFBFE","--onu-colors-pink50":"#330025","--onu-colors-pink100":"#470033","--onu-colors-pink200":"#5C0042","--onu-colors-pink300":"#750054","--onu-colors-pink400":"#8A0063","--onu-colors-pink500":"#AD007C","--onu-colors-pink600":"#FF4ECD","--onu-colors-pink700":"#FF2EC4","--onu-colors-pink800":"#FF6BD5","--onu-colors-pink900":"#FFEBF9","--onu-colors-gray50":"#16181A","--onu-colors-gray100":"#26292B","--onu-colors-gray200":"#2B2F31","--onu-colors-gray300":"#313538","--onu-colors-gray400":"#3A3F42","--onu-colors-gray500":"#4C5155","--onu-colors-gray600":"#697177","--onu-colors-gray700":"#787F85","--onu-colors-gray800":"#9BA1A6","--onu-colors-gray900":"#ECEDEE","--onu-colors-white-light":"#ffffff","--onu-colors-text":"#CFD3DC","--onu-colors-text-darker":"#7C7C7D","--onu-colors-text-light":"#A3A6AD","--onu-colors-title":"#ECEDEE","--onu-colors-placeholder":"#8D9095","--onu-colors-border":"#4C4D4F","--onu-colors-border-light":"#414243","--onu-colors-border-darker":"#636466","--onu-colors-background":"var(--onu-colors-black)","--onu-colors-black-light":"#1d1e1f","--onu-colors-arrow":"#373739","--onu-colors-backgroundAlpha":"rgba(0, 0, 0, 0.6)","--onu-colors-foreground":"var(--onu-colors-white)","--onu-colors-backgroundContrast":"var(--onu-colors-gray50)","--onu-theme-primary":"var(--onu-colors-blue600)","--onu-theme-primaryHsl":`${p("#0072F5")}`,"--onu-theme-primaryLightHover":"var(--onu-colors-blue500)","--onu-theme-primaryLightActive":"var(--onu-colors-blue700)","--onu-theme-primaryBorderHover":"var(--onu-colors-blue500)","--onu-theme-primaryBorderActive":"var(--onu-colors-blue700)","--onu-theme-secondary":"var(--onu-colors-purple700)","--onu-theme-secondaryHsl":`${p("#9750DD")}`,"--onu-theme-secondaryLightHover":"var(--onu-colors-purple600)","--onu-theme-secondaryLightActive":"var(--onu-colors-purple800)","--onu-theme-secondaryBorderHover":"var(--onu-colors-purple600)","--onu-theme-secondaryBorderActive":"var(--onu-colors-purple800)","--onu-theme-success":"var(--onu-colors-green600)","--onu-theme-warning":"var(--onu-colors-yellow600)","--onu-theme-error":"var(--onu-colors-red600)","--onu-theme-info":"var(--onu-colors-gray700)","--onu-theme-infoHsl":`${p("#787F85")}`,"--onu-theme-infoLightHover":"var(--onu-colors-gray600)","--onu-theme-infoLightActive":"var(--onu-colors-gray800)","--onu-theme-infoBorderHover":"var(--onu-colors-gray600)","--onu-theme-infoBorderActive":"var(--onu-colors-gray800)"},Ko=o=>Object.entries(o).map(([e,t])=>`${e}: ${t}`).join(";");function Xo(){return{name:"@onu-ui/preset",theme:W,rules:co,variants:ao,shortcuts:I}}0&&(module.exports={darkTheme,getCSSPreflights,lightTheme,presetOnu}); |
{ | ||
"name": "@onu-ui/preset", | ||
"version": "1.0.13-beta.1", | ||
"version": "1.0.13-beta.2", | ||
"description": "Onu-UI css rules for unocss preset", | ||
@@ -5,0 +5,0 @@ "author": "chris-zhu <https://github.com/chris-zhu>", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80852