@artistry/react
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -6,2 +6,3 @@ import * as React from 'react'; | ||
multiColumn?: boolean; | ||
centered?: boolean; | ||
} | ||
@@ -8,0 +9,0 @@ export default class CardSection extends React.Component<ICardSectionProps, any> { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const React = require("react"); | ||
const ClassNames_1 = require("../util/ClassNames"); | ||
class CardSection extends React.Component { | ||
render() { | ||
let { id, className, multiColumn } = this.props; | ||
let classNames = className ? [className] : []; | ||
classNames.push('card-section'); | ||
if (multiColumn) { | ||
classNames.push('card-section-multi-column'); | ||
} | ||
return (React.createElement("section", { className: classNames.join(' '), id: id }, this.props.children)); | ||
let { id, className, multiColumn, centered } = this.props; | ||
let classNames = new ClassNames_1.default(className, 'card-section'); | ||
classNames.addTest('card-section-multi-column', multiColumn); | ||
classNames.addTest('card-section-centered', centered); | ||
return (React.createElement("section", { className: classNames.toString(), id: id }, this.props.children)); | ||
} | ||
@@ -14,0 +13,0 @@ } |
{ | ||
"name": "@artistry/react", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "A powerful component library for React", | ||
@@ -28,3 +28,3 @@ "repository": "https://www.github.com/sjohnsonaz/artistry-react.git", | ||
"peerDependencies": { | ||
"artistry": "^0.9.1", | ||
"artistry": "^0.9.3", | ||
"react": "16.11.0", | ||
@@ -40,3 +40,3 @@ "react-dom": "16.11.0" | ||
"@types/react-dom": "16.9.2", | ||
"artistry": "^0.9.1", | ||
"artistry": "^0.9.3", | ||
"autoprefixer": "9.7.4", | ||
@@ -43,0 +43,0 @@ "chai": "4.2.0", |
246515