@cagatayfdn/flora-components 0.0.104 → 0.0.106
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/Accordion.css +1 -1
- package/dist/{TableHeader-Cjx9ZwYH.js → TableHeader-CZpy30xO.js} +43 -43
- package/dist/components/Accordion/Accordion.js +33 -30
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/TableHeader.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/Accordion.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_sjptf_1{border-top:1px solid #495679}._container_sjptf_1:last-child{border-bottom:1px solid #495679}._header_sjptf_8{padding:15px 0;font-size:16px;font-weight:600;color:#fff;display:flex;cursor:pointer;align-items:center;width:100%}._header_sjptf_8:hover{color:#fff}._header_sjptf_8 ._arrow_sjptf_21{font-size:20px;color:#4482ff;margin-right:17px;rotate:0deg}._header_sjptf_8 ._up_sjptf_27{transform:rotate(180deg)}
|
|
@@ -6,24 +6,24 @@ import P from "./components/Button/Button.js";
|
|
|
6
6
|
import L from "./components/Heading/Heading.js";
|
|
7
7
|
import k from "./components/Pager/Pager.js";
|
|
8
8
|
import { S as b } from "./Select-DcLZCXNo.js";
|
|
9
|
-
import { u as
|
|
10
|
-
import { T as
|
|
11
|
-
import './TableHeader.css';const
|
|
12
|
-
wrapper:
|
|
13
|
-
header:
|
|
14
|
-
title:
|
|
15
|
-
subTitle:
|
|
16
|
-
table:
|
|
17
|
-
fixed:
|
|
18
|
-
light:
|
|
19
|
-
fixedHeader:
|
|
20
|
-
dark:
|
|
21
|
-
tableWrap:
|
|
22
|
-
actionWrap:
|
|
23
|
-
tableLoading:
|
|
24
|
-
selectedAction:
|
|
25
|
-
rightGroup:
|
|
26
|
-
pageSizeWrap:
|
|
9
|
+
import { u as F } from "./useTranslation-CnCPcxVj.js";
|
|
10
|
+
import { T as B } from "./Trans-B4ILpbwK.js";
|
|
11
|
+
import './TableHeader.css';const D = "_wrapper_1tluw_1", z = "_header_1tluw_4", K = "_title_1tluw_7", M = "_subTitle_1tluw_13", Y = "_table_1tluw_18", q = "_fixed_1tluw_24", J = "_light_1tluw_50", Q = "_fixedHeader_1tluw_55", S = "_dark_1tluw_65", U = "_tableWrap_1tluw_71", V = "_actionWrap_1tluw_116", X = "_tableLoading_1tluw_120", Z = "_selectedAction_1tluw_130", $ = "_rightGroup_1tluw_137", C = "_pageSizeWrap_1tluw_141", I = "_pager_1tluw_151", O = "_size_1tluw_155", ee = "_noResult_1tluw_159", te = "_scrollWrap_1tluw_168", se = "_justifyContentEnd_1tluw_172", ae = "_width100_1tluw_176", t = {
|
|
12
|
+
wrapper: D,
|
|
13
|
+
header: z,
|
|
14
|
+
title: K,
|
|
15
|
+
subTitle: M,
|
|
16
|
+
table: Y,
|
|
17
|
+
fixed: q,
|
|
18
|
+
light: J,
|
|
19
|
+
fixedHeader: Q,
|
|
20
|
+
dark: S,
|
|
21
|
+
tableWrap: U,
|
|
22
|
+
actionWrap: V,
|
|
23
|
+
tableLoading: X,
|
|
24
|
+
selectedAction: Z,
|
|
25
|
+
rightGroup: $,
|
|
26
|
+
pageSizeWrap: C,
|
|
27
27
|
pager: I,
|
|
28
28
|
size: O,
|
|
29
29
|
noResult: ee,
|
|
@@ -37,34 +37,34 @@ import './TableHeader.css';const B = "_wrapper_1tluw_1", D = "_header_1tluw_4",
|
|
|
37
37
|
{ value: "100", label: "100" },
|
|
38
38
|
{ value: "250", label: "250" }
|
|
39
39
|
], me = ({
|
|
40
|
-
totalCount:
|
|
40
|
+
totalCount: n = 0,
|
|
41
41
|
currentPage: f,
|
|
42
42
|
title: l,
|
|
43
43
|
actionOnChange: r,
|
|
44
44
|
className: h,
|
|
45
45
|
pagerOnChange: j,
|
|
46
46
|
pageSizeOnChange: d,
|
|
47
|
-
pagerVisible:
|
|
48
|
-
pageSizeVisible:
|
|
49
|
-
pageSize:
|
|
47
|
+
pagerVisible: v = !0,
|
|
48
|
+
pageSizeVisible: g = !0,
|
|
49
|
+
pageSize: s = 10,
|
|
50
50
|
actionItems: o,
|
|
51
51
|
pageSizeItems: W = le,
|
|
52
|
-
headerLeftItem:
|
|
52
|
+
headerLeftItem: i,
|
|
53
53
|
customItem: c,
|
|
54
54
|
appearance: T,
|
|
55
55
|
showItemsText: N
|
|
56
56
|
}) => {
|
|
57
|
-
const { t: _ } =
|
|
58
|
-
label:
|
|
59
|
-
value:
|
|
60
|
-
}), H = (
|
|
61
|
-
{ value: "exportexel", label:
|
|
62
|
-
], E = (
|
|
63
|
-
u(!
|
|
57
|
+
const { t: _ } = F(), [y, u] = x(!0), [A, p] = x({
|
|
58
|
+
label: s,
|
|
59
|
+
value: s
|
|
60
|
+
}), H = (a) => [
|
|
61
|
+
{ value: "exportexel", label: a("text.excel_export") }
|
|
62
|
+
], E = (a) => {
|
|
63
|
+
u(!a), r && r(a);
|
|
64
64
|
};
|
|
65
65
|
return o = o || H(_), G(() => {
|
|
66
|
-
p({ label:
|
|
67
|
-
}, [
|
|
66
|
+
p({ label: s, value: s });
|
|
67
|
+
}, [s]), /* @__PURE__ */ e.jsxs(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
70
|
"data-testid": "tableheader-container",
|
|
@@ -76,7 +76,7 @@ import './TableHeader.css';const B = "_wrapper_1tluw_1", D = "_header_1tluw_4",
|
|
|
76
76
|
l && /* @__PURE__ */ e.jsxs("div", { children: [
|
|
77
77
|
/* @__PURE__ */ e.jsx(L, { className: t.title, children: l }),
|
|
78
78
|
/* @__PURE__ */ e.jsxs("p", { className: t.subTitle, children: [
|
|
79
|
-
|
|
79
|
+
n,
|
|
80
80
|
" ",
|
|
81
81
|
_("text.results_listing")
|
|
82
82
|
] })
|
|
@@ -86,8 +86,8 @@ import './TableHeader.css';const B = "_wrapper_1tluw_1", D = "_header_1tluw_4",
|
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
88
88
|
className: m(t.actionWrap, {
|
|
89
|
-
[t.justifyContentEnd]: !
|
|
90
|
-
[t.width100]:
|
|
89
|
+
[t.justifyContentEnd]: !i,
|
|
90
|
+
[t.width100]: i
|
|
91
91
|
}),
|
|
92
92
|
children: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
93
93
|
r && /* @__PURE__ */ e.jsxs("div", { className: t.selectedAction, children: [
|
|
@@ -109,9 +109,9 @@ import './TableHeader.css';const B = "_wrapper_1tluw_1", D = "_header_1tluw_4",
|
|
|
109
109
|
}
|
|
110
110
|
)
|
|
111
111
|
] }),
|
|
112
|
-
|
|
112
|
+
i && i,
|
|
113
113
|
/* @__PURE__ */ e.jsxs("div", { className: t.rightGroup, children: [
|
|
114
|
-
|
|
114
|
+
g && n > s && /* @__PURE__ */ e.jsxs("div", { className: t.pageSizeWrap, children: [
|
|
115
115
|
/* @__PURE__ */ e.jsx(
|
|
116
116
|
b,
|
|
117
117
|
{
|
|
@@ -120,26 +120,26 @@ import './TableHeader.css';const B = "_wrapper_1tluw_1", D = "_header_1tluw_4",
|
|
|
120
120
|
items: W,
|
|
121
121
|
className: t.size,
|
|
122
122
|
showPlaceholder: !1,
|
|
123
|
-
onAddItem: ({ item:
|
|
124
|
-
p(
|
|
123
|
+
onAddItem: ({ item: a }) => {
|
|
124
|
+
p(a), d && d(a.value);
|
|
125
125
|
},
|
|
126
126
|
appearance: w.LIGHT
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
129
|
/* @__PURE__ */ e.jsx("span", { children: /* @__PURE__ */ e.jsx(
|
|
130
|
-
|
|
130
|
+
B,
|
|
131
131
|
{
|
|
132
132
|
i18nKey: "text.show",
|
|
133
133
|
values: { title: N || l }
|
|
134
134
|
}
|
|
135
135
|
) })
|
|
136
136
|
] }),
|
|
137
|
-
|
|
137
|
+
v && n > s && /* @__PURE__ */ e.jsx(
|
|
138
138
|
k,
|
|
139
139
|
{
|
|
140
140
|
currentPage: f,
|
|
141
|
-
pageSize:
|
|
142
|
-
totalCount:
|
|
141
|
+
pageSize: s,
|
|
142
|
+
totalCount: n,
|
|
143
143
|
onChange: j,
|
|
144
144
|
appearance: T,
|
|
145
145
|
className: t.pager
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { j as s } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { c
|
|
4
|
-
import { Icons as
|
|
5
|
-
import
|
|
6
|
-
import '../../Accordion.css';const
|
|
7
|
-
container:
|
|
8
|
-
header:
|
|
9
|
-
arrow:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
import { useState as p } from "react";
|
|
3
|
+
import { c } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import { Icons as j } from "../../assets/icons/icons.js";
|
|
5
|
+
import _ from "../Icon/index.js";
|
|
6
|
+
import '../../Accordion.css';const l = "_container_sjptf_1", f = "_header_sjptf_8", x = "_arrow_sjptf_21", h = "_up_sjptf_27", o = {
|
|
7
|
+
container: l,
|
|
8
|
+
header: f,
|
|
9
|
+
arrow: x,
|
|
10
|
+
up: h
|
|
11
|
+
}, I = ({
|
|
12
|
+
children: t,
|
|
13
|
+
title: a,
|
|
14
|
+
isVisible: i,
|
|
15
|
+
className: d,
|
|
16
|
+
onClick: e,
|
|
17
|
+
customItemRenderer: n
|
|
17
18
|
}) => {
|
|
18
|
-
const [r,
|
|
19
|
+
const [r, m] = p(i);
|
|
19
20
|
return /* @__PURE__ */ s.jsxs(
|
|
20
21
|
"div",
|
|
21
22
|
{
|
|
22
|
-
className:
|
|
23
|
+
className: c(o.container, d, {
|
|
23
24
|
[o.active]: r
|
|
24
25
|
}),
|
|
25
26
|
"data-testid": "accordion-item",
|
|
@@ -29,29 +30,31 @@ import '../../Accordion.css';const x = "_container_1sqyh_1", _ = "_header_1sqyh_
|
|
|
29
30
|
{
|
|
30
31
|
className: o.header,
|
|
31
32
|
onClick: () => {
|
|
32
|
-
|
|
33
|
+
e && e(!r), m(!r);
|
|
33
34
|
},
|
|
34
|
-
children:
|
|
35
|
+
children: n ? n(r) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
35
36
|
/* @__PURE__ */ s.jsx(
|
|
36
|
-
|
|
37
|
+
_,
|
|
37
38
|
{
|
|
38
|
-
name:
|
|
39
|
-
className: o.arrow
|
|
39
|
+
name: j.DownArrow,
|
|
40
|
+
className: c(o.arrow, {
|
|
41
|
+
[o.up]: r
|
|
42
|
+
})
|
|
40
43
|
}
|
|
41
44
|
),
|
|
42
|
-
|
|
45
|
+
a
|
|
43
46
|
] })
|
|
44
47
|
}
|
|
45
48
|
),
|
|
46
|
-
r && /* @__PURE__ */ s.jsx("div", { className: o.content, children:
|
|
49
|
+
r && /* @__PURE__ */ s.jsx("div", { className: o.content, children: t })
|
|
47
50
|
]
|
|
48
51
|
}
|
|
49
52
|
);
|
|
50
|
-
},
|
|
51
|
-
children:
|
|
52
|
-
className:
|
|
53
|
-
}) => /* @__PURE__ */ s.jsx("div", { "data-testid": "accordion", className:
|
|
53
|
+
}, O = ({
|
|
54
|
+
children: t,
|
|
55
|
+
className: a
|
|
56
|
+
}) => /* @__PURE__ */ s.jsx("div", { "data-testid": "accordion", className: c(o.accordionWrap, a), children: t });
|
|
54
57
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
O as Accordion,
|
|
59
|
+
I as AccordionItem
|
|
57
60
|
};
|
|
@@ -2,7 +2,7 @@ import { j as s } from "../../jsx-runtime-BcAkpsdy.js";
|
|
|
2
2
|
import { useState as Q, useEffect as Y } from "react";
|
|
3
3
|
import Z from "../NoResult/NoResult.js";
|
|
4
4
|
import { c as g } from "../../index-BHf7G3IG.js";
|
|
5
|
-
import { s as c, T as H } from "../../TableHeader-
|
|
5
|
+
import { s as c, T as H } from "../../TableHeader-CZpy30xO.js";
|
|
6
6
|
import { ThemeAppearance as L, AppearanceSpinner as T } from "../../enums/appearance.js";
|
|
7
7
|
import A from "../Checkbox/Checkbox.js";
|
|
8
8
|
import I from "../Loading/Loading.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../index-BHf7G3IG.js";
|
|
4
|
-
import { T as u } from "../../TableHeader-
|
|
4
|
+
import { T as u } from "../../TableHeader-CZpy30xO.js";
|
|
5
5
|
import "../../enums/appearance.js";
|
|
6
6
|
import "../Button/Button.js";
|
|
7
7
|
import "../Heading/Heading.js";
|
package/dist/components/index.js
CHANGED
|
@@ -56,7 +56,7 @@ import { default as le } from "./Stepper/Stepper.js";
|
|
|
56
56
|
import { default as pe } from "./Switch/Switch.js";
|
|
57
57
|
import { default as xe } from "./Tab/Tab.js";
|
|
58
58
|
import { default as ue } from "./Table/Table.js";
|
|
59
|
-
import { T as ne } from "../TableHeader-
|
|
59
|
+
import { T as ne } from "../TableHeader-CZpy30xO.js";
|
|
60
60
|
import { default as Ce } from "./Textarea/Textarea.js";
|
|
61
61
|
import { default as Te } from "./Tooltip/Tooltip.js";
|
|
62
62
|
import { default as Se } from "./TypographyText/TypographyText.js";
|
package/dist/index.js
CHANGED
|
@@ -61,7 +61,7 @@ import { default as yr } from "./components/Stepper/Stepper.js";
|
|
|
61
61
|
import { default as hr } from "./components/Switch/Switch.js";
|
|
62
62
|
import { default as wr } from "./components/Tab/Tab.js";
|
|
63
63
|
import { default as Br } from "./components/Table/Table.js";
|
|
64
|
-
import { T as Hr } from "./TableHeader-
|
|
64
|
+
import { T as Hr } from "./TableHeader-CZpy30xO.js";
|
|
65
65
|
import { default as Vr } from "./components/Textarea/Textarea.js";
|
|
66
66
|
import { default as jr } from "./components/Tooltip/Tooltip.js";
|
|
67
67
|
import { default as Kr } from "./components/TypographyText/TypographyText.js";
|