@react-md/divider
Advanced tools
Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.3
@@ -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 = { |
@@ -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
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
65898
43
763