@yummacss/nitro 3.8.1 → 3.10.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/README.md CHANGED
@@ -1,29 +1,10 @@
1
- # [@yummacss](www.yummacss.com)
1
+ # @yummacss/nitro
2
2
 
3
- A CLI-first CSS framework for the web with abbreviated styles.
3
+ Fast CSS generation for Yumma CSS.
4
4
 
5
- [![NPM Version](https://img.shields.io/npm/v/yummacss?style=flat&label=yummacss&labelColor=f7f7f7&color=cb3837)](https://www.npmjs.com/package/yummacss)
6
- [![NPM Downloads](https://img.shields.io/npm/d18m/yummacss?style=flat&label=downloads&labelColor=f7f7f7&color=cb3837)](https://www.npmjs.com/package/yummacss)
5
+ > [!WARNING]
6
+ > This is an internal package. Most users should install [yummacss](https://www.npmjs.com/package/yummacss) instead.
7
7
 
8
- ## Installing
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
- Install `yummacss` as a dev dependency and initialize configuration
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-DwoOeML2.mjs";export{t as baseStyles,n as generator,e as tokenizer};
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/api";const t=`*,
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(;d;){if(d=!1,r?.mediaQueries){for(let e of r.mediaQueries)if(s.startsWith(`${e.prefix}:`)){c=e.value,s=s.slice(e.prefix.length+1),d=!0;break}}if(!d&&r?.pseudoClasses){for(let e of r.pseudoClasses)if(s.startsWith(`${e.prefix}:`)){l+=e.value,s=s.slice(e.prefix.length+1),d=!0;break}}}if(r?.opacity){for(let e of r.opacity)if(s.endsWith(`/${e.prefix}`)){u=e.value,s=s.slice(0,-(e.prefix.length+1));break}}if(!s.startsWith(`${i}-`)&&s!==i)return null;let f=s===i?``:s.slice(i.length+1),p=a[f===``?`base`:f]||a[f];if(!p)return null;let m=u&&p.startsWith(`#`)&&p.length===7?`${p}${u}`:p,h=n.map(e=>`${e}: ${m};`).join(`
153
- `);return{rule:`.${o(e)}${l} {\n ${h}\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};
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-DwoOeML2.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};
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@yummacss/nitro",
3
- "version": "3.8.1",
4
- "description": "The engine behind Yumma CSS.",
3
+ "version": "3.10.0",
4
+ "description": "Fast CSS generation for Yumma CSS.",
5
5
  "keywords": [
6
6
  "css-framework",
7
7
  "typescript",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "globby": "^16.1.0",
35
35
  "zod": "^4.3.4",
36
- "@yummacss/api": "3.8.1"
36
+ "@yummacss/core": "3.10.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public",