@semcore/scroll-area
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,2 +5,8 @@ # Changelog | ||
## [1.0.1] | ||
### Fixed | ||
- Исправлена ошибка в типах ScrollArea | ||
## [1.0.0] | ||
@@ -7,0 +13,0 @@ |
@@ -26,6 +26,12 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray'; | ||
var head = window.document.head; | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._scroll-container_1iyd8_3{position:relative;display:inline-block;width:100%;height:100%}"; | ||
head.appendChild(style); | ||
var prevStyle = head.querySelector('._css-style'); | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._scroll-container_1iyd8_3{position:relative;display:inline-block;width:100%;height:100%}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._scroll-container_1iyd8_3{position:relative;display:inline-block;width:100%;height:100%}"; | ||
head.appendChild(style); | ||
} | ||
} | ||
@@ -127,6 +133,12 @@ })('./scroll-container.style.css'); | ||
var head = window.document.head; | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._scroll-pane__wrapper_7yy00_3{position:relative;display:inline-block;overflow:hidden;width:100%;height:100%}._scroll-pane_7yy00_3{width:100%;height:100%;padding:20px;margin:-20px;overflow:scroll;box-sizing:content-box;transition:all .2s linear}._scroll-pane_7yy00_3::-webkit-scrollbar{display:none;width:0;background:transparent}"; | ||
head.appendChild(style); | ||
var prevStyle = head.querySelector('._css-style'); | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._scroll-pane__wrapper_7yy00_3{position:relative;display:inline-block;overflow:hidden;width:100%;height:100%}._scroll-pane_7yy00_3{width:100%;height:100%;padding:20px;margin:-20px;overflow:scroll;box-sizing:content-box;transition:all .2s linear}._scroll-pane_7yy00_3::-webkit-scrollbar{display:none;width:0;background:transparent}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._scroll-pane__wrapper_7yy00_3{position:relative;display:inline-block;overflow:hidden;width:100%;height:100%}._scroll-pane_7yy00_3{width:100%;height:100%;padding:20px;margin:-20px;overflow:scroll;box-sizing:content-box;transition:all .2s linear}._scroll-pane_7yy00_3::-webkit-scrollbar{display:none;width:0;background:transparent}"; | ||
head.appendChild(style); | ||
} | ||
} | ||
@@ -227,6 +239,12 @@ })('./scroll-pane.style.css'); | ||
var head = window.document.head; | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._scroll-bar_fodb5_3{position:absolute;background:hsla(0,0%,78.4%,.3)}._scroll-bar__slider_fodb5_8{width:100%;height:100%;cursor:pointer}._scroll-bar__slider--theme_default_fodb5_14{border-radius:7px;background:rgba(0,0,0,.5)}._scroll-bar--orientation_vertical_fodb5_19{top:0;right:0;width:6px;height:100%}._scroll-bar--orientation_horizontal_fodb5_25{bottom:0;left:0;height:6px;width:100%}"; | ||
head.appendChild(style); | ||
var prevStyle = head.querySelector('._css-style'); | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._scroll-bar_fodb5_3{position:absolute;background:hsla(0,0%,78.4%,.3)}._scroll-bar__slider_fodb5_8{width:100%;height:100%;cursor:pointer}._scroll-bar__slider--theme_default_fodb5_14{border-radius:7px;background:rgba(0,0,0,.5)}._scroll-bar--orientation_vertical_fodb5_19{top:0;right:0;width:6px;height:100%}._scroll-bar--orientation_horizontal_fodb5_25{bottom:0;left:0;height:6px;width:100%}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._scroll-bar_fodb5_3{position:absolute;background:hsla(0,0%,78.4%,.3)}._scroll-bar__slider_fodb5_8{width:100%;height:100%;cursor:pointer}._scroll-bar__slider--theme_default_fodb5_14{border-radius:7px;background:rgba(0,0,0,.5)}._scroll-bar--orientation_vertical_fodb5_19{top:0;right:0;width:6px;height:100%}._scroll-bar--orientation_horizontal_fodb5_25{bottom:0;left:0;height:6px;width:100%}"; | ||
head.appendChild(style); | ||
} | ||
} | ||
@@ -233,0 +251,0 @@ })('./scroll-bar.style.css'); |
@@ -33,6 +33,12 @@ 'use strict'; | ||
var head = window.document.head; | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._scroll-container_1iyd8_3{position:relative;display:inline-block;width:100%;height:100%}"; | ||
head.appendChild(style); | ||
var prevStyle = head.querySelector('._css-style'); | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._scroll-container_1iyd8_3{position:relative;display:inline-block;width:100%;height:100%}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._scroll-container_1iyd8_3{position:relative;display:inline-block;width:100%;height:100%}"; | ||
head.appendChild(style); | ||
} | ||
} | ||
@@ -134,6 +140,12 @@ })('./scroll-container.style.css'); | ||
var head = window.document.head; | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._scroll-pane__wrapper_7yy00_3{position:relative;display:inline-block;overflow:hidden;width:100%;height:100%}._scroll-pane_7yy00_3{width:100%;height:100%;padding:20px;margin:-20px;overflow:scroll;box-sizing:content-box;transition:all .2s linear}._scroll-pane_7yy00_3::-webkit-scrollbar{display:none;width:0;background:transparent}"; | ||
head.appendChild(style); | ||
var prevStyle = head.querySelector('._css-style'); | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._scroll-pane__wrapper_7yy00_3{position:relative;display:inline-block;overflow:hidden;width:100%;height:100%}._scroll-pane_7yy00_3{width:100%;height:100%;padding:20px;margin:-20px;overflow:scroll;box-sizing:content-box;transition:all .2s linear}._scroll-pane_7yy00_3::-webkit-scrollbar{display:none;width:0;background:transparent}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._scroll-pane__wrapper_7yy00_3{position:relative;display:inline-block;overflow:hidden;width:100%;height:100%}._scroll-pane_7yy00_3{width:100%;height:100%;padding:20px;margin:-20px;overflow:scroll;box-sizing:content-box;transition:all .2s linear}._scroll-pane_7yy00_3::-webkit-scrollbar{display:none;width:0;background:transparent}"; | ||
head.appendChild(style); | ||
} | ||
} | ||
@@ -234,6 +246,12 @@ })('./scroll-pane.style.css'); | ||
var head = window.document.head; | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._scroll-bar_fodb5_3{position:absolute;background:hsla(0,0%,78.4%,.3)}._scroll-bar__slider_fodb5_8{width:100%;height:100%;cursor:pointer}._scroll-bar__slider--theme_default_fodb5_14{border-radius:7px;background:rgba(0,0,0,.5)}._scroll-bar--orientation_vertical_fodb5_19{top:0;right:0;width:6px;height:100%}._scroll-bar--orientation_horizontal_fodb5_25{bottom:0;left:0;height:6px;width:100%}"; | ||
head.appendChild(style); | ||
var prevStyle = head.querySelector('._css-style'); | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._scroll-bar_fodb5_3{position:absolute;background:hsla(0,0%,78.4%,.3)}._scroll-bar__slider_fodb5_8{width:100%;height:100%;cursor:pointer}._scroll-bar__slider--theme_default_fodb5_14{border-radius:7px;background:rgba(0,0,0,.5)}._scroll-bar--orientation_vertical_fodb5_19{top:0;right:0;width:6px;height:100%}._scroll-bar--orientation_horizontal_fodb5_25{bottom:0;left:0;height:6px;width:100%}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._scroll-bar_fodb5_3{position:absolute;background:hsla(0,0%,78.4%,.3)}._scroll-bar__slider_fodb5_8{width:100%;height:100%;cursor:pointer}._scroll-bar__slider--theme_default_fodb5_14{border-radius:7px;background:rgba(0,0,0,.5)}._scroll-bar--orientation_vertical_fodb5_19{top:0;right:0;width:6px;height:100%}._scroll-bar--orientation_horizontal_fodb5_25{bottom:0;left:0;height:6px;width:100%}"; | ||
head.appendChild(style); | ||
} | ||
} | ||
@@ -240,0 +258,0 @@ })('./scroll-bar.style.css'); |
@@ -1,3 +0,3 @@ | ||
import { PureComponent } from 'react'; | ||
declare class ScrollArea extends PureComponent { | ||
import React, { PureComponent } from 'react'; | ||
declare class ScrollArea extends PureComponent<React.HTMLAttributes<HTMLDivElement>> { | ||
static displayName: string; | ||
@@ -4,0 +4,0 @@ render(): JSX.Element; |
{ | ||
"name": "@semcore/scroll-area", | ||
"description": "SEMRush ScrollArea Component", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "lib/index.js", | ||
@@ -15,5 +15,5 @@ "module": "lib/index.es.js", | ||
"dependencies": { | ||
"@semcore/utils": "^2.0.2", | ||
"@semcore/utils": "^2.1.0", | ||
"classnames": "^2.2.6", | ||
"@types/react": "^16.8.7", | ||
"@types/react": "^16.8.8", | ||
"@babel/runtime": "^7.3.4" | ||
@@ -20,0 +20,0 @@ }, |
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
122326
1800
Updated@semcore/utils@^2.1.0
Updated@types/react@^16.8.8