@plumeria/core 3.0.0 → 3.0.1
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/css.d.ts +9 -9
- package/dist/css.js +13 -32
- package/dist/css.mjs +13 -32
- package/package.json +1 -1
package/dist/css.d.ts
CHANGED
|
@@ -61,18 +61,18 @@ type ViewTransition = {
|
|
|
61
61
|
old?: CSSProperties;
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
declare
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
declare const css: {
|
|
65
|
+
new (): {};
|
|
66
|
+
create<const T extends Record<string, CSSProperties>>(_rule: CreateStyleType<T>): ReturnType<T>;
|
|
67
|
+
props(...rules: (false | CSSProperties | null | undefined)[]): string;
|
|
68
|
+
createTheme<const T extends CreateTheme>(_rule: T): ReturnVariableType<T>;
|
|
69
|
+
createStatic<const T extends CreateStatic>(_rule: T): T;
|
|
70
|
+
keyframes(_rule: Keyframes): string;
|
|
71
|
+
viewTransition(_rule: ViewTransition): string;
|
|
72
|
+
};
|
|
72
73
|
declare const x: (className: string, styles: Styles) => {
|
|
73
74
|
className: string;
|
|
74
75
|
styles: Styles;
|
|
75
76
|
};
|
|
76
|
-
declare const css: typeof _css;
|
|
77
77
|
|
|
78
78
|
export { type CSSProperties, type CreateStyle, css, x };
|
package/dist/css.js
CHANGED
|
@@ -1,50 +1,31 @@
|
|
|
1
1
|
|
|
2
2
|
function errorFn(fn) {
|
|
3
|
-
throw new Error(
|
|
3
|
+
throw new Error(`css.${fn} requires bundler-plugin setup`);
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function props(...rules) {
|
|
9
|
-
return rules.filter(Boolean).join(" ");
|
|
10
|
-
}
|
|
11
|
-
function createStatic(_rule) {
|
|
12
|
-
throw errorFn("createStatic");
|
|
13
|
-
}
|
|
14
|
-
function createTheme(_rule) {
|
|
15
|
-
throw errorFn("createTheme");
|
|
16
|
-
}
|
|
17
|
-
function keyframes(_rule) {
|
|
18
|
-
throw errorFn("keyframes");
|
|
19
|
-
}
|
|
20
|
-
function viewTransition(_rule) {
|
|
21
|
-
throw errorFn("viewTransition");
|
|
22
|
-
}
|
|
23
|
-
var _css = class {
|
|
24
|
-
static create(rule) {
|
|
25
|
-
return create(rule);
|
|
5
|
+
const css = class _css {
|
|
6
|
+
static create(_rule) {
|
|
7
|
+
throw errorFn("create");
|
|
26
8
|
}
|
|
27
9
|
static props(...rules) {
|
|
28
|
-
return
|
|
10
|
+
return rules.filter(Boolean).join(" ");
|
|
29
11
|
}
|
|
30
|
-
static createTheme(
|
|
31
|
-
|
|
12
|
+
static createTheme(_rule) {
|
|
13
|
+
throw errorFn("createTheme");
|
|
32
14
|
}
|
|
33
|
-
static createStatic(
|
|
34
|
-
|
|
15
|
+
static createStatic(_rule) {
|
|
16
|
+
throw errorFn("createStatic");
|
|
35
17
|
}
|
|
36
|
-
static keyframes(
|
|
37
|
-
|
|
18
|
+
static keyframes(_rule) {
|
|
19
|
+
throw errorFn("keyframes");
|
|
38
20
|
}
|
|
39
|
-
static viewTransition(
|
|
40
|
-
|
|
21
|
+
static viewTransition(_rule) {
|
|
22
|
+
throw errorFn("viewTransition");
|
|
41
23
|
}
|
|
42
24
|
};
|
|
43
25
|
const x = (className, styles) => ({
|
|
44
26
|
className,
|
|
45
27
|
styles
|
|
46
28
|
});
|
|
47
|
-
const css = _css;
|
|
48
29
|
|
|
49
30
|
exports.css = css;
|
|
50
31
|
exports.x = x;
|
package/dist/css.mjs
CHANGED
|
@@ -1,49 +1,30 @@
|
|
|
1
1
|
|
|
2
2
|
function errorFn(fn) {
|
|
3
|
-
throw new Error(
|
|
3
|
+
throw new Error(`css.${fn} requires bundler-plugin setup`);
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function props(...rules) {
|
|
9
|
-
return rules.filter(Boolean).join(" ");
|
|
10
|
-
}
|
|
11
|
-
function createStatic(_rule) {
|
|
12
|
-
throw errorFn("createStatic");
|
|
13
|
-
}
|
|
14
|
-
function createTheme(_rule) {
|
|
15
|
-
throw errorFn("createTheme");
|
|
16
|
-
}
|
|
17
|
-
function keyframes(_rule) {
|
|
18
|
-
throw errorFn("keyframes");
|
|
19
|
-
}
|
|
20
|
-
function viewTransition(_rule) {
|
|
21
|
-
throw errorFn("viewTransition");
|
|
22
|
-
}
|
|
23
|
-
var _css = class {
|
|
24
|
-
static create(rule) {
|
|
25
|
-
return create(rule);
|
|
5
|
+
const css = class _css {
|
|
6
|
+
static create(_rule) {
|
|
7
|
+
throw errorFn("create");
|
|
26
8
|
}
|
|
27
9
|
static props(...rules) {
|
|
28
|
-
return
|
|
10
|
+
return rules.filter(Boolean).join(" ");
|
|
29
11
|
}
|
|
30
|
-
static createTheme(
|
|
31
|
-
|
|
12
|
+
static createTheme(_rule) {
|
|
13
|
+
throw errorFn("createTheme");
|
|
32
14
|
}
|
|
33
|
-
static createStatic(
|
|
34
|
-
|
|
15
|
+
static createStatic(_rule) {
|
|
16
|
+
throw errorFn("createStatic");
|
|
35
17
|
}
|
|
36
|
-
static keyframes(
|
|
37
|
-
|
|
18
|
+
static keyframes(_rule) {
|
|
19
|
+
throw errorFn("keyframes");
|
|
38
20
|
}
|
|
39
|
-
static viewTransition(
|
|
40
|
-
|
|
21
|
+
static viewTransition(_rule) {
|
|
22
|
+
throw errorFn("viewTransition");
|
|
41
23
|
}
|
|
42
24
|
};
|
|
43
25
|
const x = (className, styles) => ({
|
|
44
26
|
className,
|
|
45
27
|
styles
|
|
46
28
|
});
|
|
47
|
-
const css = _css;
|
|
48
29
|
|
|
49
30
|
export { css, x };
|