@axos-web-dev/shared-components 1.0.29 → 1.0.30
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,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import css from "./wrapper.module.js";
|
|
3
|
-
const WalnutIframe = ({ id, sourceUrl }) => /* @__PURE__ */ jsx(
|
|
3
|
+
const WalnutIframe = ({ id, sourceUrl }) => /* @__PURE__ */ jsx("div", { className: css.wrapper, children: /* @__PURE__ */ jsx(
|
|
4
4
|
"iframe",
|
|
5
5
|
{
|
|
6
6
|
id: `id-${id}`,
|
|
@@ -13,10 +13,9 @@ const WalnutIframe = ({ id, sourceUrl }) => /* @__PURE__ */ jsx(
|
|
|
13
13
|
name: "walnut_iframe",
|
|
14
14
|
sandbox: "allow-scripts allow-same-origin allow-popups allow-forms allow-downloads allow-popups-to-escape-sandbox",
|
|
15
15
|
width: "100%",
|
|
16
|
-
height: "100%"
|
|
17
|
-
className: css.wrapper
|
|
16
|
+
height: "100%"
|
|
18
17
|
}
|
|
19
|
-
);
|
|
18
|
+
) });
|
|
20
19
|
export {
|
|
21
20
|
WalnutIframe as default
|
|
22
21
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import '../assets/WalnutIframe/wrapper.css.css';const wrapper = "
|
|
1
|
+
import '../assets/WalnutIframe/wrapper.css.css';const wrapper = "_wrapper_gpp1u_19";
|
|
2
|
+
const shimmer = "_shimmer_gpp1u_1";
|
|
2
3
|
const css = {
|
|
3
|
-
wrapper
|
|
4
|
+
wrapper,
|
|
5
|
+
shimmer
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
8
|
css as default,
|
|
9
|
+
shimmer,
|
|
7
10
|
wrapper
|
|
8
11
|
};
|
|
@@ -1,20 +1,51 @@
|
|
|
1
|
-
|
|
1
|
+
@keyframes _shimmer_gpp1u_1 {
|
|
2
|
+
from {
|
|
3
|
+
transform: translateX(-100%);
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
transform: translateX(100%);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
._wrapper_gpp1u_19 {
|
|
2
11
|
aspect-ratio: 1.845;
|
|
12
|
+
background: #1e3860;
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
isolation: isolate;
|
|
3
15
|
margin-block: 48px;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
position: relative;
|
|
4
18
|
}
|
|
5
19
|
|
|
6
|
-
.
|
|
20
|
+
section > ._wrapper_gpp1u_19:first-child {
|
|
7
21
|
margin-top: 0 !important;
|
|
8
22
|
}
|
|
9
23
|
|
|
24
|
+
._wrapper_gpp1u_19::before {
|
|
25
|
+
content: "";
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
width: 190%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
background: linear-gradient(
|
|
32
|
+
65deg,
|
|
33
|
+
rgba(255, 255, 255, 0) 20%,
|
|
34
|
+
rgba(255, 255, 255, 0.5) 50%,
|
|
35
|
+
rgba(255, 255, 255, 0) 80%
|
|
36
|
+
);
|
|
37
|
+
animation: _shimmer_gpp1u_1 1.3s infinite linear;
|
|
38
|
+
z-index: -1;
|
|
39
|
+
}
|
|
40
|
+
|
|
10
41
|
@media (max-width: 1023px) {
|
|
11
|
-
.
|
|
42
|
+
._wrapper_gpp1u_19 {
|
|
12
43
|
margin-block: 28px;
|
|
13
44
|
}
|
|
14
45
|
}
|
|
15
46
|
|
|
16
47
|
@media (max-width: 798px) {
|
|
17
|
-
.
|
|
48
|
+
._wrapper_gpp1u_19 {
|
|
18
49
|
display: none;
|
|
19
50
|
}
|
|
20
51
|
}
|