travix-ui-kit
Advanced tools
Comparing version 0.12.0 to 0.13.0
# Change Log | ||
## [v0.12.0](https://github.com/Travix-International/ui/tree/v0.12.0) (2018-07-06) | ||
[Full Changelog](https://github.com/Travix-International/ui/compare/v0.11.0...v0.12.0) | ||
**Implemented enhancements:** | ||
- Checkbox, RadioButton: Extend data attrs to pass in root [\#26](https://github.com/Travix-International/ui/pull/26) ([RumataDeEstor](https://github.com/RumataDeEstor)) | ||
**Fixed bugs:** | ||
- Dropdown: fix styles [\#27](https://github.com/Travix-International/ui/pull/27) ([RumataDeEstor](https://github.com/RumataDeEstor)) | ||
## [v0.11.0](https://github.com/Travix-International/ui/tree/v0.11.0) (2018-06-28) | ||
@@ -4,0 +15,0 @@ [Full Changelog](https://github.com/Travix-International/ui/compare/v0.10.1...v0.11.0) |
@@ -18,2 +18,3 @@ import PropTypes from 'prop-types'; | ||
className, | ||
containerClassName, | ||
dataAttrs = {}, | ||
@@ -68,3 +69,3 @@ mods = [], | ||
return ( | ||
<div className={getClassNamesWithMods('ui-badge', { visible }, mods)}> | ||
<div className={classnames(containerClassName, getClassNamesWithMods('ui-badge', { visible }, mods))}> | ||
{children} | ||
@@ -99,2 +100,6 @@ {badge} | ||
/** | ||
* Class name for main container | ||
*/ | ||
containerClassName: PropTypes.string, | ||
/** | ||
* Data attribute. You can use it to set up any custom data-* attribute. | ||
@@ -101,0 +106,0 @@ */ |
@@ -37,2 +37,3 @@ 'use strict'; | ||
className = props.className, | ||
containerClassName = props.containerClassName, | ||
_props$dataAttrs = props.dataAttrs, | ||
@@ -89,3 +90,3 @@ dataAttrs = _props$dataAttrs === undefined ? {} : _props$dataAttrs, | ||
'div', | ||
{ className: (0, _helpers.getClassNamesWithMods)('ui-badge', { visible: visible }, mods) }, | ||
{ className: (0, _classnames2.default)(containerClassName, (0, _helpers.getClassNamesWithMods)('ui-badge', { visible: visible }, mods)) }, | ||
children, | ||
@@ -119,2 +120,6 @@ badge | ||
/** | ||
* Class name for main container | ||
*/ | ||
containerClassName: _propTypes2.default.string, | ||
/** | ||
* Data attribute. You can use it to set up any custom data-* attribute. | ||
@@ -121,0 +126,0 @@ */ |
{ | ||
"name": "travix-ui-kit", | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"description": "Travix UI kit", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
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
1927360
43313