@purpurds/breadcrumbs 5.11.0 → 5.11.1

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.
@@ -28,5 +28,6 @@ declare const Breadcrumbs: {
28
28
  ({ ["data-testid"]: dataTestId, ariaLabel, children, className, meta, negative, }: BreadcrumbsProps): React.JSX.Element;
29
29
  Item: ({ href, ["data-testid"]: dataTestId, children, current, negative, onClick, ...rest }: BreadcrumbsItemProps) => React.JSX.Element;
30
30
  };
31
- export { Breadcrumbs };
31
+ declare const Item: ({ href, ["data-testid"]: dataTestId, children, current, negative, onClick, ...rest }: BreadcrumbsItemProps) => React.JSX.Element;
32
+ export { Breadcrumbs, Item as BreadcrumbsItem };
32
33
  //# sourceMappingURL=breadcrumbs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"","sources":["../src/breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAyC,YAAY,EAAE,MAAM,OAAO,CAAC;AAOnF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,YAAY,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACzF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAA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Z;IACE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,GACD;IACE,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAC;CAC3C,CAAC;AAKN,QAAA,MAAM,WAAW;uFAOd,gBAAgB;iGA4EhB,oBAAoB;CAVtB,CAAC;AAEF,QAAA,MAAM,IAAI,yFAQP,oBAAoB,sBAqCtB,CAAC;AAIF,OAAO,EAAE,WAAW,EAAE,IAAI,IAAI,eAAe,EAAE,CAAC"}
@@ -1,5 +1,5 @@
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";
1
+ import { jsx as o, jsxs as x, Fragment as L } from "react/jsx-runtime";
2
+ import { Children as w, cloneElement as N, createElement as M } from "react";
3
3
  function H(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
5
  }
@@ -73,7 +73,7 @@ const Z = A.bind(E), $ = "purpur-icon", k = "md", C = (e) => e.filter((u) => Obj
73
73
  ["data-testid"]: e,
74
74
  svg: u,
75
75
  allyTitle: n,
76
- className: a = "",
76
+ className: a,
77
77
  size: i = k,
78
78
  ...r
79
79
  }) => {
@@ -132,7 +132,7 @@ var I = { exports: {} };
132
132
  })();
133
133
  })(I);
134
134
  var J = I.exports;
135
- const O = /* @__PURE__ */ D(J), c = {
135
+ const O = /* @__PURE__ */ D(J), p = {
136
136
  "purpur-breadcrumbs": "_purpur-breadcrumbs_3f81v_1",
137
137
  "purpur-breadcrumbs--default": "_purpur-breadcrumbs--default_3f81v_21",
138
138
  "purpur-breadcrumbs--negative": "_purpur-breadcrumbs--negative_3f81v_35",
@@ -161,24 +161,24 @@ const O = /* @__PURE__ */ D(J), c = {
161
161
  }) => {
162
162
  const t = O([
163
163
  a,
164
- c[b],
165
- c[`${b}--${r ? "negative" : "default"}`]
164
+ p[b],
165
+ p[`${b}--${r ? "negative" : "default"}`]
166
166
  ]), s = w.count(n), l = [], m = w.map(n, (d, q) => {
167
- const y = q + 1, L = s === y, f = d.props.children, p = typeof f == "string" ? null : f.props;
167
+ const y = q + 1, B = s === y, f = d.props.children, c = typeof f == "string" ? null : f.props;
168
168
  let _ = null, v = null;
169
- return typeof f == "string" ? (_ = f, v = d.props.href) : p != null && p.children && typeof (p == null ? void 0 : p.children) == "string" && (_ = p.children, v = p.href), _ && v && l.push(K(_, v, y)), N(d, {
170
- current: L,
169
+ return typeof f == "string" ? (_ = f, v = d.props.href) : c != null && c.children && typeof (c == null ? void 0 : c.children) == "string" && (_ = c.children, v = c.href), _ && v && l.push(K(_, v, y)), N(d, {
170
+ current: B,
171
171
  negative: r,
172
172
  ...y === 1 && {
173
- children: /* @__PURE__ */ x(M, { children: [
174
- /* @__PURE__ */ o("span", { className: c[`${b}__home`], "aria-hidden": "true", children: /* @__PURE__ */ o(j, { size: "xs" }) }),
173
+ children: /* @__PURE__ */ x(L, { children: [
174
+ /* @__PURE__ */ o("span", { className: p[`${b}__home`], "aria-hidden": "true", children: /* @__PURE__ */ o(j, { size: "xs" }) }),
175
175
  d.props.children
176
176
  ] })
177
177
  }
178
178
  });
179
179
  }), g = l.length === s ? V(l) : null;
180
180
  return /* @__PURE__ */ x("nav", { "data-testid": e, "aria-label": u || "Breadcrumb", className: t, children: [
181
- /* @__PURE__ */ o("ol", { className: c[`${b}__list`], children: m }),
181
+ /* @__PURE__ */ o("ol", { className: p[`${b}__list`], children: m }),
182
182
  i && g ? /* @__PURE__ */ o(
183
183
  "script",
184
184
  {
@@ -198,9 +198,9 @@ const O = /* @__PURE__ */ D(J), c = {
198
198
  ...t
199
199
  }) => {
200
200
  const s = O(
201
- [c[h], c[`${h}--${i ? "negative" : "default"}`]],
201
+ [p[h], p[`${h}--${i ? "negative" : "default"}`]],
202
202
  {
203
- [c[`${h}--current`]]: a
203
+ [p[`${h}--current`]]: a
204
204
  }
205
205
  );
206
206
  return /* @__PURE__ */ x("li", { ...t, className: s, children: [
@@ -211,16 +211,17 @@ const O = /* @__PURE__ */ D(J), c = {
211
211
  "aria-current": a ? "page" : void 0,
212
212
  onClick: r
213
213
  };
214
- return e || typeof n == "string" ? B("a", m, n) : N(n, {
214
+ return e || typeof n == "string" ? M("a", m, n) : N(n, {
215
215
  ...m,
216
216
  ...n.props
217
217
  });
218
218
  })(),
219
- a ? null : /* @__PURE__ */ o("span", { "aria-hidden": !0, className: c[`${h}__separator`], children: "/" })
219
+ a ? null : /* @__PURE__ */ o("span", { "aria-hidden": !0, className: p[`${h}__separator`], children: "/" })
220
220
  ] });
221
221
  };
222
222
  Q.Item = R;
223
223
  export {
224
- Q as Breadcrumbs
224
+ Q as Breadcrumbs,
225
+ R as BreadcrumbsItem
225
226
  };
226
227
  //# sourceMappingURL=breadcrumbs.es.js.map