@coorpacademy/components
Advanced tools
Comparing version 3.4.1 to 3.4.2
@@ -10,3 +10,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -13,0 +13,0 @@ |
@@ -16,3 +16,3 @@ import getOr from 'lodash/fp/getOr'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -19,0 +19,0 @@ var _options$skin = options.skin; |
@@ -16,3 +16,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -19,0 +19,0 @@ var _options$history = options.history; |
@@ -14,3 +14,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -17,0 +17,0 @@ |
@@ -34,6 +34,6 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var h = _ref3.h; | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var Picture = function Picture() { | ||
var props = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -40,0 +40,0 @@ if (isNil(props.src)) { |
@@ -21,3 +21,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
{ className: state }, | ||
['★'] | ||
['\u2605'] | ||
); | ||
@@ -24,0 +24,0 @@ }; |
@@ -6,3 +6,3 @@ import get from 'lodash/fp/get'; | ||
var primary = function primary(treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return function (props) { | ||
@@ -9,0 +9,0 @@ var skin = options.skin; |
@@ -5,3 +5,3 @@ import getOr from 'lodash/fp/getOr'; | ||
var textInverted = function textInverted(treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return function (props) { | ||
@@ -8,0 +8,0 @@ var skin = options.skin; |
@@ -5,3 +5,3 @@ import getOr from 'lodash/fp/getOr'; | ||
var textNormal = function textNormal(treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return function (props) { | ||
@@ -8,0 +8,0 @@ var skin = options.skin; |
import { checker, createValidate } from '../../util/validation'; | ||
import createLink from '../../atom/link'; | ||
import style from './style.css'; | ||
@@ -13,6 +14,8 @@ | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
var Link = createLink(treant, options); | ||
var BrandCardCreate = function BrandCardCreate(props, children) { | ||
@@ -42,3 +45,3 @@ var edit = props.edit; | ||
[h( | ||
'a', | ||
Link, | ||
{ href: editHref }, | ||
@@ -45,0 +48,0 @@ [h( |
@@ -19,3 +19,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -22,0 +22,0 @@ |
@@ -30,3 +30,3 @@ import map from 'lodash/fp/map'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -33,0 +33,0 @@ |
@@ -26,3 +26,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -29,0 +29,0 @@ |
@@ -18,3 +18,3 @@ import map from 'lodash/fp/map'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -21,0 +21,0 @@ |
@@ -24,3 +24,3 @@ import map from 'lodash/fp/map'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -27,0 +27,0 @@ |
@@ -29,3 +29,3 @@ import hyperx from 'hyperx'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -32,0 +32,0 @@ var HoverFill = HoverFillBehaviour(treant, options); |
@@ -19,3 +19,3 @@ import hyperx from 'hyperx'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -22,0 +22,0 @@ |
@@ -23,3 +23,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -26,0 +26,0 @@ var _options$translate = options.translate; |
@@ -29,3 +29,3 @@ import get from 'lodash/fp/get'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -32,0 +32,0 @@ var skin = options.skin; |
@@ -15,3 +15,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -18,0 +18,0 @@ var Picture = createPicture(treant, options); |
@@ -19,3 +19,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -22,0 +22,0 @@ var _options$translate = options.translate; |
@@ -26,3 +26,3 @@ import set from 'lodash/fp/set'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -29,0 +29,0 @@ var ModuleBubble = createModuleBubble(treant, options); |
@@ -24,3 +24,3 @@ import get from 'lodash/fp/get'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -27,0 +27,0 @@ var VideoIframe = createVideoIframe(treant, options); |
@@ -17,3 +17,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -20,0 +20,0 @@ var ScopeTabs = createScopeTabs(treant, options); |
@@ -17,3 +17,3 @@ import map from 'lodash/fp/map'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -20,0 +20,0 @@ |
@@ -17,3 +17,3 @@ import identity from 'lodash/fp/identity'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -20,0 +20,0 @@ var _options$translate = options.translate; |
@@ -15,3 +15,3 @@ import identity from 'lodash/fp/identity'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -18,0 +18,0 @@ var _options$translate = options.translate; |
@@ -12,3 +12,3 @@ import { checker, createValidate } from '../../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -15,0 +15,0 @@ |
@@ -19,3 +19,3 @@ import isNil from 'lodash/fp/isNil'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -86,3 +86,3 @@ | ||
}, | ||
['≡'] | ||
['\u2261'] | ||
), h( | ||
@@ -89,0 +89,0 @@ 'ul', |
@@ -25,3 +25,3 @@ import get from 'lodash/fp/get'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -28,0 +28,0 @@ var skin = options.skin; |
@@ -20,3 +20,3 @@ import getOr from 'lodash/fp/getOr'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -23,0 +23,0 @@ var _options$translate = options.translate; |
@@ -14,3 +14,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -17,0 +17,0 @@ var ScopeTabs = function ScopeTabs(props) { |
@@ -45,3 +45,3 @@ import get from 'lodash/fp/get'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -48,0 +48,0 @@ var skin = options.skin; |
@@ -15,3 +15,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -18,0 +18,0 @@ |
@@ -16,3 +16,3 @@ import fill from 'lodash/fp/fill'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -19,0 +19,0 @@ var StarRating = function StarRating(props, children) { |
@@ -15,3 +15,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
var _ref2 = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -18,0 +18,0 @@ var skin = _ref2.skin; |
@@ -21,3 +21,3 @@ import getOr from 'lodash/fp/getOr'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -24,0 +24,0 @@ var _options$translate = options.translate; |
@@ -9,3 +9,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -20,3 +20,3 @@ | ||
{ "data-value": "fr" }, | ||
["Français"] | ||
["Fran\xE7ais"] | ||
), h( | ||
@@ -23,0 +23,0 @@ "li", |
@@ -32,3 +32,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -35,0 +35,0 @@ var Picture = createPicture(treant, options); |
@@ -19,3 +19,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -22,0 +22,0 @@ var VideoIframe = createVideoIframe(treant, options); |
@@ -32,3 +32,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -35,0 +35,0 @@ |
@@ -21,3 +21,3 @@ import get from 'lodash/fp/get'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -24,0 +24,0 @@ var _options$translate = options.translate; |
@@ -20,3 +20,3 @@ import identity from 'lodash/fp/identity'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -23,0 +23,0 @@ var _options$translate = options.translate; |
@@ -19,3 +19,3 @@ import set from 'lodash/fp/set'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -22,0 +22,0 @@ |
@@ -32,3 +32,3 @@ import get from 'lodash/fp/get'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -35,0 +35,0 @@ var _options$translate = options.translate; |
@@ -21,3 +21,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -24,0 +24,0 @@ |
@@ -18,3 +18,3 @@ import noop from 'lodash/fp/noop'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -21,0 +21,0 @@ |
@@ -10,3 +10,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -13,0 +13,0 @@ |
@@ -17,3 +17,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -20,0 +20,0 @@ |
@@ -17,3 +17,3 @@ import get from 'lodash/fp/get'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -20,0 +20,0 @@ var Link = createLink(treant, options); |
@@ -11,5 +11,5 @@ import { checker, createValidate } from '../../util/validation'; | ||
user: checker.shape({ | ||
username: checker.string, | ||
image: checker.string | ||
}), | ||
username: checker.string.optional, | ||
image: checker.string.optional | ||
}).optional, | ||
logo: checker.string.optional, | ||
@@ -21,3 +21,3 @@ logoMobile: checker.string.optional | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -31,5 +31,10 @@ | ||
var href = props.href; | ||
var user = props.user; | ||
var _props$user = props.user; | ||
var user = _props$user === undefined ? {} : _props$user; | ||
var logo = props.logo; | ||
var logoMobile = props.logoMobile; | ||
var _user$username = user.username; | ||
var username = _user$username === undefined ? '' : _user$username; | ||
var _user$image = user.image; | ||
var image = _user$image === undefined ? '' : _user$image; | ||
@@ -48,3 +53,3 @@ | ||
'img', | ||
{ src: user.image }, | ||
{ src: image }, | ||
[] | ||
@@ -55,3 +60,3 @@ )] | ||
{ className: style.username }, | ||
[user.username] | ||
[username] | ||
)] | ||
@@ -58,0 +63,0 @@ ), h( |
@@ -27,3 +27,3 @@ import identity from 'lodash/fp/identity'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -30,0 +30,0 @@ var _options$translate = options.translate; |
@@ -18,3 +18,3 @@ import identity from 'lodash/fp/identity'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -21,0 +21,0 @@ var _options$translate = options.translate; |
@@ -41,3 +41,3 @@ import identity from 'lodash/fp/identity'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -44,0 +44,0 @@ var _options$translate = options.translate; |
@@ -26,3 +26,3 @@ import identity from 'lodash/fp/identity'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -29,0 +29,0 @@ var _options$translate = options.translate; |
@@ -34,3 +34,3 @@ import map from 'lodash/fp/map'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -60,8 +60,2 @@ | ||
var notificationsView = notifications.length > 0 ? h( | ||
'div', | ||
{ className: style.notifications }, | ||
[notificationsList] | ||
) : null; | ||
return h( | ||
@@ -73,3 +67,7 @@ 'div', | ||
{ className: style.wrapper }, | ||
[notificationsView, h( | ||
[h( | ||
'div', | ||
{ className: notifications.length > 0 ? style.notifications : style.empty }, | ||
[notificationsList] | ||
), h( | ||
BrandCreateForm, | ||
@@ -76,0 +74,0 @@ props, |
@@ -27,3 +27,3 @@ import { checker, createValidate } from '../../../util/validation'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -30,0 +30,0 @@ |
@@ -58,3 +58,3 @@ import map from 'lodash/fp/map'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -61,0 +61,0 @@ |
@@ -16,3 +16,3 @@ import identity from 'lodash/fp/identity'; | ||
export default (function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -19,0 +19,0 @@ var _options$translate = options.translate; |
@@ -20,3 +20,3 @@ import getOr from 'lodash/fp/getOr'; | ||
return function () { | ||
var _ref = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -23,0 +23,0 @@ var href = _ref.href; |
@@ -19,3 +19,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -22,0 +22,0 @@ |
@@ -43,3 +43,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -46,0 +46,0 @@ var _options$skin = options.skin; |
@@ -28,3 +28,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -31,0 +31,0 @@ var _options$history = options.history; |
@@ -27,3 +27,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -30,0 +30,0 @@ |
@@ -69,6 +69,6 @@ 'use strict'; | ||
var h = _ref3.h; | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var Picture = function Picture() { | ||
var props = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -75,0 +75,0 @@ if ((0, _isNil2.default)(props.src)) { |
@@ -33,3 +33,3 @@ 'use strict'; | ||
{ className: state }, | ||
['★'] | ||
['\u2605'] | ||
); | ||
@@ -36,0 +36,0 @@ }; |
@@ -20,3 +20,3 @@ 'use strict'; | ||
var primary = function primary(treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return function (props) { | ||
@@ -23,0 +23,0 @@ var skin = options.skin; |
@@ -16,3 +16,3 @@ 'use strict'; | ||
var textInverted = function textInverted(treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return function (props) { | ||
@@ -19,0 +19,0 @@ var skin = options.skin; |
@@ -16,3 +16,3 @@ 'use strict'; | ||
var textNormal = function textNormal(treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return function (props) { | ||
@@ -19,0 +19,0 @@ var skin = options.skin; |
@@ -7,2 +7,6 @@ 'use strict'; | ||
var _link = require('../../atom/link'); | ||
var _link2 = _interopRequireDefault(_link); | ||
var _style = { | ||
@@ -30,6 +34,8 @@ 'wrapper': 'brand-card-create__wrapper', | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
var Link = (0, _link2.default)(treant, options); | ||
var BrandCardCreate = function BrandCardCreate(props, children) { | ||
@@ -59,3 +65,3 @@ var edit = props.edit; | ||
[h( | ||
'a', | ||
Link, | ||
{ href: editHref }, | ||
@@ -62,0 +68,0 @@ [h( |
@@ -42,3 +42,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -45,0 +45,0 @@ |
@@ -61,3 +61,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -64,0 +64,0 @@ |
@@ -51,3 +51,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -54,0 +54,0 @@ |
@@ -37,3 +37,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -40,0 +40,0 @@ |
@@ -50,3 +50,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -53,0 +53,0 @@ |
@@ -66,3 +66,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -69,0 +69,0 @@ var HoverFill = (0, _hoverFill2.default)(treant, options); |
@@ -49,3 +49,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -52,0 +52,0 @@ |
@@ -58,3 +58,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -61,0 +61,0 @@ var _options$translate = options.translate; |
@@ -61,3 +61,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -64,0 +64,0 @@ var skin = options.skin; |
@@ -38,3 +38,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -41,0 +41,0 @@ var Picture = (0, _picture2.default)(treant, options); |
@@ -41,3 +41,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -44,0 +44,0 @@ var _options$translate = options.translate; |
@@ -70,3 +70,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -73,0 +73,0 @@ var ModuleBubble = (0, _moduleBubble2.default)(treant, options); |
@@ -52,3 +52,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -55,0 +55,0 @@ var VideoIframe = (0, _videoIframe2.default)(treant, options); |
@@ -38,3 +38,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -41,0 +41,0 @@ var ScopeTabs = (0, _scopeTabs2.default)(treant, options); |
@@ -40,3 +40,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -43,0 +43,0 @@ |
@@ -38,3 +38,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -41,0 +41,0 @@ var _options$translate = options.translate; |
@@ -58,3 +58,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -61,0 +61,0 @@ var _options$translate = options.translate; |
@@ -29,3 +29,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -32,0 +32,0 @@ |
@@ -47,3 +47,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -114,3 +114,3 @@ | ||
}, | ||
['≡'] | ||
['\u2261'] | ||
), h( | ||
@@ -117,0 +117,0 @@ 'ul', |
@@ -63,3 +63,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -66,0 +66,0 @@ var skin = options.skin; |
@@ -54,3 +54,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -57,0 +57,0 @@ var _options$translate = options.translate; |
@@ -27,3 +27,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -30,0 +30,0 @@ var ScopeTabs = function ScopeTabs(props) { |
@@ -64,3 +64,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -67,0 +67,0 @@ var skin = options.skin; |
@@ -30,3 +30,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -33,0 +33,0 @@ |
@@ -34,3 +34,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -37,0 +37,0 @@ var StarRating = function StarRating(props, children) { |
@@ -35,3 +35,3 @@ 'use strict'; | ||
var _ref2 = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -38,0 +38,0 @@ var skin = _ref2.skin; |
@@ -47,3 +47,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -50,0 +50,0 @@ var _options$translate = options.translate; |
@@ -13,3 +13,3 @@ "use strict"; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -24,3 +24,3 @@ | ||
{ "data-value": "fr" }, | ||
["Français"] | ||
["Fran\xE7ais"] | ||
), h( | ||
@@ -27,0 +27,0 @@ "li", |
@@ -47,3 +47,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -50,0 +50,0 @@ var Picture = (0, _picture2.default)(treant, options); |
@@ -41,3 +41,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -44,0 +44,0 @@ var VideoIframe = (0, _videoIframe2.default)(treant, options); |
@@ -52,3 +52,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -55,0 +55,0 @@ |
@@ -63,3 +63,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -66,0 +66,0 @@ var _options$translate = options.translate; |
@@ -49,3 +49,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -52,0 +52,0 @@ var _options$translate = options.translate; |
@@ -40,3 +40,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -43,0 +43,0 @@ |
@@ -78,3 +78,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -81,0 +81,0 @@ var _options$translate = options.translate; |
@@ -41,3 +41,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -44,0 +44,0 @@ |
@@ -41,3 +41,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -44,0 +44,0 @@ |
@@ -21,3 +21,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -24,0 +24,0 @@ |
@@ -40,3 +40,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -43,0 +43,0 @@ |
@@ -42,3 +42,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -45,0 +45,0 @@ var Link = (0, _link2.default)(treant, options); |
@@ -22,4 +22,4 @@ 'use strict'; | ||
'logo': 'setup-header__logo', | ||
'logoDesktop ': 'setup-header__logoDesktop ', | ||
'logoMobile ': 'setup-header__logoMobile ', | ||
'logoDesktop\xA0': 'setup-header__logoDesktop\xA0', | ||
'logoMobile\xA0': 'setup-header__logoMobile\xA0', | ||
'logoDesktop': 'setup-header__logoDesktop', | ||
@@ -39,5 +39,5 @@ 'logoMobile': 'setup-header__logoMobile' | ||
user: _validation.checker.shape({ | ||
username: _validation.checker.string, | ||
image: _validation.checker.string | ||
}), | ||
username: _validation.checker.string.optional, | ||
image: _validation.checker.string.optional | ||
}).optional, | ||
logo: _validation.checker.string.optional, | ||
@@ -49,3 +49,3 @@ logoMobile: _validation.checker.string.optional | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -59,5 +59,10 @@ | ||
var href = props.href; | ||
var user = props.user; | ||
var _props$user = props.user; | ||
var user = _props$user === undefined ? {} : _props$user; | ||
var logo = props.logo; | ||
var logoMobile = props.logoMobile; | ||
var _user$username = user.username; | ||
var username = _user$username === undefined ? '' : _user$username; | ||
var _user$image = user.image; | ||
var image = _user$image === undefined ? '' : _user$image; | ||
@@ -76,3 +81,3 @@ | ||
'img', | ||
{ src: user.image }, | ||
{ src: image }, | ||
[] | ||
@@ -83,3 +88,3 @@ )] | ||
{ className: _style2.default.username }, | ||
[user.username] | ||
[username] | ||
)] | ||
@@ -86,0 +91,0 @@ ), h( |
@@ -67,3 +67,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -70,0 +70,0 @@ var _options$translate = options.translate; |
@@ -50,3 +50,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -53,0 +53,0 @@ var _options$translate = options.translate; |
@@ -88,3 +88,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -91,0 +91,0 @@ var _options$translate = options.translate; |
@@ -66,3 +66,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -69,0 +69,0 @@ var _options$translate = options.translate; |
@@ -32,2 +32,3 @@ 'use strict'; | ||
'notifications': 'brand-create__notifications', | ||
'empty': 'brand-create__empty', | ||
'notification': 'brand-create__notification' | ||
@@ -66,3 +67,3 @@ }; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -92,8 +93,2 @@ | ||
var notificationsView = notifications.length > 0 ? h( | ||
'div', | ||
{ className: _style2.default.notifications }, | ||
[notificationsList] | ||
) : null; | ||
return h( | ||
@@ -105,3 +100,7 @@ 'div', | ||
{ className: _style2.default.wrapper }, | ||
[notificationsView, h( | ||
[h( | ||
'div', | ||
{ className: notifications.length > 0 ? _style2.default.notifications : _style2.default.empty }, | ||
[notificationsList] | ||
), h( | ||
BrandCreateForm, | ||
@@ -108,0 +107,0 @@ props, |
@@ -56,3 +56,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -59,0 +59,0 @@ |
@@ -92,3 +92,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -95,0 +95,0 @@ |
@@ -31,3 +31,3 @@ 'use strict'; | ||
exports.default = function (treant) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var h = treant.h; | ||
@@ -34,0 +34,0 @@ var _options$translate = options.translate; |
@@ -31,3 +31,3 @@ 'use strict'; | ||
return function () { | ||
var _ref = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -34,0 +34,0 @@ var href = _ref.href; |
{ | ||
"name": "@coorpacademy/components", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "", | ||
@@ -53,5 +53,5 @@ "main": "lib/index.js", | ||
"@coorpacademy/translate": "^3.0.3", | ||
"@coorpacademy/treantjs-engine-react": "^3.4.1", | ||
"@coorpacademy/treantjs-engine-snabbdom": "^3.4.1", | ||
"@coorpacademy/treantjs-engine-virtual-dom": "^3.4.1", | ||
"@coorpacademy/treantjs-engine-react": "^3.4.2", | ||
"@coorpacademy/treantjs-engine-snabbdom": "^3.4.2", | ||
"@coorpacademy/treantjs-engine-virtual-dom": "^3.4.2", | ||
"autoprefixer": "^6.4.1", | ||
@@ -58,0 +58,0 @@ "ava": "^0.16.0", |
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1095574
18210