🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@yummacss/nitro

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yummacss/nitro - npm Package Compare versions

Comparing version
3.24.14
to
3.24.15
+116
dist/generator-G2592ZuP.mjs
import{coreUtils as e,createColors as t,defaultMediaQueries as n}from"@yummacss/core";function r(e){let t=new Set,n=[/class(?:Name)?=["']([^"']+)["']/g,/class(?:Name)?=\{["']([^"']+)["']\}/g,/class(?:Name)?=\{`([^`]+)`\}/g],r=[/`([^`]+)`/g,/"([^"]+)"/g,/'([^']+)'/g],i=[/cva\s*\(\s*["'`]([^"'`]+)["'`]/g,/:\s*["'`]([^"'`]+)["'`]/g],a=[/\bcn\s*\(\s*["'`]([^"'`]+)["'`]/g,/\bcn\s*\(\s*\{\s*["'`]([^"'`]+)["'`]\s*:/g],o=[/clsx\s*\(\s*["'`]([^"'`]+)["'`]/g,/classnames\s*\(\s*["'`]([^"'`]+)["'`]/g,/clsx\s*\(\s*\{\s*["'`]([^"'`]+)["'`]\s*:/g,/classnames\s*\(\s*\{\s*["'`]([^"'`]+)["'`]\s*:/g],s=[...n,...r,...i,...a,...o];for(let n of s){let r;for(r=n.exec(e);r!==null;){let i=r[1];i&&i.split(/\s+/).filter(e=>{let t=e.replace(/^@+/,``);return t&&/^[a-z]/.test(t)&&t.includes(`-`)}).forEach(e=>{t.add(e)}),r=n.exec(e)}}return Array.from(t)}const i=`*, :before, :after {
box-sizing: border-box;
border: 0 solid;
}
* {
margin: 0;
padding: 0;
}
html {
font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Noto Sans, Liberation Sans, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}
body {
-webkit-font-smoothing: antialiased;
font-family: inherit;
line-height: 1.5;
}
canvas, img, picture, svg, video {
max-width: 100%;
display: block;
}
button, input, optgroup, select, textarea {
background-color: transparent;
padding: .5rem;
font-family: inherit;
}
button:not([class]), input:not([class]), optgroup:not([class]), select:not([class]), textarea:not([class]) {
border: 1px solid #bfc2c7;
}
:is(a, button, input, select, summary, textarea):focus {
outline: 2px solid transparent;
}
textarea:not([rows]) {
min-height: 10em;
}
button {
cursor: pointer;
}
button:disabled, input:disabled, select:disabled, textarea:disabled {
cursor: not-allowed;
opacity: .5;
}
h1, h2, h3, h4, h5, h6, p {
overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
text-wrap: balance;
font-size: 1rem;
font-weight: 600;
}
p {
text-wrap: pretty;
}
b, strong {
font-weight: 700;
}
small {
font-size: 80%;
line-height: 1.4;
}
pre, code, kbd, samp {
font-family: monospace;
font-size: 1em;
}
a {
color: inherit;
text-decoration: none;
}
ol, ul {
padding: 0;
list-style: none;
}
th {
font-size: 1rem;
font-weight: 600;
}
hr {
border-top: 1px solid #bfc2c7;
height: 0;
margin: 1em 0;
}
details {
display: block;
}
summary {
display: list-item;
}
`;function a(e,t){let n=[];if(t.safelist)for(let n of t.safelist){let r=t.prefix&&!n.startsWith(t.prefix)?t.prefix+n:n;e.add(r)}(t.normalize??!0)&&n.push(i);let r=o(e,t);return r&&n.push(r),n.join(`
`)}function o(r,i){let a={...e()},o=null;if(i.theme?.colors){let{percentage:e,...n}=i.theme.colors;o=t(n,e?.light,e?.dark)}let s=[...n];if(i.theme?.screens){let e=Object.entries(i.theme.screens).map(([e,t])=>({prefix:e,value:`@media (min-width: ${t})`}));for(let t of e){let e=s.findIndex(e=>e.prefix===t.prefix);e===-1?s.push(t):s[e]=t}}for(let[e,t]of Object.entries(a)){let n=!1,r={...t};o&&`black`in r.values&&`white`in r.values&&(r.values={...r.values,...o},n=!0),i.theme?.screens&&r.variants&&(r.variants={...r.variants,mediaQueries:s},n=!0),n&&(a[e]=r)}let c=[],u=new Map,d=new Set,f=Array.from(r).sort();for(let e of f){let t=e;if(i.prefix&&t.startsWith(i.prefix))t=t.slice(i.prefix.length);else if(i.prefix)continue;if(d.has(e))continue;let n=l(t,a,e);if(n){if(n.mediaQuery){let e=u.get(n.mediaQuery)||[];e.push(n.rule),u.set(n.mediaQuery,e)}else c.push(n.rule);d.add(e)}}let p=Array.from(u.entries()).sort(([e],[t])=>e.localeCompare(t));for(let[e,t]of p){let n=t.map(e=>e.replace(/^/gm,` `)).join(`
`);c.push(`${e} {\n${n}\n}`)}return c.join(`
`)}function s(e,t,n){let{properties:r,variants:i,prefix:a,values:o}=t,s=e,l,u=``,d=``,f=``,p=!0;for(;p;){if(p=!1,i?.mediaQueries){for(let e of i.mediaQueries)if(s.startsWith(`@${e.prefix}:`)){l=e.value,s=s.slice(e.prefix.length+2),p=!0;break}}if(!p){if(i?.pseudoElements){for(let e of i.pseudoElements)if(s.startsWith(`${e.prefix}::`)){d+=e.value,s=s.slice(e.prefix.length+2),p=!0;break}}if(!p&&i?.pseudoClasses){for(let e of i.pseudoClasses)if(s.startsWith(`${e.prefix}:`)&&!s.startsWith(`${e.prefix}::`)){u+=e.value,s=s.slice(e.prefix.length+1),p=!0;break}}}}if(i?.opacity){for(let e of i.opacity)if(s.endsWith(`/${e.prefix}`)){f=e.value,s=s.slice(0,-(e.prefix.length+1));break}}if(!s.startsWith(`${a}-`)&&s!==a)return null;let m=s===a?``:s.slice(a.length+1),h=!1,g=m;m.startsWith(`-`)&&(h=!0,g=m.slice(1));let _=o[g===``?`base`:g]||o[g];if(!_)return null;let v=_;h&&/^-?[\d.]/.test(_)&&(v=_.startsWith(`-`)?_.slice(1):`-${_}`);let y=f&&v.startsWith(`#`)&&v.length===7?`${v}${f}`:v,b=r.map(e=>`${e}: ${y};`).join(`
`);return{rule:`.${c(n)}${u}${d} {\n ${b}\n}`,mediaQuery:l}}function c(e){return e.replace(/:/g,`\\:`).replace(/\//g,`\\/`).replace(/@/g,`\\@`).replace(/%/g,`\\%`)}function l(e,t,n){for(let[r,i]of Object.entries(t)){let t=s(e,i,n);if(t)return t}return null}export{i as n,r,a as t};
+1
-1

@@ -1,1 +0,1 @@

import{n as e,r as t,t as n}from"./generator-C-FmrXsu.mjs";export{n as generator,e as normalizeCSS,t as tokenizer};
import{n as e,r as t,t as n}from"./generator-G2592ZuP.mjs";export{n as generator,e as normalizeCSS,t as tokenizer};
{
"name": "@yummacss/nitro",
"version": "3.24.14",
"version": "3.24.15",
"description": "Fast CSS generation for Yumma CSS",

@@ -35,3 +35,3 @@ "keywords": [

"dependencies": {
"@yummacss/core": "3.24.14"
"@yummacss/core": "3.24.15"
},

@@ -38,0 +38,0 @@ "devDependencies": {

import{coreUtils as e,createColors as t,defaultMediaQueries as n}from"@yummacss/core";function r(e){let t=new Set,n=[/class(?:Name)?=["']([^"']+)["']/g,/class(?:Name)?=\{["']([^"']+)["']\}/g,/class(?:Name)?=\{`([^`]+)`\}/g],r=[/`([^`]+)`/g,/"([^"]+)"/g,/'([^']+)'/g],i=[/cva\s*\(\s*["'`]([^"'`]+)["'`]/g,/:\s*["'`]([^"'`]+)["'`]/g],a=[/\bcn\s*\(\s*["'`]([^"'`]+)["'`]/g,/\bcn\s*\(\s*\{\s*["'`]([^"'`]+)["'`]\s*:/g],o=[/clsx\s*\(\s*["'`]([^"'`]+)["'`]/g,/classnames\s*\(\s*["'`]([^"'`]+)["'`]/g,/clsx\s*\(\s*\{\s*["'`]([^"'`]+)["'`]\s*:/g,/classnames\s*\(\s*\{\s*["'`]([^"'`]+)["'`]\s*:/g],s=[...n,...r,...i,...a,...o];for(let n of s){let r;for(r=n.exec(e);r!==null;){let i=r[1];i&&i.split(/\s+/).filter(e=>{let t=e.replace(/^@+/,``);return t&&/^[a-z]/.test(t)&&t.includes(`-`)}).forEach(e=>{t.add(e)}),r=n.exec(e)}}return Array.from(t)}const i=`*, :before, :after {
box-sizing: border-box;
border: 0 solid;
}
* {
margin: 0;
padding: 0;
}
html {
font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Noto Sans, Liberation Sans, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}
body {
-webkit-font-smoothing: antialiased;
font-family: inherit;
line-height: 1.5;
}
canvas, img, picture, svg, video {
max-width: 100%;
display: block;
}
button, input, optgroup, select, textarea {
background-color: transparent;
padding: .5rem;
font-family: inherit;
}
button:not([class]), input:not([class]), optgroup:not([class]), select:not([class]), textarea:not([class]) {
border: 1px solid #bfc2c7;
}
:is(a, button, input, select, summary, textarea):focus {
outline: 2px solid transparent;
}
textarea:not([rows]) {
min-height: 10em;
}
button {
cursor: pointer;
}
button:disabled, input:disabled, select:disabled, textarea:disabled {
cursor: not-allowed;
opacity: .5;
}
h1, h2, h3, h4, h5, h6, p {
overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
text-wrap: balance;
font-size: 1rem;
font-weight: 600;
}
p {
text-wrap: pretty;
}
b, strong {
font-weight: 700;
}
small {
font-size: 80%;
line-height: 1.4;
}
pre, code, kbd, samp {
font-family: monospace;
font-size: 1em;
}
a {
color: inherit;
text-decoration: none;
}
ol, ul {
padding: 0;
list-style: none;
}
th {
font-size: 1rem;
font-weight: 600;
}
hr {
border-top: 1px solid #bfc2c7;
height: 0;
margin: 1em 0;
}
details {
display: block;
}
summary {
display: list-item;
}
`;function a(e,t){let n=[];if(t.safelist)for(let n of t.safelist){let r=t.prefix&&!n.startsWith(t.prefix)?t.prefix+n:n;e.add(r)}(t.normalize??!0)&&n.push(i);let r=o(e,t);return r&&n.push(r),n.join(`
`)}function o(r,i){let a={...e()},o=null;if(i.theme?.colors){let{percentage:e,...n}=i.theme.colors;o=t(n,e?.light,e?.dark)}let s=[...n];if(i.theme?.screens){let e=Object.entries(i.theme.screens).map(([e,t])=>({prefix:e,value:`@media (min-width: ${t})`}));for(let t of e){let e=s.findIndex(e=>e.prefix===t.prefix);e===-1?s.push(t):s[e]=t}}for(let[e,t]of Object.entries(a)){let n=!1,r={...t};o&&`black`in r.values&&`white`in r.values&&(r.values={...r.values,...o},n=!0),i.theme?.screens&&r.variants&&(r.variants={...r.variants,mediaQueries:s},n=!0),n&&(a[e]=r)}let c=[],u=new Map,d=new Set,f=Array.from(r).sort();for(let e of f){let t=e;if(i.prefix&&t.startsWith(i.prefix))t=t.slice(i.prefix.length);else if(i.prefix)continue;if(d.has(e))continue;let n=l(t,a,e);if(n){if(n.mediaQuery){let e=u.get(n.mediaQuery)||[];e.push(n.rule),u.set(n.mediaQuery,e)}else c.push(n.rule);d.add(e)}}let p=Array.from(u.entries()).sort(([e],[t])=>e.localeCompare(t));for(let[e,t]of p){let n=t.map(e=>e.replace(/^/gm,` `)).join(`
`);c.push(`${e} {\n${n}\n}`)}return c.join(`
`)}function s(e,t,n){let{properties:r,variants:i,prefix:a,values:o}=t,s=e,l,u=``,d=``,f=``;s.startsWith(`@`)&&(s=s.slice(1));let p=!0;for(;p;){if(p=!1,i?.mediaQueries){for(let e of i.mediaQueries)if(s.startsWith(`${e.prefix}:`)){l=e.value,s=s.slice(e.prefix.length+1),p=!0;break}}if(!p){if(i?.pseudoElements){for(let e of i.pseudoElements)if(s.startsWith(`${e.prefix}::`)){d+=e.value,s=s.slice(e.prefix.length+2),p=!0;break}}if(!p&&i?.pseudoClasses){for(let e of i.pseudoClasses)if(s.startsWith(`${e.prefix}:`)&&!s.startsWith(`${e.prefix}::`)){u+=e.value,s=s.slice(e.prefix.length+1),p=!0;break}}}}if(i?.opacity){for(let e of i.opacity)if(s.endsWith(`/${e.prefix}`)){f=e.value,s=s.slice(0,-(e.prefix.length+1));break}}if(!s.startsWith(`${a}-`)&&s!==a)return null;let m=s===a?``:s.slice(a.length+1),h=!1,g=m;m.startsWith(`-`)&&(h=!0,g=m.slice(1));let _=o[g===``?`base`:g]||o[g];if(!_)return null;let v=_;h&&/^-?[\d.]/.test(_)&&(v=_.startsWith(`-`)?_.slice(1):`-${_}`);let y=f&&v.startsWith(`#`)&&v.length===7?`${v}${f}`:v,b=r.map(e=>`${e}: ${y};`).join(`
`);return{rule:`.${c(n)}${u}${d} {\n ${b}\n}`,mediaQuery:l}}function c(e){return e.replace(/:/g,`\\:`).replace(/\//g,`\\/`).replace(/@/g,`\\@`).replace(/%/g,`\\%`)}function l(e,t,n){for(let[r,i]of Object.entries(t)){let t=s(e,i,n);if(t)return t}return null}export{i as n,r,a as t};

Sorry, the diff of this file is too big to display