Socket
Socket
Sign inDemoInstall

react-remove-scroll-bar

Package Overview
Dependencies
12
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 2.2.0

4

dist/es2015/component.js
import * as React from 'react';
import { styleSingleton } from 'react-style-singleton';
import { getGapWidth } from './utils';
import { fullWidthClassName, zeroRightClassName, noScrollbarsClassName } from "./constants";
import { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from "./constants";
var Style = styleSingleton();

@@ -13,3 +13,3 @@ var getStyles = function (_a, allowRelative, gapMode, important) {

gapMode === 'padding' && "padding-right: " + gap + "px " + important + ";",
].filter(Boolean).join('') + "\n }\n \n ." + zeroRightClassName + " {\n right: " + gap + "px " + important + ";\n }\n \n ." + fullWidthClassName + " {\n margin-right: " + gap + "px " + important + ";\n }\n \n ." + zeroRightClassName + " ." + zeroRightClassName + " {\n right: 0 " + important + ";\n }\n \n ." + fullWidthClassName + " ." + fullWidthClassName + " {\n margin-right: 0 " + important + ";\n }\n";
].filter(Boolean).join('') + "\n }\n \n ." + zeroRightClassName + " {\n right: " + gap + "px " + important + ";\n }\n \n ." + fullWidthClassName + " {\n margin-right: " + gap + "px " + important + ";\n }\n \n ." + zeroRightClassName + " ." + zeroRightClassName + " {\n right: 0 " + important + ";\n }\n \n ." + fullWidthClassName + " ." + fullWidthClassName + " {\n margin-right: 0 " + important + ";\n }\n \n body {\n " + removedBarSizeVariable + ": " + gap + "px;\n }\n";
};

@@ -16,0 +16,0 @@ export var RemoveScrollBar = function (props) {

export declare const zeroRightClassName = "right-scroll-bar-position";
export declare const fullWidthClassName = "width-before-scroll-bar";
export declare const noScrollbarsClassName = "with-scroll-bars-hidden";
export declare const removedBarSizeVariable = "--removed-body-scroll-bar-size";
export var zeroRightClassName = 'right-scroll-bar-position';
export var fullWidthClassName = 'width-before-scroll-bar';
export var noScrollbarsClassName = 'with-scroll-bars-hidden';
export var removedBarSizeVariable = '--removed-body-scroll-bar-size';
import { RemoveScrollBar } from './component';
import { getGapWidth } from './utils';
import { zeroRightClassName, fullWidthClassName, noScrollbarsClassName } from './constants';
export { RemoveScrollBar, zeroRightClassName, fullWidthClassName, noScrollbarsClassName, getGapWidth };
import { zeroRightClassName, fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';
export { RemoveScrollBar, zeroRightClassName, fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable, getGapWidth };
import { RemoveScrollBar } from './component';
import { getGapWidth } from './utils';
import { zeroRightClassName, fullWidthClassName, noScrollbarsClassName } from './constants';
export { RemoveScrollBar, zeroRightClassName, fullWidthClassName, noScrollbarsClassName, getGapWidth };
import { zeroRightClassName, fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';
export { RemoveScrollBar, zeroRightClassName, fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable, getGapWidth };

@@ -15,3 +15,3 @@ "use strict";

gapMode === 'padding' && "padding-right: " + gap + "px " + important + ";",
].filter(Boolean).join('') + "\n }\n \n ." + constants_1.zeroRightClassName + " {\n right: " + gap + "px " + important + ";\n }\n \n ." + constants_1.fullWidthClassName + " {\n margin-right: " + gap + "px " + important + ";\n }\n \n ." + constants_1.zeroRightClassName + " ." + constants_1.zeroRightClassName + " {\n right: 0 " + important + ";\n }\n \n ." + constants_1.fullWidthClassName + " ." + constants_1.fullWidthClassName + " {\n margin-right: 0 " + important + ";\n }\n";
].filter(Boolean).join('') + "\n }\n \n ." + constants_1.zeroRightClassName + " {\n right: " + gap + "px " + important + ";\n }\n \n ." + constants_1.fullWidthClassName + " {\n margin-right: " + gap + "px " + important + ";\n }\n \n ." + constants_1.zeroRightClassName + " ." + constants_1.zeroRightClassName + " {\n right: 0 " + important + ";\n }\n \n ." + constants_1.fullWidthClassName + " ." + constants_1.fullWidthClassName + " {\n margin-right: 0 " + important + ";\n }\n \n body {\n " + constants_1.removedBarSizeVariable + ": " + gap + "px;\n }\n";
};

@@ -18,0 +18,0 @@ exports.RemoveScrollBar = function (props) {

export declare const zeroRightClassName = "right-scroll-bar-position";
export declare const fullWidthClassName = "width-before-scroll-bar";
export declare const noScrollbarsClassName = "with-scroll-bars-hidden";
export declare const removedBarSizeVariable = "--removed-body-scroll-bar-size";

@@ -6,1 +6,2 @@ "use strict";

exports.noScrollbarsClassName = 'with-scroll-bars-hidden';
exports.removedBarSizeVariable = '--removed-body-scroll-bar-size';
import { RemoveScrollBar } from './component';
import { getGapWidth } from './utils';
import { zeroRightClassName, fullWidthClassName, noScrollbarsClassName } from './constants';
export { RemoveScrollBar, zeroRightClassName, fullWidthClassName, noScrollbarsClassName, getGapWidth };
import { zeroRightClassName, fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';
export { RemoveScrollBar, zeroRightClassName, fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable, getGapWidth };

@@ -11,1 +11,2 @@ "use strict";

exports.noScrollbarsClassName = constants_1.noScrollbarsClassName;
exports.removedBarSizeVariable = constants_1.removedBarSizeVariable;
{
"name": "react-remove-scroll-bar",
"version": "2.1.1",
"version": "2.2.0",
"description": "Removes body scroll without content _shake_",

@@ -5,0 +5,0 @@ "main": "dist/es5/index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc