@onu-ui/preset
Advanced tools
Comparing version 1.1.3 to 1.1.5
@@ -1,2 +0,2 @@ | ||
import{a as y}from"./chunk-XNIXE5BJ.js";import{mc as ee}from"magic-color";import{definePreset as te,presetAttributify as oe,presetIcons as re,presetUno as ne,presetWebFonts as ie}from"unocss";var u="@onu-ui/preset",m="@onu-ui/prelight",v={[m]:-100,[u]:-50};var F=`*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color,#e5e7eb);}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;}body{margin:0;line-height:inherit;}hr{height:0;color:inherit;border-top-width:1px;}abbr:where([title]){text-decoration:underline dotted;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}a{color:inherit;text-decoration:inherit;}b,strong{font-weight:bolder;}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}table{text-indent:0;border-color:inherit;border-collapse:collapse;}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0;}button,select{text-transform:none;}button,[type='button'],[type='reset'],[type='submit']{-webkit-appearance:button;background-image:none;}:-moz-focusring{outline:auto;}:-moz-ui-invalid{box-shadow:none;}progress{vertical-align:baseline;}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto;}[type='search']{-webkit-appearance:textfield;outline-offset:-2px;}::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}summary{display:list-item;}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}fieldset{margin:0;padding:0;}legend{padding:0;}ol,ul,menu{list-style:none;margin:0;padding:0;}dialog{padding:0;}textarea{resize:vertical;}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af;}button,[role="button"]{cursor:pointer;}:disabled{cursor:default;}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto;}[hidden]{display:none;}`,w={getCSS:()=>F};function z(e){let{color:t}=e;return{getCSS:()=>y(t).cssMinify}}function C(e){return e.preflights?[w,z(e)].map(t=>({...t,layer:m})):[]}import{h as q,parseColor as K}from"@unocss/preset-mini/utils";import{mc as S}from"magic-color";import{parseColor as Q}from"@unocss/preset-mini/utils";import{mc as k}from"magic-color";function V(e,t){var r;let o=Q(e,t);if(o){if(((r=o.cssColor)==null?void 0:r.type)==="hsl"){if(o.cssColor.components)return`${o.cssColor.components.join(" ")}`}else if(o.color&&k.valid(o.color))return`${k(o.color).hsl().join(" ")}`}}function a(e,t,o){if(e[1]!=null&&c(e[2]))return{[o]:`var(--onu-color-${e[2]})`};let r=V(e[2],t);if(r)return{[o]:r}}function n(e,t,o){let r=e.split("-"),i;if(r.length===2&&r[0]==="theme"?i=a([void 0,...r],t,o):i=a([void 0,void 0,e],t,o),i)return[i]}function c(e){return["DEFAULT","50","100","200","300","400","500","600","700","800","900","950","text","bg","border","context"].includes(e)}var M=[[/^o-(theme-)?(.*)$/,(e,{theme:t})=>a(e,t,"--onu-color-context")],[/^o-bg-(theme-)?(.*)$/,(e,{theme:t})=>a(e,t,"--onu-color-bg")],[/^o-text-(theme-)?(.*)$/,(e,{theme:t})=>a(e,t,"--onu-color-text")],[/^o-border-(theme-)?(.*)$/,(e,{theme:t})=>a(e,t,"--onu-color-border")],[/^bg-theme-(\w+)(?:[-:](\d+))?$/,([,e,t])=>{if(e=e==="context"?"bg":e,c(e))return{"--un-bg-opacity":t?`${Number.parseInt(t)/100}`:"1","background-color":`hsl(var(--onu-color-${e}, var(--onu-color-context)) / var(--un-bg-opacity))`}}],[/^text-theme-(\w+)(?:[-:](\d+))?$/,([,e,t])=>{if(e=e==="context"?"text":e,c(e))return{"--un-text-opacity":t?Number.parseInt(t)/100:1,color:`hsl(var(--onu-color-${e}, var(--onu-color-context)) / var(--un-text-opacity))`}}],[/^border-theme-(\w+)(?:[-:](\d+))?$/,([,e,t])=>{if(e=e==="context"?"border":e,c(e))return{"--un-border-opacity":t?Number.parseInt(t)/100:1,"border-color":`hsl(var(--onu-color-${e}, var(--onu-color-context)) / var(--un-border-opacity))`}}],[/^\[([^:]+)::(.+?)(?:-(\d+))?\]$/,([,e,t,o],{theme:r})=>{var b,f,g,x;let i=`--${e}`;if(t==="theme"&&o!=null)return{[i]:`hsl(var(--onu-color-${o}) / 1)`};let s=K(`${t}${o?`-${o}`:""}`,r);if(s){let l="";if(((b=s.cssColor)==null?void 0:b.type)==="hsl"?s.cssColor.components&&(l=`${s.cssColor.components.join(" ")}`):s.color&&S.valid(s.color)&&(l=`${S(s.color).hsl().join(" ")}`),l){let p=`${i}-opacity`;return{[p]:(g=(f=s.cssColor)==null?void 0:f.alpha)!=null?g:1,[i]:`hsl(${l} / var(${p}))`}}}return{[i]:(x=q.bracket(t))!=null?x:t}}],[/^o-radius(?:-(.+))?$/,([,e])=>{let t={sm:-4,md:-2,lg:0,xl:4};if(e in t)return{"border-radius":`calc(var(--onu-radius) + ${t[e]}px)`}}]];var T=[["mask",{"-webkit-mask-size":"contain","mask-size":"contain","-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat","-webkit-mask-position":"center","mask-position":"center"}]];var $=[M,T].flat();var h={xs:"w-10",sm:"w-13",md:"w-16",lg:"w-20"},O=[[/^avatar-(.+)$/,([,e],{theme:t})=>e in h?h[e]:n(e,t,"--onu-color-context")],["avatar",` | ||
import{a as y}from"./chunk-XNIXE5BJ.js";import{mc as ee}from"magic-color";import{definePreset as te,presetAttributify as oe,presetIcons as re,presetUno as ne,presetWebFonts as ie}from"unocss";var u="@onu-ui/preset",m="@onu-ui/prelight",v={[m]:-100,[u]:-50};var F=`*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color,#e5e7eb);}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;}body{margin:0;line-height:inherit;}hr{height:0;color:inherit;border-top-width:1px;}abbr:where([title]){text-decoration:underline dotted;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}a{color:inherit;text-decoration:inherit;}b,strong{font-weight:bolder;}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}table{text-indent:0;border-color:inherit;border-collapse:collapse;}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0;}button,select{text-transform:none;}button,[type='button'],[type='reset'],[type='submit']{-webkit-appearance:button;background-color:transparent;background-image:none;}:-moz-focusring{outline:auto;}:-moz-ui-invalid{box-shadow:none;}progress{vertical-align:baseline;}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto;}[type='search']{-webkit-appearance:textfield;outline-offset:-2px;}::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}summary{display:list-item;}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}fieldset{margin:0;padding:0;}legend{padding:0;}ol,ul,menu{list-style:none;margin:0;padding:0;}dialog{padding:0;}textarea{resize:vertical;}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af;}button,[role="button"]{cursor:pointer;}:disabled{cursor:default;}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto;}[hidden]{display:none;}`,w={getCSS:()=>F};function z(e){let{color:t}=e;return{getCSS:()=>y(t).cssMinify}}function C(e){return e.preflights?[w,z(e)].map(t=>({...t,layer:m})):[]}import{h as q,parseColor as K}from"@unocss/preset-mini/utils";import{mc as S}from"magic-color";import{parseColor as Q}from"@unocss/preset-mini/utils";import{mc as k}from"magic-color";function V(e,t){var r;let o=Q(e,t);if(o){if(((r=o.cssColor)==null?void 0:r.type)==="hsl"){if(o.cssColor.components)return`${o.cssColor.components.join(" ")}`}else if(o.color&&k.valid(o.color))return`${k(o.color).hsl().join(" ")}`}}function a(e,t,o){if(e[1]!=null&&c(e[2]))return{[o]:`var(--onu-color-${e[2]})`};let r=V(e[2],t);if(r)return{[o]:r}}function n(e,t,o){let r=e.split("-"),i;if(r.length===2&&r[0]==="theme"?i=a([void 0,...r],t,o):i=a([void 0,void 0,e],t,o),i)return[i]}function c(e){return["DEFAULT","50","100","200","300","400","500","600","700","800","900","950","text","bg","border","context"].includes(e)}var M=[[/^o-(theme-)?(.*)$/,(e,{theme:t})=>a(e,t,"--onu-color-context")],[/^o-bg-(theme-)?(.*)$/,(e,{theme:t})=>a(e,t,"--onu-color-bg")],[/^o-text-(theme-)?(.*)$/,(e,{theme:t})=>a(e,t,"--onu-color-text")],[/^o-border-(theme-)?(.*)$/,(e,{theme:t})=>a(e,t,"--onu-color-border")],[/^bg-theme-(\w+)(?:[-:](\d+))?$/,([,e,t])=>{if(e=e==="context"?"bg":e,c(e))return{"--un-bg-opacity":t?`${Number.parseInt(t)/100}`:"1","background-color":`hsl(var(--onu-color-${e}, var(--onu-color-context)) / var(--un-bg-opacity))`}}],[/^text-theme-(\w+)(?:[-:](\d+))?$/,([,e,t])=>{if(e=e==="context"?"text":e,c(e))return{"--un-text-opacity":t?Number.parseInt(t)/100:1,color:`hsl(var(--onu-color-${e}, var(--onu-color-context)) / var(--un-text-opacity))`}}],[/^border-theme-(\w+)(?:[-:](\d+))?$/,([,e,t])=>{if(e=e==="context"?"border":e,c(e))return{"--un-border-opacity":t?Number.parseInt(t)/100:1,"border-color":`hsl(var(--onu-color-${e}, var(--onu-color-context)) / var(--un-border-opacity))`}}],[/^\[([^:]+)::(.+?)(?:-(\d+))?\]$/,([,e,t,o],{theme:r})=>{var b,f,g,x;let i=`--${e}`;if(t==="theme"&&o!=null)return{[i]:`hsl(var(--onu-color-${o}) / 1)`};let s=K(`${t}${o?`-${o}`:""}`,r);if(s){let l="";if(((b=s.cssColor)==null?void 0:b.type)==="hsl"?s.cssColor.components&&(l=`${s.cssColor.components.join(" ")}`):s.color&&S.valid(s.color)&&(l=`${S(s.color).hsl().join(" ")}`),l){let p=`${i}-opacity`;return{[p]:(g=(f=s.cssColor)==null?void 0:f.alpha)!=null?g:1,[i]:`hsl(${l} / var(${p}))`}}}return{[i]:(x=q.bracket(t))!=null?x:t}}],[/^o-radius(?:-(.+))?$/,([,e])=>{let t={sm:-4,md:-2,lg:0,xl:4};if(e in t)return{"border-radius":`calc(var(--onu-radius) + ${t[e]}px)`}}]];var T=[["mask",{"-webkit-mask-size":"contain","mask-size":"contain","-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat","-webkit-mask-position":"center","mask-position":"center"}]];var $=[M,T].flat();var h={xs:"w-10",sm:"w-13",md:"w-16",lg:"w-20"},O=[[/^avatar-(.+)$/,([,e],{theme:t})=>e in h?h[e]:n(e,t,"--onu-color-context")],["avatar",` | ||
relative inline-flex avatar-md select-none | ||
@@ -3,0 +3,0 @@ [&>div]:(flex aspect-ratio-square of-hidden) |
{ | ||
"name": "@onu-ui/preset", | ||
"type": "module", | ||
"version": "1.1.3", | ||
"version": "1.1.5", | ||
"description": "Opinionated Onu UI preset for UnoCSS.", | ||
@@ -6,0 +6,0 @@ "author": "Chris <https://github.com/zyyv>", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21828
0