@pismo/marola 1.0.0-beta.59 → 1.0.0-beta.60
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/Dialog.module-W7UCXlf3.js +29 -0
- package/dist/assets/Dialog.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/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +6 -6
- package/dist/components/Dialog/Dialog.d.ts +8 -5
- package/dist/components/Dialog/Dialog.js +62 -61
- package/dist/components/Dialog/Dialog.stories.d.ts +67 -65
- package/dist/components/Dialog/DialogTitle.d.ts +5 -2
- package/dist/components/Dialog/DialogTitle.js +22 -16
- 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
- package/dist/Dialog.module-BSeaj3tQ.js +0 -30
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import './assets/Dialog.css';
|
|
2
|
+
const _ = "_dialog_1vpwu_78", p = "_dialog__backdrop_1vpwu_88", a = "_dialog__panel_1vpwu_96", o = "_dialog__title_1vpwu_112", u = "_dialog__subtitle_1vpwu_119", t = "_dialog__divider_1vpwu_123", y = "_dialog__actions_1vpwu_137", g = {
|
|
3
|
+
"u-typography-h1": "_u-typography-h1_1vpwu_1",
|
|
4
|
+
"u-typography-h2": "_u-typography-h2_1vpwu_8",
|
|
5
|
+
"u-typography-h3": "_u-typography-h3_1vpwu_15",
|
|
6
|
+
"u-typography-h4": "_u-typography-h4_1vpwu_22",
|
|
7
|
+
"u-typography-h5": "_u-typography-h5_1vpwu_29",
|
|
8
|
+
"u-typography-h6": "_u-typography-h6_1vpwu_36",
|
|
9
|
+
"u-typography-base": "_u-typography-base_1vpwu_43",
|
|
10
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_1vpwu_49",
|
|
11
|
+
"u-typography-base--xl": "_u-typography-base--xl_1vpwu_53",
|
|
12
|
+
"u-typography-base--lg": "_u-typography-base--lg_1vpwu_57",
|
|
13
|
+
"u-typography-base--sm": "_u-typography-base--sm_1vpwu_61",
|
|
14
|
+
"u-typography-base--bold": "_u-typography-base--bold_1vpwu_65",
|
|
15
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1vpwu_68",
|
|
16
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_1vpwu_71",
|
|
17
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1vpwu_74",
|
|
18
|
+
dialog: _,
|
|
19
|
+
dialog__backdrop: p,
|
|
20
|
+
dialog__panel: a,
|
|
21
|
+
dialog__title: o,
|
|
22
|
+
dialog__subtitle: u,
|
|
23
|
+
dialog__divider: t,
|
|
24
|
+
"dialog__close-icon": "_dialog__close-icon_1vpwu_127",
|
|
25
|
+
dialog__actions: y
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
g as s
|
|
29
|
+
};
|
package/dist/assets/Dialog.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._u-typography-
|
|
1
|
+
._u-typography-h1_1vpwu_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_1vpwu_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_1vpwu_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_1vpwu_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_1vpwu_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_1vpwu_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_1vpwu_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1vpwu_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1vpwu_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1vpwu_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1vpwu_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1vpwu_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1vpwu_68{text-decoration:line-through}._u-typography-base--underlined_1vpwu_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1vpwu_74{text-decoration:underline line-through}._dialog_1vpwu_78{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1300;display:flex;align-items:center;justify-content:center;-webkit-box-align:center;-webkit-box-pack:center}._dialog__backdrop_1vpwu_88{position:fixed;z-index:-1;width:100%;height:100%;background-color:rgb(var(--black-100-rgb),.05);-webkit-tap-highlight-color:transparent}._dialog__panel_1vpwu_96{position:relative;display:flex;flex-direction:column;gap:8px;width:680px;padding:2rem;overflow:hidden;font-weight:500;color:var(--gray-90);text-align:start;background-color:var(--white-100);border:1px solid rgb(218,226,237);border-radius:8px;box-shadow:0 10px 20px rgb(var(--black-100-rgb),.2)}._dialog__title_1vpwu_112{display:flex;gap:.75rem;align-items:center;margin-bottom:1rem;color:#3f3d4be0}._dialog__subtitle_1vpwu_119{margin-top:1rem;color:#3f3d4be0}._dialog__divider_1vpwu_123{width:100%;border-top:1px solid var(--gray-10)}._dialog__close-icon_1vpwu_127{position:absolute;top:34px;right:32px;padding:0;margin:0;cursor:pointer;background:none;border:none}._dialog__actions_1vpwu_137{display:flex;gap:.5rem;justify-content:flex-end;margin-top:1.5rem}._dialog__actions_1vpwu_137 button{padding:0 1.5rem}._dialog__actions_1vpwu_137 button [class*=_u-typography-base]{font-weight:700}._dialog__actions_1vpwu_137 button[class*=_button--secondary]{color:#3f3d4be0}
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { s as t } from "../../Dialog.module-
|
|
2
|
+
import { s as t } from "../../Dialog.module-W7UCXlf3.js";
|
|
3
3
|
const i = ({ children: s }) => /* @__PURE__ */ o("div", { className: t.dialog__actions, children: s });
|
|
4
4
|
export {
|
|
5
5
|
i as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as s } from "react";
|
|
3
3
|
import { c as t } from "../../clsx-DB4S2d7J.js";
|
|
4
|
-
import { s as m } from "../../Dialog.module-
|
|
4
|
+
import { s as m } from "../../Dialog.module-W7UCXlf3.js";
|
|
5
5
|
const l = s(
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7
7
|
({ ownerState: e, ...r }, o) => /* @__PURE__ */ a("div", { ...r, className: t(m.dialog__backdrop, r.className), ref: o })
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { Icon as
|
|
3
|
-
import { s as
|
|
2
|
+
import { Icon as i } from "../Icon/Icon.js";
|
|
3
|
+
import { s as r } from "../../Dialog.module-W7UCXlf3.js";
|
|
4
4
|
import { B as s } from "../../Button-BAljjMv3.js";
|
|
5
|
-
const n = ({ handleOnClose:
|
|
5
|
+
const n = ({ handleOnClose: t }) => /* @__PURE__ */ o(
|
|
6
6
|
s,
|
|
7
7
|
{
|
|
8
|
-
className:
|
|
8
|
+
className: r["dialog__close-icon"],
|
|
9
9
|
"aria-description": "Close dialog",
|
|
10
|
-
onClick:
|
|
10
|
+
onClick: t,
|
|
11
11
|
"data-testid": "dialog-close-button",
|
|
12
|
-
children: /* @__PURE__ */ o(
|
|
12
|
+
children: /* @__PURE__ */ o(i, { icon: "circle-xmark", size: 24, color: "#3F3D4B73" })
|
|
13
13
|
}
|
|
14
14
|
);
|
|
15
15
|
export {
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import { default as DialogTitle, DialogTitleProps } from './DialogTitle';
|
|
2
2
|
import { default as Content, DialogContentProps } from './Content';
|
|
3
3
|
import { default as Actions, DialogActionProps } from './Actions';
|
|
4
|
+
import { Icon } from '../Icon/Icon';
|
|
4
5
|
import { ModalProps } from '@mui/base';
|
|
5
|
-
import { JSXElementConstructor, ReactElement, ReactNode } from 'react';
|
|
6
|
+
import { ComponentProps, JSXElementConstructor, ReactElement, ReactNode } from 'react';
|
|
6
7
|
|
|
7
8
|
export type CloseReason = 'backdropClick' | 'escapeKeyDown' | 'closeButtonClick';
|
|
8
|
-
export
|
|
9
|
+
export type DialogProps = Omit<ModalProps, 'onClose'> & {
|
|
9
10
|
/** main content */
|
|
10
11
|
children: ReactElement<unknown, string | JSXElementConstructor<unknown>>;
|
|
11
12
|
/** display title label */
|
|
12
13
|
dialogTitle: ReactNode;
|
|
13
14
|
/** display subtitle */
|
|
14
15
|
dialogSubtitle?: ReactNode;
|
|
16
|
+
/** icon to show in the left side of the title */
|
|
17
|
+
icon?: ComponentProps<typeof Icon>;
|
|
15
18
|
/** callback for when close is clicked */
|
|
16
|
-
onClose?: () => void;
|
|
17
|
-
}
|
|
19
|
+
onClose?: (reason?: CloseReason) => void;
|
|
20
|
+
};
|
|
18
21
|
declare const Dialog: {
|
|
19
|
-
({ children, dialogTitle, dialogSubtitle, onClose, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
({ children, dialogTitle, dialogSubtitle, icon, onClose, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
20
23
|
Title: import('react').FunctionComponent<DialogTitleProps>;
|
|
21
24
|
Content: import('react').FunctionComponent<DialogContentProps>;
|
|
22
25
|
Actions: import('react').FunctionComponent<DialogActionProps>;
|
|
@@ -4,7 +4,7 @@ import ie from "./Actions.js";
|
|
|
4
4
|
import ae from "./Backdrop.js";
|
|
5
5
|
import le from "./CloseIconButton.js";
|
|
6
6
|
import ce from "./Content.js";
|
|
7
|
-
import { s as z } from "../../Dialog.module-
|
|
7
|
+
import { s as z } from "../../Dialog.module-W7UCXlf3.js";
|
|
8
8
|
import ee from "./DialogTitle.js";
|
|
9
9
|
import { u as te, P as i, f as de, b as C, g as ue, a as fe, _ as pe, c as G, d as be, e as he } from "../../useSlotProps-C_I1kEHr.js";
|
|
10
10
|
import * as f from "react";
|
|
@@ -62,25 +62,25 @@ function j(e) {
|
|
|
62
62
|
disableRestoreFocus: s = !1,
|
|
63
63
|
getTabbable: r = ke,
|
|
64
64
|
isEnabled: a = Pe,
|
|
65
|
-
open:
|
|
66
|
-
} = e, p = f.useRef(!1), x = f.useRef(null), h = f.useRef(null), m = f.useRef(null), R = f.useRef(null), g = f.useRef(!1),
|
|
65
|
+
open: c
|
|
66
|
+
} = e, p = f.useRef(!1), x = f.useRef(null), h = f.useRef(null), m = f.useRef(null), R = f.useRef(null), g = f.useRef(!1), d = f.useRef(null), w = te(t.ref, d), I = f.useRef(null);
|
|
67
67
|
f.useEffect(() => {
|
|
68
|
-
!
|
|
69
|
-
}, [o,
|
|
70
|
-
if (!
|
|
68
|
+
!c || !d.current || (g.current = !o);
|
|
69
|
+
}, [o, c]), f.useEffect(() => {
|
|
70
|
+
if (!c || !d.current)
|
|
71
71
|
return;
|
|
72
|
-
const l = A(
|
|
73
|
-
return
|
|
74
|
-
`)),
|
|
72
|
+
const l = A(d.current);
|
|
73
|
+
return d.current.contains(l.activeElement) || (d.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
74
|
+
`)), d.current.setAttribute("tabIndex", "-1")), g.current && d.current.focus()), () => {
|
|
75
75
|
s || (m.current && m.current.focus && (p.current = !0, m.current.focus()), m.current = null);
|
|
76
76
|
};
|
|
77
|
-
}, [
|
|
78
|
-
if (!
|
|
77
|
+
}, [c]), f.useEffect(() => {
|
|
78
|
+
if (!c || !d.current)
|
|
79
79
|
return;
|
|
80
|
-
const l = A(
|
|
81
|
-
I.current = E, !(n || !a() || E.key !== "Tab") && l.activeElement ===
|
|
80
|
+
const l = A(d.current), v = (E) => {
|
|
81
|
+
I.current = E, !(n || !a() || E.key !== "Tab") && l.activeElement === d.current && E.shiftKey && (p.current = !0, h.current && h.current.focus());
|
|
82
82
|
}, k = () => {
|
|
83
|
-
const E =
|
|
83
|
+
const E = d.current;
|
|
84
84
|
if (E === null)
|
|
85
85
|
return;
|
|
86
86
|
if (!l.hasFocus() || !a() || p.current) {
|
|
@@ -96,10 +96,10 @@ function j(e) {
|
|
|
96
96
|
if (!g.current)
|
|
97
97
|
return;
|
|
98
98
|
let T = [];
|
|
99
|
-
if ((l.activeElement === x.current || l.activeElement === h.current) && (T = r(
|
|
99
|
+
if ((l.activeElement === x.current || l.activeElement === h.current) && (T = r(d.current)), T.length > 0) {
|
|
100
100
|
var L, y;
|
|
101
|
-
const D = !!((L = I.current) != null && L.shiftKey && ((y = I.current) == null ? void 0 : y.key) === "Tab"), F = T[0],
|
|
102
|
-
typeof F != "string" && typeof
|
|
101
|
+
const D = !!((L = I.current) != null && L.shiftKey && ((y = I.current) == null ? void 0 : y.key) === "Tab"), F = T[0], B = T[T.length - 1];
|
|
102
|
+
typeof F != "string" && typeof B != "string" && (D ? B.focus() : F.focus());
|
|
103
103
|
} else
|
|
104
104
|
E.focus();
|
|
105
105
|
};
|
|
@@ -110,7 +110,7 @@ function j(e) {
|
|
|
110
110
|
return () => {
|
|
111
111
|
clearInterval(M), l.removeEventListener("focusin", k), l.removeEventListener("keydown", v, !0);
|
|
112
112
|
};
|
|
113
|
-
}, [o, n, s, a,
|
|
113
|
+
}, [o, n, s, a, c, r]);
|
|
114
114
|
const O = (l) => {
|
|
115
115
|
m.current === null && (m.current = l.relatedTarget), g.current = !0, R.current = l.target;
|
|
116
116
|
const v = t.props.onFocus;
|
|
@@ -120,7 +120,7 @@ function j(e) {
|
|
|
120
120
|
};
|
|
121
121
|
return /* @__PURE__ */ $(f.Fragment, {
|
|
122
122
|
children: [/* @__PURE__ */ S("div", {
|
|
123
|
-
tabIndex:
|
|
123
|
+
tabIndex: c ? 0 : -1,
|
|
124
124
|
onFocus: N,
|
|
125
125
|
ref: x,
|
|
126
126
|
"data-testid": "sentinelStart"
|
|
@@ -128,7 +128,7 @@ function j(e) {
|
|
|
128
128
|
ref: w,
|
|
129
129
|
onFocus: O
|
|
130
130
|
}), /* @__PURE__ */ S("div", {
|
|
131
|
-
tabIndex:
|
|
131
|
+
tabIndex: c ? 0 : -1,
|
|
132
132
|
onFocus: N,
|
|
133
133
|
ref: h,
|
|
134
134
|
"data-testid": "sentinelEnd"
|
|
@@ -194,7 +194,7 @@ function Ne(e) {
|
|
|
194
194
|
const t = A(e);
|
|
195
195
|
return t.body === e ? Y(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function U(e, t) {
|
|
198
198
|
t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
|
|
199
199
|
}
|
|
200
200
|
function Q(e) {
|
|
@@ -207,8 +207,8 @@ function Ce(e) {
|
|
|
207
207
|
function Z(e, t, o, n, s) {
|
|
208
208
|
const r = [t, o, ...n];
|
|
209
209
|
[].forEach.call(e.children, (a) => {
|
|
210
|
-
const
|
|
211
|
-
|
|
210
|
+
const c = r.indexOf(a) === -1, p = !Ce(a);
|
|
211
|
+
c && p && U(a, s);
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
function V(e, t) {
|
|
@@ -225,8 +225,8 @@ function Ie(e, t) {
|
|
|
225
225
|
property: "padding-right",
|
|
226
226
|
el: n
|
|
227
227
|
}), n.style.paddingRight = `${Q(n) + a}px`;
|
|
228
|
-
const
|
|
229
|
-
[].forEach.call(
|
|
228
|
+
const c = A(n).querySelectorAll(".mui-fixed");
|
|
229
|
+
[].forEach.call(c, (p) => {
|
|
230
230
|
o.push({
|
|
231
231
|
value: p.style.paddingRight,
|
|
232
232
|
property: "padding-right",
|
|
@@ -238,8 +238,8 @@ function Ie(e, t) {
|
|
|
238
238
|
if (n.parentNode instanceof DocumentFragment)
|
|
239
239
|
r = A(n).body;
|
|
240
240
|
else {
|
|
241
|
-
const a = n.parentElement,
|
|
242
|
-
r = (a == null ? void 0 : a.nodeName) === "HTML" &&
|
|
241
|
+
const a = n.parentElement, c = Y(n);
|
|
242
|
+
r = (a == null ? void 0 : a.nodeName) === "HTML" && c.getComputedStyle(a).overflowY === "scroll" ? a : n;
|
|
243
243
|
}
|
|
244
244
|
o.push({
|
|
245
245
|
value: r.style.overflow,
|
|
@@ -259,9 +259,9 @@ function Ie(e, t) {
|
|
|
259
259
|
o.forEach(({
|
|
260
260
|
value: r,
|
|
261
261
|
el: a,
|
|
262
|
-
property:
|
|
262
|
+
property: c
|
|
263
263
|
}) => {
|
|
264
|
-
r ? a.style.setProperty(
|
|
264
|
+
r ? a.style.setProperty(c, r) : a.style.removeProperty(c);
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
267
|
}
|
|
@@ -279,7 +279,7 @@ class Se {
|
|
|
279
279
|
let n = this.modals.indexOf(t);
|
|
280
280
|
if (n !== -1)
|
|
281
281
|
return n;
|
|
282
|
-
n = this.modals.length, this.modals.push(t), t.modalRef &&
|
|
282
|
+
n = this.modals.length, this.modals.push(t), t.modalRef && U(t.modalRef, !1);
|
|
283
283
|
const s = Fe(o);
|
|
284
284
|
Z(o, t.mount, t.modalRef, s, !0);
|
|
285
285
|
const r = V(this.containers, (a) => a.container === o);
|
|
@@ -300,10 +300,10 @@ class Se {
|
|
|
300
300
|
return n;
|
|
301
301
|
const s = V(this.containers, (a) => a.modals.indexOf(t) !== -1), r = this.containers[s];
|
|
302
302
|
if (r.modals.splice(r.modals.indexOf(t), 1), this.modals.splice(n, 1), r.modals.length === 0)
|
|
303
|
-
r.restore && r.restore(), t.modalRef &&
|
|
303
|
+
r.restore && r.restore(), t.modalRef && U(t.modalRef, o), Z(r.container, t.mount, t.modalRef, r.hiddenSiblings, !1), this.containers.splice(s, 1);
|
|
304
304
|
else {
|
|
305
305
|
const a = r.modals[r.modals.length - 1];
|
|
306
|
-
a.modalRef &&
|
|
306
|
+
a.modalRef && U(a.modalRef, !1);
|
|
307
307
|
}
|
|
308
308
|
return n;
|
|
309
309
|
}
|
|
@@ -327,23 +327,23 @@ function De(e) {
|
|
|
327
327
|
manager: s = Oe,
|
|
328
328
|
closeAfterTransition: r = !1,
|
|
329
329
|
onTransitionEnter: a,
|
|
330
|
-
onTransitionExited:
|
|
330
|
+
onTransitionExited: c,
|
|
331
331
|
children: p,
|
|
332
332
|
onClose: x,
|
|
333
333
|
open: h,
|
|
334
334
|
rootRef: m
|
|
335
|
-
} = e, R = f.useRef({}), g = f.useRef(null),
|
|
335
|
+
} = e, R = f.useRef({}), g = f.useRef(null), d = f.useRef(null), w = te(d, m), [I, O] = f.useState(!h), N = we(p);
|
|
336
336
|
let l = !0;
|
|
337
337
|
(e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (l = !1);
|
|
338
|
-
const v = () => A(g.current), k = () => (R.current.modalRef =
|
|
338
|
+
const v = () => A(g.current), k = () => (R.current.modalRef = d.current, R.current.mount = g.current, R.current), M = () => {
|
|
339
339
|
s.mount(k(), {
|
|
340
340
|
disableScrollLock: n
|
|
341
|
-
}),
|
|
341
|
+
}), d.current && (d.current.scrollTop = 0);
|
|
342
342
|
}, E = X(() => {
|
|
343
343
|
const b = Ae(t) || v().body;
|
|
344
|
-
s.add(k(), b),
|
|
344
|
+
s.add(k(), b), d.current && M();
|
|
345
345
|
}), T = f.useCallback(() => s.isTopModal(k()), [s]), L = X((b) => {
|
|
346
|
-
g.current = b, b && (h && T() ? M() :
|
|
346
|
+
g.current = b, b && (h && T() ? M() : d.current && U(d.current, l));
|
|
347
347
|
}), y = f.useCallback(() => {
|
|
348
348
|
s.remove(k(), l);
|
|
349
349
|
}, [l, s]);
|
|
@@ -385,7 +385,7 @@ function De(e) {
|
|
|
385
385
|
const b = () => {
|
|
386
386
|
O(!1), a && a();
|
|
387
387
|
}, u = () => {
|
|
388
|
-
O(!0),
|
|
388
|
+
O(!0), c && c(), r && y();
|
|
389
389
|
};
|
|
390
390
|
return {
|
|
391
391
|
onEnter: J(b, p == null ? void 0 : p.props.onEnter),
|
|
@@ -404,7 +404,7 @@ function Me(e) {
|
|
|
404
404
|
return ue(oe, e);
|
|
405
405
|
}
|
|
406
406
|
fe(oe, ["root", "hidden", "backdrop"]);
|
|
407
|
-
const Le = ["children", "closeAfterTransition", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"],
|
|
407
|
+
const Le = ["children", "closeAfterTransition", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"], Be = (e) => {
|
|
408
408
|
const {
|
|
409
409
|
open: t,
|
|
410
410
|
exited: o
|
|
@@ -419,28 +419,28 @@ const Le = ["children", "closeAfterTransition", "container", "disableAutoFocus",
|
|
|
419
419
|
children: s,
|
|
420
420
|
closeAfterTransition: r = !1,
|
|
421
421
|
container: a,
|
|
422
|
-
disableAutoFocus:
|
|
422
|
+
disableAutoFocus: c = !1,
|
|
423
423
|
disableEnforceFocus: p = !1,
|
|
424
424
|
disableEscapeKeyDown: x = !1,
|
|
425
425
|
disablePortal: h = !1,
|
|
426
426
|
disableRestoreFocus: m = !1,
|
|
427
427
|
disableScrollLock: R = !1,
|
|
428
428
|
hideBackdrop: g = !1,
|
|
429
|
-
keepMounted:
|
|
429
|
+
keepMounted: d = !1,
|
|
430
430
|
onBackdropClick: w,
|
|
431
431
|
open: I,
|
|
432
432
|
slotProps: O = {},
|
|
433
433
|
slots: N = {}
|
|
434
434
|
} = t, l = pe(t, Le), v = C({}, t, {
|
|
435
435
|
closeAfterTransition: r,
|
|
436
|
-
disableAutoFocus:
|
|
436
|
+
disableAutoFocus: c,
|
|
437
437
|
disableEnforceFocus: p,
|
|
438
438
|
disableEscapeKeyDown: x,
|
|
439
439
|
disablePortal: h,
|
|
440
440
|
disableRestoreFocus: m,
|
|
441
441
|
disableScrollLock: R,
|
|
442
442
|
hideBackdrop: g,
|
|
443
|
-
keepMounted:
|
|
443
|
+
keepMounted: d
|
|
444
444
|
}), {
|
|
445
445
|
getRootProps: k,
|
|
446
446
|
getBackdropProps: M,
|
|
@@ -454,44 +454,44 @@ const Le = ["children", "closeAfterTransition", "container", "disableAutoFocus",
|
|
|
454
454
|
})), F = C({}, v, {
|
|
455
455
|
exited: y,
|
|
456
456
|
hasTransition: D
|
|
457
|
-
}),
|
|
458
|
-
if (s.props.tabIndex === void 0 && (
|
|
457
|
+
}), B = Be(F), _ = {};
|
|
458
|
+
if (s.props.tabIndex === void 0 && (_.tabIndex = "-1"), D) {
|
|
459
459
|
const {
|
|
460
|
-
onEnter:
|
|
460
|
+
onEnter: H,
|
|
461
461
|
onExited: W
|
|
462
462
|
} = E();
|
|
463
|
-
|
|
463
|
+
_.onEnter = H, _.onExited = W;
|
|
464
464
|
}
|
|
465
465
|
const q = (n = N.root) != null ? n : "div", b = G({
|
|
466
466
|
elementType: q,
|
|
467
467
|
externalSlotProps: O.root,
|
|
468
468
|
externalForwardedProps: l,
|
|
469
469
|
getSlotProps: k,
|
|
470
|
-
className:
|
|
470
|
+
className: B.root,
|
|
471
471
|
ownerState: F
|
|
472
472
|
}), u = N.backdrop, P = G({
|
|
473
473
|
elementType: u,
|
|
474
474
|
externalSlotProps: O.backdrop,
|
|
475
|
-
getSlotProps: (
|
|
475
|
+
getSlotProps: (H) => M(C({}, H, {
|
|
476
476
|
onClick: (W) => {
|
|
477
|
-
w && w(W),
|
|
477
|
+
w && w(W), H != null && H.onClick && H.onClick(W);
|
|
478
478
|
}
|
|
479
479
|
})),
|
|
480
|
-
className:
|
|
480
|
+
className: B.backdrop,
|
|
481
481
|
ownerState: F
|
|
482
482
|
});
|
|
483
|
-
return !
|
|
483
|
+
return !d && !I && (!D || y) ? null : /* @__PURE__ */ S(me, {
|
|
484
484
|
ref: T,
|
|
485
485
|
container: a,
|
|
486
486
|
disablePortal: h,
|
|
487
487
|
children: /* @__PURE__ */ $(q, C({}, b, {
|
|
488
488
|
children: [!g && u ? /* @__PURE__ */ S(u, C({}, P)) : null, /* @__PURE__ */ S(j, {
|
|
489
489
|
disableEnforceFocus: p,
|
|
490
|
-
disableAutoFocus:
|
|
490
|
+
disableAutoFocus: c,
|
|
491
491
|
disableRestoreFocus: m,
|
|
492
492
|
isEnabled: L,
|
|
493
493
|
open: I,
|
|
494
|
-
children: /* @__PURE__ */ f.cloneElement(s,
|
|
494
|
+
children: /* @__PURE__ */ f.cloneElement(s, _)
|
|
495
495
|
})]
|
|
496
496
|
}))
|
|
497
497
|
});
|
|
@@ -615,18 +615,19 @@ process.env.NODE_ENV !== "production" && (re.propTypes = {
|
|
|
615
615
|
root: i.elementType
|
|
616
616
|
})
|
|
617
617
|
});
|
|
618
|
-
const K = ({ children: e, dialogTitle: t, dialogSubtitle: o,
|
|
618
|
+
const K = ({ children: e, dialogTitle: t, dialogSubtitle: o, icon: n, onClose: s = () => {
|
|
619
|
+
}, ...r }) => /* @__PURE__ */ S(
|
|
619
620
|
re,
|
|
620
621
|
{
|
|
621
|
-
onClose:
|
|
622
|
+
onClose: (a, c) => s(c),
|
|
622
623
|
slots: { backdrop: ae },
|
|
623
|
-
...
|
|
624
|
-
className: se(z.dialog,
|
|
624
|
+
...r,
|
|
625
|
+
className: se(z.dialog, r.className),
|
|
625
626
|
"aria-labelledby": "alert-dialog-title",
|
|
626
627
|
"aria-describedby": "alert-dialog-description",
|
|
627
628
|
children: /* @__PURE__ */ $("section", { className: z.dialog__panel, children: [
|
|
628
|
-
!!
|
|
629
|
-
/* @__PURE__ */ S(ee, { title: t, subTitle: o }),
|
|
629
|
+
!!s && /* @__PURE__ */ S(le, { handleOnClose: () => s("closeButtonClick") }),
|
|
630
|
+
/* @__PURE__ */ S(ee, { title: t, subTitle: o, icon: n }),
|
|
630
631
|
e
|
|
631
632
|
] })
|
|
632
633
|
}
|
|
@@ -4,78 +4,16 @@ import { StoryObj } from '@storybook/react';
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: {
|
|
7
|
-
({ children, dialogTitle, dialogSubtitle, onClose, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
({ children, dialogTitle, dialogSubtitle, icon, onClose, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
Title: import('react').FunctionComponent<import('./DialogTitle').DialogTitleProps>;
|
|
9
9
|
Content: import('react').FunctionComponent<import('./Content').DialogContentProps>;
|
|
10
10
|
Actions: import('react').FunctionComponent<import('./Actions').DialogActionProps>;
|
|
11
11
|
};
|
|
12
12
|
tags: string[];
|
|
13
|
-
decorators: ((Story: import('@storybook/
|
|
14
|
-
children: import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<unknown>>;
|
|
15
|
-
dialogTitle: import('react').ReactNode;
|
|
16
|
-
dialogSubtitle?: import('react').ReactNode;
|
|
17
|
-
onClose?: (() => void) | undefined;
|
|
18
|
-
closeAfterTransition?: boolean | undefined;
|
|
19
|
-
container?: Element | (() => Element | null) | null | undefined;
|
|
20
|
-
disableAutoFocus?: boolean | undefined;
|
|
21
|
-
disableEnforceFocus?: boolean | undefined;
|
|
22
|
-
disableEscapeKeyDown?: boolean | undefined;
|
|
23
|
-
disablePortal?: boolean | undefined;
|
|
24
|
-
disableRestoreFocus?: boolean | undefined;
|
|
25
|
-
disableScrollLock?: boolean | undefined;
|
|
26
|
-
hideBackdrop?: boolean | undefined;
|
|
27
|
-
keepMounted?: boolean | undefined;
|
|
28
|
-
onBackdropClick?: import('react').ReactEventHandler<{}> | undefined;
|
|
29
|
-
onTransitionEnter?: (() => void) | undefined;
|
|
30
|
-
onTransitionExited?: (() => void) | undefined;
|
|
31
|
-
open: boolean;
|
|
32
|
-
slotProps?: {
|
|
33
|
-
root?: import('@mui/base').SlotComponentProps<"div", import('@mui/base').ModalRootSlotPropsOverrides, {
|
|
34
|
-
children: import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>;
|
|
35
|
-
closeAfterTransition: boolean;
|
|
36
|
-
container?: Element | (() => Element | null) | null | undefined;
|
|
37
|
-
disableAutoFocus: boolean;
|
|
38
|
-
disableEnforceFocus: boolean;
|
|
39
|
-
disableEscapeKeyDown: boolean;
|
|
40
|
-
disablePortal: boolean;
|
|
41
|
-
disableRestoreFocus: boolean;
|
|
42
|
-
disableScrollLock: boolean;
|
|
43
|
-
hideBackdrop: boolean;
|
|
44
|
-
keepMounted: boolean;
|
|
45
|
-
onBackdropClick?: import('react').ReactEventHandler<{}> | undefined;
|
|
46
|
-
onClose?: ((event: {}, reason: "backdropClick" | "escapeKeyDown") => void) | undefined;
|
|
47
|
-
onTransitionEnter?: (() => void) | undefined;
|
|
48
|
-
onTransitionExited?: (() => void) | undefined;
|
|
49
|
-
open: boolean;
|
|
50
|
-
slotProps?: any | undefined;
|
|
51
|
-
slots?: import('@mui/base').ModalSlots | undefined;
|
|
52
|
-
exited: boolean;
|
|
53
|
-
}> | undefined;
|
|
54
|
-
backdrop?: import('@mui/base').SlotComponentProps<"div", import('@mui/base').ModalBackdropSlotPropsOverrides, {
|
|
55
|
-
children: import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>;
|
|
56
|
-
closeAfterTransition: boolean;
|
|
57
|
-
container?: Element | (() => Element | null) | null | undefined;
|
|
58
|
-
disableAutoFocus: boolean;
|
|
59
|
-
disableEnforceFocus: boolean;
|
|
60
|
-
disableEscapeKeyDown: boolean;
|
|
61
|
-
disablePortal: boolean;
|
|
62
|
-
disableRestoreFocus: boolean;
|
|
63
|
-
disableScrollLock: boolean;
|
|
64
|
-
hideBackdrop: boolean;
|
|
65
|
-
keepMounted: boolean;
|
|
66
|
-
onBackdropClick?: import('react').ReactEventHandler<{}> | undefined;
|
|
67
|
-
onClose?: ((event: {}, reason: "backdropClick" | "escapeKeyDown") => void) | undefined;
|
|
68
|
-
onTransitionEnter?: (() => void) | undefined;
|
|
69
|
-
onTransitionExited?: (() => void) | undefined;
|
|
70
|
-
open: boolean;
|
|
71
|
-
slotProps?: any | undefined;
|
|
72
|
-
slots?: import('@mui/base').ModalSlots | undefined;
|
|
73
|
-
exited: boolean;
|
|
74
|
-
}> | undefined;
|
|
75
|
-
} | undefined;
|
|
76
|
-
slots?: import('@mui/base').ModalSlots | undefined;
|
|
13
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
77
14
|
color?: string | undefined;
|
|
78
15
|
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
+
children: import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> & import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<unknown>>;
|
|
79
17
|
title?: string | undefined;
|
|
80
18
|
style?: import('react').CSSProperties | undefined;
|
|
81
19
|
className?: string | undefined;
|
|
@@ -84,6 +22,7 @@ declare const meta: {
|
|
|
84
22
|
defaultChecked?: boolean | undefined;
|
|
85
23
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
86
24
|
suppressContentEditableWarning?: boolean | undefined;
|
|
25
|
+
open: boolean;
|
|
87
26
|
content?: string | undefined;
|
|
88
27
|
dir?: string | undefined;
|
|
89
28
|
hidden?: boolean | undefined;
|
|
@@ -339,9 +278,72 @@ declare const meta: {
|
|
|
339
278
|
onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLDivElement> | undefined;
|
|
340
279
|
onTransitionEnd?: import('react').TransitionEventHandler<HTMLDivElement> | undefined;
|
|
341
280
|
onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLDivElement> | undefined;
|
|
281
|
+
slotProps?: {
|
|
282
|
+
root?: import('@mui/base').SlotComponentProps<"div", import('@mui/base').ModalRootSlotPropsOverrides, {
|
|
283
|
+
children: import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>;
|
|
284
|
+
closeAfterTransition: boolean;
|
|
285
|
+
container?: Element | (() => Element | null) | null | undefined;
|
|
286
|
+
disableAutoFocus: boolean;
|
|
287
|
+
disableEnforceFocus: boolean;
|
|
288
|
+
disableEscapeKeyDown: boolean;
|
|
289
|
+
disablePortal: boolean;
|
|
290
|
+
disableRestoreFocus: boolean;
|
|
291
|
+
disableScrollLock: boolean;
|
|
292
|
+
hideBackdrop: boolean;
|
|
293
|
+
keepMounted: boolean;
|
|
294
|
+
onBackdropClick?: import('react').ReactEventHandler<{}> | undefined;
|
|
295
|
+
onClose?: ((event: {}, reason: "backdropClick" | "escapeKeyDown") => void) | undefined;
|
|
296
|
+
onTransitionEnter?: (() => void) | undefined;
|
|
297
|
+
onTransitionExited?: (() => void) | undefined;
|
|
298
|
+
open: boolean;
|
|
299
|
+
slotProps?: any | undefined;
|
|
300
|
+
slots?: import('@mui/base').ModalSlots | undefined;
|
|
301
|
+
exited: boolean;
|
|
302
|
+
}> | undefined;
|
|
303
|
+
backdrop?: import('@mui/base').SlotComponentProps<"div", import('@mui/base').ModalBackdropSlotPropsOverrides, {
|
|
304
|
+
children: import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>;
|
|
305
|
+
closeAfterTransition: boolean;
|
|
306
|
+
container?: Element | (() => Element | null) | null | undefined;
|
|
307
|
+
disableAutoFocus: boolean;
|
|
308
|
+
disableEnforceFocus: boolean;
|
|
309
|
+
disableEscapeKeyDown: boolean;
|
|
310
|
+
disablePortal: boolean;
|
|
311
|
+
disableRestoreFocus: boolean;
|
|
312
|
+
disableScrollLock: boolean;
|
|
313
|
+
hideBackdrop: boolean;
|
|
314
|
+
keepMounted: boolean;
|
|
315
|
+
onBackdropClick?: import('react').ReactEventHandler<{}> | undefined;
|
|
316
|
+
onClose?: ((event: {}, reason: "backdropClick" | "escapeKeyDown") => void) | undefined;
|
|
317
|
+
onTransitionEnter?: (() => void) | undefined;
|
|
318
|
+
onTransitionExited?: (() => void) | undefined;
|
|
319
|
+
open: boolean;
|
|
320
|
+
slotProps?: any | undefined;
|
|
321
|
+
slots?: import('@mui/base').ModalSlots | undefined;
|
|
322
|
+
exited: boolean;
|
|
323
|
+
}> | undefined;
|
|
324
|
+
} | undefined;
|
|
325
|
+
slots?: import('@mui/base').ModalSlots | undefined;
|
|
342
326
|
key?: import('react').Key | null | undefined;
|
|
327
|
+
disablePortal?: boolean | undefined;
|
|
328
|
+
closeAfterTransition?: boolean | undefined;
|
|
329
|
+
container?: Element | (() => Element | null) | null | undefined;
|
|
330
|
+
disableAutoFocus?: boolean | undefined;
|
|
331
|
+
disableEnforceFocus?: boolean | undefined;
|
|
332
|
+
disableEscapeKeyDown?: boolean | undefined;
|
|
333
|
+
disableRestoreFocus?: boolean | undefined;
|
|
334
|
+
disableScrollLock?: boolean | undefined;
|
|
335
|
+
hideBackdrop?: boolean | undefined;
|
|
336
|
+
keepMounted?: boolean | undefined;
|
|
337
|
+
onBackdropClick?: import('react').ReactEventHandler<{}> | undefined;
|
|
338
|
+
onTransitionEnter?: (() => void) | undefined;
|
|
339
|
+
onTransitionExited?: (() => void) | undefined;
|
|
340
|
+
dialogTitle: import('react').ReactNode;
|
|
341
|
+
dialogSubtitle?: import('react').ReactNode;
|
|
342
|
+
icon?: import('../Icon/Icon').IconProps | undefined;
|
|
343
|
+
onClose?: ((reason?: import('./Dialog').CloseReason | undefined) => void) | undefined;
|
|
343
344
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
344
345
|
};
|
|
345
346
|
export default meta;
|
|
346
347
|
type Story = StoryObj<typeof meta>;
|
|
347
348
|
export declare const Simple: Story;
|
|
349
|
+
export declare const WithIcon: Story;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Icon } from '../Icon/Icon';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
3
|
|
|
3
4
|
export interface DialogTitleProps {
|
|
4
5
|
/** title to be displayed */
|
|
5
6
|
title?: ReactNode;
|
|
6
7
|
/** subtitle to be displayed */
|
|
7
8
|
subTitle?: ReactNode;
|
|
9
|
+
/** icon to show in the left side of the title */
|
|
10
|
+
icon?: ComponentProps<typeof Icon>;
|
|
8
11
|
}
|
|
9
12
|
/** internal component only - used by the dialog */
|
|
10
|
-
declare const DialogTitle: ({ title, subTitle }: DialogTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const DialogTitle: ({ title, subTitle, icon }: DialogTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
14
|
export default DialogTitle;
|
|
@@ -1,29 +1,35 @@
|
|
|
1
|
-
import { jsxs as l, Fragment as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsxs as l, Fragment as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as d } from "../Icon/Icon.js";
|
|
3
|
+
import { Typography as i } from "../Typography/Typography.js";
|
|
4
|
+
import { s as r } from "../../Dialog.module-W7UCXlf3.js";
|
|
5
|
+
const g = ({ title: o, subTitle: t, icon: a }) => /* @__PURE__ */ l(s, { children: [
|
|
6
|
+
/* @__PURE__ */ l(
|
|
7
|
+
i,
|
|
7
8
|
{
|
|
8
9
|
element: "h1",
|
|
9
10
|
elementProps: { id: "alert-dialog-title" },
|
|
10
|
-
variant: "
|
|
11
|
-
className:
|
|
12
|
-
|
|
11
|
+
variant: "base-xxl",
|
|
12
|
+
className: r.dialog__title,
|
|
13
|
+
bold: !0,
|
|
14
|
+
children: [
|
|
15
|
+
a && /* @__PURE__ */ e(d, { ...a }),
|
|
16
|
+
o
|
|
17
|
+
]
|
|
13
18
|
}
|
|
14
19
|
),
|
|
15
|
-
/* @__PURE__ */ e("hr", { className:
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
/* @__PURE__ */ e("hr", { className: r.dialog__divider, "aria-hidden": !0 }),
|
|
21
|
+
t && /* @__PURE__ */ e(
|
|
22
|
+
i,
|
|
18
23
|
{
|
|
19
24
|
element: "h2",
|
|
20
25
|
elementProps: { id: "alert-dialog-description" },
|
|
21
|
-
variant: "
|
|
22
|
-
className:
|
|
23
|
-
|
|
26
|
+
variant: "base-xl",
|
|
27
|
+
className: r.dialog__subtitle,
|
|
28
|
+
bold: !0,
|
|
29
|
+
children: t
|
|
24
30
|
}
|
|
25
31
|
)
|
|
26
32
|
] });
|
|
27
33
|
export {
|
|
28
|
-
|
|
34
|
+
g as default
|
|
29
35
|
};
|
|
@@ -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)[];
|
|
@@ -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
|
};
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import './assets/Dialog.css';
|
|
2
|
-
const _ = "_dialog__subtitle_dnr14_53", a = "_dialog_dnr14_53", o = "_dialog__backdrop_dnr14_88", r = "_dialog__panel_dnr14_96", d = "_dialog__title_dnr14_57", p = "_dialog__divider_dnr14_122", t = "_dialog__actions_dnr14_136", g = {
|
|
3
|
-
"u-typography-h1": "_u-typography-h1_dnr14_1",
|
|
4
|
-
"u-typography-h2": "_u-typography-h2_dnr14_8",
|
|
5
|
-
"u-typography-h3": "_u-typography-h3_dnr14_15",
|
|
6
|
-
"u-typography-h4": "_u-typography-h4_dnr14_22",
|
|
7
|
-
"u-typography-h5": "_u-typography-h5_dnr14_29",
|
|
8
|
-
"u-typography-h6": "_u-typography-h6_dnr14_36",
|
|
9
|
-
"u-typography-base": "_u-typography-base_dnr14_43",
|
|
10
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_dnr14_49",
|
|
11
|
-
"u-typography-base--xl": "_u-typography-base--xl_dnr14_53",
|
|
12
|
-
dialog__subtitle: _,
|
|
13
|
-
"u-typography-base--lg": "_u-typography-base--lg_dnr14_57",
|
|
14
|
-
"dialog__title--small": "_dialog__title--small_dnr14_57",
|
|
15
|
-
"u-typography-base--sm": "_u-typography-base--sm_dnr14_61",
|
|
16
|
-
"u-typography-base--bold": "_u-typography-base--bold_dnr14_65",
|
|
17
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_dnr14_68",
|
|
18
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_dnr14_71",
|
|
19
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_dnr14_74",
|
|
20
|
-
dialog: a,
|
|
21
|
-
dialog__backdrop: o,
|
|
22
|
-
dialog__panel: r,
|
|
23
|
-
dialog__title: d,
|
|
24
|
-
dialog__divider: p,
|
|
25
|
-
"dialog__close-icon": "_dialog__close-icon_dnr14_126",
|
|
26
|
-
dialog__actions: t
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
g as s
|
|
30
|
-
};
|