@coorpacademy/components
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "@coorpacademy/components", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Component library for web front ends", | ||
@@ -5,0 +5,0 @@ "main": "lib/components/index.js", |
@@ -1,2 +0,1 @@ | ||
import noop from 'lodash/fp/noop'; | ||
import { checker, createValidate } from '../../util/validation'; | ||
@@ -12,4 +11,2 @@ import {createNavigationHandler} from '../../util/navigation'; | ||
const {h} = treant; | ||
const {dispatch = noop} = options; | ||
const onClick = createNavigationHandler(options); | ||
@@ -16,0 +13,0 @@ |
@@ -26,3 +26,3 @@ import getOr from 'lodash/fp/getOr'; | ||
const {h} = treant; | ||
const {title, product, onClick, selected, levels} = props; | ||
const {title, product, onClick, selected = 0, levels} = props; | ||
@@ -29,0 +29,0 @@ return ( |
@@ -16,3 +16,3 @@ import { checker, createValidate } from '../../util/validation'; | ||
const {h} = treant; | ||
const {onClick, selected, levels = []} = props; | ||
const {onClick, selected = 0, levels = []} = props; | ||
@@ -19,0 +19,0 @@ return ( |
@@ -17,5 +17,5 @@ import get from 'lodash/fp/get'; | ||
const color = { | ||
plain: get('theme.lock', skin), | ||
plain: get('common.lock', skin), | ||
default: get('texts.inverted', skin), | ||
disabled: get('theme.common.disabled', skin) | ||
disabled: get('common.disabled', skin) | ||
}; | ||
@@ -36,3 +36,3 @@ | ||
disabled: { | ||
color: get('theme.common.disabled', skin), | ||
color: get('common.disabled', skin), | ||
backgroundColor: get('backgrounds.input', skin) | ||
@@ -39,0 +39,0 @@ }, |
@@ -21,3 +21,3 @@ import get from 'lodash/fp/get'; | ||
const bgColor = getOr('transparent', 'theme.background', skin); | ||
const bgColor = getOr('transparent', 'common.background', skin); | ||
@@ -24,0 +24,0 @@ const DisciplineCards = (props, children) => { |
@@ -8,2 +8,5 @@ import curry from 'lodash/fp/curry'; | ||
export const createNavigationHandler = curry(({dispatch, history}, event) => { | ||
if (!dispatch || !history) | ||
return; | ||
if (event.defaultPrevented) | ||
@@ -10,0 +13,0 @@ return; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
566972