@fremtind/jkl-icons-react
Advanced tools
Comparing version 8.3.3 to 8.4.0
@@ -38,2 +38,3 @@ "use strict"; | ||
const Icon = ({ | ||
as = "div", | ||
bold = false, | ||
@@ -52,4 +53,5 @@ className, | ||
const SmallBoldIconComponent = variants["bold"]["small"]; | ||
const El = as; | ||
return /* @__PURE__ */ import_react.default.createElement( | ||
"div", | ||
El, | ||
{ | ||
@@ -56,0 +58,0 @@ className: (0, import_classnames.default)(className, "jkl-icon", "jkl-icon--".concat(variant), { "jkl-icon--bold": bold }), |
@@ -5,2 +5,3 @@ import cn from "classnames"; | ||
const Icon = ({ | ||
as = "div", | ||
bold = false, | ||
@@ -19,4 +20,5 @@ className, | ||
const SmallBoldIconComponent = variants["bold"]["small"]; | ||
const El = as; | ||
return /* @__PURE__ */ React.createElement( | ||
"div", | ||
El, | ||
{ | ||
@@ -23,0 +25,0 @@ className: cn(className, "jkl-icon", "jkl-icon--".concat(variant), { "jkl-icon--bold": bold }), |
/// <reference types="react" /> | ||
export type IconVariant = "inherit" | "small" | "medium"; | ||
export interface IconProps { | ||
as?: "div" | "span"; | ||
"data-testid"?: string; | ||
@@ -5,0 +6,0 @@ /** |
{ | ||
"name": "@fremtind/jkl-icons-react", | ||
"version": "8.3.3", | ||
"version": "8.4.0", | ||
"publishConfig": { | ||
@@ -59,3 +59,3 @@ "access": "public" | ||
}, | ||
"gitHead": "8742c35cb6a4109c6f64b4e4e4ca4821e7354246" | ||
"gitHead": "e1dd925d38088e9faa5557f61791a52ad5b90679" | ||
} |
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
618240
7730