@yummacss/nitro 3.10.0 → 3.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./generator-
|
|
1
|
+
import{n as e,r as t,t as n}from"./generator-acvvDx6X.mjs";export{t as baseStyles,n as generator,e as tokenizer};
|
|
@@ -149,5 +149,5 @@ summary {
|
|
|
149
149
|
|
|
150
150
|
`)}function i(t){let n=e(),r=[],i=new Map,a=new Set,o=Array.from(t).sort();for(let e of o){if(a.has(e))continue;let t=s(e,n);if(t){if(t.mediaQuery){let e=i.get(t.mediaQuery)||[];e.push(t.rule),i.set(t.mediaQuery,e)}else r.push(t.rule);a.add(e)}}let c=Array.from(i.entries()).sort(([e],[t])=>e.localeCompare(t));for(let[e,t]of c)r.push(`${e} {\n${t.join(`
|
|
151
151
|
`)}\n}`);return r.join(`
|
|
152
|
-
`)}function a(e,t){let{properties:n,variants:r,prefix:i,values:a}=t,s=e,c,l=``,u=``,d=``,f=!0;for(;f;){if(f=!1,r?.mediaQueries){for(let e of r.mediaQueries)if(s.startsWith(`${e.prefix}:`)){c=e.value,s=s.slice(e.prefix.length+1),f=!0;break}}if(!f){if(r?.
|
|
152
|
+
`)}function a(e,t){let{properties:n,variants:r,prefix:i,values:a}=t,s=e,c,l=``,u=``,d=``,f=!0;for(;f;){if(f=!1,r?.mediaQueries){for(let e of r.mediaQueries)if(s.startsWith(`${e.prefix}:`)){c=e.value,s=s.slice(e.prefix.length+1),f=!0;break}}if(!f){if(r?.pseudoElements){for(let e of r.pseudoElements)if(s.startsWith(`${e.prefix}::`)){u+=e.value,s=s.slice(e.prefix.length+2),f=!0;break}}if(!f&&r?.pseudoClasses){for(let e of r.pseudoClasses)if(s.startsWith(`${e.prefix}:`)&&!s.startsWith(`${e.prefix}::`)){l+=e.value,s=s.slice(e.prefix.length+1),f=!0;break}}}}if(r?.opacity){for(let e of r.opacity)if(s.endsWith(`/${e.prefix}`)){d=e.value,s=s.slice(0,-(e.prefix.length+1));break}}if(!s.startsWith(`${i}-`)&&s!==i)return null;let p=s===i?``:s.slice(i.length+1),m=!1,h=p;p.startsWith(`-`)&&(m=!0,h=p.slice(1));let g=a[h===``?`base`:h]||a[h];if(!g)return null;let _=g;m&&/^-?\d/.test(g)&&(_=g.startsWith(`-`)?g.slice(1):`-${g}`);let v=d&&_.startsWith(`#`)&&_.length===7?`${_}${d}`:_,y=n.map(e=>`${e}: ${v};`).join(`
|
|
153
153
|
`);return{rule:`.${o(e)}${l}${u} {\n ${y}\n}`,mediaQuery:c}}function o(e){return e.replace(/:/g,`\\:`).replace(/\//g,`\\/`)}function s(e,t){for(let[n,r]of Object.entries(t)){let t=a(e,r);if(t)return t}return null}export{n,t as r,r as t};
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./generator-
|
|
1
|
+
import{n as e,r as t,t as n}from"./generator-acvvDx6X.mjs";import{z as r}from"zod";import{readFileSync as i}from"node:fs";import{globby as a}from"globby";const o=`yumma.config.mjs`,s=r.object({source:r.array(r.string()).default([``]),output:r.string().default(``),buildOptions:r.object({reset:r.boolean().default(!0),minify:r.boolean().default(!1)}).default({reset:!0,minify:!1})});async function c(t){let n=await a(t),r=new Set;for(let t of n)try{e(i(t,`utf-8`)).forEach(e=>{r.add(e)})}catch{}return r}export{s as ConfigSchema,t as baseStyles,o as configName,c as extractor,n as generator};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yummacss/nitro",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"description": "Fast CSS generation for Yumma CSS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css-framework",
|
|
@@ -8,12 +8,13 @@
|
|
|
8
8
|
"yummacss"
|
|
9
9
|
],
|
|
10
10
|
"homepage": "https://yummacss.com",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/yummacss/yummacss.git",
|
|
14
|
+
"directory": "packages/nitro"
|
|
15
|
+
},
|
|
11
16
|
"license": "MIT",
|
|
12
17
|
"author": "Renildo Pereira",
|
|
13
|
-
"files": [
|
|
14
|
-
"dist"
|
|
15
|
-
],
|
|
16
|
-
"types": "./dist/index.d.mts",
|
|
17
18
|
"type": "module",
|
|
18
19
|
"exports": {
|
|
19
20
|
".": {
|
|
@@ -25,15 +26,14 @@
|
|
|
25
26
|
"import": "./dist/browser.mjs"
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
},
|
|
29
|
+
"types": "./dist/index.d.mts",
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"globby": "^16.1.0",
|
|
35
35
|
"zod": "^4.3.4",
|
|
36
|
-
"@yummacss/core": "3.10.
|
|
36
|
+
"@yummacss/core": "3.10.2"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public",
|