@purpurds/counter-badge 4.4.0 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(r){(function(){var a={}.hasOwnProperty;function n(){for(var t="",e=0;e<arguments.length;e++){var s=arguments[e];s&&(t=o(t,u(s)))}return t}function u(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var s in t)a.call(t,s)&&t[s]&&(e=o(e,s));return e}function o(t,e){return e?t?t+" "+e:t+e:t}r.exports?(n.default=n,r.exports=n):window.classNames=n})()})(c);var d=c.exports;const m=l(d),y={"purpur-counter-badge":"_purpur-counter-
|
|
5
|
+
*/(function(r){(function(){var a={}.hasOwnProperty;function n(){for(var t="",e=0;e<arguments.length;e++){var s=arguments[e];s&&(t=o(t,u(s)))}return t}function u(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var s in t)a.call(t,s)&&t[s]&&(e=o(e,s));return e}function o(t,e){return e?t?t+" "+e:t+e:t}r.exports?(n.default=n,r.exports=n):window.classNames=n})()})(c);var d=c.exports;const m=l(d),y={"purpur-counter-badge":"_purpur-counter-badge_1t6a6_1"},b="purpur-counter-badge",i=f.forwardRef(({["data-testid"]:r,value:a,className:n,...u},o)=>{const t=m([n,y[b]]);return p.jsx("span",{...u,className:t,"data-testid":r,role:"status",ref:o,children:a})});i.displayName="CounterBadge";exports.CounterBadge=i;
|
|
6
6
|
//# sourceMappingURL=counter-badge.cjs.js.map
|
package/dist/counter-badge.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
3
|
function f(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
5
|
}
|
|
@@ -41,11 +41,11 @@ var c = { exports: {} };
|
|
|
41
41
|
})(c);
|
|
42
42
|
var l = c.exports;
|
|
43
43
|
const d = /* @__PURE__ */ f(l), m = {
|
|
44
|
-
"purpur-counter-badge": "_purpur-counter-
|
|
45
|
-
}, y = "purpur-counter-badge", b =
|
|
44
|
+
"purpur-counter-badge": "_purpur-counter-badge_1t6a6_1"
|
|
45
|
+
}, y = "purpur-counter-badge", b = i(
|
|
46
46
|
({ ["data-testid"]: e, value: a, className: n, ...u }, o) => {
|
|
47
47
|
const t = d([n, m[y]]);
|
|
48
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ p("span", { ...u, className: t, "data-testid": e, role: "status", ref: o, children: a });
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
b.displayName = "CounterBadge";
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._purpur-counter-
|
|
1
|
+
._purpur-counter-badge_1t6a6_1{padding:0 var(--purpur-spacing-50);border-radius:var(--purpur-border-radius-md);background:var(--purpur-color-background-status-attention);color:var(--purpur-color-text-status-attention);font-family:var(--purpur-typography-family-default);font-size:var(--purpur-typography-scale-50);font-weight:var(--purpur-typography-weight-medium)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpurds/counter-badge",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "./dist/counter-badge.cjs.js",
|
|
6
6
|
"types": "./dist/counter-badge.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"source": "src/counter-badge.tsx",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"classnames": "~2.5.0",
|
|
18
|
-
"@purpurds/tokens": "4.
|
|
18
|
+
"@purpurds/tokens": "4.5.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@rushstack/eslint-patch": "~1.10.0",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
background: var(--purpur-color-background-status-attention);
|
|
5
5
|
color: var(--purpur-color-text-status-attention);
|
|
6
6
|
|
|
7
|
-
font-family: var(--purpur-typography-family-default)
|
|
7
|
+
font-family: var(--purpur-typography-family-default);
|
|
8
8
|
font-size: var(--purpur-typography-scale-50);
|
|
9
9
|
font-weight: var(--purpur-typography-weight-medium);
|
|
10
10
|
}
|