Comparing version 0.1.49 to 0.1.51
@@ -83,4 +83,6 @@ "use strict"; | ||
React.createElement(web_1.TrayItem, { onClick: doNothing, icon: "frequency", tooltip: "Choose frequencies", stroke: true, primary: true }), | ||
React.createElement(web_1.TrayItem, { onClick: doNothing, text: "YR", tooltip: "WO TRAINING CIRCUIT", inactive: true }), | ||
React.createElement(web_1.TrayItem, { onClick: doNothing, text: "35", tooltip: "JUST-EAT" }), | ||
React.createElement(web_1.TrayItem, { onClick: doNothing, tertiary: true, selected: true, dynamic: true }, "Auto"), | ||
React.createElement(web_1.TrayItem, { onClick: doNothing, dynamic: true }, "Manual"), | ||
React.createElement(web_1.TrayItem, { onClick: doNothing, text: "YR", tooltip: "WO TRAINING CIRCUIT", inactive: true, tertiary: true }), | ||
React.createElement(web_1.TrayItem, { onClick: doNothing, text: "35", tooltip: "JUST-EAT", tertiary: true }), | ||
React.createElement(web_1.TrayItem, { expand: "left" }, "CS"), | ||
@@ -87,0 +89,0 @@ React.createElement(web_1.TrayItem, { icon: "search", input: true }, |
@@ -16,3 +16,3 @@ "use strict"; | ||
TrayItem.prototype.render = function () { | ||
var _a = this.props, style = _a.style, children = _a.children, icon = _a.icon, iconSize = _a.iconSize, text = _a.text, onClick = _a.onClick, tooltip = _a.tooltip, input = _a.input; | ||
var _a = this.props, style = _a.style, children = _a.children, icon = _a.icon, iconSize = _a.iconSize, text = _a.text, onClick = _a.onClick, tooltip = _a.tooltip, input = _a.input, selected = _a.selected; | ||
return (React.createElement("li", { className: this.classNames(), style: style, onClick: onClick, "data-tooltip": !text ? tooltip : undefined, "data-tooltip-pos": "right" }, | ||
@@ -28,14 +28,16 @@ icon !== undefined | ||
TrayItem.prototype.classNames = function () { | ||
var _a = this.props, primary = _a.primary, secondary = _a.secondary, stroke = _a.stroke, onClick = _a.onClick, inactive = _a.inactive, expand = _a.expand, input = _a.input; | ||
return cx(_super.prototype.classNames.call(this), styles.item, (_b = {}, | ||
_b[styles.primary] = primary, | ||
_b[styles.secondary] = secondary, | ||
_b[styles.stroke] = stroke, | ||
_b[styles.onClick] = typeof onClick === 'function', | ||
_b[styles.inactive] = inactive, | ||
_b[styles.expandLeft] = expand === 'left', | ||
_b[styles.expandRight] = expand === 'right', | ||
_b[styles.input] = input, | ||
_b)); | ||
var _b; | ||
return cx(_super.prototype.classNames.call(this), styles.item, (_a = {}, | ||
_a[styles.primary] = this.props.primary, | ||
_a[styles.secondary] = this.props.secondary, | ||
_a[styles.tertiary] = this.props.tertiary, | ||
_a[styles.stroke] = this.props.stroke, | ||
_a[styles.onClick] = typeof this.props.onClick === 'function', | ||
_a[styles.inactive] = this.props.inactive, | ||
_a[styles.expandLeft] = this.props.expand === 'left', | ||
_a[styles.expandRight] = this.props.expand === 'right', | ||
_a[styles.input] = this.props.input, | ||
_a[styles.dynamic] = this.props.dynamic, | ||
_a[styles.selected] = this.props.selected, | ||
_a)); | ||
var _a; | ||
}; | ||
@@ -42,0 +44,0 @@ return TrayItem; |
{ | ||
"name": "cosmo-ui", | ||
"version": "0.1.49", | ||
"version": "0.1.51", | ||
"description": "Common React components", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -14,4 +14,7 @@ import { Breakpoint, RowProps } from '.' | ||
input?: boolean | ||
dynamic?: boolean | ||
selected?: boolean | ||
tertiary?: boolean | ||
} | ||
export type TrayItemPropsKey = keyof TrayItemProps; |
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
575806
2896