@razorwind/css 0.0.30 → 0.0.32

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
@@ -94,7 +94,7 @@ export default defineConfig({
94
94
 
95
95
  | Option | Default | Description |
96
96
  | ------------- | --------------------------- | -------------------------------------------------------- |
97
- | `outFile` | `"DESIGN.md"` | Output file path (relative to the execution cwd) |
97
+ | `outputPath` | `"DESIGN.md"` | Output file path (relative to the execution cwd) |
98
98
  | `name` | `"Razorwind Design System"` | Design system name written to the YAML front matter |
99
99
  | `description` | — | Short description written to the YAML front matter |
100
100
  | `version` | `"alpha"` | DESIGN.md spec version written to the YAML front matter |
package/dist/generate.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./rolldown-runtime-Chgba0Kb.cjs");let t=require("@razorwind/core/lib/fonts"),n=require("@razorwind/core/plugin"),r=require("node:path"),i=require("@razorwind/core/utils"),a=require("@razorwind/style-dictionary/generate");a=e.n(a,1);var o=e.t({default:()=>l});function s(e){return(e?.chunks??[]).map(e=>e.content??``).join(``)}async function c(e,n,a,o){if((0,t.isEmptyFonts)(n))return e;let c=e[a]==null?Object.keys(e).find(e=>e.endsWith(`.css`))??a:a,l=e[c],u=(0,t.prependFontCss)(s(l),n,{urlPrefix:`./fonts/`}),d=(0,r.join)((0,r.dirname)((0,r.isAbsolute)(c)?c:(0,r.resolve)(o,c)),`fonts`);return await(0,t.copyFontFiles)(n,d),{...e,[c]:(0,i.createDocument)(l?.path||c,u,{name:`css:generate`},`css`)}}var l=(0,n.definePlugin)(e=>{let t=e?.outputPath||`src/styles.css`,n=(0,a.default)({platforms:{css:{transformGroup:`css`,files:[{destination:t,format:`css/variables`}]}}});return{...n,generate:async(e,r)=>c(await n.generate?.(e,r)??{},e.fonts,t,r.cwd)}},{name:`css:generate`});exports.default=l,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./rolldown-runtime-Chgba0Kb.cjs");let t=require("@razorwind/core/lib/fonts"),n=require("@razorwind/core/plugin"),r=require("node:path"),i=require("@razorwind/core/utils"),a=require("@razorwind/style-dictionary/generate");a=e.n(a,1);var o=e.t({default:()=>l});function s(e){return(e?.chunks??[]).map(e=>e.content??``).join(``)}async function c(e,n,a,o){if((0,t.isEmptyFonts)(n))return e;let c=e[a]==null?Object.keys(e).find(e=>e.endsWith(`.css`))??a:a,l=e[c],u=(0,t.prependFontCss)(s(l),n,{urlPrefix:`./fonts/`}),d=(0,r.join)((0,r.dirname)((0,r.isAbsolute)(c)?c:(0,r.resolve)(o,c)),`fonts`);return await(0,t.copyFontFiles)(n,d),{...e,[c]:(0,i.createDocument)(l?.path||c,u,{name:`css:generate`},void 0,`css`)}}var l=(0,n.definePlugin)(e=>{let t=e?.outputPath||`src/styles.css`,n=(0,a.default)({platforms:{css:{transformGroup:`css`,files:[{destination:t,format:`css/variables`}]}}});return{...n,generate:async(e,r)=>c(await n.generate?.(e,r)??{},e.fonts,t,r.cwd)}},{name:`css:generate`});exports.default=l,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
package/dist/generate.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.mjs";import{copyFontFiles as t,isEmptyFonts as n,prependFontCss as r}from"@razorwind/core/lib/fonts";import{definePlugin as i}from"@razorwind/core/plugin";import{dirname as a,isAbsolute as o,join as s,resolve as c}from"node:path";import{createDocument as l}from"@razorwind/core/utils";import u from"@razorwind/style-dictionary/generate";var d=e({default:()=>m});function f(e){return(e?.chunks??[]).map(e=>e.content??``).join(``)}async function p(e,i,u,d){if(n(i))return e;let p=e[u]==null?Object.keys(e).find(e=>e.endsWith(`.css`))??u:u,m=e[p],h=r(f(m),i,{urlPrefix:`./fonts/`}),g=s(a(o(p)?p:c(d,p)),`fonts`);return await t(i,g),{...e,[p]:l(m?.path||p,h,{name:`css:generate`},`css`)}}var m=i(e=>{let t=e?.outputPath||`src/styles.css`,n=u({platforms:{css:{transformGroup:`css`,files:[{destination:t,format:`css/variables`}]}}});return{...n,generate:async(e,r)=>p(await n.generate?.(e,r)??{},e.fonts,t,r.cwd)}},{name:`css:generate`});export{m as default,d as t};
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.mjs";import{copyFontFiles as t,isEmptyFonts as n,prependFontCss as r}from"@razorwind/core/lib/fonts";import{definePlugin as i}from"@razorwind/core/plugin";import{dirname as a,isAbsolute as o,join as s,resolve as c}from"node:path";import{createDocument as l}from"@razorwind/core/utils";import u from"@razorwind/style-dictionary/generate";var d=e({default:()=>m});function f(e){return(e?.chunks??[]).map(e=>e.content??``).join(``)}async function p(e,i,u,d){if(n(i))return e;let p=e[u]==null?Object.keys(e).find(e=>e.endsWith(`.css`))??u:u,m=e[p],h=r(f(m),i,{urlPrefix:`./fonts/`}),g=s(a(o(p)?p:c(d,p)),`fonts`);return await t(i,g),{...e,[p]:l(m?.path||p,h,{name:`css:generate`},void 0,`css`)}}var m=i(e=>{let t=e?.outputPath||`src/styles.css`,n=u({platforms:{css:{transformGroup:`css`,files:[{destination:t,format:`css/variables`}]}}});return{...n,generate:async(e,r)=>p(await n.generate?.(e,r)??{},e.fonts,t,r.cwd)}},{name:`css:generate`});export{m as default,d as t};
2
2
  //# sourceMappingURL=generate.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@razorwind/css",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "type": "module",
5
5
  "description": "Razorwind CSS plugin that can create CSS files from design tokens or read a CSS file and return the design tokens.",
6
6
  "repository": {
@@ -74,8 +74,8 @@
74
74
  "dependencies": {
75
75
  "@power-plant/core": "^0.0.90",
76
76
  "@power-plant/dtcg-schema": "^0.0.1",
77
- "@razorwind/core": "^0.0.47",
78
- "@razorwind/style-dictionary": "^0.0.33",
77
+ "@razorwind/core": "^0.0.49",
78
+ "@razorwind/style-dictionary": "^0.0.35",
79
79
  "@stryke/fs": "^0.33.110",
80
80
  "@stryke/path": "^0.29.35",
81
81
  "@stryke/type-checks": "^0.6.41",
@@ -88,5 +88,5 @@
88
88
  "typescript": "^6.0.3"
89
89
  },
90
90
  "publishConfig": { "access": "public" },
91
- "gitHead": "ca5955e41399f13b752e589a14338d6821b78f6c"
91
+ "gitHead": "8dc94fb22937f30d41e97f3c6ecff7f45eb81202"
92
92
  }