@pismo/marola 1.0.0-beta.41 → 1.0.0-beta.42
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/Popover.module-B4boCutS.js +10 -0
- package/dist/{Toggle-Dl-yPy8S.js → Toggle-CJvN6vqW.js} +7 -6
- package/dist/assets/Popover.css +1 -0
- package/dist/components/Chip/Chip.js +3 -2
- package/dist/components/Popover/Popover.d.ts +30 -0
- package/dist/components/Popover/Popover.js +22 -0
- package/dist/components/Popover/Popover.stories.d.ts +34 -0
- package/dist/components/Popover/PopoverBody.d.ts +6 -0
- package/dist/components/Popover/PopoverBody.js +6 -0
- package/dist/components/Popover/PopoverFooter.d.ts +6 -0
- package/dist/components/Popover/PopoverFooter.js +6 -0
- package/dist/components/Popover/PopoverHeader.d.ts +6 -0
- package/dist/components/Popover/PopoverHeader.js +6 -0
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/RowItem/RowItem.js +4 -3
- package/dist/components/ToggleGroup/Toggle.js +3 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +57 -55
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ import { Adornment as v } from "./components/Adornment/Adornment.js";
|
|
|
10
10
|
import "./components/Dialog/Dialog.js";
|
|
11
11
|
import "./components/IconButton/IconButton.js";
|
|
12
12
|
import "./components/Select/Select.js";
|
|
13
|
+
import "./components/Popover/Popover.js";
|
|
13
14
|
import "./components/Table/Table.js";
|
|
14
15
|
import "./components/Tabs/Tabs.js";
|
|
15
16
|
import { s as y } from "./Group-B80_u5Q1.js";
|
|
@@ -59,7 +60,7 @@ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove
|
|
|
59
60
|
children: _
|
|
60
61
|
}
|
|
61
62
|
)) : /* @__PURE__ */ i("span", { "data-testid": t["data-testid"], ref: d, className: e, children: _ });
|
|
62
|
-
}),
|
|
63
|
+
}), Q = u((t, d) => {
|
|
63
64
|
const {
|
|
64
65
|
label: _,
|
|
65
66
|
className: o,
|
|
@@ -113,7 +114,7 @@ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove
|
|
|
113
114
|
"row-item--clickable": "_row-item--clickable_8z1a0_13",
|
|
114
115
|
"row-item--disabled": "_row-item--disabled_8z1a0_19",
|
|
115
116
|
"row-item__content": "_row-item__content_8z1a0_22"
|
|
116
|
-
},
|
|
117
|
+
}, V = u((t, d) => {
|
|
117
118
|
const { children: _, leftAdornment: o, disabled: r, onClick: a, buttons: s, ariaLabel: e, className: g } = t, m = l(o == null ? void 0 : o.className, h["row-item__adornment"]), w = {
|
|
118
119
|
onClick: (p) => {
|
|
119
120
|
r || a && a(p);
|
|
@@ -149,7 +150,7 @@ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove
|
|
|
149
150
|
]
|
|
150
151
|
}
|
|
151
152
|
);
|
|
152
|
-
}),
|
|
153
|
+
}), X = u((t, d) => {
|
|
153
154
|
const { text: _, isSelected: o = !1, value: r, onChange: a, disabled: s } = t;
|
|
154
155
|
return /* @__PURE__ */ k(
|
|
155
156
|
"label",
|
|
@@ -181,7 +182,7 @@ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove
|
|
|
181
182
|
);
|
|
182
183
|
});
|
|
183
184
|
export {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
Q as C,
|
|
186
|
+
V as R,
|
|
187
|
+
X as T
|
|
187
188
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._popover_n95k7_1{background-color:#fff;border-radius:.375rem;box-shadow:0 0 10px #0003}._popover-header_n95k7_6{padding:1rem .5rem;border-bottom:1px solid var(--gray-5)}._popover-footer_n95k7_10{padding:1rem .5rem;border-top:1px solid var(--gray-5)}._popover-body_n95k7_14{padding:1rem .5rem}
|
|
@@ -6,10 +6,11 @@ import "../Icon/Icon.js";
|
|
|
6
6
|
import "../Typography/Typography.js";
|
|
7
7
|
import "../Input/Input.js";
|
|
8
8
|
import "../Button/Button.js";
|
|
9
|
-
import { C as
|
|
9
|
+
import { C as n } from "../../Toggle-CJvN6vqW.js";
|
|
10
10
|
import "../Dialog/Dialog.js";
|
|
11
11
|
import "../IconButton/IconButton.js";
|
|
12
12
|
import "../Select/Select.js";
|
|
13
|
+
import "../Popover/Popover.js";
|
|
13
14
|
import "../Skeleton/Skeleton.js";
|
|
14
15
|
import "../Table/Table.js";
|
|
15
16
|
import "../Tabs/Tabs.js";
|
|
@@ -17,5 +18,5 @@ import "../../Group-B80_u5Q1.js";
|
|
|
17
18
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
18
19
|
import "../../Button-BAljjMv3.js";
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
n as Chip
|
|
21
22
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PopupOffsetOptions, PopupPlacement } from '@mui/base/Unstable_Popup';
|
|
2
|
+
|
|
3
|
+
export type PopoverProps = {
|
|
4
|
+
/** An HTML element or a function that returns either. */
|
|
5
|
+
anchorRef?: Element;
|
|
6
|
+
/** Boolean to open. */
|
|
7
|
+
open?: boolean;
|
|
8
|
+
/** React Node. */
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
/** Determines where to place the popup relative to the trigger element. */
|
|
11
|
+
placement?: PopupPlacement;
|
|
12
|
+
/** Distance between a popup and the trigger element */
|
|
13
|
+
offset?: PopupOffsetOptions;
|
|
14
|
+
/** Class name */
|
|
15
|
+
className?: string;
|
|
16
|
+
/** Id to be applied as `data-testid` on the root element */
|
|
17
|
+
'data-testid'?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const Popover: {
|
|
20
|
+
({ anchorRef, open, children, placement, className, offset, "data-testid": dataTestId, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
Header: ({ children }: {
|
|
22
|
+
children: import('react').ReactNode;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
Footer: ({ children }: {
|
|
25
|
+
children: import('react').ReactNode;
|
|
26
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
Body: ({ children }: {
|
|
28
|
+
children: import('react').ReactNode;
|
|
29
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "../../clsx-DB4S2d7J.js";
|
|
3
|
+
import { s as f } from "../../Popover.module-B4boCutS.js";
|
|
4
|
+
import { PopoverBody as c } from "./PopoverBody.js";
|
|
5
|
+
import { PopoverFooter as v } from "./PopoverFooter.js";
|
|
6
|
+
import { PopoverHeader as P } from "./PopoverHeader.js";
|
|
7
|
+
import { P as l } from "../../Popup-Ck3XlWMq.js";
|
|
8
|
+
const o = ({
|
|
9
|
+
anchorRef: t,
|
|
10
|
+
open: e,
|
|
11
|
+
children: p,
|
|
12
|
+
placement: m,
|
|
13
|
+
className: s,
|
|
14
|
+
offset: a,
|
|
15
|
+
"data-testid": i
|
|
16
|
+
}) => /* @__PURE__ */ r(l, { offset: a, placement: m, open: e, anchor: t, children: /* @__PURE__ */ r("div", { "data-testid": i, className: d(f.popover, s), children: p }) });
|
|
17
|
+
o.Header = P;
|
|
18
|
+
o.Footer = v;
|
|
19
|
+
o.Body = c;
|
|
20
|
+
export {
|
|
21
|
+
o as Popover
|
|
22
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PopoverProps } from './Popover';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: {
|
|
7
|
+
({ anchorRef, open, children, placement, className, offset, "data-testid": dataTestId, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Header: ({ children }: {
|
|
9
|
+
children: import('react').ReactNode;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Footer: ({ children }: {
|
|
12
|
+
children: import('react').ReactNode;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
Body: ({ children }: {
|
|
15
|
+
children: import('react').ReactNode;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
parameters: {
|
|
19
|
+
docs: {
|
|
20
|
+
source: {
|
|
21
|
+
language: string;
|
|
22
|
+
format: boolean;
|
|
23
|
+
code: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
tags: string[];
|
|
28
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
31
|
+
};
|
|
32
|
+
export default meta;
|
|
33
|
+
type Story = StoryObj<typeof meta>;
|
|
34
|
+
export declare const Provider: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../assets/ResultWithChips.css';
|
|
2
2
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { C as t } from "../../Toggle-
|
|
3
|
+
import { C as t } from "../../Toggle-CJvN6vqW.js";
|
|
4
4
|
const r = "_container_hgp0p_1", o = "_label_hgp0p_17", a = {
|
|
5
5
|
container: r,
|
|
6
6
|
"chip-item-wrapper": "_chip-item-wrapper_hgp0p_8",
|
|
@@ -6,15 +6,16 @@ import "../Icon/Icon.js";
|
|
|
6
6
|
import "../Typography/Typography.js";
|
|
7
7
|
import "../Input/Input.js";
|
|
8
8
|
import "../Button/Button.js";
|
|
9
|
-
import { R as
|
|
9
|
+
import { R as c, R as g } from "../../Toggle-CJvN6vqW.js";
|
|
10
10
|
import "../Dialog/Dialog.js";
|
|
11
11
|
import "../IconButton/IconButton.js";
|
|
12
12
|
import "../Select/Select.js";
|
|
13
|
+
import "../Popover/Popover.js";
|
|
13
14
|
import "../Table/Table.js";
|
|
14
15
|
import "../Tabs/Tabs.js";
|
|
15
16
|
import "../../Group-B80_u5Q1.js";
|
|
16
17
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
c as RowItem,
|
|
20
|
+
g as default
|
|
20
21
|
};
|
|
@@ -5,14 +5,15 @@ import "../Icon/Icon.js";
|
|
|
5
5
|
import "../Typography/Typography.js";
|
|
6
6
|
import "../Input/Input.js";
|
|
7
7
|
import "../Button/Button.js";
|
|
8
|
-
import { T as
|
|
8
|
+
import { T as g } from "../../Toggle-CJvN6vqW.js";
|
|
9
9
|
import "../Dialog/Dialog.js";
|
|
10
10
|
import "../IconButton/IconButton.js";
|
|
11
11
|
import "../Select/Select.js";
|
|
12
|
+
import "../Popover/Popover.js";
|
|
12
13
|
import "../Table/Table.js";
|
|
13
14
|
import "../Tabs/Tabs.js";
|
|
14
15
|
import "../../Group-B80_u5Q1.js";
|
|
15
16
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
+
g as default
|
|
18
19
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './components/InputSearch/InputSearch';
|
|
|
17
17
|
export * from './components/LoadingSpinner/LoadingSpinner';
|
|
18
18
|
export * from './components/PageHeader/PageHeader';
|
|
19
19
|
export * from './components/Pagination/Pagination';
|
|
20
|
+
export * from './components/Popover/Popover';
|
|
20
21
|
export * from './components/ResultWithChips/ResultWithChips';
|
|
21
22
|
export * from './components/RowItem/RowItem';
|
|
22
23
|
export * from './components/Select/Select';
|
package/dist/main.js
CHANGED
|
@@ -3,38 +3,39 @@ import { Advice as p } from "./components/Advice/Advice.js";
|
|
|
3
3
|
import { Autocomplete as f } from "./components/Autocomplete/Autocomplete.js";
|
|
4
4
|
import { Button as x } from "./components/Button/Button.js";
|
|
5
5
|
import { Checkbox as l } from "./components/Checkbox/Checkbox.js";
|
|
6
|
-
import { C as T, R as s, T as c } from "./Toggle-
|
|
6
|
+
import { C as T, R as s, T as c } from "./Toggle-CJvN6vqW.js";
|
|
7
7
|
import { Dialog as u } from "./components/Dialog/Dialog.js";
|
|
8
8
|
import { EllipsisTooltip as d } from "./components/EllipsisTooltip/EllipsisTooltip.js";
|
|
9
9
|
import { Icon as k } from "./components/Icon/Icon.js";
|
|
10
10
|
import { IconButton as C } from "./components/IconButton/IconButton.js";
|
|
11
11
|
import { Input as D } from "./components/Input/Input.js";
|
|
12
|
-
import { InputSearch as
|
|
13
|
-
import { LoadingSpinner as
|
|
12
|
+
import { InputSearch as v } from "./components/InputSearch/InputSearch.js";
|
|
13
|
+
import { LoadingSpinner as A } from "./components/LoadingSpinner/LoadingSpinner.js";
|
|
14
14
|
import { PageHeader as G } from "./components/PageHeader/PageHeader.js";
|
|
15
15
|
import { Pagination as H, paginationDefaultTranslations as w } from "./components/Pagination/Pagination.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
16
|
+
import { Popover as L } from "./components/Popover/Popover.js";
|
|
17
|
+
import { ResultWithChips as O } from "./components/ResultWithChips/ResultWithChips.js";
|
|
18
|
+
import { Select as j, SelectOption as q } from "./components/Select/Select.js";
|
|
19
|
+
import { Skeleton as F, SkeletonCircle as J, SkeletonTable as K } from "./components/Skeleton/Skeleton.js";
|
|
20
|
+
import { Snackbar as Q } from "./components/Snackbar/Snackbar.js";
|
|
21
|
+
import { SortTooltip as V, sortTooltipDefaultTranslations as X } from "./components/SortTooltip/SortTooltip.js";
|
|
22
|
+
import { Stepper as Z } from "./components/Stepper/Stepper.js";
|
|
23
|
+
import { StepperNavigator as $ } from "./components/StepperNavigator/StepperNavigator.js";
|
|
24
|
+
import { TBody as ro, THead as eo, Table as to, Td as po, Th as ao, Tr as fo } from "./components/Table/Table.js";
|
|
25
|
+
import { Tabs as xo } from "./components/Tabs/Tabs.js";
|
|
26
|
+
import { TextDisplay as lo } from "./components/TextDisplay/TextDisplay.js";
|
|
27
|
+
import { Toggle as To } from "./components/Toggle/Toggle.js";
|
|
28
|
+
import { G as co } from "./Group-B80_u5Q1.js";
|
|
29
|
+
import { Tooltip as uo } from "./components/Tooltip/Tooltip.js";
|
|
30
|
+
import { Text as bo, Typography as ko } from "./components/Typography/Typography.js";
|
|
31
|
+
import { SnackbarContext as Co, SnackbarProvider as Io, useSnackbar as Do } from "./contexts/SnackbarProvider/SnackbarProvider.js";
|
|
32
|
+
import { default as vo } from "./components/Dialog/DialogTitle.js";
|
|
32
33
|
import { default as Ao } from "./components/Dialog/Content.js";
|
|
33
|
-
import { default as
|
|
34
|
-
import { Tab as
|
|
35
|
-
import { TabPanel as
|
|
34
|
+
import { default as Go } from "./components/Dialog/Actions.js";
|
|
35
|
+
import { Tab as Ho } from "./components/Tabs/Tab.js";
|
|
36
|
+
import { TabPanel as Eo } from "./components/Tabs/TabPanel.js";
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
Go as Actions,
|
|
38
39
|
e as Adornment,
|
|
39
40
|
p as Advice,
|
|
40
41
|
f as Autocomplete,
|
|
@@ -43,45 +44,46 @@ export {
|
|
|
43
44
|
T as Chip,
|
|
44
45
|
Ao as Content,
|
|
45
46
|
u as Dialog,
|
|
46
|
-
|
|
47
|
+
vo as DialogTitle,
|
|
47
48
|
d as EllipsisTooltip,
|
|
48
49
|
k as Icon,
|
|
49
50
|
C as IconButton,
|
|
50
51
|
D as Input,
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
v as InputSearch,
|
|
53
|
+
A as LoadingSpinner,
|
|
53
54
|
G as PageHeader,
|
|
54
55
|
H as Pagination,
|
|
55
|
-
L as
|
|
56
|
+
L as Popover,
|
|
57
|
+
O as ResultWithChips,
|
|
56
58
|
s as RowItem,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
59
|
+
j as Select,
|
|
60
|
+
q as SelectOption,
|
|
61
|
+
F as Skeleton,
|
|
62
|
+
J as SkeletonCircle,
|
|
63
|
+
K as SkeletonTable,
|
|
64
|
+
Q as Snackbar,
|
|
65
|
+
Co as SnackbarContext,
|
|
66
|
+
Io as SnackbarProvider,
|
|
67
|
+
V as SortTooltip,
|
|
68
|
+
Z as Stepper,
|
|
69
|
+
$ as StepperNavigator,
|
|
70
|
+
ro as TBody,
|
|
71
|
+
eo as THead,
|
|
72
|
+
Ho as Tab,
|
|
73
|
+
Eo as TabPanel,
|
|
74
|
+
to as Table,
|
|
75
|
+
xo as Tabs,
|
|
76
|
+
po as Td,
|
|
77
|
+
bo as Text,
|
|
78
|
+
lo as TextDisplay,
|
|
79
|
+
ao as Th,
|
|
80
|
+
To as Toggle,
|
|
81
|
+
co as ToggleGroup,
|
|
80
82
|
c as ToggleGroupItem,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
uo as Tooltip,
|
|
84
|
+
fo as Tr,
|
|
85
|
+
ko as Typography,
|
|
84
86
|
w as paginationDefaultTranslations,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
X as sortTooltipDefaultTranslations,
|
|
88
|
+
Do as useSnackbar
|
|
87
89
|
};
|