@purpurds/badge 3.1.0 → 3.3.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.es.js CHANGED
@@ -70,7 +70,7 @@ const y = /* @__PURE__ */ m(h), w = {
70
70
  a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
71
71
  ], s = a ? `<title>${a}</title>` : "";
72
72
  return `<svg ${Z(n)}>${s}${e}</svg>`;
73
- }, k = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), j = ({
73
+ }, j = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), k = ({
74
74
  ["data-testid"]: e,
75
75
  svg: a,
76
76
  allyTitle: n,
@@ -79,7 +79,7 @@ const y = /* @__PURE__ */ m(h), w = {
79
79
  ...r
80
80
  }) => {
81
81
  const t = A({
82
- content: k(a.svg),
82
+ content: j(a.svg),
83
83
  title: n
84
84
  }), u = N(s, i, `${i}--${o}`);
85
85
  return /* @__PURE__ */ d(
@@ -93,7 +93,7 @@ const y = /* @__PURE__ */ m(h), w = {
93
93
  }
94
94
  );
95
95
  };
96
- function C(e) {
96
+ function M(e) {
97
97
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
98
98
  }
99
99
  var f = { exports: {} };
@@ -132,8 +132,8 @@ var f = { exports: {} };
132
132
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
133
133
  })();
134
134
  })(f);
135
- var M = f.exports;
136
- const R = /* @__PURE__ */ C(M), p = {
135
+ var R = f.exports;
136
+ const $ = /* @__PURE__ */ M(R), p = {
137
137
  "purpur-badge": "_purpur-badge_yhork_1",
138
138
  "purpur-badge--attention": "_purpur-badge--attention_yhork_13",
139
139
  "purpur-badge--special": "_purpur-badge--special_yhork_17",
@@ -150,7 +150,7 @@ const R = /* @__PURE__ */ C(M), p = {
150
150
  SUCCESS: "success",
151
151
  WARNING: "warning",
152
152
  ERROR: "error"
153
- }, I = Object.values(l), $ = (e) => {
153
+ }, I = Object.values(l), C = (e) => {
154
154
  switch (e) {
155
155
  case l.SUCCESS:
156
156
  return x;
@@ -161,7 +161,7 @@ const R = /* @__PURE__ */ C(M), p = {
161
161
  default:
162
162
  return;
163
163
  }
164
- }, q = ({
164
+ }, T = ({
165
165
  children: e,
166
166
  showIcon: a = !0,
167
167
  variant: n,
@@ -170,15 +170,15 @@ const R = /* @__PURE__ */ C(M), p = {
170
170
  className: r = "",
171
171
  ...t
172
172
  }) => {
173
- const u = $(n), v = R([r, p[c], p[`${c}--${n}`]]);
173
+ const u = C(n), v = $([r, p[c], p[`${c}--${n}`]]);
174
174
  return /* @__PURE__ */ _("span", { "aria-label": o, className: v, "data-testid": s, ...t, children: [
175
- a && u && /* @__PURE__ */ d(j, { "data-testid": `${s}-icon`, allyTitle: o, size: "xs", svg: u }),
175
+ a && u && /* @__PURE__ */ d(k, { "data-testid": `${s}-icon`, allyTitle: o, size: "xs", svg: u }),
176
176
  e
177
177
  ] });
178
178
  };
179
179
  export {
180
180
  l as BADGE_VARIANT,
181
- q as Badge,
181
+ T as Badge,
182
182
  I as badgeVariants
183
183
  };
184
184
  //# sourceMappingURL=badge.es.js.map