@pikas-ui/icons
Advanced tools
Comparing version 2.1.11 to 3.0.0
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _jsxruntime = require('react/jsx-runtime');var _styles = require('@pikas-ui/styles');const p=_styles.styled.call(void 0, "div",{display:"flex",alignItems:"center",justifyContent:"center"}),f= exports.CustomIcon =({children:n,className:r,color:o,colorHex:c,onClick:s,size:t,styles:e})=>_jsxruntime.jsx.call(void 0, p,{onClick:s,className:r,css:{..._optionalChain([e, 'optionalAccess', _ => _.container]),svg:{width:t,height:t,color:(o?`$${o}`:void 0)||c,..._optionalChain([e, 'optionalAccess', _2 => _2.svg])}},children:n});exports.CustomIcon = f; | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _jsxruntime = require('react/jsx-runtime');var _styles = require('@pikas-ui/styles');const p=_styles.styled.call(void 0, "div",{display:"flex",alignItems:"center",justifyContent:"center"}),f= exports.CustomIcon =({children:n,className:r,color:t,colorHex:c,onClick:s,size:o,css:e})=>_jsxruntime.jsx.call(void 0, p,{onClick:s,className:r,css:{..._optionalChain([e, 'optionalAccess', _ => _.container]),svg:{width:o,height:o,color:(t?`$${t}`:void 0)||c,..._optionalChain([e, 'optionalAccess', _2 => _2.svg])}},children:n});exports.CustomIcon = f; | ||
//# sourceMappingURL=CustomIcon.js.map |
export { CustomIcon, CustomIconProps } from './customIcon/CustomIcon.js'; | ||
export { IconByName, IconByNameProps } from './iconByName/IconByName.js'; | ||
export { IconProps, IconStyleType } from './types.js'; | ||
export { IconCSSType, IconProps } from './types.js'; | ||
import 'react'; | ||
import '@pikas-ui/styles'; |
import { CSS, ColorsType } from '@pikas-ui/styles'; | ||
interface IconStyleType { | ||
interface IconCSSType { | ||
container?: CSS; | ||
@@ -10,3 +10,3 @@ svg?: CSS; | ||
size?: number | string; | ||
styles?: IconStyleType; | ||
css?: IconCSSType; | ||
color?: ColorsType; | ||
@@ -17,2 +17,2 @@ colorHex?: string; | ||
export { IconProps, IconStyleType }; | ||
export { IconCSSType, IconProps }; |
{ | ||
"name": "@pikas-ui/icons", | ||
"version": "2.1.11", | ||
"version": "3.0.0", | ||
"private": false, | ||
"description": "", | ||
"description": "Components for creating icons", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
@@ -37,4 +38,6 @@ "exports": { | ||
"@iconify/react": "^3.2.2", | ||
"@pikas-ui/styles": "2.3.11", | ||
"iconify-icon": "1.0.0-beta.3", | ||
"@pikas-ui/styles": "3.0.0", | ||
"iconify-icon": "1.0.0-beta.3" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18.2.0", | ||
@@ -46,9 +49,9 @@ "react-dom": "^18.2.0" | ||
"@pikas-ui/tsconfig": "0.0.0", | ||
"@types/node": "^18.7.11", | ||
"@types/react": "^18.0.17", | ||
"@types/node": "^18.7.14", | ||
"@types/react": "^18.0.18", | ||
"@types/react-dom": "^18.0.6", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.22.0", | ||
"tsup": "^6.2.2", | ||
"typescript": "4.7.4" | ||
"eslint": "^8.23.0", | ||
"tsup": "^6.2.3", | ||
"typescript": "4.8.2" | ||
}, | ||
@@ -55,0 +58,0 @@ "node": "12.20.0 || 14.13.1 || >=16.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
13693
+ Added@pikas-ui/styles@3.0.0(transitive)
- Removedreact@^18.2.0
- Removedreact-dom@^18.2.0
- Removed@pikas-ui/styles@2.3.11(transitive)
Updated@pikas-ui/styles@3.0.0