react-figma
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -33,5 +33,8 @@ "use strict"; | ||
var inheritedStyle = useInheritStyle_1.useInheritStyle(); | ||
var style = __assign({}, (process.env.REACT_FIGMA_STYLE_INHERITANCE_ENABLED ? inheritedStyle : {}), (process.env.REACT_FIGMA_WEB_DEFAULTS_ENABLED && props.style && props.style.display === 'block' | ||
var flattenOriginalStyle = __1.StyleSheet.flatten(props.style); | ||
var style = __assign({}, (process.env.REACT_FIGMA_STYLE_INHERITANCE_ENABLED ? inheritedStyle : {}), (process.env.REACT_FIGMA_WEB_DEFAULTS_ENABLED && | ||
props.style && | ||
flattenOriginalStyle.display === 'block' | ||
? { width: '100%' } | ||
: {}), __1.StyleSheet.flatten(props.style), transformAutoLayoutToYoga_1.transformAutoLayoutToYoga(props)); | ||
: {}), __1.StyleSheet.flatten(flattenOriginalStyle), transformAutoLayoutToYoga_1.transformAutoLayoutToYoga(props)); | ||
console.log(style); | ||
@@ -38,0 +41,0 @@ var children = normalizeTextNodeChidren(props.children); |
{ | ||
"name": "react-figma", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Render React components to Figma", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
358437
5048