@pap-it/badge
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -0,1 +1,2 @@ | ||
import { Size } from "@pap-it/system-utils"; | ||
import "@pap-it/typography/wc"; | ||
@@ -7,2 +8,3 @@ import { Base } from "@pap-it/system-base"; | ||
count: number; | ||
size: Size; | ||
render(): DocumentFragment; | ||
@@ -9,0 +11,0 @@ } |
@@ -15,9 +15,10 @@ import { __decorate } from "tslib"; | ||
this.count = 0; | ||
this.size = "medium"; | ||
} | ||
render() { | ||
return html ` | ||
<pap-box-template part="box" radius="circular"> | ||
<pap-typography variant="C4"><slot>${FormatNumber(this.count)}</slot></pap-typography> | ||
</pap-box-template> | ||
`; | ||
<pap-box-template part="box" radius="circular"> | ||
<pap-typography variant="C4"><slot>${FormatNumber(this.count)}</slot></pap-typography> | ||
</pap-box-template> | ||
`; | ||
} | ||
@@ -29,1 +30,4 @@ } | ||
], Badge.prototype, "count", void 0); | ||
__decorate([ | ||
property({ rerender: false }) | ||
], Badge.prototype, "size", void 0); |
@@ -1,1 +0,1 @@ | ||
export declare 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);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)}"; | ||
export declare 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 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);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)}`; | ||
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)}`; |
{ | ||
"name": "@pap-it/badge", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"scripts": { | ||
@@ -44,5 +44,5 @@ "init": "sh .scripts/init.sh", | ||
"dependencies": { | ||
"@pap-it/system-base": "1.0.9", | ||
"@pap-it/templates-box": "1.0.9", | ||
"@pap-it/typography": "1.0.9", | ||
"@pap-it/system-base": "1.0.10", | ||
"@pap-it/templates-box": "1.0.10", | ||
"@pap-it/typography": "1.0.10", | ||
"@pap-it/system-utils": "1.0.9" | ||
@@ -52,3 +52,3 @@ }, | ||
"eslint": "^8.53.0", | ||
"@pap-it/system-doc": "1.0.13", | ||
"@pap-it/system-doc": "1.0.15", | ||
"esbuild": "^0.17.18", | ||
@@ -55,0 +55,0 @@ "node-html-parser": "^6.1.5", |
@@ -5,4 +5,5 @@ # Badge | ||
Version: 1.0.8 | ||
Version: Version: 1.0.10 | ||
## Development | ||
@@ -9,0 +10,0 @@ |
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
17803
85
13
+ Added@pap-it/system-base@1.0.10(transitive)
+ Added@pap-it/templates-box@1.0.10(transitive)
+ Added@pap-it/typography@1.0.10(transitive)
- Removed@pap-it/system-base@1.0.9(transitive)
- Removed@pap-it/templates-box@1.0.9(transitive)
- Removed@pap-it/typography@1.0.9(transitive)
Updated@pap-it/system-base@1.0.10
Updated@pap-it/templates-box@1.0.10
Updated@pap-it/typography@1.0.10