@hudoro/badges
Advanced tools
Comparing version 0.1.1-beta.14 to 0.1.1-beta.15
@@ -861,10 +861,8 @@ import M from "react"; | ||
width: V[g], | ||
height: V[g] | ||
height: V[g], | ||
// color: renderColorLeftIcon(rest.disabled ? "disable" : status), | ||
// onClick: onClickLeftIcon, | ||
// style: { | ||
// color: `${renderColorLeftIcon( | ||
// rest.disabled ? "disable" : status | ||
// )}`, | ||
// }, | ||
style: { | ||
color: "inherit" | ||
} | ||
}) : ( | ||
@@ -877,3 +875,6 @@ // <LeftIcon width={iconSizes[size]} height={iconSizes[size]} /> | ||
width: V[g], | ||
height: V[g] | ||
height: V[g], | ||
style: { | ||
color: "inherit" | ||
} | ||
// color: renderColorLeftIcon(rest.disabled ? "disable" : status), | ||
@@ -880,0 +881,0 @@ // onClick: onClickLeftIcon, |
@@ -236,2 +236,2 @@ (function(x,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],_):(x=typeof globalThis<"u"?globalThis:x||self,_(x.Badges={},x.React))})(this,function(x,_){"use strict";var B={exports:{}},A={};/** | ||
} | ||
`,nr="hudoro-badges-styles";(g=>{if(!document.getElementById(nr)){const b=document.createElement("style");b.id=nr,b.textContent=g,document.head.appendChild(b)}})(jr);const N={xs:14,sm:16,md:18,lg:18},Dr=({size:g="md",variant:b="info",text:w,LeftIcon:m,RightIcon:h,border:C,corners:T="rounded"})=>Pr.jsxs("div",{className:Fr(g,b,C,T),children:[m?_.cloneElement(m,{width:N[g],height:N[g]}):null,w,h?_.cloneElement(h,{width:N[g],height:N[g]}):null]}),Fr=(g,b,w,m)=>{let h=["hudoro-badges"];return g&&h.push(`hudoro-badges-${g}`),b&&h.push(`hudoro-badges-${b}`),w&&h.push("hudoro-badges-border"),m==="rounded"?h.push("hudoro-badges-rounded"):h.push("hudoro-badges-circular"),h.join(" ")};x.Badges=Dr,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})}); | ||
`,nr="hudoro-badges-styles";(g=>{if(!document.getElementById(nr)){const b=document.createElement("style");b.id=nr,b.textContent=g,document.head.appendChild(b)}})(jr);const N={xs:14,sm:16,md:18,lg:18},Dr=({size:g="md",variant:b="info",text:w,LeftIcon:m,RightIcon:h,border:C,corners:T="rounded"})=>Pr.jsxs("div",{className:Fr(g,b,C,T),children:[m?_.cloneElement(m,{width:N[g],height:N[g],style:{color:"inherit"}}):null,w,h?_.cloneElement(h,{width:N[g],height:N[g],style:{color:"inherit"}}):null]}),Fr=(g,b,w,m)=>{let h=["hudoro-badges"];return g&&h.push(`hudoro-badges-${g}`),b&&h.push(`hudoro-badges-${b}`),w&&h.push("hudoro-badges-border"),m==="rounded"?h.push("hudoro-badges-rounded"):h.push("hudoro-badges-circular"),h.join(" ")};x.Badges=Dr,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})}); |
{ | ||
"name": "@hudoro/badges", | ||
"version": "0.1.1-beta.14", | ||
"version": "0.1.1-beta.15", | ||
"description": "Badges component for Hudoro UI", | ||
@@ -5,0 +5,0 @@ "author": "Prawito Hudoro", |
54069
1150