UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

32 lines 1.6 kB
import _ from 'lodash'; import React from 'react'; import PropTypes from 'react-peek/prop-types'; import Icon, { propTypes as iconPropTypes } from '../Icon'; import { lucidClassNames } from '../../../util/style-helpers'; import { omitProps } from '../../../util/component-types'; const { bool } = PropTypes; const cx = lucidClassNames.bind('&-SuccessLightIcon'); export const SuccessLightIcon = ({ className, isActive, isClickable, isDisabled, ...passThroughs }) => { return (React.createElement(Icon, Object.assign({}, omitProps(passThroughs, undefined, _.keys(SuccessLightIcon.propTypes), false), _.pick(passThroughs, _.keys(iconPropTypes)), { isClickable: isClickable, isDisabled: isDisabled, className: cx('&', isDisabled && '&-is-disabled', isClickable && '&-is-clickable', isActive && '&-is-active', className) }), React.createElement("circle", { className: cx('&-background'), cx: '8', cy: '8', r: '7.5' }), React.createElement("path", { className: cx('&-check'), d: 'M4.5 8L7 10.5 11.5 6' }))); }; SuccessLightIcon.displayName = 'SuccessLightIcon'; SuccessLightIcon.peek = { description: ` Nothing like a mild success in the morning to get the blood flowing! `, categories: ['visual design', 'icons'], extend: 'Icon', madeFrom: ['Icon'], }; SuccessLightIcon.propTypes = { ...iconPropTypes, isActive: bool ` Controls the active state of the Icon. Basically toggles the same "look n feel" as when you hover. `, }; SuccessLightIcon.defaultProps = Icon.defaultProps; export default SuccessLightIcon; //# sourceMappingURL=SuccessLightIcon.js.map