@onu-ui/preset
Advanced tools
Comparing version 1.0.10-beta.10 to 1.0.10-beta.11
@@ -1,8 +0,8 @@ | ||
"use strict";var b=Object.defineProperty;var ot=Object.getOwnPropertyDescriptor;var nt=Object.getOwnPropertyNames;var st=Object.prototype.hasOwnProperty;var it=(t,e)=>{for(var o in e)b(t,o,{get:e[o],enumerable:!0})},at=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of nt(e))!st.call(t,n)&&n!==o&&b(t,n,{get:()=>e[n],enumerable:!(r=ot(e,n))||r.enumerable});return t};var ct=t=>at(b({},"__esModule",{value:!0}),t);var Wt={};it(Wt,{presetOnu:()=>Ut});module.exports=ct(Wt);var $={"o-border-base":"border-gray-400/50","o-border-300":"border-gray-400/40","o-border-200":"border-gray-400/25","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-darkBg c-darkContext dark:c-lightContext","o-light":`!shadow-transparent bg-context:12 hover-bg-context active-bg-context:64 | ||
"use strict";var b=Object.defineProperty;var nt=Object.getOwnPropertyDescriptor;var st=Object.getOwnPropertyNames;var it=Object.prototype.hasOwnProperty;var at=(t,e)=>{for(var o in e)b(t,o,{get:e[o],enumerable:!0})},ct=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of st(e))!it.call(t,n)&&n!==o&&b(t,n,{get:()=>e[n],enumerable:!(r=nt(e,n))||r.enumerable});return t};var lt=t=>ct(b({},"__esModule",{value:!0}),t);var It={};at(It,{presetOnu:()=>Wt});module.exports=lt(It);var S={"o-border-base":"border-gray-400/50","o-border-300":"border-gray-400/40","o-border-200":"border-gray-400/25","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-darkBg c-darkContext dark:c-lightContext","o-light":`!shadow-transparent bg-context:12 hover-bg-context active-bg-context:64 | ||
!border-context !hover-border-context !active-border-context:64 | ||
!c-context !hover-c-white !active-c-white`,"o-text":`!shadow-transparent !bg-transparent !hover-bg-context:32 !active-bg-context:12 | ||
!border-transparent | ||
!c-context`};var S={pr:"relative",pa:"absolute",pf:"fixed","p-c":"pa top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2","f-c":"flex justify-center items-center","f-c-c":"f-c flex-col",fc:"flex justify-center",fi:"flex items-center",fcc:"flex justify-center items-center",fs:"flex justify-start",fsc:"flex justify-start items-center",fse:"flex justify-start items-end",fe:"flex justify-end",fec:"flex justify-end items-center",fb:"flex justify-between",fbc:"flex justify-between items-center",fa:"flex justify-around",fac:"flex justify-around items-center",fw:"flex justify-wrap",fwr:"flex justify-wrap-reverse"};var k={"o-alert-base":"pr p-3 fi rounded o-transition w-full of-hidden c-context shadow-context:50 o-solid border fi","o-alert-light":"o-light","o-alert-content":"flex flex-col justify-center w-full","o-alert-header":"fb items-center","o-alert-title":"flex-1 text-sm font-600","o-alert-close":"text-base cursor-pointer pa top-3 right-3 fcc","o-alert-icon":"fi pr-5","o-alert-description":"flex break-all items-center text-sm"};var C={"o-avatar-base":"fcc of-hidden shadow-sm aspect-square rounded-full bg-context text-white","o-avatar-mode-bg":"bg-cover","o-avatar-mode-img":"object-cover select-none","o-avatar-xs":"h-6 text-xs shadow-xs","o-avatar-sm":"h-8 text-sm shadow-sm","o-avatar-md":"h-10 text-sm shadow-md","o-avatar-lg":"h-15 text-base shadow-md","o-avatar-group-base":"flex space-x--4 children-relative"},_=[[/^o-avatar-group-(.*)$/,([,t])=>{if(["xs","sm","md","lg"].includes(t)){let e=t,o={xs:"h-6 text-xs shadow-xs",sm:"h-8 text-sm shadow-sm",md:"h-10 text-sm shadow-md",lg:"h-15 text-base shadow-md"};return`important-${{xs:"space-x--2",sm:"space-x--3",md:"space-x--4",lg:"space-x--6"}[e]} ${o[e].split(" ").map(n=>`important-children-${n}`).join(" ")}`}}]];var A={"o-badge":"pr inline-block align-middle","o-badge-sup":"bg-context text-xs min-w-4.5 h-4.5 leading-4.5 whitespace-nowrap fcc inline-flex rounded-full px-1 z-1","o-badge-sup-fixed":"pa top-0 right-0 translate-x-[calc(50%-1px)] translate-y-[calc(-50%+1px)]","o-badge-sup-dot":"!min-w-auto !h-2 !w-2 rounded-full"};var T={"o-button-base":"fcc gap-1 inline-flex cursor-pointer rounded shadow-context:50 c-context o-solid border !focus:outline-none","o-button-hover":"hover-border-context:64 hover-text-white hover-bg-context:64","o-button-active":"active-border-context:32 active-text-white active-bg-context:32","o-button-light":"o-light","o-button-text":"o-text","o-button-xs":"px-2.5 h-6 text-xs shadow-xs","o-button-sm":"px-3 h-7 text-sm shadow-sm","o-button-md":"px-4 h-8 text-sm shadow-md","o-button-lg":"px-4 h-9 text-base shadow-lg"};var M={"o-card-bg":"bg-gradient-linear backdrop-blur-lg","o-card-base":"o-card-bg o-transition list-none relative rounded-md c-context w-full of-hidden","o-card":"o-card-base h-fit dark:b-darkBd dark:border","o-card-md":"rounded-md text-sm","o-card-sm":"rounded-sm text-xs","o-card-cover":"children-w-full children-aspect-video","o-card-header":"fb px-4 py-2.5","o-card-header-wrapper":"flex flex-col flex-1 gap-1.5","o-card-header-title":"text-base dark:c-darkTitle","o-card-header-description":"text-xs c-context:60 dark:c-darkSubText break-all !m-0","o-card-header-extra":"","o-card-body":"p-4 pt-1.5 leading-normal text-sm dark:c-darkText","o-card-actions":"p-4 pt-2","o-card-bordered":"border border-light-700 dark:b-darkBd important-shadow-none","o-card-hoverable":"border border-light-700 hover-translate-y--1 hover-important-shadow-cardMD","o-card-shadow-always":"!shadow-cardMD","o-card-shadow-never":"shadow-none border border-light-700","o-card-embed":"bg-embed dark:bg-dark"};var j={"o-checkbox-base":"fsc gap-1 inline-flex cursor-pointer","o-checkbox":"o-transition text-base rounded border fcc peer-checked-(bg-context b-context scale-full children-scale-full)","o-checkbox-icon":"o-transition scale-0 text-(white base)","o-checkbox-md":"w-4 h-4","o-checkbox-lg":"w-5 h-5","o-checkbox-disabled":"o-disabled"};var R={"o-collapse-base":"p2","o-collapse-item-title":"fi py-3 transition-all duration-300 cursor-pointer border-b-(1px solid #ebeef5)","o-collapse-item-title-active":"border-b-transparent","o-collapse-item-title-arrow-right":"justify-between","o-collapse-item-title-left":"fi gap-2","o-collapse-item-title-arrow-base":"transition-all duration-300 text-2xl","o-collapse-item-wrap":"overflow-hidden box-border transition-all duration-300 ease-out","o-collapse-item-content":"pb-5 border-b-(1px solid #ebeef5)"};var E={"o-icon-base":"c-context text-base"};var O={"o-message-base":"fixed o-transparent left-1/2 translate-x--1/2 o-transition shadow-md py-2 px-3 fi rounded of-hidden gap-3 text-sm font-semibold","o-message-closable":"cursor-pointer","o-message-content":"fi gap-2"},F=[[/^o-message-icon-(.*)$/,([,t])=>{let e=t;if(["primary","secondary","success","warning","error","info"].includes(e))return`${{primary:"i-carbon:favorite-filled",secondary:"i-carbon:asleep-filled",success:"i-carbon:checkmark-filled",warning:"i-carbon:warning-alt-filled",error:"i-carbon-close-filled",info:"i-carbon-information-filled"}[e]}`}]];var B={"o-switch-base":"b-(~ $o-switch-bc) bg-$o-switch-dot","o-switch-base-active":"checked-(b-context bg-$o-switch-dot-active)","o-switch-shadow":"shadow-switch checked-shadow-switchActive","o-switch":"o-switch-base o-switch-base-active o-switch-shadow appearance-none cursor-pointer flex-shrink-0 o-transition duration-300 rounded-full","o-switch-disabled":"o-disabled"};var N={"o-tag-base":"fcc gap-1 rounded inline-flex box-border !focus:outline-none c-context o-solid mx-1","o-tag-is-closable":"pr-7px","o-tag-xs":"px-1.5 h-5 text-xs","o-tag-sm":"px-2.5 h-6 text-sm","o-tag-md":"px-3 h-7 text-sm ","o-tag-lg":"px-4 h-8 text-base","o-tag-plain":"bg-context:20","o-tag-light":"c-context border !border-context:60 bg-context:12","o-tag-disabled":"o-disabled","o-tag-rounded":"rounded-full","o-tag-close":"ml-1.5 cursor-pointer c-context"};var L={"o-popup-title":"font-medium text-base","o-popup-content":"mt-1 break-words text-left text-sm"};var z={"o-trigger-popup-content":"box-border px-3 py-4 shadow-trigger rounded bg-light-100 dark:bg-darkBg c-context dark:b-darkBd b-softBd border","o-trigger-popup-arrow":"absolute z-2 bg-light-100 dark:bg-grayBg border b-light-900 dark:b-grayBd box-border w-2 h-2 ","o-trigger-top":"b-t-0 b-l-0 rounded-br-sm","o-trigger-left":"b-b-0 b-l-0 rounded-tr-sm","o-trigger-right":"b-t-0 b-r-0 rounded-bl-sm","o-trigger-bottom":"b-r-0 b-b-0 rounded-tl-sm","o-trigger-top-left":"b-t-0 b-l-0 rounded-br-sm","o-trigger-top-right":"b-t-0 b-l-0 rounded-br-sm","o-trigger-bottom-left":"b-r-0 b-b-0 rounded-tl-sm","o-trigger-bottom-right":"b-r-0 b-b-0 rounded-tl-sm","o-trigger-left-top":"b-b-0 b-l-0 rounded-tr-sm","o-trigger-left-bottom":"b-b-0 b-l-0 rounded-tr-sm","o-trigger-right-top":"b-t-0 b-r-0 rounded-bl-sm","o-trigger-right-bottom":"b-t-0 b-r-0 rounded-bl-sm"};var V={"o-rate":"f-c cursor-pointer","o-rate-icon":"text-xl m-.5 !w-5 !h-5","o-rate-text":"leading-5","o-rate-half":"o-bg-clip-half"};var P=[$,S,k,C,..._,A,T,M,j,R,E,O,...F,B,N,L,z,V];var D={colors:{context:"rgba(var(--onu-c-context),%alpha)",primary:"#a855f7",secondary:"#1ABCFE",success:"#0ACF83",warning:"#FF9F43",error:"#FF5C5C",info:"#373e47",placeholder:"#dcdcdc",darkBd:"#4C4D4F",grayBd:"#484849",darkBg:"#373739",darkTitle:"#ECECEC",darkText:"#7C7C7D",darkSubText:"rgba(255,255,255,.7)",softBd:"#E5E6EB",grayBg:"#373739",embed:"#F1F3F5",darkContext:"rgba(28,31,35)",lightContext:"rgba(249,249,249)"},fontFamily:{sans:"Avenir, Helvetica, Arial, sans-serif"},boxShadow:{xs:"var(--un-shadow-inset) 0 1px 1px 0 var(--un-shadow-color, rgba(0,0,0,0.03))",switch:"calc(var(--o-switch-offset) * -1) 0 0 2px var(--o-switch-bc) inset, 0 0 0 2px var(--o-switch-bc) inset;",switchActive:"calc(var(--o-switch-offset)) 0 0 2px var(--o-switch-c) inset, 0 0 0 2px var(--o-switch-c) inset;",trigger:"0px 4px 10px #0000001a",cardMD:"0px 0px 12px rgb(0 0 0 / 12%)",cardSM:"0px 0px 6px rgb(0 0 0 / 12%)"},animation:{keyframes:{switching:`{0%{ box-shadow: 0 0 0 2px #1890ff66; } | ||
!c-context`,"o-description":"c-context:60 dark:c-darkSubText break-all"};var $={pr:"relative",pa:"absolute",pf:"fixed","p-c":"pa top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2","f-c":"flex justify-center items-center","f-c-c":"f-c flex-col",fc:"flex justify-center",fi:"flex items-center",fcc:"flex justify-center items-center",fs:"flex justify-start",fsc:"flex justify-start items-center",fse:"flex justify-start items-end",fe:"flex justify-end",fec:"flex justify-end items-center",fb:"flex justify-between",fbc:"flex justify-between items-center",fa:"flex justify-around",fac:"flex justify-around items-center",fw:"flex justify-wrap",fwr:"flex justify-wrap-reverse"};var k={"o-alert-base":"pr p-3 fi rounded o-transition w-full of-hidden c-context shadow-context:50 o-solid border fi","o-alert-light":"o-light","o-alert-content":"flex flex-col justify-center w-full","o-alert-header":"fb items-center","o-alert-title":"flex-1 text-sm font-600","o-alert-close":"text-base cursor-pointer pa top-3 right-3 fcc","o-alert-icon":"fi pr-5","o-alert-description":"flex break-all items-center text-sm"};var C={"o-avatar-base":"fcc of-hidden shadow-sm aspect-square rounded-full bg-context text-white","o-avatar-mode-bg":"bg-cover","o-avatar-mode-img":"object-cover select-none","o-avatar-xs":"h-6 text-xs shadow-xs","o-avatar-sm":"h-8 text-sm shadow-sm","o-avatar-md":"h-10 text-sm shadow-md","o-avatar-lg":"h-15 text-base shadow-md","o-avatar-group-base":"flex space-x--4 children-relative"},_=[[/^o-avatar-group-(.*)$/,([,t])=>{if(["xs","sm","md","lg"].includes(t)){let e=t,o={xs:"h-6 text-xs shadow-xs",sm:"h-8 text-sm shadow-sm",md:"h-10 text-sm shadow-md",lg:"h-15 text-base shadow-md"};return`important-${{xs:"space-x--2",sm:"space-x--3",md:"space-x--4",lg:"space-x--6"}[e]} ${o[e].split(" ").map(n=>`important-children-${n}`).join(" ")}`}}]];var A={"o-badge":"pr inline-block align-middle","o-badge-sup":"bg-context text-xs min-w-4.5 h-4.5 leading-4.5 whitespace-nowrap fcc inline-flex rounded-full px-1 z-1","o-badge-sup-fixed":"pa top-0 right-0 translate-x-[calc(50%-1px)] translate-y-[calc(-50%+1px)]","o-badge-sup-dot":"!min-w-auto !h-2 !w-2 rounded-full"};var T={"o-button-base":"fcc gap-1 inline-flex cursor-pointer rounded shadow-context:50 c-context o-solid border !focus:outline-none","o-button-hover":"hover-border-context:64 hover-text-white hover-bg-context:64","o-button-active":"active-border-context:32 active-text-white active-bg-context:32","o-button-light":"o-light","o-button-text":"o-text","o-button-xs":"px-2.5 h-6 text-xs shadow-xs","o-button-sm":"px-3 h-7 text-sm shadow-sm","o-button-md":"px-4 h-8 text-sm shadow-md","o-button-lg":"px-4 h-9 text-base shadow-lg"};var M={"o-card-bg":"bg-gradient-linear backdrop-blur-lg","o-card-base":"o-card-bg o-transition list-none relative rounded-md c-context w-full of-hidden","o-card":"o-card-base h-fit dark:b-darkBd dark:border","o-card-md":"rounded-md text-sm","o-card-sm":"rounded-sm text-xs","o-card-cover":"children-w-full children-aspect-video","o-card-header":"fb px-4 py-2.5","o-card-header-wrapper":"flex flex-col flex-1 gap-1.5","o-card-header-title":"text-base dark:c-darkTitle","o-card-header-description":"text-xs c-context:60 dark:c-darkSubText break-all !m-0","o-card-header-extra":"","o-card-body":"p-4 pt-1.5 leading-normal text-sm dark:c-darkText","o-card-actions":"p-4 pt-2","o-card-bordered":"border border-light-700 dark:b-darkBd important-shadow-none","o-card-hoverable":"border border-light-700 hover-translate-y--1 hover-important-shadow-cardMD","o-card-shadow-always":"!shadow-cardMD","o-card-shadow-never":"shadow-none border border-light-700","o-card-embed":"bg-embed dark:bg-dark"};var R={"o-checkbox-base":"fsc gap-1 inline-flex cursor-pointer","o-checkbox":"o-transition text-base rounded border fcc peer-checked-(bg-context b-context scale-full children-scale-full)","o-checkbox-icon":"o-transition scale-0 text-(white base)","o-checkbox-md":"w-4 h-4","o-checkbox-lg":"w-5 h-5","o-checkbox-disabled":"o-disabled"};var j={"o-collapse-base":"p2","o-collapse-item-title":"fi py-3 transition-all duration-300 cursor-pointer border-b-(1px solid #ebeef5)","o-collapse-item-title-active":"border-b-transparent","o-collapse-item-title-arrow-right":"justify-between","o-collapse-item-title-left":"fi gap-2","o-collapse-item-title-arrow-base":"transition-all duration-300 text-2xl","o-collapse-item-wrap":"overflow-hidden box-border transition-all duration-300 ease-out","o-collapse-item-content":"pb-5 border-b-(1px solid #ebeef5)"};var E={"o-icon-base":"c-context text-base"};var O={"o-message-base":"fixed o-transparent left-1/2 translate-x--1/2 o-transition shadow-md py-2 px-3 fi rounded of-hidden gap-3 text-sm font-semibold","o-message-closable":"cursor-pointer","o-message-content":"fi gap-2"},F=[[/^o-message-icon-(.*)$/,([,t])=>{let e=t;if(["primary","secondary","success","warning","error","info"].includes(e))return`${{primary:"i-carbon:favorite-filled",secondary:"i-carbon:asleep-filled",success:"i-carbon:checkmark-filled",warning:"i-carbon:warning-alt-filled",error:"i-carbon-close-filled",info:"i-carbon-information-filled"}[e]}`}]];var B={"o-switch-base":"b-(~ $o-switch-bc) bg-$o-switch-dot","o-switch-base-active":"checked-(b-context bg-$o-switch-dot-active)","o-switch-shadow":"shadow-switch checked-shadow-switchActive","o-switch":"o-switch-base o-switch-base-active o-switch-shadow appearance-none cursor-pointer flex-shrink-0 o-transition duration-300 rounded-full","o-switch-disabled":"o-disabled"};var N={"o-tag-base":"fcc gap-1 rounded inline-flex box-border !focus:outline-none c-context o-solid mx-1","o-tag-is-closable":"pr-7px","o-tag-xs":"px-1 h-5 text-xs","o-tag-sm":"px-2 h-6 text-sm","o-tag-md":"px-3 h-6.5 text-sm ","o-tag-lg":"px-4 h-7 text-base","o-tag-plain":"bg-context:20","o-tag-light":"c-context border !border-context:60 bg-context:12","o-tag-disabled":"o-disabled","o-tag-rounded":"rounded-full","o-tag-close":"ml-1.5 cursor-pointer c-context"};var L={"o-popup-title":"font-medium text-base","o-popup-content":"mt-1 break-words text-left text-sm"};var z={"o-trigger-popup-content":"box-border px-3 py-4 shadow-trigger rounded bg-light-100 dark:bg-darkBg c-context dark:b-darkBd b-softBd border","o-trigger-popup-arrow":"absolute z-2 bg-light-100 dark:bg-grayBg border b-light-900 dark:b-grayBd box-border w-2 h-2 ","o-trigger-top":"b-t-0 b-l-0 rounded-br-sm","o-trigger-left":"b-b-0 b-l-0 rounded-tr-sm","o-trigger-right":"b-t-0 b-r-0 rounded-bl-sm","o-trigger-bottom":"b-r-0 b-b-0 rounded-tl-sm","o-trigger-top-left":"b-t-0 b-l-0 rounded-br-sm","o-trigger-top-right":"b-t-0 b-l-0 rounded-br-sm","o-trigger-bottom-left":"b-r-0 b-b-0 rounded-tl-sm","o-trigger-bottom-right":"b-r-0 b-b-0 rounded-tl-sm","o-trigger-left-top":"b-b-0 b-l-0 rounded-tr-sm","o-trigger-left-bottom":"b-b-0 b-l-0 rounded-tr-sm","o-trigger-right-top":"b-t-0 b-r-0 rounded-bl-sm","o-trigger-right-bottom":"b-t-0 b-r-0 rounded-bl-sm"};var V={"o-rate":"f-c cursor-pointer","o-rate-icon":"text-xl m-.5 !w-5 !h-5","o-rate-text":"leading-5","o-rate-half":"o-bg-clip-half"};var P={"o-empty-base":"f-c-c text-center box-border pt-8 pb-8 w-full","o-empty-img":"w-40"};var D=[S,$,k,C,..._,A,T,M,R,j,E,O,...F,B,N,L,z,V,P];var U={colors:{context:"rgba(var(--onu-c-context),%alpha)",primary:"#a855f7",secondary:"#1ABCFE",success:"#0ACF83",warning:"#FF9F43",error:"#FF5C5C",info:"#373e47",placeholder:"#dcdcdc",darkBd:"#4C4D4F",grayBd:"#484849",darkBg:"#373739",darkTitle:"#ECECEC",darkText:"#7C7C7D",darkSubText:"rgba(255,255,255,.7)",softBd:"#E5E6EB",grayBg:"#373739",embed:"#F1F3F5",darkContext:"rgba(28,31,35)",lightContext:"rgba(249,249,249)"},fontFamily:{sans:"Avenir, Helvetica, Arial, sans-serif"},boxShadow:{xs:"var(--un-shadow-inset) 0 1px 1px 0 var(--un-shadow-color, rgba(0,0,0,0.03))",switch:"calc(var(--o-switch-offset) * -1) 0 0 2px var(--o-switch-bc) inset, 0 0 0 2px var(--o-switch-bc) inset;",switchActive:"calc(var(--o-switch-offset)) 0 0 2px var(--o-switch-c) inset, 0 0 0 2px var(--o-switch-c) inset;",trigger:"0px 4px 10px #0000001a",cardMD:"0px 0px 12px rgb(0 0 0 / 12%)",cardSM:"0px 0px 6px rgb(0 0 0 / 12%)"},animation:{keyframes:{switching:`{0%{ box-shadow: 0 0 0 2px #1890ff66; } | ||
60%{ box-shadow: 0 0 0 4px #1890ff33; } | ||
80%{ box-shadow: 0 0 0 6px #1890ff1a; } | ||
100%{ box-shadow: 0 0 0 8px #1890ff0d; }}`},durations:{switching:"0.3s"}}};function U(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function W(t){let e=t.length,o=-1,r,n="",s=t.charCodeAt(0);for(;++o<e;){if(r=t.charCodeAt(o),r===0){n+="\uFFFD";continue}if(r===44){n+="\\,";continue}if(r>=1&&r<=31||r===127||o===0&&r>=48&&r<=57||o===1&&r>=48&&r<=57&&s===45){n+=`\\${r.toString(16)} `;continue}if(o===0&&e===1&&r===45){n+=`\\${t.charAt(o)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){n+=t.charAt(o);continue}n+=`\\${t.charAt(o)}`}return n}function I(t){return typeof t=="string"}function H(t){let e=function(r){let n=this.__options?.sequence||[];this.__options.sequence=[];for(let s of n){let i=t[s](r);if(i!=null)return i}};function o(r,n){return r.__options||(r.__options={sequence:[]}),r.__options.sequence.push(n),r}for(let r of Object.keys(t))Object.defineProperty(e,r,{enumerable:!0,get(){return o(this,r)}});return e}var lt="default",ft="preflights",ut="shortcuts",Ce={[ft]:-100,[ut]:-10,[lt]:0};var q={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"]},pt={...q,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 G=["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"],ht=Object.assign({},...G.map(t=>({[t.replace(/ /,"-")]:t})),...G.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),Y=["inherit","initial","revert","revert-layer","unset"],y=/^(-?[0-9.]+)(px|pt|pc|%|r?em|ex|ch|ic|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,dt=/^(-?[0-9.]+)$/i,K=/^(px)$/i,mt=["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 c(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function gt(t){let e=t.match(y);if(!e)return;let[,o,r]=e,n=parseFloat(o);if(r&&!Number.isNaN(n))return`${c(n)}${r}`}function bt(t){if(t==="auto"||t==="a")return"auto"}function xt(t){if(t.match(K))return`1${t}`;let e=t.match(y);if(!e)return;let[,o,r]=e,n=parseFloat(o);if(!Number.isNaN(n))return r?`${c(n)}${r}`:`${c(n/4)}rem`}function yt(t){if(t.match(K))return`1${t}`;let e=t.match(y);if(!e)return;let[,o,r]=e,n=parseFloat(o);if(!Number.isNaN(n))return r?`${c(n)}${r}`:`${c(n)}px`}function wt(t){if(!dt.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return c(e)}function vt(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${c(e/100)}`}function $t(t){if(t==="full")return"100%";let[e,o]=t.split("/"),r=parseFloat(e)/parseFloat(o);if(!Number.isNaN(r))return`${c(r*100)}%`}var St=/^\[(color|length|position|quoted|string):/i;function m(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let o,r,n=t.match(St);if(n?(e||(r=n[1]),o=t.slice(n[0].length,-1)):o=t.slice(1,-1),!o)return;let s=0;for(let i of o)if(i==="[")s+=1;else if(i==="]"&&(s-=1,s<0))return;if(s)return;switch(r){case"string":return o.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return o.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return o.replace(/(url\(.*?\))/g,i=>i.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,i=>i.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function kt(t){return m(t)}function Ct(t){return m(t,"color")}function _t(t){return m(t,"length")}function At(t){return m(t,"position")}function Tt(t){if(t.match(/^\$\S/))return`var(--${W(t.slice(1))})`}function Mt(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,o,r]=e,n=parseFloat(o);if(!Number.isNaN(n))return r?`${c(n)}${r}`:`${c(n)}ms`}function jt(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,o,r]=e,n=parseFloat(o);if(!Number.isNaN(n))return r?`${c(n)}${r}`:`${c(n)}deg`}function Rt(t){if(Y.includes(t))return t}function Et(t){if(t.split(",").every(e=>mt.includes(e)))return t}function Ot(t){if(["top","left","right","bottom","center"].includes(t))return t}var J={__proto__:null,numberWithUnit:gt,auto:bt,rem:xt,px:yt,number:wt,percent:vt,fraction:$t,bracket:kt,bracketOfColor:Ct,bracketOfLength:_t,bracketOfPosition:At,cssvar:Tt,time:Mt,degree:jt,global:Rt,properties:Et,position:Ot},h=H(J);function x(t,e){let o=t.colors,r=-1;for(let n of e){if(r+=1,o&&typeof o!="string"){let s=e.slice(r).join("-").replace(/(-[a-z])/g,i=>i.slice(1).toUpperCase());if(o[s])return o[s];if(o[n]){o=o[n];continue}}return}return o}function w(t,e){let o=t.split(/(?:\/|:)/),r,n;o[0]==="[color"?(r=o.slice(0,2).join(":"),n=o[2]):[r,n]=o;let s=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[i]=s;if(!i)return;let a,f=h.bracketOfColor(r),p=f||r;p.match(/^#[\da-fA-F]+/g)?a=p:p.match(/^hex-[\da-fA-F]+/g)?a=`#${p.slice(4)}`:r.startsWith("$")&&(a=h.cssvar(r)),a=a||f;let u="DEFAULT";if(!a){let l,[v]=s.slice(-1);v.match(/^\d+$/)?(u=v,l=x(e,s.slice(0,-1)),!l||typeof l=="string"?a=void 0:a=l[u]):(l=x(e,s),!l&&s.length<=2&&([,u=u]=s,l=x(e,[i])),typeof l=="string"?a=l:u&&l&&(a=l[u]))}return{opacity:n,name:i,no:u,color:a,cssColor:Z(a),alpha:h.bracket.cssvar.percent(n??"")}}function Q(t,e,o,r){if(t===""||(I(r)&&(r=[r]),r.length===0))return;let n=t.length,s=0;for(let i=0;i<n;i++)switch(t[i]){case e:s++;break;case o:if(--s<0)return;break;default:for(let a of r){let f=a.length;if(f&&a===t.slice(i,i+f)&&s===0)return i===0||i===n-f?void 0:[t.slice(0,i),t.slice(i+f)]}}return[t,""]}function d(t,e,o){o=o??10;let r=[],n=0;for(;t!=="";){if(++n>o)return;let s=Q(t,"(",")",e);if(!s)return;let[i,a]=s;r.push(i),t=a}if(r.length>0)return r}var X=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Ft=["%alpha","<alpha-value>"],Me=new RegExp(Ft.map(t=>U(t)).join("|"));function Z(t=""){let e=Bt(t);if(e==null||e===!1)return;let{type:o,components:r,alpha:n}=e,s=o.toLowerCase();if(r.length!==0&&!(["rgba","hsla"].includes(s)&&n==null)&&!(X.includes(s)&&![1,3].includes(r.length)))return{type:s,components:r.map(i=>typeof i=="string"?i.trim():i),alpha:typeof n=="string"?n.trim():n}}function Bt(t){if(!t)return;let e=Nt(t);if(e!=null||(e=Lt(t),e!=null)||(e=zt(t),e!=null)||(e=Pt(t),e!=null)||(e=Dt(t),e!=null))return e}function Nt(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let o=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:o.slice(0,3),alpha:e.length===3?void 0:Math.round(o[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 Lt(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function zt(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,o,r]=e,n=d(r,",",5);if(n){if([3,4].includes(n.length))return{type:o,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var Vt=new RegExp(`^(${X.join("|")})\\((.+)\\)$`,"i");function Pt(t){let e=t.match(Vt);if(!e)return;let[,o,r]=e,n=tt(`${o} ${r}`);if(n){let{alpha:s,components:[i,...a]}=n;return{type:i,components:a,alpha:s}}}function Dt(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let o=tt(e[1]);if(o){let{alpha:r,components:[n,...s]}=o;return{type:n,components:s,alpha:r}}}function tt(t){let e=d(t," ");if(!e)return;let o=e.length;if(e[o-2]==="/")return{components:e.slice(0,o-2),alpha:e[o-1]};if(e[o-2]!=null&&(e[o-2].endsWith("/")||e[o-1].startsWith("/"))){let s=e.splice(o-2);e.push(s.join(" ")),--o}let r=d(e[o-1],"/",2);if(!r)return;if(r.length===1||r[r.length-1]==="")return{components:e};let n=r.pop();return e[o-1]=r.join("/"),{components:e,alpha:n}}var g={sm:["2rem","1.125rem","0.85rem"],md:["2.5rem","1.375rem","1.1rem"],lg:["3rem","1.625rem","1.375rem"]};var et=[[/^o-(.*)$/,([,t],{theme:e})=>{let o=w(t,e);if(o?.cssColor?.type==="rgb"&&o.cssColor.components)return{"--onu-c-context":`${o.cssColor.components.join(",")}`}}],[/^o-switch-(.+)$/,([,t])=>{if(["sm","md","lg"].includes(t))return{"--o-switch-offset":g[t][2],width:g[t][0],height:g[t][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-disabled",{opacity:.4,cursor:"not-allowed !important"}],["o-bg-clip-half",{"clip-path":"polygon(0% 0%, 50% 0, 50% 50%, 50% 100%, 0% 100%)"}]];var rt=[t=>{let e="o-disabled:";if(t.startsWith(e))return{matcher:t.slice(e.length),selector:o=>`[disabled] ${o}, ${o}[disabled]`}},t=>{let e="o-checked:";if(t.startsWith(e))return{matcher:t.slice(e.length),selector:o=>`[checked] ${o}, ${o}[checked]`}}];function Ut(){return{name:"@onu-ui/preset",theme:D,rules:et,variants:rt,shortcuts:P}}0&&(module.exports={presetOnu}); | ||
100%{ box-shadow: 0 0 0 8px #1890ff0d; }}`},durations:{switching:"0.3s"}}};function W(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(t){let e=t.length,o=-1,r,n="",s=t.charCodeAt(0);for(;++o<e;){if(r=t.charCodeAt(o),r===0){n+="\uFFFD";continue}if(r===44){n+="\\,";continue}if(r>=1&&r<=31||r===127||o===0&&r>=48&&r<=57||o===1&&r>=48&&r<=57&&s===45){n+=`\\${r.toString(16)} `;continue}if(o===0&&e===1&&r===45){n+=`\\${t.charAt(o)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){n+=t.charAt(o);continue}n+=`\\${t.charAt(o)}`}return n}function H(t){return typeof t=="string"}function G(t){let e=function(r){let n=this.__options?.sequence||[];this.__options.sequence=[];for(let s of n){let i=t[s](r);if(i!=null)return i}};function o(r,n){return r.__options||(r.__options={sequence:[]}),r.__options.sequence.push(n),r}for(let r of Object.keys(t))Object.defineProperty(e,r,{enumerable:!0,get(){return o(this,r)}});return e}var ft="default",ut="preflights",pt="shortcuts",Te={[ut]:-100,[pt]:-10,[ft]:0};var Y={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"]},ht={...Y,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 q=["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"],dt=Object.assign({},...q.map(t=>({[t.replace(/ /,"-")]:t})),...q.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),K=["inherit","initial","revert","revert-layer","unset"],y=/^(-?[0-9.]+)(px|pt|pc|%|r?em|ex|ch|ic|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,mt=/^(-?[0-9.]+)$/i,J=/^(px)$/i,gt=["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 c(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function bt(t){let e=t.match(y);if(!e)return;let[,o,r]=e,n=parseFloat(o);if(r&&!Number.isNaN(n))return`${c(n)}${r}`}function xt(t){if(t==="auto"||t==="a")return"auto"}function yt(t){if(t.match(J))return`1${t}`;let e=t.match(y);if(!e)return;let[,o,r]=e,n=parseFloat(o);if(!Number.isNaN(n))return r?`${c(n)}${r}`:`${c(n/4)}rem`}function wt(t){if(t.match(J))return`1${t}`;let e=t.match(y);if(!e)return;let[,o,r]=e,n=parseFloat(o);if(!Number.isNaN(n))return r?`${c(n)}${r}`:`${c(n)}px`}function vt(t){if(!mt.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return c(e)}function St(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${c(e/100)}`}function $t(t){if(t==="full")return"100%";let[e,o]=t.split("/"),r=parseFloat(e)/parseFloat(o);if(!Number.isNaN(r))return`${c(r*100)}%`}var kt=/^\[(color|length|position|quoted|string):/i;function m(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let o,r,n=t.match(kt);if(n?(e||(r=n[1]),o=t.slice(n[0].length,-1)):o=t.slice(1,-1),!o)return;let s=0;for(let i of o)if(i==="[")s+=1;else if(i==="]"&&(s-=1,s<0))return;if(s)return;switch(r){case"string":return o.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return o.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return o.replace(/(url\(.*?\))/g,i=>i.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,i=>i.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function Ct(t){return m(t)}function _t(t){return m(t,"color")}function At(t){return m(t,"length")}function Tt(t){return m(t,"position")}function Mt(t){if(t.match(/^\$\S/))return`var(--${I(t.slice(1))})`}function Rt(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,o,r]=e,n=parseFloat(o);if(!Number.isNaN(n))return r?`${c(n)}${r}`:`${c(n)}ms`}function jt(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,o,r]=e,n=parseFloat(o);if(!Number.isNaN(n))return r?`${c(n)}${r}`:`${c(n)}deg`}function Et(t){if(K.includes(t))return t}function Ot(t){if(t.split(",").every(e=>gt.includes(e)))return t}function Ft(t){if(["top","left","right","bottom","center"].includes(t))return t}var Q={__proto__:null,numberWithUnit:bt,auto:xt,rem:yt,px:wt,number:vt,percent:St,fraction:$t,bracket:Ct,bracketOfColor:_t,bracketOfLength:At,bracketOfPosition:Tt,cssvar:Mt,time:Rt,degree:jt,global:Et,properties:Ot,position:Ft},h=G(Q);function x(t,e){let o=t.colors,r=-1;for(let n of e){if(r+=1,o&&typeof o!="string"){let s=e.slice(r).join("-").replace(/(-[a-z])/g,i=>i.slice(1).toUpperCase());if(o[s])return o[s];if(o[n]){o=o[n];continue}}return}return o}function w(t,e){let o=t.split(/(?:\/|:)/),r,n;o[0]==="[color"?(r=o.slice(0,2).join(":"),n=o[2]):[r,n]=o;let s=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[i]=s;if(!i)return;let a,f=h.bracketOfColor(r),p=f||r;p.match(/^#[\da-fA-F]+/g)?a=p:p.match(/^hex-[\da-fA-F]+/g)?a=`#${p.slice(4)}`:r.startsWith("$")&&(a=h.cssvar(r)),a=a||f;let u="DEFAULT";if(!a){let l,[v]=s.slice(-1);v.match(/^\d+$/)?(u=v,l=x(e,s.slice(0,-1)),!l||typeof l=="string"?a=void 0:a=l[u]):(l=x(e,s),!l&&s.length<=2&&([,u=u]=s,l=x(e,[i])),typeof l=="string"?a=l:u&&l&&(a=l[u]))}return{opacity:n,name:i,no:u,color:a,cssColor:tt(a),alpha:h.bracket.cssvar.percent(n??"")}}function X(t,e,o,r){if(t===""||(H(r)&&(r=[r]),r.length===0))return;let n=t.length,s=0;for(let i=0;i<n;i++)switch(t[i]){case e:s++;break;case o:if(--s<0)return;break;default:for(let a of r){let f=a.length;if(f&&a===t.slice(i,i+f)&&s===0)return i===0||i===n-f?void 0:[t.slice(0,i),t.slice(i+f)]}}return[t,""]}function d(t,e,o){o=o??10;let r=[],n=0;for(;t!=="";){if(++n>o)return;let s=X(t,"(",")",e);if(!s)return;let[i,a]=s;r.push(i),t=a}if(r.length>0)return r}var Z=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Bt=["%alpha","<alpha-value>"],Ee=new RegExp(Bt.map(t=>W(t)).join("|"));function tt(t=""){let e=Nt(t);if(e==null||e===!1)return;let{type:o,components:r,alpha:n}=e,s=o.toLowerCase();if(r.length!==0&&!(["rgba","hsla"].includes(s)&&n==null)&&!(Z.includes(s)&&![1,3].includes(r.length)))return{type:s,components:r.map(i=>typeof i=="string"?i.trim():i),alpha:typeof n=="string"?n.trim():n}}function Nt(t){if(!t)return;let e=Lt(t);if(e!=null||(e=zt(t),e!=null)||(e=Vt(t),e!=null)||(e=Dt(t),e!=null)||(e=Ut(t),e!=null))return e}function Lt(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let o=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:o.slice(0,3),alpha:e.length===3?void 0:Math.round(o[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 zt(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Vt(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,o,r]=e,n=d(r,",",5);if(n){if([3,4].includes(n.length))return{type:o,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var Pt=new RegExp(`^(${Z.join("|")})\\((.+)\\)$`,"i");function Dt(t){let e=t.match(Pt);if(!e)return;let[,o,r]=e,n=et(`${o} ${r}`);if(n){let{alpha:s,components:[i,...a]}=n;return{type:i,components:a,alpha:s}}}function Ut(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let o=et(e[1]);if(o){let{alpha:r,components:[n,...s]}=o;return{type:n,components:s,alpha:r}}}function et(t){let e=d(t," ");if(!e)return;let o=e.length;if(e[o-2]==="/")return{components:e.slice(0,o-2),alpha:e[o-1]};if(e[o-2]!=null&&(e[o-2].endsWith("/")||e[o-1].startsWith("/"))){let s=e.splice(o-2);e.push(s.join(" ")),--o}let r=d(e[o-1],"/",2);if(!r)return;if(r.length===1||r[r.length-1]==="")return{components:e};let n=r.pop();return e[o-1]=r.join("/"),{components:e,alpha:n}}var g={sm:["2rem","1.125rem","0.85rem"],md:["2.5rem","1.375rem","1.1rem"],lg:["3rem","1.625rem","1.375rem"]};var rt=[[/^o-(.*)$/,([,t],{theme:e})=>{let o=w(t,e);if(o?.cssColor?.type==="rgb"&&o.cssColor.components)return{"--onu-c-context":`${o.cssColor.components.join(",")}`}}],[/^o-switch-(.+)$/,([,t])=>{if(["sm","md","lg"].includes(t))return{"--o-switch-offset":g[t][2],width:g[t][0],height:g[t][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-disabled",{opacity:.4,cursor:"not-allowed !important"}],["o-bg-clip-half",{"clip-path":"polygon(0% 0%, 50% 0, 50% 50%, 50% 100%, 0% 100%)"}]];var ot=[t=>{let e="o-disabled:";if(t.startsWith(e))return{matcher:t.slice(e.length),selector:o=>`[disabled] ${o}, ${o}[disabled]`}},t=>{let e="o-checked:";if(t.startsWith(e))return{matcher:t.slice(e.length),selector:o=>`[checked] ${o}, ${o}[checked]`}}];function Wt(){return{name:"@onu-ui/preset",theme:U,rules:rt,variants:ot,shortcuts:D}}0&&(module.exports={presetOnu}); |
{ | ||
"name": "@onu-ui/preset", | ||
"description": "Onu-UI css rules for unocss preset", | ||
"version": "1.0.10-beta.10", | ||
"version": "1.0.10-beta.11", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "onu-ui", |
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
41258
157