@sikt/sds-badge
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1,3 +0,4 @@ | ||
/// <reference types="react" /> | ||
import { HTMLAttributes, ReactNode } from "react"; | ||
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import { HTMLAttributes, ReactNode } from 'react'; | ||
interface BadgeProps extends HTMLAttributes<HTMLSpanElement> { | ||
@@ -10,4 +11,4 @@ className?: string; | ||
} | ||
declare const Badge: ({ variant, visibility, className, children, icon, ...rest }: BadgeProps) => import("react/jsx-runtime").JSX.Element; | ||
export type { BadgeProps }; | ||
export { Badge }; | ||
declare const Badge: ({ variant, visibility, className, children, icon, ...rest }: BadgeProps) => react_jsx_runtime.JSX.Element; | ||
export { Badge, type BadgeProps }; |
@@ -1,2 +0,1 @@ | ||
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 | ||
"use strict";var s=require("clsx"),e=require("react/jsx-runtime");function a(s){return s&&s.__esModule?s:{default:s}}var i=a(s);exports.Badge=({variant:s="primary",visibility:a="subtle",className:r,children:c,icon:d,...t})=>e.jsxs("span",{className:i.default("sds-badge","sds-badge--".concat(s),"sds-badge--visibility-".concat(a),r),...t,children:[d&&e.jsx("span",{className:"sds-badge__icon",children:d}),c]});//# sourceMappingURL=index.js.map |
{ | ||
"name": "@sikt/sds-badge", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"license": "UNLICENSED", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/index.js", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"style": "dist/index.css", | ||
"files": [ | ||
"dist" | ||
"CHANGELOG.md", | ||
"dist", | ||
"README.md" | ||
], | ||
"scripts": { | ||
"build": "rollup -c ../../rollup.config.mjs" | ||
"build": "tsup" | ||
}, | ||
@@ -15,0 +17,0 @@ "repository": { |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
60
12803
11
2