@blocklet/launcher-layout 2.13.69 → 3.0.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.
- package/lib/compact-layout.js +27 -78
- package/lib/content.js +16 -18
- package/lib/context/step.js +61 -126
- package/lib/header.js +107 -203
- package/lib/index.js +153 -219
- package/lib/info-list.js +54 -41
- package/lib/launch-result-message.js +39 -63
- package/lib/locale.js +9 -8
- package/lib/markdown-body.js +15 -19
- package/lib/nav.js +138 -190
- package/lib/page-header.js +22 -38
- package/lib/small-circle-progress.js +38 -45
- package/lib/theme-provider.js +21 -38
- package/lib/wizard/hotkey-submit.js +19 -35
- package/lib/wizard/server-eula.js +50 -65
- package/lib/wizard/wizard-desc.js +147 -240
- package/package.json +14 -24
- package/lib/LaunchResultMessage/demo/default.js +0 -82
- package/lib/LaunchResultMessage/result-message.stories.js +0 -27
- package/lib/Layout/demo/child-progress-in-memory-mode.js +0 -70
- package/lib/Layout/demo/child-progress.js +0 -54
- package/lib/Layout/demo/constants.js +0 -76
- package/lib/Layout/demo/default.js +0 -54
- package/lib/Layout/demo/extra-nav.js +0 -108
- package/lib/Layout/demo/logo-url.js +0 -31
- package/lib/Layout/demo/longest-steps-for-launch.js +0 -95
- package/lib/Layout/demo/memory-mode.js +0 -49
- package/lib/Layout/demo/old-code-compatible.js +0 -36
- package/lib/Layout/demo/optional-step.js +0 -61
- package/lib/Layout/demo/show-child.js +0 -93
- package/lib/Layout/demo/static-demo-data.json +0 -85
- package/lib/Layout/layout.stories.js +0 -28
package/lib/index.js
CHANGED
|
@@ -1,244 +1,182 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
16
|
-
const MobileContent = styled('div')`
|
|
1
|
+
import { jsx as i, jsxs as r, Fragment as O } from "react/jsx-runtime";
|
|
2
|
+
import z from "@arcblock/ux/lib/Center";
|
|
3
|
+
import { deepmerge as A } from "@arcblock/ux/lib/Theme";
|
|
4
|
+
import { ThemeProvider as W } from "@emotion/react";
|
|
5
|
+
import { styled as l, useTheme as R, useMediaQuery as _, StyledEngineProvider as D, ThemeProvider as F, Typography as k, CircularProgress as q } from "@mui/material";
|
|
6
|
+
import G from "lodash/isObject";
|
|
7
|
+
import t from "prop-types";
|
|
8
|
+
import { isValidElement as I, Suspense as Q } from "react";
|
|
9
|
+
import { HeaderAddons as V } from "@arcblock/ux/lib/Header";
|
|
10
|
+
import { useStepContext as B } from "./context/step.js";
|
|
11
|
+
import J from "./header.js";
|
|
12
|
+
import { getTranslations as K } from "./locale.js";
|
|
13
|
+
import U from "./nav.js";
|
|
14
|
+
import X from "./small-circle-progress.js";
|
|
15
|
+
const p = "72px", Y = l("div")`
|
|
17
16
|
box-sizing: border-box;
|
|
18
17
|
display: flex;
|
|
19
18
|
overflow: hidden;
|
|
20
19
|
width: 100%;
|
|
21
20
|
height: 100%;
|
|
22
|
-
padding-top: ${
|
|
23
|
-
|
|
24
|
-
const PcContent = styled('div')`
|
|
21
|
+
padding-top: ${p};
|
|
22
|
+
`, Z = l("div")`
|
|
25
23
|
display: flex;
|
|
26
24
|
min-width: 900px;
|
|
27
|
-
max-width: ${
|
|
25
|
+
max-width: ${(e) => e.contentMaxWidth};
|
|
28
26
|
max-height: 880px;
|
|
29
27
|
border-radius: 8px;
|
|
30
|
-
background-color: ${({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
width: ${props => props.width || '80%'};
|
|
34
|
-
height: ${props => props.height || '80%'};
|
|
28
|
+
background-color: ${({ theme: e }) => e.palette.background.paper};
|
|
29
|
+
width: ${(e) => e.width || "80%"};
|
|
30
|
+
height: ${(e) => e.height || "80%"};
|
|
35
31
|
|
|
36
32
|
@media (max-height: 1200px) {
|
|
37
|
-
margin-top: ${
|
|
33
|
+
margin-top: ${p};
|
|
38
34
|
height: 100%;
|
|
39
35
|
max-height: 100%;
|
|
40
36
|
}
|
|
41
37
|
`;
|
|
42
|
-
function
|
|
43
|
-
blockletMeta:
|
|
44
|
-
loading,
|
|
45
|
-
children,
|
|
46
|
-
logoUrl,
|
|
47
|
-
locale,
|
|
48
|
-
header,
|
|
49
|
-
headerEndAddons,
|
|
50
|
-
pcWidth,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
extraNav,
|
|
60
|
-
...rest
|
|
38
|
+
function L({
|
|
39
|
+
blockletMeta: e = {},
|
|
40
|
+
loading: c = !1,
|
|
41
|
+
children: T,
|
|
42
|
+
logoUrl: m = "",
|
|
43
|
+
locale: d = "en",
|
|
44
|
+
header: s = null,
|
|
45
|
+
headerEndAddons: h = null,
|
|
46
|
+
pcWidth: j = "80%",
|
|
47
|
+
navLogo: n = "",
|
|
48
|
+
useOfSkeleton: v = !0,
|
|
49
|
+
navSubTitle: u = "",
|
|
50
|
+
contentMaxWidth: g = "1245px",
|
|
51
|
+
theme: C = null,
|
|
52
|
+
themeOverrides: S = null,
|
|
53
|
+
extraNav: o = null,
|
|
54
|
+
...M
|
|
61
55
|
}) {
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
const {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
className: "left",
|
|
98
|
-
children: /*#__PURE__*/_jsx(AppHeader, {
|
|
99
|
-
blockletMeta: blockletMeta,
|
|
100
|
-
navLogo: navLogo,
|
|
101
|
-
subTitle: /*#__PURE__*/_jsxs("span", {
|
|
102
|
-
children: [`${navSubTitle || translations.defaultNavSubTitle} ${activeStep + 1}/${totalStepsCount}`, /*#__PURE__*/_jsx(SmallCircleProgress, {
|
|
103
|
-
value: (activeStep + 1) / totalStepsCount * 100,
|
|
104
|
-
style: {
|
|
105
|
-
marginLeft: 3
|
|
106
|
-
}
|
|
107
|
-
}), extraNav && /*#__PURE__*/_jsx(Typography, {
|
|
108
|
-
variant: "caption",
|
|
109
|
-
className: "extra-nav-text",
|
|
110
|
-
onClick: () => {
|
|
111
|
-
if (extraNav.link) {
|
|
112
|
-
window.open(extraNav.link, '_blank');
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
sx: {
|
|
116
|
-
ml: 1,
|
|
117
|
-
color: 'primary.main',
|
|
118
|
-
cursor: 'pointer',
|
|
119
|
-
'&:hover': {
|
|
120
|
-
opacity: 0.8
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
children: extraNav.appText || extraNav.text
|
|
124
|
-
})]
|
|
125
|
-
}),
|
|
126
|
-
logoUrl: logoUrl,
|
|
127
|
-
locale: locale,
|
|
128
|
-
loading: loading
|
|
129
|
-
})
|
|
130
|
-
}), navLogo && !isMobile && /*#__PURE__*/_jsx("div", {
|
|
131
|
-
className: "left",
|
|
132
|
-
children: navLogo
|
|
133
|
-
}), headerEndAddons && /*#__PURE__*/_jsx(HeaderAddons, {
|
|
134
|
-
className: "right",
|
|
135
|
-
children: headerEndAddons
|
|
136
|
-
})]
|
|
137
|
-
})]
|
|
138
|
-
}), /*#__PURE__*/_jsxs(Container, {
|
|
139
|
-
contentMaxWidth: contentMaxWidth,
|
|
140
|
-
className: "ll-container",
|
|
141
|
-
children: [/*#__PURE__*/_jsx(Hidden, {
|
|
142
|
-
mdDown: true,
|
|
143
|
-
children: /*#__PURE__*/_jsx(Nav, {
|
|
144
|
-
locale: locale,
|
|
145
|
-
blockletMeta: blockletMeta,
|
|
146
|
-
logoUrl: logoUrl,
|
|
147
|
-
useOfSkeleton: useOfSkeleton,
|
|
148
|
-
subTitle: navSubTitle,
|
|
149
|
-
loading: loading,
|
|
150
|
-
extraNav: extraNav
|
|
151
|
-
})
|
|
152
|
-
}), /*#__PURE__*/_jsx(Typography, {
|
|
153
|
-
component: "div",
|
|
154
|
-
className: "layout-content",
|
|
155
|
-
children: /*#__PURE__*/_jsx(Suspense, {
|
|
156
|
-
fallback: /*#__PURE__*/_jsx(Center, {
|
|
157
|
-
relative: "parent",
|
|
158
|
-
children: /*#__PURE__*/_jsx(CircularProgress, {
|
|
159
|
-
style: {
|
|
160
|
-
marginTop: 36
|
|
56
|
+
const P = R(), a = _((N) => N.breakpoints.down("md")), { activeStep: x, totalStepsCount: f } = B(), b = e || {}, H = a ? Y : Z, E = K(d);
|
|
57
|
+
n && !I(n) && G(n) && (a ? n = n.mobile : n = /* @__PURE__ */ i(ie, { children: n.desktop }));
|
|
58
|
+
const y = A(P, C || {}, S || {});
|
|
59
|
+
return /* @__PURE__ */ i(D, { injectFirst: !0, children: /* @__PURE__ */ i(F, { theme: y, children: /* @__PURE__ */ i(W, { theme: y, children: /* @__PURE__ */ r(te, { ...M, children: [
|
|
60
|
+
/* @__PURE__ */ r(ee, { maxWidth: g, width: j, className: "ll-header", children: [
|
|
61
|
+
s && s,
|
|
62
|
+
!s && /* @__PURE__ */ r(O, { children: [
|
|
63
|
+
a && /* @__PURE__ */ i("div", { className: "left", children: /* @__PURE__ */ i(
|
|
64
|
+
J,
|
|
65
|
+
{
|
|
66
|
+
blockletMeta: b,
|
|
67
|
+
navLogo: n,
|
|
68
|
+
subTitle: /* @__PURE__ */ r("span", { children: [
|
|
69
|
+
`${u || E.defaultNavSubTitle} ${x + 1}/${f}`,
|
|
70
|
+
/* @__PURE__ */ i(
|
|
71
|
+
X,
|
|
72
|
+
{
|
|
73
|
+
value: (x + 1) / f * 100,
|
|
74
|
+
style: { marginLeft: 3 }
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
o && /* @__PURE__ */ i(
|
|
78
|
+
k,
|
|
79
|
+
{
|
|
80
|
+
variant: "caption",
|
|
81
|
+
className: "extra-nav-text",
|
|
82
|
+
onClick: () => {
|
|
83
|
+
o.link && window.open(o.link, "_blank");
|
|
84
|
+
},
|
|
85
|
+
sx: {
|
|
86
|
+
ml: 1,
|
|
87
|
+
color: "primary.main",
|
|
88
|
+
cursor: "pointer",
|
|
89
|
+
"&:hover": {
|
|
90
|
+
opacity: 0.8
|
|
161
91
|
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
})
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
92
|
+
},
|
|
93
|
+
children: o.appText || o.text
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
] }),
|
|
97
|
+
logoUrl: m,
|
|
98
|
+
locale: d,
|
|
99
|
+
loading: c
|
|
100
|
+
}
|
|
101
|
+
) }),
|
|
102
|
+
n && !a && /* @__PURE__ */ i("div", { className: "left", children: n }),
|
|
103
|
+
h && /* @__PURE__ */ i(V, { className: "right", children: h })
|
|
104
|
+
] })
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ r(H, { contentMaxWidth: g, className: "ll-container", children: [
|
|
107
|
+
/* @__PURE__ */ i(
|
|
108
|
+
U,
|
|
109
|
+
{
|
|
110
|
+
sx: {
|
|
111
|
+
display: {
|
|
112
|
+
xs: "none",
|
|
113
|
+
md: "block"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
locale: d,
|
|
117
|
+
blockletMeta: b,
|
|
118
|
+
logoUrl: m,
|
|
119
|
+
useOfSkeleton: v,
|
|
120
|
+
subTitle: u,
|
|
121
|
+
loading: c,
|
|
122
|
+
extraNav: o
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ i(k, { component: "div", className: "layout-content", children: /* @__PURE__ */ i(
|
|
126
|
+
Q,
|
|
127
|
+
{
|
|
128
|
+
fallback: /* @__PURE__ */ i(z, { relative: "parent", children: /* @__PURE__ */ i(q, { style: { marginTop: 36 } }) }),
|
|
129
|
+
children: T
|
|
130
|
+
}
|
|
131
|
+
) })
|
|
132
|
+
] })
|
|
133
|
+
] }) }) }) });
|
|
172
134
|
}
|
|
173
|
-
|
|
174
|
-
loading:
|
|
175
|
-
blockletMeta:
|
|
176
|
-
children:
|
|
177
|
-
logoUrl:
|
|
178
|
-
locale:
|
|
179
|
-
header:
|
|
180
|
-
headerEndAddons:
|
|
181
|
-
pcWidth:
|
|
182
|
-
pcHeight:
|
|
183
|
-
contentMaxWidth:
|
|
184
|
-
navLogo:
|
|
185
|
-
useOfSkeleton:
|
|
186
|
-
stepTip:
|
|
187
|
-
navSubTitle:
|
|
135
|
+
L.propTypes = {
|
|
136
|
+
loading: t.bool,
|
|
137
|
+
blockletMeta: t.object,
|
|
138
|
+
children: t.object.isRequired,
|
|
139
|
+
logoUrl: t.string,
|
|
140
|
+
locale: t.oneOf(["en", "zh"]),
|
|
141
|
+
header: t.any,
|
|
142
|
+
headerEndAddons: t.any,
|
|
143
|
+
pcWidth: t.any,
|
|
144
|
+
pcHeight: t.any,
|
|
145
|
+
contentMaxWidth: t.string,
|
|
146
|
+
navLogo: t.oneOfType([t.node, t.object]),
|
|
147
|
+
useOfSkeleton: t.bool,
|
|
148
|
+
stepTip: t.string,
|
|
149
|
+
navSubTitle: t.string,
|
|
188
150
|
/** @deprecated Please use themeOverrides instead */
|
|
189
|
-
theme:
|
|
190
|
-
themeOverrides:
|
|
191
|
-
extraNav:
|
|
151
|
+
theme: t.object,
|
|
152
|
+
themeOverrides: t.object,
|
|
153
|
+
extraNav: t.object
|
|
192
154
|
};
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
header: null,
|
|
199
|
-
headerEndAddons: null,
|
|
200
|
-
pcWidth: '80%',
|
|
201
|
-
pcHeight: '80%',
|
|
202
|
-
contentMaxWidth: '1245px',
|
|
203
|
-
navLogo: '',
|
|
204
|
-
useOfSkeleton: true,
|
|
205
|
-
stepTip: '',
|
|
206
|
-
navSubTitle: '',
|
|
207
|
-
theme: null,
|
|
208
|
-
themeOverrides: null,
|
|
209
|
-
extraNav: null
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
// 针对 safari 下的 chrome 适配
|
|
213
|
-
const ua = navigator.userAgent.toLocaleLowerCase();
|
|
214
|
-
let injectStyle = '';
|
|
215
|
-
if (ua.includes('iphone os') && ua.includes('crios')) {
|
|
216
|
-
injectStyle = 'height: calc(100vh - 60px);';
|
|
217
|
-
}
|
|
218
|
-
const Header = styled('header')`
|
|
219
|
-
width: ${props => props.width || '80%'};
|
|
155
|
+
const w = navigator.userAgent.toLocaleLowerCase();
|
|
156
|
+
let $ = "";
|
|
157
|
+
w.includes("iphone os") && w.includes("crios") && ($ = "height: calc(100vh - 60px);");
|
|
158
|
+
const ee = l("header")`
|
|
159
|
+
width: ${(e) => e.width || "80%"};
|
|
220
160
|
min-width: 900px;
|
|
221
161
|
box-sizing: border-box;
|
|
222
162
|
position: absolute;
|
|
223
163
|
z-index: 200;
|
|
224
164
|
top: 0;
|
|
225
165
|
display: flex;
|
|
226
|
-
max-width: ${
|
|
166
|
+
max-width: ${(e) => e.maxWidth};
|
|
227
167
|
height: 68px;
|
|
228
168
|
align-items: center;
|
|
229
169
|
|
|
230
|
-
${
|
|
170
|
+
${(e) => `${e.theme.breakpoints.up("sm")} and (min-height: 900px)`} {
|
|
231
171
|
justify-content: flex-end;
|
|
232
172
|
}
|
|
233
173
|
|
|
234
|
-
${
|
|
174
|
+
${(e) => e.theme.breakpoints.down("md")} {
|
|
235
175
|
min-width: 360px;
|
|
236
176
|
width: 100%;
|
|
237
|
-
height: ${
|
|
177
|
+
height: ${p};
|
|
238
178
|
justify-content: space-between;
|
|
239
|
-
background-color: ${({
|
|
240
|
-
theme
|
|
241
|
-
}) => theme.palette.mode === 'dark' ? theme.palette.background.default : theme.palette.grey[100]};
|
|
179
|
+
background-color: ${({ theme: e }) => e.palette.mode === "dark" ? e.palette.background.default : e.palette.grey[100]};
|
|
242
180
|
}
|
|
243
181
|
|
|
244
182
|
.left {
|
|
@@ -246,17 +184,14 @@ const Header = styled('header')`
|
|
|
246
184
|
display: flex;
|
|
247
185
|
align-items: center;
|
|
248
186
|
}
|
|
249
|
-
|
|
250
|
-
const Root = styled('div')`
|
|
187
|
+
`, te = l("div")`
|
|
251
188
|
display: flex;
|
|
252
189
|
flex-direction: column;
|
|
253
190
|
justify-content: center;
|
|
254
191
|
align-items: center;
|
|
255
192
|
letter-spacing: normal;
|
|
256
|
-
background: ${({
|
|
257
|
-
|
|
258
|
-
}) => theme.palette.mode === 'dark' ? theme.palette.background.default : theme.palette.grey[100]};
|
|
259
|
-
${injectStyle}
|
|
193
|
+
background: ${({ theme: e }) => e.palette.mode === "dark" ? e.palette.background.default : e.palette.grey[100]};
|
|
194
|
+
${$}
|
|
260
195
|
|
|
261
196
|
header:empty {
|
|
262
197
|
display: none;
|
|
@@ -287,17 +222,16 @@ const Root = styled('div')`
|
|
|
287
222
|
flex-grow: 1;
|
|
288
223
|
height: 100%;
|
|
289
224
|
padding: 32px;
|
|
290
|
-
background-color: ${({
|
|
291
|
-
theme
|
|
292
|
-
}) => theme.palette.background.paper};
|
|
225
|
+
background-color: ${({ theme: e }) => e.palette.background.paper};
|
|
293
226
|
|
|
294
|
-
${
|
|
227
|
+
${(e) => e.theme.breakpoints.down("md")} {
|
|
295
228
|
padding: 16px;
|
|
296
229
|
}
|
|
297
230
|
}
|
|
298
|
-
|
|
299
|
-
const LogoContainer = styled('div')`
|
|
231
|
+
`, ie = l("div")`
|
|
300
232
|
display: block;
|
|
301
233
|
margin-top: 4px;
|
|
302
234
|
`;
|
|
303
|
-
export
|
|
235
|
+
export {
|
|
236
|
+
L as default
|
|
237
|
+
};
|
package/lib/info-list.js
CHANGED
|
@@ -1,45 +1,58 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
columnGap: 4,
|
|
16
|
-
rowGap: 1.5
|
|
17
|
-
},
|
|
18
|
-
children: infoList.map(item => /*#__PURE__*/_jsxs(_Fragment, {
|
|
19
|
-
children: [/*#__PURE__*/_jsx(Box, {
|
|
20
|
-
component: "span",
|
|
21
|
-
sx: {
|
|
22
|
-
fontWeight: 'bold',
|
|
23
|
-
whiteSpace: 'nowrap'
|
|
1
|
+
import { jsx as n, jsxs as p, Fragment as s } from "react/jsx-runtime";
|
|
2
|
+
import r from "prop-types";
|
|
3
|
+
import { Box as o } from "@mui/material";
|
|
4
|
+
function t({ infoList: a = [] }) {
|
|
5
|
+
return /* @__PURE__ */ n(
|
|
6
|
+
o,
|
|
7
|
+
{
|
|
8
|
+
className: "info-table",
|
|
9
|
+
sx: {
|
|
10
|
+
display: "grid",
|
|
11
|
+
gridTemplateColumns: {
|
|
12
|
+
xs: "1fr",
|
|
13
|
+
md: "max-content 1fr"
|
|
24
14
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
15
|
+
columnGap: 4,
|
|
16
|
+
rowGap: 1.5
|
|
17
|
+
},
|
|
18
|
+
children: a.map((e) => /* @__PURE__ */ p(s, { children: [
|
|
19
|
+
/* @__PURE__ */ n(
|
|
20
|
+
o,
|
|
21
|
+
{
|
|
22
|
+
component: "span",
|
|
23
|
+
sx: {
|
|
24
|
+
fontWeight: "bold",
|
|
25
|
+
whiteSpace: "nowrap"
|
|
26
|
+
},
|
|
27
|
+
children: e.key
|
|
32
28
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ n(
|
|
31
|
+
o,
|
|
32
|
+
{
|
|
33
|
+
component: "span",
|
|
34
|
+
sx: {
|
|
35
|
+
marginTop: {
|
|
36
|
+
xs: -1,
|
|
37
|
+
md: 0
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
children: e.value
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
] }))
|
|
44
|
+
}
|
|
45
|
+
);
|
|
38
46
|
}
|
|
39
|
-
|
|
47
|
+
t.propTypes = {
|
|
40
48
|
// eslint-disable-next-line react/require-default-props
|
|
41
|
-
infoList:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
49
|
+
infoList: r.arrayOf(
|
|
50
|
+
r.shape({
|
|
51
|
+
key: r.string,
|
|
52
|
+
value: r.string
|
|
53
|
+
})
|
|
54
|
+
)
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
t as default
|
|
58
|
+
};
|