@arcblock/ux 3.0.12 → 3.0.14
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/lib/ActivityIndicator/index.js +16 -16
- package/lib/Alert/index.js +17 -17
- package/lib/AnimationWaiter/index.js +13 -13
- package/lib/Blocklet/blocklet.js +15 -15
- package/lib/Blocklet/utils.d.ts +1 -1
- package/lib/Blocklet/utils.js +5 -6
- package/lib/BlockletNFT/index.js +23 -23
- package/lib/BlockletV2/utils.d.ts +1 -1
- package/lib/BlockletV2/utils.js +6 -7
- package/lib/Center/index.js +6 -7
- package/lib/CodeBlock/LightBox.d.ts +3 -2
- package/lib/CodeBlock/LightBox.js +2 -3
- package/lib/CookieConsent/index.js +1 -1
- package/lib/CountDown/index.js +23 -24
- package/lib/Datatable/CustomToolbar.js +71 -71
- package/lib/Datatable/TableSearch.js +18 -18
- package/lib/Datatable/index.js +77 -77
- package/lib/Earth/index.js +46 -47
- package/lib/Footer/index.js +8 -8
- package/lib/Icon/image.js +16 -17
- package/lib/InfoRow/index.js +11 -11
- package/lib/Layout/dashboard/index.js +18 -20
- package/lib/Layout/dashboard/sidebar.js +12 -12
- package/lib/Layout/dashboard-legacy/index.js +20 -20
- package/lib/Layout/dashboard-legacy/sidebar.js +16 -16
- package/lib/Layout/index.js +29 -29
- package/lib/Metric/index.js +9 -9
- package/lib/NFTDisplay/svg-embedder/inline-svg.js +6 -7
- package/lib/PageScroller/story/FullPage.js +1 -1
- package/lib/PageScroller/story/PageContain.js +1 -1
- package/lib/PageScroller/story/index.css +115 -0
- package/lib/PricingTable/index.js +9 -9
- package/lib/Result/result.js +14 -14
- package/lib/Screenshot/BaseScreenshot/index.js +9 -10
- package/lib/Screenshot/devices.css +1366 -0
- package/lib/Screenshot/index.js +27 -28
- package/lib/Video/index.js +11 -11
- package/lib/Wallet/Action.js +12 -12
- package/lib/Wallet/Download.js +11 -11
- package/lib/WechatPrompt/index.js +1 -1
- package/package.json +7 -7
- package/src/ActivityIndicator/index.jsx +2 -3
- package/src/Address/Address.stories.jsx +1 -2
- package/src/Alert/index.jsx +2 -2
- package/src/AnimationWaiter/index.jsx +2 -2
- package/src/Blocklet/blocklet.jsx +2 -2
- package/src/Blocklet/utils.jsx +1 -2
- package/src/BlockletNFT/index.jsx +2 -2
- package/src/BlockletV2/utils.js +1 -2
- package/src/Center/index.tsx +1 -2
- package/src/CodeBlock/LightBox.tsx +1 -2
- package/src/Colors/Colors.stories.jsx +1 -1
- package/src/CookieConsent/index.tsx +1 -1
- package/src/CountDown/index.tsx +2 -2
- package/src/DID/DID.stories.jsx +1 -2
- package/src/Datatable/CustomToolbar.jsx +2 -3
- package/src/Datatable/TableSearch.jsx +2 -2
- package/src/Datatable/index.jsx +4 -4
- package/src/Earth/index.tsx +2 -3
- package/src/Footer/index.tsx +1 -1
- package/src/Icon/image.tsx +1 -2
- package/src/InfoRow/index.tsx +2 -2
- package/src/Layout/dashboard/index.tsx +1 -3
- package/src/Layout/dashboard/sidebar.tsx +2 -2
- package/src/Layout/dashboard-legacy/index.tsx +1 -1
- package/src/Layout/dashboard-legacy/sidebar.tsx +2 -2
- package/src/Layout/index.tsx +1 -2
- package/src/Metric/index.tsx +2 -2
- package/src/NFTDisplay/svg-embedder/inline-svg.tsx +2 -2
- package/src/PricingTable/index.tsx +2 -2
- package/src/Result/result.tsx +1 -1
- package/src/Screenshot/BaseScreenshot/index.tsx +2 -2
- package/src/Screenshot/index.tsx +3 -3
- package/src/Video/index.tsx +2 -2
- package/src/Wallet/Action.tsx +2 -2
- package/src/Wallet/Download.tsx +2 -2
- package/src/WechatPrompt/index.tsx +1 -1
- package/vite.config.mjs +1 -1
- package/lib/ux.css +0 -1
@@ -1,12 +1,12 @@
|
|
1
1
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
2
2
|
import { memo as k } from "react";
|
3
3
|
import { useLocation as $, Link as s } from "react-router-dom";
|
4
|
-
import {
|
4
|
+
import { Button as w, useTheme as z, Typography as v } from "@mui/material";
|
5
5
|
import { teal as l } from "@mui/material/colors";
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import { styled as
|
9
|
-
function
|
6
|
+
import I from "../../Icon/image.js";
|
7
|
+
import j from "../../Logo/index.js";
|
8
|
+
import { styled as c } from "../../Theme/index.js";
|
9
|
+
function q({
|
10
10
|
images: e,
|
11
11
|
links: m,
|
12
12
|
prefix: p = "/images",
|
@@ -14,14 +14,14 @@ function C({
|
|
14
14
|
logo: f = void 0,
|
15
15
|
...x
|
16
16
|
}) {
|
17
|
-
const u =
|
18
|
-
return /* @__PURE__ */ a(
|
19
|
-
/* @__PURE__ */ t(s, { to: "/", className: "sidebar-logo", children: f || /* @__PURE__ */ t(
|
17
|
+
const u = z(), b = $(), h = (o, n) => new RegExp(`/${n}`).test(b.pathname);
|
18
|
+
return /* @__PURE__ */ a(L, { ...x, children: [
|
19
|
+
/* @__PURE__ */ t(s, { to: "/", className: "sidebar-logo", children: f || /* @__PURE__ */ t(j, { showText: !1, size: 20 }) }),
|
20
20
|
m.map(({ url: o, name: n, title: r, showBadge: y }) => {
|
21
21
|
const i = h(o, n);
|
22
|
-
return /* @__PURE__ */ a(
|
22
|
+
return /* @__PURE__ */ a(T, { component: s, selected: i, to: o, children: [
|
23
23
|
/* @__PURE__ */ t(
|
24
|
-
|
24
|
+
I,
|
25
25
|
{
|
26
26
|
name: e[n],
|
27
27
|
size: 36,
|
@@ -30,14 +30,14 @@ function C({
|
|
30
30
|
showBadge: y
|
31
31
|
}
|
32
32
|
),
|
33
|
-
/* @__PURE__ */ t(
|
33
|
+
/* @__PURE__ */ t(v, { component: "span", className: "menu-title", children: r })
|
34
34
|
] }, o);
|
35
35
|
}),
|
36
36
|
/* @__PURE__ */ t("div", { style: { flex: 1 } }),
|
37
37
|
g
|
38
38
|
] });
|
39
39
|
}
|
40
|
-
const
|
40
|
+
const L = k(c("div")`
|
41
41
|
flex: 1;
|
42
42
|
display: flex;
|
43
43
|
flex-direction: column;
|
@@ -58,7 +58,7 @@ const T = k(d(w)`
|
|
58
58
|
display: block;
|
59
59
|
}
|
60
60
|
}
|
61
|
-
`),
|
61
|
+
`), d = "linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))", T = c(w)`
|
62
62
|
&& {
|
63
63
|
display: flex;
|
64
64
|
flex-direction: column;
|
@@ -66,13 +66,13 @@ const T = k(d(w)`
|
|
66
66
|
align-items: center;
|
67
67
|
width: 100%;
|
68
68
|
transition: all 200ms ease-in-out;
|
69
|
-
background: ${(e) => e.selected ?
|
69
|
+
background: ${(e) => e.selected ? d : ""};
|
70
70
|
padding: 24px 0;
|
71
71
|
border-left: 2px solid ${(e) => e.selected ? l.A700 : "transparent"};
|
72
72
|
border-radius: 0;
|
73
73
|
|
74
74
|
&:hover {
|
75
|
-
background: ${
|
75
|
+
background: ${d};
|
76
76
|
border-left-color: ${l.A700};
|
77
77
|
}
|
78
78
|
|
@@ -89,5 +89,5 @@ const T = k(d(w)`
|
|
89
89
|
}
|
90
90
|
`;
|
91
91
|
export {
|
92
|
-
|
92
|
+
q as default
|
93
93
|
};
|
package/lib/Layout/index.js
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
import { jsx as e, jsxs as o, Fragment as
|
2
|
-
import { useState as
|
3
|
-
import
|
4
|
-
import {
|
5
|
-
import { Menu as
|
6
|
-
import
|
7
|
-
import
|
1
|
+
import { jsx as e, jsxs as o, Fragment as P } from "react/jsx-runtime";
|
2
|
+
import { useState as R, useEffect as W } from "react";
|
3
|
+
import $ from "react-helmet";
|
4
|
+
import { Container as t, Toolbar as u, Divider as B, List as C, Link as v, ListItemButton as G, ListItemText as M, AppBar as j, IconButton as E, Typography as w, Drawer as F } from "@mui/material";
|
5
|
+
import { Menu as S } from "@mui/icons-material";
|
6
|
+
import Z from "../Footer/index.js";
|
7
|
+
import A from "../Wallet/Open.js";
|
8
8
|
import b from "../Icon/index.js";
|
9
|
-
import
|
9
|
+
import H from "../Logo/index.js";
|
10
10
|
import { styled as x } from "../Theme/index.js";
|
11
|
-
function
|
11
|
+
function ie({
|
12
12
|
title: i,
|
13
13
|
brand: l,
|
14
14
|
description: s = void 0,
|
15
15
|
links: a = [],
|
16
|
-
logo: c = /* @__PURE__ */ e(
|
16
|
+
logo: c = /* @__PURE__ */ e(H, { showText: !1, style: { width: "40px", height: "40px" } }),
|
17
17
|
showLogo: d = !1,
|
18
18
|
addons: y = void 0,
|
19
|
-
footer: k = /* @__PURE__ */ e(t, { children: /* @__PURE__ */ e(
|
19
|
+
footer: k = /* @__PURE__ */ e(t, { children: /* @__PURE__ */ e(Z, {}) }),
|
20
20
|
baseUrl: h = "",
|
21
21
|
homeUrl: N = "/",
|
22
22
|
variant: z = "shadow",
|
@@ -24,10 +24,10 @@ function ne({
|
|
24
24
|
children: p,
|
25
25
|
...D
|
26
26
|
}) {
|
27
|
-
const [m, I] =
|
27
|
+
const [m, I] = R(!1), f = () => {
|
28
28
|
I(!m);
|
29
29
|
};
|
30
|
-
if (
|
30
|
+
if (W(() => {
|
31
31
|
const { searchParams: r } = new URL(window.location.href), g = r.get("inviter");
|
32
32
|
g && window.localStorage.setItem("inviter", g);
|
33
33
|
}, []), L)
|
@@ -37,23 +37,23 @@ function ne({
|
|
37
37
|
a.forEach((r) => {
|
38
38
|
T.startsWith(r.url) && r.url.length > n.length && (n = r.url);
|
39
39
|
});
|
40
|
-
const
|
40
|
+
const O = /* @__PURE__ */ o("div", { children: [
|
41
41
|
/* @__PURE__ */ o(u, { className: "toolbar toolbar--drawer", children: [
|
42
42
|
!!d && /* @__PURE__ */ e("div", { className: "menu-logo", children: c }),
|
43
43
|
/* @__PURE__ */ e("div", { style: { flexGrow: 1, overflow: "hidden", textOverflow: "ellipsis" }, children: l })
|
44
44
|
] }),
|
45
|
-
/* @__PURE__ */ e(
|
46
|
-
/* @__PURE__ */ e(
|
45
|
+
/* @__PURE__ */ e(B, {}),
|
46
|
+
/* @__PURE__ */ e(C, { children: a.map((r) => /* @__PURE__ */ e(v, { className: "nav-link", href: r.url, underline: "hover", children: /* @__PURE__ */ e(G, { className: n === r.url ? "drawer-highlight-nav" : "", children: /* @__PURE__ */ o(M, { children: [
|
47
47
|
typeof r.icon == "string" ? /* @__PURE__ */ e(b, { name: r.icon, size: 18 * (r.iconZoom || 1), color: "inherit", style: { marginRight: "5px" } }) : r.icon,
|
48
48
|
r.title
|
49
49
|
] }) }) }, r.url)) })
|
50
50
|
] });
|
51
|
-
return /* @__PURE__ */ o(
|
52
|
-
/* @__PURE__ */ o(
|
53
|
-
/* @__PURE__ */ e(
|
54
|
-
/* @__PURE__ */ e(
|
51
|
+
return /* @__PURE__ */ o(P, { children: [
|
52
|
+
/* @__PURE__ */ o(U, { ...D, children: [
|
53
|
+
/* @__PURE__ */ e($, { title: i }),
|
54
|
+
/* @__PURE__ */ e(j, { position: "fixed", className: `appbar appbar--${z}`, color: "default", style: { height: 56 }, children: /* @__PURE__ */ e(t, { disableGutters: !0, children: /* @__PURE__ */ o(u, { className: "toolbar", children: [
|
55
55
|
/* @__PURE__ */ e(
|
56
|
-
|
56
|
+
E,
|
57
57
|
{
|
58
58
|
color: "inherit",
|
59
59
|
"aria-label": "open drawer",
|
@@ -61,7 +61,7 @@ function ne({
|
|
61
61
|
onClick: f,
|
62
62
|
className: "menu-button",
|
63
63
|
size: "large",
|
64
|
-
children: /* @__PURE__ */ e(
|
64
|
+
children: /* @__PURE__ */ e(S, {})
|
65
65
|
}
|
66
66
|
),
|
67
67
|
!!d && /* @__PURE__ */ e("div", { className: "menu-logo", children: c }),
|
@@ -109,10 +109,10 @@ function ne({
|
|
109
109
|
/* @__PURE__ */ e("div", { className: "toolbar" }),
|
110
110
|
/* @__PURE__ */ e(t, { style: { marginTop: 16, flex: 1 }, children: p }),
|
111
111
|
k,
|
112
|
-
!!h && /* @__PURE__ */ e(
|
112
|
+
!!h && /* @__PURE__ */ e(A, { locale: "zh", link: h })
|
113
113
|
] }),
|
114
|
-
/* @__PURE__ */ e(
|
115
|
-
|
114
|
+
/* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(
|
115
|
+
F,
|
116
116
|
{
|
117
117
|
variant: "temporary",
|
118
118
|
open: m,
|
@@ -125,12 +125,12 @@ function ne({
|
|
125
125
|
// Better open performance on mobile.
|
126
126
|
disablePortal: !0
|
127
127
|
},
|
128
|
-
children:
|
128
|
+
children: O
|
129
129
|
}
|
130
130
|
) })
|
131
131
|
] });
|
132
132
|
}
|
133
|
-
const
|
133
|
+
const U = x("div")`
|
134
134
|
width: 100%;
|
135
135
|
min-height: 100vh;
|
136
136
|
display: flex;
|
@@ -213,7 +213,7 @@ const q = x($)`
|
|
213
213
|
}
|
214
214
|
}
|
215
215
|
}
|
216
|
-
`,
|
216
|
+
`, q = x("nav")`
|
217
217
|
width: 240px;
|
218
218
|
.drawer-paper {
|
219
219
|
width: 240px;
|
@@ -241,5 +241,5 @@ const q = x($)`
|
|
241
241
|
}
|
242
242
|
`;
|
243
243
|
export {
|
244
|
-
|
244
|
+
ie as default
|
245
245
|
};
|
package/lib/Metric/index.js
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
import { jsx as i, jsxs as m, Fragment as d } from "react/jsx-runtime";
|
2
|
-
import {
|
3
|
-
import
|
4
|
-
import { styled as
|
5
|
-
function
|
2
|
+
import { Link as x } from "@mui/material";
|
3
|
+
import h from "../Icon/image.js";
|
4
|
+
import { styled as f } from "../Theme/index.js";
|
5
|
+
function z({
|
6
6
|
icon: e,
|
7
7
|
value: r,
|
8
8
|
name: t,
|
9
9
|
url: a = "",
|
10
10
|
animated: o = !1,
|
11
|
-
LinkComponent: s =
|
11
|
+
LinkComponent: s = x,
|
12
12
|
prefix: l = "/images",
|
13
13
|
iconColor: p = "#222222",
|
14
14
|
iconStyle: c = {}
|
15
15
|
}) {
|
16
16
|
const n = /* @__PURE__ */ m(d, { children: [
|
17
17
|
/* @__PURE__ */ i("div", { className: "metric__image", children: /* @__PURE__ */ i(
|
18
|
-
|
18
|
+
h,
|
19
19
|
{
|
20
20
|
name: e,
|
21
21
|
alt: typeof t == "string" ? t : "",
|
@@ -36,9 +36,9 @@ function $({
|
|
36
36
|
/* @__PURE__ */ i("div", { className: "metric__name", children: t })
|
37
37
|
] })
|
38
38
|
] });
|
39
|
-
return /* @__PURE__ */ i(
|
39
|
+
return /* @__PURE__ */ i(g, { children: a ? /* @__PURE__ */ i(s, { to: a, children: n }) : n });
|
40
40
|
}
|
41
|
-
const
|
41
|
+
const g = f("div")`
|
42
42
|
border-left: 1px solid ${(e) => e.theme.palette.divider};
|
43
43
|
padding: 10px 0 10px 16px;
|
44
44
|
@media (max-width: ${(e) => e.theme.breakpoints.values.sm}px) {
|
@@ -111,5 +111,5 @@ const _ = g(x)`
|
|
111
111
|
}
|
112
112
|
`;
|
113
113
|
export {
|
114
|
-
|
114
|
+
z as default
|
115
115
|
};
|
@@ -1,15 +1,14 @@
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
2
|
-
import
|
3
|
-
import { Box as e } from "@mui/material";
|
2
|
+
import r from "react-shadow/emotion";
|
4
3
|
import { styled as o } from "../../Theme/index.js";
|
5
|
-
function
|
6
|
-
return /* @__PURE__ */ t(
|
4
|
+
function l({ svg: i, ...n }) {
|
5
|
+
return /* @__PURE__ */ t(e, { ...n, children: /* @__PURE__ */ t(d, { dangerouslySetInnerHTML: { __html: i } }) });
|
7
6
|
}
|
8
|
-
const
|
7
|
+
const e = o(r.span)`
|
9
8
|
display: block;
|
10
9
|
width: 100%;
|
11
10
|
height: 100%;
|
12
|
-
`,
|
11
|
+
`, d = o("div")`
|
13
12
|
&,
|
14
13
|
& > svg {
|
15
14
|
height: 100%;
|
@@ -19,5 +18,5 @@ const m = o(n.span)`
|
|
19
18
|
}
|
20
19
|
`;
|
21
20
|
export {
|
22
|
-
|
21
|
+
l as default
|
23
22
|
};
|
@@ -7,7 +7,7 @@ import c from "./SecondComponent.js";
|
|
7
7
|
import u from "./ThirdComponent.js";
|
8
8
|
import d from "./FourthComponent.js";
|
9
9
|
import f from "./FifthComponent.js";
|
10
|
-
|
10
|
+
import "./index.css";
|
11
11
|
function y() {
|
12
12
|
const [e, a] = m(0), n = [];
|
13
13
|
for (let o = 0; o < 5; o++)
|
@@ -7,7 +7,7 @@ import p from "./SecondComponent.js";
|
|
7
7
|
import d from "./ThirdComponent.js";
|
8
8
|
import h from "./FourthComponent.js";
|
9
9
|
import u from "./FifthComponent.js";
|
10
|
-
|
10
|
+
import "./index.css";
|
11
11
|
function F() {
|
12
12
|
const [e, a] = s(0), n = [];
|
13
13
|
for (let o = 0; o < 5; o++)
|
@@ -0,0 +1,115 @@
|
|
1
|
+
html,
|
2
|
+
body {
|
3
|
+
margin: 0;
|
4
|
+
height: 100%;
|
5
|
+
width: 100%;
|
6
|
+
overflow: hidden;
|
7
|
+
}
|
8
|
+
|
9
|
+
.links {
|
10
|
+
display: flex;
|
11
|
+
flex-direction: column;
|
12
|
+
margin-left: 50px;
|
13
|
+
}
|
14
|
+
|
15
|
+
.links .link {
|
16
|
+
margin-top: 20px;
|
17
|
+
}
|
18
|
+
|
19
|
+
.component {
|
20
|
+
height: 100%;
|
21
|
+
width: 100%;
|
22
|
+
display: flex;
|
23
|
+
}
|
24
|
+
|
25
|
+
.component.first-component {
|
26
|
+
background-color: gray;
|
27
|
+
position: relative;
|
28
|
+
}
|
29
|
+
|
30
|
+
.first-component--inside-scroller {
|
31
|
+
position: absolute;
|
32
|
+
right: 20px;
|
33
|
+
top: 100px;
|
34
|
+
}
|
35
|
+
|
36
|
+
.component.second-component {
|
37
|
+
background-color: red;
|
38
|
+
}
|
39
|
+
|
40
|
+
.component.third-component {
|
41
|
+
background-color: blue;
|
42
|
+
}
|
43
|
+
|
44
|
+
.component.fourth-component {
|
45
|
+
background-color: yellow;
|
46
|
+
}
|
47
|
+
|
48
|
+
.component.fifth-component {
|
49
|
+
background-color: purple;
|
50
|
+
}
|
51
|
+
|
52
|
+
h2 {
|
53
|
+
margin: auto;
|
54
|
+
text-align: center;
|
55
|
+
}
|
56
|
+
|
57
|
+
.pagination-additional-class {
|
58
|
+
margin: 0;
|
59
|
+
position: fixed;
|
60
|
+
top: 20px;
|
61
|
+
display: flex;
|
62
|
+
justify-content: center;
|
63
|
+
width: 100%;
|
64
|
+
}
|
65
|
+
|
66
|
+
.pagination-additional-class > li:not(:last-of-type) > a,
|
67
|
+
.pagination-additional-class > li:not(:last-of-type) > span {
|
68
|
+
margin-right: 50px;
|
69
|
+
}
|
70
|
+
|
71
|
+
.demo-page-contain {
|
72
|
+
display: flex;
|
73
|
+
justify-content: center;
|
74
|
+
align-items: center;
|
75
|
+
height: 100vh;
|
76
|
+
flex-direction: column;
|
77
|
+
}
|
78
|
+
|
79
|
+
.demo-page-contain__hint {
|
80
|
+
margin-bottom: 20px;
|
81
|
+
}
|
82
|
+
|
83
|
+
@media (max-width: 768px) {
|
84
|
+
.pagination-additional-class > li:not(:last-of-type) > a,
|
85
|
+
.pagination-additional-class > li:not(:last-of-type) > span {
|
86
|
+
margin-right: 5px;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
.demo-page-full {
|
91
|
+
position: relative;
|
92
|
+
}
|
93
|
+
.progress {
|
94
|
+
position: absolute;
|
95
|
+
left: 0;
|
96
|
+
bottom: 0;
|
97
|
+
width: 0;
|
98
|
+
overflow: hidden;
|
99
|
+
transition: all 0.2s linear;
|
100
|
+
}
|
101
|
+
.progress,
|
102
|
+
.progress:before {
|
103
|
+
height: 6px;
|
104
|
+
}
|
105
|
+
.progress:before {
|
106
|
+
display: block;
|
107
|
+
width: 100%;
|
108
|
+
background-color: #4e6af6;
|
109
|
+
content: '';
|
110
|
+
transform-origin: 0 100%;
|
111
|
+
transform: skewX(45deg);
|
112
|
+
}
|
113
|
+
.progress[style*='100%']:before {
|
114
|
+
transform: none;
|
115
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
2
|
-
import {
|
3
|
-
import
|
4
|
-
import { styled as
|
5
|
-
import { withDeprecated as
|
6
|
-
function
|
7
|
-
return i && i.length > 0 ? /* @__PURE__ */ e(
|
2
|
+
import { Grid as n } from "@mui/material";
|
3
|
+
import a from "./PricingPlan.js";
|
4
|
+
import { styled as m } from "../Theme/index.js";
|
5
|
+
import { withDeprecated as o } from "../Util/deprecate.js";
|
6
|
+
function d({ plans: i = [] }) {
|
7
|
+
return i && i.length > 0 ? /* @__PURE__ */ e(f, { variant: "even", children: /* @__PURE__ */ e(
|
8
8
|
n,
|
9
9
|
{
|
10
10
|
container: !0,
|
@@ -21,14 +21,14 @@ function f({ plans: i = [] }) {
|
|
21
21
|
sm: 6,
|
22
22
|
md: 3
|
23
23
|
},
|
24
|
-
children: /* @__PURE__ */ e(
|
24
|
+
children: /* @__PURE__ */ e(a, { plan: t })
|
25
25
|
},
|
26
26
|
r
|
27
27
|
))
|
28
28
|
}
|
29
29
|
) }) : null;
|
30
30
|
}
|
31
|
-
const
|
31
|
+
const g = o(d, { name: "PricingTable" }), f = m("div")`
|
32
32
|
padding: 100px 0;
|
33
33
|
text-align: center;
|
34
34
|
background-color: ${(i) => i.variant === "even" ? "#fbfbfb" : "#ffffff"};
|
@@ -42,5 +42,5 @@ const u = d(f, { name: "PricingTable" }), c = o(a)`
|
|
42
42
|
}
|
43
43
|
`;
|
44
44
|
export {
|
45
|
-
|
45
|
+
g as default
|
46
46
|
};
|
package/lib/Result/result.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import { jsxs as f, jsx as
|
2
|
-
import { Box as
|
1
|
+
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
2
|
+
import { Box as n } from "@mui/material";
|
3
3
|
import { styled as c } from "../Theme/index.js";
|
4
|
-
function g({ icon: r = null, title:
|
4
|
+
function g({ icon: r = null, title: t = "", description: o = "", extra: i = null, ...l }) {
|
5
5
|
return /* @__PURE__ */ f(s, { ...l, children: [
|
6
6
|
r,
|
7
|
-
typeof
|
8
|
-
|
7
|
+
typeof t == "string" ? /* @__PURE__ */ e(
|
8
|
+
n,
|
9
9
|
{
|
10
10
|
sx: {
|
11
11
|
mt: 3,
|
@@ -14,11 +14,11 @@ function g({ icon: r = null, title: o = "", description: e = "", extra: i = null
|
|
14
14
|
color: "#47494E",
|
15
15
|
textAlign: "center"
|
16
16
|
},
|
17
|
-
children:
|
17
|
+
children: t
|
18
18
|
}
|
19
|
-
) :
|
20
|
-
typeof
|
21
|
-
|
19
|
+
) : t,
|
20
|
+
typeof o == "string" ? /* @__PURE__ */ e(
|
21
|
+
n,
|
22
22
|
{
|
23
23
|
sx: {
|
24
24
|
mt: 1,
|
@@ -26,11 +26,11 @@ function g({ icon: r = null, title: o = "", description: e = "", extra: i = null
|
|
26
26
|
color: "#7F828B",
|
27
27
|
textAlign: "center"
|
28
28
|
},
|
29
|
-
children:
|
29
|
+
children: o
|
30
30
|
}
|
31
|
-
) :
|
32
|
-
/* @__PURE__ */
|
33
|
-
|
31
|
+
) : o,
|
32
|
+
/* @__PURE__ */ e(
|
33
|
+
n,
|
34
34
|
{
|
35
35
|
sx: {
|
36
36
|
mt: 3
|
@@ -40,7 +40,7 @@ function g({ icon: r = null, title: o = "", description: e = "", extra: i = null
|
|
40
40
|
)
|
41
41
|
] });
|
42
42
|
}
|
43
|
-
const s = c(
|
43
|
+
const s = c("div")`
|
44
44
|
box-sizing: border-box;
|
45
45
|
display: flex;
|
46
46
|
flex-direction: column;
|
@@ -1,21 +1,20 @@
|
|
1
1
|
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
2
|
-
import
|
3
|
-
import m from "./shells/Phone.js";
|
2
|
+
import p from "./shells/Phone.js";
|
4
3
|
import f from "./shells/Macbook.js";
|
5
|
-
import { styled as
|
6
|
-
const
|
7
|
-
phone:
|
4
|
+
import { styled as m } from "../../Theme/index.js";
|
5
|
+
const u = {
|
6
|
+
phone: p,
|
8
7
|
macbook: f
|
9
8
|
};
|
10
|
-
function
|
11
|
-
const r = s.toLowerCase(), { Shell: a, ratio:
|
9
|
+
function $({ width: e = 0, children: i, type: s = "phone", ...n }) {
|
10
|
+
const r = s.toLowerCase(), { Shell: a, ratio: d, screenData: t, width: l } = u[r || "phone"], h = m("div")`
|
12
11
|
position: relative;
|
13
12
|
display: inline-block;
|
14
|
-
width: ${e || `${
|
13
|
+
width: ${e || `${l}px`};
|
15
14
|
&:after {
|
16
15
|
display: block;
|
17
16
|
content: '';
|
18
|
-
padding-bottom: ${
|
17
|
+
padding-bottom: ${d * 100}%;
|
19
18
|
}
|
20
19
|
> svg {
|
21
20
|
display: block;
|
@@ -53,5 +52,5 @@ function k({ width: e = 0, children: i, type: s = "phone", ...n }) {
|
|
53
52
|
] }) });
|
54
53
|
}
|
55
54
|
export {
|
56
|
-
|
55
|
+
$ as default
|
57
56
|
};
|