trepur_components 2.3.46 → 2.3.47

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 s, jsxs as L } from "react/jsx-runtime";
2
- import { createContext as u, forwardRef as n, useMemo as d, useContext as i, Children as C } from "react";
3
- const b = u(null), x = u(null), f = n(({ children: e, ...r }, t) => {
1
+ import { jsx as s, jsxs as C } from "react/jsx-runtime";
2
+ import { createContext as p, forwardRef as n, useMemo as d, useContext as i, Children as v } from "react";
3
+ const b = p(null), f = p(null), x = n(({ children: e, ...r }, t) => {
4
4
  const a = d(
5
5
  () => ({
6
6
  allLinks: e
@@ -9,20 +9,20 @@ const b = u(null), x = u(null), f = n(({ children: e, ...r }, t) => {
9
9
  );
10
10
  return /* @__PURE__ */ s(b.Provider, { value: a, children: /* @__PURE__ */ s("ul", { ref: t, className: "flex gap-2", ...r, children: e }) });
11
11
  }), B = n(({ children: e, ...r }, t) => {
12
- var c, m, p;
13
- const { allLinks: a } = i(b) || {}, o = C.toArray(a), l = ((c = e == null ? void 0 : e.props) == null ? void 0 : c.children) === ((p = (m = o[o.length - 1]) == null ? void 0 : m.props) == null ? void 0 : p.children.props.children), y = d(
12
+ var c, m, u;
13
+ const { allLinks: a } = i(b) || {}, o = v.toArray(a), l = ((c = e == null ? void 0 : e.props) == null ? void 0 : c.children) === ((u = (m = o[o.length - 1]) == null ? void 0 : m.props) == null ? void 0 : u.children.props.children), N = d(
14
14
  () => ({
15
15
  isLast: l
16
16
  }),
17
17
  [e]
18
18
  );
19
- return /* @__PURE__ */ s(x.Provider, { value: y, children: /* @__PURE__ */ L("li", { ref: t, className: "flex items-center gap-2", ...r, children: [
19
+ return /* @__PURE__ */ s(f.Provider, { value: N, children: /* @__PURE__ */ C("li", { ref: t, className: "flex items-center gap-2", ...r, children: [
20
20
  e,
21
21
  !l && /* @__PURE__ */ s("p", { children: "/" })
22
22
  ] }) });
23
- }), N = n(({ children: e, href: r, ...t }, a) => {
24
- const { isLast: o } = i(x) || {};
25
- return o ? /* @__PURE__ */ s("p", { className: "px-1 py-1 font-bold underline underline-offset-4", children: e }) : r ? /* @__PURE__ */ s("p", { className: "px-1 py-1", children: /* @__PURE__ */ s(
23
+ }), L = n(({ children: e, href: r, ...t }, a) => {
24
+ const { isLast: o } = i(f) || {};
25
+ return o ? /* @__PURE__ */ s("p", { className: "font-bold underline underline-offset-4", children: e }) : r ? /* @__PURE__ */ s("p", { children: /* @__PURE__ */ s(
26
26
  "a",
27
27
  {
28
28
  ref: a,
@@ -31,14 +31,14 @@ const b = u(null), x = u(null), f = n(({ children: e, ...r }, t) => {
31
31
  ...t,
32
32
  children: e
33
33
  }
34
- ) }) : /* @__PURE__ */ s("p", { className: "px-1 py-1", children: e });
34
+ ) }) : /* @__PURE__ */ s("p", { children: e });
35
35
  });
36
- f.displayName = "Breadcrumbs";
36
+ x.displayName = "Breadcrumbs";
37
37
  B.displayName = "Breadcrumbs.Item";
38
- N.displayName = "Breadcrumbs.Label";
39
- const I = Object.assign(f, {
38
+ L.displayName = "Breadcrumbs.Label";
39
+ const I = Object.assign(x, {
40
40
  Item: B,
41
- Label: N
41
+ Label: L
42
42
  });
43
43
  export {
44
44
  I as Breadcrumbs
@@ -15,7 +15,7 @@ const d = o(({ className: a, children: e, onClick: t, ...r }, I) => /* @__PURE__
15
15
  ...r,
16
16
  children: e
17
17
  }
18
- )), n = o(({ src: a, ...e }) => /* @__PURE__ */ m("div", { className: "h-64", children: /* @__PURE__ */ m(N, { className: "object-cover", src: a, ...e }) })), i = o(({ children: a, className: e, ...t }, r) => /* @__PURE__ */ m("div", { className: s("p-4 pt-2", e), ref: r, ...t, children: a })), l = o(({ className: a, ...e }, t) => /* @__PURE__ */ m("p", { className: s("text-sm font-bold", a), ref: t, ...e })), p = o(({ className: a, ...e }, t) => /* @__PURE__ */ m("p", { className: s("text-sm font-thin", a), ref: t, ...e })), c = o(({ className: a, ...e }, t) => /* @__PURE__ */ m(
18
+ )), n = o(({ src: a, ...e }) => /* @__PURE__ */ m("div", { className: "h-64", children: /* @__PURE__ */ m(N, { className: "object-cover", src: a, ...e }) })), l = o(({ children: a, className: e, ...t }, r) => /* @__PURE__ */ m("div", { className: s("p-4 pt-2", e), ref: r, ...t, children: a })), i = o(({ className: a, ...e }, t) => /* @__PURE__ */ m("p", { className: s("text-sm font-bold", a), ref: t, ...e })), p = o(({ className: a, ...e }, t) => /* @__PURE__ */ m("p", { className: s("text-sm font-normal", a), ref: t, ...e })), c = o(({ className: a, ...e }, t) => /* @__PURE__ */ m(
19
19
  "p",
20
20
  {
21
21
  className: s("line-clamp-5 pt-2 text-md font-normal", a),
@@ -32,21 +32,21 @@ const d = o(({ className: a, children: e, onClick: t, ...r }, I) => /* @__PURE__
32
32
  )), C = o(({ children: a, className: e, ...t }) => /* @__PURE__ */ m("p", { className: s("pt-4 text-end text-sm", e), ...t, children: a }));
33
33
  d.displayName = "ImageCard";
34
34
  n.displayName = "ImageCard.Image";
35
- l.displayName = "ImageCard.Title";
35
+ i.displayName = "ImageCard.Title";
36
36
  p.displayName = "ImageCard.Subtitle";
37
- i.displayName = "ImageCard.Content";
37
+ l.displayName = "ImageCard.Content";
38
38
  c.displayName = "ImageCard.Text";
39
39
  g.displayName = "ImageCard.Button";
40
40
  C.displayName = "ImageCard.Caption";
41
- const T = Object.assign(d, {
41
+ const h = Object.assign(d, {
42
42
  Image: n,
43
- Content: i,
44
- Title: l,
43
+ Content: l,
44
+ Title: i,
45
45
  Subtitle: p,
46
46
  Text: c,
47
47
  Button: g,
48
48
  Caption: C
49
49
  });
50
50
  export {
51
- T as ImageCard
51
+ h as ImageCard
52
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trepur_components",
3
- "version": "2.3.46",
3
+ "version": "2.3.47",
4
4
  "description": "component lib",
5
5
  "author": "trepur_ttenneb",
6
6
  "private": false,