@react-md/divider
Advanced tools
Comparing version 2.3.1 to 2.4.0
@@ -6,2 +6,15 @@ # Change Log | ||
# [2.4.0](https://github.com/mlaursen/react-md/compare/v2.2.0...v2.4.0) (2020-10-17) | ||
### Features | ||
- **theme:** Better Contrast Colors by Default and dev-utils refactor | ||
([#955](https://github.com/mlaursen/react-md/issues/955)) | ||
([519b128](https://github.com/mlaursen/react-md/commit/519b128522de944d55ff96a1e1125447665ed586)) | ||
# Change Log | ||
All notable changes to this project will be documented in this file. See | ||
[Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
## [2.3.1](https://github.com/mlaursen/react-md/compare/v2.2.0...v2.3.1) (2020-09-15) | ||
@@ -8,0 +21,0 @@ |
@@ -0,1 +1,5 @@ | ||
/** | ||
* This file was generated from @react-md/dev-utils and should not be updated | ||
* manually. | ||
*/ | ||
declare const _default: { | ||
@@ -21,3 +25,2 @@ "rmd-divider-size": string; | ||
}; | ||
/** this is an auto-generated file from @react-md/dev-utils */ | ||
export default _default; |
"use strict"; | ||
/** | ||
* This file was generated from @react-md/dev-utils and should not be updated | ||
* manually. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** this is an auto-generated file from @react-md/dev-utils */ | ||
exports.default = { | ||
@@ -5,0 +8,0 @@ "rmd-divider-size": "1px", |
@@ -27,3 +27,3 @@ var __assign = (this && this.__assign) || function () { | ||
var block = bem("rmd-divider"); | ||
var Divider = forwardRef(function Divider(_a, ref) { | ||
export var Divider = forwardRef(function Divider(_a, ref) { | ||
var _b = _a.inset, inset = _b === void 0 ? false : _b, _c = _a.vertical, vertical = _c === void 0 ? false : _c, _d = _a.role, role = _d === void 0 ? "separator" : _d, className = _a.className, props = __rest(_a, ["inset", "vertical", "role", "className"]); | ||
@@ -45,3 +45,2 @@ var Component = (vertical ? "div" : "hr"); | ||
} | ||
export default Divider; | ||
//# sourceMappingURL=Divider.js.map |
@@ -1,4 +0,3 @@ | ||
export { default as Divider } from "./Divider"; | ||
export * from "./Divider"; | ||
export { default as VerticalDivider, } from "./VerticalDivider"; | ||
export * from "./VerticalDivider"; | ||
//# sourceMappingURL=index.js.map |
@@ -25,3 +25,3 @@ var __assign = (this && this.__assign) || function () { | ||
import { applyRef } from "@react-md/utils"; | ||
import Divider from "./Divider"; | ||
import { Divider } from "./Divider"; | ||
/** | ||
@@ -63,3 +63,3 @@ * This is a small hook that is used to automatically create a vertical divider based | ||
*/ | ||
var VerticalDivider = forwardRef(function VerticalDivider(_a, forwardedRef) { | ||
export var VerticalDivider = forwardRef(function VerticalDivider(_a, forwardedRef) { | ||
var style = _a.style, _b = _a.maxHeight, maxHeight = _b === void 0 ? 1 : _b, props = __rest(_a, ["style", "maxHeight"]); | ||
@@ -89,3 +89,2 @@ var _c = useVerticalDividerHeight(maxHeight, forwardedRef), ref = _c.ref, height = _c.height; | ||
} | ||
export default VerticalDivider; | ||
//# sourceMappingURL=VerticalDivider.js.map |
@@ -24,3 +24,2 @@ import React, { HTMLAttributes } from "react"; | ||
} | ||
declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<DividerElement>>; | ||
export default Divider; | ||
export declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<DividerElement>>; |
@@ -28,3 +28,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -48,2 +48,3 @@ return result; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Divider = void 0; | ||
var react_1 = __importStar(require("react")); | ||
@@ -53,3 +54,3 @@ var classnames_1 = __importDefault(require("classnames")); | ||
var block = utils_1.bem("rmd-divider"); | ||
var Divider = react_1.forwardRef(function Divider(_a, ref) { | ||
exports.Divider = react_1.forwardRef(function Divider(_a, ref) { | ||
var _b = _a.inset, inset = _b === void 0 ? false : _b, _c = _a.vertical, vertical = _c === void 0 ? false : _c, _d = _a.role, role = _d === void 0 ? "separator" : _d, className = _a.className, props = __rest(_a, ["inset", "vertical", "role", "className"]); | ||
@@ -62,3 +63,3 @@ var Component = (vertical ? "div" : "hr"); | ||
var PropTypes = require("prop-types"); | ||
Divider.propTypes = { | ||
exports.Divider.propTypes = { | ||
role: PropTypes.string, | ||
@@ -72,3 +73,2 @@ inset: PropTypes.bool, | ||
} | ||
exports.default = Divider; | ||
//# sourceMappingURL=Divider.js.map |
@@ -1,3 +0,2 @@ | ||
export { default as Divider } from "./Divider"; | ||
export * from "./Divider"; | ||
export { default as VerticalDivider, VerticalDividerProps, } from "./VerticalDivider"; | ||
export * from "./VerticalDivider"; |
@@ -10,10 +10,7 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Divider_1 = require("./Divider"); | ||
Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return Divider_1.default; } }); | ||
__exportStar(require("./Divider"), exports); | ||
var VerticalDivider_1 = require("./VerticalDivider"); | ||
Object.defineProperty(exports, "VerticalDivider", { enumerable: true, get: function () { return VerticalDivider_1.default; } }); | ||
__exportStar(require("./VerticalDivider"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -34,3 +34,3 @@ import React, { HTMLAttributes, Ref } from "react"; | ||
*/ | ||
declare const VerticalDivider: React.ForwardRefExoticComponent<VerticalDividerProps & React.RefAttributes<HTMLDivElement>>; | ||
export default VerticalDivider; | ||
export declare const VerticalDivider: React.ForwardRefExoticComponent<VerticalDividerProps & React.RefAttributes<HTMLDivElement>>; | ||
export {}; |
@@ -28,3 +28,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -44,10 +44,7 @@ return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useVerticalDividerHeight = void 0; | ||
exports.VerticalDivider = exports.useVerticalDividerHeight = void 0; | ||
var react_1 = __importStar(require("react")); | ||
var utils_1 = require("@react-md/utils"); | ||
var Divider_1 = __importDefault(require("./Divider")); | ||
var Divider_1 = require("./Divider"); | ||
/** | ||
@@ -90,6 +87,6 @@ * This is a small hook that is used to automatically create a vertical divider based | ||
*/ | ||
var VerticalDivider = react_1.forwardRef(function VerticalDivider(_a, forwardedRef) { | ||
exports.VerticalDivider = react_1.forwardRef(function VerticalDivider(_a, forwardedRef) { | ||
var style = _a.style, _b = _a.maxHeight, maxHeight = _b === void 0 ? 1 : _b, props = __rest(_a, ["style", "maxHeight"]); | ||
var _c = useVerticalDividerHeight(maxHeight, forwardedRef), ref = _c.ref, height = _c.height; | ||
return (react_1.default.createElement(Divider_1.default, __assign({}, props, { style: __assign(__assign({}, style), { height: height }), ref: ref, vertical: true }))); | ||
return (react_1.default.createElement(Divider_1.Divider, __assign({}, props, { style: __assign(__assign({}, style), { height: height }), ref: ref, vertical: true }))); | ||
}); | ||
@@ -99,3 +96,3 @@ if (process.env.NODE_ENV !== "production") { | ||
var PropTypes = require("prop-types"); | ||
VerticalDivider.propTypes = { | ||
exports.VerticalDivider.propTypes = { | ||
style: PropTypes.object, | ||
@@ -117,3 +114,2 @@ maxHeight: PropTypes.number, | ||
} | ||
exports.default = VerticalDivider; | ||
//# sourceMappingURL=VerticalDivider.js.map |
{ | ||
"name": "@react-md/divider", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"description": "This package is used to create horizontal or vertical dividers in your application.", | ||
"scripts": { | ||
"build": "dev-utils build", | ||
"clean": "dev-utils clean" | ||
}, | ||
"main": "./lib/index.js", | ||
@@ -42,4 +38,4 @@ "module": "./es/index.js", | ||
"dependencies": { | ||
"@react-md/theme": "^2.3.1", | ||
"@react-md/utils": "^2.3.1", | ||
"@react-md/theme": "^2.4.0", | ||
"@react-md/utils": "^2.4.0", | ||
"classnames": "^2.2.6" | ||
@@ -60,3 +56,3 @@ }, | ||
}, | ||
"gitHead": "91880f64501b1a0637569be9aeea621db8898e86" | ||
"gitHead": "96fb088b5ae725ce21993aeda131de40119837e0" | ||
} |
@@ -1,7 +0,3 @@ | ||
export { default as Divider } from "./Divider"; | ||
export * from "./Divider"; | ||
export { | ||
default as VerticalDivider, | ||
VerticalDividerProps, | ||
} from "./VerticalDivider"; | ||
export * from "./VerticalDivider"; |
@@ -1,2 +0,6 @@ | ||
/** this is an auto-generated file from @react-md/dev-utils */ | ||
/** | ||
* This file was generated from @react-md/dev-utils and should not be updated | ||
* manually. | ||
*/ | ||
export default { | ||
@@ -3,0 +7,0 @@ "rmd-divider-size": "1px", |
@@ -24,3 +24,2 @@ import React, { HTMLAttributes } from "react"; | ||
} | ||
declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<DividerElement>>; | ||
export default Divider; | ||
export declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<DividerElement>>; |
@@ -1,3 +0,2 @@ | ||
export { default as Divider } from "./Divider"; | ||
export * from "./Divider"; | ||
export { default as VerticalDivider, VerticalDividerProps, } from "./VerticalDivider"; | ||
export * from "./VerticalDivider"; |
@@ -34,3 +34,3 @@ import React, { HTMLAttributes, Ref } from "react"; | ||
*/ | ||
declare const VerticalDivider: React.ForwardRefExoticComponent<VerticalDividerProps & React.RefAttributes<HTMLDivElement>>; | ||
export default VerticalDivider; | ||
export declare const VerticalDivider: React.ForwardRefExoticComponent<VerticalDividerProps & React.RefAttributes<HTMLDivElement>>; | ||
export {}; |
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
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
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
73511
Updated@react-md/theme@^2.4.0
Updated@react-md/utils@^2.4.0