@purpurds/breadcrumbs 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/LICENSE.txt +1 -1
- package/dist/breadcrumbs.cjs.js +3 -3
- package/dist/breadcrumbs.cjs.js.map +1 -1
- package/dist/breadcrumbs.d.ts +2 -1
- package/dist/breadcrumbs.es.js +16 -16
- package/dist/breadcrumbs.es.js.map +1 -1
- package/package.json +10 -10
package/dist/breadcrumbs.d.ts
CHANGED
package/dist/breadcrumbs.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as p, jsxs as x, Fragment as
|
|
1
|
+
import { jsx as p, jsxs as x, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import { Children as w, cloneElement as $, createElement as L } from "react";
|
|
3
3
|
function q(t) {
|
|
4
4
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -40,7 +40,7 @@ var S = { exports: {} };
|
|
|
40
40
|
})();
|
|
41
41
|
})(S);
|
|
42
42
|
var B = S.exports;
|
|
43
|
-
const H = /* @__PURE__ */ q(B),
|
|
43
|
+
const H = /* @__PURE__ */ q(B), T = {
|
|
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,20 +48,20 @@ const H = /* @__PURE__ */ q(B), P = {
|
|
|
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
|
-
},
|
|
51
|
+
}, P = {
|
|
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 = (t) => /* @__PURE__ */ p(
|
|
57
|
-
|
|
57
|
+
z,
|
|
58
58
|
{
|
|
59
59
|
...t,
|
|
60
|
-
svg:
|
|
60
|
+
svg: P
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
63
|
j.displayName = "IconHome";
|
|
64
|
-
const V = H.bind(
|
|
64
|
+
const V = H.bind(T), N = "purpur-icon", C = "md", D = (t) => t.filter((s) => Object.keys(s).length >= 1).map((s) => `${s.name}="${s.value}"`).join(" "), R = ({ content: t = "", title: s } = {}) => {
|
|
65
65
|
const n = [
|
|
66
66
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
67
67
|
{ name: "fill", value: "currentColor" },
|
|
@@ -69,7 +69,7 @@ const V = H.bind(P), N = "purpur-icon", C = "md", D = (t) => t.filter((s) => Obj
|
|
|
69
69
|
s ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
70
70
|
], a = s ? `<title>${s}</title>` : "";
|
|
71
71
|
return `<svg ${D(n)}>${a}${t}</svg>`;
|
|
72
|
-
},
|
|
72
|
+
}, Z = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), z = ({
|
|
73
73
|
["data-testid"]: t,
|
|
74
74
|
svg: s,
|
|
75
75
|
allyTitle: n,
|
|
@@ -77,8 +77,8 @@ const V = H.bind(P), N = "purpur-icon", C = "md", D = (t) => t.filter((s) => Obj
|
|
|
77
77
|
size: i = C,
|
|
78
78
|
...r
|
|
79
79
|
}) => {
|
|
80
|
-
const e =
|
|
81
|
-
content:
|
|
80
|
+
const e = R({
|
|
81
|
+
content: Z(s.svg),
|
|
82
82
|
title: n
|
|
83
83
|
}), u = V(a, N, `${N}--${i}`);
|
|
84
84
|
return /* @__PURE__ */ p(
|
|
@@ -92,7 +92,7 @@ const V = H.bind(P), N = "purpur-icon", C = "md", D = (t) => t.filter((s) => Obj
|
|
|
92
92
|
}
|
|
93
93
|
);
|
|
94
94
|
};
|
|
95
|
-
function
|
|
95
|
+
function F(t) {
|
|
96
96
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
97
97
|
}
|
|
98
98
|
var I = { exports: {} };
|
|
@@ -131,8 +131,8 @@ var I = { exports: {} };
|
|
|
131
131
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
132
132
|
})();
|
|
133
133
|
})(I);
|
|
134
|
-
var
|
|
135
|
-
const O = /* @__PURE__ */ k
|
|
134
|
+
var k = I.exports;
|
|
135
|
+
const O = /* @__PURE__ */ F(k), c = {
|
|
136
136
|
"purpur-breadcrumbs": "_purpur-breadcrumbs_1oiut_1",
|
|
137
137
|
"purpur-breadcrumbs--default": "_purpur-breadcrumbs--default_1oiut_18",
|
|
138
138
|
"purpur-breadcrumbs--negative": "_purpur-breadcrumbs--negative_1oiut_32",
|
|
@@ -162,14 +162,14 @@ const O = /* @__PURE__ */ k(z), c = {
|
|
|
162
162
|
meta: i = !0,
|
|
163
163
|
variant: r = "default"
|
|
164
164
|
}) => {
|
|
165
|
-
const e = O([a, c[h], c[`${h}--${r}`]]), u = w.count(n), l = [], m = w.map(n, (d,
|
|
166
|
-
const y =
|
|
165
|
+
const e = O([a, c[h], c[`${h}--${r}`]]), u = w.count(n), l = [], m = w.map(n, (d, E) => {
|
|
166
|
+
const y = E + 1, A = u === y, _ = d.props.children, o = typeof _ == "string" ? null : _.props;
|
|
167
167
|
let f = null, b = null;
|
|
168
168
|
return typeof _ == "string" ? (f = _, b = d.props.href) : o != null && o.children && typeof (o == null ? void 0 : o.children) == "string" && (f = o.children, b = o.href), f && b && l.push(U(f, b, y)), $(d, {
|
|
169
|
-
current:
|
|
169
|
+
current: A,
|
|
170
170
|
variant: r,
|
|
171
171
|
...y === 1 && {
|
|
172
|
-
children: /* @__PURE__ */ x(
|
|
172
|
+
children: /* @__PURE__ */ x(M, { children: [
|
|
173
173
|
/* @__PURE__ */ p("span", { className: c[`${h}__home`], "aria-hidden": "true", children: /* @__PURE__ */ p(j, { size: "xs" }) }),
|
|
174
174
|
d.props.children
|
|
175
175
|
] })
|