react-elegant-ui
Version:
Elegant UI components, made by BEM best practices for react
23 lines • 1.01 kB
JavaScript
import { Registry } from '../../../lib/di';
import { CheckboxBox } from '../Box/Checkbox-Box';
import { CheckboxControl } from '../Control/Checkbox-Control';
import { CheckboxTick } from '../Tick/Checkbox-Tick';
import { CheckboxLabel } from '../Label/Checkbox-Label';
import { cnCheckbox } from '../Checkbox';
// Build icon
import { compose, composeU } from '../../../lib/compose';
import { Icon as IconBase } from '../../Icon/Icon';
import { withModIconSizeM } from '../../Icon/_size/Icon_size_m';
import { withModIconGlyphCheckThick } from '../../Icon/_glyph/Icon_glyph_check-thick';
import { withModIconGlyphMinusThick } from '../../Icon/_glyph/Icon_glyph_minus-thick';
var Icon = compose(composeU(withModIconGlyphCheckThick, withModIconGlyphMinusThick), withModIconSizeM)(IconBase);
export var regObjects = {
Box: CheckboxBox,
Control: CheckboxControl,
Tick: CheckboxTick,
Label: CheckboxLabel,
Icon: Icon
};
export var CheckboxDesktopRegistry = new Registry({
id: cnCheckbox()
}).fill(regObjects);