@cagatayfdn/flora-components 0.0.79 → 0.0.81
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/{TableHeader-B91BXue0.js → TableHeader-Cjx9ZwYH.js} +53 -53
- package/dist/TableHeader.css +1 -1
- 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.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import { useState as x, useEffect as G } from "react";
|
|
3
3
|
import { c as m } from "./index-BHf7G3IG.js";
|
|
4
|
-
import { FormFieldAppearance as
|
|
4
|
+
import { FormFieldAppearance as w, AppearanceButton as R } from "./enums/appearance.js";
|
|
5
5
|
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
|
-
import { S as
|
|
8
|
+
import { S as b } from "./Select-DcLZCXNo.js";
|
|
9
9
|
import { u as z } from "./useTranslation-CnCPcxVj.js";
|
|
10
10
|
import { T as F } from "./Trans-B4ILpbwK.js";
|
|
11
|
-
import './TableHeader.css';const B = "
|
|
11
|
+
import './TableHeader.css';const B = "_wrapper_1tluw_1", D = "_header_1tluw_4", S = "_title_1tluw_7", K = "_subTitle_1tluw_13", M = "_table_1tluw_18", Y = "_fixed_1tluw_24", q = "_light_1tluw_50", C = "_fixedHeader_1tluw_55", J = "_dark_1tluw_65", Q = "_tableWrap_1tluw_71", U = "_actionWrap_1tluw_116", V = "_tableLoading_1tluw_120", X = "_selectedAction_1tluw_130", Z = "_rightGroup_1tluw_137", $ = "_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
12
|
wrapper: B,
|
|
13
13
|
header: D,
|
|
14
14
|
title: S,
|
|
@@ -27,56 +27,56 @@ import './TableHeader.css';const B = "_wrapper_1n4i1_1", D = "_header_1n4i1_4",
|
|
|
27
27
|
pager: I,
|
|
28
28
|
size: O,
|
|
29
29
|
noResult: ee,
|
|
30
|
-
scrollWrap:
|
|
31
|
-
justifyContentEnd:
|
|
30
|
+
scrollWrap: te,
|
|
31
|
+
justifyContentEnd: se,
|
|
32
32
|
width100: ae
|
|
33
|
-
},
|
|
33
|
+
}, le = [
|
|
34
34
|
{ value: "10", label: "10" },
|
|
35
35
|
{ value: "20", label: "20" },
|
|
36
36
|
{ value: "50", label: "50" },
|
|
37
37
|
{ value: "100", label: "100" },
|
|
38
38
|
{ value: "250", label: "250" }
|
|
39
39
|
], me = ({
|
|
40
|
-
totalCount:
|
|
41
|
-
currentPage:
|
|
42
|
-
title:
|
|
43
|
-
actionOnChange:
|
|
44
|
-
className:
|
|
45
|
-
pagerOnChange:
|
|
40
|
+
totalCount: i = 0,
|
|
41
|
+
currentPage: f,
|
|
42
|
+
title: l,
|
|
43
|
+
actionOnChange: r,
|
|
44
|
+
className: h,
|
|
45
|
+
pagerOnChange: j,
|
|
46
46
|
pageSizeOnChange: d,
|
|
47
|
-
pagerVisible:
|
|
48
|
-
pageSizeVisible:
|
|
47
|
+
pagerVisible: g = !0,
|
|
48
|
+
pageSizeVisible: v = !0,
|
|
49
49
|
pageSize: a = 10,
|
|
50
50
|
actionItems: o,
|
|
51
|
-
pageSizeItems:
|
|
52
|
-
headerLeftItem:
|
|
51
|
+
pageSizeItems: W = le,
|
|
52
|
+
headerLeftItem: n,
|
|
53
53
|
customItem: c,
|
|
54
|
-
appearance:
|
|
54
|
+
appearance: T,
|
|
55
55
|
showItemsText: N
|
|
56
56
|
}) => {
|
|
57
|
-
const { t: _ } = z(), [y,
|
|
57
|
+
const { t: _ } = z(), [y, u] = x(!0), [A, p] = x({
|
|
58
58
|
label: a,
|
|
59
59
|
value: a
|
|
60
|
-
}), H = (
|
|
61
|
-
{ value: "exportexel", label:
|
|
62
|
-
], E = (
|
|
63
|
-
|
|
60
|
+
}), H = (s) => [
|
|
61
|
+
{ value: "exportexel", label: s("text.excel_export") }
|
|
62
|
+
], E = (s) => {
|
|
63
|
+
u(!s), r && r(s);
|
|
64
64
|
};
|
|
65
65
|
return o = o || H(_), G(() => {
|
|
66
|
-
|
|
66
|
+
p({ label: a, value: a });
|
|
67
67
|
}, [a]), /* @__PURE__ */ e.jsxs(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
70
|
"data-testid": "tableheader-container",
|
|
71
|
-
className: m(
|
|
72
|
-
"d-flex justify-content-between":
|
|
73
|
-
"d-flex justify-content-end": !
|
|
71
|
+
className: m(t.header, h, {
|
|
72
|
+
"d-flex justify-content-between": l && !r || c,
|
|
73
|
+
"d-flex justify-content-end": !l && !r
|
|
74
74
|
}),
|
|
75
75
|
children: [
|
|
76
|
-
|
|
77
|
-
/* @__PURE__ */ e.jsx(L, { className:
|
|
78
|
-
/* @__PURE__ */ e.jsxs("p", { className:
|
|
79
|
-
|
|
76
|
+
l && /* @__PURE__ */ e.jsxs("div", { children: [
|
|
77
|
+
/* @__PURE__ */ e.jsx(L, { className: t.title, children: l }),
|
|
78
|
+
/* @__PURE__ */ e.jsxs("p", { className: t.subTitle, children: [
|
|
79
|
+
i,
|
|
80
80
|
" ",
|
|
81
81
|
_("text.results_listing")
|
|
82
82
|
] })
|
|
@@ -85,18 +85,18 @@ import './TableHeader.css';const B = "_wrapper_1n4i1_1", D = "_header_1n4i1_4",
|
|
|
85
85
|
/* @__PURE__ */ e.jsx(
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
88
|
-
className: m(
|
|
89
|
-
[
|
|
90
|
-
[
|
|
88
|
+
className: m(t.actionWrap, {
|
|
89
|
+
[t.justifyContentEnd]: !n,
|
|
90
|
+
[t.width100]: n
|
|
91
91
|
}),
|
|
92
92
|
children: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
93
|
-
|
|
93
|
+
r && /* @__PURE__ */ e.jsxs("div", { className: t.selectedAction, children: [
|
|
94
94
|
/* @__PURE__ */ e.jsx(
|
|
95
|
-
|
|
95
|
+
b,
|
|
96
96
|
{
|
|
97
97
|
name: "action",
|
|
98
98
|
items: o,
|
|
99
|
-
appearance:
|
|
99
|
+
appearance: w.LIGHT,
|
|
100
100
|
onChange: E
|
|
101
101
|
}
|
|
102
102
|
),
|
|
@@ -109,40 +109,40 @@ import './TableHeader.css';const B = "_wrapper_1n4i1_1", D = "_header_1n4i1_4",
|
|
|
109
109
|
}
|
|
110
110
|
)
|
|
111
111
|
] }),
|
|
112
|
-
|
|
113
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
114
|
-
|
|
112
|
+
n && n,
|
|
113
|
+
/* @__PURE__ */ e.jsxs("div", { className: t.rightGroup, children: [
|
|
114
|
+
v && /* @__PURE__ */ e.jsxs("div", { className: t.pageSizeWrap, children: [
|
|
115
115
|
/* @__PURE__ */ e.jsx(
|
|
116
|
-
|
|
116
|
+
b,
|
|
117
117
|
{
|
|
118
118
|
name: "action",
|
|
119
119
|
value: A,
|
|
120
|
-
items:
|
|
121
|
-
className:
|
|
120
|
+
items: W,
|
|
121
|
+
className: t.size,
|
|
122
122
|
showPlaceholder: !1,
|
|
123
|
-
onAddItem: ({ item:
|
|
124
|
-
|
|
123
|
+
onAddItem: ({ item: s }) => {
|
|
124
|
+
p(s), d && d(s.value);
|
|
125
125
|
},
|
|
126
|
-
appearance:
|
|
126
|
+
appearance: w.LIGHT
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
129
|
/* @__PURE__ */ e.jsx("span", { children: /* @__PURE__ */ e.jsx(
|
|
130
130
|
F,
|
|
131
131
|
{
|
|
132
132
|
i18nKey: "text.show",
|
|
133
|
-
values: { title: N ||
|
|
133
|
+
values: { title: N || l }
|
|
134
134
|
}
|
|
135
135
|
) })
|
|
136
136
|
] }),
|
|
137
|
-
|
|
137
|
+
g && i > 0 && /* @__PURE__ */ e.jsx(
|
|
138
138
|
k,
|
|
139
139
|
{
|
|
140
|
-
currentPage:
|
|
140
|
+
currentPage: f,
|
|
141
141
|
pageSize: a,
|
|
142
|
-
totalCount:
|
|
143
|
-
onChange:
|
|
144
|
-
appearance:
|
|
145
|
-
className:
|
|
142
|
+
totalCount: i,
|
|
143
|
+
onChange: j,
|
|
144
|
+
appearance: T,
|
|
145
|
+
className: t.pager
|
|
146
146
|
}
|
|
147
147
|
)
|
|
148
148
|
] })
|
|
@@ -155,5 +155,5 @@ import './TableHeader.css';const B = "_wrapper_1n4i1_1", D = "_header_1n4i1_4",
|
|
|
155
155
|
};
|
|
156
156
|
export {
|
|
157
157
|
me as T,
|
|
158
|
-
s
|
|
158
|
+
t as s
|
|
159
159
|
};
|
package/dist/TableHeader.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._wrapper_1tluw_1{position:relative}._wrapper_1tluw_1 ._header_1tluw_4{padding:20px}._wrapper_1tluw_1 ._header_1tluw_4 ._title_1tluw_7{font-size:18px;font-weight:500;color:#062a4a;margin:0}._wrapper_1tluw_1 ._header_1tluw_4 ._subTitle_1tluw_13{margin:0;font-weight:400;color:#788195}._wrapper_1tluw_1 ._table_1tluw_18{width:100%;text-align:left;border-spacing:0px;border-collapse:collapse}._wrapper_1tluw_1 ._table_1tluw_18._fixed_1tluw_24{position:relative}._wrapper_1tluw_1 ._table_1tluw_18._fixed_1tluw_24 th{position:sticky;box-shadow:0 2px 2px -1px #00000080;top:0;background:#333b57;z-index:999}._wrapper_1tluw_1 ._table_1tluw_18 thead{background-color:#f1f3f9}._wrapper_1tluw_1 ._table_1tluw_18 td,._wrapper_1tluw_1 ._table_1tluw_18 th{padding:10px 20px;border:1px solid #eef0f2;color:#3f4b5c}._wrapper_1tluw_1 ._table_1tluw_18 th{font-weight:500;font-size:12px}._wrapper_1tluw_1 ._table_1tluw_18 td{font-weight:400}._wrapper_1tluw_1._light_1tluw_50{background-color:#fff;color:#000;border-radius:10px}._wrapper_1tluw_1._light_1tluw_50 ._table_1tluw_18._fixedHeader_1tluw_55 th{top:0;background:#fff}._wrapper_1tluw_1._light_1tluw_50 ._table_1tluw_18 tbody td{padding:20px}._wrapper_1tluw_1._light_1tluw_50 ._table_1tluw_18 tbody tr:nth-child(2n) td{background-color:#fdfdfd}._wrapper_1tluw_1._dark_1tluw_65 ._header_1tluw_4{padding:20px 12px}._wrapper_1tluw_1._dark_1tluw_65 ._header_1tluw_4 ._title_1tluw_7{color:#fff}._wrapper_1tluw_1._dark_1tluw_65>._tableWrap_1tluw_71{position:relative;border-radius:10px;box-shadow:0 2px 4px #0003;background-color:#333b57;padding:30px;height:100%}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 thead{background:none}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 thead th{border:none}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 td,._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 th{border:none;color:#3f4b5c}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 td:first-child,._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 th:first-child{padding-left:0}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 td:last-child,._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 th:last-child{padding-right:0}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 th{color:#9b9b9b;font-size:11px;font-weight:600;letter-spacing:.39px;text-transform:uppercase;padding-top:0}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 td{color:#eef0f2;font-size:16px;font-weight:500;border-bottom:1px solid #3f4b5c}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 tbody tr:last-child td{border-bottom:none;padding-bottom:0}._wrapper_1tluw_1._dark_1tluw_65 ._actionWrap_1tluw_116{margin-top:0}._tableLoading_1tluw_120{border-radius:10px}._actionWrap_1tluw_116{display:flex;justify-content:space-between;margin-top:10px}._selectedAction_1tluw_130{display:flex}._selectedAction_1tluw_130 button{margin-left:15px}._rightGroup_1tluw_137{display:flex}._pageSizeWrap_1tluw_141{display:inline-flex;align-items:center}._pageSizeWrap_1tluw_141 span{margin-left:10px;font-weight:500;color:#788195}._pager_1tluw_151{margin-left:35px}._size_1tluw_155{max-width:75px}._noResult_1tluw_159{text-align:left;display:flex;font-weight:500;font-size:15px;min-height:60px;align-items:center}._scrollWrap_1tluw_168{max-height:100%!important}._justifyContentEnd_1tluw_172{justify-content:flex-end}._width100_1tluw_176{width:100%}
|
|
@@ -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-Cjx9ZwYH.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-Cjx9ZwYH.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
|
@@ -53,7 +53,7 @@ import { default as oe } from "./Stepper/Stepper.js";
|
|
|
53
53
|
import { default as re } from "./Switch/Switch.js";
|
|
54
54
|
import { default as ae } from "./Tab/Tab.js";
|
|
55
55
|
import { default as le } from "./Table/Table.js";
|
|
56
|
-
import { T as pe } from "../TableHeader-
|
|
56
|
+
import { T as pe } from "../TableHeader-Cjx9ZwYH.js";
|
|
57
57
|
import { default as xe } from "./Textarea/Textarea.js";
|
|
58
58
|
import { default as ue } from "./Tooltip/Tooltip.js";
|
|
59
59
|
import { default as ne } from "./TypographyText/TypographyText.js";
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ import { default as So } from "./components/Stepper/Stepper.js";
|
|
|
58
58
|
import { default as No } from "./components/Switch/Switch.js";
|
|
59
59
|
import { default as Fo } from "./components/Tab/Tab.js";
|
|
60
60
|
import { default as yo } from "./components/Table/Table.js";
|
|
61
|
-
import { T as ho } from "./TableHeader-
|
|
61
|
+
import { T as ho } from "./TableHeader-Cjx9ZwYH.js";
|
|
62
62
|
import { default as bo } from "./components/Textarea/Textarea.js";
|
|
63
63
|
import { default as ko } from "./components/Tooltip/Tooltip.js";
|
|
64
64
|
import { default as Ho } from "./components/TypographyText/TypographyText.js";
|