@purpurds/badge 4.3.0 → 4.4.0

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.
package/dist/badge.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import React, { ReactNode } from "react";
1
+ import { default as React, ReactNode } from 'react';
2
+
2
3
  export declare const BADGE_VARIANT: {
3
4
  readonly ATTENTION: "attention";
4
5
  readonly SPECIAL: "special";
package/dist/badge.es.js CHANGED
@@ -85,7 +85,7 @@ const w = /* @__PURE__ */ m(_), y = {
85
85
  s ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
86
86
  ], u = s ? `<title>${s}</title>` : "";
87
87
  return `<svg ${k(a)}>${u}${e}</svg>`;
88
- }, R = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), E = ({
88
+ }, E = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), I = ({
89
89
  ["data-testid"]: e,
90
90
  svg: s,
91
91
  allyTitle: a,
@@ -94,7 +94,7 @@ const w = /* @__PURE__ */ m(_), y = {
94
94
  ...r
95
95
  }) => {
96
96
  const t = C({
97
- content: R(s.svg),
97
+ content: E(s.svg),
98
98
  title: a
99
99
  }), n = M(u, c, `${c}--${l}`);
100
100
  return /* @__PURE__ */ d(
@@ -108,7 +108,7 @@ const w = /* @__PURE__ */ m(_), y = {
108
108
  }
109
109
  );
110
110
  };
111
- function I(e) {
111
+ function R(e) {
112
112
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
113
113
  }
114
114
  var v = { exports: {} };
@@ -148,7 +148,7 @@ var v = { exports: {} };
148
148
  })();
149
149
  })(v);
150
150
  var T = v.exports;
151
- const j = /* @__PURE__ */ I(T), i = {
151
+ const j = /* @__PURE__ */ R(T), i = {
152
152
  "purpur-badge": "_purpur-badge_yhork_1",
153
153
  "purpur-badge--attention": "_purpur-badge--attention_yhork_13",
154
154
  "purpur-badge--special": "_purpur-badge--special_yhork_17",
@@ -194,7 +194,7 @@ const j = /* @__PURE__ */ I(T), i = {
194
194
  }) => {
195
195
  const n = V(a), f = j([r, i[p], i[`${p}--${a}`]]);
196
196
  return /* @__PURE__ */ h("span", { "aria-label": l, className: f, "data-testid": u, ...t, children: [
197
- s && n && /* @__PURE__ */ d(E, { "data-testid": `${u}-icon`, allyTitle: l, size: "xs", svg: n }),
197
+ s && n && /* @__PURE__ */ d(I, { "data-testid": `${u}-icon`, allyTitle: l, size: "xs", svg: n }),
198
198
  e
199
199
  ] });
200
200
  };