@applique-ui/icon
Advanced tools
Comparing version 0.0.41 to 0.0.42
@@ -5,7 +5,9 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var React = _interopDefault(require('react')); | ||
var React = require('react'); | ||
var uikitUtils = require('@applique-ui/uikit-utils'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var React__default = /*#__PURE__*/_interopDefaultLegacy(React); | ||
function styleInject(css) { | ||
@@ -43,5 +45,5 @@ if (!css || typeof document === 'undefined') return | ||
function Icon({ name: IconComponent, className, title, spin, fontSize, color, ...props }) { | ||
return (React.createElement("svg", Object.assign({}, props, { className: classnames(className, fontSize, color, { spin }, 'svg'), "aria-hidden": title ? null : true, xmlns: "http://www.w3.org/2000/svg" }), | ||
title ? React.createElement("title", null, title) : null, | ||
typeof IconComponent === 'function' ? (React.createElement(IconComponent, null)) : (React.createElement("use", { xlinkHref: `#uikit-i-${IconComponent}`, "aria-hidden": title ? true : null })))); | ||
return (React__default["default"].createElement("svg", Object.assign({}, props, { className: classnames(className, fontSize, color, { spin }, 'svg'), "aria-hidden": title ? null : true, xmlns: "http://www.w3.org/2000/svg" }), | ||
title ? React__default["default"].createElement("title", null, title) : null, | ||
typeof IconComponent === 'function' ? (React__default["default"].createElement(IconComponent, null)) : (React__default["default"].createElement("use", { xlinkHref: `#uikit-i-${IconComponent}`, "aria-hidden": title ? true : null })))); | ||
} | ||
@@ -63,2 +65,2 @@ Icon.defaultProps = { | ||
exports.default = Icon; | ||
exports["default"] = Icon; |
@@ -55,2 +55,2 @@ import React from 'react'; | ||
export default Icon; | ||
export { Icon as default }; |
{ | ||
"name": "@applique-ui/icon", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"main": "dist/icon.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/icon.esm.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10996
221