zss-engine 2.2.4 → 2.2.5

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.
@@ -37,7 +37,6 @@ function transpile(object, base36Hash, core) {
37
37
  };
38
38
  const stringConverter = (className, properties, indentLevel) => {
39
39
  const classSelector = {};
40
- const indent = ''.repeat(indentLevel);
41
40
  const innerIndent = ' '.repeat(indentLevel + 1);
42
41
  let cssRule = '';
43
42
  for (const property in properties) {
@@ -89,13 +88,13 @@ function transpile(object, base36Hash, core) {
89
88
  if (regularRules) {
90
89
  mediaQueries.push({
91
90
  media: mediaRule,
92
- css: `${mediaRule} {\n${innerIndent}${className} {\n${regularRules} }\n${nestedRules}${indent}}${indent}\n`,
91
+ css: `${mediaRule} {\n${innerIndent}${className} {\n${regularRules} }\n${nestedRules}}\n`,
93
92
  });
94
93
  }
95
94
  else {
96
95
  mediaQueries.push({
97
96
  media: mediaRule,
98
- css: `${mediaRule} {\n${nestedRules}${indent}}\n`,
97
+ css: `${mediaRule} {\n${nestedRules}}\n`,
99
98
  });
100
99
  }
101
100
  }
@@ -34,7 +34,6 @@ export function transpile(object, base36Hash, core) {
34
34
  };
35
35
  const stringConverter = (className, properties, indentLevel) => {
36
36
  const classSelector = {};
37
- const indent = ''.repeat(indentLevel);
38
37
  const innerIndent = ' '.repeat(indentLevel + 1);
39
38
  let cssRule = '';
40
39
  for (const property in properties) {
@@ -86,13 +85,13 @@ export function transpile(object, base36Hash, core) {
86
85
  if (regularRules) {
87
86
  mediaQueries.push({
88
87
  media: mediaRule,
89
- css: `${mediaRule} {\n${innerIndent}${className} {\n${regularRules} }\n${nestedRules}${indent}}${indent}\n`,
88
+ css: `${mediaRule} {\n${innerIndent}${className} {\n${regularRules} }\n${nestedRules}}\n`,
90
89
  });
91
90
  }
92
91
  else {
93
92
  mediaQueries.push({
94
93
  media: mediaRule,
95
- css: `${mediaRule} {\n${nestedRules}${indent}}\n`,
94
+ css: `${mediaRule} {\n${nestedRules}}\n`,
96
95
  });
97
96
  }
98
97
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zss-engine",
3
- "version": "2.2.4",
4
- "description": "Zero-runtime StyleSheet Engine",
3
+ "version": "2.2.5",
4
+ "description": "A CSS-in-JS transpiler engine for building zero-runtime stylesheets at build time.",
5
5
  "funding": "https://github.com/sponsors/refirst11",
6
6
  "author": "Refirst 11",
7
7
  "license": "MIT",
@@ -13,11 +13,18 @@
13
13
  "url": "https://github.com/zss-in-js/zss-engine/issues"
14
14
  },
15
15
  "keywords": [
16
- "zero-runtime",
17
16
  "stylesheet",
17
+ "transpiler",
18
18
  "atomic",
19
+ "atomic-css",
20
+ "semantic",
21
+ "wyw-in-js",
19
22
  "engine",
20
- "css-in-js"
23
+ "zero-runtime",
24
+ "css-in-js",
25
+ "hash",
26
+ "codegen",
27
+ "compiler"
21
28
  ],
22
29
  "sideEffects": false,
23
30
  "exports": {
package/readme.md CHANGED
@@ -1,6 +1,10 @@
1
1
  [![codecov](https://codecov.io/github/zss-in-js/zss-engine/graph/badge.svg?token=4TGC0PMCAL)](https://codecov.io/github/zss-in-js/zss-engine)
2
2
 
3
- > Zero-runtime StyleSheet Engine
3
+ # zss-engine
4
+
5
+ A CSS-in-JS transpiler engine for building zero-runtime stylesheets at build time.
6
+
7
+ > Powers the build pipeline of [@plumeria/core](https://github.com/zss-in-js/plumeria)
4
8
 
5
9
  ## License
6
10