@elliemae/ds-system 2.1.1-rc.1 → 3.0.0-next.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/cjs/styled/index.js +4 -3
- package/esm/styled/index.js +4 -3
- package/package.json +2 -2
- package/types/styled/types.d.ts +2 -1
package/cjs/styled/index.js
CHANGED
|
@@ -32,8 +32,9 @@ const styledFunction = function (tag) {
|
|
|
32
32
|
slot: null
|
|
33
33
|
};
|
|
34
34
|
const {
|
|
35
|
-
name: componentName
|
|
36
|
-
slot: componentSlot
|
|
35
|
+
name: componentName,
|
|
36
|
+
slot: componentSlot,
|
|
37
|
+
displayName: componentDisplayName = null
|
|
37
38
|
} = options;
|
|
38
39
|
|
|
39
40
|
const func = function (styleArg) {
|
|
@@ -94,7 +95,7 @@ const styledFunction = function (tag) {
|
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
let Component = /*#__PURE__*/styled_component__default["default"](tag);
|
|
97
|
-
const displayName = componentName !== null && componentSlot !== null ? "".concat(componentName, "-").concat(componentSlot) :
|
|
98
|
+
const displayName = componentName !== null && componentSlot !== null ? "".concat(componentName, "-").concat(componentSlot) : componentDisplayName;
|
|
98
99
|
|
|
99
100
|
if (displayName !== null) {
|
|
100
101
|
Component = Component.attrs({
|
package/esm/styled/index.js
CHANGED
|
@@ -23,8 +23,9 @@ const styledFunction = function (tag) {
|
|
|
23
23
|
slot: null
|
|
24
24
|
};
|
|
25
25
|
const {
|
|
26
|
-
name: componentName
|
|
27
|
-
slot: componentSlot
|
|
26
|
+
name: componentName,
|
|
27
|
+
slot: componentSlot,
|
|
28
|
+
displayName: componentDisplayName = null
|
|
28
29
|
} = options;
|
|
29
30
|
|
|
30
31
|
const func = function (styleArg) {
|
|
@@ -85,7 +86,7 @@ const styledFunction = function (tag) {
|
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
let Component = /*#__PURE__*/styled_component(tag);
|
|
88
|
-
const displayName = componentName !== null && componentSlot !== null ? "".concat(componentName, "-").concat(componentSlot) :
|
|
89
|
+
const displayName = componentName !== null && componentSlot !== null ? "".concat(componentName, "-").concat(componentSlot) : componentDisplayName;
|
|
89
90
|
|
|
90
91
|
if (displayName !== null) {
|
|
91
92
|
Component = Component.attrs({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-next.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - System",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"generateSubmodules": true
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@elliemae/ds-utilities": "
|
|
92
|
+
"@elliemae/ds-utilities": "3.0.0-next.0",
|
|
93
93
|
"polished": "~3.6.7"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
package/types/styled/types.d.ts
CHANGED
|
@@ -23,5 +23,6 @@ export declare type StyledFunction = <C extends AnyStyledComponent | keyof JSX.I
|
|
|
23
23
|
name: string | null;
|
|
24
24
|
slot: string | null;
|
|
25
25
|
}) => ThemedStyledFunctionBase<C extends AnyStyledComponent ? StyledComponentInnerComponent<C> : C, Theme, C extends AnyStyledComponent ? StyledComponentInnerOtherProps<C> : {}, C extends AnyStyledComponent ? StyledComponentInnerAttrs<C> : never>;
|
|
26
|
-
export
|
|
26
|
+
export interface StyledObject extends ThemedStyledComponentFactories<Theme> {
|
|
27
|
+
}
|
|
27
28
|
export declare type Styled = StyledFunction & StyledObject;
|