@phillips/seldon 1.24.0 → 1.25.0
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.
|
@@ -1,45 +1,40 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import a from "../../node_modules/classnames/index.js";
|
|
3
|
-
import { px as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
s
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
};
|
|
3
|
+
import { px as l, noOp as p } from "../../utils/index.js";
|
|
4
|
+
import c from "../../assets/close.svg.js";
|
|
5
|
+
import m from "../../node_modules/react-modal/lib/index.js";
|
|
6
|
+
import f from "../IconButton/IconButton.js";
|
|
7
|
+
const N = ({
|
|
8
|
+
children: t,
|
|
9
|
+
className: s,
|
|
10
|
+
isOpen: o = !1,
|
|
11
|
+
onClose: e = p,
|
|
12
|
+
appElementSelector: d = "main",
|
|
13
|
+
...i
|
|
14
|
+
}) => o ? (m.setAppElement(d), /* @__PURE__ */ n(
|
|
15
|
+
m,
|
|
16
|
+
{
|
|
17
|
+
isOpen: o,
|
|
18
|
+
onRequestClose: e,
|
|
19
|
+
className: a(`${l}-modal`, s),
|
|
20
|
+
overlayClassName: a(`${l}-modal__overlay`),
|
|
21
|
+
ariaHideApp: o,
|
|
22
|
+
...i,
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ r(
|
|
25
|
+
f,
|
|
26
|
+
{
|
|
27
|
+
"data-testid": "modal-button",
|
|
28
|
+
onClick: e,
|
|
29
|
+
"aria-label": "Close Modal",
|
|
30
|
+
className: a(`${l}-modal__close`),
|
|
31
|
+
children: /* @__PURE__ */ r(c, {})
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
t
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
)) : null;
|
|
43
38
|
export {
|
|
44
|
-
|
|
39
|
+
N as default
|
|
45
40
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { GridItemAlign } from './components/GridItem/types';
|
|
|
16
16
|
export { default as Select, type SelectProps } from './components/Select/Select';
|
|
17
17
|
export { default as SplitPanel, type SplitPanelProps } from './components/SplitPanel/SplitPanel';
|
|
18
18
|
export { default as Subscribe, type SubscribeProps } from './components/Subscribe/Subscribe';
|
|
19
|
+
export { type SubscriptionState } from './components/Subscribe/types';
|
|
19
20
|
export { default as Social, type SocialProps } from './components/Social/Social';
|
|
20
21
|
export { default as ViewingsList, type ViewingsListProps } from './components/ViewingsList/ViewingsList';
|
|
21
22
|
export { default as Modal, type ModalProps } from './components/Modal/Modal';
|