@pismo/marola 2.1.0 → 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.
- package/dist/DatePicker.module-C9zgeg52.js +46 -0
- package/dist/assets/DatePicker.css +1 -1
- package/dist/components/DatePicker/DatePicker.js +3 -3
- package/dist/components/DatePicker/renderCalendarDays.js +1 -1
- package/dist/components/DatePicker/renderDualCalendarHeader.js +5 -5
- package/dist/components/DatePicker/renderHeader.js +3 -3
- package/dist/components/DatePicker/renderNavigatorInput.js +12 -12
- package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
- package/dist/components/Icon/Icon.js +165 -146
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/TransactionRow/TransactionRow.js +17 -17
- package/dist/components/TransactionRow/TransactionRow.stories.d.ts +1 -0
- package/package.json +32 -17
- package/dist/DatePicker.module-CmT9Zbbu.js +0 -45
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file is automatically generated. Any changes will be lost.
|
|
3
3
|
* run "yarn generate-icon-types" or "yarn build" to regenerate it.
|
|
4
4
|
*/
|
|
5
|
-
export type IconName = 'arrow-down-arrow-up' | 'arrow-down-z-a' | 'arrow-left' | 'arrow-right' | 'arrow-right-to-arc' | 'arrow-up-right-from-square' | 'arrows-rotate' | 'badge-check' | 'bell' | 'building-columns' | 'calendar
|
|
5
|
+
export type IconName = 'arrow-down-arrow-up' | 'arrow-down-z-a' | 'arrow-left' | 'arrow-right' | 'arrow-right-to-arc' | 'arrow-up-right-from-square' | 'arrows-rotate' | 'badge-check' | 'bell' | 'building-columns' | 'calendar-days' | 'check-double' | 'chevron-down' | 'chevron-right' | 'chevron-up' | 'chevrons-right' | 'circle' | 'circle-arrow-right' | 'circle-check' | 'circle-check-outline' | 'circle-exclamation' | 'circle-exclamation-outline' | 'circle-info' | 'circle-minus' | 'circle-x' | 'circle-xmark' | 'circle-xmark-outline' | 'clock' | 'clock-rotate-left' | 'coin' | 'coins' | 'copy' | 'credit-card' | 'credit-card-blank' | 'credit-card-front' | 'download' | 'ellipsis-vertical' | 'empty-img' | 'empty-set' | 'eye' | 'eye-slash' | 'filter-list' | 'folder-magnifying-glass' | 'grid-horizontal' | 'grip-dots-vertical' | 'headphones-simple' | 'house-blank' | 'list' | 'loader' | 'lock-keyhole' | 'lock-keyhole-open' | 'logo' | 'magnifying-glass' | 'map-location-dot' | 'map-pin' | 'mobile-screen-button' | 'money-bill-transfer' | 'money-bill-trend-up' | 'money-bills' | 'notes-medical' | 'paste' | 'pen-to-square' | 'percent' | 'piggy-bank' | 'rectangle-history' | 'rectangle-history-circle-user' | 'rotate' | 'server' | 'sidebar' | 'squirrel' | 'stethoscope' | 'timer' | 'trash' | 'trash-can' | 'upload' | 'user' | 'user-gear' | 'user-group' | 'user-tie' | 'user-tie-hair' | 'user-vneck' | 'users' | 'wallet' | 'warehouse-full' | 'xmark';
|
|
@@ -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
|
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import './assets/DatePicker.css';const e = "_header_57qu7_158", _ = "_calendar_57qu7_104", a = "_weekdayNames_57qu7_186", t = "_days_57qu7_187", n = "_weekdayName_57qu7_186", d = "_day_57qu7_187", o = "_disabled_57qu7_209", r = "_selected_57qu7_209", u = "_faded_57qu7_218", c = "_months_57qu7_256", s = "_years_57qu7_257", q = "_month_57qu7_124", y = "_year_57qu7_257", l = "_rotate_57qu7_337", h = {
|
|
2
|
-
"input-container": "_input-container_57qu7_85",
|
|
3
|
-
"datepicker-input": "_datepicker-input_57qu7_98",
|
|
4
|
-
"calendar-icon": "_calendar-icon_57qu7_104",
|
|
5
|
-
"datepicker-container": "_datepicker-container_57qu7_108",
|
|
6
|
-
"range-mode": "_range-mode_57qu7_121",
|
|
7
|
-
"month-header": "_month-header_57qu7_124",
|
|
8
|
-
"month-header-row": "_month-header-row_57qu7_135",
|
|
9
|
-
"nav-button": "_nav-button_57qu7_147",
|
|
10
|
-
header: e,
|
|
11
|
-
calendar: _,
|
|
12
|
-
weekdayNames: a,
|
|
13
|
-
days: t,
|
|
14
|
-
weekdayName: n,
|
|
15
|
-
day: d,
|
|
16
|
-
disabled: o,
|
|
17
|
-
selected: r,
|
|
18
|
-
"range-start": "_range-start_57qu7_209",
|
|
19
|
-
"range-end": "_range-end_57qu7_209",
|
|
20
|
-
"range-selected": "_range-selected_57qu7_209",
|
|
21
|
-
faded: u,
|
|
22
|
-
months: c,
|
|
23
|
-
years: s,
|
|
24
|
-
month: q,
|
|
25
|
-
year: y,
|
|
26
|
-
"today-footer": "_today-footer_57qu7_296",
|
|
27
|
-
"today-button": "_today-button_57qu7_302",
|
|
28
|
-
rotate: l,
|
|
29
|
-
"current-day": "_current-day_57qu7_341",
|
|
30
|
-
"hovered-range": "_hovered-range_57qu7_346",
|
|
31
|
-
"hovered-date": "_hovered-date_57qu7_351",
|
|
32
|
-
"would-be-end-date": "_would-be-end-date_57qu7_357",
|
|
33
|
-
"would-be-start-date": "_would-be-start-date_57qu7_363",
|
|
34
|
-
"dual-calendar-container": "_dual-calendar-container_57qu7_370",
|
|
35
|
-
"navigator-input": "_navigator-input_57qu7_381",
|
|
36
|
-
"nav-month-button": "_nav-month-button_57qu7_410",
|
|
37
|
-
"nav-year-button": "_nav-year-button_57qu7_411",
|
|
38
|
-
"auto-width": "_auto-width_57qu7_419",
|
|
39
|
-
"month-selector": "_month-selector_57qu7_424",
|
|
40
|
-
"year-selector": "_year-selector_57qu7_425",
|
|
41
|
-
"nav-calendar-static": "_nav-calendar-static_57qu7_457"
|
|
42
|
-
};
|
|
43
|
-
export {
|
|
44
|
-
h as s
|
|
45
|
-
};
|