@plumeria/core 2.0.1 → 2.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/README.md +2 -6
- package/dist/index.d.ts +0 -30
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @plumeria/core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An atomic CSS runtime designed to disappear.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
import { css } from '@plumeria/core';
|
|
@@ -18,8 +18,6 @@ const styles = css.create({
|
|
|
18
18
|
const className = css.props(styles.text, styles.size);
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Plumeria compiles each style property into a unique, **atomic**, and **hashed** class name. This prevents style collisions and maximizes reusability.
|
|
22
|
-
|
|
23
21
|
**Generated CSS:**
|
|
24
22
|
|
|
25
23
|
```css
|
|
@@ -34,10 +32,8 @@ Plumeria compiles each style property into a unique, **atomic**, and **hashed**
|
|
|
34
32
|
}
|
|
35
33
|
```
|
|
36
34
|
|
|
37
|
-
**Resulting:**
|
|
38
|
-
|
|
39
35
|
```
|
|
40
|
-
|
|
36
|
+
"x1p2jzyu xzie71ek xgpw2mmc"
|
|
41
37
|
```
|
|
42
38
|
|
|
43
39
|
## Documentation
|
package/dist/index.d.ts
CHANGED
|
@@ -4,41 +4,11 @@ declare const x: (className: string, varSet: XVariableSet) => ReturnX;
|
|
|
4
4
|
|
|
5
5
|
declare class StyleSheet {
|
|
6
6
|
private constructor();
|
|
7
|
-
/**
|
|
8
|
-
* Returns an object whose values can be used with `css.props`.
|
|
9
|
-
* @param object A style object containing CSS properties.
|
|
10
|
-
* @see https://plumeria.dev/docs/api-reference/create
|
|
11
|
-
*/
|
|
12
7
|
static create<const T extends Record<string, CSSProperties>>(object: CreateStyleType<T>): ReturnType<T>;
|
|
13
|
-
/**
|
|
14
|
-
* Returns unique hashes based on properties.
|
|
15
|
-
* @param objects Style objects containing CSS properties.
|
|
16
|
-
* @see https://plumeria.dev/docs/api-reference/props
|
|
17
|
-
*/
|
|
18
8
|
static props(...objects: (false | Readonly<CSSProperties> | null | undefined)[]): string;
|
|
19
|
-
/**
|
|
20
|
-
* Returns a unique hash identifier that can be used in keyframes animation.
|
|
21
|
-
* @param object A style object containing keyframes properties.
|
|
22
|
-
* @see https://plumeria.dev/docs/api-reference/keyframes
|
|
23
|
-
*/
|
|
24
9
|
static keyframes(object: CreateKeyframes): string;
|
|
25
|
-
/**
|
|
26
|
-
* Returns the unique name for the viewTransition.
|
|
27
|
-
* @param object A style object containing viewTransition properties.
|
|
28
|
-
* @see https://plumeria.dev/docs/api-reference/viewTransition
|
|
29
|
-
*/
|
|
30
10
|
static viewTransition(object: ViewTransitionOptions): string;
|
|
31
|
-
/**
|
|
32
|
-
* Returns an object whose values can be used with `css.props`.
|
|
33
|
-
* @param object A style object containing CSS properties.
|
|
34
|
-
* @see https://plumeria.dev/docs/api-reference/create
|
|
35
|
-
*/
|
|
36
11
|
static createTheme<const T extends CreateTheme>(object: T): ReturnVariableType<T>;
|
|
37
|
-
/**
|
|
38
|
-
* Returns an object whose values can be used with `css.props`.
|
|
39
|
-
* @param object A style object containing CSS properties.
|
|
40
|
-
* @see https://plumeria.dev/docs/api-reference/create
|
|
41
|
-
*/
|
|
42
12
|
static createStatic<const T extends CreateValues>(object: T): T;
|
|
43
13
|
}
|
|
44
14
|
declare const css: typeof StyleSheet;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/core",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.2",
|
|
4
|
+
"description": "An atomic CSS runtime designed to disappear.",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/refirst11",
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
"provenance": true
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
|
-
"build": "tsdown && node strip-comments.ts
|
|
55
|
+
"build": "tsdown && node strip-comments.ts"
|
|
56
56
|
}
|
|
57
57
|
}
|