From e87ce2d51356f1f244891794dd45432fc83b70c9 Mon Sep 17 00:00:00 2001 From: Lee Date: Tue, 12 Apr 2016 03:27:14 +0800 Subject: [PATCH] chore: v0.4.2 --- RELEASE-NOTES.md | 10 ++ dst/react-semantify.js | 304 +++++++++++++++++++++++-------------- dst/react-semantify.min.js | 4 +- package.json | 2 +- 4 files changed, 205 insertions(+), 115 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 9349e9e..61a810f 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,3 +1,13 @@ + +## [0.4.2](https://github.com/jessy1092/react-semantify/compare/v0.4.1...v0.4.2) (2016-04-11) + + +### Bug Fixes + +* Transmit the properties into components: divider, accordion, dimmer, popup, item ([d49066a](https://github.com/jessy1092/react-semantify/commit/d49066a)) + + + ## [0.4.1](//compare/v0.4.0...v0.4.1) (2015-11-22) diff --git a/dst/react-semantify.js b/dst/react-semantify.js index 7041da1..0e93e2b 100644 --- a/dst/react-semantify.js +++ b/dst/react-semantify.js @@ -1,6 +1,6 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Semantify = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var defaultClassName = 'ui accordion'; var Accordion = _react2.default.createClass({ displayName: 'Accordion', + mixins: [_classGenerator2.default], render: function render() { + var _props = this.props; + var children = _props.children; + + var other = _objectWithoutProperties(_props, ['children']); + return _react2.default.createElement( 'div', - { className: this.getClassName(defaultClassName), ref: 'accordion' }, - this.props.children + _extends({}, other, { className: this.getClassName(defaultClassName), ref: 'accordion' }), + children ); }, @@ -2171,12 +2213,12 @@ exports.default = Accordion; },{"../mixins/classGenerator":33}],38:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -2204,6 +2246,7 @@ var defaultClassName = 'ui checkbox'; var Checkbox = _react2.default.createClass({ displayName: 'Checkbox', + mixins: [_classGenerator2.default, _stateSelector2.default], render: function render() { @@ -2252,6 +2295,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -2279,6 +2324,7 @@ var defaultClassName = 'ui dimmer'; var Dimmer = _react2.default.createClass({ displayName: 'Dimmer', + mixins: [_classGenerator2.default, _stateSelector2.default], render: function render() { @@ -2293,12 +2339,12 @@ var Dimmer = _react2.default.createClass({ return _react2.default.createElement( _unit.Unit, - { + _extends({}, other, { className: this.getClassName(defaultClassName), color: 'null', type: 'div', disabled: this.getDisabled(), - active: this.getActive() }, + active: this.getActive() }), this.props.children ); }, @@ -2323,12 +2369,12 @@ exports.default = Dimmer; },{"../commons/unit":16,"../mixins/classGenerator":33,"../mixins/stateSelector":35}],40:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -2356,6 +2402,7 @@ var defaultClassName = 'ui dropdown'; var Dropdown = _react2.default.createClass({ displayName: 'Dropdown', + mixins: [_classGenerator2.default, _stateSelector2.default], render: function render() { @@ -2406,12 +2453,12 @@ exports.default = Dropdown; },{"../commons/unit":16,"../mixins/classGenerator":33,"../mixins/stateSelector":35}],41:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -2439,6 +2486,7 @@ var defaultClassName = 'ui modal'; var Modal = _react2.default.createClass({ displayName: 'Modal', + mixins: [_classGenerator2.default, _stateSelector2.default], render: function render() { @@ -2485,6 +2533,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -2495,17 +2545,25 @@ var _classGenerator2 = _interopRequireDefault(_classGenerator); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var defaultClassName = 'ui popup'; var Popup = _react2.default.createClass({ displayName: 'Popup', + mixins: [_classGenerator2.default], render: function render() { + var _props = this.props; + var children = _props.children; + + var other = _objectWithoutProperties(_props, ['children']); + return _react2.default.createElement( 'div', - { className: this.getClassName(defaultClassName) }, + _extends({}, other, { className: this.getClassName(defaultClassName) }), this.props.children ); } @@ -2516,12 +2574,12 @@ exports.default = Popup; },{"../mixins/classGenerator":33}],43:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -2543,6 +2601,7 @@ var defaultClassName = 'ui progress'; var Progress = _react2.default.createClass({ displayName: 'Progress', + mixins: [_classGenerator2.default, _stateSelector2.default], render: function render() { @@ -2599,12 +2658,12 @@ exports.default = Progress; },{"../mixins/classGenerator":33,"../mixins/stateSelector":35}],44:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -2622,6 +2681,7 @@ var defaultClassName = 'ui rating'; var Rating = _react2.default.createClass({ displayName: 'Rating', + mixins: [_classGenerator2.default], render: function render() { @@ -2663,12 +2723,12 @@ exports.default = Rating; },{"../mixins/classGenerator":33}],45:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -2696,6 +2756,7 @@ var defaultClassName = 'ui search'; var Search = _react2.default.createClass({ displayName: 'Search', + mixins: [_classGenerator2.default, _stateSelector2.default], render: function render() { @@ -2738,12 +2799,12 @@ exports.default = Search; },{"../commons/unit":16,"../mixins/classGenerator":33,"../mixins/stateSelector":35}],46:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -2761,6 +2822,7 @@ var defaultClassName = 'ui shape'; var Shap = _react2.default.createClass({ displayName: 'Shap', + mixins: [_classGenerator2.default], render: function render() { @@ -2796,12 +2858,12 @@ exports.default = Shap; },{"../mixins/classGenerator":33}],47:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -2819,6 +2881,7 @@ var defaultClassName = 'ui sidebar'; var Sidebar = _react2.default.createClass({ displayName: 'Sidebar', + mixins: [_classGenerator2.default], render: function render() { @@ -2854,12 +2917,12 @@ exports.default = Sidebar; },{"../mixins/classGenerator":33}],48:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -2877,6 +2940,7 @@ var defaultClassName = 'ui sticky'; var Sticky = _react2.default.createClass({ displayName: 'Sticky', + mixins: [_classGenerator2.default], render: function render() { @@ -2912,12 +2976,12 @@ exports.default = Sticky; },{"../mixins/classGenerator":33}],49:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -2939,6 +3003,7 @@ var defaultClassName = 'ui tab'; var Tab = _react2.default.createClass({ displayName: 'Tab', + mixins: [_classGenerator2.default, _stateSelector2.default], render: function render() { @@ -2985,12 +3050,12 @@ exports.default = Tab; },{"../mixins/classGenerator":33,"../mixins/stateSelector":35}],50:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -3008,6 +3073,7 @@ var defaultClassName = 'ui ad'; var Ad = _react2.default.createClass({ displayName: 'Ad', + mixins: [_classGenerator2.default], render: function render() { @@ -3029,12 +3095,12 @@ exports.default = Ad; },{"../mixins/classGenerator":33}],51:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -3052,6 +3118,7 @@ var defaultClassName = 'ui card'; var Card = _react2.default.createClass({ displayName: 'Card', + mixins: [_classGenerator2.default], render: function render() { @@ -3073,12 +3140,12 @@ exports.default = Card; },{"../mixins/classGenerator":33}],52:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -3096,6 +3163,7 @@ var defaultClassName = 'comment'; var Comment = _react2.default.createClass({ displayName: 'Comment', + mixins: [_classGenerator2.default], render: function render() { @@ -3117,12 +3185,12 @@ exports.default = Comment; },{"../mixins/classGenerator":33}],53:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -3140,6 +3208,7 @@ var defaultClassName = 'ui comments'; var Comments = _react2.default.createClass({ displayName: 'Comments', + mixins: [_classGenerator2.default], render: function render() { @@ -3161,12 +3230,12 @@ exports.default = Comments; },{"../mixins/classGenerator":33}],54:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -3184,6 +3253,7 @@ var defaultClassName = 'ui feed'; var Feed = _react2.default.createClass({ displayName: 'Feed', + mixins: [_classGenerator2.default], render: function render() { @@ -3205,12 +3275,12 @@ exports.default = Feed; },{"../mixins/classGenerator":33}],55:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -3234,6 +3304,7 @@ var defaultClassName = 'item'; var Item = _react2.default.createClass({ displayName: 'Item', + mixins: [_classGenerator2.default, _typeSelector2.default], render: function render() { @@ -3264,6 +3335,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -3274,11 +3347,14 @@ var _classGenerator2 = _interopRequireDefault(_classGenerator); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var defaultClassName = 'ui items'; var Items = _react2.default.createClass({ displayName: 'Items', + mixins: [_classGenerator2.default], propTypes: { @@ -3287,17 +3363,20 @@ var Items = _react2.default.createClass({ }, render: function render() { - var type = ''; + var _props = this.props; + var type = _props.type; - if (typeof this.props.type != 'undefined') { - if (this.props.type == 'link') { - type = 'link'; + var other = _objectWithoutProperties(_props, ['type']); + + if (typeof type !== 'undefined') { + if (type !== 'link') { + type = ''; } } return _react2.default.createElement( 'div', - { className: this.getClassName(defaultClassName, type) }, + _extends({}, other, { className: this.getClassName(defaultClassName, type) }), this.props.children ); } @@ -3308,12 +3387,12 @@ exports.default = Items; },{"../mixins/classGenerator":33}],57:[function(require,module,exports){ 'use strict'; -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; }; - Object.defineProperty(exports, "__esModule", { value: true }); +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 _react = (window.React); var _react2 = _interopRequireDefault(_react); @@ -3331,6 +3410,7 @@ var defaultClassName = 'ui statistic'; var Statistic = _react2.default.createClass({ displayName: 'Statistic', + mixins: [_classGenerator2.default], render: function render() { diff --git a/dst/react-semantify.min.js b/dst/react-semantify.min.js index e9aca99..ffa3cc9 100644 --- a/dst/react-semantify.min.js +++ b/dst/react-semantify.min.js @@ -1,2 +1,2 @@ -!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Semantify=e()}}(function(){var e;return function t(e,r,a){function s(i,o){if(!r[i]){if(!e[i]){var l="function"==typeof require&&require;if(!o&&l)return l(i,!0);if(n)return n(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[i]={exports:{}};e[i][0].call(u.exports,function(t){var r=e[i][1][t];return s(r?r:t)},u,u.exports,t,e,r,a)}return r[i].exports}for(var n="function"==typeof require&&require,i=0;i=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=window.React,i=a(n),o=window.ReactDOM,l=a(o),c=e("../mixins/classGenerator"),u=a(c),d=e("../mixins/stateSelector"),f=a(d),p=e("../commons/unit"),m="ui dimmer",v=i["default"].createClass({displayName:"Dimmer",mixins:[u["default"],f["default"]],render:function(){var e=this.props;e.className,e.color,e.type,e.disabled,e.active,s(e,["className","color","type","disabled","active"]);return i["default"].createElement(p.Unit,{className:this.getClassName(m),color:"null",type:"div",disabled:this.getDisabled(),active:this.getActive()},this.props.children)},componentDidMount:function(){if("undefined"!=typeof this.props.init){if(this.props.init===!1)return;this.props.init===!0?$(l["default"].findDOMNode(this)).dimmer():$(l["default"].findDOMNode(this)).dimmer(this.props.init)}}});r["default"]=v},{"../commons/unit":16,"../mixins/classGenerator":33,"../mixins/stateSelector":35}],40:[function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){var r={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0}),r.Unit=void 0;var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t