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

@pap-it/badge

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pap-it/badge - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

12

dist/react/Badge.js

@@ -1,11 +0,1 @@

import { jsx as _jsx } from "react/jsx-runtime";
import React from "react";
import { papHOC } from "@pap-it/system-react";
import "../register.bundle.mjs";
// exporting
export { Badge as BadgeElement } from "../src";
const Component = React.forwardRef((props, forwardref) => {
const { children, ...attributes } = props;
return (_jsx("pap-badge", { ...attributes, ref: forwardref, children: children }));
});
export const Badge = papHOC(Component);
"use strict";import{jsx as a}from"react/jsx-runtime";import p from"react";import{papHOC as m}from"@pap-it/system-react";import"../register.bundle.mjs";export{Badge as BadgeElement}from"../src";const n=p.forwardRef((r,e)=>{const{children:o,...t}=r;return a("pap-badge",{...t,ref:e,children:o})});export const Badge=m(n);

2

dist/react/index.js

@@ -1,1 +0,1 @@

export * from './Badge';
"use strict";export*from"./Badge";

@@ -1,31 +0,5 @@

import { __decorate } from "tslib";
// utils
import { html, property, FormatNumber } from "@pap-it/system-utils";
// atoms
import "@pap-it/typography/wc";
// templates
import { Base } from "@pap-it/system-base";
import "@pap-it/templates-box/wc";
// local
import { style } from './style';
export class Badge extends Base {
constructor() {
super(...arguments);
this.count = 0;
this.size = "medium";
}
render() {
return html `
"use strict";import{__decorate as t}from"tslib";import{html as o,property as r,FormatNumber as e}from"@pap-it/system-utils";import"@pap-it/typography/wc";import{Base as p}from"@pap-it/system-base";import"@pap-it/templates-box/wc";import{style as a}from"./style";export class Badge extends p{constructor(){super(...arguments),this.count=0,this.size="medium"}render(){return o`
<pap-box-template part="box" radius="circular">
<pap-typography variant="C4"><slot>${FormatNumber(this.count)}</slot></pap-typography>
<pap-typography variant="C4"><slot>${e(this.count)}</slot></pap-typography>
</pap-box-template>
`;
}
}
Badge.style = style;
__decorate([
property({ type: Number })
], Badge.prototype, "count", void 0);
__decorate([
property({ rerender: false })
], Badge.prototype, "size", void 0);
`}}Badge.style=a,t([r({type:Number})],Badge.prototype,"count",void 0),t([r({rerender:!1})],Badge.prototype,"size",void 0);

@@ -1,3 +0,1 @@

export * from './component';
export * from './types';
// * <-- This is an asshole
"use strict";export*from"./component";export*from"./types";

@@ -1,9 +0,1 @@

import { Badge } from './component.js';
// Register the element with the browser
const cElements = customElements !== null && customElements !== void 0 ? customElements : window === null || window === void 0 ? void 0 : window.customElements;
if (!cElements) {
throw new Error('Custom Elements not supported');
}
if (!cElements.get('pap-badge')) {
cElements.define('pap-badge', Badge);
}
"use strict";import{Badge as o}from"./component.js";const e=customElements!=null?customElements:window==null?void 0:window.customElements;if(!e)throw new Error("Custom Elements not supported");e.get("pap-badge")||e.define("pap-badge",o);

@@ -1,1 +0,1 @@

export const style = `:host pap-box-template{background-color:var(--pap-color-bg, #FFFFFF);border:1px solid var(--pap-color-border, #C7CBD4);color:var(--pap-color-text, #29292F);height:100%;display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;min-width:2rem;padding:var(--padding-smaller, 4px) var(--padding-small, 8px)}:host([mode=inactive]) pap-box-template{background-color:var(--pap-color-bg-secondary, #F6F7F8);border:1px solid var(--pap-color-border-secondary, #DADDE3);color:var(--pap-color-text-secondary, #6E7087)}:host([size=small]){height:var(--unit-size3, 16px)}:host([size=medium]){height:var(--field-size-smaller, 24px)}:host([size=large]){height:var(--field-size-small, 32px)}`;
"use strict";export const style=":host pap-box-template{background-color:var(--pap-color-bg, #FFFFFF);border:1px solid var(--pap-color-border, #C7CBD4);color:var(--pap-color-text, #29292F);height:100%;display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;min-width:2rem;padding:var(--padding-smaller, 4px) var(--padding-small, 8px)}:host([mode=inactive]) pap-box-template{background-color:var(--pap-color-bg-secondary, #F6F7F8);border:1px solid var(--pap-color-border-secondary, #DADDE3);color:var(--pap-color-text-secondary, #6E7087)}:host([size=small]){height:var(--unit-size3, 16px)}:host([size=medium]){height:var(--field-size-smaller, 24px)}:host([size=large]){height:var(--field-size-small, 32px)}";

@@ -1,1 +0,1 @@

export {};
"use strict";export{};
{
"name": "@pap-it/badge",
"version": "1.0.11",
"version": "1.0.12",
"scripts": {

@@ -29,3 +29,3 @@ "init": "sh .scripts/init.sh",

"./wc": "./dist/register.bundle.mjs",
"./react": "./dist/react/index.ts"
"./react": "./dist/react/index.js"
},

@@ -44,11 +44,11 @@ "author": "Henry Pap",

"dependencies": {
"@pap-it/system-base": "1.0.11",
"@pap-it/templates-box": "1.0.11",
"@pap-it/typography": "1.0.11",
"@pap-it/system-base": "1.0.12",
"@pap-it/templates-box": "1.0.12",
"@pap-it/typography": "1.0.12",
"@pap-it/system-utils": "1.0.10",
"@pap-it/system-react": "0.0.5"
"@pap-it/system-react": "0.0.6"
},
"devDependencies": {
"eslint": "^8.53.0",
"@pap-it/system-doc": "1.0.16",
"@pap-it/system-doc": "1.0.17",
"esbuild": "^0.17.18",

@@ -55,0 +55,0 @@ "node-html-parser": "^6.1.5",

@@ -5,6 +5,7 @@ # Badge

Version: Version: Version: 1.0.11
Version: Version: Version: 1.0.12
## Development

@@ -11,0 +12,0 @@

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