@purpurds/breadcrumbs 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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as v } from "react/jsx-runtime";
2
- import { Children as w, cloneElement as $, createElement as B } from "react";
2
+ import { Children as w, cloneElement as $, createElement as M } from "react";
3
3
  function E(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
5
  }
@@ -40,7 +40,7 @@ var S = { exports: {} };
40
40
  })();
41
41
  })(S);
42
42
  var L = S.exports;
43
- const M = /* @__PURE__ */ E(L), q = {
43
+ const q = /* @__PURE__ */ E(L), B = {
44
44
  "purpur-icon": "_purpur-icon_8u1lq_1",
45
45
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
46
46
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -54,33 +54,33 @@ const M = /* @__PURE__ */ E(L), q = {
54
54
  keywords: ["home"],
55
55
  category: "buildings"
56
56
  }, j = (e) => /* @__PURE__ */ l(
57
- D,
57
+ R,
58
58
  {
59
59
  ...e,
60
60
  svg: H
61
61
  }
62
62
  );
63
63
  j.displayName = "IconHome";
64
- const T = M.bind(q), N = "purpur-icon", C = "md", P = (e) => e.filter((s) => Object.keys(s).length >= 1).map((s) => `${s.name}="${s.value}"`).join(" "), Z = ({ content: e = "", title: s } = {}) => {
64
+ const P = q.bind(B), N = "purpur-icon", T = "md", V = (e) => e.filter((s) => Object.keys(s).length >= 1).map((s) => `${s.name}="${s.value}"`).join(" "), C = ({ content: e = "", title: s } = {}) => {
65
65
  const n = [
66
66
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
67
67
  { name: "fill", value: "currentColor" },
68
68
  { name: "viewBox", value: "0 0 24 24" },
69
69
  s ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
70
70
  ], a = s ? `<title>${s}</title>` : "";
71
- return `<svg ${P(n)}>${a}${e}</svg>`;
72
- }, V = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), D = ({
71
+ return `<svg ${V(n)}>${a}${e}</svg>`;
72
+ }, D = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), R = ({
73
73
  ["data-testid"]: e,
74
74
  svg: s,
75
75
  allyTitle: n,
76
76
  className: a = "",
77
- size: i = C,
77
+ size: i = T,
78
78
  ...r
79
79
  }) => {
80
- const t = Z({
81
- content: V(s.svg),
80
+ const t = C({
81
+ content: D(s.svg),
82
82
  title: n
83
- }), u = T(a, N, `${N}--${i}`);
83
+ }), u = P(a, N, `${N}--${i}`);
84
84
  return /* @__PURE__ */ l(
85
85
  "span",
86
86
  {
@@ -92,10 +92,10 @@ const T = M.bind(q), N = "purpur-icon", C = "md", P = (e) => e.filter((s) => Obj
92
92
  }
93
93
  );
94
94
  };
95
- function R(e) {
95
+ function Z(e) {
96
96
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
97
97
  }
98
- var k = { exports: {} };
98
+ var I = { exports: {} };
99
99
  /*!
100
100
  Copyright (c) 2018 Jed Watson.
101
101
  Licensed under the MIT License (MIT), see
@@ -130,9 +130,9 @@ var k = { exports: {} };
130
130
  }
131
131
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
132
132
  })();
133
- })(k);
134
- var z = k.exports;
135
- const I = /* @__PURE__ */ R(z), o = {
133
+ })(I);
134
+ var F = I.exports;
135
+ const O = /* @__PURE__ */ Z(F), o = {
136
136
  "purpur-breadcrumbs": "_purpur-breadcrumbs_hceki_1",
137
137
  "purpur-breadcrumbs--default": "_purpur-breadcrumbs--default_hceki_15",
138
138
  "purpur-breadcrumbs--negative": "_purpur-breadcrumbs--negative_hceki_29",
@@ -142,7 +142,7 @@ const I = /* @__PURE__ */ R(z), o = {
142
142
  "purpur-breadcrumb-item--current": "_purpur-breadcrumb-item--current_hceki_64",
143
143
  "purpur-breadcrumb-item--negative": "_purpur-breadcrumb-item--negative_hceki_84",
144
144
  "purpur-breadcrumb-item__separator": "_purpur-breadcrumb-item__separator_hceki_87"
145
- }, F = (e, s, n) => ({
145
+ }, z = (e, s, n) => ({
146
146
  "@type": "ListItem",
147
147
  position: n,
148
148
  name: e,
@@ -162,10 +162,10 @@ const I = /* @__PURE__ */ R(z), o = {
162
162
  meta: i = !0,
163
163
  variant: r = "default"
164
164
  }) => {
165
- const t = I([a, o[f], o[`${f}--${r}`]]), u = w.count(n), p = [], g = w.map(n, (h, O) => {
166
- const x = O + 1, A = u === x, m = h.props.children, c = typeof m == "string" ? null : m.props;
165
+ const t = O([a, o[f], o[`${f}--${r}`]]), u = w.count(n), p = [], g = w.map(n, (h, k) => {
166
+ const x = k + 1, A = u === x, m = h.props.children, c = typeof m == "string" ? null : m.props;
167
167
  let d = null, _ = null;
168
- return typeof m == "string" ? (d = m, _ = h.props.href) : c != null && c.children && typeof (c == null ? void 0 : c.children) == "string" && (d = c.children, _ = c.href), d && _ && p.push(F(d, _, x)), $(h, {
168
+ return typeof m == "string" ? (d = m, _ = h.props.href) : c != null && c.children && typeof (c == null ? void 0 : c.children) == "string" && (d = c.children, _ = c.href), d && _ && p.push(z(d, _, x)), $(h, {
169
169
  current: A,
170
170
  variant: r
171
171
  });
@@ -192,7 +192,7 @@ const I = /* @__PURE__ */ R(z), o = {
192
192
  variant: i = "default",
193
193
  ...r
194
194
  }) => {
195
- const t = I([o[b], o[`${b}--${i}`]], {
195
+ const t = O([o[b], o[`${b}--${i}`]], {
196
196
  [o[`${b}--current`]]: a
197
197
  });
198
198
  return /* @__PURE__ */ v("li", { ...r, className: t, children: [
@@ -202,7 +202,7 @@ const I = /* @__PURE__ */ R(z), o = {
202
202
  "data-testid": s,
203
203
  "aria-current": a ? "page" : void 0
204
204
  };
205
- return e || typeof n == "string" ? B("a", p, n) : $(n, {
205
+ return e || typeof n == "string" ? M("a", p, n) : $(n, {
206
206
  ...p,
207
207
  ...n.props
208
208
  });