@semcore/spin
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -5,2 +5,8 @@ # Changelog | ||
## [3.2.2] - 2022-02-24 | ||
### Added | ||
- Added repository field to package.json file. | ||
## [3.2.1] - 2021-8-26 | ||
@@ -7,0 +13,0 @@ |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _typeof = require("@babel/runtime/helpers/typeof"); | ||
@@ -29,2 +29,6 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _typeof = require("@babel/runtime/helpers/typeof"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -32,6 +32,10 @@ value: true | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } | ||
@@ -46,3 +50,3 @@ | ||
/*__inner_css_start__*/ | ||
"@-webkit-keyframes spin-rotate_jbivl0{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rotate_jbivl0{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.___SSpin_xek18_gg_{display:block;flex-shrink:0;box-sizing:border-box;-webkit-animation-name:spin-rotate_jbivl0;animation-name:spin-rotate_jbivl0;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:.75s;animation-duration:.75s;border-radius:50%;border-style:solid;border-bottom-color:transparent;border-left-color:transparent;color:var(--theme_jbivl0)}.___SSpin_xek18_gg_._theme_dark_xek18_gg_{color:rgba(0,0,0,.3)}.___SSpin_xek18_gg_._theme_invert_xek18_gg_{color:#fff}.___SSpin_xek18_gg_.__centered_xek18_gg_{margin:auto}.___SSpin_xek18_gg_._size_xxs_xek18_gg_{width:10px;height:10px;border-width:1px}.___SSpin_xek18_gg_._size_xs_xek18_gg_{width:16px;height:16px;border-width:2px}.___SSpin_xek18_gg_._size_s_xek18_gg_{width:20px;height:20px;border-width:3px}.___SSpin_xek18_gg_._size_m_xek18_gg_{width:24px;height:24px;border-width:4px}.___SSpin_xek18_gg_._size_l_xek18_gg_{width:32px;height:32px;border-width:6px}.___SSpin_xek18_gg_._size_xl_xek18_gg_{width:48px;height:48px;border-width:8px}.___SSpin_xek18_gg_._size_xxl_xek18_gg_{width:72px;height:72px;border-width:10px}" | ||
"@-webkit-keyframes spin-rotate_jbivl0{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rotate_jbivl0{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.___SSpin_1nyws_gg_{display:block;flex-shrink:0;box-sizing:border-box;-webkit-animation-name:spin-rotate_jbivl0;animation-name:spin-rotate_jbivl0;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:.75s;animation-duration:.75s;border-radius:50%;border-style:solid;border-bottom-color:transparent;border-left-color:transparent;color:var(--theme_jbivl0)}.___SSpin_1nyws_gg_._theme_dark_1nyws_gg_{color:rgba(0,0,0,.3)}.___SSpin_1nyws_gg_._theme_invert_1nyws_gg_{color:#fff}.___SSpin_1nyws_gg_.__centered_1nyws_gg_{margin:auto}.___SSpin_1nyws_gg_._size_xxs_1nyws_gg_{width:10px;height:10px;border-width:1px}.___SSpin_1nyws_gg_._size_xs_1nyws_gg_{width:16px;height:16px;border-width:2px}.___SSpin_1nyws_gg_._size_s_1nyws_gg_{width:20px;height:20px;border-width:3px}.___SSpin_1nyws_gg_._size_m_1nyws_gg_{width:24px;height:24px;border-width:4px}.___SSpin_1nyws_gg_._size_l_1nyws_gg_{width:32px;height:32px;border-width:6px}.___SSpin_1nyws_gg_._size_xl_1nyws_gg_{width:48px;height:48px;border-width:8px}.___SSpin_1nyws_gg_._size_xxl_1nyws_gg_{width:72px;height:72px;border-width:10px}" | ||
/*__inner_css_end__*/ | ||
@@ -53,14 +57,14 @@ , "jbivl0_gg_") | ||
"@spin-rotate": "spin-rotate_jbivl0", | ||
"__SSpin": "___SSpin_xek18_gg_", | ||
"__SSpin": "___SSpin_1nyws_gg_", | ||
"--theme": "--theme_jbivl0", | ||
"_theme_dark": "_theme_dark_xek18_gg_", | ||
"_theme_invert": "_theme_invert_xek18_gg_", | ||
"_centered": "__centered_xek18_gg_", | ||
"_size_xxs": "_size_xxs_xek18_gg_", | ||
"_size_xs": "_size_xs_xek18_gg_", | ||
"_size_s": "_size_s_xek18_gg_", | ||
"_size_m": "_size_m_xek18_gg_", | ||
"_size_l": "_size_l_xek18_gg_", | ||
"_size_xl": "_size_xl_xek18_gg_", | ||
"_size_xxl": "_size_xxl_xek18_gg_" | ||
"_theme_dark": "_theme_dark_1nyws_gg_", | ||
"_theme_invert": "_theme_invert_1nyws_gg_", | ||
"_centered": "__centered_1nyws_gg_", | ||
"_size_xxs": "_size_xxs_1nyws_gg_", | ||
"_size_xs": "_size_xs_1nyws_gg_", | ||
"_size_s": "_size_s_1nyws_gg_", | ||
"_size_m": "_size_m_1nyws_gg_", | ||
"_size_l": "_size_l_1nyws_gg_", | ||
"_size_xl": "_size_xl_1nyws_gg_", | ||
"_size_xxl": "_size_xxl_1nyws_gg_" | ||
}); | ||
@@ -102,5 +106,6 @@ | ||
}); | ||
var Spin = (0, _core["default"])(RootSpin); | ||
var _default = Spin; | ||
var _default = (0, _core["default"])(RootSpin); | ||
exports["default"] = _default; | ||
//# sourceMappingURL=Spin.js.map |
@@ -10,5 +10,5 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | ||
@@ -29,3 +29,3 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
/*__inner_css_start__*/ | ||
"@-webkit-keyframes spin-rotate_jbivl0{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rotate_jbivl0{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.___SSpin_xek18_gg_{display:block;flex-shrink:0;box-sizing:border-box;-webkit-animation-name:spin-rotate_jbivl0;animation-name:spin-rotate_jbivl0;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:.75s;animation-duration:.75s;border-radius:50%;border-style:solid;border-bottom-color:transparent;border-left-color:transparent;color:var(--theme_jbivl0)}.___SSpin_xek18_gg_._theme_dark_xek18_gg_{color:rgba(0,0,0,.3)}.___SSpin_xek18_gg_._theme_invert_xek18_gg_{color:#fff}.___SSpin_xek18_gg_.__centered_xek18_gg_{margin:auto}.___SSpin_xek18_gg_._size_xxs_xek18_gg_{width:10px;height:10px;border-width:1px}.___SSpin_xek18_gg_._size_xs_xek18_gg_{width:16px;height:16px;border-width:2px}.___SSpin_xek18_gg_._size_s_xek18_gg_{width:20px;height:20px;border-width:3px}.___SSpin_xek18_gg_._size_m_xek18_gg_{width:24px;height:24px;border-width:4px}.___SSpin_xek18_gg_._size_l_xek18_gg_{width:32px;height:32px;border-width:6px}.___SSpin_xek18_gg_._size_xl_xek18_gg_{width:48px;height:48px;border-width:8px}.___SSpin_xek18_gg_._size_xxl_xek18_gg_{width:72px;height:72px;border-width:10px}" | ||
"@-webkit-keyframes spin-rotate_jbivl0{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rotate_jbivl0{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.___SSpin_1nyws_gg_{display:block;flex-shrink:0;box-sizing:border-box;-webkit-animation-name:spin-rotate_jbivl0;animation-name:spin-rotate_jbivl0;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:.75s;animation-duration:.75s;border-radius:50%;border-style:solid;border-bottom-color:transparent;border-left-color:transparent;color:var(--theme_jbivl0)}.___SSpin_1nyws_gg_._theme_dark_1nyws_gg_{color:rgba(0,0,0,.3)}.___SSpin_1nyws_gg_._theme_invert_1nyws_gg_{color:#fff}.___SSpin_1nyws_gg_.__centered_1nyws_gg_{margin:auto}.___SSpin_1nyws_gg_._size_xxs_1nyws_gg_{width:10px;height:10px;border-width:1px}.___SSpin_1nyws_gg_._size_xs_1nyws_gg_{width:16px;height:16px;border-width:2px}.___SSpin_1nyws_gg_._size_s_1nyws_gg_{width:20px;height:20px;border-width:3px}.___SSpin_1nyws_gg_._size_m_1nyws_gg_{width:24px;height:24px;border-width:4px}.___SSpin_1nyws_gg_._size_l_1nyws_gg_{width:32px;height:32px;border-width:6px}.___SSpin_1nyws_gg_._size_xl_1nyws_gg_{width:48px;height:48px;border-width:8px}.___SSpin_1nyws_gg_._size_xxl_1nyws_gg_{width:72px;height:72px;border-width:10px}" | ||
/*__inner_css_end__*/ | ||
@@ -36,14 +36,14 @@ , "jbivl0_gg_") | ||
"@spin-rotate": "spin-rotate_jbivl0", | ||
"__SSpin": "___SSpin_xek18_gg_", | ||
"__SSpin": "___SSpin_1nyws_gg_", | ||
"--theme": "--theme_jbivl0", | ||
"_theme_dark": "_theme_dark_xek18_gg_", | ||
"_theme_invert": "_theme_invert_xek18_gg_", | ||
"_centered": "__centered_xek18_gg_", | ||
"_size_xxs": "_size_xxs_xek18_gg_", | ||
"_size_xs": "_size_xs_xek18_gg_", | ||
"_size_s": "_size_s_xek18_gg_", | ||
"_size_m": "_size_m_xek18_gg_", | ||
"_size_l": "_size_l_xek18_gg_", | ||
"_size_xl": "_size_xl_xek18_gg_", | ||
"_size_xxl": "_size_xxl_xek18_gg_" | ||
"_theme_dark": "_theme_dark_1nyws_gg_", | ||
"_theme_invert": "_theme_invert_1nyws_gg_", | ||
"_centered": "__centered_1nyws_gg_", | ||
"_size_xxs": "_size_xxs_1nyws_gg_", | ||
"_size_xs": "_size_xs_1nyws_gg_", | ||
"_size_s": "_size_s_1nyws_gg_", | ||
"_size_m": "_size_m_1nyws_gg_", | ||
"_size_l": "_size_l_1nyws_gg_", | ||
"_size_xl": "_size_xl_1nyws_gg_", | ||
"_size_xxl": "_size_xxl_1nyws_gg_" | ||
}); | ||
@@ -90,4 +90,3 @@ | ||
var Spin = createComponent(RootSpin); | ||
export default Spin; | ||
export default createComponent(RootSpin); | ||
//# sourceMappingURL=Spin.js.map |
import { CProps, ReturnEl } from '@semcore/core'; | ||
import { IBoxProps } from '@semcore/flex-box'; | ||
export type SpinSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | ||
export type SpinSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'; | ||
@@ -6,0 +6,0 @@ export interface ISpinProps extends IBoxProps { |
{ | ||
"name": "@semcore/spin", | ||
"description": "SEMRush Spin Component", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"main": "lib/cjs/index.js", | ||
@@ -24,4 +24,9 @@ "module": "lib/es6/index.js", | ||
"jest": { | ||
"preset": "jest-preset-ui" | ||
"preset": "@semcore/jest-preset-ui" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/semrush/intergalactic.git", | ||
"directory": "semcore/spin" | ||
} | ||
} |
import { CProps, ReturnEl } from '@semcore/core'; | ||
import { IBoxProps } from '@semcore/flex-box'; | ||
export type SpinSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | ||
export type SpinSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'; | ||
@@ -6,0 +6,0 @@ export interface ISpinProps extends IBoxProps { |
@@ -23,3 +23,2 @@ import React from 'react'; | ||
const Spin = createComponent(RootSpin); | ||
export default Spin; | ||
export default createComponent(RootSpin); |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
26977
462
2