@purpurds/breadcrumbs 5.20.0 → 5.21.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,6 +1,6 @@
1
- import { jsx as o, jsxs as x, Fragment as M } from "react/jsx-runtime";
2
- import { Children as w, cloneElement as N, createElement as B } from "react";
3
- function H(e) {
1
+ import { jsx as o, jsxs as x, Fragment as B } from "react/jsx-runtime";
2
+ import { Children as w, cloneElement as N, createElement as H } from "react";
3
+ function A(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
5
  }
6
6
  var S = { exports: {} };
@@ -39,8 +39,8 @@ var S = { exports: {} };
39
39
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
40
40
  })();
41
41
  })(S);
42
- var A = S.exports;
43
- const P = /* @__PURE__ */ H(A), E = {
42
+ var P = S.exports;
43
+ const E = /* @__PURE__ */ A(P), Z = {
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",
@@ -48,39 +48,39 @@ const P = /* @__PURE__ */ H(A), E = {
48
48
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
49
49
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
50
50
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
51
- }, Z = {
51
+ }, C = {
52
52
  name: "home",
53
53
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M11.38 1.848a.9.9 0 0 1 1.24 0l8.69 8.276c1.242 1.183.405 3.276-1.31 3.276h-.6v8.1a.9.9 0 0 1-.9.9h-13a.9.9 0 0 1-.9-.9v-8.1H4c-1.715 0-2.552-2.093-1.31-3.276l8.69-8.276ZM12 3.743l-8.069 7.685c-.026.024-.03.04-.032.049a.11.11 0 0 0 .008.06.11.11 0 0 0 .036.049c.007.005.021.014.057.014h1.5a.9.9 0 0 1 .9.9v8.1h11.2v-8.1a.9.9 0 0 1 .9-.9H20c.036 0 .05-.009.057-.014a.111.111 0 0 0 .036-.049.111.111 0 0 0 .008-.06c-.002-.008-.006-.025-.032-.05L12 3.744ZM10.6 14a.9.9 0 0 1 .9-.9H15a.9.9 0 0 1 .9.9v4a.9.9 0 0 1-.9.9h-3.5a.9.9 0 0 1-.9-.9v-4Zm1.8.9v2.2h1.7v-2.2h-1.7Z" clip-rule="evenodd"/></svg>',
54
54
  keywords: ["home"],
55
55
  category: "buildings"
56
56
  }, j = (e) => /* @__PURE__ */ o(
57
- J,
57
+ I,
58
58
  {
59
59
  ...e,
60
- svg: Z
60
+ svg: C
61
61
  }
62
62
  );
63
63
  j.displayName = "IconHome";
64
- const C = P.bind(E), $ = "purpur-icon", T = "md", k = (e) => e.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), z = ({ content: e = "", title: u } = {}) => {
64
+ const T = E.bind(Z), $ = "purpur-icon", k = "md", z = (e) => e.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), F = ({ content: e = "", title: u } = {}) => {
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
  u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
70
70
  ], a = u ? `<title>${u}</title>` : "";
71
- return `<svg ${k(n)}>${a}${e}</svg>`;
72
- }, F = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), J = ({
71
+ return `<svg ${z(n)}>${a}${e}</svg>`;
72
+ }, J = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), I = ({
73
73
  ["data-testid"]: e,
74
74
  svg: u,
75
75
  allyTitle: n,
76
76
  className: a,
77
- size: i = T,
77
+ size: i = k,
78
78
  ...r
79
79
  }) => {
80
- const t = z({
81
- content: F(u.svg),
80
+ const t = F({
81
+ content: J(u.svg),
82
82
  title: n
83
- }), s = C(a, $, `${$}--${i}`);
83
+ }), s = T(a, $, `${$}--${i}`);
84
84
  return /* @__PURE__ */ o(
85
85
  "span",
86
86
  {
@@ -92,10 +92,11 @@ const C = P.bind(E), $ = "purpur-icon", T = "md", k = (e) => e.filter((u) => Obj
92
92
  }
93
93
  );
94
94
  };
95
+ I.displayName = "Icon";
95
96
  function D(e) {
96
97
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
97
98
  }
98
- var I = { exports: {} };
99
+ var O = { exports: {} };
99
100
  /*!
100
101
  Copyright (c) 2018 Jed Watson.
101
102
  Licensed under the MIT License (MIT), see
@@ -130,9 +131,9 @@ var I = { exports: {} };
130
131
  }
131
132
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
132
133
  })();
133
- })(I);
134
- var U = I.exports;
135
- const O = /* @__PURE__ */ D(U), p = {
134
+ })(O);
135
+ var U = O.exports;
136
+ const L = /* @__PURE__ */ D(U), p = {
136
137
  "purpur-breadcrumbs": "_purpur-breadcrumbs_3f81v_1",
137
138
  "purpur-breadcrumbs--default": "_purpur-breadcrumbs--default_3f81v_21",
138
139
  "purpur-breadcrumbs--negative": "_purpur-breadcrumbs--negative_3f81v_35",
@@ -159,18 +160,18 @@ const O = /* @__PURE__ */ D(U), p = {
159
160
  meta: i = !0,
160
161
  negative: r = !1
161
162
  }) => {
162
- const t = O([
163
+ const t = L([
163
164
  a,
164
165
  p[v],
165
166
  p[`${v}--${r ? "negative" : "default"}`]
166
- ]), s = w.count(n), l = [], m = w.map(n, (d, L) => {
167
- const y = L + 1, q = s === y, f = d.props.children, c = typeof f == "string" ? null : f.props;
167
+ ]), s = w.count(n), l = [], m = w.map(n, (d, q) => {
168
+ const y = q + 1, M = s === y, f = d.props.children, c = typeof f == "string" ? null : f.props;
168
169
  let _ = null, b = null;
169
170
  return typeof f == "string" ? (_ = f, b = d.props.href) : c != null && c.children && typeof (c == null ? void 0 : c.children) == "string" && (_ = c.children, b = c.href), _ && b && l.push(V(_, b, y)), N(d, {
170
- current: q,
171
+ current: M,
171
172
  negative: r,
172
173
  ...y === 1 && {
173
- children: /* @__PURE__ */ x(M, { children: [
174
+ children: /* @__PURE__ */ x(B, { children: [
174
175
  /* @__PURE__ */ o("span", { className: p[`${v}__home`], "aria-hidden": "true", children: /* @__PURE__ */ o(j, { size: "xs" }) }),
175
176
  d.props.children
176
177
  ] })
@@ -197,7 +198,7 @@ const O = /* @__PURE__ */ D(U), p = {
197
198
  onClick: r,
198
199
  ...t
199
200
  }) => {
200
- const s = O(
201
+ const s = L(
201
202
  [p[h], p[`${h}--${i ? "negative" : "default"}`]],
202
203
  {
203
204
  [p[`${h}--current`]]: a
@@ -211,7 +212,7 @@ const O = /* @__PURE__ */ D(U), p = {
211
212
  "aria-current": a ? "page" : void 0,
212
213
  onClick: r
213
214
  };
214
- return e || typeof n == "string" ? B("a", m, n) : N(n, {
215
+ return e || typeof n == "string" ? H("a", m, n) : N(n, {
215
216
  ...m,
216
217
  ...n.props
217
218
  });