@pismo/marola 2.1.1 → 2.1.2
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,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { Avatar as
|
|
3
|
-
import { Icon as
|
|
2
|
+
import { Avatar as l } from "../Avatar/Avatar.js";
|
|
3
|
+
import { Icon as h } from "../Icon/Icon.js";
|
|
4
4
|
import { Typography as r } from "../Typography/Typography.js";
|
|
5
5
|
import '../../assets/TransactionRow.css';const f = "_container_1zn5j_1", n = {
|
|
6
6
|
container: f,
|
|
@@ -11,33 +11,33 @@ import '../../assets/TransactionRow.css';const f = "_container_1zn5j_1", n = {
|
|
|
11
11
|
"info-section--item": "_info-section--item_1zn5j_29",
|
|
12
12
|
"info-section--right": "_info-section--right_1zn5j_36"
|
|
13
13
|
}, j = ({
|
|
14
|
-
dateTime:
|
|
15
|
-
category:
|
|
16
|
-
name:
|
|
14
|
+
dateTime: v,
|
|
15
|
+
category: c,
|
|
16
|
+
name: o,
|
|
17
17
|
type: m,
|
|
18
|
-
installments:
|
|
19
|
-
amount:
|
|
18
|
+
installments: t,
|
|
19
|
+
amount: s,
|
|
20
20
|
month: g,
|
|
21
|
-
icon:
|
|
21
|
+
icon: d,
|
|
22
22
|
onClick: e,
|
|
23
23
|
isPendingTransaction: _
|
|
24
24
|
}) => _ ? /* @__PURE__ */ i("div", { className: n.container, children: /* @__PURE__ */ a("div", { className: n["container-pending"], onClick: () => e == null ? void 0 : e(), children: [
|
|
25
|
-
/* @__PURE__ */ i(
|
|
26
|
-
/* @__PURE__ */ i("div", { className: n["info-section"], children: /* @__PURE__ */ i("div", { className: n["info-section--item"], children: /* @__PURE__ */ i(r, { color: "var(--gray-95)", variant: "base", children:
|
|
27
|
-
/* @__PURE__ */ i("div", { className: n["container-pending--right"], children: /* @__PURE__ */ i(r, { bold: !0, color: "var(--gray-95)", variant: "base", children:
|
|
25
|
+
/* @__PURE__ */ i(l, { type: "icon", children: /* @__PURE__ */ i(h, { icon: d || "clock" }) }),
|
|
26
|
+
/* @__PURE__ */ i("div", { className: n["info-section"], children: /* @__PURE__ */ i("div", { className: n["info-section--item"], children: /* @__PURE__ */ i(r, { color: "var(--gray-95)", variant: "base", children: o }) }) }),
|
|
27
|
+
/* @__PURE__ */ i("div", { className: n["container-pending--right"], children: /* @__PURE__ */ i(r, { bold: !0, color: "var(--gray-95)", variant: "base", children: s }) })
|
|
28
28
|
] }) }) : /* @__PURE__ */ i("div", { className: n.container, children: /* @__PURE__ */ a("div", { onClick: () => e == null ? void 0 : e(), className: n["container-grid"], children: [
|
|
29
29
|
/* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(r, { color: "var(--gray-95)", variant: "base", children: g }) }),
|
|
30
|
-
/* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(r, { color: "var(--gray-95)", variant: "base", children:
|
|
31
|
-
/* @__PURE__ */ i(
|
|
30
|
+
/* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(r, { color: "var(--gray-95)", variant: "base", children: v }) }),
|
|
31
|
+
/* @__PURE__ */ i(l, { type: "icon", children: /* @__PURE__ */ i(h, { icon: d || "coin" }) }),
|
|
32
32
|
/* @__PURE__ */ a("div", { className: n["info-section"], children: [
|
|
33
|
-
/* @__PURE__ */ i("div", { className: n["info-section--item"], children: /* @__PURE__ */ i(r, { color: "var(--gray-95)", variant: "base", children:
|
|
34
|
-
/* @__PURE__ */ i("div", { className: n["info-section--item"], children: /* @__PURE__ */ i(r, { color: "var(--gray-95)", variant: "base", children:
|
|
33
|
+
/* @__PURE__ */ i("div", { className: n["info-section--item"], children: /* @__PURE__ */ i(r, { color: "var(--gray-95)", variant: "base", children: o }) }),
|
|
34
|
+
c && /* @__PURE__ */ i("div", { className: n["info-section--item"], children: /* @__PURE__ */ i(r, { color: "var(--gray-95)", variant: "base", children: c }) })
|
|
35
35
|
] }),
|
|
36
36
|
/* @__PURE__ */ a("div", { className: n["info-section--right"], children: [
|
|
37
|
-
|
|
37
|
+
t && /* @__PURE__ */ i("div", { className: n["info-section--item"], children: /* @__PURE__ */ i(r, { color: "var(--gray-95)", variant: "base", children: t }) }),
|
|
38
38
|
/* @__PURE__ */ i("div", { className: n["info-section--item"], children: /* @__PURE__ */ i(r, { color: "var(--gray-95)", variant: "base", children: m }) })
|
|
39
39
|
] }),
|
|
40
|
-
/* @__PURE__ */ i("div", { className: n["info-section--right"], children: /* @__PURE__ */ i(r, { bold: !0, variant: "base", children:
|
|
40
|
+
/* @__PURE__ */ i("div", { className: n["info-section--right"], children: /* @__PURE__ */ i(r, { bold: !0, variant: "base", children: s }) })
|
|
41
41
|
] }) });
|
|
42
42
|
export {
|
|
43
43
|
j as TransactionRow
|
|
@@ -23,6 +23,7 @@ type Story = StoryObj<typeof meta>;
|
|
|
23
23
|
export declare const Simple: Story;
|
|
24
24
|
export declare const WithMonth: Story;
|
|
25
25
|
export declare const WithInstallments: Story;
|
|
26
|
+
export declare const WithoutCategory: Story;
|
|
26
27
|
export declare const WithTwoCurrencies: Story;
|
|
27
28
|
export declare const WithLargeAmount: Story;
|
|
28
29
|
export declare const IsPending: Story;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pismo/marola",
|
|
3
3
|
"description": "CDX tribe component library",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"prepublishOnly": "npm run build",
|
|
26
26
|
"test": "yarn test:unit",
|
|
27
27
|
"test:unit": "vitest run",
|
|
28
|
-
"test:unit:visual": "vitest-preview",
|
|
29
28
|
"test:unit:watch": "vitest",
|
|
30
29
|
"test:e2e": "echo \"no test implemented\"",
|
|
31
30
|
"coverage": "vitest run --coverage",
|
|
@@ -45,17 +44,17 @@
|
|
|
45
44
|
"@commitlint/cli": "^19.3.0",
|
|
46
45
|
"@commitlint/config-conventional": "^19.2.2",
|
|
47
46
|
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
|
|
48
|
-
"@storybook/addon-a11y": "^8.
|
|
49
|
-
"@storybook/addon-essentials": "^8.
|
|
50
|
-
"@storybook/addon-interactions": "^8.
|
|
51
|
-
"@storybook/addon-links": "^8.
|
|
52
|
-
"@storybook/blocks": "^8.
|
|
53
|
-
"@storybook/manager-api": "^8.
|
|
54
|
-
"@storybook/preview-api": "^8.
|
|
55
|
-
"@storybook/react": "^8.
|
|
56
|
-
"@storybook/react-vite": "^8.
|
|
57
|
-
"@storybook/test": "^8.
|
|
58
|
-
"@storybook/theming": "^8.
|
|
47
|
+
"@storybook/addon-a11y": "^8.6.14",
|
|
48
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
49
|
+
"@storybook/addon-interactions": "^8.6.14",
|
|
50
|
+
"@storybook/addon-links": "^8.6.14",
|
|
51
|
+
"@storybook/blocks": "^8.6.14",
|
|
52
|
+
"@storybook/manager-api": "^8.6.14",
|
|
53
|
+
"@storybook/preview-api": "^8.6.14",
|
|
54
|
+
"@storybook/react": "^8.6.14",
|
|
55
|
+
"@storybook/react-vite": "^8.6.14",
|
|
56
|
+
"@storybook/test": "^8.6.14",
|
|
57
|
+
"@storybook/theming": "^8.6.14",
|
|
59
58
|
"@testing-library/jest-dom": "^6.4.6",
|
|
60
59
|
"@testing-library/react": "^15.0.5",
|
|
61
60
|
"@types/node": "^20.12.2",
|
|
@@ -83,22 +82,38 @@
|
|
|
83
82
|
"react": "^18.2.0",
|
|
84
83
|
"react-dom": "^18.2.0",
|
|
85
84
|
"sass": "^1.72.0",
|
|
86
|
-
"storybook": "^8.
|
|
85
|
+
"storybook": "^8.6.14",
|
|
87
86
|
"stylelint": "^16.3.1",
|
|
88
87
|
"stylelint-config-recess-order": "^5.0.0",
|
|
89
88
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
90
89
|
"stylelint-prettier": "^5.0.0",
|
|
91
90
|
"typescript": "^5.2.2",
|
|
92
|
-
"vite": "^6.
|
|
91
|
+
"vite": "^6.3.5",
|
|
93
92
|
"vite-plugin-dts": "^4.5.3",
|
|
94
93
|
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
95
94
|
"vite-plugin-svgr": "^4.3.0",
|
|
96
|
-
"vitest": "^3.
|
|
97
|
-
"vitest-preview": "^0.0.1"
|
|
95
|
+
"vitest": "^3.1.4"
|
|
98
96
|
},
|
|
99
97
|
"dependencies": {
|
|
100
98
|
"@base-ui-components/react": "^1.0.0-alpha.6",
|
|
101
99
|
"@mui/base": "^5.0.0-beta.40",
|
|
102
100
|
"@mui/material": "^5.15.15"
|
|
101
|
+
},
|
|
102
|
+
"resolutions": {
|
|
103
|
+
"@babel/helpers": "^7.27.1",
|
|
104
|
+
"body-parser": "^2.2.0",
|
|
105
|
+
"braces": "^3.0.3",
|
|
106
|
+
"cookie": "^1.0.2",
|
|
107
|
+
"cross-spawn": "^7.0.6",
|
|
108
|
+
"esbuild": "^0.25.3",
|
|
109
|
+
"express": "^5.1.0",
|
|
110
|
+
"micromatch": "^4.0.8",
|
|
111
|
+
"nanoid": "^3.3.11",
|
|
112
|
+
"path-to-regexp": "^0.1.12",
|
|
113
|
+
"rollup": "^4.40.1",
|
|
114
|
+
"send": "^1.2.0",
|
|
115
|
+
"serve-static": "^2.2.0",
|
|
116
|
+
"vite": "^6.3.5",
|
|
117
|
+
"ws": "^8.18.1"
|
|
103
118
|
}
|
|
104
119
|
}
|
|
File without changes
|