@vitus-labs/unistyle 2.0.0-alpha.0 → 2.0.0-alpha.10
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/lib/index.js
CHANGED
|
@@ -154,7 +154,7 @@ const transformTheme = ({ theme, breakpoints }) => {
|
|
|
154
154
|
* breakpoint-per-property), optimizes (deduplicates identical breakpoints),
|
|
155
155
|
* and wraps each breakpoint's styles in the appropriate `@media` query.
|
|
156
156
|
*/
|
|
157
|
-
const makeItResponsive = ({ theme: customTheme, key = "", css, styles, normalize =
|
|
157
|
+
const makeItResponsive = ({ theme: customTheme, key = "", css, styles, normalize = true }) => ({ theme = {}, ...props }) => {
|
|
158
158
|
const internalTheme = customTheme || props[key];
|
|
159
159
|
if (isEmpty(internalTheme)) return "";
|
|
160
160
|
const { rootSize, breakpoints, __VITUS_LABS__, ...restTheme } = theme;
|
|
@@ -154,7 +154,7 @@ const transformTheme = ({ theme, breakpoints }) => {
|
|
|
154
154
|
* breakpoint-per-property), optimizes (deduplicates identical breakpoints),
|
|
155
155
|
* and wraps each breakpoint's styles in the appropriate `@media` query.
|
|
156
156
|
*/
|
|
157
|
-
const makeItResponsive = ({ theme: customTheme, key = "", css, styles, normalize =
|
|
157
|
+
const makeItResponsive = ({ theme: customTheme, key = "", css, styles, normalize = true }) => ({ theme = {}, ...props }) => {
|
|
158
158
|
const internalTheme = customTheme || props[key];
|
|
159
159
|
if (isEmpty(internalTheme)) return "";
|
|
160
160
|
const { rootSize, breakpoints, __VITUS_LABS__, ...restTheme } = theme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitus-labs/unistyle",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.10+4294ea0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Vit Bokisch <vit@bokisch.cz>",
|
|
6
6
|
"maintainers": [
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"react": ">= 19"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@vitus-labs/core": "2.0.0-alpha.
|
|
55
|
+
"@vitus-labs/core": "2.0.0-alpha.10+4294ea0",
|
|
56
56
|
"@vitus-labs/tools-rolldown": "^1.6.0",
|
|
57
57
|
"@vitus-labs/tools-typescript": "^1.6.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "4294ea016cabeb1b0b649c34d31dbcdf362904ac"
|
|
60
60
|
}
|