trepur_components 2.3.32 → 2.3.33

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.
@@ -2,17 +2,17 @@ import { jsx as e, jsxs as p, Fragment as H } from "react/jsx-runtime";
2
2
  import { createContext as w, forwardRef as l, useState as v, useMemo as C, useContext as m, useRef as k } from "react";
3
3
  import { HamburgerIcon as M } from "../HamburgerIcon/index.js";
4
4
  import { faChevronDown as j } from "@fortawesome/fontawesome-free-solid";
5
- import n from "clsx";
5
+ import d from "clsx";
6
6
  import { Icon as D } from "../Icon/index.js";
7
7
  import { NavItem as F } from "../NavItem/index.js";
8
8
  const i = w(null), N = l(({ className: t, children: r, loading: a }, o) => {
9
- const [s, d] = v(!1), c = C(
9
+ const [s, n] = v(!1), c = C(
10
10
  () => ({
11
11
  expanded: s,
12
- setExpanded: d,
12
+ setExpanded: n,
13
13
  loading: a
14
14
  }),
15
- [s, d, a]
15
+ [s, n, a]
16
16
  );
17
17
  return /* @__PURE__ */ e(i.Provider, { value: c, children: /* @__PURE__ */ e("div", { className: t, ref: o, children: r }) });
18
18
  }), f = l(
@@ -20,18 +20,18 @@ const i = w(null), N = l(({ className: t, children: r, loading: a }, o) => {
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),
23
+ className: d("relative h-24 w-full bg-nav-bg px-2 py-2", t),
24
24
  children: r
25
25
  }
26
26
  )
27
27
  ), g = l(({ className: t, children: r }, a) => {
28
- const { loading: o, setExpanded: s, expanded: d } = m(i) || {};
29
- return /* @__PURE__ */ p("div", { ref: a, className: n("flex h-full md:hidden", t), children: [
28
+ const { loading: o, setExpanded: s, expanded: n } = m(i) || {};
29
+ return /* @__PURE__ */ p("div", { ref: a, className: d("flex h-full lg:hidden", t), children: [
30
30
  !o && /* @__PURE__ */ e("div", { className: "my-auto", children: /* @__PURE__ */ e(
31
31
  M,
32
32
  {
33
33
  variant: "ghost",
34
- onClick: () => s == null ? void 0 : s(!d),
34
+ onClick: () => s == null ? void 0 : s(!n),
35
35
  className: "aspect-square"
36
36
  }
37
37
  ) }),
@@ -41,8 +41,8 @@ const i = w(null), N = l(({ className: t, children: r, loading: a }, o) => {
41
41
  "div",
42
42
  {
43
43
  ref: a,
44
- className: n(
45
- "hidden justify-between md:flex md:gap-4 md:px-4 lg:gap-8 lg:px-20",
44
+ className: d(
45
+ "hidden justify-between lg:flex md:gap-4 md:px-4 lg:gap-8 lg:px-20",
46
46
  t
47
47
  ),
48
48
  children: r
@@ -54,7 +54,7 @@ const i = w(null), N = l(({ className: t, children: r, loading: a }, o) => {
54
54
  "div",
55
55
  {
56
56
  ref: a,
57
- className: n(
57
+ className: d(
58
58
  "h-screen bg-nav-bg px-8 pb-12 pt-2 md:hidden",
59
59
  t
60
60
  ),
@@ -69,28 +69,28 @@ const i = w(null), N = l(({ className: t, children: r, loading: a }, o) => {
69
69
  "div",
70
70
  {
71
71
  ref: a,
72
- className: n("my-4 md:flex md:gap-4 lg:gap-6", t),
73
- children: [...Array(5)].map((s, d) => /* @__PURE__ */ e(F, { loading: !0 }, d))
72
+ className: d("my-4 md:flex md:gap-4 lg:gap-6", t),
73
+ children: [...Array(5)].map((s, n) => /* @__PURE__ */ e(F, { loading: !0 }, n))
74
74
  }
75
75
  ) : /* @__PURE__ */ e(
76
76
  "div",
77
77
  {
78
78
  ref: a,
79
- className: n("my-4 md:flex md:gap-4 lg:gap-6", t),
79
+ className: d("my-4 md:flex md:gap-4 lg:gap-6", t),
80
80
  children: r
81
81
  }
82
82
  );
83
83
  }
84
84
  ), b = l(({ className: t, label: r, children: a, active: o = !1 }) => {
85
- const [s, d] = v(!1), c = k(null);
85
+ const [s, n] = v(!1), c = k(null);
86
86
  return /* @__PURE__ */ p(
87
87
  "div",
88
88
  {
89
89
  ref: c,
90
- onMouseEnter: () => d(!0),
91
- onMouseLeave: () => d(!1),
92
- onClick: () => d(!s),
93
- className: n(
90
+ onMouseEnter: () => n(!0),
91
+ onMouseLeave: () => n(!1),
92
+ onClick: () => n(!s),
93
+ className: d(
94
94
  "relative m-auto py-0 text-nav-text md: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",
95
95
  {
96
96
  "font-bold": o,
@@ -112,7 +112,7 @@ const i = w(null), N = l(({ className: t, children: r, loading: a }, o) => {
112
112
  return s ? /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "h-20 w-20 animate-pulse bg-gray-300" }) }) : /* @__PURE__ */ e(
113
113
  "img",
114
114
  {
115
- className: n("h-20 flex-none", t),
115
+ className: d("h-20 flex-none", t),
116
116
  ref: o,
117
117
  src: r,
118
118
  ...a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trepur_components",
3
- "version": "2.3.32",
3
+ "version": "2.3.33",
4
4
  "description": "component lib",
5
5
  "author": "trepur_ttenneb",
6
6
  "private": false,