@applique-ui/icon
Advanced tools
Comparing version 0.0.35 to 0.0.36
@@ -5,9 +5,7 @@ 'use strict'; | ||
var React = require('react'); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var React = _interopDefault(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) { | ||
@@ -45,5 +43,5 @@ if (!css || typeof document === 'undefined') return | ||
function Icon({ name: IconComponent, className, title, spin, fontSize, color, ...props }) { | ||
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 })))); | ||
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 })))); | ||
} | ||
@@ -65,2 +63,2 @@ Icon.defaultProps = { | ||
exports["default"] = Icon; | ||
exports.default = Icon; |
@@ -55,2 +55,2 @@ import React from 'react'; | ||
export { Icon as default }; | ||
export default Icon; |
{ | ||
"name": "@applique-ui/icon", | ||
"version": "0.0.35", | ||
"version": "0.0.36", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
10858
220