@cagatayfdn/flora-components 0.0.142 → 0.0.145
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/Table.css +1 -1
- package/dist/Table.module-rFa4-NE2.js +29 -0
- package/dist/assets/icons/{icons.js → flora-icons.js} +4 -4
- package/dist/components/Accordion/Accordion.js +5 -5
- package/dist/components/ActionButton/ActionButton.js +1 -1
- package/dist/components/AlertCard/AlertCard.js +5 -5
- package/dist/components/FileUpload/FileUpload.js +1 -1
- package/dist/components/FileUpload/PreviewModal.js +8 -8
- package/dist/components/InfoText/InfoText.js +3 -3
- package/dist/components/Modal/Modal.js +8 -8
- package/dist/components/NavigatorCard/index.js +1 -1
- package/dist/components/Notification/Notification.js +4 -4
- package/dist/components/Pager/Pager.js +6 -6
- package/dist/components/Sidebar/index.js +22 -22
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Table/TableHeader.js +1 -1
- package/dist/components/Table/TableSort.js +2 -2
- package/dist/components/TypographyText/TypographyText.js +1 -1
- package/dist/index.d.mts +76 -76
- package/dist/index.d.ts +76 -76
- package/dist/prodivers.css +1 -1
- package/dist/utils/table.js +12 -12
- package/package.json +1 -1
- package/dist/Table.module-DUqpZOLt.js +0 -29
package/dist/utils/table.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as i } from "../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import "../index-BHf7G3IG.js";
|
|
3
3
|
import "../index-H7XbDVmH.js";
|
|
4
4
|
import "../hooks/useAauth.js";
|
|
5
5
|
import "../assets/images/500_error_2x.gif";
|
|
6
6
|
import a from "../locales/i18n.js";
|
|
7
7
|
import "react";
|
|
8
|
-
import {
|
|
8
|
+
import { FloraIcons as d } from "../assets/icons/flora-icons.js";
|
|
9
9
|
import "../components/Tooltip/Tooltip.js";
|
|
10
10
|
import "../react-toastify.esm-BUWNP7Nm.js";
|
|
11
11
|
import "./date.js";
|
|
@@ -22,41 +22,41 @@ import "../Select-BE_y91ZN.js";
|
|
|
22
22
|
import n from "../components/StatusTag/StatusTag.js";
|
|
23
23
|
import "../components/Switch/Switch.js";
|
|
24
24
|
import "../components/Textarea/Textarea.js";
|
|
25
|
-
const
|
|
25
|
+
const R = {
|
|
26
26
|
status: (t) => ({
|
|
27
27
|
title: a.t("label.status"),
|
|
28
28
|
dataIndex: "status",
|
|
29
29
|
className: "capitalize",
|
|
30
|
-
render: (e) => /* @__PURE__ */
|
|
30
|
+
render: (e) => /* @__PURE__ */ i.jsx(n, { status: t[e], text: e })
|
|
31
31
|
}),
|
|
32
32
|
dateCreated: {
|
|
33
33
|
title: a.t("label.date_created"),
|
|
34
34
|
dataIndex: "created_date",
|
|
35
|
-
render: (t) => /* @__PURE__ */
|
|
35
|
+
render: (t) => /* @__PURE__ */ i.jsx(m, { date: t })
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, S = {
|
|
38
38
|
edit: (t, e) => ({
|
|
39
39
|
title: a.t("label.edit"),
|
|
40
40
|
dataIndex: t,
|
|
41
|
-
render: (o,
|
|
41
|
+
render: (o, r) => /* @__PURE__ */ i.jsx(l, { icon: d.Edit, onClick: () => e(o, r) })
|
|
42
42
|
}),
|
|
43
43
|
delete: (t, e) => ({
|
|
44
44
|
title: a.t("label.delete"),
|
|
45
45
|
dataIndex: t,
|
|
46
|
-
render: (o,
|
|
46
|
+
render: (o, r) => /* @__PURE__ */ i.jsx(l, { icon: d.Trash, onClick: () => e(o, r) })
|
|
47
47
|
}),
|
|
48
48
|
download: (t, e) => ({
|
|
49
49
|
title: a.t("label.export"),
|
|
50
50
|
dataIndex: t,
|
|
51
|
-
render: (o,
|
|
51
|
+
render: (o, r) => /* @__PURE__ */ i.jsx(l, { icon: d.Download, onClick: () => e(o, r) })
|
|
52
52
|
}),
|
|
53
53
|
detail: (t, e) => ({
|
|
54
54
|
title: a.t("label.detail"),
|
|
55
55
|
dataIndex: t,
|
|
56
|
-
render: (o,
|
|
56
|
+
render: (o, r) => /* @__PURE__ */ i.jsx(l, { icon: d.Link, onClick: () => e(o, r) })
|
|
57
57
|
})
|
|
58
58
|
};
|
|
59
59
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
S as TableActions,
|
|
61
|
+
R as TableColumns
|
|
62
62
|
};
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import './Table.css';const t = "_wrapper_xi76o_2", o = "_header_xi76o_2", _ = "_title_xi76o_2", e = "_subTitle_xi76o_2", i = "_table_xi76o_2", s = "_fixed_xi76o_2", n = "_light_xi76o_2", a = "_fixedHeader_xi76o_2", r = "_dark_xi76o_2", c = "_tableWrap_xi76o_2", l = "_actionWrap_xi76o_2", x = "_tableLoading_xi76o_2", d = "_selectedAction_xi76o_2", p = "_rightGroup_xi76o_2", g = "_pageSizeWrap_xi76o_2", b = "_pager_xi76o_2", h = "_size_xi76o_2", u = "_noResult_xi76o_2", W = "_scrollWrap_xi76o_2", f = "_justifyContentEnd_xi76o_2", w = "_width100_xi76o_2", z = "_sort_xi76o_2", y = "_icons_xi76o_2", j = "_sorted_xi76o_2", k = {
|
|
2
|
-
wrapper: t,
|
|
3
|
-
header: o,
|
|
4
|
-
title: _,
|
|
5
|
-
subTitle: e,
|
|
6
|
-
table: i,
|
|
7
|
-
fixed: s,
|
|
8
|
-
light: n,
|
|
9
|
-
fixedHeader: a,
|
|
10
|
-
dark: r,
|
|
11
|
-
tableWrap: c,
|
|
12
|
-
actionWrap: l,
|
|
13
|
-
tableLoading: x,
|
|
14
|
-
selectedAction: d,
|
|
15
|
-
rightGroup: p,
|
|
16
|
-
pageSizeWrap: g,
|
|
17
|
-
pager: b,
|
|
18
|
-
size: h,
|
|
19
|
-
noResult: u,
|
|
20
|
-
scrollWrap: W,
|
|
21
|
-
justifyContentEnd: f,
|
|
22
|
-
width100: w,
|
|
23
|
-
sort: z,
|
|
24
|
-
icons: y,
|
|
25
|
-
sorted: j
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
k as s
|
|
29
|
-
};
|