@plumeria/core 0.6.1 → 0.6.3

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.
Files changed (37) hide show
  1. package/dist/css.js +30 -1
  2. package/dist/css.js.map +1 -0
  3. package/dist/css.mjs +26 -1
  4. package/dist/cx.js +23 -1
  5. package/dist/cx.js.map +1 -0
  6. package/dist/cx.mjs +20 -1
  7. package/dist/index.js +7 -1
  8. package/dist/index.js.map +1 -0
  9. package/dist/index.mjs +2 -1
  10. package/dist/method/create-build-helper.js +37 -1
  11. package/dist/method/create-build-helper.js.map +1 -0
  12. package/dist/method/create-build-helper.mjs +33 -1
  13. package/dist/method/create.js +26 -1
  14. package/dist/method/create.js.map +1 -0
  15. package/dist/method/create.mjs +23 -1
  16. package/dist/method/define-theme-vars.js +30 -1
  17. package/dist/method/define-theme-vars.js.map +1 -0
  18. package/dist/method/define-theme-vars.mjs +26 -1
  19. package/dist/method/global-build-helper.js +37 -1
  20. package/dist/method/global-build-helper.js.map +1 -0
  21. package/dist/method/global-build-helper.mjs +33 -1
  22. package/dist/method/global.js +18 -1
  23. package/dist/method/global.js.map +1 -0
  24. package/dist/method/global.mjs +15 -1
  25. package/dist/method/keyframes.js +12 -1
  26. package/dist/method/keyframes.js.map +1 -0
  27. package/dist/method/keyframes.mjs +8 -1
  28. package/package.json +14 -13
  29. package/{dist → types}/css.d.ts +20 -15
  30. /package/{dist → types}/cx.d.ts +0 -0
  31. /package/{dist → types}/index.d.ts +0 -0
  32. /package/{dist → types}/method/create-build-helper.d.ts +0 -0
  33. /package/{dist → types}/method/create.d.ts +0 -0
  34. /package/{dist → types}/method/define-theme-vars.d.ts +0 -0
  35. /package/{dist → types}/method/global-build-helper.d.ts +0 -0
  36. /package/{dist → types}/method/global.d.ts +0 -0
  37. /package/{dist → types}/method/keyframes.d.ts +0 -0
package/dist/css.js CHANGED
@@ -1 +1,30 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.cx=exports.css=void 0;const create_1=require("./method/create");const global_1=require("./method/global");const cx_1=require("./cx");Object.defineProperty(exports,"cx",{enumerable:true,get:function(){return cx_1.cx}});const define_theme_vars_1=require("./method/define-theme-vars");const keyframes_1=require("./method/keyframes");const collection_1=require("@plumeria/collection");class css{static create(e){return(0,create_1.create)(e)}static global(e){return(0,global_1.global)(e)}static defineThemeVars(e){return(0,define_theme_vars_1.defineThemeVars)(e)}static keyframes(e){return(0,keyframes_1.keyframes)(e)}static media=collection_1.media;static pseudo=collection_1.pseudo;static colors=collection_1.colors;static container=collection_1.container}exports.css=css;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cx = exports.css = void 0;
4
+ const create_1 = require("./method/create");
5
+ const global_1 = require("./method/global");
6
+ const cx_1 = require("./cx");
7
+ Object.defineProperty(exports, "cx", { enumerable: true, get: function () { return cx_1.cx; } });
8
+ const define_theme_vars_1 = require("./method/define-theme-vars");
9
+ const keyframes_1 = require("./method/keyframes");
10
+ const collection_1 = require("@plumeria/collection");
11
+ class css {
12
+ static create(object) {
13
+ return (0, create_1.create)(object);
14
+ }
15
+ static global(object) {
16
+ return (0, global_1.global)(object);
17
+ }
18
+ static defineThemeVars(object) {
19
+ return (0, define_theme_vars_1.defineThemeVars)(object);
20
+ }
21
+ static keyframes(object) {
22
+ return (0, keyframes_1.keyframes)(object);
23
+ }
24
+ static media = collection_1.media;
25
+ static pseudo = collection_1.pseudo;
26
+ static colors = collection_1.colors;
27
+ static container = collection_1.container;
28
+ }
29
+ exports.css = css;
30
+ //# sourceMappingURL=css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.js","sourceRoot":"","sources":["../src/css.ts"],"names":[],"mappings":";;;AAQA,4CAAyC;AACzC,4CAAyC;AACzC,6BAA0B;AA8BZ,mFA9BL,OAAE,OA8BK;AA7BhB,kEAA6D;AAC7D,kDAA+C;AAC/C,qDAAwE;AAExE,MAAM,GAAG;IACP,MAAM,CAAC,MAAM,CACX,MAAsB;QAEtB,OAAO,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,MAAsB;QAClC,OAAO,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IAED,MAAM,CAAC,eAAe,CAAiC,MAAS;QAC9D,OAAO,IAAA,mCAAe,EAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,MAA2B;QAC1C,OAAO,IAAA,qBAAS,EAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,KAAK,GAAG,kBAAK,CAAC;IACrB,MAAM,CAAC,MAAM,GAAG,mBAAM,CAAC;IACvB,MAAM,CAAC,MAAM,GAAG,mBAAM,CAAC;IACvB,MAAM,CAAC,SAAS,GAAG,sBAAS,CAAC;;AAGtB,kBAAG"}
package/dist/css.mjs CHANGED
@@ -1 +1,26 @@
1
- import{create}from"./method/create";import{global}from"./method/global";import{cx}from"./cx";import{defineThemeVars}from"./method/define-theme-vars";import{keyframes}from"./method/keyframes";import{media,pseudo,colors,container}from"@plumeria/collection";class css{static create(e){return create(e)}static global(e){return global(e)}static defineThemeVars(e){return defineThemeVars(e)}static keyframes(e){return keyframes(e)}static media=media;static pseudo=pseudo;static colors=colors;static container=container}export{css,cx};
1
+ import { create } from './method/create';
2
+ import { global } from './method/global';
3
+ import { cx } from './cx';
4
+ import { defineThemeVars } from './method/define-theme-vars';
5
+ import { keyframes } from './method/keyframes';
6
+ import { media, pseudo, colors, container } from '@plumeria/collection';
7
+ class css {
8
+ static create(object) {
9
+ return create(object);
10
+ }
11
+ static global(object) {
12
+ return global(object);
13
+ }
14
+ static defineThemeVars(object) {
15
+ return defineThemeVars(object);
16
+ }
17
+ static keyframes(object) {
18
+ return keyframes(object);
19
+ }
20
+ static media = media;
21
+ static pseudo = pseudo;
22
+ static colors = colors;
23
+ static container = container;
24
+ }
25
+ export { css, cx };
26
+ //# sourceMappingURL=css.js.map
package/dist/cx.js CHANGED
@@ -1 +1,23 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.cx=cx;function cx(...e){let t="";let r=true;e.filter(Boolean).forEach((e=>{if(e?.toString().startsWith(":")){t+=e.toString()}else if(typeof e==="string"){if(r){t+=e;r=false}else{t+=` ${e}`}}}));return t}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cx = cx;
4
+ function cx(...strings) {
5
+ let result = '';
6
+ let isFirst = true;
7
+ strings.filter(Boolean).forEach((str) => {
8
+ if (str?.toString().startsWith(':')) {
9
+ result += str.toString();
10
+ }
11
+ else if (typeof str === 'string') {
12
+ if (isFirst) {
13
+ result += str;
14
+ isFirst = false;
15
+ }
16
+ else {
17
+ result += ` ${str}`;
18
+ }
19
+ }
20
+ });
21
+ return result;
22
+ }
23
+ //# sourceMappingURL=cx.js.map
package/dist/cx.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cx.js","sourceRoot":"","sources":["../src/cx.ts"],"names":[],"mappings":";;AAAA,gBAkBC;AAlBD,SAAgB,EAAE,CAChB,GAAG,OAA0C;IAE7C,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,OAAO,GAAG,IAAI,CAAC;IACnB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACtC,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YACpC,MAAM,IAAI,GAAG,CAAC,QAAQ,EAAkB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;YACnC,IAAI,OAAO,EAAE,CAAC;gBACZ,MAAM,IAAI,GAAG,CAAC;gBACd,OAAO,GAAG,KAAK,CAAC;YAClB,CAAC;iBAAM,CAAC;gBACN,MAAM,IAAI,IAAI,GAAG,EAAE,CAAC;YACtB,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,MAAsB,CAAC;AAChC,CAAC"}
package/dist/cx.mjs CHANGED
@@ -1 +1,20 @@
1
- export function cx(...t){let e="";let r=true;t.filter(Boolean).forEach((t=>{if(t?.toString().startsWith(":")){e+=t.toString()}else if(typeof t==="string"){if(r){e+=t;r=false}else{e+=` ${t}`}}}));return e}
1
+ export function cx(...strings) {
2
+ let result = '';
3
+ let isFirst = true;
4
+ strings.filter(Boolean).forEach((str) => {
5
+ if (str?.toString().startsWith(':')) {
6
+ result += str.toString();
7
+ }
8
+ else if (typeof str === 'string') {
9
+ if (isFirst) {
10
+ result += str;
11
+ isFirst = false;
12
+ }
13
+ else {
14
+ result += ` ${str}`;
15
+ }
16
+ }
17
+ });
18
+ return result;
19
+ }
20
+ //# sourceMappingURL=cx.js.map
package/dist/index.js CHANGED
@@ -1 +1,7 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.cx=exports.css=void 0;var css_1=require("./css");Object.defineProperty(exports,"css",{enumerable:true,get:function(){return css_1.css}});Object.defineProperty(exports,"cx",{enumerable:true,get:function(){return css_1.cx}});
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cx = exports.css = void 0;
4
+ var css_1 = require("./css");
5
+ Object.defineProperty(exports, "css", { enumerable: true, get: function () { return css_1.css; } });
6
+ Object.defineProperty(exports, "cx", { enumerable: true, get: function () { return css_1.cx; } });
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,6BAAgC;AAAvB,0FAAA,GAAG,OAAA;AAAE,yFAAA,EAAE,OAAA"}
package/dist/index.mjs CHANGED
@@ -1 +1,2 @@
1
- export{css,cx}from"./css";
1
+ export { css, cx } from './css';
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1,37 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.globalPromise=exports.resolvePromise=void 0;exports.buildCreate=buildCreate;exports.initPromise=initPromise;const zss_engine_1=require("zss-engine");let resolvePromise;let globalPromise;const sheetQueue=[];let isProcessing=false;function initPromise(){exports.globalPromise=globalPromise=new Promise((e=>{exports.resolvePromise=resolvePromise=s=>{sheetQueue.push(s);e(s)}}))}function processQueue(){const e=require("path");const s=e.join(__dirname,"../styles/create.css");while(sheetQueue.length>0){const e=sheetQueue.shift();if(!zss_engine_1.isDevelopment&&e)(0,zss_engine_1.build)(e,s)}isProcessing=false}async function buildCreate(){if(typeof globalPromise==="undefined")initPromise();if(!isProcessing&&sheetQueue.length>0){isProcessing=true;processQueue()}}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.globalPromise = exports.resolvePromise = void 0;
4
+ exports.buildCreate = buildCreate;
5
+ exports.initPromise = initPromise;
6
+ const zss_engine_1 = require("zss-engine");
7
+ let resolvePromise;
8
+ let globalPromise;
9
+ const sheetQueue = [];
10
+ let isProcessing = false;
11
+ function initPromise() {
12
+ exports.globalPromise = globalPromise = new Promise((resolve) => {
13
+ exports.resolvePromise = resolvePromise = (value) => {
14
+ sheetQueue.push(value);
15
+ resolve(value);
16
+ };
17
+ });
18
+ }
19
+ function processQueue() {
20
+ const path = require('path');
21
+ const filePath = path.join(__dirname, '../styles/create.css');
22
+ while (sheetQueue.length > 0) {
23
+ const styleSheet = sheetQueue.shift();
24
+ if (!zss_engine_1.isDevelopment && styleSheet)
25
+ (0, zss_engine_1.build)(styleSheet, filePath);
26
+ }
27
+ isProcessing = false;
28
+ }
29
+ async function buildCreate() {
30
+ if (typeof globalPromise === 'undefined')
31
+ initPromise();
32
+ if (!isProcessing && sheetQueue.length > 0) {
33
+ isProcessing = true;
34
+ processQueue();
35
+ }
36
+ }
37
+ //# sourceMappingURL=create-build-helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-build-helper.js","sourceRoot":"","sources":["../../src/method/create-build-helper.ts"],"names":[],"mappings":";;;AA2BA,kCAMC;AAEuC,kCAAW;AAnCnD,2CAAkD;AAElD,IAAI,cAAuC,CAAC;AAC5C,IAAI,aAA8B,CAAC;AACnC,MAAM,UAAU,GAAa,EAAE,CAAC;AAChC,IAAI,YAAY,GAAG,KAAK,CAAC;AAEzB,SAAS,WAAW;IAClB,wBAAA,aAAa,GAAG,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,EAAE;QAC9C,yBAAA,cAAc,GAAG,CAAC,KAAa,EAAE,EAAE;YACjC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACvB,OAAO,CAAC,KAAK,CAAC,CAAC;QACjB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,YAAY;IACnB,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC;IAE9D,OAAO,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC7B,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC;QACtC,IAAI,CAAC,0BAAa,IAAI,UAAU;YAAE,IAAA,kBAAK,EAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAChE,CAAC;IACD,YAAY,GAAG,KAAK,CAAC;AACvB,CAAC;AAEM,KAAK,UAAU,WAAW;IAC/B,IAAI,OAAO,aAAa,KAAK,WAAW;QAAE,WAAW,EAAE,CAAC;IACxD,IAAI,CAAC,YAAY,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3C,YAAY,GAAG,IAAI,CAAC;QACpB,YAAY,EAAE,CAAC;IACjB,CAAC;AACH,CAAC"}
@@ -1 +1,33 @@
1
- import{build,isDevelopment}from"zss-engine";let resolvePromise;let globalPromise;const sheetQueue=[];let isProcessing=false;function initPromise(){globalPromise=new Promise((e=>{resolvePromise=s=>{sheetQueue.push(s);e(s)}}))}function processQueue(){const e=require("path");const s=e.join(__dirname,"../styles/create.css");while(sheetQueue.length>0){const e=sheetQueue.shift();if(!isDevelopment&&e)build(e,s)}isProcessing=false}export async function buildCreate(){if(typeof globalPromise==="undefined")initPromise();if(!isProcessing&&sheetQueue.length>0){isProcessing=true;processQueue()}}export{resolvePromise,globalPromise,initPromise};
1
+ import { build, isDevelopment } from 'zss-engine';
2
+ let resolvePromise;
3
+ let globalPromise;
4
+ const sheetQueue = [];
5
+ let isProcessing = false;
6
+ function initPromise() {
7
+ globalPromise = new Promise((resolve) => {
8
+ resolvePromise = (value) => {
9
+ sheetQueue.push(value);
10
+ resolve(value);
11
+ };
12
+ });
13
+ }
14
+ function processQueue() {
15
+ const path = require('path');
16
+ const filePath = path.join(__dirname, '../styles/create.css');
17
+ while (sheetQueue.length > 0) {
18
+ const styleSheet = sheetQueue.shift();
19
+ if (!isDevelopment && styleSheet)
20
+ build(styleSheet, filePath);
21
+ }
22
+ isProcessing = false;
23
+ }
24
+ export async function buildCreate() {
25
+ if (typeof globalPromise === 'undefined')
26
+ initPromise();
27
+ if (!isProcessing && sheetQueue.length > 0) {
28
+ isProcessing = true;
29
+ processQueue();
30
+ }
31
+ }
32
+ export { resolvePromise, globalPromise, initPromise };
33
+ //# sourceMappingURL=create-build-helper.js.map
@@ -1 +1,26 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.create=create;const zss_engine_1=require("zss-engine");const create_build_helper_1=require("./create-build-helper");require("../styles/create.css");function create(e){const r=(0,zss_engine_1.genBase36Hash)(e,6);const{styleSheet:s}=(0,zss_engine_1.transpiler)(e,r);const t=zss_engine_1.isServer?zss_engine_1.injectServerCSS:zss_engine_1.injectClientCSS;if(typeof create_build_helper_1.globalPromise==="undefined")(0,create_build_helper_1.initPromise)();(0,create_build_helper_1.resolvePromise)(s);Object.keys(e).forEach((n=>{Object.defineProperty(e,n,{get:()=>{const e=n+"_"+r;if(zss_engine_1.isDevAndTest)t(r,s);return e}})}));return Object.freeze(e)}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.create = create;
4
+ const zss_engine_1 = require("zss-engine");
5
+ const create_build_helper_1 = require("./create-build-helper");
6
+ require("../styles/create.css");
7
+ function create(object) {
8
+ const base36Hash = (0, zss_engine_1.genBase36Hash)(object, 6);
9
+ const { styleSheet } = (0, zss_engine_1.transpiler)(object, base36Hash);
10
+ const injectCSS = zss_engine_1.isServer ? zss_engine_1.injectServerCSS : zss_engine_1.injectClientCSS;
11
+ if (typeof create_build_helper_1.globalPromise === 'undefined')
12
+ (0, create_build_helper_1.initPromise)();
13
+ (0, create_build_helper_1.resolvePromise)(styleSheet);
14
+ Object.keys(object).forEach((key) => {
15
+ Object.defineProperty(object, key, {
16
+ get: () => {
17
+ const className = key + '_' + base36Hash;
18
+ if (zss_engine_1.isDevAndTest)
19
+ injectCSS(base36Hash, styleSheet);
20
+ return className;
21
+ },
22
+ });
23
+ });
24
+ return Object.freeze(object);
25
+ }
26
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../src/method/create.ts"],"names":[],"mappings":";;AAgBA,wBAoBC;AAnCD,2CAOoB;AACpB,+DAI+B;AAC/B,gCAA8B;AAE9B,SAAgB,MAAM,CACpB,MAAsB;IAEtB,MAAM,UAAU,GAAG,IAAA,0BAAa,EAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,uBAAU,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACtD,MAAM,SAAS,GAAG,qBAAQ,CAAC,CAAC,CAAC,4BAAe,CAAC,CAAC,CAAC,4BAAe,CAAC;IAC/D,IAAI,OAAO,mCAAa,KAAK,WAAW;QAAE,IAAA,iCAAW,GAAE,CAAC;IACxD,IAAA,oCAAc,EAAC,UAAU,CAAC,CAAC;IAE3B,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAClC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE;YACjC,GAAG,EAAE,GAAG,EAAE;gBACR,MAAM,SAAS,GAAG,GAAG,GAAG,GAAG,GAAG,UAAU,CAAC;gBACzC,IAAI,yBAAY;oBAAE,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;gBACpD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,MAAM,CAAC,MAAkC,CAAC,CAAC;AAC3D,CAAC"}
@@ -1 +1,23 @@
1
- import{isDevAndTest,transpiler,injectServerCSS,genBase36Hash,isServer,injectClientCSS}from"zss-engine";import{initPromise,globalPromise,resolvePromise}from"./create-build-helper";import"../styles/create.css";export function create(e){const r=genBase36Hash(e,6);const{styleSheet:t}=transpiler(e,r);const i=isServer?injectServerCSS:injectClientCSS;if(typeof globalPromise==="undefined")initPromise();resolvePromise(t);Object.keys(e).forEach((s=>{Object.defineProperty(e,s,{get:()=>{const e=s+"_"+r;if(isDevAndTest)i(r,t);return e}})}));return Object.freeze(e)}
1
+ import { isDevAndTest, transpiler, injectServerCSS, genBase36Hash, isServer, injectClientCSS, } from 'zss-engine';
2
+ import { initPromise, globalPromise, resolvePromise, } from './create-build-helper';
3
+ import '../styles/create.css';
4
+ export function create(object) {
5
+ const base36Hash = genBase36Hash(object, 6);
6
+ const { styleSheet } = transpiler(object, base36Hash);
7
+ const injectCSS = isServer ? injectServerCSS : injectClientCSS;
8
+ if (typeof globalPromise === 'undefined')
9
+ initPromise();
10
+ resolvePromise(styleSheet);
11
+ Object.keys(object).forEach((key) => {
12
+ Object.defineProperty(object, key, {
13
+ get: () => {
14
+ const className = key + '_' + base36Hash;
15
+ if (isDevAndTest)
16
+ injectCSS(base36Hash, styleSheet);
17
+ return className;
18
+ },
19
+ });
20
+ });
21
+ return Object.freeze(object);
22
+ }
23
+ //# sourceMappingURL=create.js.map
@@ -1 +1,30 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.defineThemeVars=void 0;const global_1=require("./global");const defineThemeVars=e=>{const t={};const o={};Object.entries(e).forEach((([e,r])=>{o[e]=`var(--${e})`;if(typeof r==="string"){(t[":root"]||={})[`--${e}`]=r}else if(typeof r==="object"){Object.entries(r).forEach((([o,r])=>{if(o.startsWith("@media")){(t[":root"]||={})[o]||={};t[":root"][o][`--${e}`]=r}else{const s=o==="default"?":root":`:root[data-theme="${o}"]`;(t[s]||={})[`--${e}`]=r}}))}}));(0,global_1.global)(t);return o};exports.defineThemeVars=defineThemeVars;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defineThemeVars = void 0;
4
+ const global_1 = require("./global");
5
+ const defineThemeVars = (object) => {
6
+ const globalStyles = {};
7
+ const result = {};
8
+ Object.entries(object).forEach(([key, value]) => {
9
+ result[key] = `var(--${key})`;
10
+ if (typeof value === 'string') {
11
+ (globalStyles[':root'] ||= {})[`--${key}`] = value;
12
+ }
13
+ else if (typeof value === 'object') {
14
+ Object.entries(value).forEach(([subKey, subValue]) => {
15
+ if (subKey.startsWith('@media')) {
16
+ (globalStyles[':root'] ||= {})[subKey] ||= {};
17
+ globalStyles[':root'][subKey][`--${key}`] = subValue;
18
+ }
19
+ else {
20
+ const themeSelector = subKey === 'default' ? ':root' : `:root[data-theme="${subKey}"]`;
21
+ (globalStyles[themeSelector] ||= {})[`--${key}`] = subValue;
22
+ }
23
+ });
24
+ }
25
+ });
26
+ (0, global_1.global)(globalStyles);
27
+ return result;
28
+ };
29
+ exports.defineThemeVars = defineThemeVars;
30
+ //# sourceMappingURL=define-theme-vars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define-theme-vars.js","sourceRoot":"","sources":["../../src/method/define-theme-vars.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAG3B,MAAM,eAAe,GAAG,CAAiC,MAAS,EAAE,EAAE;IAC3E,MAAM,YAAY,GAGd,EAAE,CAAC;IAEP,MAAM,MAAM,GAAG,EAEd,CAAC;IAEF,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC9C,MAAM,CAAC,GAAc,CAAC,GAAG,SAAS,GAAG,GAAG,CAAC;QAEzC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC;QACrD,CAAC;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YACrC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE;gBACnD,IAAI,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAChC,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;oBAC7C,YAAY,CAAC,OAAO,CAAC,CAAC,MAAM,CAAqC,CAChE,KAAK,GAAG,EAAE,CACX,GAAG,QAAQ,CAAC;gBACf,CAAC;qBAAM,CAAC;oBACN,MAAM,aAAa,GACjB,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,qBAAqB,MAAM,IAAI,CAAC;oBACnE,CAAC,YAAY,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,GAAG,QAAQ,CAAC;gBAC9D,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,IAAA,eAAM,EAAC,YAA+B,CAAC,CAAC;IAExC,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAlCW,QAAA,eAAe,mBAkC1B"}
@@ -1 +1,26 @@
1
- import{global}from"./global";export const defineThemeVars=t=>{const o={};const e={};Object.entries(t).forEach((([t,r])=>{e[t]=`var(--${t})`;if(typeof r==="string"){(o[":root"]||={})[`--${t}`]=r}else if(typeof r==="object"){Object.entries(r).forEach((([e,r])=>{if(e.startsWith("@media")){(o[":root"]||={})[e]||={};o[":root"][e][`--${t}`]=r}else{const a=e==="default"?":root":`:root[data-theme="${e}"]`;(o[a]||={})[`--${t}`]=r}}))}}));global(o);return e};
1
+ import { global } from './global';
2
+ export const defineThemeVars = (object) => {
3
+ const globalStyles = {};
4
+ const result = {};
5
+ Object.entries(object).forEach(([key, value]) => {
6
+ result[key] = `var(--${key})`;
7
+ if (typeof value === 'string') {
8
+ (globalStyles[':root'] ||= {})[`--${key}`] = value;
9
+ }
10
+ else if (typeof value === 'object') {
11
+ Object.entries(value).forEach(([subKey, subValue]) => {
12
+ if (subKey.startsWith('@media')) {
13
+ (globalStyles[':root'] ||= {})[subKey] ||= {};
14
+ globalStyles[':root'][subKey][`--${key}`] = subValue;
15
+ }
16
+ else {
17
+ const themeSelector = subKey === 'default' ? ':root' : `:root[data-theme="${subKey}"]`;
18
+ (globalStyles[themeSelector] ||= {})[`--${key}`] = subValue;
19
+ }
20
+ });
21
+ }
22
+ });
23
+ global(globalStyles);
24
+ return result;
25
+ };
26
+ //# sourceMappingURL=define-theme-vars.js.map
@@ -1 +1,37 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.globalPromise=exports.resolvePromise=void 0;exports.buildGlobal=buildGlobal;exports.initPromise=initPromise;const zss_engine_1=require("zss-engine");let resolvePromise;let globalPromise;const seetQueue=[];let isProcessing=false;function initPromise(){exports.globalPromise=globalPromise=new Promise((e=>{exports.resolvePromise=resolvePromise=s=>{seetQueue.push(s);e(s)}}))}function processSheets(){const e=require("path");const s=e.join(__dirname,"../styles/global.css");while(seetQueue.length>0){const[e,i]=seetQueue.shift();if(!zss_engine_1.isDevelopment&&e)(0,zss_engine_1.build)(e,s,i)}isProcessing=false}async function buildGlobal(){if(typeof globalPromise==="undefined")initPromise();if(!isProcessing&&seetQueue.length>0){isProcessing=true;processSheets()}}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.globalPromise = exports.resolvePromise = void 0;
4
+ exports.buildGlobal = buildGlobal;
5
+ exports.initPromise = initPromise;
6
+ const zss_engine_1 = require("zss-engine");
7
+ let resolvePromise;
8
+ let globalPromise;
9
+ const seetQueue = [];
10
+ let isProcessing = false;
11
+ function initPromise() {
12
+ exports.globalPromise = globalPromise = new Promise((resolve) => {
13
+ exports.resolvePromise = resolvePromise = (value) => {
14
+ seetQueue.push(value);
15
+ resolve(value);
16
+ };
17
+ });
18
+ }
19
+ function processSheets() {
20
+ const path = require('path');
21
+ const filePath = path.join(__dirname, '../styles/global.css');
22
+ while (seetQueue.length > 0) {
23
+ const [styleSheet, option] = seetQueue.shift();
24
+ if (!zss_engine_1.isDevelopment && styleSheet)
25
+ (0, zss_engine_1.build)(styleSheet, filePath, option);
26
+ }
27
+ isProcessing = false;
28
+ }
29
+ async function buildGlobal() {
30
+ if (typeof globalPromise === 'undefined')
31
+ initPromise();
32
+ if (!isProcessing && seetQueue.length > 0) {
33
+ isProcessing = true;
34
+ processSheets();
35
+ }
36
+ }
37
+ //# sourceMappingURL=global-build-helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global-build-helper.js","sourceRoot":"","sources":["../../src/method/global-build-helper.ts"],"names":[],"mappings":";;;AA2BA,kCAMC;AAEuC,kCAAW;AAnCnD,2CAAkD;AAElD,IAAI,cAAiD,CAAC;AACtD,IAAI,aAAwC,CAAC;AAC7C,MAAM,SAAS,GAAwB,EAAE,CAAC;AAC1C,IAAI,YAAY,GAAG,KAAK,CAAC;AAEzB,SAAS,WAAW;IAClB,wBAAA,aAAa,GAAG,IAAI,OAAO,CAAmB,CAAC,OAAO,EAAE,EAAE;QACxD,yBAAA,cAAc,GAAG,CAAC,KAAuB,EAAE,EAAE;YAC3C,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACtB,OAAO,CAAC,KAAK,CAAC,CAAC;QACjB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,aAAa;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC;IAE9D,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC,KAAK,EAAsB,CAAC;QACnE,IAAI,CAAC,0BAAa,IAAI,UAAU;YAAE,IAAA,kBAAK,EAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IACxE,CAAC;IACD,YAAY,GAAG,KAAK,CAAC;AACvB,CAAC;AAEM,KAAK,UAAU,WAAW;IAC/B,IAAI,OAAO,aAAa,KAAK,WAAW;QAAE,WAAW,EAAE,CAAC;IACxD,IAAI,CAAC,YAAY,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1C,YAAY,GAAG,IAAI,CAAC;QACpB,aAAa,EAAE,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -1 +1,33 @@
1
- import{build,isDevelopment}from"zss-engine";let resolvePromise;let globalPromise;const seetQueue=[];let isProcessing=false;function initPromise(){globalPromise=new Promise((e=>{resolvePromise=s=>{seetQueue.push(s);e(s)}}))}function processSheets(){const e=require("path");const s=e.join(__dirname,"../styles/global.css");while(seetQueue.length>0){const[e,i]=seetQueue.shift();if(!isDevelopment&&e)build(e,s,i)}isProcessing=false}export async function buildGlobal(){if(typeof globalPromise==="undefined")initPromise();if(!isProcessing&&seetQueue.length>0){isProcessing=true;processSheets()}}export{resolvePromise,globalPromise,initPromise};
1
+ import { build, isDevelopment } from 'zss-engine';
2
+ let resolvePromise;
3
+ let globalPromise;
4
+ const seetQueue = [];
5
+ let isProcessing = false;
6
+ function initPromise() {
7
+ globalPromise = new Promise((resolve) => {
8
+ resolvePromise = (value) => {
9
+ seetQueue.push(value);
10
+ resolve(value);
11
+ };
12
+ });
13
+ }
14
+ function processSheets() {
15
+ const path = require('path');
16
+ const filePath = path.join(__dirname, '../styles/global.css');
17
+ while (seetQueue.length > 0) {
18
+ const [styleSheet, option] = seetQueue.shift();
19
+ if (!isDevelopment && styleSheet)
20
+ build(styleSheet, filePath, option);
21
+ }
22
+ isProcessing = false;
23
+ }
24
+ export async function buildGlobal() {
25
+ if (typeof globalPromise === 'undefined')
26
+ initPromise();
27
+ if (!isProcessing && seetQueue.length > 0) {
28
+ isProcessing = true;
29
+ processSheets();
30
+ }
31
+ }
32
+ export { resolvePromise, globalPromise, initPromise };
33
+ //# sourceMappingURL=global-build-helper.js.map
@@ -1 +1,18 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.global=global;const zss_engine_1=require("zss-engine");const global_build_helper_1=require("./global-build-helper");require("../styles/global.css");function global(e){const l=(0,zss_engine_1.genBase36Hash)(e,8);const{styleSheet:s}=(0,zss_engine_1.transpiler)(e,undefined,"--global");if(typeof global_build_helper_1.globalPromise==="undefined")(0,global_build_helper_1.initPromise)();(0,global_build_helper_1.resolvePromise)([s,"--global"]);if(zss_engine_1.isDevAndTest)zss_engine_1.isServer?(0,zss_engine_1.injectServerCSS)(l,s):(0,zss_engine_1.injectClientGlobalCSS)(s,"global")}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.global = global;
4
+ const zss_engine_1 = require("zss-engine");
5
+ const global_build_helper_1 = require("./global-build-helper");
6
+ require("../styles/global.css");
7
+ function global(object) {
8
+ const base36Hash = (0, zss_engine_1.genBase36Hash)(object, 8);
9
+ const { styleSheet } = (0, zss_engine_1.transpiler)(object, undefined, '--global');
10
+ if (typeof global_build_helper_1.globalPromise === 'undefined')
11
+ (0, global_build_helper_1.initPromise)();
12
+ (0, global_build_helper_1.resolvePromise)([styleSheet, '--global']);
13
+ if (zss_engine_1.isDevAndTest)
14
+ zss_engine_1.isServer
15
+ ? (0, zss_engine_1.injectServerCSS)(base36Hash, styleSheet)
16
+ : (0, zss_engine_1.injectClientGlobalCSS)(styleSheet, 'global');
17
+ }
18
+ //# sourceMappingURL=global.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/method/global.ts"],"names":[],"mappings":";;AAgBA,wBAUC;AAzBD,2CAOoB;AACpB,+DAI+B;AAC/B,gCAA8B;AAE9B,SAAgB,MAAM,CAAC,MAAuC;IAC5D,MAAM,UAAU,GAAG,IAAA,0BAAa,EAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,uBAAU,EAAC,MAAM,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;IACjE,IAAI,OAAO,mCAAa,KAAK,WAAW;QAAE,IAAA,iCAAW,GAAE,CAAC;IACxD,IAAA,oCAAc,EAAC,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;IAEzC,IAAI,yBAAY;QACd,qBAAQ;YACN,CAAC,CAAC,IAAA,4BAAe,EAAC,UAAU,EAAE,UAAU,CAAC;YACzC,CAAC,CAAC,IAAA,kCAAqB,EAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AACpD,CAAC"}
@@ -1 +1,15 @@
1
- import{isDevAndTest,isServer,injectServerCSS,injectClientGlobalCSS,transpiler,genBase36Hash}from"zss-engine";import{resolvePromise,globalPromise,initPromise}from"./global-build-helper";import"../styles/global.css";export function global(e){const i=genBase36Hash(e,8);const{styleSheet:l}=transpiler(e,undefined,"--global");if(typeof globalPromise==="undefined")initPromise();resolvePromise([l,"--global"]);if(isDevAndTest)isServer?injectServerCSS(i,l):injectClientGlobalCSS(l,"global")}
1
+ import { isDevAndTest, isServer, injectServerCSS, injectClientGlobalCSS, transpiler, genBase36Hash, } from 'zss-engine';
2
+ import { resolvePromise, globalPromise, initPromise, } from './global-build-helper';
3
+ import '../styles/global.css';
4
+ export function global(object) {
5
+ const base36Hash = genBase36Hash(object, 8);
6
+ const { styleSheet } = transpiler(object, undefined, '--global');
7
+ if (typeof globalPromise === 'undefined')
8
+ initPromise();
9
+ resolvePromise([styleSheet, '--global']);
10
+ if (isDevAndTest)
11
+ isServer
12
+ ? injectServerCSS(base36Hash, styleSheet)
13
+ : injectClientGlobalCSS(styleSheet, 'global');
14
+ }
15
+ //# sourceMappingURL=global.js.map
@@ -1 +1,12 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.keyframes=void 0;const zss_engine_1=require("zss-engine");const global_1=require("./global");const keyframes=e=>{const s=(0,zss_engine_1.genBase36Hash)(e,8);(0,global_1.global)({[`@keyframes ${s}`]:e});return s};exports.keyframes=keyframes;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.keyframes = void 0;
4
+ const zss_engine_1 = require("zss-engine");
5
+ const global_1 = require("./global");
6
+ const keyframes = (object) => {
7
+ const prefix = (0, zss_engine_1.genBase36Hash)(object, 8);
8
+ (0, global_1.global)({ [`@keyframes ${prefix}`]: object });
9
+ return prefix;
10
+ };
11
+ exports.keyframes = keyframes;
12
+ //# sourceMappingURL=keyframes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyframes.js","sourceRoot":"","sources":["../../src/method/keyframes.ts"],"names":[],"mappings":";;;AAAA,2CAAgE;AAChE,qCAAkC;AAE3B,MAAM,SAAS,GAAG,CAAC,MAA2B,EAAE,EAAE;IACvD,MAAM,MAAM,GAAG,IAAA,0BAAa,EAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACxC,IAAA,eAAM,EAAC,EAAE,CAAC,cAAc,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7C,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAJW,QAAA,SAAS,aAIpB"}
@@ -1 +1,8 @@
1
- import{genBase36Hash}from"zss-engine";import{global}from"./global";export const keyframes=e=>{const o=genBase36Hash(e,8);global({[`@keyframes ${o}`]:e});return o};
1
+ import { genBase36Hash } from 'zss-engine';
2
+ import { global } from './global';
3
+ export const keyframes = (object) => {
4
+ const prefix = genBase36Hash(object, 8);
5
+ global({ [`@keyframes ${prefix}`]: object });
6
+ return prefix;
7
+ };
8
+ //# sourceMappingURL=keyframes.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Near Zero-runtime CSS-in-JS for efficient design systems.",
5
5
  "keywords": [
6
6
  "react",
@@ -16,40 +16,41 @@
16
16
  "exports": {
17
17
  "./package.json": "./package.json",
18
18
  "./dist/method/create-build-helper": {
19
- "types": "./dist/method/create-build-helper.d.ts",
19
+ "types": "./types/method/create-build-helper.d.ts",
20
20
  "import": "./dist/method/create-build-helper.mjs",
21
21
  "default": "./dist/method/create-build-helper.js"
22
22
  },
23
23
  "./dist/method/global-build-helper": {
24
- "types": "./dist/method/global-build-helper.d.ts",
24
+ "types": "./types/method/global-build-helper.d.ts",
25
25
  "import": "./dist/method/global-build-helper.mjs",
26
26
  "default": "./dist/method/global-build-helper.js"
27
27
  },
28
28
  ".": {
29
- "types": "./dist/index.d.ts",
29
+ "types": "./types/index.d.ts",
30
30
  "import": "./dist/index.mjs",
31
31
  "default": "./dist/index.js"
32
32
  }
33
33
  },
34
34
  "main": "dist/index.js",
35
35
  "module": "dist/index.mjs",
36
- "types": "dist/index.d.ts",
36
+ "types": "types/index.d.ts",
37
37
  "files": [
38
- "dist"
38
+ "dist",
39
+ "types"
39
40
  ],
40
41
  "dependencies": {
41
- "zss-engine": "^0.2.5",
42
- "@plumeria/collection": "^0.2.0"
42
+ "zss-engine": "^0.2.6",
43
+ "@plumeria/collection": "^0.2.2"
43
44
  },
44
45
  "publishConfig": {
45
46
  "access": "public"
46
47
  },
47
48
  "scripts": {
48
- "build": "rm -rf dist && pnpm build:mjs && pnpm cjs && pnpm minify && cp -r src/styles dist",
49
- "build:mjs": "pnpm esm && for file in $(find dist -name '*.js'); do mv \"$file\" \"${file%.*}.mjs\"; done",
50
- "cjs": "npx tsc --project tsconfig.cjs.json",
51
- "esm": "npx tsc --project tsconfig.esm.json",
52
- "minify": "for file in $(find dist -name '*.js' -o -name '*.mjs'); do terser \"$file\" -m -o \"$file\"; done",
49
+ "build": "pnpm esm && pnpm cjs && pnpm dts && pnpm css",
50
+ "cjs": "tsc --project tsconfig.cjs.json",
51
+ "esm": "tsc --project tsconfig.esm.json && node build.esm.js",
52
+ "dts": "tsc --project tsconfig.dts.json",
53
+ "css": "shx cp -r src/styles dist",
53
54
  "test": "jest --config ../../jest.config.js"
54
55
  }
55
56
  }
@@ -16,9 +16,9 @@ declare class css {
16
16
  readonly max_lg: "@media (max-width: 1024px)";
17
17
  readonly max_xl: "@media (max-width: 1280px)";
18
18
  readonly max_2xl: "@media (max-width: 1536px)";
19
- readonly range: (range: string) => "@media (range)";
20
- readonly max: (size: string) => "@media (max-size)";
21
- readonly min: (size: string) => "@media (min-size)";
19
+ readonly range: (range: string) => string;
20
+ readonly max: (size: string) => string;
21
+ readonly min: (size: string) => string;
22
22
  readonly scheme: {
23
23
  readonly dark: "@media (prefers-color-scheme: dark)";
24
24
  readonly light: "@media (prefers-color-scheme: light)";
@@ -31,21 +31,21 @@ declare class css {
31
31
  readonly link: ":link";
32
32
  readonly visited: ":visited";
33
33
  readonly target: ":target";
34
- readonly lang: (str: string) => ":lang()";
35
- readonly not: (str: string) => ":not()";
36
- readonly has: (str: string) => ":has()";
37
- readonly is: (str: string) => ":is()";
38
- readonly where: (str: string) => ":where()";
34
+ readonly lang: (str: string) => string;
35
+ readonly not: (str: string) => string;
36
+ readonly has: (str: string) => string;
37
+ readonly is: (str: string) => string;
38
+ readonly where: (str: string) => string;
39
39
  readonly firstChild: ":first-child";
40
40
  readonly lastChild: ":last-child";
41
41
  readonly firstOfType: ":first-of-type";
42
42
  readonly lastOfType: ":last-of-type";
43
43
  readonly onlyOfType: ":only-of-type";
44
44
  readonly onlyChild: ":only-child";
45
- readonly nthChild: (str: string) => ":nth-child()";
46
- readonly nthLastChild: (str: string) => ":nth-last-child()";
47
- readonly nthLastOfType: (str: string) => ":nth-last-of-type()";
48
- readonly nthOfType: (str: string) => ":nth-of-type()";
45
+ readonly nthChild: (str: string) => string;
46
+ readonly nthLastChild: (str: string) => string;
47
+ readonly nthLastOfType: (str: string) => string;
48
+ readonly nthOfType: (str: string) => string;
49
49
  readonly empty: ":empty";
50
50
  readonly checked: ":checked";
51
51
  readonly disabled: ":disabled";
@@ -64,15 +64,20 @@ declare class css {
64
64
  readonly firstLine: "::first-line";
65
65
  readonly marker: "::marker";
66
66
  readonly selection: "::selection";
67
+ readonly viewTransition: "::view-transition";
68
+ readonly viewTransitionImagePair: (str: string) => string;
69
+ readonly viewTransitionGroup: (str: string) => string;
70
+ readonly viewTransitionOld: (str: string) => string;
71
+ readonly viewTransitionNew: (str: string) => string;
67
72
  };
68
73
  static colors: {
69
74
  darken: (color: string, amount: string | number) => string;
70
75
  lighten: (color: string, amount: string | number) => string;
71
76
  };
72
77
  static container: {
73
- range: (range: string) => "@container (range)";
74
- max: (size: string) => "@container (max-size)";
75
- min: (size: string) => "@container (min-size)";
78
+ range: (range: string) => string;
79
+ max: (size: string) => string;
80
+ min: (size: string) => string;
76
81
  };
77
82
  }
78
83
  export { css, cx };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes