@pismo/marola 1.0.14 → 1.0.15
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/PageHeader.css +1 -1
- package/dist/components/Chip/Chip.stories.d.ts +1 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +1 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +1 -1
- package/dist/components/PageHeader/PageHeader.js +62 -62
- package/dist/components/Popover/Popover.stories.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.stories.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/components/Typography/Typography.stories.d.ts +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
._u-typography-
|
|
1
|
+
._u-typography-h1_18vai_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_18vai_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_18vai_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_18vai_22,._page-header__main-left-content_18vai_22 ._title_18vai_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_18vai_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_18vai_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_18vai_43,._page-header__main-left-content_18vai_22 ._subtitle_18vai_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_18vai_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_18vai_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_18vai_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_18vai_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_18vai_65,._page-header__main-left-content_18vai_22 ._title_18vai_22{font-weight:var(--base-bold)}._u-typography-base--strikethrough_18vai_68{text-decoration:line-through}._u-typography-base--underlined_18vai_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_18vai_74{text-decoration:underline line-through}._page-header_18vai_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_18vai_22:has(._page-header__top-content_18vai_87){justify-content:flex-start}._page-header__top-content_18vai_87,._page-header__main-content_18vai_90,._page-header__bottom-content_18vai_90{width:64rem;max-width:100%;margin:0 auto}._page-header__top-content_18vai_87{display:flex;align-items:center;justify-content:space-between;padding:1rem 0 .5rem}._page-header__top-content_18vai_87 button{width:fit-content;height:1.125rem;padding:0;line-height:1.125rem}._page-header__breadcrumb_18vai_107{display:flex;gap:.5rem;align-items:center}._page-header__breadcrumb_18vai_107 button{color:var(--gray-95)}._page-header__breadcrumb_18vai_107 button:hover:enabled{color:var(--hover)}._page-header__breadcrumb__separator_18vai_118{height:1.125rem;padding:0;line-height:1.125rem}._page-header__main-content_18vai_90{position:relative;display:flex}._page-header__main-left-content_18vai_22{display:flex;flex:1;flex-direction:column;justify-content:center}._page-header__main-left-content_18vai_22 ._title_18vai_22,._page-header__main-left-content_18vai_22 ._subtitle_18vai_43{display:block;width:100%;padding:0;margin:0;color:var(--gray-90)}._page-header__main-left-content_18vai_22 ._account-header_18vai_141{flex:1}._page-header__main-left-content_18vai_22 ._account-header--container_18vai_144{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_18vai_152{display:flex;align-items:center}._page-header__bottom-content_18vai_90{margin-top:.8125rem}._account-header-margin_18vai_160{margin-bottom:16px}
|
|
@@ -4,7 +4,7 @@ declare const meta: {
|
|
|
4
4
|
title: string;
|
|
5
5
|
component: import('react').ForwardRefExoticComponent<import('./Chip').ChipProps & import('react').RefAttributes<unknown>>;
|
|
6
6
|
tags: string[];
|
|
7
|
-
decorators: ((Story: import('@storybook/
|
|
7
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
8
8
|
label: import('react').ReactNode;
|
|
9
9
|
loading?: boolean | undefined;
|
|
10
10
|
leftAdornment?: import('../Adornment/Adornment').AdornmentProps | undefined;
|
|
@@ -5,7 +5,7 @@ declare const meta: {
|
|
|
5
5
|
title: string;
|
|
6
6
|
component: ({ open, onClose, title, subtitle, content, cancelAction, confirmAction, confirmLabel, cancelLabel, }: ConfirmationDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
tags: string[];
|
|
8
|
-
decorators: ((Story: import('@storybook/
|
|
8
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
9
9
|
open: boolean;
|
|
10
10
|
onClose: () => void;
|
|
11
11
|
title?: import('react').ReactNode;
|
|
@@ -10,7 +10,7 @@ declare const meta: {
|
|
|
10
10
|
Actions: import('react').FunctionComponent<import('./Actions').DialogActionProps>;
|
|
11
11
|
};
|
|
12
12
|
tags: string[];
|
|
13
|
-
decorators: ((Story: import('@storybook/
|
|
13
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
14
14
|
color?: string | undefined;
|
|
15
15
|
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
16
16
|
children: import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> & import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<unknown>>;
|
|
@@ -8,7 +8,7 @@ declare const meta: {
|
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: string;
|
|
10
10
|
};
|
|
11
|
-
decorators: ((Story: import('@storybook/
|
|
11
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
12
12
|
children: import('react').ReactNode;
|
|
13
13
|
title: import('react').ReactNode;
|
|
14
14
|
style?: import('react').CSSProperties | undefined;
|
|
@@ -4,7 +4,7 @@ declare const meta: {
|
|
|
4
4
|
title: string;
|
|
5
5
|
component: ({ invert, classNames }: import('./LoadingSpinner').LoadingSpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
|
-
decorators: ((Story: import('@storybook/
|
|
7
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
8
8
|
invert?: boolean | undefined;
|
|
9
9
|
classNames?: string | undefined;
|
|
10
10
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import '../../assets/PageHeader.css';
|
|
2
|
-
import {
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { c as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { IconButton as
|
|
7
|
-
const
|
|
8
|
-
"u-typography-h1": "_u-typography-
|
|
9
|
-
"u-typography-h2": "_u-typography-
|
|
10
|
-
"u-typography-h3": "_u-typography-
|
|
11
|
-
"u-typography-h4": "_u-typography-
|
|
12
|
-
"page-header__main-left-content": "_page-header__main-left-
|
|
13
|
-
title:
|
|
14
|
-
"u-typography-h5": "_u-typography-
|
|
15
|
-
"u-typography-h6": "_u-typography-
|
|
16
|
-
"u-typography-base": "_u-typography-
|
|
17
|
-
subtitle:
|
|
18
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
19
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
20
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
21
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
22
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
23
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
24
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
25
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
26
|
-
"page-header": "_page-
|
|
27
|
-
"page-header__top-content": "_page-header__top-
|
|
28
|
-
"page-header__main-content": "_page-header__main-
|
|
29
|
-
"page-header__bottom-content": "_page-header__bottom-
|
|
30
|
-
"page-header__breadcrumb": "_page-
|
|
31
|
-
"page-header__breadcrumb__separator": "_page-
|
|
32
|
-
"account-header": "_account-
|
|
33
|
-
"account-header--container": "_account-header--
|
|
34
|
-
"page-header__main-right-content": "_page-header__main-right-
|
|
35
|
-
"account-header-margin": "_account-header-
|
|
2
|
+
import { jsxs as d, jsx as a, Fragment as l } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as H } from "react";
|
|
4
|
+
import { c as i } from "../../clsx-DB4S2d7J.js";
|
|
5
|
+
import { Icon as I } from "../Icon/Icon.js";
|
|
6
|
+
import { IconButton as T } from "../IconButton/IconButton.js";
|
|
7
|
+
const $ = "_title_18vai_22", q = "_subtitle_18vai_43", e = {
|
|
8
|
+
"u-typography-h1": "_u-typography-h1_18vai_1",
|
|
9
|
+
"u-typography-h2": "_u-typography-h2_18vai_8",
|
|
10
|
+
"u-typography-h3": "_u-typography-h3_18vai_15",
|
|
11
|
+
"u-typography-h4": "_u-typography-h4_18vai_22",
|
|
12
|
+
"page-header__main-left-content": "_page-header__main-left-content_18vai_22",
|
|
13
|
+
title: $,
|
|
14
|
+
"u-typography-h5": "_u-typography-h5_18vai_29",
|
|
15
|
+
"u-typography-h6": "_u-typography-h6_18vai_36",
|
|
16
|
+
"u-typography-base": "_u-typography-base_18vai_43",
|
|
17
|
+
subtitle: q,
|
|
18
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_18vai_49",
|
|
19
|
+
"u-typography-base--xl": "_u-typography-base--xl_18vai_53",
|
|
20
|
+
"u-typography-base--lg": "_u-typography-base--lg_18vai_57",
|
|
21
|
+
"u-typography-base--sm": "_u-typography-base--sm_18vai_61",
|
|
22
|
+
"u-typography-base--bold": "_u-typography-base--bold_18vai_65",
|
|
23
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_18vai_68",
|
|
24
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_18vai_71",
|
|
25
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_18vai_74",
|
|
26
|
+
"page-header": "_page-header_18vai_22",
|
|
27
|
+
"page-header__top-content": "_page-header__top-content_18vai_87",
|
|
28
|
+
"page-header__main-content": "_page-header__main-content_18vai_90",
|
|
29
|
+
"page-header__bottom-content": "_page-header__bottom-content_18vai_90",
|
|
30
|
+
"page-header__breadcrumb": "_page-header__breadcrumb_18vai_107",
|
|
31
|
+
"page-header__breadcrumb__separator": "_page-header__breadcrumb__separator_18vai_118",
|
|
32
|
+
"account-header": "_account-header_18vai_141",
|
|
33
|
+
"account-header--container": "_account-header--container_18vai_144",
|
|
34
|
+
"page-header__main-right-content": "_page-header__main-right-content_18vai_152",
|
|
35
|
+
"account-header-margin": "_account-header-margin_18vai_160"
|
|
36
36
|
}, D = ({
|
|
37
37
|
title: n,
|
|
38
38
|
subtitle: g,
|
|
39
39
|
rightChildren: u,
|
|
40
40
|
bottomChildren: o,
|
|
41
41
|
classNameWrapper: y,
|
|
42
|
-
classNameTitle:
|
|
42
|
+
classNameTitle: v,
|
|
43
43
|
classNameSubtitle: k,
|
|
44
44
|
headerBubble: r,
|
|
45
45
|
"data-testid-wrapper": N,
|
|
46
46
|
"data-testid-title": f,
|
|
47
|
-
"data-testid-subtitle":
|
|
48
|
-
"data-testid-account-header":
|
|
49
|
-
...
|
|
47
|
+
"data-testid-subtitle": x,
|
|
48
|
+
"data-testid-account-header": C,
|
|
49
|
+
...L
|
|
50
50
|
}) => {
|
|
51
51
|
const {
|
|
52
52
|
breadcrumb: h,
|
|
@@ -54,38 +54,38 @@ const T = "_title_18adz_22", $ = "_subtitle_18adz_43", e = {
|
|
|
54
54
|
onBackLinkClick: p,
|
|
55
55
|
classNameBackLink: m,
|
|
56
56
|
"data-testid-backLink": b,
|
|
57
|
-
...
|
|
58
|
-
} =
|
|
57
|
+
...w
|
|
58
|
+
} = L;
|
|
59
59
|
r && (n || g || o) && console.error("headerBubble prop can not be used with title, subtitle or bottomChildren"), !r && !n && console.error("title prop is required when not using headerBubble");
|
|
60
|
-
const
|
|
60
|
+
const j = r ? i([e["page-header"], y, e["account-header-margin"]]) : i([e["page-header"], y]), B = H(() => {
|
|
61
61
|
const _ = [];
|
|
62
62
|
return s && p && _.push({
|
|
63
63
|
label: s,
|
|
64
64
|
className: m,
|
|
65
65
|
"data-testid": b,
|
|
66
66
|
onClick: p
|
|
67
|
-
}), h && _.push(...h), /* @__PURE__ */
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
return /* @__PURE__ */ a(i, { children: /* @__PURE__ */ l("div", { className: w, "data-testid": N, ...L, children: [
|
|
81
|
-
j,
|
|
82
|
-
/* @__PURE__ */ l("div", { className: e["page-header__main-content"], children: [
|
|
83
|
-
/* @__PURE__ */ a("div", { className: e["page-header__main-left-content"], children: r ? /* @__PURE__ */ a(i, { children: /* @__PURE__ */ a("div", { className: e["account-header"], children: /* @__PURE__ */ a("div", { className: e["account-header--container"], "data-testid": x, children: r }) }) }) : /* @__PURE__ */ l(i, { children: [
|
|
84
|
-
/* @__PURE__ */ a("h1", { className: d(e.title, z), "data-testid": f, children: n }),
|
|
85
|
-
/* @__PURE__ */ a("h2", { className: d(e.subtitle, k), "data-testid": v, children: g })
|
|
86
|
-
] }) }),
|
|
67
|
+
}), h && _.push(...h), /* @__PURE__ */ d("div", { className: e["page-header__top-content"], children: [
|
|
68
|
+
/* @__PURE__ */ a("div", { className: e["page-header__breadcrumb"], children: _.map((t, c) => /* @__PURE__ */ a(
|
|
69
|
+
T,
|
|
70
|
+
{
|
|
71
|
+
icon: c === 0 ? /* @__PURE__ */ a(I, { icon: "house-blank" }) : /* @__PURE__ */ a("span", { className: e["page-header__breadcrumb__separator"], children: "/" }),
|
|
72
|
+
onClick: () => t.onClick && t.onClick(),
|
|
73
|
+
className: t.className,
|
|
74
|
+
"data-testid": t["data-testid"],
|
|
75
|
+
disabled: _.length === 1 ? !1 : c === _.length - 1,
|
|
76
|
+
children: t.label
|
|
77
|
+
},
|
|
78
|
+
`${t.label}_${c}`
|
|
79
|
+
)) }),
|
|
87
80
|
u && /* @__PURE__ */ a("div", { className: e["page-header__main-right-content"], children: u })
|
|
88
|
-
] })
|
|
81
|
+
] });
|
|
82
|
+
}, [h, s, m, b, p]);
|
|
83
|
+
return /* @__PURE__ */ a(l, { children: /* @__PURE__ */ d("div", { className: j, "data-testid": N, ...w, children: [
|
|
84
|
+
B,
|
|
85
|
+
/* @__PURE__ */ a("div", { className: e["page-header__main-content"], children: /* @__PURE__ */ a("div", { className: e["page-header__main-left-content"], children: r ? /* @__PURE__ */ a(l, { children: /* @__PURE__ */ a("div", { className: e["account-header"], children: /* @__PURE__ */ a("div", { className: e["account-header--container"], "data-testid": C, children: r }) }) }) : /* @__PURE__ */ d(l, { children: [
|
|
86
|
+
/* @__PURE__ */ a("h1", { className: i(e.title, v), "data-testid": f, children: n }),
|
|
87
|
+
/* @__PURE__ */ a("h2", { className: i(e.subtitle, k), "data-testid": x, children: g })
|
|
88
|
+
] }) }) }),
|
|
89
89
|
o && /* @__PURE__ */ a("div", { className: e["page-header__bottom-content"], children: o })
|
|
90
90
|
] }) });
|
|
91
91
|
};
|
|
@@ -25,7 +25,7 @@ declare const meta: {
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
tags: string[];
|
|
28
|
-
decorators: ((Story: import('@storybook/
|
|
28
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
29
29
|
[x: string]: any;
|
|
30
30
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
31
31
|
};
|
|
@@ -5,7 +5,7 @@ declare const meta: {
|
|
|
5
5
|
title: string;
|
|
6
6
|
component: ({ snackbarMessage, variant, autoHideDuration, open, onClose, onClosed, classNameWrapper, "data-testid": dataTestId, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
tags: string[];
|
|
8
|
-
decorators: ((Story: import('@storybook/
|
|
8
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
9
9
|
accept?: string | undefined;
|
|
10
10
|
alt?: string | undefined;
|
|
11
11
|
autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
|
|
@@ -6,7 +6,7 @@ declare const meta: {
|
|
|
6
6
|
title: string;
|
|
7
7
|
component: import('react').ForwardRefExoticComponent<ToggleGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
8
8
|
tags: string[];
|
|
9
|
-
decorators: ((Story: import('@storybook/
|
|
9
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
10
10
|
legend?: import('react').ReactNode;
|
|
11
11
|
error?: import('react').ReactNode;
|
|
12
12
|
children: import('react').ReactElement<import('./Toggle.tsx').ToggleGroupItemProps<string | number>, string | import('react').JSXElementConstructor<any>>[];
|
|
@@ -8,7 +8,7 @@ declare const meta: {
|
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: string;
|
|
10
10
|
};
|
|
11
|
-
decorators: ((Story: import('@storybook/
|
|
11
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
12
12
|
children: import('react').ReactNode;
|
|
13
13
|
title: import('react').ReactNode;
|
|
14
14
|
open?: boolean | undefined;
|
|
@@ -12,7 +12,7 @@ declare const meta: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
decorators: ((Story: import('@storybook/
|
|
15
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
16
16
|
children: import('react').ReactNode;
|
|
17
17
|
element?: import('react').ElementType | undefined;
|
|
18
18
|
variant?: import('./Typography').VariantType | undefined;
|
|
@@ -12,7 +12,7 @@ declare const meta: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
tags: string[];
|
|
15
|
-
decorators: ((Story: import('@storybook/
|
|
15
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
16
16
|
[x: string]: any;
|
|
17
17
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
18
18
|
};
|