@pismo/marola 2.1.45 → 2.1.46
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 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_1wc4o_1{width:100%;height:56px;border-top:1px solid var(--border-secondary)}._container-grid_1wc4o_6{display:grid;grid-template-columns:1fr 1.5fr .5fr 4.5fr 2.5fr 2fr;align-items:center;justify-content:space-between;padding:12px 16px}._container-pending_1wc4o_13{display:flex;align-items:center;justify-content:flex-start;padding:12px 16px}._container-pending--right_1wc4o_19{margin-left:auto}._container_1wc4o_1 :hover{cursor:pointer;background-color:var(--border-secondary)}._info-section_1wc4o_27,._info-section--content_1wc4o_31{width:100%;overflow:hidden}._info-section--item_1wc4o_35{display:inline-flex;flex-shrink:0;padding-left:8px}._info-section--item_1wc4o_35:not(:last-child){flex-shrink:0}._info-section--item_1wc4o_35:last-child{flex-shrink:1;min-width:0;overflow:hidden}._info-section--item_1wc4o_35:not(:first-child){margin-left:8px;border-left:1px solid var(--border-secondary)}._info-section--right_1wc4o_52{display:flex;justify-content:flex-end}._info-section_1wc4o_27 ._truncate-text_1wc4o_56{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._info-section_1wc4o_27 ._separator_1wc4o_63{display:inline-block;width:1px;height:16px;margin:0 8px;vertical-align:middle;background-color:var(--border-secondary)}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as s } from "react/jsx-runtime";
|
|
2
2
|
import { Avatar as _ } from "../Avatar/Avatar.js";
|
|
3
3
|
import { Icon as y } from "../Icon/Icon.js";
|
|
4
4
|
import { SkeletonCircle as f, Skeleton as r } from "../Skeleton/Skeleton.js";
|
|
5
5
|
import { Typography as a } from "../Typography/Typography.js";
|
|
6
|
-
import '../../assets/TransactionRow.css';const
|
|
7
|
-
container:
|
|
8
|
-
"container-grid": "_container-
|
|
9
|
-
"container-pending": "_container-
|
|
10
|
-
"container-pending--right": "_container-pending--
|
|
11
|
-
"info-section": "_info-
|
|
12
|
-
"info-section--content": "_info-section--
|
|
13
|
-
"info-section--item": "_info-section--
|
|
14
|
-
"info-section--right": "_info-section--
|
|
15
|
-
"truncate-text": "_truncate-
|
|
16
|
-
separator:
|
|
6
|
+
import '../../assets/TransactionRow.css';const b = "_container_1wc4o_1", k = "_separator_1wc4o_63", n = {
|
|
7
|
+
container: b,
|
|
8
|
+
"container-grid": "_container-grid_1wc4o_6",
|
|
9
|
+
"container-pending": "_container-pending_1wc4o_13",
|
|
10
|
+
"container-pending--right": "_container-pending--right_1wc4o_19",
|
|
11
|
+
"info-section": "_info-section_1wc4o_27",
|
|
12
|
+
"info-section--content": "_info-section--content_1wc4o_31",
|
|
13
|
+
"info-section--item": "_info-section--item_1wc4o_35",
|
|
14
|
+
"info-section--right": "_info-section--right_1wc4o_52",
|
|
15
|
+
"truncate-text": "_truncate-text_1wc4o_56",
|
|
16
|
+
separator: k
|
|
17
17
|
}, D = ({
|
|
18
18
|
dateTime: g,
|
|
19
19
|
category: l,
|
|
20
20
|
categoryType: d,
|
|
21
21
|
name: h,
|
|
22
|
-
type:
|
|
23
|
-
installments:
|
|
24
|
-
amount:
|
|
25
|
-
month:
|
|
26
|
-
icon:
|
|
27
|
-
onClick:
|
|
28
|
-
isPendingTransaction:
|
|
22
|
+
type: w,
|
|
23
|
+
installments: m,
|
|
24
|
+
amount: p,
|
|
25
|
+
month: N,
|
|
26
|
+
icon: v,
|
|
27
|
+
onClick: o,
|
|
28
|
+
isPendingTransaction: $,
|
|
29
29
|
isLoading: i = !1,
|
|
30
30
|
"data-testid": t = "Description"
|
|
31
|
-
}) =>
|
|
32
|
-
i ? /* @__PURE__ */ e(f, { size: "32px", "data-testid": `${t}-skeletonIcon` }) : /* @__PURE__ */ e(_, { type: "icon", children: /* @__PURE__ */ e(y, { icon:
|
|
31
|
+
}) => $ ? /* @__PURE__ */ e("div", { className: n.container, children: /* @__PURE__ */ c("div", { className: n["container-pending"], onClick: () => o == null ? void 0 : o(), children: [
|
|
32
|
+
i ? /* @__PURE__ */ e(f, { size: "32px", "data-testid": `${t}-skeletonIcon` }) : /* @__PURE__ */ e(_, { type: "icon", children: /* @__PURE__ */ e(y, { icon: v || "clock" }) }),
|
|
33
33
|
/* @__PURE__ */ e("div", { className: n["info-section"], children: /* @__PURE__ */ e("div", { className: n["info-section--item"], children: i ? /* @__PURE__ */ e(r, { style: { width: 140 }, "data-testid": `${t}-skeletonName` }) : /* @__PURE__ */ e(a, { color: "var(--gray-95)", variant: "base", "data-testid": `${t}-content`, children: h }) }) }),
|
|
34
|
-
/* @__PURE__ */ e("div", { className: n["container-pending--right"], children: i ? /* @__PURE__ */ e(r, { style: { width: 70 }, "data-testid": `${t}-skeletonAmount` }) : /* @__PURE__ */ e(a, { bold: !0, color: "var(--gray-95)", variant: "base", children:
|
|
35
|
-
] }) }) : /* @__PURE__ */ e("div", { className: n.container, children: /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */ e("div", { children: i ? /* @__PURE__ */ e(r, { style: { width: 50 }, "data-testid": `${t}-skeletonMonth` }) : /* @__PURE__ */ e(a, { color: "var(--gray-95)", variant: "base", children:
|
|
34
|
+
/* @__PURE__ */ e("div", { className: n["container-pending--right"], children: i ? /* @__PURE__ */ e(r, { style: { width: 70 }, "data-testid": `${t}-skeletonAmount` }) : /* @__PURE__ */ e(a, { bold: !0, color: "var(--gray-95)", variant: "base", children: p }) })
|
|
35
|
+
] }) }) : /* @__PURE__ */ e("div", { className: n.container, children: /* @__PURE__ */ c("div", { onClick: () => o == null ? void 0 : o(), className: n["container-grid"], children: [
|
|
36
|
+
/* @__PURE__ */ e("div", { children: i ? /* @__PURE__ */ e(r, { style: { width: 50 }, "data-testid": `${t}-skeletonMonth` }) : /* @__PURE__ */ e(a, { color: "var(--gray-95)", variant: "base", children: N }) }),
|
|
37
37
|
/* @__PURE__ */ e("div", { children: i ? /* @__PURE__ */ e(r, { style: { width: 90 }, "data-testid": `${t}-skeletonDate` }) : /* @__PURE__ */ e(a, { color: "var(--gray-95)", variant: "base", children: g }) }),
|
|
38
|
-
i ? /* @__PURE__ */ e(f, { size: "32px", "data-testid": `${t}-skeletonIcon` }) : /* @__PURE__ */ e(_, { type: "icon", children: /* @__PURE__ */ e(y, { icon:
|
|
39
|
-
/* @__PURE__ */ e("div", { className: n["info-section"], children: /* @__PURE__ */ e("div", { className: n["info-section--content"], children: i ? /* @__PURE__ */ s
|
|
38
|
+
i ? /* @__PURE__ */ e(f, { size: "32px", "data-testid": `${t}-skeletonIcon` }) : /* @__PURE__ */ e(_, { type: "icon", children: /* @__PURE__ */ e(y, { icon: v || "coin" }) }),
|
|
39
|
+
/* @__PURE__ */ e("div", { className: n["info-section"], children: /* @__PURE__ */ e("div", { className: n["info-section--content"], children: i ? /* @__PURE__ */ c(s, { children: [
|
|
40
40
|
/* @__PURE__ */ e(
|
|
41
41
|
r,
|
|
42
42
|
{
|
|
@@ -58,7 +58,7 @@ import '../../assets/TransactionRow.css';const k = "_container_sv3th_1", w = "_s
|
|
|
58
58
|
"data-testid": `${t}-skeletonCategoryType`
|
|
59
59
|
}
|
|
60
60
|
)
|
|
61
|
-
] }) : /* @__PURE__ */
|
|
61
|
+
] }) : /* @__PURE__ */ c(
|
|
62
62
|
a,
|
|
63
63
|
{
|
|
64
64
|
color: "var(--gray-95)",
|
|
@@ -67,22 +67,22 @@ import '../../assets/TransactionRow.css';const k = "_container_sv3th_1", w = "_s
|
|
|
67
67
|
"data-testid": `${t}-content`,
|
|
68
68
|
children: [
|
|
69
69
|
/* @__PURE__ */ e("span", { "data-testid": `${t}-name`, children: h }),
|
|
70
|
-
l && /* @__PURE__ */ s
|
|
70
|
+
l && /* @__PURE__ */ c(s, { children: [
|
|
71
71
|
/* @__PURE__ */ e("span", { className: n.separator }),
|
|
72
72
|
/* @__PURE__ */ e("span", { "data-testid": `${t}-category`, children: l })
|
|
73
73
|
] }),
|
|
74
|
-
d && /* @__PURE__ */ s
|
|
74
|
+
d && /* @__PURE__ */ c(s, { children: [
|
|
75
75
|
/* @__PURE__ */ e("span", { className: n.separator }),
|
|
76
76
|
/* @__PURE__ */ e("span", { "data-testid": `${t}-categoryType`, children: d })
|
|
77
77
|
] })
|
|
78
78
|
]
|
|
79
79
|
}
|
|
80
80
|
) }) }),
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
|
|
83
|
-
/* @__PURE__ */ e("div", { className: n["info-section--item"], children: i ? /* @__PURE__ */ e(r, { style: { width: 70 }, "data-testid": `${t}-skeletonType` }) : /* @__PURE__ */ e(a, { color: "var(--gray-95)", variant: "base", children:
|
|
81
|
+
/* @__PURE__ */ c("div", { className: n["info-section--right"], children: [
|
|
82
|
+
m && /* @__PURE__ */ e("div", { className: n["info-section--item"], children: i ? /* @__PURE__ */ e(r, { style: { width: 70 }, "data-testid": `${t}-skeletonInstallments` }) : /* @__PURE__ */ e(a, { color: "var(--gray-95)", variant: "base", children: m }) }),
|
|
83
|
+
/* @__PURE__ */ e("div", { className: n["info-section--item"], children: i ? /* @__PURE__ */ e(r, { style: { width: 70 }, "data-testid": `${t}-skeletonType` }) : /* @__PURE__ */ e(a, { color: "var(--gray-95)", variant: "base", children: w }) })
|
|
84
84
|
] }),
|
|
85
|
-
/* @__PURE__ */ e("div", { className: n["info-section--right"], children: i ? /* @__PURE__ */ e(r, { style: { width: 140 }, "data-testid": `${t}-skeletonAmount` }) : /* @__PURE__ */ e(a, { bold: !0, variant: "base", children:
|
|
85
|
+
/* @__PURE__ */ e("div", { className: n["info-section--right"], children: i ? /* @__PURE__ */ e(r, { style: { width: 140 }, "data-testid": `${t}-skeletonAmount` }) : /* @__PURE__ */ e(a, { bold: !0, variant: "base", children: p }) })
|
|
86
86
|
] }) });
|
|
87
87
|
export {
|
|
88
88
|
D as TransactionRow
|