@instructure/emotion 8.9.2-snapshot.1 → 8.9.2-snapshot.7
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/es/withStyle.js +4 -3
- package/lib/withStyle.js +4 -3
- package/package.json +10 -10
- package/src/withStyle.tsx +4 -2
- package/types/withStyle.d.ts.map +1 -1
package/es/withStyle.js
CHANGED
|
@@ -132,12 +132,13 @@ const withStyle = decorator((ComposedComponent, generateStyle, generateComponent
|
|
|
132
132
|
styles: styles
|
|
133
133
|
}, props));
|
|
134
134
|
});
|
|
135
|
-
hoistNonReactStatics(WithStyle, ComposedComponent); // we have to pass these on, because sometimes
|
|
135
|
+
hoistNonReactStatics(WithStyle, ComposedComponent); // we have to pass these on, because sometimes users
|
|
136
136
|
// access propTypes of the component in other components
|
|
137
|
-
//
|
|
137
|
+
// eslint-disable-next-line react/forbid-foreign-prop-types
|
|
138
138
|
|
|
139
139
|
WithStyle.propTypes = ComposedComponent.propTypes;
|
|
140
|
-
WithStyle.defaultProps = ComposedComponent.defaultProps
|
|
140
|
+
WithStyle.defaultProps = ComposedComponent.defaultProps;
|
|
141
|
+
WithStyle.allowedProps = ComposedComponent.allowedProps // we are exposing the theme generator for the docs generation
|
|
141
142
|
;
|
|
142
143
|
WithStyle.generateComponentTheme = generateComponentTheme; // we have to add defaults to makeStyles and styles added by this decorator
|
|
143
144
|
// eslint-disable-next-line no-param-reassign
|
package/lib/withStyle.js
CHANGED
|
@@ -151,12 +151,13 @@ const withStyle = (0, _decorator.decorator)((ComposedComponent, generateStyle, g
|
|
|
151
151
|
styles: styles
|
|
152
152
|
}, props));
|
|
153
153
|
});
|
|
154
|
-
(0, _hoistNonReactStatics.default)(WithStyle, ComposedComponent); // we have to pass these on, because sometimes
|
|
154
|
+
(0, _hoistNonReactStatics.default)(WithStyle, ComposedComponent); // we have to pass these on, because sometimes users
|
|
155
155
|
// access propTypes of the component in other components
|
|
156
|
-
//
|
|
156
|
+
// eslint-disable-next-line react/forbid-foreign-prop-types
|
|
157
157
|
|
|
158
158
|
WithStyle.propTypes = ComposedComponent.propTypes;
|
|
159
|
-
WithStyle.defaultProps = ComposedComponent.defaultProps
|
|
159
|
+
WithStyle.defaultProps = ComposedComponent.defaultProps;
|
|
160
|
+
WithStyle.allowedProps = ComposedComponent.allowedProps // we are exposing the theme generator for the docs generation
|
|
160
161
|
;
|
|
161
162
|
WithStyle.generateComponentTheme = generateComponentTheme; // we have to add defaults to makeStyles and styles added by this decorator
|
|
162
163
|
// eslint-disable-next-line no-param-reassign
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/emotion",
|
|
3
|
-
"version": "8.9.2-snapshot.
|
|
3
|
+
"version": "8.9.2-snapshot.7+1a56581cd",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
28
|
"@emotion/react": "^11.4.1",
|
|
29
|
-
"@instructure/console": "8.9.2-snapshot.
|
|
30
|
-
"@instructure/shared-types": "8.9.2-snapshot.
|
|
31
|
-
"@instructure/ui-decorator": "8.9.2-snapshot.
|
|
32
|
-
"@instructure/ui-i18n": "8.9.2-snapshot.
|
|
33
|
-
"@instructure/ui-themes": "8.9.2-snapshot.
|
|
34
|
-
"@instructure/ui-utils": "8.9.2-snapshot.
|
|
29
|
+
"@instructure/console": "8.9.2-snapshot.7+1a56581cd",
|
|
30
|
+
"@instructure/shared-types": "8.9.2-snapshot.7+1a56581cd",
|
|
31
|
+
"@instructure/ui-decorator": "8.9.2-snapshot.7+1a56581cd",
|
|
32
|
+
"@instructure/ui-i18n": "8.9.2-snapshot.7+1a56581cd",
|
|
33
|
+
"@instructure/ui-themes": "8.9.2-snapshot.7+1a56581cd",
|
|
34
|
+
"@instructure/ui-utils": "8.9.2-snapshot.7+1a56581cd",
|
|
35
35
|
"emotion-theming": "^10.0.27",
|
|
36
36
|
"hoist-non-react-statics": "^3.3.2",
|
|
37
37
|
"lodash": "^4",
|
|
38
38
|
"prop-types": "^15"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@instructure/ui-babel-preset": "8.9.2-snapshot.
|
|
42
|
-
"@instructure/ui-test-utils": "8.9.2-snapshot.
|
|
41
|
+
"@instructure/ui-babel-preset": "8.9.2-snapshot.7+1a56581cd",
|
|
42
|
+
"@instructure/ui-test-utils": "8.9.2-snapshot.7+1a56581cd",
|
|
43
43
|
"@types/lodash": "^4.14.171",
|
|
44
44
|
"cpy-cli": "^3.1.1"
|
|
45
45
|
},
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"sideEffects": false,
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "1a56581cde6bd3b4f9fe5cd11ae420bd1222fe15"
|
|
54
54
|
}
|
package/src/withStyle.tsx
CHANGED
|
@@ -153,11 +153,13 @@ const withStyle = decorator(
|
|
|
153
153
|
)
|
|
154
154
|
})
|
|
155
155
|
hoistNonReactStatics(WithStyle, ComposedComponent)
|
|
156
|
-
// we have to pass these on, because sometimes
|
|
156
|
+
// we have to pass these on, because sometimes users
|
|
157
157
|
// access propTypes of the component in other components
|
|
158
|
-
//
|
|
158
|
+
// eslint-disable-next-line react/forbid-foreign-prop-types
|
|
159
159
|
WithStyle.propTypes = ComposedComponent.propTypes
|
|
160
160
|
WithStyle.defaultProps = ComposedComponent.defaultProps
|
|
161
|
+
// @ts-expect-error These static fields exist on InstUI components
|
|
162
|
+
WithStyle.allowedProps = ComposedComponent.allowedProps
|
|
161
163
|
// we are exposing the theme generator for the docs generation
|
|
162
164
|
;(WithStyle as any).generateComponentTheme = generateComponentTheme
|
|
163
165
|
// we have to add defaults to makeStyles and styles added by this decorator
|
package/types/withStyle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withStyle.d.ts","sourceRoot":"","sources":["../src/withStyle.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAA6C,MAAM,OAAO,CAAA;AAQjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,oBAAY,cAAc,GAAG,OAAO,CAAC;IACnC,MAAM,EAAE,SAAS,CAAA;IACjB,UAAU,EAAE,CAAC,GAAG,SAAS,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;CAC9C,CAAC,CAAA;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,QAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"withStyle.d.ts","sourceRoot":"","sources":["../src/withStyle.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAA6C,MAAM,OAAO,CAAA;AAQjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,oBAAY,cAAc,GAAG,OAAO,CAAC;IACnC,MAAM,EAAE,SAAS,CAAA;IACjB,UAAU,EAAE,CAAC,GAAG,SAAS,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;CAC9C,CAAC,CAAA;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,QAAA,MAAM,SAAS,oFAqEd,CAAA;AACD,eAAe,SAAS,CAAA;AACxB,OAAO,EAAE,SAAS,EAAE,CAAA"}
|