@semcore/spin
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -5,3 +5,8 @@ # Changelog | ||
## [1.2.0] - 2019-01-18 | ||
### Added | ||
- Добавлена возможность сбрасывать темы и размеры | ||
## [1.1.1] - 2018-11-23 | ||
@@ -11,3 +16,3 @@ | ||
- Убраны лишнии свойства из | ||
- Убраны лишнии свойства из autocomplete для IDE | ||
@@ -14,0 +19,0 @@ ## [1.1.0] - 2018-11-23 |
@@ -114,2 +114,4 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty'; | ||
value: function render() { | ||
var _cn; | ||
var _this$props = this.props, | ||
@@ -123,5 +125,5 @@ tip = _this$props.tip, | ||
var styles = { | ||
container: cn(block(), block.direction(direction), block.theme(theme), _defineProperty({}, block.centered(), centered), className), | ||
icon: cn(icon(), icon.size(size)), | ||
text: cn(text(), text.size(size)) | ||
container: cn(block(), (_cn = {}, _defineProperty(_cn, block.centered(), centered), _defineProperty(_cn, block.theme(theme), theme), _defineProperty(_cn, block.direction(direction), direction), _cn), className), | ||
icon: cn(icon(), _defineProperty({}, icon.size(size), size)), | ||
text: cn(text(), _defineProperty({}, text.size(size), size)) | ||
}; | ||
@@ -128,0 +130,0 @@ return React.createElement("div", Object.assign({}, propsForElement(this.props), { |
@@ -121,2 +121,4 @@ 'use strict'; | ||
value: function render() { | ||
var _cn; | ||
var _this$props = this.props, | ||
@@ -130,5 +132,5 @@ tip = _this$props.tip, | ||
var styles = { | ||
container: cn(block(), block.direction(direction), block.theme(theme), _defineProperty({}, block.centered(), centered), className), | ||
icon: cn(icon(), icon.size(size)), | ||
text: cn(text(), text.size(size)) | ||
container: cn(block(), (_cn = {}, _defineProperty(_cn, block.centered(), centered), _defineProperty(_cn, block.theme(theme), theme), _defineProperty(_cn, block.direction(direction), direction), _cn), className), | ||
icon: cn(icon(), _defineProperty({}, icon.size(size), size)), | ||
text: cn(text(), _defineProperty({}, text.size(size), size)) | ||
}; | ||
@@ -135,0 +137,0 @@ return React__default.createElement("div", Object.assign({}, propsForElement(this.props), { |
import React, { PureComponent } from 'react'; | ||
/** | ||
* ```js | ||
* import Spin from "@semcore/spin" | ||
* ``` | ||
* */ | ||
export interface ISpinProps { | ||
@@ -13,11 +8,11 @@ /** Текст спиннера */ | ||
**/ | ||
size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'; | ||
size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | false; | ||
/** Тема спиннера | ||
* @default dark | ||
**/ | ||
theme?: 'dark' | 'invert'; | ||
theme?: 'dark' | 'invert' | false; | ||
/** Направление расположения иконки и текста спиннера | ||
* @default row | ||
**/ | ||
direction?: 'column' | 'row'; | ||
direction?: 'column' | 'row' | false; | ||
/** Должен ли спиннер растянуться на всю ширину родителя | ||
@@ -27,5 +22,4 @@ * @default false | ||
centered?: boolean; | ||
className?: string; | ||
} | ||
declare class Spin extends PureComponent<ISpinProps> { | ||
declare class Spin extends PureComponent<ISpinProps & React.HTMLAttributes<HTMLDivElement>> { | ||
static UIname: string; | ||
@@ -32,0 +26,0 @@ static displayName: string; |
{ | ||
"name": "@semcore/spin", | ||
"description": "SEMRush Spin Component", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"main": "lib/index.js", | ||
@@ -16,3 +16,3 @@ "module": "lib/index.es.js", | ||
"@babel/runtime": "^7.1.5", | ||
"@semcore/utils": "^1.3.0", | ||
"@semcore/utils": "^2.0.0", | ||
"@types/react": "^16.7.6", | ||
@@ -19,0 +19,0 @@ "classnames": "^2.2.5" |
Sorry, the diff of this file is not supported yet
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
31247
504
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@semcore/utils@2.6.0(transitive)
+ Addedcss-in-js-utils@3.1.0(transitive)
+ Addedcss-tree@1.1.3(transitive)
+ Addederror-stack-parser@2.1.4(transitive)
+ Addedfastest-stable-stringify@2.0.2(transitive)
+ Addedhoist-non-react-statics@3.3.2(transitive)
+ Addedhyphenate-style-name@1.1.0(transitive)
+ Addedinline-style-prefixer@7.0.1(transitive)
+ Addedmdn-data@2.0.14(transitive)
+ Addednano-css@5.6.2(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedrtl-css-js@1.16.1(transitive)
+ Addedsource-map@0.5.60.6.1(transitive)
+ Addedstack-generator@2.0.10(transitive)
+ Addedstackframe@1.3.4(transitive)
+ Addedstacktrace-gps@3.1.2(transitive)
+ Addedstacktrace-js@2.0.2(transitive)
+ Addedstylis@4.3.4(transitive)
- Removed@semcore/utils@1.3.0(transitive)
- Removedhoist-non-react-statics@2.5.5(transitive)
Updated@semcore/utils@^2.0.0