@plumeria/core 0.8.6 → 0.8.9

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.
@@ -1,10 +1,10 @@
1
1
  # @plumeria/core
2
2
 
3
- Plumeria is a CSS-in-JS built with [**zss-utils**](https://www.npmjs.com/package/zss-utils) that provides a speedy development cycle.
3
+ Plumeria is a Near zero-runtime CSS-in-JS for efficient design systems.
4
4
 
5
5
  ## Installation
6
6
 
7
- To start using Plumeria, Install the following two packages and the bundler package:
7
+ To start using Plumeria, Install the following two packages:
8
8
 
9
9
  ```sh
10
10
  npm install @plumeria/core
@@ -12,32 +12,22 @@ npm install @plumeria/core
12
12
 
13
13
  ### Compiler
14
14
 
15
- Plumeria is designed to extract styles into static CSS stylesheets using the CLI.
16
- Install the following libraries to enable CLI commands: [`@plumeria/compiler`](https://www.npmjs.com/package/@plumeria/compiler)
15
+ To compile `@plumeria/core`, for example, to use `npx css`, install
16
+ [`@plumeria/compiler`](https://www.npmjs.com/package/@plumeria/compiler) for static extraction through the build process.
17
17
 
18
18
  ```sh
19
19
  npm install --save-dev @plumeria/compiler
20
20
  ```
21
21
 
22
- For more information on compiler commnads, please see the documentation
23
- [API reference](https://plumeria.dev/docs/reference/css).
24
-
25
- ### Static StyleSheet
22
+ ### StyleSheet
26
23
 
27
24
  Import stylesheet in your application's entry point.
28
25
  Applies the static stylesheet for production environments.
29
26
 
30
27
  ```ts
31
- // eg: main.ts or layout.tsx
32
28
  import '@plumeria/core/stylesheet';
33
29
  ```
34
30
 
35
- ### Integrate
36
-
37
- To integrate with Next.js or Vite, you'll need one of the following packages:
38
- [@plumeria/next](https://www.npmjs.com/package/@plumeria/next) or [@plumeria/vite](https://www.npmjs.com/package/@plumeria/vite).
39
- See [Installation](https://plumeria.dev/docs/getting-started/installation) in the documentation for more details.
40
-
41
31
  ## API
42
32
 
43
33
  ### css.create()
@@ -70,7 +60,7 @@ const styles = css.create({
70
60
  },
71
61
  },
72
62
  text: {
73
- color: '#333' // standard properties of that className
63
+ color: '#333',
74
64
  [css.pseudo.hover]: {
75
65
  color: 'skyblue',
76
66
  opacity: 0.9,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "0.8.6",
4
- "description": "Zero-runtime StyleSheet for speedy development cycle",
3
+ "version": "0.8.9",
4
+ "description": "Near Zero-runtime CSS-in-JS for efficient design systems.",
5
5
  "keywords": [
6
6
  "css",
7
7
  "css-in-js",
@@ -39,18 +39,18 @@
39
39
  "types/",
40
40
  "stylesheet/"
41
41
  ],
42
+ "scripts": {
43
+ "build": "rimraf dist types && pnpm esm && pnpm cjs",
44
+ "cjs": "tsc --project tsconfig.cjs.json",
45
+ "esm": "tsc --project tsconfig.esm.json"
46
+ },
42
47
  "dependencies": {
43
48
  "zss-utils": "0.1.0"
44
49
  },
45
50
  "peerDependencies": {
46
- "@plumeria/compiler": ">=0.8.6"
51
+ "@plumeria/compiler": ">=0.8.10"
47
52
  },
48
53
  "publishConfig": {
49
54
  "access": "public"
50
- },
51
- "scripts": {
52
- "build": "rimraf dist types && pnpm esm && pnpm cjs",
53
- "cjs": "tsc --project tsconfig.cjs.json",
54
- "esm": "tsc --project tsconfig.esm.json"
55
55
  }
56
- }
56
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) zss-in-js contributer
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.