@volvo-cars/react-icons
Advanced tools
Comparing version 0.4.0 to 0.5.0
export type { IconType } from './icons'; | ||
export { Icon } from './icon'; | ||
export type { IconColor, IconProps } from './icon'; | ||
export { IconButton } from './icon-button'; | ||
export type { IconButtonProps, IconButtonColor, IconButtonVariant, } from './icon-button'; | ||
export { getIconSrc, setBaseUrl } from './config'; | ||
export { Wordmark } from './wordmark'; | ||
export type { WordmarkProps } from './wordmark'; |
@@ -1,2 +0,2 @@ | ||
import{a,b as p,c as r,d as s}from"./chunk-PF2M2S37.js";import{forwardRef as n}from"react";import{jsx as i}from"react/jsx-runtime";var c=n(function({alt:t,height:o=8,...e},m){return i("img",{...e,ref:m,className:`wordmark text-primary ${e.className||""}`.trim(),width:o*13,height:o,src:r(),alt:t,style:{"--mask-url":`url('${r()}')`}})});export{s as Icon,c as Wordmark,p as getIconSrc,a as setBaseUrl}; | ||
import{a as I,b,c as u,d as m}from"./chunk-PF2M2S37.js";import{Children as d,cloneElement as B,forwardRef as h}from"react";import{jsx as e}from"react/jsx-runtime";var C=["neutral","destructive"],R=["filled","outlined","clear"],P=h(function({iconName:a,className:o,color:r="neutral",variant:n="filled","aria-label":l,...t},p){let c=R.includes(n)?`icon-button-${n}`:"icon-button-filled",i=C.includes(r)?r:"neutral",y=a.split("-").slice(0,-1).join("-"),s=()=>e(m,{type:`${y}-16`,color:"currentColor"});return t.children&&t.asChild&&d.count(t.children)===1?B(d.only(t.children),{...t,className:`${c} ${o||""}`,"aria-label":l,"data-color":i},e(s,{})):t.href?e("a",{ref:p,...t,className:`${c} ${o||""}`,"aria-label":l,"data-color":i,children:e(s,{})}):e("button",{ref:p,type:"button",...t,className:`${c} ${o||""}`,"aria-label":l,"data-color":i,children:e(s,{})})});import{forwardRef as g}from"react";import{jsx as E}from"react/jsx-runtime";var v=g(function({alt:a,height:o=8,...r},n){return E("img",{...r,ref:n,className:`wordmark text-primary ${r.className||""}`.trim(),width:o*13,height:o,src:u(),alt:a,style:{"--mask-url":`url('${u()}')`}})});export{m as Icon,P as IconButton,v as Wordmark,b as getIconSrc,I as setBaseUrl}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@volvo-cars/react-icons", | ||
"description": "React Icons", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"license": "UNLICENSED", | ||
@@ -46,7 +46,7 @@ "sideEffects": false, | ||
"devDependencies": { | ||
"@types/react": "18.2.12", | ||
"@types/react": "18.2.21", | ||
"@volvo-cars/browserslist-config": "workspace:*", | ||
"react": "18.2.0", | ||
"tsup": "7.2.0", | ||
"typescript": "5.1.6" | ||
"typescript": "5.2.2" | ||
}, | ||
@@ -53,0 +53,0 @@ "browserslist": [ |
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
132187
28
376