react-spinners
Advanced tools
Comparing version 0.7.0-alpha.2 to 0.7.0-alpha.3
@@ -5,2 +5,6 @@ # Change Log | ||
## 0.7.0-alpha.3 | ||
- **bugfix**: Fix [issue #140](https://github.com/davidhu2000/react-spinners/issues/140). The margin prop on `FadeLoader` does what we expect it to do, expand the spacing between the lines. | ||
## 0.7.0-alpha.2 | ||
@@ -7,0 +11,0 @@ |
@@ -6,4 +6,4 @@ /** @jsx jsx */ | ||
static defaultProps: LoaderHeightWidthRadiusProps; | ||
radius: number; | ||
quarter: number; | ||
radius: () => number; | ||
quarter: () => number; | ||
style: StyleFunctionWithIndex; | ||
@@ -10,0 +10,0 @@ wrapper: StyleFunction; |
@@ -36,4 +36,10 @@ "use strict"; | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
_this.radius = 20; | ||
_this.quarter = _this.radius / 2 + _this.radius / 5.5; | ||
_this.radius = function () { | ||
var margin = _this.props.margin; | ||
var value = helpers_1.parseLengthAndUnit(margin).value; | ||
return value + 18; | ||
}; | ||
_this.quarter = function () { | ||
return _this.radius() / 2 + _this.radius() / 5.5; | ||
}; | ||
_this.style = function (i) { | ||
@@ -44,12 +50,12 @@ var _a = _this.props, height = _a.height, width = _a.width, margin = _a.margin, color = _a.color, radius = _a.radius; | ||
_this.wrapper = function () { | ||
return core_1.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n font-size: 0;\n top: ", "px;\n left: ", "px;\n width: ", "px;\n height: ", "px;\n "], ["\n position: relative;\n font-size: 0;\n top: ", "px;\n left: ", "px;\n width: ", "px;\n height: ", "px;\n "])), _this.radius, _this.radius, _this.radius * 3, _this.radius * 3); | ||
return core_1.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n font-size: 0;\n top: ", "px;\n left: ", "px;\n width: ", "px;\n height: ", "px;\n "], ["\n position: relative;\n font-size: 0;\n top: ", "px;\n left: ", "px;\n width: ", "px;\n height: ", "px;\n "])), _this.radius(), _this.radius(), _this.radius() * 3, _this.radius() * 3); | ||
}; | ||
_this.a = function () { return core_1.css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n top: ", "px;\n left: 0;\n "], ["\n ", ";\n top: ", "px;\n left: 0;\n "])), _this.style(1), _this.radius); }; | ||
_this.b = function () { return core_1.css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(-45deg);\n "], ["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(-45deg);\n "])), _this.style(2), _this.quarter, _this.quarter); }; | ||
_this.c = function () { return core_1.css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", ";\n top: 0;\n left: ", "px;\n transform: rotate(90deg);\n "], ["\n ", ";\n top: 0;\n left: ", "px;\n transform: rotate(90deg);\n "])), _this.style(3), _this.radius); }; | ||
_this.d = function () { return core_1.css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(45deg);\n "], ["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(45deg);\n "])), _this.style(4), -_this.quarter, _this.quarter); }; | ||
_this.e = function () { return core_1.css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n top: ", "px;\n left: 0;\n "], ["\n ", ";\n top: ", "px;\n left: 0;\n "])), _this.style(5), -_this.radius); }; | ||
_this.f = function () { return core_1.css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(-45deg);\n "], ["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(-45deg);\n "])), _this.style(6), -_this.quarter, -_this.quarter); }; | ||
_this.g = function () { return core_1.css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", ";\n top: 0;\n left: ", "px;\n transform: rotate(90deg);\n "], ["\n ", ";\n top: 0;\n left: ", "px;\n transform: rotate(90deg);\n "])), _this.style(7), -_this.radius); }; | ||
_this.h = function () { return core_1.css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(45deg);\n "], ["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(45deg);\n "])), _this.style(8), _this.quarter, -_this.quarter); }; | ||
_this.a = function () { return core_1.css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n top: ", "px;\n left: 0;\n "], ["\n ", ";\n top: ", "px;\n left: 0;\n "])), _this.style(1), _this.radius()); }; | ||
_this.b = function () { return core_1.css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(-45deg);\n "], ["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(-45deg);\n "])), _this.style(2), _this.quarter(), _this.quarter()); }; | ||
_this.c = function () { return core_1.css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", ";\n top: 0;\n left: ", "px;\n transform: rotate(90deg);\n "], ["\n ", ";\n top: 0;\n left: ", "px;\n transform: rotate(90deg);\n "])), _this.style(3), _this.radius()); }; | ||
_this.d = function () { return core_1.css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(45deg);\n "], ["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(45deg);\n "])), _this.style(4), -_this.quarter(), _this.quarter()); }; | ||
_this.e = function () { return core_1.css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n top: ", "px;\n left: 0;\n "], ["\n ", ";\n top: ", "px;\n left: 0;\n "])), _this.style(5), -_this.radius()); }; | ||
_this.f = function () { return core_1.css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(-45deg);\n "], ["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(-45deg);\n "])), _this.style(6), -_this.quarter(), -_this.quarter()); }; | ||
_this.g = function () { return core_1.css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", ";\n top: 0;\n left: ", "px;\n transform: rotate(90deg);\n "], ["\n ", ";\n top: 0;\n left: ", "px;\n transform: rotate(90deg);\n "])), _this.style(7), -_this.radius()); }; | ||
_this.h = function () { return core_1.css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(45deg);\n "], ["\n ", ";\n top: ", "px;\n left: ", "px;\n transform: rotate(45deg);\n "])), _this.style(8), _this.quarter(), -_this.quarter()); }; | ||
return _this; | ||
@@ -56,0 +62,0 @@ } |
{ | ||
"name": "react-spinners", | ||
"version": "0.7.0-alpha.2", | ||
"version": "0.7.0-alpha.3", | ||
"description": "A collection of react loading spinners", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
134375
1918