Socket
Socket
Sign inDemoInstall

@semcore/spin

Package Overview
Dependencies
Maintainers
1
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semcore/spin - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

7

CHANGELOG.md

@@ -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

8

lib/index.es.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc