glud-component
Advanced tools
Comparing version 1.3.7 to 1.3.8
@@ -84,3 +84,6 @@ 'use strict'; | ||
iconLeft = _props.iconLeft, | ||
iconRight = _props.iconRight; | ||
iconRight = _props.iconRight, | ||
large = _props.large, | ||
medium = _props.medium, | ||
small = _props.small; | ||
@@ -90,3 +93,6 @@ | ||
'is-success': isSuccess, | ||
'is-danger': isError | ||
'is-danger': isError, | ||
'is-large': large, | ||
'is-medium': medium, | ||
'is-small': small | ||
}; | ||
@@ -203,3 +209,6 @@ | ||
iconLeft: _propTypes2.default.func, | ||
iconRight: _propTypes2.default.func | ||
iconRight: _propTypes2.default.func, | ||
large: _propTypes2.default.bool, | ||
medium: _propTypes2.default.bool, | ||
small: _propTypes2.default.bool | ||
}, _class.defaultProps = { | ||
@@ -206,0 +215,0 @@ testKey: 'input', |
@@ -171,2 +171,5 @@ 'use strict'; | ||
var isShowPaginationTop = pagination && /(top|both)/.test(pagination); | ||
var isShowPaginationBottom = pagination && /(bottom|both)/.test(pagination); | ||
return _react2.default.createElement( | ||
@@ -190,3 +193,3 @@ 'div', | ||
), | ||
pagination && pagination === 'top' && _react2.default.createElement( | ||
isShowPaginationTop && _react2.default.createElement( | ||
'div', | ||
@@ -222,3 +225,3 @@ null, | ||
), | ||
pagination && pagination === 'bottom' && _react2.default.createElement(PaginationGroup, { | ||
isShowPaginationBottom && _react2.default.createElement(PaginationGroup, { | ||
pagination: paginations, | ||
@@ -242,2 +245,5 @@ totalRecord: ttr, | ||
fieldsForSearch: _propTypes2.default.object, | ||
/** | ||
* top | bottom | both | ||
*/ | ||
pagination: _propTypes2.default.string, | ||
@@ -244,0 +250,0 @@ viewPerPage: _propTypes2.default.number, |
{ | ||
"name": "glud-component", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": { |
795192
5345