@semcore/spin-container
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -5,2 +5,12 @@ # Changelog | ||
## [2.1.0] - 2019-06-18 | ||
### Added | ||
- `SpinContainer.Overlay` для возможноти кастомизации подложки под `Spin` | ||
### Fixed | ||
- Исправленно css свойство `display` c `inline-block` на `block` | ||
## [2.0.1] - 2019-05-21 | ||
@@ -16,3 +26,3 @@ | ||
- Убрано свойство `spinner` и `centered` | ||
- Убрано свойство `spinner` | ||
@@ -19,0 +29,0 @@ ### Changed |
@@ -15,9 +15,9 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties'; | ||
"block": { | ||
"block": "_spin-container_1fgfu_3" | ||
"block": "_spin-container_19gqw_3" | ||
}, | ||
"content": { | ||
"block": "_spin-container__content_1fgfu_9" | ||
"block": "_spin-container__content_19gqw_9" | ||
}, | ||
"spin": { | ||
"block": "_spin-container__spin_1fgfu_14" | ||
"block": "_spin-container__spin_19gqw_14" | ||
} | ||
@@ -32,7 +32,7 @@ }; | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._spin-container_1fgfu_3{display:inline-block}._spin-container_1fgfu_3,._spin-container__content_1fgfu_9{z-index:0;position:relative}._spin-container__spin_1fgfu_14{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"); | ||
prevStyle.insertAdjacentText("beforeend", "._spin-container_19gqw_3{display:block}._spin-container_19gqw_3,._spin-container__content_19gqw_9{z-index:0;position:relative}._spin-container__spin_19gqw_14{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._spin-container_1fgfu_3{display:inline-block}._spin-container_1fgfu_3,._spin-container__content_1fgfu_9{z-index:0;position:relative}._spin-container__spin_1fgfu_14{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"; | ||
style.innerHTML = "._spin-container_19gqw_3{display:block}._spin-container_19gqw_3,._spin-container__content_19gqw_9{z-index:0;position:relative}._spin-container__spin_19gqw_14{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"; | ||
head.appendChild(style); | ||
@@ -82,3 +82,3 @@ } | ||
className: content() | ||
}, children), loading && React.createElement(UI, { | ||
}, children), loading && React.createElement(SpinContainer.Overlay, { | ||
className: spin(), | ||
@@ -104,4 +104,5 @@ css: { | ||
}; | ||
SpinContainer.Overlay = UI; | ||
export default SpinContainer; | ||
//# sourceMappingURL=index.es.js.map |
@@ -22,9 +22,9 @@ 'use strict'; | ||
"block": { | ||
"block": "_spin-container_1fgfu_3" | ||
"block": "_spin-container_19gqw_3" | ||
}, | ||
"content": { | ||
"block": "_spin-container__content_1fgfu_9" | ||
"block": "_spin-container__content_19gqw_9" | ||
}, | ||
"spin": { | ||
"block": "_spin-container__spin_1fgfu_14" | ||
"block": "_spin-container__spin_19gqw_14" | ||
} | ||
@@ -39,7 +39,7 @@ }; | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._spin-container_1fgfu_3{display:inline-block}._spin-container_1fgfu_3,._spin-container__content_1fgfu_9{z-index:0;position:relative}._spin-container__spin_1fgfu_14{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"); | ||
prevStyle.insertAdjacentText("beforeend", "._spin-container_19gqw_3{display:block}._spin-container_19gqw_3,._spin-container__content_19gqw_9{z-index:0;position:relative}._spin-container__spin_19gqw_14{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._spin-container_1fgfu_3{display:inline-block}._spin-container_1fgfu_3,._spin-container__content_1fgfu_9{z-index:0;position:relative}._spin-container__spin_1fgfu_14{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"; | ||
style.innerHTML = "._spin-container_19gqw_3{display:block}._spin-container_19gqw_3,._spin-container__content_19gqw_9{z-index:0;position:relative}._spin-container__spin_19gqw_14{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"; | ||
head.appendChild(style); | ||
@@ -89,3 +89,3 @@ } | ||
className: content() | ||
}, children), loading && React__default.createElement(UI, { | ||
}, children), loading && React__default.createElement(SpinContainer.Overlay, { | ||
className: spin(), | ||
@@ -111,4 +111,5 @@ css: { | ||
}; | ||
SpinContainer.Overlay = UI; | ||
exports.default = SpinContainer; | ||
//# sourceMappingURL=index.js.map |
@@ -25,4 +25,5 @@ import React, { PureComponent } from 'react'; | ||
}; | ||
static Overlay: any; | ||
render(): JSX.Element; | ||
} | ||
export default SpinContainer; |
{ | ||
"name": "@semcore/spin-container", | ||
"description": "SEMRush SpinContainer Component", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "module": "lib/index.es.js", |
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
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
18526
288