react-elegant-ui
Version:
Elegant UI components, made by BEM best practices for react
45 lines (42 loc) • 2.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _exportNames = {
Icon: true
};
exports.Icon = void 0;
var _compose = require("../../../lib/compose");
var _Icon = require("../Icon");
Object.keys(_Icon).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _Icon[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _Icon[key];
}
});
});
var _Icon_glyph_unfoldMore = require("../_glyph/Icon_glyph_unfold-more");
var _Icon_glyph_expandMore = require("../_glyph/Icon_glyph_expand-more");
var _Icon_glyph_close = require("../_glyph/Icon_glyph_close");
var _Icon_glyph_check = require("../_glyph/Icon_glyph_check");
var _Icon_glyph_cancel = require("../_glyph/Icon_glyph_cancel");
var _Icon_glyph_checkThick = require("../_glyph/Icon_glyph_check-thick");
var _Icon_glyph_minusThick = require("../_glyph/Icon_glyph_minus-thick");
var _Icon_size_s = require("../_size/Icon_size_s");
var _Icon_size_m = require("../_size/Icon_size_m");
var _Icon_size_l = require("../_size/Icon_size_l");
var _Icon_size_xl = require("../_size/Icon_size_xl");
var _Icon_size_xs = require("../_size/Icon_size_xs");
// _glyph
// _size
var Icon = exports.Icon = (0, _compose.compose)((0, _compose.composeU)(_Icon_glyph_unfoldMore.withModIconGlyphUnfoldMore, _Icon_glyph_expandMore.withModIconGlyphExpandMore, _Icon_glyph_close.withModIconGlyphClose, _Icon_glyph_check.withModIconGlyphCheck, _Icon_glyph_cancel.withModIconGlyphCancel, _Icon_glyph_checkThick.withModIconGlyphCheckThick, _Icon_glyph_minusThick.withModIconGlyphMinusThick), (0, _compose.composeU)(_Icon_size_s.withModIconSizeS, _Icon_size_m.withModIconSizeM, _Icon_size_l.withModIconSizeL, _Icon_size_xl.withModIconSizeXL, _Icon_size_xs.withModIconSizeXS))(_Icon.Icon);
Icon.defaultProps = {
// Default design require resizeable icon, cuz is not define static sizes,
// instead this just set default size for icon wrapper
scalable: true,
size: 'm'
};