Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

travix-ui-kit

Package Overview
Dependencies
Maintainers
4
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

travix-ui-kit - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

components/badge/badge.js

27

CHANGELOG.md
# Change Log
## [v0.6.1](https://github.com/Travix-International/travix-ui-kit/tree/v0.6.1) (2017-06-01)
[Full Changelog](https://github.com/Travix-International/travix-ui-kit/compare/v0.6.0...v0.6.1)
## [v0.6.0](https://github.com/Travix-International/travix-ui-kit/tree/v0.6.0) (2017-06-01)
[Full Changelog](https://github.com/Travix-International/travix-ui-kit/compare/v0.5.2...v0.6.0)
**Closed issues:**
- Consider React as a peer dependency [\#98](https://github.com/Travix-International/travix-ui-kit/issues/98)
**Merged pull requests:**
- Move dependencies to devDependencies [\#100](https://github.com/Travix-International/travix-ui-kit/pull/100) ([mAiNiNfEcTiOn](https://github.com/mAiNiNfEcTiOn))
- Convert SCSS Variables into CSS Custom Properties/Variables [\#99](https://github.com/Travix-International/travix-ui-kit/pull/99) ([mAiNiNfEcTiOn](https://github.com/mAiNiNfEcTiOn))
## [v0.5.2](https://github.com/Travix-International/travix-ui-kit/tree/v0.5.2) (2017-05-18)

@@ -71,3 +86,3 @@ [Full Changelog](https://github.com/Travix-International/travix-ui-kit/compare/v0.5.1...v0.5.2)

- Update react-styleguidist to the latest version 🚀 [\#56](https://github.com/Travix-International/travix-ui-kit/pull/56) ([greenkeeper[bot]](https://github.com/integration/greenkeeper))
- Update react-styleguidist to the latest version 🚀 [\#56](https://github.com/Travix-International/travix-ui-kit/pull/56) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))

@@ -157,3 +172,3 @@ ## [v0.4.3](https://github.com/Travix-International/travix-ui-kit/tree/v0.4.3) (2017-04-07)

- Update theme-builder to the latest version 🚀 [\#38](https://github.com/Travix-International/travix-ui-kit/pull/38) ([greenkeeper[bot]](https://github.com/integration/greenkeeper))
- Update theme-builder to the latest version 🚀 [\#38](https://github.com/Travix-International/travix-ui-kit/pull/38) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Modal component [\#37](https://github.com/Travix-International/travix-ui-kit/pull/37) ([EduardTrutsyk](https://github.com/EduardTrutsyk))

@@ -185,4 +200,4 @@ - Fixes typo on README.md [\#33](https://github.com/Travix-International/travix-ui-kit/pull/33) ([mAiNiNfEcTiOn](https://github.com/mAiNiNfEcTiOn))

- Radio button [\#25](https://github.com/Travix-International/travix-ui-kit/pull/25) ([iwwwi](https://github.com/iwwwi))
- Update jest-cli to the latest version 🚀 [\#22](https://github.com/Travix-International/travix-ui-kit/pull/22) ([greenkeeper[bot]](https://github.com/integration/greenkeeper))
- Update jest to the latest version 🚀 [\#21](https://github.com/Travix-International/travix-ui-kit/pull/21) ([greenkeeper[bot]](https://github.com/integration/greenkeeper))
- Update jest-cli to the latest version 🚀 [\#22](https://github.com/Travix-International/travix-ui-kit/pull/22) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Update jest to the latest version 🚀 [\#21](https://github.com/Travix-International/travix-ui-kit/pull/21) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Price component [\#18](https://github.com/Travix-International/travix-ui-kit/pull/18) ([mAiNiNfEcTiOn](https://github.com/mAiNiNfEcTiOn))

@@ -212,3 +227,3 @@ - Added List component [\#16](https://github.com/Travix-International/travix-ui-kit/pull/16) ([AlexDudar](https://github.com/AlexDudar))

- Updated mods helper and class names according to the new BEM standards [\#13](https://github.com/Travix-International/travix-ui-kit/pull/13) ([AlexDudar](https://github.com/AlexDudar))
- Update sass-loader to the latest version 🚀 [\#9](https://github.com/Travix-International/travix-ui-kit/pull/9) ([greenkeeper[bot]](https://github.com/integration/greenkeeper))
- Update sass-loader to the latest version 🚀 [\#9](https://github.com/Travix-International/travix-ui-kit/pull/9) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))

@@ -234,3 +249,3 @@ ## [v0.2.2](https://github.com/Travix-International/travix-ui-kit/tree/v0.2.2) (2017-01-26)

- Update dependencies to enable Greenkeeper 🌴 [\#2](https://github.com/Travix-International/travix-ui-kit/pull/2) ([greenkeeper[bot]](https://github.com/integration/greenkeeper))
- Update dependencies to enable Greenkeeper 🌴 [\#2](https://github.com/Travix-International/travix-ui-kit/pull/2) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))

@@ -237,0 +252,0 @@ ## [v0.1.2](https://github.com/Travix-International/travix-ui-kit/tree/v0.1.2) (2017-01-18)

const modSep = '_';
function getClassNamesWithMods(baseClass = '', mods = {}) {
function getClassNamesWithMods(baseClass = '', ...modsSet) {
let classes = [].concat(baseClass);
baseClass = classes[0];
if (mods instanceof Array) {
classes = classes
.concat(mods.filter(Boolean).map(mode => `${baseClass}${modSep}${mode}`));
} else {
Object.keys(mods).forEach((mode) => {
if (mods[mode]) {
classes.push(`${baseClass}${modSep}${mode}`);
}
});
}
modsSet.forEach((mods) => {
if (mods instanceof Array) {
classes = classes
.concat(mods.filter(Boolean).map(mode => `${baseClass}${modSep}${mode}`));
} else {
Object.keys(mods).forEach((mode) => {
if (mods[mode]) {
classes.push(`${baseClass}${modSep}${mode}`);
}
});
}
});

@@ -18,0 +20,0 @@ return classes.join(' ');

import AutoComplete from './autoComplete/autoComplete';
import AutoCompleteItem from './autoComplete/autoCompleteItem';
import Badge from './badge/badge';
import Button from './button/button';

@@ -19,2 +20,3 @@ import Calendar from './calendar/calendar';

AutoCompleteItem,
Badge,
Button,

@@ -21,0 +23,0 @@ Calendar,

@@ -10,3 +10,2 @@ 'use strict';

var baseClass = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
var mods = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

@@ -16,14 +15,20 @@ var classes = [].concat(baseClass);

if (mods instanceof Array) {
classes = classes.concat(mods.filter(Boolean).map(function (mode) {
return '' + baseClass + modSep + mode;
}));
} else {
Object.keys(mods).forEach(function (mode) {
if (mods[mode]) {
classes.push('' + baseClass + modSep + mode);
}
});
for (var _len = arguments.length, modsSet = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
modsSet[_key - 1] = arguments[_key];
}
modsSet.forEach(function (mods) {
if (mods instanceof Array) {
classes = classes.concat(mods.filter(Boolean).map(function (mode) {
return '' + baseClass + modSep + mode;
}));
} else {
Object.keys(mods).forEach(function (mode) {
if (mods[mode]) {
classes.push('' + baseClass + modSep + mode);
}
});
}
});
return classes.join(' ');

@@ -30,0 +35,0 @@ }

@@ -15,2 +15,6 @@ 'use strict';

var _badge = require('./badge/badge');
var _badge2 = _interopRequireDefault(_badge);
var _button = require('./button/button');

@@ -69,2 +73,3 @@

AutoCompleteItem: _autoCompleteItem2.default,
Badge: _badge2.default,
Button: _button2.default,

@@ -71,0 +76,0 @@ Calendar: _calendar2.default,

{
"name": "travix-ui-kit",
"version": "0.6.1",
"version": "0.6.2",
"description": "Travix UI kit",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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 too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc