@kuma-ui/compiler
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -152,5 +152,7 @@ "use strict"; | ||
const componentProps = {}; | ||
const componentVariantProps = {}; | ||
const variant = import_sheet.theme.getVariants(componentName); | ||
const componentVariantProps = { | ||
...variant?.baseStyle | ||
}; | ||
const defaultProps = (0, import_componentList.componentDefaultProps)(componentName); | ||
const variant = import_sheet.theme.getVariants(componentName); | ||
let isDefault = false; | ||
@@ -170,3 +172,2 @@ for (const [propName, propValue] of Object.entries({ | ||
componentVariantProps, | ||
variant?.baseStyle, | ||
variant?.variants?.[propValue] | ||
@@ -179,3 +180,2 @@ ); | ||
} | ||
Object.assign(componentVariantProps, variant?.baseStyle); | ||
if (!(!!Object.keys(styledProps).length || !!Object.keys(pseudoProps).length || !!Object.keys(componentProps))) { | ||
@@ -182,0 +182,0 @@ return; |
@@ -34,5 +34,7 @@ "use strict"; | ||
const componentProps = {}; | ||
const componentVariantProps = {}; | ||
const variant = import_sheet.theme.getVariants(componentName); | ||
const componentVariantProps = { | ||
...variant?.baseStyle | ||
}; | ||
const defaultProps = (0, import_componentList.componentDefaultProps)(componentName); | ||
const variant = import_sheet.theme.getVariants(componentName); | ||
let isDefault = false; | ||
@@ -52,3 +54,2 @@ for (const [propName, propValue] of Object.entries({ | ||
componentVariantProps, | ||
variant?.baseStyle, | ||
variant?.variants?.[propValue] | ||
@@ -61,3 +62,2 @@ ); | ||
} | ||
Object.assign(componentVariantProps, variant?.baseStyle); | ||
if (!(!!Object.keys(styledProps).length || !!Object.keys(pseudoProps).length || !!Object.keys(componentProps))) { | ||
@@ -64,0 +64,0 @@ return; |
@@ -36,5 +36,7 @@ "use strict"; | ||
const componentProps = {}; | ||
const componentVariantProps = {}; | ||
const variant = import_sheet.theme.getVariants(componentName); | ||
const componentVariantProps = { | ||
...variant?.baseStyle | ||
}; | ||
const defaultProps = (0, import_componentList.componentDefaultProps)(componentName); | ||
const variant = import_sheet.theme.getVariants(componentName); | ||
let isDefault = false; | ||
@@ -54,3 +56,2 @@ for (const [propName, propValue] of Object.entries({ | ||
componentVariantProps, | ||
variant?.baseStyle, | ||
variant?.variants?.[propValue] | ||
@@ -63,3 +64,2 @@ ); | ||
} | ||
Object.assign(componentVariantProps, variant?.baseStyle); | ||
if (!(!!Object.keys(styledProps).length || !!Object.keys(pseudoProps).length || !!Object.keys(componentProps))) { | ||
@@ -66,0 +66,0 @@ return; |
@@ -154,5 +154,7 @@ "use strict"; | ||
const componentProps = {}; | ||
const componentVariantProps = {}; | ||
const variant = import_sheet.theme.getVariants(componentName); | ||
const componentVariantProps = { | ||
...variant?.baseStyle | ||
}; | ||
const defaultProps = (0, import_componentList.componentDefaultProps)(componentName); | ||
const variant = import_sheet.theme.getVariants(componentName); | ||
let isDefault = false; | ||
@@ -172,3 +174,2 @@ for (const [propName, propValue] of Object.entries({ | ||
componentVariantProps, | ||
variant?.baseStyle, | ||
variant?.variants?.[propValue] | ||
@@ -181,3 +182,2 @@ ); | ||
} | ||
Object.assign(componentVariantProps, variant?.baseStyle); | ||
if (!(!!Object.keys(styledProps).length || !!Object.keys(pseudoProps).length || !!Object.keys(componentProps))) { | ||
@@ -184,0 +184,0 @@ return; |
{ | ||
"name": "@kuma-ui/compiler", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "๐ป Kuma UI is a utility-first, zero-runtime CSS-in-JS library that offers an outstanding developer experience and optimized performance.", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/poteboy/kuma-ui.git" | ||
"url": "git+https://github.com/kuma-ui/kuma-ui.git" | ||
}, | ||
@@ -34,5 +34,5 @@ "keywords": [ | ||
"ts-pattern": "^5.0.1", | ||
"@kuma-ui/core": "^1.1.1", | ||
"@kuma-ui/core": "^1.1.2", | ||
"@kuma-ui/sheet": "^1.0.1", | ||
"@kuma-ui/system": "^1.1.0" | ||
"@kuma-ui/system": "^1.2.0" | ||
}, | ||
@@ -39,0 +39,0 @@ "publishConfig": { |
<div align="center"> | ||
<img src="https://raw.githubusercontent.com/poteboy/kuma-ui/main/media/logo.webp" alt="Kuma UI logo" width="300" /> | ||
<img src="https://raw.githubusercontent.com/kuma-ui/kuma-ui/main/media/logo.webp" alt="Kuma UI logo" width="300" /> | ||
</div> | ||
@@ -4,0 +4,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75045
Updated@kuma-ui/core@^1.1.2
Updated@kuma-ui/system@^1.2.0