Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sikt/sds-badge

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sikt/sds-badge - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

CHANGELOG.md

11

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc