Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

Commit

Permalink
type->kind
Browse files Browse the repository at this point in the history
  • Loading branch information
terebentina committed Aug 26, 2016
1 parent 4dcdaa1 commit 0f0ed38
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions lib/components/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de

function Link(_ref) {
var children = _ref.children;
var type = _ref.type;
var kind = _ref.kind;
var size = _ref.size;
var style = _ref.style;
var state = _ref.state;
var icon = _ref.icon;
var iconPosition = _ref.iconPosition;

var className = 'button';
if (type) {
className += ' is-' + type;
if (kind) {
className += ' is-' + kind;
}
if (size) {
className += ' is-' + size;
Expand All @@ -46,7 +46,7 @@ function Link(_ref) {

process.env.NODE_ENV !== "production" ? Link.propTypes = {
children: _react.PropTypes.any,
type: _react.PropTypes.oneOf(['primary', 'info', 'success', 'warning', 'danger', 'link']),
kind: _react.PropTypes.oneOf(['primary', 'info', 'success', 'warning', 'danger', 'link']),
size: _react.PropTypes.oneOf(['small', 'medium', 'large']),
style: _react.PropTypes.oneOf(['outlined', 'inverted']),
state: _react.PropTypes.oneOf(['loading', 'active', 'disabled']),
Expand Down
8 changes: 4 additions & 4 deletions lib/components/Notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de

function Notification(_ref) {
var children = _ref.children;
var type = _ref.type;
var kind = _ref.kind;
var hasClose = _ref.hasClose;

var cName = 'notification';
if (type) {
cName += ' is-' + type;
if (kind) {
cName += ' is-' + kind;
}

return _react2.default.createElement(
Expand All @@ -28,7 +28,7 @@ function Notification(_ref) {

process.env.NODE_ENV !== "production" ? Notification.propTypes = {
children: _react.PropTypes.any,
type: _react.PropTypes.oneOf(['primary', 'info', 'success', 'warning', 'danger']),
kind: _react.PropTypes.oneOf(['primary', 'info', 'success', 'warning', 'danger']),
hasClose: _react.PropTypes.bool
} : void 0;

Expand Down
8 changes: 4 additions & 4 deletions lib/components/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de

function Tag(_ref) {
var children = _ref.children;
var type = _ref.type;
var kind = _ref.kind;
var size = _ref.size;
var hasClose = _ref.hasClose;

var className = 'tag';
if (type) {
className += ' is-' + type;
if (kind) {
className += ' is-' + kind;
}
if (size) {
className += ' is-' + size;
Expand All @@ -32,7 +32,7 @@ function Tag(_ref) {

process.env.NODE_ENV !== "production" ? Tag.propTypes = {
children: _react.PropTypes.any,
type: _react.PropTypes.oneOf(['dark', 'primary', 'info', 'success', 'warning', 'danger']),
kind: _react.PropTypes.oneOf(['dark', 'primary', 'info', 'success', 'warning', 'danger']),
size: _react.PropTypes.oneOf(['small', 'medium', 'large']),
hasClose: _react.PropTypes.bool
} : void 0;
Expand Down
8 changes: 4 additions & 4 deletions src/components/Link.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { PropTypes } from 'react';
import Icon from './Icon';

function Link({ children, type, size, style, state, icon, iconPosition }) {
function Link({ children, kind, size, style, state, icon, iconPosition }) {
let className = 'button';
if (type) {
className += ` is-${type}`;
if (kind) {
className += ` is-${kind}`;
}
if (size) {
className += ` is-${size}`;
Expand All @@ -27,7 +27,7 @@ function Link({ children, type, size, style, state, icon, iconPosition }) {

Link.propTypes = {
children: PropTypes.any,
type: PropTypes.oneOf(['primary', 'info', 'success', 'warning', 'danger', 'link']),
kind: PropTypes.oneOf(['primary', 'info', 'success', 'warning', 'danger', 'link']),
size: PropTypes.oneOf(['small', 'medium', 'large']),
style: PropTypes.oneOf(['outlined', 'inverted']),
state: PropTypes.oneOf(['loading', 'active', 'disabled']),
Expand Down
8 changes: 4 additions & 4 deletions src/components/Notification.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { PropTypes } from 'react';

function Notification({ children, type, hasClose }) {
function Notification({ children, kind, hasClose }) {
let cName = 'notification';
if (type) {
cName += ` is-${type}`;
if (kind) {
cName += ` is-${kind}`;
}

return (
Expand All @@ -16,7 +16,7 @@ function Notification({ children, type, hasClose }) {

Notification.propTypes = {
children: PropTypes.any,
type: PropTypes.oneOf(['primary', 'info', 'success', 'warning', 'danger']),
kind: PropTypes.oneOf(['primary', 'info', 'success', 'warning', 'danger']),
hasClose: PropTypes.bool,
};

Expand Down
8 changes: 4 additions & 4 deletions src/components/Tag.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { PropTypes } from 'react';

function Tag({ children, type, size, hasClose }) {
function Tag({ children, kind, size, hasClose }) {
let className = 'tag';
if (type) {
className += ` is-${type}`;
if (kind) {
className += ` is-${kind}`;
}
if (size) {
className += ` is-${size}`;
Expand All @@ -19,7 +19,7 @@ function Tag({ children, type, size, hasClose }) {

Tag.propTypes = {
children: PropTypes.any,
type: PropTypes.oneOf(['dark', 'primary', 'info', 'success', 'warning', 'danger']),
kind: PropTypes.oneOf(['dark', 'primary', 'info', 'success', 'warning', 'danger']),
size: PropTypes.oneOf(['small', 'medium', 'large']),
hasClose: PropTypes.bool,
};
Expand Down

0 comments on commit 0f0ed38

Please sign in to comment.