@measured/puck 0.12.1-canary.5bdeb86 → 0.12.1-canary.5e80a10

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.
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.1-canary.5bdeb86",
3
+ "version": "0.12.1-canary.5e80a10",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",