trepur_components 2.3.47 → 2.3.48

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,45 +1,47 @@
1
- import { jsx as n, jsxs as w } from "react/jsx-runtime";
2
- import { createContext as f, forwardRef as r, useState as D, useRef as b, useMemo as x, useContext as a } from "react";
3
- import { Button as l } from "../Button/index.js";
4
- import { faChevronDown as y } from "@fortawesome/fontawesome-free-solid";
5
- import { useClickOutside as v } from "./utils.js";
6
- const s = f(null), d = r(({ children: t }) => {
7
- const [o, e] = D(!1), i = b(null), u = x(
1
+ import { jsx as r, jsxs as f } from "react/jsx-runtime";
2
+ import { createContext as D, forwardRef as s, useState as b, useRef as x, useMemo as y, useContext as i } from "react";
3
+ import { Button as d } from "../Button/index.js";
4
+ import { faChevronDown as v } from "@fortawesome/fontawesome-free-solid";
5
+ import { useClickOutside as C } from "./utils.js";
6
+ const a = D(null), c = s(({ children: t }, n) => {
7
+ const [o, e] = b(!1), l = x(null), w = y(
8
8
  () => ({
9
9
  showDropdown: o,
10
10
  setShowDropdown: e
11
11
  }),
12
12
  [o, e]
13
13
  );
14
- return v(i, () => {
14
+ return C(l, () => {
15
15
  e(!1);
16
- }), /* @__PURE__ */ n(s.Provider, { value: u, children: /* @__PURE__ */ n("div", { ref: i, className: "relative inline-block text-left", children: t }) });
17
- }), c = r(({ children: t }) => {
18
- const { showDropdown: o, setShowDropdown: e } = a(s) || {};
19
- return /* @__PURE__ */ w(l, { onClick: () => e == null ? void 0 : e(!o), children: [
16
+ }), /* @__PURE__ */ r(a.Provider, { value: w, children: /* @__PURE__ */ r("div", { ref: l ?? n, className: "relative inline-block text-left", children: t }) });
17
+ }), m = s(({ children: t }, n) => {
18
+ const { showDropdown: o, setShowDropdown: e } = i(a) || {};
19
+ return /* @__PURE__ */ f(d, { ref: n, onClick: () => e == null ? void 0 : e(!o), children: [
20
20
  t,
21
- /* @__PURE__ */ n(l.Icon, { icon: y })
21
+ /* @__PURE__ */ r(d.Icon, { icon: v })
22
22
  ] });
23
- }), m = r(
24
- ({ children: t }) => {
25
- const { showDropdown: o } = a(s) || {};
26
- return o ? /* @__PURE__ */ n(
23
+ }), p = s(
24
+ ({ children: t }, n) => {
25
+ const { showDropdown: o } = i(a) || {};
26
+ return o ? /* @__PURE__ */ r(
27
27
  "div",
28
28
  {
29
+ ref: n,
29
30
  className: "z-50 mt-2 w-48 rounded-lg border-2 bg-primary text-white",
30
31
  role: "menu",
31
32
  "aria-orientation": "vertical",
32
33
  "aria-labelledby": "menu-button",
33
- children: /* @__PURE__ */ n("ul", { className: "py-1 text-sm", children: t })
34
+ children: /* @__PURE__ */ r("ul", { className: "py-1 text-sm", children: t })
34
35
  }
35
- ) : /* @__PURE__ */ n("div", {});
36
+ ) : /* @__PURE__ */ r("div", {});
36
37
  }
37
- ), p = r(
38
- ({ children: t }) => {
39
- const { setShowDropdown: o } = a(s) || {};
40
- return /* @__PURE__ */ n(
38
+ ), u = s(
39
+ ({ children: t }, n) => {
40
+ const { setShowDropdown: o } = i(a) || {};
41
+ return /* @__PURE__ */ r(
41
42
  "li",
42
43
  {
44
+ ref: n,
43
45
  className: "px-4 py-2",
44
46
  onClick: () => {
45
47
  o == null || o(!1);
@@ -52,15 +54,15 @@ const s = f(null), d = r(({ children: t }) => {
52
54
  );
53
55
  }
54
56
  );
55
- d.displayName = "Dropdown";
56
- c.displayName = "Dropdown.Label";
57
- m.displayName = "Dropdown.List";
58
- p.displayName = "Dropdown.Item";
59
- const I = Object.assign(d, {
60
- Label: c,
61
- List: m,
62
- Item: p
57
+ c.displayName = "Dropdown";
58
+ m.displayName = "Dropdown.Label";
59
+ p.displayName = "Dropdown.List";
60
+ u.displayName = "Dropdown.Item";
61
+ const g = Object.assign(c, {
62
+ Label: m,
63
+ List: p,
64
+ Item: u
63
65
  });
64
66
  export {
65
- I as Dropdown
67
+ g as Dropdown
66
68
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as n } from "react";
3
3
  import s from "clsx";
4
- import { Icon as N } from "../Icon/index.js";
4
+ import { Icon as d } from "../Icon/index.js";
5
5
  const l = n(({ className: o, children: e, ...t }, r) => /* @__PURE__ */ a(
6
6
  "div",
7
7
  {
@@ -13,9 +13,10 @@ const l = n(({ className: o, children: e, ...t }, r) => /* @__PURE__ */ a(
13
13
  ...t,
14
14
  children: e
15
15
  }
16
- )), m = n(({ className: o, children: e, href: t, onClick: r, ...p }) => /* @__PURE__ */ a(
16
+ )), m = n(({ className: o, children: e, href: t, onClick: r, ...p }, N) => /* @__PURE__ */ a(
17
17
  "div",
18
18
  {
19
+ ref: N,
19
20
  className: s(
20
21
  "group w-full cursor-pointer py-2 text-center transition-all duration-500",
21
22
  o
@@ -31,16 +32,16 @@ const l = n(({ className: o, children: e, ...t }, r) => /* @__PURE__ */ a(
31
32
  ...t,
32
33
  children: e
33
34
  }
34
- )), c = n(({ icon: o, ...e }) => /* @__PURE__ */ a(N, { icon: o, ...e }));
35
+ )), c = n(({ icon: o, ...e }, t) => /* @__PURE__ */ a(d, { icon: o, ref: t, ...e }));
35
36
  l.displayName = "FooterNav";
36
37
  m.displayName = "FooterNav.Item";
37
38
  c.displayName = "FooterNav.Icon";
38
39
  i.displayName = "FooterNav.Label";
39
- const x = Object.assign(l, {
40
+ const F = Object.assign(l, {
40
41
  Item: m,
41
42
  Label: i,
42
43
  Icon: c
43
44
  });
44
45
  export {
45
- x as FooterNav
46
+ F as FooterNav
46
47
  };
@@ -1,35 +1,36 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { forwardRef as o } from "react";
3
3
  import { Image as N } from "../Image/index.js";
4
- import s from "clsx";
4
+ import r from "clsx";
5
5
  import { Button as f } from "../Button/index.js";
6
- const d = o(({ className: a, children: e, onClick: t, ...r }, I) => /* @__PURE__ */ m(
6
+ const d = o(({ className: a, children: e, onClick: t, ...s }, I) => /* @__PURE__ */ m(
7
7
  "div",
8
8
  {
9
9
  ref: I,
10
- className: s(
10
+ className: r(
11
11
  "grid overflow-hidden rounded-xl bg-white drop-shadow",
12
12
  a
13
13
  ),
14
14
  onClick: t,
15
- ...r,
15
+ ...s,
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 }) })), 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(
18
+ )), n = o(({ src: a, ...e }, t) => /* @__PURE__ */ m("div", { ref: t, className: "h-64", children: /* @__PURE__ */ m(N, { className: "object-cover", src: a, ...e }) })), l = o(({ children: a, className: e, ...t }, s) => /* @__PURE__ */ m("div", { className: r("p-4 pt-2", e), ref: s, ...t, children: a })), i = o(({ className: a, ...e }, t) => /* @__PURE__ */ m("p", { className: r("text-sm font-bold", a), ref: t, ...e })), p = o(({ className: a, ...e }, t) => /* @__PURE__ */ m("p", { className: r("text-sm font-normal", a), ref: t, ...e })), c = o(({ className: a, ...e }, t) => /* @__PURE__ */ m(
19
19
  "p",
20
20
  {
21
- className: s("line-clamp-5 pt-2 text-md font-normal", a),
21
+ className: r("line-clamp-5 pt-2 text-md font-normal", a),
22
22
  ref: t,
23
23
  ...e
24
24
  }
25
- )), g = o(({ children: a, className: e, ...t }) => /* @__PURE__ */ m(
25
+ )), g = o(({ children: a, className: e, ...t }, s) => /* @__PURE__ */ m(
26
26
  f,
27
27
  {
28
- className: s("mt-4 my-auto w-full justify-center", e),
28
+ ref: s,
29
+ className: r("mt-4 my-auto w-full justify-center", e),
29
30
  ...t,
30
31
  children: a
31
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
+ )), C = o(({ children: a, className: e, ...t }, s) => /* @__PURE__ */ m("p", { ref: s, className: r("pt-4 text-end text-sm", e), ...t, children: a }));
33
34
  d.displayName = "ImageCard";
34
35
  n.displayName = "ImageCard.Image";
35
36
  i.displayName = "ImageCard.Title";
@@ -8,7 +8,7 @@ declare const meta: {
8
8
  Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
9
9
  required?: boolean | undefined;
10
10
  } & import('react').RefAttributes<HTMLDivElement>>;
11
- Box: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
11
+ Box: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement>>;
12
12
  Validation: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
13
13
  };
14
14
  args: {
@@ -27,7 +27,7 @@ declare const Input: import('react').ForwardRefExoticComponent<HTMLAttributes<HT
27
27
  Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
28
28
  required?: boolean | undefined;
29
29
  } & import('react').RefAttributes<HTMLDivElement>>;
30
- Box: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
30
+ Box: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement>>;
31
31
  Validation: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
32
32
  };
33
33
  export { Input };
@@ -1,69 +1,70 @@
1
1
  import { jsx as o, jsxs as I } from "react/jsx-runtime";
2
2
  import { createContext as b, forwardRef as a, useMemo as N, useRef as y, useContext as d } from "react";
3
3
  import m from "clsx";
4
- const s = b(null), p = a(({ children: n, errors: e, placeholder: t, ...r }, l) => {
4
+ const s = b(null), p = a(({ children: r, errors: e, placeholder: t, ...n }, l) => {
5
5
  const f = N(
6
6
  () => ({
7
7
  errors: e,
8
8
  placeholder: t,
9
- ...r
9
+ ...n
10
10
  }),
11
- [e, r]
11
+ [e, n]
12
12
  );
13
- return /* @__PURE__ */ o(s.Provider, { value: f, children: /* @__PURE__ */ o("div", { ref: l, children: n }) });
13
+ return /* @__PURE__ */ o(s.Provider, { value: f, children: /* @__PURE__ */ o("div", { ref: l, children: r }) });
14
14
  }), u = a(
15
- ({ children: n, ...e }, t) => {
16
- const r = y(null);
15
+ ({ children: r, ...e }, t) => {
16
+ const n = y(null);
17
17
  return /* @__PURE__ */ o(
18
18
  "div",
19
19
  {
20
20
  className: "mt-4 w-full",
21
21
  onClick: () => {
22
22
  var l;
23
- return (l = r.current) == null ? void 0 : l.focus();
23
+ return (l = n.current) == null ? void 0 : l.focus();
24
24
  },
25
25
  ref: t,
26
26
  ...e,
27
- children: n
27
+ children: r
28
28
  }
29
29
  );
30
30
  }
31
- ), i = a(({ className: n, children: e, required: t = !1 }, r) => /* @__PURE__ */ I(
31
+ ), i = a(({ className: r, children: e, required: t = !1 }, n) => /* @__PURE__ */ I(
32
32
  "div",
33
33
  {
34
- ref: r,
35
- className: m("flex px-1 text-sm font-normal leading-5", n),
34
+ ref: n,
35
+ className: m("flex px-1 text-sm font-normal leading-5", r),
36
36
  children: [
37
37
  /* @__PURE__ */ o("p", { children: e }),
38
38
  t && /* @__PURE__ */ o("p", { className: "text-sm font-normal", children: " *" })
39
39
  ]
40
40
  }
41
41
  )), c = a(
42
- ({ ...n }) => {
43
- const { errors: e, placeholder: t } = d(s) || {};
42
+ ({ ...r }, e) => {
43
+ const { errors: t, placeholder: n } = d(s) || {};
44
44
  return /* @__PURE__ */ o(
45
45
  "input",
46
46
  {
47
- placeholder: t,
47
+ ref: e,
48
+ placeholder: n,
48
49
  className: m(
49
50
  "text-ink text-md w-full rounded-md border border-gray-300 bg-white py-2 pl-4",
50
51
  {
51
- "border-error border-2": e != null
52
+ "border-error border-2": t != null
52
53
  }
53
54
  ),
54
- ...n
55
+ ...r
55
56
  }
56
57
  );
57
58
  }
58
- ), x = a(({ ...n }, e) => {
59
+ ), x = a(({ ...r }, e) => {
59
60
  const { errors: t } = d(s) || {};
60
61
  return /* @__PURE__ */ o(
61
62
  "div",
62
63
  {
63
64
  ref: e,
64
65
  className: "text-md gap-y-2 pl-1 pt-2 font-semibold text-error-default",
65
- ...n,
66
- children: t == null ? void 0 : t.map((r, l) => /* @__PURE__ */ o("p", { children: r }, `error-msg-${l + 1}`))
66
+ ...r,
67
+ children: t == null ? void 0 : t.map((n, l) => /* @__PURE__ */ o("p", { children: n }, `error-msg-${l + 1}`))
67
68
  }
68
69
  );
69
70
  });
@@ -26,6 +26,5 @@ export declare const Ghost: Story;
26
26
  export declare const Basic: Story;
27
27
  export declare const Loading: Story;
28
28
  export declare const Small: Story;
29
- export declare const Medium: Story;
30
29
  export declare const Large: Story;
31
30
  export declare const Download: Story;
@@ -1,6 +1,6 @@
1
- import { jsx as b } from "react/jsx-runtime";
1
+ import { jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as a } from "react";
3
- import { Icon as x } from "../Icon/index.js";
3
+ import { Icon as h } from "../Icon/index.js";
4
4
  import c from "clsx";
5
5
  const i = a(
6
6
  ({
@@ -8,15 +8,16 @@ const i = a(
8
8
  children: e,
9
9
  loading: t = !1,
10
10
  variant: r = "primary",
11
- size: n = "sm",
11
+ size: b = "sm",
12
12
  downloadFileName: s,
13
- href: g,
13
+ href: m,
14
14
  target: u,
15
15
  ...p
16
- }) => /* @__PURE__ */ b("div", { className: "inline-block", children: /* @__PURE__ */ b(
16
+ }, x) => /* @__PURE__ */ n(
17
17
  "a",
18
18
  {
19
- href: g,
19
+ ref: x,
20
+ href: m,
20
21
  target: u,
21
22
  ...s && { download: s },
22
23
  className: c(
@@ -29,24 +30,24 @@ const i = a(
29
30
  "border-button-bordered-border text-button-ghost-text hover:bg-button-ghost-hover active:bg-button-ghost-active": r === "bordered" && !t,
30
31
  "border-button-basic-border bg-button-basic-bg text-button-basic-text hover:bg-button-basic-hover active:bg-button-basic-active": r === "basic" && !t,
31
32
  "w-40 animate-pulse border-loading bg-loading": t,
32
- "px-12 py-3 text-base font-normal leading-4": n === "sm",
33
- "px-12 py-3 text-lg font-normal leading-8": n === "md",
34
- "px-12 py-4 text-xl font-normal leading-8": n === "lg"
33
+ "px-12 py-3 text-base font-normal leading-4": b === "sm",
34
+ "px-12 py-3 text-lg font-normal leading-8": b === "md",
35
+ "px-12 py-4 text-xl font-normal leading-8": b === "lg"
35
36
  },
36
37
  o
37
38
  ),
38
39
  ...p,
39
40
  children: !t && e
40
41
  }
41
- ) })
42
- ), d = a(({ className: o, ...e }, t) => /* @__PURE__ */ b("p", { className: c("text-md", o), ref: t, ...e })), m = a(({ icon: o }, e) => /* @__PURE__ */ b(x, { size: "md", ref: e, icon: o }));
42
+ )
43
+ ), g = a(({ className: o, ...e }, t) => /* @__PURE__ */ n("p", { className: c("text-md", o), ref: t, ...e })), d = a(({ icon: o }, e) => /* @__PURE__ */ n(h, { size: "lg", ref: e, icon: o }));
43
44
  i.displayName = "Link";
44
- m.displayName = "Link.Icon";
45
- d.displayName = "Link.Label";
46
- const f = Object.assign(i, {
47
- Icon: m,
48
- Label: d
45
+ d.displayName = "Link.Icon";
46
+ g.displayName = "Link.Label";
47
+ const L = Object.assign(i, {
48
+ Icon: d,
49
+ Label: g
49
50
  });
50
51
  export {
51
- f as Link
52
+ L as Link
52
53
  };
@@ -1,12 +1,12 @@
1
- import { jsx as e, jsxs as p, Fragment as H } from "react/jsx-runtime";
2
- import { createContext as w, forwardRef as d, useState as v, useMemo as C, useContext as c, useRef as k } from "react";
3
- import { HamburgerIcon as M } from "../HamburgerIcon/index.js";
4
- import { faChevronDown as j } from "@fortawesome/fontawesome-free-solid";
1
+ import { jsx as e, jsxs as p, Fragment as w } from "react/jsx-runtime";
2
+ import { createContext as C, forwardRef as d, useState as v, useMemo as k, useContext as m, useRef as M } from "react";
3
+ import { HamburgerIcon as j } from "../HamburgerIcon/index.js";
4
+ import { faChevronDown as D } from "@fortawesome/fontawesome-free-solid";
5
5
  import n from "clsx";
6
- import { Icon as D } from "../Icon/index.js";
7
- import { NavItem as F } from "../NavItem/index.js";
8
- const i = w(null), g = d(({ className: t, children: r, loading: a }, o) => {
9
- const [s, l] = v(!1), m = C(
6
+ import { Icon as F } from "../Icon/index.js";
7
+ import { NavItem as L } from "../NavItem/index.js";
8
+ const c = C(null), g = d(({ className: r, children: t, loading: a }, o) => {
9
+ const [s, l] = v(!1), i = k(
10
10
  () => ({
11
11
  expanded: s,
12
12
  setExpanded: l,
@@ -14,115 +14,115 @@ const i = w(null), g = d(({ className: t, children: r, loading: a }, o) => {
14
14
  }),
15
15
  [s, l, a]
16
16
  );
17
- return /* @__PURE__ */ e(i.Provider, { value: m, children: /* @__PURE__ */ e("div", { className: t, ref: o, children: r }) });
18
- }), N = d(
19
- ({ className: t, children: r }, a) => /* @__PURE__ */ e(
17
+ return /* @__PURE__ */ e(c.Provider, { value: i, children: /* @__PURE__ */ e("div", { className: r, ref: o, children: t }) });
18
+ }), f = d(
19
+ ({ className: r, children: t }, a) => /* @__PURE__ */ e(
20
20
  "div",
21
21
  {
22
22
  ref: a,
23
- className: n("relative h-24 w-full bg-nav-bg px-2 py-2", t),
24
- children: r
23
+ className: n("relative h-24 w-full bg-nav-bg px-2 py-2", r),
24
+ children: t
25
25
  }
26
26
  )
27
- ), f = d(({ className: t, children: r }, a) => {
28
- const { loading: o, setExpanded: s, expanded: l } = c(i) || {};
29
- return /* @__PURE__ */ p("div", { ref: a, className: n("flex h-full lg:hidden", t), children: [
27
+ ), N = d(({ className: r, children: t }, a) => {
28
+ const { loading: o, setExpanded: s, expanded: l } = m(c) || {};
29
+ return /* @__PURE__ */ p("div", { ref: a, className: n("flex h-full lg:hidden", r), children: [
30
30
  !o && /* @__PURE__ */ e("div", { className: "my-auto", children: /* @__PURE__ */ e(
31
- M,
31
+ j,
32
32
  {
33
33
  variant: "ghost",
34
34
  onClick: () => s == null ? void 0 : s(!l),
35
35
  className: "aspect-square"
36
36
  }
37
37
  ) }),
38
- /* @__PURE__ */ e("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform", children: r })
38
+ /* @__PURE__ */ e("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform", children: t })
39
39
  ] });
40
- }), u = d(({ className: t, children: r }, a) => /* @__PURE__ */ e(
40
+ }), u = d(({ className: r, children: t }, a) => /* @__PURE__ */ e(
41
41
  "div",
42
42
  {
43
43
  ref: a,
44
44
  className: n(
45
45
  "hidden justify-between lg:flex gap-4 px-4 lg:gap-8 lg:px-20",
46
- t
46
+ r
47
47
  ),
48
- children: r
48
+ children: t
49
49
  }
50
50
  )), x = d(
51
- ({ className: t, children: r }, a) => {
52
- const { expanded: o } = c(i) || {};
51
+ ({ className: r, children: t }, a) => {
52
+ const { expanded: o } = m(c) || {};
53
53
  return o ? /* @__PURE__ */ e(
54
54
  "div",
55
55
  {
56
56
  ref: a,
57
57
  className: n(
58
58
  "h-screen bg-nav-bg px-8 pb-12 pt-2 lg:hidden",
59
- t
59
+ r
60
60
  ),
61
- children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 lg:hidden", children: r })
61
+ children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 lg:hidden", children: t })
62
62
  }
63
- ) : /* @__PURE__ */ e(H, {});
63
+ ) : /* @__PURE__ */ e(w, {});
64
64
  }
65
65
  ), h = d(
66
- ({ className: t, children: r }, a) => {
67
- const { loading: o } = c(i) || {};
68
- return o ? /* @__PURE__ */ e("div", { ref: a, className: n("my-4 lg:flex lg:gap-6", t), children: [...Array(5)].map((s, l) => /* @__PURE__ */ e(F, { loading: !0 }, l)) }) : /* @__PURE__ */ e("div", { ref: a, className: n("my-4 lg:flex lg:gap-6", t), children: r });
66
+ ({ className: r, children: t }, a) => {
67
+ const { loading: o } = m(c) || {};
68
+ return o ? /* @__PURE__ */ e("div", { ref: a, className: n("my-4 lg:flex lg:gap-6", r), children: [...Array(5)].map((s, l) => /* @__PURE__ */ e(L, { loading: !0 }, l)) }) : /* @__PURE__ */ e("div", { ref: a, className: n("my-4 lg:flex lg:gap-6", r), children: t });
69
69
  }
70
- ), b = d(({ className: t, label: r, children: a, active: o = !1 }) => {
71
- const [s, l] = v(!1), m = k(null);
70
+ ), b = d(({ className: r, label: t, children: a, active: o = !1 }, s) => {
71
+ const [l, i] = v(!1), H = M(null);
72
72
  return /* @__PURE__ */ p(
73
73
  "div",
74
74
  {
75
- ref: m,
76
- onMouseEnter: () => l(!0),
77
- onMouseLeave: () => l(!1),
78
- onClick: () => l(!s),
75
+ ref: H ?? s,
76
+ onMouseEnter: () => i(!0),
77
+ onMouseLeave: () => i(!1),
78
+ onClick: () => i(!l),
79
79
  className: n(
80
80
  "relative m-auto py-0 text-nav-text lg:after:block after:scale-x-0 after:border-b-2 after:border-nav-text after:transition-all after:duration-300 after:ease-in-out hover:cursor-pointer hover:after:scale-x-100",
81
81
  {
82
82
  "font-bold": o,
83
83
  "font-light": !o
84
84
  },
85
- t
85
+ r
86
86
  ),
87
87
  children: [
88
88
  /* @__PURE__ */ p("div", { className: "flex justify-center items-center gap-1", children: [
89
- /* @__PURE__ */ e("p", { className: "text-lg", children: r }),
90
- /* @__PURE__ */ e(D, { size: "xs", icon: j })
89
+ /* @__PURE__ */ e("p", { className: "text-lg", children: t }),
90
+ /* @__PURE__ */ e(F, { size: "xs", icon: D })
91
91
  ] }),
92
- s && /* @__PURE__ */ e("div", { className: "rounded-md lg:absolute lg:-left-5 top-7 z-50 w-40 bg-nav-bg", children: /* @__PURE__ */ e("div", { className: "rounded-md grid grid-cols-1 gap-y-2 bg-nav-bg px-1 py-2 w-full", children: a }) })
92
+ l && /* @__PURE__ */ e("div", { className: "rounded-md lg:absolute lg:-left-5 top-7 z-50 w-40 bg-nav-bg", children: /* @__PURE__ */ e("div", { className: "rounded-md grid grid-cols-1 gap-y-2 bg-nav-bg px-1 py-2 w-full", children: a }) })
93
93
  ]
94
94
  }
95
95
  );
96
- }), y = d(({ className: t, src: r, alt: a, ...o }, s) => {
97
- const { loading: l } = c(i) || {};
96
+ }), y = d(({ className: r, src: t, alt: a, ...o }, s) => {
97
+ const { loading: l } = m(c) || {};
98
98
  return l ? /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "h-20 w-20 animate-pulse bg-gray-300" }) }) : /* @__PURE__ */ e(
99
99
  "img",
100
100
  {
101
- className: n("h-20 flex-none", t),
101
+ className: n("h-20 flex-none", r),
102
102
  ref: s,
103
- src: r,
103
+ src: t,
104
104
  alt: a,
105
105
  ...o
106
106
  }
107
107
  );
108
108
  });
109
109
  g.displayName = "Nav";
110
- N.displayName = "Nav.Header";
110
+ f.displayName = "Nav.Header";
111
111
  u.displayName = "Nav.DesktopHeader";
112
- f.displayName = "Nav.MobileHeader";
112
+ N.displayName = "Nav.MobileHeader";
113
113
  y.displayName = "Nav.Logo";
114
114
  h.displayName = "Nav.Section";
115
115
  x.displayName = "Nav.Body";
116
116
  b.displayName = "Nav.Folder";
117
- const q = Object.assign(g, {
118
- Header: N,
117
+ const A = Object.assign(g, {
118
+ Header: f,
119
119
  DesktopHeader: u,
120
- MobileHeader: f,
120
+ MobileHeader: N,
121
121
  Section: h,
122
122
  Logo: y,
123
123
  Body: x,
124
124
  Folder: b
125
125
  });
126
126
  export {
127
- q as Nav
127
+ A as Nav
128
128
  };
@@ -1,11 +1,11 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as r } from "react";
3
3
  import s from "clsx";
4
- import { Icon as a } from "../Icon/index.js";
5
- const i = r(({ children: o, variant: e = "info", inverse: l = !1 }, f) => /* @__PURE__ */ t(
4
+ import { Icon as c } from "../Icon/index.js";
5
+ const i = r(({ children: o, variant: e = "info", inverse: l = !1 }, a) => /* @__PURE__ */ t(
6
6
  "div",
7
7
  {
8
- ref: f,
8
+ ref: a,
9
9
  className: s(
10
10
  "inline-grid grid-flow-col w-auto py-2 px-4 text-base font-semibold rounded-full gap-2",
11
11
  {
@@ -21,12 +21,12 @@ const i = r(({ children: o, variant: e = "info", inverse: l = !1 }, f) => /* @__
21
21
  ),
22
22
  children: o
23
23
  }
24
- )), g = r(({ className: o, ...e }, l) => /* @__PURE__ */ t("p", { className: s("text-base my-auto", o), ref: l, ...e })), d = r(({ icon: o }, e) => /* @__PURE__ */ t(a, { className: "my-auto", size: "md", ref: e, icon: o }));
24
+ )), g = r(({ className: o, ...e }, l) => /* @__PURE__ */ t("p", { className: s("text-base my-auto", o), ref: l, ...e })), f = r(({ icon: o }, e) => /* @__PURE__ */ t(c, { className: "my-auto", size: "sm", ref: e, icon: o }));
25
25
  i.displayName = "Pill";
26
- d.displayName = "Pill.Icon";
26
+ f.displayName = "Pill.Icon";
27
27
  g.displayName = "Chip.Label";
28
28
  const m = Object.assign(i, {
29
- Icon: d,
29
+ Icon: f,
30
30
  Label: g
31
31
  });
32
32
  export {
@@ -1,30 +1,30 @@
1
1
  import { jsx as n, jsxs as c } from "react/jsx-runtime";
2
2
  import { forwardRef as t } from "react";
3
- import l from "clsx";
4
- const o = t(({ id: e, className: m, children: i }, d) => /* @__PURE__ */ n("div", { ref: d, id: e, className: m, children: i })), r = t(
3
+ import o from "clsx";
4
+ const r = t(({ id: e, className: m, children: i }, l) => /* @__PURE__ */ n("div", { ref: l, id: e, className: m, children: i })), s = t(
5
5
  ({ id: e, children: m }, i) => /* @__PURE__ */ n("div", { ref: i, id: e, className: "flex", children: m })
6
- ), s = t(({ className: e, index: m, length: i }) => /* @__PURE__ */ c("div", { className: "hidden sm:block", children: [
6
+ ), a = t(({ className: e, index: m, length: i }, l) => /* @__PURE__ */ c("div", { ref: l, className: "hidden sm:block", children: [
7
7
  /* @__PURE__ */ n(
8
8
  "p",
9
9
  {
10
- className: l("z-10 m-auto mt-12 h-4 w-4 rounded-full", e)
10
+ className: o("z-10 m-auto mt-12 h-4 w-4 rounded-full", e)
11
11
  }
12
12
  ),
13
13
  /* @__PURE__ */ n(
14
14
  "div",
15
15
  {
16
- className: m !== i - 1 ? l("m-auto h-full w-1", e) : "border-r-2 border-transparent"
16
+ className: m !== i - 1 ? o("m-auto h-full w-1", e) : "border-r-2 border-transparent"
17
17
  }
18
18
  )
19
- ] })), a = t(({ children: e }) => /* @__PURE__ */ n("div", { className: "my-2 w-full sm:ml-8", children: e }));
20
- o.displayName = "Timeline";
21
- r.displayName = "Timeline.Item";
22
- s.displayName = "Timeline.Dot";
23
- a.displayName = "Timeline.Content";
24
- const T = Object.assign(o, {
25
- Item: r,
26
- Dot: s,
27
- Content: a
19
+ ] })), d = t(({ children: e }, m) => /* @__PURE__ */ n("div", { ref: m, className: "my-2 w-full sm:ml-8", children: e }));
20
+ r.displayName = "Timeline";
21
+ s.displayName = "Timeline.Item";
22
+ a.displayName = "Timeline.Dot";
23
+ d.displayName = "Timeline.Content";
24
+ const T = Object.assign(r, {
25
+ Item: s,
26
+ Dot: a,
27
+ Content: d
28
28
  });
29
29
  export {
30
30
  T as Timeline