@yummacss/nitro 3.8.0 → 3.9.0
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/LICENSE +1 -1
- package/README.md +6 -25
- package/dist/browser.mjs +1 -1
- package/dist/{generator-DwoOeML2.mjs → generator-BKTcU5Kz.mjs} +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c)
|
|
1
|
+
Copyright (c) 2023-present Yumma CSS maintained by Renildo Pereira.
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
4
|
a copy of this software and associated documentation files (the
|
package/README.md
CHANGED
|
@@ -1,29 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @yummacss/nitro
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The engine behind Yumma CSS.
|
|
4
4
|
|
|
5
|
-
[!
|
|
6
|
-
|
|
5
|
+
> [!WARNING]
|
|
6
|
+
> This is an internal package. Most users should install [yummacss](https://www.npmjs.com/package/yummacss) instead.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
This package contains the core CSS generation engine (extractor, generator, tokenizer). It's used internally by the CLI and runtime packages.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
npm install yummacss -D
|
|
14
|
-
npx yummacss init
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Build styles
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
npx yummacss build
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Documentation
|
|
24
|
-
|
|
25
|
-
Learn more at [yummacss.com](https://yummacss.com)
|
|
26
|
-
|
|
27
|
-
## License
|
|
28
|
-
|
|
29
|
-
This project is licensed under the [MIT License](LICENSE).
|
|
10
|
+
Learn more at [yummacss.com](https://yummacss.com)
|
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-BKTcU5Kz.mjs";export{t as baseStyles,n as generator,e as tokenizer};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{coreUtils as e}from"@yummacss/
|
|
1
|
+
import{coreUtils as e}from"@yummacss/core";const t=`*,
|
|
2
2
|
*::before,
|
|
3
3
|
*::after {
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -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=!0;for(;
|
|
153
|
-
`);return{rule:`.${o(e)}${l} {\n ${
|
|
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?.pseudoClasses){for(let e of r.pseudoClasses)if(s.startsWith(`${e.prefix}:`)){l+=e.value,s=s.slice(e.prefix.length+1),f=!0;break}}if(!f&&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(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
|
+
`);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-BKTcU5Kz.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.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "The engine behind Yumma CSS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css-framework",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"globby": "^16.1.0",
|
|
35
35
|
"zod": "^4.3.4",
|
|
36
|
-
"@yummacss/
|
|
36
|
+
"@yummacss/core": "3.9.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public",
|