@lendi-ui/spinner
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -0,1 +1,5 @@ | ||
## [2.2.0] - 2019-05-27 - [HUB-169](https://creditandfinance.atlassian.net/browse/HUB-169) | ||
### Changed | ||
- Support for native props like Aria attributes, Standard HTML Attributes like title, classname, id, role, itemProp, itemID, itemRef | ||
## [2.1.0] - 2019-05-17 - [HUB-174](https://creditandfinance.atlassian.net/browse/HUB-174) | ||
@@ -2,0 +6,0 @@ ### Changed |
@@ -15,2 +15,22 @@ "use strict"; | ||
})(); | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) | ||
t[p[i]] = s[p[i]]; | ||
return t; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -25,5 +45,5 @@ var React = require("react"); | ||
Spinner.prototype.render = function () { | ||
var _a = this.props, _b = _a.variant, variant = _b === void 0 ? 'dark' : _b, className = _a.className; | ||
var _a = this.props, _b = _a.variant, variant = _b === void 0 ? 'dark' : _b, otherProps = __rest(_a, ["variant"]); | ||
var color = variant === 'dark' ? 'primary.500' : 'shade.0'; | ||
return React.createElement(index_style_1.SpinnerIconWrapper, { color: color, className: className }); | ||
return React.createElement(index_style_1.SpinnerIconWrapper, __assign({ color: color }, otherProps)); | ||
}; | ||
@@ -30,0 +50,0 @@ return Spinner; |
import * as React from 'react'; | ||
import { LUIGlobalProps } from '@lendi-ui/utils'; | ||
export declare type SpinnerColorVariant = 'dark' | 'light'; | ||
export interface SpinnerProps { | ||
export interface SpinnerProps extends LUIGlobalProps { | ||
variant?: SpinnerColorVariant; | ||
@@ -5,0 +6,0 @@ className?: string; |
{ | ||
"name": "@lendi-ui/spinner", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "source": "src/index.tsx", |
@@ -23,3 +23,8 @@ # @lendi-ui/spinner | ||
<PropTable.Entry name="variant" type={'"light" | "dark"'} defaultValue="dark" description="" /> | ||
<PropTable.Entry name="className" defaultValue=""type="string" description="The custom style for Spinner" /> | ||
</PropTable> | ||
### Notes | ||
<b>Support for native props like Aria attributes, Standard HTML Attributes like title, classname, id, role, itemProp, itemID, itemRef</b> | ||
``` |
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
10013
102
30