@plumeria/core 0.7.5 → 0.7.7
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/method/create.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.create = create;
|
|
4
|
+
require("../styles/create.css");
|
|
4
5
|
const zss_engine_1 = require("zss-engine");
|
|
5
6
|
const create_build_helper_1 = require("./create-build-helper");
|
|
6
|
-
require("../styles/create.css");
|
|
7
7
|
function create(object) {
|
|
8
8
|
const base36Hash = (0, zss_engine_1.genBase36Hash)(object, 6);
|
|
9
9
|
const { styleSheet } = (0, zss_engine_1.transpiler)(object, base36Hash);
|
package/dist/method/create.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import '../styles/create.css';
|
|
1
2
|
import { isDevAndTest, transpiler, injectServerCSS, genBase36Hash, isServer, injectClientCSS, } from 'zss-engine';
|
|
2
3
|
import { initPromise, globalPromise, resolvePromise, } from './create-build-helper';
|
|
3
|
-
import '../styles/create.css';
|
|
4
4
|
export function create(object) {
|
|
5
5
|
const base36Hash = genBase36Hash(object, 6);
|
|
6
6
|
const { styleSheet } = transpiler(object, base36Hash);
|
package/dist/method/global.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.global = global;
|
|
4
|
+
require("../styles/global.css");
|
|
4
5
|
const zss_engine_1 = require("zss-engine");
|
|
5
6
|
const global_build_helper_1 = require("./global-build-helper");
|
|
6
|
-
require("../styles/global.css");
|
|
7
7
|
function global(object) {
|
|
8
8
|
const base36Hash = (0, zss_engine_1.genBase36Hash)(object, 8);
|
|
9
9
|
const { styleSheet } = (0, zss_engine_1.transpiler)(object, undefined, '--global');
|
package/dist/method/global.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import '../styles/global.css';
|
|
1
2
|
import { isDevAndTest, isServer, injectServerCSS, injectClientGlobalCSS, transpiler, genBase36Hash, } from 'zss-engine';
|
|
2
3
|
import { resolvePromise, globalPromise, initPromise, } from './global-build-helper';
|
|
3
|
-
import '../styles/global.css';
|
|
4
4
|
export function global(object) {
|
|
5
5
|
const base36Hash = genBase36Hash(object, 8);
|
|
6
6
|
const { styleSheet } = transpiler(object, undefined, '--global');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "Near Zero-runtime CSS-in-JS for efficient design systems.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"types/"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"zss-engine": "0.2.
|
|
43
|
-
"@plumeria/collection": "0.5.
|
|
42
|
+
"zss-engine": "^0.2.19",
|
|
43
|
+
"@plumeria/collection": "^0.5.1"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
package/types/css.d.ts
CHANGED
|
@@ -100,7 +100,6 @@ declare class css {
|
|
|
100
100
|
readonly cue: (str: string) => "::cue()";
|
|
101
101
|
readonly dir: (str: string) => ":dir()";
|
|
102
102
|
readonly has: (str: string) => ":has()";
|
|
103
|
-
readonly highlight: (str: string) => "::highlight()";
|
|
104
103
|
readonly host: (str: string) => ":host()";
|
|
105
104
|
readonly hostContext: (str: string) => ":host-context()";
|
|
106
105
|
readonly is: (str: string) => ":is()";
|
|
@@ -110,13 +109,15 @@ declare class css {
|
|
|
110
109
|
readonly nthLastOfType: (str: string) => ":nth-last-of-type()";
|
|
111
110
|
readonly nthOfType: (str: string) => ":nth-of-type()";
|
|
112
111
|
readonly not: (str: string) => ":not()";
|
|
113
|
-
readonly slotted: (str: string) => "::slotted()";
|
|
114
112
|
readonly state: (str: string) => ":state()";
|
|
113
|
+
readonly where: (str: string) => ":where()";
|
|
114
|
+
readonly highlight: (str: string) => "::highlight()";
|
|
115
|
+
readonly part: (str: string) => "::part()";
|
|
116
|
+
readonly slotted: (str: string) => "::slotted()";
|
|
115
117
|
readonly viewTransitionImagePair: (str: string) => "::view-transition-image-pair()";
|
|
116
118
|
readonly viewTransitionGroup: (str: string) => "::view-transition-group()";
|
|
117
119
|
readonly viewTransitionOld: (str: string) => "::view-transition-old()";
|
|
118
120
|
readonly viewTransitionNew: (str: string) => "::view-transition-new()";
|
|
119
|
-
readonly where: (str: string) => ":where()";
|
|
120
121
|
};
|
|
121
122
|
};
|
|
122
123
|
static colors: {
|
package/types/method/create.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ReturnType, CreateStyle, CustomProperties } from 'zss-engine';
|
|
2
1
|
import '../styles/create.css';
|
|
2
|
+
import type { ReturnType, CreateStyle, CustomProperties } from 'zss-engine';
|
|
3
3
|
export declare function create<T extends Record<string, CustomProperties>>(object: CreateStyle<T>): ReturnType<T>;
|
package/types/method/global.d.ts
CHANGED