@sikt/sds-badge
Advanced tools
Comparing version 1.0.2 to 2.0.0
@@ -6,8 +6,8 @@ /// <reference types="react" /> | ||
children: ReactNode; | ||
badgeType?: "action" | "success" | "danger" | "warning" | "info"; | ||
visibility?: "high" | "medium" | "low"; | ||
variant?: "primary" | "success" | "critical" | "warning" | "info"; | ||
visibility?: "strong" | "subtle"; | ||
icon?: ReactNode; | ||
} | ||
declare const Badge: ({ badgeType, visibility, className, children, icon, ...rest }: BadgeProps) => import("react/jsx-runtime").JSX.Element; | ||
declare const Badge: ({ variant, visibility, className, children, icon, ...rest }: BadgeProps) => import("react/jsx-runtime").JSX.Element; | ||
export type { BadgeProps }; | ||
export { Badge }; |
@@ -1,2 +0,2 @@ | ||
"use strict";var s=require("react/jsx-runtime"),e=require("clsx");exports.Badge=({badgeType:i="action",visibility:a="medium",className:d,children:c,icon:r,...l})=>s.jsxs("span",{className:e("sds-badge",`sds-badge--${i}`,`sds-badge--visibility-${a}`,d),...l,children:[r&&s.jsx("span",{className:"sds-badge__icon",children:r}),c]}); | ||
"use strict";var s=require("react/jsx-runtime"),e=require("clsx");exports.Badge=({variant:i="primary",visibility:a="subtle",className:r,children:d,icon:c,...l})=>s.jsxs("span",{className:e("sds-badge",`sds-badge--${i}`,`sds-badge--visibility-${a}`,r),...l,children:[c&&s.jsx("span",{className:"sds-badge__icon",children:c}),d]}); | ||
//# sourceMappingURL=index.js.map |
@@ -6,8 +6,8 @@ /// <reference types="react" /> | ||
children: ReactNode; | ||
badgeType?: "action" | "success" | "danger" | "warning" | "info"; | ||
visibility?: "high" | "medium" | "low"; | ||
variant?: "primary" | "success" | "critical" | "warning" | "info"; | ||
visibility?: "strong" | "subtle"; | ||
icon?: ReactNode; | ||
} | ||
declare const Badge: ({ badgeType, visibility, className, children, icon, ...rest }: BadgeProps) => import("react/jsx-runtime").JSX.Element; | ||
declare const Badge: ({ variant, visibility, className, children, icon, ...rest }: BadgeProps) => import("react/jsx-runtime").JSX.Element; | ||
export type { BadgeProps }; | ||
export { Badge }; |
@@ -1,2 +0,2 @@ | ||
import{jsxs as s,jsx as i}from"react/jsx-runtime";import e from"clsx";const a=({badgeType:a="action",visibility:d="medium",className:c,children:m,icon:n,...r})=>s("span",{className:e("sds-badge",`sds-badge--${a}`,`sds-badge--visibility-${d}`,c),...r,children:[n&&i("span",{className:"sds-badge__icon",children:n}),m]});export{a as Badge}; | ||
import{jsxs as s,jsx as i}from"react/jsx-runtime";import a from"clsx";const e=({variant:e="primary",visibility:r="subtle",className:c,children:d,icon:l,...n})=>s("span",{className:a("sds-badge",`sds-badge--${e}`,`sds-badge--visibility-${r}`,c),...n,children:[l&&i("span",{className:"sds-badge__icon",children:l}),d]});export{e as Badge}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@sikt/sds-badge", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"license": "UNLICENSED", | ||
@@ -20,3 +20,4 @@ "main": "dist/cjs/index.js", | ||
"dependencies": { | ||
"@sikt/sds-core": "^1.0.1" | ||
"@sikt/sds-core": "^3.0.0", | ||
"@sikt/sds-tokens": "^1.0.0" | ||
}, | ||
@@ -23,0 +24,0 @@ "peerDependencies": { |
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
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
13465
5
44
+ Added@sikt/sds-tokens@^1.0.0
+ Added@sikt/sds-core@3.1.0(transitive)
+ Added@sikt/sds-tokens@1.0.12.1.0(transitive)
- Removed@sikt/sds-core@1.0.1(transitive)
- Removedclsx@1.2.1(transitive)
Updated@sikt/sds-core@^3.0.0