@elliemae/ds-system 2.0.0-rc.11 → 2.0.0-rc.12

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.
@@ -93,11 +93,21 @@ const styledFunction = function (tag) {
93
93
  }));
94
94
  }
95
95
 
96
- const Component = /*#__PURE__*/styled_component__default["default"](tag).attrs({
97
- className: "".concat(componentName, "-").concat(componentSlot)
98
- }).withConfig({
99
- componentId: "sc-rjg4in-0"
100
- })(transformedStyleArg, ...expressionsWithDefaultTheme);
96
+ let Component = /*#__PURE__*/styled_component__default["default"](tag);
97
+ const displayName = componentName !== null && componentSlot !== null ? "".concat(componentName).concat(componentSlot) : null;
98
+
99
+ if (displayName !== null) {
100
+ Component = Component.attrs({
101
+ className: "".concat(componentName).concat(componentSlot)
102
+ });
103
+ }
104
+
105
+ Component = Component(transformedStyleArg, ...expressionsWithDefaultTheme);
106
+
107
+ if (displayName !== null) {
108
+ Component.displayName = displayName;
109
+ }
110
+
101
111
  return Component;
102
112
  };
103
113
 
@@ -84,11 +84,21 @@ const styledFunction = function (tag) {
84
84
  }));
85
85
  }
86
86
 
87
- const Component = /*#__PURE__*/styled_component(tag).attrs({
88
- className: "".concat(componentName, "-").concat(componentSlot)
89
- }).withConfig({
90
- componentId: "sc-rjg4in-0"
91
- })(transformedStyleArg, ...expressionsWithDefaultTheme);
87
+ let Component = /*#__PURE__*/styled_component(tag);
88
+ const displayName = componentName !== null && componentSlot !== null ? "".concat(componentName).concat(componentSlot) : null;
89
+
90
+ if (displayName !== null) {
91
+ Component = Component.attrs({
92
+ className: "".concat(componentName).concat(componentSlot)
93
+ });
94
+ }
95
+
96
+ Component = Component(transformedStyleArg, ...expressionsWithDefaultTheme);
97
+
98
+ if (displayName !== null) {
99
+ Component.displayName = displayName;
100
+ }
101
+
92
102
  return Component;
93
103
  };
94
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-system",
3
- "version": "2.0.0-rc.11",
3
+ "version": "2.0.0-rc.12",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - System",
6
6
  "module": "./esm/index.js",