Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-md/divider

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-md/divider - npm Package Compare versions

Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.3

dist/scss/_functions.scss

5

es/Divider.js

@@ -21,3 +21,3 @@ var __assign = (this && this.__assign) || function () {

};
import React, { forwardRef, createElement, } from "react";
import React, { forwardRef } from "react";
import cn from "classnames";

@@ -28,3 +28,4 @@ import { bem } from "@react-md/theme";

var _a = providedProps, inset = _a.inset, vertical = _a.vertical, forwardedRef = _a.forwardedRef, className = _a.className, props = __rest(_a, ["inset", "vertical", "forwardedRef", "className"]);
return createElement(vertical ? "div" : "hr", __assign({}, props, { ref: forwardedRef, className: cn(block({ inset: inset, vertical: vertical }), className) }));
var Component = (vertical ? "div" : "hr");
return (React.createElement(Component, __assign({}, props, { ref: forwardedRef, className: cn(block({ inset: !vertical && inset, vertical: vertical }), className) })));
};

@@ -31,0 +32,0 @@ var defaultProps = {

2

es/VerticalDivider.js

@@ -21,3 +21,3 @@ var __assign = (this && this.__assign) || function () {

};
import React, { useCallback, useState, } from "react";
import React, { useCallback, useState } from "react";
import Divider from "./Divider";

@@ -24,0 +24,0 @@ /**

@@ -39,3 +39,4 @@ "use strict";

var _a = providedProps, inset = _a.inset, vertical = _a.vertical, forwardedRef = _a.forwardedRef, className = _a.className, props = __rest(_a, ["inset", "vertical", "forwardedRef", "className"]);
return react_1.createElement(vertical ? "div" : "hr", __assign({}, props, { ref: forwardedRef, className: classnames_1.default(block({ inset: inset, vertical: vertical }), className) }));
var Component = (vertical ? "div" : "hr");
return (react_1.default.createElement(Component, __assign({}, props, { ref: forwardedRef, className: classnames_1.default(block({ inset: !vertical && inset, vertical: vertical }), className) })));
};

@@ -42,0 +43,0 @@ var defaultProps = {

{
"name": "@react-md/divider",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.3",
"description": "This package is used to create horizontal or vertical dividers in your application.",
"scripts": {
"build": "dev-utils build",
"clean": "dev-utils clean",
"test": "dev-utils test"
"clean": "dev-utils clean"
},

@@ -32,4 +31,4 @@ "main": "./lib/index.js",

"dependencies": {
"@react-md/theme": "^2.0.0-alpha.1",
"@react-md/utils": "^2.0.0-alpha.1",
"@react-md/theme": "^2.0.0-alpha.3",
"@react-md/utils": "^2.0.0-alpha.3",
"classnames": "^2.2.6"

@@ -46,3 +45,3 @@ },

},
"gitHead": "9197bcdf38df3cff304499431696dc8e950b4b17"
"gitHead": "ff38fa4bd502c527ffb8847eae71b471456e0355"
}

@@ -1,2 +0,2 @@

import { FunctionComponent, HTMLAttributes } from "react";
import { FC, HTMLAttributes } from "react";
export interface VerticalDividerProps extends HTMLAttributes<HTMLDivElement> {

@@ -33,3 +33,3 @@ /**

*/
declare const VerticalDivider: FunctionComponent<VerticalDividerProps>;
declare const VerticalDivider: FC<VerticalDividerProps>;
export default VerticalDivider;

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

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