@pismo/marola 1.0.12 → 1.0.14
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/assets/Avatar.css +1 -1
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/TransactionRow.css +1 -0
- package/dist/components/Avatar/Avatar.js +34 -34
- package/dist/components/Avatar/Avatar.stories.d.ts +1 -1
- package/dist/components/Icon/Icon.js +127 -115
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/PageHeader/PageHeader.js +68 -68
- package/dist/components/TransactionRow/TransactionRow.d.ts +16 -0
- package/dist/components/TransactionRow/TransactionRow.js +45 -0
- package/dist/components/TransactionRow/TransactionRow.stories.d.ts +29 -0
- package/dist/components/TransactionRow/TransactionRow.test.d.ts +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +32 -30
- package/dist/marola.css +1 -1
- package/package.json +1 -1
package/dist/assets/Avatar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._u-typography-
|
|
1
|
+
._u-typography-h1_fk6lm_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_fk6lm_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_fk6lm_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_fk6lm_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_fk6lm_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_fk6lm_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_fk6lm_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_fk6lm_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_fk6lm_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_fk6lm_57,._avatar_fk6lm_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_fk6lm_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_fk6lm_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_fk6lm_68{text-decoration:line-through}._u-typography-base--underlined_fk6lm_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_fk6lm_74{text-decoration:underline line-through}._avatar_fk6lm_57{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background-color:var(--avatar-background)}._avatar--large_fk6lm_86{width:40px;height:40px}._avatar--default_fk6lm_90{width:32px;height:32px}._avatar--small_fk6lm_94{width:24px;height:24px}._avatar--custom_fk6lm_98{width:var(--avatar-custom-size);height:var(--avatar-custom-size)}._avatar--circle_fk6lm_102{border-radius:50%}._avatar--square_fk6lm_105{border-radius:6px}._avatar__icon_fk6lm_108,._avatar__image_fk6lm_108,._avatar__text_fk6lm_108{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--white-100)}._avatar__image_fk6lm_108 img{width:100%;height:100%;object-fit:cover}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._u-typography-
|
|
1
|
+
._u-typography-h1_18adz_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_18adz_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_18adz_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_18adz_22,._page-header__main-left-content_18adz_22 ._title_18adz_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_18adz_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_18adz_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_18adz_43,._page-header__main-left-content_18adz_22 ._subtitle_18adz_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_18adz_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_18adz_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_18adz_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_18adz_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_18adz_65,._page-header__main-left-content_18adz_22 ._title_18adz_22{font-weight:var(--base-bold)}._u-typography-base--strikethrough_18adz_68{text-decoration:line-through}._u-typography-base--underlined_18adz_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_18adz_74{text-decoration:underline line-through}._page-header_18adz_22{display:flex;flex-direction:column;justify-content:center;width:100%;min-height:7.375rem;background:var(--cream);-webkit-font-smoothing:antialiased!important}._page-header_18adz_22:has(._page-header__top-content_18adz_87){justify-content:flex-start}._page-header__top-content_18adz_87,._page-header__main-content_18adz_90,._page-header__bottom-content_18adz_90{width:64rem;max-width:100%;margin:0 auto}._page-header__top-content_18adz_87{padding:1rem 0 .5rem}._page-header__top-content_18adz_87 button{width:fit-content;height:1.125rem;padding:0;line-height:1.125rem}._page-header__breadcrumb_18adz_104{display:flex;gap:.5rem;align-items:center}._page-header__breadcrumb_18adz_104 button{color:var(--gray-95)}._page-header__breadcrumb_18adz_104 button:hover:enabled{color:var(--hover)}._page-header__breadcrumb__separator_18adz_115{height:1.125rem;padding:0;line-height:1.125rem}._page-header__main-content_18adz_90{position:relative;display:flex}._page-header__main-left-content_18adz_22{display:flex;flex:1;flex-direction:column;justify-content:center}._page-header__main-left-content_18adz_22 ._title_18adz_22,._page-header__main-left-content_18adz_22 ._subtitle_18adz_43{display:block;width:100%;padding:0;margin:0;color:var(--gray-90)}._page-header__main-left-content_18adz_22 ._account-header_18adz_138{flex:1}._page-header__main-left-content_18adz_22 ._account-header--container_18adz_141{position:absolute;max-width:80%;height:5.75rem;background-color:var(--white-100);border:1px solid var(--border-secondary);border-radius:8px}._page-header__main-right-content_18adz_149{display:flex;align-items:center;margin-bottom:1.125rem}._page-header__bottom-content_18adz_90{margin-top:.8125rem}._account-header-margin_18adz_158{margin-bottom:16px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_1zn5j_1{width:100%;height:56px;border-top:1px solid var(--border-secondary)}._container-grid_1zn5j_6{display:grid;grid-template-columns:1fr 2fr .5fr 4fr 2fr 2fr;align-items:center;justify-content:space-between;padding:12px 16px}._container-pending_1zn5j_13{display:flex;align-items:center;justify-content:flex-start;padding:12px 16px}._container-pending--right_1zn5j_19{margin-left:auto}._container_1zn5j_1 :hover{background-color:var(--border-secondary)}._info-section_1zn5j_26{display:flex}._info-section--item_1zn5j_29{padding-left:8px}._info-section--item_1zn5j_29:not(:first-child){margin-left:8px;border-left:1px solid var(--border-secondary)}._info-section--right_1zn5j_36{display:flex;justify-content:flex-end}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import '../../assets/Avatar.css';
|
|
2
2
|
import { jsxs as v, jsx as _ } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as c, useMemo as
|
|
4
|
-
import { c as
|
|
5
|
-
const
|
|
6
|
-
"u-typography-h1": "_u-typography-
|
|
7
|
-
"u-typography-h2": "_u-typography-
|
|
8
|
-
"u-typography-h3": "_u-typography-
|
|
9
|
-
"u-typography-h4": "_u-typography-
|
|
10
|
-
"u-typography-h5": "_u-typography-
|
|
11
|
-
"u-typography-h6": "_u-typography-
|
|
12
|
-
"u-typography-base": "_u-typography-
|
|
13
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
14
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
15
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
16
|
-
avatar:
|
|
17
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
18
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
19
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
20
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
21
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
22
|
-
"avatar--large": "_avatar--
|
|
23
|
-
"avatar--default": "_avatar--
|
|
24
|
-
"avatar--small": "_avatar--
|
|
25
|
-
"avatar--custom": "_avatar--
|
|
26
|
-
"avatar--circle": "_avatar--
|
|
27
|
-
"avatar--square": "_avatar--
|
|
28
|
-
avatar__icon:
|
|
29
|
-
avatar__image:
|
|
30
|
-
avatar__text:
|
|
31
|
-
}, $ = c((h,
|
|
32
|
-
const { type: e, size: a = "default", shape:
|
|
3
|
+
import { forwardRef as c, useMemo as l } from "react";
|
|
4
|
+
import { c as f } from "../../clsx-DB4S2d7J.js";
|
|
5
|
+
const n = "_avatar_fk6lm_57", d = "_avatar__icon_fk6lm_108", k = "_avatar__image_fk6lm_108", b = "_avatar__text_fk6lm_108", t = {
|
|
6
|
+
"u-typography-h1": "_u-typography-h1_fk6lm_1",
|
|
7
|
+
"u-typography-h2": "_u-typography-h2_fk6lm_8",
|
|
8
|
+
"u-typography-h3": "_u-typography-h3_fk6lm_15",
|
|
9
|
+
"u-typography-h4": "_u-typography-h4_fk6lm_22",
|
|
10
|
+
"u-typography-h5": "_u-typography-h5_fk6lm_29",
|
|
11
|
+
"u-typography-h6": "_u-typography-h6_fk6lm_36",
|
|
12
|
+
"u-typography-base": "_u-typography-base_fk6lm_43",
|
|
13
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_fk6lm_49",
|
|
14
|
+
"u-typography-base--xl": "_u-typography-base--xl_fk6lm_53",
|
|
15
|
+
"u-typography-base--lg": "_u-typography-base--lg_fk6lm_57",
|
|
16
|
+
avatar: n,
|
|
17
|
+
"u-typography-base--sm": "_u-typography-base--sm_fk6lm_61",
|
|
18
|
+
"u-typography-base--bold": "_u-typography-base--bold_fk6lm_65",
|
|
19
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_fk6lm_68",
|
|
20
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_fk6lm_71",
|
|
21
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_fk6lm_74",
|
|
22
|
+
"avatar--large": "_avatar--large_fk6lm_86",
|
|
23
|
+
"avatar--default": "_avatar--default_fk6lm_90",
|
|
24
|
+
"avatar--small": "_avatar--small_fk6lm_94",
|
|
25
|
+
"avatar--custom": "_avatar--custom_fk6lm_98",
|
|
26
|
+
"avatar--circle": "_avatar--circle_fk6lm_102",
|
|
27
|
+
"avatar--square": "_avatar--square_fk6lm_105",
|
|
28
|
+
avatar__icon: d,
|
|
29
|
+
avatar__image: k,
|
|
30
|
+
avatar__text: b
|
|
31
|
+
}, $ = c((h, m) => {
|
|
32
|
+
const { type: e, size: a = "default", shape: o = "circle", children: s, className: p, "data-testid": u } = h, r = typeof a == "number", g = l(
|
|
33
33
|
() => ({
|
|
34
34
|
width: r ? a : void 0,
|
|
35
35
|
height: r ? a : void 0,
|
|
36
36
|
"--avatar-custom-size": r ? `${a}px` : void 0
|
|
37
37
|
}),
|
|
38
38
|
[a, r]
|
|
39
|
-
),
|
|
40
|
-
() =>
|
|
41
|
-
[
|
|
39
|
+
), y = r ? "custom" : a, i = l(
|
|
40
|
+
() => f(t.avatar, t[`avatar--${y}`], t[`avatar--${o}`], p),
|
|
41
|
+
[y, o, p]
|
|
42
42
|
);
|
|
43
|
-
return /* @__PURE__ */ v("div", { ref:
|
|
43
|
+
return /* @__PURE__ */ v("div", { ref: m, style: g, className: i, "data-testid": u, children: [
|
|
44
44
|
e === "icon" && /* @__PURE__ */ _("span", { className: t.avatar__icon, children: s }),
|
|
45
45
|
e === "image" && /* @__PURE__ */ _("div", { className: t.avatar__image, children: /* @__PURE__ */ _("img", { src: s, alt: "avatar" }) }),
|
|
46
46
|
e === "text" && /* @__PURE__ */ _("span", { className: t.avatar__text, children: s })
|
|
@@ -17,7 +17,7 @@ declare const meta: {
|
|
|
17
17
|
};
|
|
18
18
|
export default meta;
|
|
19
19
|
type Story = StoryObj<typeof meta>;
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const WithIcon: Story;
|
|
21
21
|
export declare const Image: Story;
|
|
22
22
|
export declare const Text: Story;
|
|
23
23
|
export declare const CustomSize: Story;
|