@purpurds/field-error-text 3.2.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.
@@ -39,7 +39,7 @@ var f = { exports: {} };
39
39
  })();
40
40
  })(f);
41
41
  var m = f.exports;
42
- const x = /* @__PURE__ */ _(m), g = {
42
+ const g = /* @__PURE__ */ _(m), x = {
43
43
  "purpur-icon": "_purpur-icon_8u1lq_1",
44
44
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
45
45
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -52,7 +52,7 @@ const x = /* @__PURE__ */ _(m), g = {
52
52
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
53
53
  keywords: ["error-filled"],
54
54
  category: "status"
55
- }, h = x.bind(g), l = "purpur-icon", w = "md", b = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), j = ({ content: t = "", title: i } = {}) => {
55
+ }, h = g.bind(x), l = "purpur-icon", w = "md", b = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), S = ({ content: t = "", title: i } = {}) => {
56
56
  const n = [
57
57
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
58
58
  { name: "fill", value: "currentColor" },
@@ -60,7 +60,7 @@ const x = /* @__PURE__ */ _(m), g = {
60
60
  i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
61
61
  ], u = i ? `<title>${i}</title>` : "";
62
62
  return `<svg ${b(n)}>${u}${t}</svg>`;
63
- }, S = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), O = ({
63
+ }, j = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), O = ({
64
64
  ["data-testid"]: t,
65
65
  svg: i,
66
66
  allyTitle: n,
@@ -68,8 +68,8 @@ const x = /* @__PURE__ */ _(m), g = {
68
68
  size: o = w,
69
69
  ...r
70
70
  }) => {
71
- const e = j({
72
- content: S(i.svg),
71
+ const e = S({
72
+ content: j(i.svg),
73
73
  title: n
74
74
  }), s = h(u, l, `${l}--${o}`);
75
75
  return /* @__PURE__ */ c(
@@ -126,7 +126,7 @@ var N = d.exports;
126
126
  const q = /* @__PURE__ */ $(N), a = {
127
127
  "purpur-field-error-text": "_purpur-field-error-text_1h4gy_1",
128
128
  "purpur-field-error-text__icon": "_purpur-field-error-text__icon_1h4gy_12"
129
- }, p = "purpur-field-error-text", C = ({
129
+ }, p = "purpur-field-error-text", P = ({
130
130
  ["data-testid"]: t,
131
131
  children: i,
132
132
  className: n,
@@ -147,6 +147,6 @@ const q = /* @__PURE__ */ $(N), a = {
147
147
  }
148
148
  );
149
149
  export {
150
- C as FieldErrorText
150
+ P as FieldErrorText
151
151
  };
152
152
  //# sourceMappingURL=field-error-text.es.js.map