Comparing version 2.0.0-9 to 2.0.0-10
@@ -49,32 +49,32 @@ "use strict"; | ||
if (style.padding) { | ||
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_TOP, style.padding); | ||
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_BOTTOM, style.padding); | ||
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_LEFT, style.padding); | ||
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_RIGHT, style.padding); | ||
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_TOP, style.padding); | ||
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_BOTTOM, style.padding); | ||
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_LEFT, style.padding); | ||
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_RIGHT, style.padding); | ||
} | ||
if (style.paddingX) { | ||
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_LEFT, style.paddingX); | ||
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_RIGHT, style.paddingX); | ||
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_LEFT, style.paddingX); | ||
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_RIGHT, style.paddingX); | ||
} | ||
if (style.paddingY) { | ||
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_TOP, style.paddingY); | ||
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_BOTTOM, style.paddingY); | ||
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_TOP, style.paddingY); | ||
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_BOTTOM, style.paddingY); | ||
} | ||
if (style.paddingTop) { | ||
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_TOP, style.paddingTop); | ||
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_TOP, style.paddingTop); | ||
} | ||
if (style.paddingBottom) { | ||
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_BOTTOM, style.paddingBottom); | ||
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_BOTTOM, style.paddingBottom); | ||
} | ||
if (style.paddingLeft) { | ||
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_LEFT, style.paddingLeft); | ||
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_LEFT, style.paddingLeft); | ||
} | ||
if (style.paddingRight) { | ||
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_RIGHT, style.paddingRight); | ||
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_RIGHT, style.paddingRight); | ||
} | ||
@@ -81,0 +81,0 @@ }; |
@@ -34,3 +34,3 @@ "use strict"; | ||
const textElement = (0, _dom.createNode)('span'); | ||
textElement.textContent = value; | ||
textElement.textContent = String(value); | ||
(0, _dom.appendChildNode)(node, textElement); | ||
@@ -83,3 +83,3 @@ } | ||
if (typeof value === 'string' || typeof value === 'number') { | ||
node.childNodes[0].textContent = value; | ||
node.childNodes[0].textContent = String(value); | ||
} | ||
@@ -86,0 +86,0 @@ } else if (key === 'style') { |
{ | ||
"name": "ink", | ||
"version": "2.0.0-9", | ||
"version": "2.0.0-10", | ||
"description": "React for CLI", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
57321