@phillips/seldon 1.184.1 → 1.185.1
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/ComposedModal/ComposedModal.d.ts +1 -1
- package/dist/components/ComposedModal/ComposedModal.js +38 -38
- package/dist/scss/components/ComposedModal/_composedModal.scss +14 -6
- package/dist/scss/patterns/ViewingDetails/_viewingDetails.scss +0 -1
- package/dist/scss/site-furniture/Header/_header.scss +2 -2
- package/package.json +1 -1
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as e, jsx as m, Fragment as C } from "react/jsx-runtime";
|
|
2
2
|
import g from "../../node_modules/classnames/index.js";
|
|
3
3
|
import { forwardRef as x } from "react";
|
|
4
4
|
import { getCommonProps as k, noOp as M } from "../../utils/index.js";
|
|
5
|
-
import
|
|
6
|
-
import { ButtonVariants as
|
|
5
|
+
import t from "../Button/Button.js";
|
|
6
|
+
import { ButtonVariants as n } from "../Button/types.js";
|
|
7
7
|
import y from "../Divider/Divider.js";
|
|
8
8
|
import j from "../Modal/Modal.js";
|
|
9
|
-
import { TextVariants as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
9
|
+
import { TextVariants as c } from "../Text/types.js";
|
|
10
|
+
import p from "../Text/Text.js";
|
|
11
|
+
const u = x(
|
|
12
12
|
({
|
|
13
|
-
children:
|
|
14
|
-
className:
|
|
15
|
-
overlayClassName:
|
|
16
|
-
isOpen:
|
|
17
|
-
onClose:
|
|
18
|
-
maxHeightValue:
|
|
19
|
-
title:
|
|
20
|
-
footerContent:
|
|
21
|
-
secondaryButton:
|
|
22
|
-
primaryButton:
|
|
23
|
-
id:
|
|
24
|
-
...
|
|
13
|
+
children: f,
|
|
14
|
+
className: h,
|
|
15
|
+
overlayClassName: L,
|
|
16
|
+
isOpen: v = !1,
|
|
17
|
+
onClose: b = M,
|
|
18
|
+
maxHeightValue: N = "60vh",
|
|
19
|
+
title: l,
|
|
20
|
+
footerContent: s,
|
|
21
|
+
secondaryButton: i,
|
|
22
|
+
primaryButton: o,
|
|
23
|
+
id: r,
|
|
24
|
+
...d
|
|
25
25
|
}, _) => {
|
|
26
26
|
const {
|
|
27
27
|
className: a,
|
|
28
|
-
"data-testid":
|
|
28
|
+
"data-testid": P,
|
|
29
29
|
...$
|
|
30
|
-
} = k({ id:
|
|
31
|
-
return /* @__PURE__ */
|
|
30
|
+
} = k({ id: r, ...d }, "ComposedModal");
|
|
31
|
+
return /* @__PURE__ */ e(
|
|
32
32
|
j,
|
|
33
33
|
{
|
|
34
|
-
isOpen:
|
|
35
|
-
onClose:
|
|
36
|
-
...
|
|
34
|
+
isOpen: v,
|
|
35
|
+
onClose: b,
|
|
36
|
+
...d,
|
|
37
37
|
...$,
|
|
38
|
-
className: g(`${a}`,
|
|
39
|
-
id:
|
|
38
|
+
className: g(`${a}`, h),
|
|
39
|
+
id: r,
|
|
40
40
|
ref: _,
|
|
41
41
|
children: [
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
42
|
+
l ? /* @__PURE__ */ m(p, { variant: c.heading3, className: `${a}__title`, children: l }) : null,
|
|
43
|
+
/* @__PURE__ */ m(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
46
|
className: `${a}__body`,
|
|
47
|
-
style: { "--max-modal-body-height":
|
|
48
|
-
children:
|
|
47
|
+
style: { "--max-modal-body-height": N },
|
|
48
|
+
children: f
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
|
-
(
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
(i || o || s) && /* @__PURE__ */ e(C, { children: [
|
|
52
|
+
/* @__PURE__ */ m(y, { className: `${a}__divider`, id: `${r}-divider` }),
|
|
53
|
+
/* @__PURE__ */ e("div", { className: `${a}__btns-group`, children: [
|
|
54
|
+
i && /* @__PURE__ */ m(t, { id: `${r}-secondary-btn`, variant: n.secondary, onClick: i.onClick, children: i.buttonLabel }),
|
|
55
|
+
o && /* @__PURE__ */ m(t, { id: `${r}-primary-btn`, variant: n.primary, onClick: o.onClick, children: o.buttonLabel })
|
|
56
56
|
] }),
|
|
57
|
-
|
|
57
|
+
s && /* @__PURE__ */ m(p, { variant: c.heading5, className: `${a}__disclaimer`, children: s })
|
|
58
58
|
] })
|
|
59
59
|
]
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
|
-
|
|
64
|
+
u.displayName = "ComposedModal";
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
u as default
|
|
67
67
|
};
|
|
@@ -4,33 +4,41 @@
|
|
|
4
4
|
border-radius: 1rem;
|
|
5
5
|
max-width: 95vw;
|
|
6
6
|
min-width: 0;
|
|
7
|
-
padding: $spacing-sm 0;
|
|
7
|
+
padding: $spacing-lg 0 $spacing-sm 0;
|
|
8
8
|
width: 95vw;
|
|
9
|
+
&:not(:has(.#{$px}-composed-modal__btns-group)) {
|
|
10
|
+
padding-bottom: $spacing-lg;
|
|
11
|
+
}
|
|
9
12
|
|
|
10
13
|
&__title {
|
|
11
|
-
margin
|
|
12
|
-
padding: 0 $spacing-md;
|
|
14
|
+
margin: $spacing-md $spacing-lg $spacing-sm;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
&__body {
|
|
18
|
+
margin: 0 $spacing-lg $spacing-md;
|
|
16
19
|
max-height: var('--max-modal-body-height');
|
|
17
20
|
overflow-y: auto;
|
|
18
21
|
}
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
.#{$px}-divider {
|
|
21
24
|
margin: 0;
|
|
25
|
+
|
|
26
|
+
hr {
|
|
27
|
+
margin: 0;
|
|
28
|
+
}
|
|
22
29
|
}
|
|
23
30
|
|
|
24
31
|
&__btns-group {
|
|
25
32
|
display: flex;
|
|
26
33
|
gap: $spacing-sm;
|
|
27
34
|
justify-content: center;
|
|
28
|
-
|
|
35
|
+
margin: 0 $spacing-lg;
|
|
36
|
+
padding: $spacing-sm 0 0;
|
|
29
37
|
}
|
|
30
38
|
|
|
31
39
|
&__btns-group > * {
|
|
32
40
|
flex: 1 1 50%;
|
|
33
|
-
|
|
41
|
+
margin: $spacing-xsm 0 0;
|
|
34
42
|
}
|
|
35
43
|
|
|
36
44
|
&__btns {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
|
|
106
106
|
&__nav {
|
|
107
107
|
background-color: $pure-white;
|
|
108
|
-
height: calc(100dvh - $header-height);
|
|
108
|
+
height: calc(100dvh - $header-height - var(--banner-height, 0px));
|
|
109
109
|
overflow-y: auto;
|
|
110
110
|
position: relative;
|
|
111
111
|
width: 100%;
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
|
|
121
121
|
@include isHeaderMobile {
|
|
122
122
|
flex-direction: column;
|
|
123
|
-
height: calc(100dvh - var(--header-height) - 1px);
|
|
123
|
+
height: calc(100dvh - var(--header-height) - var(--banner-height, 0px) - 1px);
|
|
124
124
|
justify-content: flex-start;
|
|
125
125
|
}
|
|
126
126
|
|