@plumeria/core 0.28.2 → 1.0.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/index.js +0 -22
- package/dist/index.mjs +1 -23
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -113,27 +113,6 @@ function props(...objects) {
|
|
|
113
113
|
uniqueStyleSheets.forEach((sheet) => injectedStyleSheets.add(sheet));
|
|
114
114
|
if (typeof require_css.globalPromise_1 === "undefined") require_css.initPromise_1();
|
|
115
115
|
require_css.resolvePromise_1(uniqueStyleSheets.join(""));
|
|
116
|
-
if (zss_engine.isTestingDevelopment && !zss_engine.isServer) {
|
|
117
|
-
const normalStyles = [];
|
|
118
|
-
const queryStyles = [];
|
|
119
|
-
for (const { hash, sheet } of [...orderedKeys, ...rightmostKeys]) {
|
|
120
|
-
if ((0, zss_engine.isHashInStyleSheets)(hash)) continue;
|
|
121
|
-
if (sheet.includes("@media") || sheet.includes("@container")) queryStyles.push({
|
|
122
|
-
hash,
|
|
123
|
-
sheet
|
|
124
|
-
});
|
|
125
|
-
else normalStyles.push({
|
|
126
|
-
hash,
|
|
127
|
-
sheet
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
for (const { hash, sheet } of normalStyles.reverse()) (0, zss_engine.injectClientCSS)(hash, sheet);
|
|
131
|
-
if (queryStyles.length > 0) {
|
|
132
|
-
const combinedSheet = queryStyles.map((s) => s.sheet).join("");
|
|
133
|
-
const combinedHashes = queryStyles.map((s) => s.hash).join(" ");
|
|
134
|
-
(0, zss_engine.injectClientQuery)(combinedHashes, combinedSheet);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
116
|
return classList.join(" ");
|
|
138
117
|
}
|
|
139
118
|
|
|
@@ -141,7 +120,6 @@ function global(object) {
|
|
|
141
120
|
const { styleSheet } = (0, zss_engine.transpile)(object, void 0, "--global");
|
|
142
121
|
if (typeof require_css.globalPromise_2 === "undefined") require_css.initPromise_2();
|
|
143
122
|
require_css.resolvePromise_2(styleSheet);
|
|
144
|
-
if (zss_engine.isTestingDevelopment && !zss_engine.isServer) (0, zss_engine.injectClientGlobalCSS)(styleSheet);
|
|
145
123
|
}
|
|
146
124
|
|
|
147
125
|
const keyframes = (object) => {
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { globalPromise_1, globalPromise_2, initPromise_1, initPromise_2, resolvePromise_1, resolvePromise_2 } from "./css.mjs";
|
|
2
|
-
import { camelToKebabCase, genBase36Hash,
|
|
2
|
+
import { camelToKebabCase, genBase36Hash, overrideLonghand, processAtomicProps, splitAtomicAndNested, transformNestedSelectors, transpile } from "zss-engine";
|
|
3
3
|
|
|
4
4
|
const styleAtomMap = new WeakMap();
|
|
5
5
|
function create(object) {
|
|
@@ -113,27 +113,6 @@ function props(...objects) {
|
|
|
113
113
|
uniqueStyleSheets.forEach((sheet) => injectedStyleSheets.add(sheet));
|
|
114
114
|
if (typeof globalPromise_1 === "undefined") initPromise_1();
|
|
115
115
|
resolvePromise_1(uniqueStyleSheets.join(""));
|
|
116
|
-
if (isTestingDevelopment && !isServer) {
|
|
117
|
-
const normalStyles = [];
|
|
118
|
-
const queryStyles = [];
|
|
119
|
-
for (const { hash, sheet } of [...orderedKeys, ...rightmostKeys]) {
|
|
120
|
-
if (isHashInStyleSheets(hash)) continue;
|
|
121
|
-
if (sheet.includes("@media") || sheet.includes("@container")) queryStyles.push({
|
|
122
|
-
hash,
|
|
123
|
-
sheet
|
|
124
|
-
});
|
|
125
|
-
else normalStyles.push({
|
|
126
|
-
hash,
|
|
127
|
-
sheet
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
for (const { hash, sheet } of normalStyles.reverse()) injectClientCSS(hash, sheet);
|
|
131
|
-
if (queryStyles.length > 0) {
|
|
132
|
-
const combinedSheet = queryStyles.map((s) => s.sheet).join("");
|
|
133
|
-
const combinedHashes = queryStyles.map((s) => s.hash).join(" ");
|
|
134
|
-
injectClientQuery(combinedHashes, combinedSheet);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
116
|
return classList.join(" ");
|
|
138
117
|
}
|
|
139
118
|
|
|
@@ -141,7 +120,6 @@ function global(object) {
|
|
|
141
120
|
const { styleSheet } = transpile(object, void 0, "--global");
|
|
142
121
|
if (typeof globalPromise_2 === "undefined") initPromise_2();
|
|
143
122
|
resolvePromise_2(styleSheet);
|
|
144
|
-
if (isTestingDevelopment && !isServer) injectClientGlobalCSS(styleSheet);
|
|
145
123
|
}
|
|
146
124
|
|
|
147
125
|
const keyframes = (object) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "The atomic on-demand CSS-in-JS.",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"stylesheet.css"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"zss-engine": "0.
|
|
48
|
+
"zss-engine": "1.0.0"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public",
|