@cagatayfdn/flora-components 0.0.82 → 0.0.84
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.
- package/dist/components/PermaLink/PermaLink.js +2 -2
- package/dist/components/Sidebar/index.js +23 -23
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/{index-a0GSBrWt.js → index-9ZLCCecr.js} +2 -2
- package/dist/{index-C9yacAGx.js → index-CPAJmTI5.js} +1 -1
- package/dist/index-JNaMEwgt.js +1413 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +93 -90
- package/dist/utils/date.js +264 -266
- package/dist/utils/helper.js +34 -1442
- package/dist/utils/index.js +18 -15
- package/dist/utils/language.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as l } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { N as x } from "../../index-
|
|
3
|
-
import { g as c } from "../../index-
|
|
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
|
|
8
|
-
import {
|
|
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:
|
|
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
|
-
|
|
18
|
-
}, [
|
|
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(
|
|
22
|
-
[
|
|
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(
|
|
33
|
-
[
|
|
34
|
-
[
|
|
32
|
+
className: n(r.menuItem, {
|
|
33
|
+
[r.selected]: S,
|
|
34
|
+
[r.subMenuWrap]: i
|
|
35
35
|
}),
|
|
36
36
|
onMouseEnter: () => {
|
|
37
|
-
i &&
|
|
37
|
+
i && a && t(u);
|
|
38
38
|
},
|
|
39
39
|
onMouseLeave: () => {
|
|
40
|
-
i &&
|
|
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
|
-
[
|
|
46
|
+
[r.opened]: c
|
|
47
47
|
}),
|
|
48
48
|
children: [
|
|
49
49
|
/* @__PURE__ */ e.jsxs(
|
|
50
50
|
"span",
|
|
51
51
|
{
|
|
52
52
|
onClick: () => {
|
|
53
|
-
|
|
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
|
-
!
|
|
65
|
+
!a && /* @__PURE__ */ e.jsx(
|
|
66
66
|
"span",
|
|
67
67
|
{
|
|
68
|
-
className: n(
|
|
69
|
-
[
|
|
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(
|
|
81
|
-
[
|
|
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(),
|
|
97
|
+
s.onClick && s.onClick(), a && t(void 0);
|
|
98
98
|
},
|
|
99
|
-
className: n(
|
|
100
|
-
[
|
|
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:
|
|
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-
|
|
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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
2
|
import "react-dom";
|
|
3
|
-
import {
|
|
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
|
*
|