@builder.io/react
Advanced tools
Comparing version 0.1.38 to 0.1.39
@@ -82,2 +82,9 @@ "use strict"; | ||
}); | ||
Object.defineProperty(Columns.prototype, "width", { | ||
get: function () { | ||
return this.props.width || 100 / this.columns.length; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(Columns.prototype, "columnWidth", { | ||
@@ -87,3 +94,3 @@ get: function () { | ||
var subtractWidth = (gutterSize * (columns.length - 1)) / columns.length; | ||
return "calc(" + 100 / columns.length + "% - " + subtractWidth + "px)"; | ||
return "calc(" + this.width + "% - " + subtractWidth + "px)"; | ||
}, | ||
@@ -90,0 +97,0 @@ enumerable: true, |
@@ -5,4 +5,5 @@ import React from 'react'; | ||
readonly gutterSize: number; | ||
readonly width: any; | ||
readonly columnWidth: string; | ||
render(): JSX.Element; | ||
} |
{ | ||
"name": "@builder.io/react", | ||
"version": "0.1.38", | ||
"version": "0.1.39", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
5216351
37641