@plumeria/core 0.20.4 → 0.21.0

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/index.js CHANGED
@@ -171,11 +171,11 @@ const defineTokens = (object) => {
171
171
  if (subKey.startsWith("@media")) {
172
172
  styles[":root"] ||= {};
173
173
  styles[":root"][subKey] ||= {};
174
- styles[":root"][subKey][`--${key}`] = subValue;
174
+ styles[":root"][subKey][`--${kebabKey}`] = subValue;
175
175
  } else {
176
176
  const themeSelector = subKey === "default" ? ":root" : `:root[data-theme="${subKey}"]`;
177
177
  styles[themeSelector] ||= {};
178
- styles[themeSelector][`--${key}`] = subValue;
178
+ styles[themeSelector][`--${kebabKey}`] = subValue;
179
179
  }
180
180
  });
181
181
  });
@@ -193,6 +193,7 @@ const rx = (className, varSet) => ({
193
193
  });
194
194
 
195
195
  var StyleSheet = class {
196
+ /* istanbul ignore next */
196
197
  constructor() {}
197
198
  static create(object) {
198
199
  return create(object);
package/dist/index.mjs CHANGED
@@ -171,11 +171,11 @@ const defineTokens = (object) => {
171
171
  if (subKey.startsWith("@media")) {
172
172
  styles[":root"] ||= {};
173
173
  styles[":root"][subKey] ||= {};
174
- styles[":root"][subKey][`--${key}`] = subValue;
174
+ styles[":root"][subKey][`--${kebabKey}`] = subValue;
175
175
  } else {
176
176
  const themeSelector = subKey === "default" ? ":root" : `:root[data-theme="${subKey}"]`;
177
177
  styles[themeSelector] ||= {};
178
- styles[themeSelector][`--${key}`] = subValue;
178
+ styles[themeSelector][`--${kebabKey}`] = subValue;
179
179
  }
180
180
  });
181
181
  });
@@ -193,6 +193,7 @@ const rx = (className, varSet) => ({
193
193
  });
194
194
 
195
195
  var StyleSheet = class {
196
+ /* istanbul ignore next */
196
197
  constructor() {}
197
198
  static create(object) {
198
199
  return create(object);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "0.20.4",
3
+ "version": "0.21.0",
4
4
  "description": "The atomic on-demand CSS-in-JS.",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",