@cagatayfdn/flora-components 0.0.83 → 0.0.85

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
1
  import { j as l } from "../../jsx-runtime-BcAkpsdy.js";
2
- import { N as x } from "../../index-C9yacAGx.js";
3
- import { g as c } from "../../index-a0GSBrWt.js";
2
+ import { N as x } from "../../index-CPAJmTI5.js";
3
+ import { g as c } from "../../index-9ZLCCecr.js";
4
4
  const v = ({
5
5
  to: o,
6
6
  params: i,
@@ -4,22 +4,22 @@ import x from "../AuthUserCan/index.js";
4
4
  import w from "../Icon/index.js";
5
5
  import { Icons as h } from "../../assets/icons/icons.js";
6
6
  import { c as n } from "../../index-BHf7G3IG.js";
7
- import { s as a, M as d } from "../../MenuItem-DAf7NU3h.js";
8
- import { a as y } from "../../index-a0GSBrWt.js";
7
+ import { s as r, M as d } from "../../MenuItem-DAf7NU3h.js";
8
+ import { u as y } from "../../index-9ZLCCecr.js";
9
9
  const g = ({
10
- collapsed: r = !1,
10
+ collapsed: a = !1,
11
11
  items: j,
12
12
  className: v,
13
13
  isActiveSubMenu: M
14
14
  }) => {
15
15
  const { pathname: o } = y(), [I, t] = T(M);
16
16
  return k(() => {
17
- r && t(void 0);
18
- }, [r]), /* @__PURE__ */ e.jsx("div", { className: n(a.wrap, v), "data-testid": "sidebar-container", children: /* @__PURE__ */ e.jsx(
17
+ a && t(void 0);
18
+ }, [a]), /* @__PURE__ */ e.jsx("div", { className: n(r.wrap, v), "data-testid": "sidebar-container", children: /* @__PURE__ */ e.jsx(
19
19
  "ul",
20
20
  {
21
- className: n(a.menu, {
22
- [a.closeMenu]: r
21
+ className: n(r.menu, {
22
+ [r.closeMenu]: a
23
23
  }),
24
24
  "data-testid": "sidebar-list",
25
25
  children: j.map(({ to: l, icon: m, title: u, permItem: N, permType: C, children: i }) => {
@@ -29,28 +29,28 @@ const g = ({
29
29
  "li",
30
30
  {
31
31
  "data-testid": "sidebar-list-item",
32
- className: n(a.menuItem, {
33
- [a.selected]: S,
34
- [a.subMenuWrap]: i
32
+ className: n(r.menuItem, {
33
+ [r.selected]: S,
34
+ [r.subMenuWrap]: i
35
35
  }),
36
36
  onMouseEnter: () => {
37
- i && r && t(u);
37
+ i && a && t(u);
38
38
  },
39
39
  onMouseLeave: () => {
40
- i && r && t(void 0);
40
+ i && a && t(void 0);
41
41
  },
42
42
  children: i ? /* @__PURE__ */ e.jsxs(
43
43
  "div",
44
44
  {
45
45
  className: n({
46
- [a.opened]: c
46
+ [r.opened]: c
47
47
  }),
48
48
  children: [
49
49
  /* @__PURE__ */ e.jsxs(
50
50
  "span",
51
51
  {
52
52
  onClick: () => {
53
- r || t(c ? void 0 : u);
53
+ a || t(c ? void 0 : u);
54
54
  },
55
55
  children: [
56
56
  /* @__PURE__ */ e.jsx(
@@ -62,11 +62,11 @@ const g = ({
62
62
  visibleTooltip: !1
63
63
  }
64
64
  ),
65
- !r && /* @__PURE__ */ e.jsx(
65
+ !a && /* @__PURE__ */ e.jsx(
66
66
  "span",
67
67
  {
68
- className: n(a.arrow, {
69
- [a.up]: c
68
+ className: n(r.arrow, {
69
+ [r.up]: c
70
70
  }),
71
71
  children: /* @__PURE__ */ e.jsx(w, { name: h.DownArrow })
72
72
  }
@@ -77,8 +77,8 @@ const g = ({
77
77
  c && /* @__PURE__ */ e.jsx(
78
78
  "ul",
79
79
  {
80
- className: n(a.subMenu, {
81
- [a.hover]: r
80
+ className: n(r.subMenu, {
81
+ [r.hover]: a
82
82
  }),
83
83
  "data-testid": "sidebar-submenu-list",
84
84
  children: i == null ? void 0 : i.map((s) => {
@@ -94,10 +94,10 @@ const g = ({
94
94
  {
95
95
  "data-testid": "sidebar-submenu-list-item",
96
96
  onClick: () => {
97
- s.onClick && s.onClick(), r && t(void 0);
97
+ s.onClick && s.onClick(), a && t(void 0);
98
98
  },
99
- className: n(a.menuItem, {
100
- [a.selected]: A || (s == null ? void 0 : s.isItemSelected)
99
+ className: n(r.menuItem, {
100
+ [r.selected]: A || (s == null ? void 0 : s.isItemSelected)
101
101
  }),
102
102
  children: /* @__PURE__ */ e.jsx(
103
103
  d,
@@ -123,7 +123,7 @@ const g = ({
123
123
  to: l,
124
124
  title: u,
125
125
  icon: m,
126
- visibleTooltip: r
126
+ visibleTooltip: a
127
127
  }
128
128
  )
129
129
  }
@@ -1,5 +1,5 @@
1
1
  import { j as r } from "../../jsx-runtime-BcAkpsdy.js";
2
- import { L as w } from "../../index-C9yacAGx.js";
2
+ import { L as w } from "../../index-CPAJmTI5.js";
3
3
  import { c as f } from "../../index-BHf7G3IG.js";
4
4
  import { Icons as h } from "../../assets/icons/icons.js";
5
5
  import _ from "../Icon/index.js";
@@ -348,7 +348,7 @@ export {
348
348
  Q as D,
349
349
  v as N,
350
350
  g as R,
351
- V as a,
351
+ H as a,
352
352
  oe as b,
353
353
  C as c,
354
354
  ue as d,
@@ -359,6 +359,6 @@ export {
359
359
  L as j,
360
360
  se as m,
361
361
  ie as s,
362
- H as u,
362
+ V as u,
363
363
  m as w
364
364
  };
@@ -1,6 +1,6 @@
1
1
  import * as m from "react";
2
2
  import "react-dom";
3
- import { u as D, a as I, D as Y, N as F, s as E, i as S, m as W, w as j, b as J, c as Q, d as Z, e as A, f as $, R as ee, j as te } from "./index-a0GSBrWt.js";
3
+ import { a as D, u as I, D as Y, N as F, s as E, i as S, m as W, w as j, b as J, c as Q, d as Z, e as A, f as $, R as ee, j as te } from "./index-9ZLCCecr.js";
4
4
  /**
5
5
  * React Router DOM v6.22.0
6
6
  *