@measured/puck 0.12.0 → 0.12.1-canary.17bd61c

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -30139,7 +30139,11 @@ var getClassNameFactory = (rootClass, styles, { baseClass = "" } = {}) => (optio
30139
30139
  modifiers = options;
30140
30140
  }
30141
30141
  if (descendant) {
30142
- return baseClass + styles[`${rootClass}-${descendant}`] || "";
30142
+ const style = styles[`${rootClass}-${descendant}`];
30143
+ if (style) {
30144
+ return baseClass + styles[`${rootClass}-${descendant}`] || "";
30145
+ }
30146
+ return "";
30143
30147
  } else if (modifiers) {
30144
30148
  const prefixedModifiers = {};
30145
30149
  for (let modifier in modifiers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.12.0",
3
+ "version": "0.12.1-canary.17bd61c",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",