@pismo/marola 1.0.0-beta.64 → 1.0.0-beta.65
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/components/Chip/Chip.stories.d.ts +1 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +1 -1
- package/dist/components/Description/Description.d.ts +3 -1
- package/dist/components/Description/Description.js +27 -17
- package/dist/components/Description/Description.stories.d.ts +3 -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/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
|
@@ -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/types').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/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
9
9
|
open: boolean;
|
|
10
10
|
onClose: () => void;
|
|
11
11
|
title?: import('react').ReactNode;
|
|
@@ -6,9 +6,11 @@ export interface DescriptionProps {
|
|
|
6
6
|
value: React.ReactNode;
|
|
7
7
|
/** Renders skeleton when true */
|
|
8
8
|
isLoading?: boolean;
|
|
9
|
+
/** Description label and value color */
|
|
10
|
+
color?: string;
|
|
9
11
|
/** Sets the data-testid prefix for label, value and skeletons */
|
|
10
12
|
'data-testid'?: string;
|
|
11
13
|
/** Sets the label and value onto the same line */
|
|
12
14
|
inline?: boolean;
|
|
13
15
|
}
|
|
14
|
-
export declare const Description: ({ label, value, isLoading, "data-testid": dataTestId, inline, }: DescriptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const Description: ({ label, value, isLoading, color, "data-testid": dataTestId, inline, }: DescriptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../../assets/Description.css';
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { c as
|
|
2
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { c as i } from "../../clsx-DB4S2d7J.js";
|
|
4
4
|
import { Skeleton as o } from "../Skeleton/Skeleton.js";
|
|
5
|
-
import { Typography as
|
|
6
|
-
const
|
|
5
|
+
import { Typography as y } from "../Typography/Typography.js";
|
|
6
|
+
const u = "_container_he0z3_78", a = {
|
|
7
7
|
"u-typography-h1": "_u-typography-h1_he0z3_1",
|
|
8
8
|
"u-typography-h2": "_u-typography-h2_he0z3_8",
|
|
9
9
|
"u-typography-h3": "_u-typography-h3_he0z3_15",
|
|
@@ -19,36 +19,46 @@ const i = "_container_he0z3_78", a = {
|
|
|
19
19
|
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_he0z3_68",
|
|
20
20
|
"u-typography-base--underlined": "_u-typography-base--underlined_he0z3_71",
|
|
21
21
|
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_he0z3_74",
|
|
22
|
-
container:
|
|
22
|
+
container: u,
|
|
23
23
|
"container--text": "_container--text_he0z3_82",
|
|
24
24
|
"container--inline": "_container--inline_he0z3_85"
|
|
25
|
-
},
|
|
26
|
-
label:
|
|
27
|
-
value:
|
|
25
|
+
}, d = ({
|
|
26
|
+
label: _,
|
|
27
|
+
value: n,
|
|
28
28
|
isLoading: r,
|
|
29
|
+
color: h = "var(--gray-95)",
|
|
29
30
|
"data-testid": e = "Description",
|
|
30
|
-
inline:
|
|
31
|
-
}) => /* @__PURE__ */
|
|
31
|
+
inline: p
|
|
32
|
+
}) => /* @__PURE__ */ s(
|
|
32
33
|
"div",
|
|
33
34
|
{
|
|
34
|
-
className:
|
|
35
|
+
className: i([a.container, { [a["container--inline"]]: p }]),
|
|
35
36
|
"data-testid": `${e}-container`,
|
|
36
37
|
children: [
|
|
37
|
-
/* @__PURE__ */ t(p, { className: a["container--text"], variant: "base", "data-testid": `${e}-label`, children: r ? /* @__PURE__ */ t(o, { style: { width: 70, marginBottom: 2 }, "data-testid": `${e}-skeletonLabel` }) : y }),
|
|
38
38
|
/* @__PURE__ */ t(
|
|
39
|
-
|
|
39
|
+
y,
|
|
40
|
+
{
|
|
41
|
+
color: h,
|
|
42
|
+
className: a["container--text"],
|
|
43
|
+
variant: "base",
|
|
44
|
+
"data-testid": `${e}-label`,
|
|
45
|
+
children: r ? /* @__PURE__ */ t(o, { style: { width: 70, marginBottom: 2 }, "data-testid": `${e}-skeletonLabel` }) : _
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ t(
|
|
49
|
+
y,
|
|
40
50
|
{
|
|
41
51
|
className: a["container--text"],
|
|
42
52
|
bold: !0,
|
|
43
|
-
color:
|
|
44
|
-
variant:
|
|
53
|
+
color: h,
|
|
54
|
+
variant: p ? "base" : "base-lg",
|
|
45
55
|
"data-testid": `${e}-value`,
|
|
46
|
-
children: r ? /* @__PURE__ */ t(o, { style: { width: 100 }, "data-testid": `${e}-skeletonValue` }) :
|
|
56
|
+
children: r ? /* @__PURE__ */ t(o, { style: { width: 100 }, "data-testid": `${e}-skeletonValue` }) : n || "-"
|
|
47
57
|
}
|
|
48
58
|
)
|
|
49
59
|
]
|
|
50
60
|
}
|
|
51
61
|
);
|
|
52
62
|
export {
|
|
53
|
-
|
|
63
|
+
d as Description
|
|
54
64
|
};
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ label, value, isLoading, "data-testid": dataTestId, inline, }: import('./Description').DescriptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: ({ label, value, isLoading, color, "data-testid": dataTestId, inline, }: import('./Description').DescriptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
@@ -11,7 +11,9 @@ declare const meta: {
|
|
|
11
11
|
export default meta;
|
|
12
12
|
type Story = StoryObj<typeof meta>;
|
|
13
13
|
export declare const Simple: Story;
|
|
14
|
+
export declare const WithColor: Story;
|
|
14
15
|
export declare const InLine: Story;
|
|
16
|
+
export declare const InLineWithColor: Story;
|
|
15
17
|
export declare const Loading: Story;
|
|
16
18
|
export declare const LoadingInline: Story;
|
|
17
19
|
export declare const InLineWithButton: Story;
|
|
@@ -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/types').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/types').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/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
8
8
|
invert?: boolean | undefined;
|
|
9
9
|
classNames?: string | undefined;
|
|
10
10
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -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/types').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/types').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/types').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/types').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/types').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/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
16
16
|
[x: string]: any;
|
|
17
17
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
18
18
|
};
|