@plumeria/core 0.7.8 → 0.7.10

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 zss-in-js contributer
3
+ Copyright (c) zss-in-js contributer
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/cjs/css.js CHANGED
@@ -5,7 +5,7 @@ const create_js_1 = require("./method/create.js");
5
5
  const global_js_1 = require("./method/global.js");
6
6
  const define_theme_vars_js_1 = require("./method/define-theme-vars.js");
7
7
  const keyframes_js_1 = require("./method/keyframes.js");
8
- const collection_1 = require("@plumeria/collection");
8
+ const style_preset_1 = require("style-preset");
9
9
  const cx_js_1 = require("./cx.js");
10
10
  Object.defineProperty(exports, "cx", { enumerable: true, get: function () { return cx_js_1.cx; } });
11
11
  const rx_js_1 = require("./rx.js");
@@ -23,9 +23,9 @@ class css {
23
23
  static keyframes(object) {
24
24
  return (0, keyframes_js_1.keyframes)(object);
25
25
  }
26
- static media = collection_1.media;
27
- static pseudo = collection_1.pseudo;
28
- static colors = collection_1.colors;
29
- static container = collection_1.container;
26
+ static media = style_preset_1.media;
27
+ static pseudo = style_preset_1.pseudo;
28
+ static colors = style_preset_1.colors;
29
+ static container = style_preset_1.container;
30
30
  }
31
31
  exports.css = css;
package/dist/esm/css.js CHANGED
@@ -2,7 +2,7 @@ import { create } from './method/create.js';
2
2
  import { global } from './method/global.js';
3
3
  import { defineThemeVars } from './method/define-theme-vars.js';
4
4
  import { keyframes } from './method/keyframes.js';
5
- import { media, pseudo, colors, container } from '@plumeria/collection';
5
+ import { media, pseudo, colors, container } from 'style-preset';
6
6
  import { cx } from './cx.js';
7
7
  import { rx } from './rx.js';
8
8
  class css {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "0.7.8",
3
+ "version": "0.7.10",
4
4
  "description": "Near Zero-runtime CSS-in-JS for efficient design systems.",
5
5
  "keywords": [
6
6
  "react",
@@ -47,8 +47,11 @@
47
47
  "stylesheet/"
48
48
  ],
49
49
  "dependencies": {
50
- "zss-engine": "^0.2.23",
51
- "@plumeria/collection": "^0.5.2"
50
+ "style-preset": "0.0.14",
51
+ "zss-engine": "0.2.24"
52
+ },
53
+ "peerDependencies": {
54
+ "@plumeria/compiler": ">=0.6.5"
52
55
  },
53
56
  "publishConfig": {
54
57
  "access": "public"
package/readme.md CHANGED
@@ -17,13 +17,22 @@ To compile `@plumeria/core`, for example, to use `npx css`, install
17
17
  npm install --save-dev @plumeria/compiler
18
18
  ```
19
19
 
20
+ ### Entry StyleSheet
21
+
22
+ Import stylesheet in your application's entry point.
23
+ Applies the static stylesheet for production environments.
24
+
25
+ ```ts
26
+ import '@plumeria/core/stylesheet';
27
+ ```
28
+
20
29
  ## API
21
30
 
22
31
  ### css.create()
23
32
 
24
33
  Styles are defined as a map of CSS rules using css.create(). In the example below, there are 2 different CSS rules. The names "box" and "text" are arbitrary names given to the rules.
25
34
 
26
- ```tsx
35
+ ```ts
27
36
  import { css } from '@plumeria/core';
28
37
 
29
38
  const styles = css.create({
@@ -188,7 +197,7 @@ Type safety relies on this eslint-plugin. It includes all properties, excluding
188
197
 
189
198
  Plumeria complies with Semantic HTML, which means that it uses one style for each class name.
190
199
 
191
- ```tsx
200
+ ```ts
192
201
  import { css } from '@plumeria/core';
193
202
 
194
203
  const styles = css.create({