@blocklet/pages-kit-inner-components 0.6.1 → 0.6.3
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/cjs/add-component.js +1 -420
- package/lib/cjs/chunks/draft-data-CfIMszE7.js +1 -0
- package/lib/cjs/chunks/home-DUjl5PbP.js +6 -0
- package/lib/cjs/chunks/publish-button-C522nNv6.js +1 -0
- package/lib/cjs/chunks/site-state-BG2d2tBl.js +57 -0
- package/lib/cjs/chunks/state-CtNs8GrN.js +1 -0
- package/lib/cjs/home.js +1 -1
- package/lib/cjs/project-html.js +11 -4
- package/lib/cjs/resources.js +1 -1
- package/lib/es/add-component.js +2 -1089
- package/lib/es/chunks/{draft-data-CafrGKeh.js → draft-data-bRUHvvzp.js} +5 -4
- package/lib/es/chunks/home-VWWdvIPQ.js +69 -0
- package/lib/es/chunks/{publish-button-XSZrDaTQ.js → publish-button-Ceet-m88.js} +158 -140
- package/lib/es/chunks/site-state-BoVWlYLn.js +2096 -0
- package/lib/es/chunks/state-BdNIIXJP.js +502 -0
- package/lib/es/home.js +3 -28
- package/lib/es/project-html.js +114 -130
- package/lib/es/resources.js +93 -137
- package/package.json +11 -11
- package/lib/cjs/chunks/draft-data-D44_IEV2.js +0 -1
- package/lib/cjs/chunks/home-BYk01EUy.js +0 -39
- package/lib/cjs/chunks/index-BRgYwvuv.js +0 -475
- package/lib/cjs/chunks/publish-button-C8XPA4g_.js +0 -1
- package/lib/cjs/chunks/session-BRtsDvA-.js +0 -1
- package/lib/cjs/chunks/site-state-gSkcvhcV.js +0 -57
- package/lib/cjs/chunks/state-B6BF5wJ-.js +0 -1
- package/lib/cjs/chunks-map.json +0 -1
- package/lib/cjs/components.js +0 -1
- package/lib/cjs/locales.js +0 -3
- package/lib/cjs/setting.js +0 -11
- package/lib/cjs/site-state.js +0 -1
- package/lib/cjs/theme.js +0 -1
- package/lib/cjs/uploader.js +0 -1
- package/lib/es/chunks/home-DW8SdyfO.js +0 -594
- package/lib/es/chunks/index-D5gXPe_7.js +0 -2326
- package/lib/es/chunks/session-C72Dq8zg.js +0 -19
- package/lib/es/chunks/site-state-W2H7XCSQ.js +0 -2077
- package/lib/es/chunks/state-0gvZF3k2.js +0 -573
- package/lib/es/chunks-map.json +0 -1
- package/lib/es/components.js +0 -22
- package/lib/es/locales.js +0 -1032
- package/lib/es/setting.js +0 -2294
- package/lib/es/site-state.js +0 -48
- package/lib/es/theme.js +0 -484
- package/lib/es/uploader.js +0 -8
package/lib/es/site-state.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { p as j, n as q, o as v, S as B, q as L, r as U, s as h, b as y, v as z, u as C, t as F, w as G } from "./chunks/site-state-W2H7XCSQ.js";
|
|
2
|
-
import { nextId as K } from "@blocklet/pages-kit/utils/common";
|
|
3
|
-
import "@blocklet/pages-kit/utils/page-model";
|
|
4
|
-
import "@blocklet/pages-kit/utils/property";
|
|
5
|
-
import "@blocklet/pages-kit/utils/route";
|
|
6
|
-
import "@blocklet/sdk/lib/component";
|
|
7
|
-
import "@blocklet/sdk/lib/config";
|
|
8
|
-
import "@reactivedata/reactive";
|
|
9
|
-
import "@syncedstore/core";
|
|
10
|
-
import "crypto";
|
|
11
|
-
import "fs";
|
|
12
|
-
import "glob";
|
|
13
|
-
import "lib0/decoding";
|
|
14
|
-
import "lib0/encoding";
|
|
15
|
-
import "lodash/cloneDeep";
|
|
16
|
-
import "lodash/debounce";
|
|
17
|
-
import "lodash/get";
|
|
18
|
-
import "lodash/isEmpty";
|
|
19
|
-
import "lodash/pick";
|
|
20
|
-
import "lodash/set";
|
|
21
|
-
import "lodash/union";
|
|
22
|
-
import "lru-cache";
|
|
23
|
-
import "p-limit";
|
|
24
|
-
import "path";
|
|
25
|
-
import "stream/promises";
|
|
26
|
-
import "tar";
|
|
27
|
-
import "ufo";
|
|
28
|
-
import "wait-on";
|
|
29
|
-
import "y-protocols/awareness";
|
|
30
|
-
import "y-protocols/sync";
|
|
31
|
-
import "yaml";
|
|
32
|
-
import "yjs";
|
|
33
|
-
export * from "@blocklet/pages-kit/types/state";
|
|
34
|
-
export {
|
|
35
|
-
j as PUBLISH_MODES,
|
|
36
|
-
q as SITE_STATE_PATH,
|
|
37
|
-
v as STATE_MODES,
|
|
38
|
-
B as default,
|
|
39
|
-
L as downloadAsset,
|
|
40
|
-
U as downloadAssets,
|
|
41
|
-
h as fromPackage,
|
|
42
|
-
y as getResourceStates,
|
|
43
|
-
z as initPackResourceStates,
|
|
44
|
-
C as mergeState,
|
|
45
|
-
K as nextId,
|
|
46
|
-
F as toPackage,
|
|
47
|
-
G as triggerReloadAllProjectResource
|
|
48
|
-
};
|
package/lib/es/theme.js
DELETED
|
@@ -1,484 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { ConfigProvider as c } from "@arcblock/ux/lib/Config";
|
|
3
|
-
import { Icon as h } from "@iconify-icon/react";
|
|
4
|
-
import $ from "@iconify-icons/tabler/chevron-down";
|
|
5
|
-
import { listItemIconClasses as y, switchClasses as S, svgIconClasses as s, sliderClasses as o, outlinedInputClasses as m, inputBaseClasses as t, filledInputClasses as u, inputLabelClasses as i, inputClasses as l, selectClasses as g, autocompleteClasses as p, Box as z } from "@mui/material";
|
|
6
|
-
import { useMemo as v } from "react";
|
|
7
|
-
import { useLocation as M } from "react-router-dom";
|
|
8
|
-
import { S as I } from "./chunks/session-C72Dq8zg.js";
|
|
9
|
-
import { translations as C } from "./locales.js";
|
|
10
|
-
const n = window.blocklet?.prefix || "/", O = n.endsWith("/") ? `${n}admin` : `${n}/admin`, f = {
|
|
11
|
-
fontSize: "5rem",
|
|
12
|
-
"@media (max-width: 1536px)": {
|
|
13
|
-
fontSize: "5rem"
|
|
14
|
-
},
|
|
15
|
-
"@media (max-width: 1200px)": {
|
|
16
|
-
fontSize: "4rem"
|
|
17
|
-
},
|
|
18
|
-
"@media (max-width: 900px)": {
|
|
19
|
-
fontSize: "3rem"
|
|
20
|
-
},
|
|
21
|
-
"@media (max-width: 600px)": {
|
|
22
|
-
fontSize: "2rem"
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
function x(e) {
|
|
26
|
-
return /* @__PURE__ */ a(z, { ...e, component: h, icon: $ });
|
|
27
|
-
}
|
|
28
|
-
const T = {
|
|
29
|
-
typography: {
|
|
30
|
-
big: { ...f },
|
|
31
|
-
button: {
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
textTransform: "none",
|
|
34
|
-
WebkitTextTransform: "none"
|
|
35
|
-
},
|
|
36
|
-
subtitle1: {
|
|
37
|
-
fontWeight: 600,
|
|
38
|
-
fontSize: "18px",
|
|
39
|
-
lineHeight: 1.5
|
|
40
|
-
},
|
|
41
|
-
subtitle2: {
|
|
42
|
-
fontSize: "14px",
|
|
43
|
-
lineHeight: "24px",
|
|
44
|
-
fontWeight: 500,
|
|
45
|
-
marginBottom: "4px"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
palette: {
|
|
49
|
-
background: {},
|
|
50
|
-
action: {
|
|
51
|
-
// selected: 'rgba(25, 118, 210, 0.08)',
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
shape: {
|
|
55
|
-
borderRadius: 8
|
|
56
|
-
},
|
|
57
|
-
components: {
|
|
58
|
-
MuiCssBaseline: {},
|
|
59
|
-
MuiFormLabel: {
|
|
60
|
-
styleOverrides: {
|
|
61
|
-
root: {
|
|
62
|
-
fontSize: "0.875rem"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
MuiFormControlLabel: {
|
|
67
|
-
styleOverrides: {
|
|
68
|
-
root: {
|
|
69
|
-
marginLeft: 0
|
|
70
|
-
},
|
|
71
|
-
label: {
|
|
72
|
-
fontSize: "0.875rem"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
MuiInputLabel: {
|
|
77
|
-
styleOverrides: {
|
|
78
|
-
root: {
|
|
79
|
-
fontSize: "0.875rem"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
MuiRadio: {
|
|
84
|
-
styleOverrides: {
|
|
85
|
-
root: {
|
|
86
|
-
padding: 4,
|
|
87
|
-
[`.${s.fontSizeMedium}`]: {
|
|
88
|
-
fontSize: "1.25rem"
|
|
89
|
-
},
|
|
90
|
-
[`.${s.fontSizeSmall}`]: {
|
|
91
|
-
fontSize: "1.125rem"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
MuiCheckbox: {
|
|
97
|
-
styleOverrides: {
|
|
98
|
-
root: {
|
|
99
|
-
padding: 4,
|
|
100
|
-
[`.${s.fontSizeMedium}`]: {
|
|
101
|
-
fontSize: "1.25rem"
|
|
102
|
-
},
|
|
103
|
-
[`.${s.fontSizeSmall}`]: {
|
|
104
|
-
fontSize: "1.125rem"
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
MuiSwitch: {
|
|
110
|
-
styleOverrides: {
|
|
111
|
-
root: {
|
|
112
|
-
height: 28,
|
|
113
|
-
width: 48,
|
|
114
|
-
padding: 8,
|
|
115
|
-
[`&.${S.sizeSmall}`]: {
|
|
116
|
-
height: 26,
|
|
117
|
-
width: 40,
|
|
118
|
-
padding: 8
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
switchBase: {
|
|
122
|
-
padding: 4
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
MuiAutocomplete: {
|
|
127
|
-
defaultProps: { popupIcon: /* @__PURE__ */ a(x, { fontSize: 14 }) },
|
|
128
|
-
variants: [
|
|
129
|
-
{
|
|
130
|
-
props: {},
|
|
131
|
-
style: ({ theme: e }) => e.unstable_sx({
|
|
132
|
-
[`.${p.inputRoot}`]: {
|
|
133
|
-
pt: 1.5,
|
|
134
|
-
pb: 0.25,
|
|
135
|
-
[`.${p.input}.${t.input}`]: {
|
|
136
|
-
px: 0,
|
|
137
|
-
pt: 0.5,
|
|
138
|
-
pb: 0.25
|
|
139
|
-
},
|
|
140
|
-
[`&.${t.sizeSmall}`]: {
|
|
141
|
-
[`.${p.input}.${t.input}`]: {
|
|
142
|
-
px: 0,
|
|
143
|
-
py: 0,
|
|
144
|
-
pb: "1px"
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
})
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
MuiTextField: {
|
|
153
|
-
defaultProps: { variant: "filled" },
|
|
154
|
-
variants: [
|
|
155
|
-
{
|
|
156
|
-
props: {},
|
|
157
|
-
// @ts-ignore
|
|
158
|
-
style: ({ theme: e, ownerState: r }) => e.unstable_sx({
|
|
159
|
-
[`.${t.root}`]: {
|
|
160
|
-
borderRadius: 1,
|
|
161
|
-
lineHeight: "1.5rem",
|
|
162
|
-
[`.${t.input}`]: {
|
|
163
|
-
height: "1.5rem"
|
|
164
|
-
},
|
|
165
|
-
[`&.${l.multiline}`]: {
|
|
166
|
-
pl: 0,
|
|
167
|
-
pr: 0,
|
|
168
|
-
pt: r?.label ? 2 : 1,
|
|
169
|
-
"& .MuiInputBase-inputMultiline": {
|
|
170
|
-
py: 0
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
// standard
|
|
175
|
-
[`.${l.root}`]: {
|
|
176
|
-
mt: 1.5,
|
|
177
|
-
[`&.${t.hiddenLabel}`]: {
|
|
178
|
-
mt: 0,
|
|
179
|
-
pt: 0,
|
|
180
|
-
[`.${g.select}.${l.input}:focus`]: {
|
|
181
|
-
bgcolor: "transparent"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
[`.${i.standard}`]: {
|
|
186
|
-
transform: "translate(0px, 18px) scale(1)",
|
|
187
|
-
[`&.${i.sizeSmall}`]: {
|
|
188
|
-
transform: "translate(0px, 15px) scale(1)"
|
|
189
|
-
},
|
|
190
|
-
[`&.${i.shrink}`]: {
|
|
191
|
-
transform: "translate(0px, -1px) scale(0.8)",
|
|
192
|
-
[`&.${i.sizeSmall}`]: {
|
|
193
|
-
transform: "translate(0px, -1px) scale(0.8)"
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
// filled
|
|
198
|
-
[`.${u.root}`]: {
|
|
199
|
-
":before,:after": { display: "none" },
|
|
200
|
-
[`.${t.input}`]: {
|
|
201
|
-
pb: 0.5,
|
|
202
|
-
pt: r?.label ? 2 : 0.5,
|
|
203
|
-
px: 1,
|
|
204
|
-
":focus": {
|
|
205
|
-
borderRadius: 1
|
|
206
|
-
},
|
|
207
|
-
[`&.${t.inputSizeSmall}`]: {
|
|
208
|
-
pb: 0.25,
|
|
209
|
-
pt: r?.label ? 1.25 : 0.25,
|
|
210
|
-
...r?.multiline ? {
|
|
211
|
-
pt: 0
|
|
212
|
-
} : {}
|
|
213
|
-
},
|
|
214
|
-
[`&.${t.inputHiddenLabel}`]: {
|
|
215
|
-
py: 0.5,
|
|
216
|
-
[`&.${t.inputSizeSmall}`]: {
|
|
217
|
-
py: "1px"
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
[`.${i.filled}`]: {
|
|
223
|
-
transform: "translate(8px, 11px) scale(1)",
|
|
224
|
-
[`&.${i.sizeSmall}`]: {
|
|
225
|
-
transform: "translate(8px, 7px) scale(1)"
|
|
226
|
-
},
|
|
227
|
-
[`&.${i.shrink}`]: {
|
|
228
|
-
transform: "translate(8px, 2px) scale(0.8)",
|
|
229
|
-
[`&.${i.sizeSmall}`]: {
|
|
230
|
-
transform: "translate(8px, 0) scale(0.8)"
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
// outlined
|
|
235
|
-
[`.${m.root}`]: {
|
|
236
|
-
[`.${t.input}`]: {
|
|
237
|
-
py: 1.25,
|
|
238
|
-
px: 1,
|
|
239
|
-
[`&.${t.inputSizeSmall}`]: {
|
|
240
|
-
py: 0.875
|
|
241
|
-
},
|
|
242
|
-
[`&.${t.inputHiddenLabel}`]: {
|
|
243
|
-
py: 0.5,
|
|
244
|
-
[`&.${t.inputSizeSmall}`]: {
|
|
245
|
-
py: "1px"
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
[`.${i.outlined}`]: {
|
|
251
|
-
transform: "translate(8px, 10px) scale(1)",
|
|
252
|
-
[`&.${i.sizeSmall}`]: {
|
|
253
|
-
transform: "translate(8px, 7px) scale(1)"
|
|
254
|
-
},
|
|
255
|
-
[`&.${i.shrink}`]: {
|
|
256
|
-
transform: "translate(16px, -7px) scale(0.8)"
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
})
|
|
260
|
-
}
|
|
261
|
-
]
|
|
262
|
-
},
|
|
263
|
-
MuiInput: {
|
|
264
|
-
defaultProps: { disableUnderline: !0 },
|
|
265
|
-
variants: [
|
|
266
|
-
{
|
|
267
|
-
props: { disableUnderline: !0 },
|
|
268
|
-
style: ({ theme: e }) => e.unstable_sx({
|
|
269
|
-
fontSize: "0.875rem",
|
|
270
|
-
lineHeight: "1.5rem",
|
|
271
|
-
[`&.${t.multiline}`]: {
|
|
272
|
-
py: 0
|
|
273
|
-
},
|
|
274
|
-
[`.${t.input}`]: {
|
|
275
|
-
py: 0.5,
|
|
276
|
-
height: "1.5rem"
|
|
277
|
-
},
|
|
278
|
-
[`&.${t.sizeSmall}`]: {
|
|
279
|
-
[`.${t.input}`]: {
|
|
280
|
-
py: "1px"
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
})
|
|
284
|
-
}
|
|
285
|
-
]
|
|
286
|
-
},
|
|
287
|
-
MuiFilledInput: {
|
|
288
|
-
styleOverrides: {
|
|
289
|
-
root: ({ theme: e }) => e.unstable_sx({
|
|
290
|
-
fontSize: "0.875rem",
|
|
291
|
-
bgcolor: e.palette.grey[100],
|
|
292
|
-
"&:hover": {
|
|
293
|
-
bgcolor: e.palette.grey[100]
|
|
294
|
-
},
|
|
295
|
-
"@media (hover: none)": {
|
|
296
|
-
bgcolor: e.palette.grey[100]
|
|
297
|
-
}
|
|
298
|
-
})
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
MuiSelect: {
|
|
302
|
-
styleOverrides: {
|
|
303
|
-
select: {
|
|
304
|
-
display: "flex",
|
|
305
|
-
alignItems: "center",
|
|
306
|
-
[`.${y.root}`]: {
|
|
307
|
-
minWidth: 20
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
defaultProps: { variant: "filled", IconComponent: x },
|
|
312
|
-
variants: [
|
|
313
|
-
{
|
|
314
|
-
props: {},
|
|
315
|
-
style: ({ theme: e }) => e.unstable_sx({
|
|
316
|
-
fontSize: "0.875rem",
|
|
317
|
-
borderRadius: 1,
|
|
318
|
-
lineHeight: "1.5rem",
|
|
319
|
-
// filled
|
|
320
|
-
[`&.${u.root}`]: {
|
|
321
|
-
":before,:after": { display: "none" },
|
|
322
|
-
[`.${t.input}`]: {
|
|
323
|
-
py: 0.5,
|
|
324
|
-
borderRadius: 1,
|
|
325
|
-
[`&.${t.inputSizeSmall}`]: {
|
|
326
|
-
py: "1px"
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
// outlined
|
|
331
|
-
[`&.${m.root}`]: {
|
|
332
|
-
[`.${t.input}`]: {
|
|
333
|
-
py: 0.5,
|
|
334
|
-
borderRadius: 1,
|
|
335
|
-
[`&.${t.inputSizeSmall}`]: {
|
|
336
|
-
py: "1px"
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
})
|
|
341
|
-
}
|
|
342
|
-
]
|
|
343
|
-
},
|
|
344
|
-
MuiSlider: {
|
|
345
|
-
defaultProps: {},
|
|
346
|
-
variants: [
|
|
347
|
-
{
|
|
348
|
-
props: {},
|
|
349
|
-
style: ({ theme: e }) => e.unstable_sx({
|
|
350
|
-
height: 3,
|
|
351
|
-
[`.${o.track}`]: {
|
|
352
|
-
borderWidth: 0
|
|
353
|
-
},
|
|
354
|
-
[`.${o.thumb}`]: {
|
|
355
|
-
width: 16,
|
|
356
|
-
height: 16
|
|
357
|
-
},
|
|
358
|
-
[`&.${o.sizeSmall}`]: {
|
|
359
|
-
height: 2,
|
|
360
|
-
[`.${o.thumb}`]: {
|
|
361
|
-
width: 12,
|
|
362
|
-
height: 12
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
})
|
|
366
|
-
}
|
|
367
|
-
]
|
|
368
|
-
},
|
|
369
|
-
MuiFormHelperText: {
|
|
370
|
-
styleOverrides: {
|
|
371
|
-
root: ({ theme: e }) => e.unstable_sx({
|
|
372
|
-
mx: 1
|
|
373
|
-
})
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
MuiTypography: {
|
|
377
|
-
variants: [
|
|
378
|
-
{
|
|
379
|
-
props: { variant: "body1" },
|
|
380
|
-
style: ({ theme: e }) => e.unstable_sx({
|
|
381
|
-
fontSize: "0.875rem"
|
|
382
|
-
})
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
props: { variant: "body2" },
|
|
386
|
-
style: ({ theme: e }) => e.unstable_sx({
|
|
387
|
-
fontSize: "0.75rem"
|
|
388
|
-
})
|
|
389
|
-
}
|
|
390
|
-
]
|
|
391
|
-
},
|
|
392
|
-
MuiMenuItem: {
|
|
393
|
-
styleOverrides: {
|
|
394
|
-
root: ({ theme: e }) => e.unstable_sx({
|
|
395
|
-
padding: "6px 12px",
|
|
396
|
-
fontSize: "0.875rem",
|
|
397
|
-
borderRadius: 1,
|
|
398
|
-
".MuiListItemIcon-root": {
|
|
399
|
-
minWidth: 0,
|
|
400
|
-
mr: 1
|
|
401
|
-
}
|
|
402
|
-
})
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
MuiListItemButton: {
|
|
406
|
-
styleOverrides: {
|
|
407
|
-
root: {
|
|
408
|
-
padding: "6px 12px"
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
MuiList: {
|
|
413
|
-
styleOverrides: {
|
|
414
|
-
root: {
|
|
415
|
-
padding: 4
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
MuiListItemText: {
|
|
420
|
-
styleOverrides: {
|
|
421
|
-
primary: {
|
|
422
|
-
fontSize: "0.875rem"
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
MuiDialogTitle: {
|
|
427
|
-
styleOverrides: {
|
|
428
|
-
root: ({ theme: e }) => e.unstable_sx({
|
|
429
|
-
padding: "16px 24px",
|
|
430
|
-
borderBottom: `1px solid ${e.palette.divider}`
|
|
431
|
-
})
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
MuiDialogActions: {
|
|
435
|
-
styleOverrides: {
|
|
436
|
-
root: ({ theme: e }) => e.unstable_sx({
|
|
437
|
-
borderTop: `1px solid ${e.palette.divider}`,
|
|
438
|
-
padding: "16px 24px"
|
|
439
|
-
})
|
|
440
|
-
}
|
|
441
|
-
},
|
|
442
|
-
MuiDialogContent: {
|
|
443
|
-
styleOverrides: {
|
|
444
|
-
root: {
|
|
445
|
-
padding: "12px 24px !important"
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
MuiButton: {
|
|
450
|
-
defaultProps: {
|
|
451
|
-
size: "small"
|
|
452
|
-
},
|
|
453
|
-
styleOverrides: {}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
}, L = {
|
|
457
|
-
typography: {
|
|
458
|
-
// @ts-ignore
|
|
459
|
-
big: { ...f },
|
|
460
|
-
button: {
|
|
461
|
-
// @ts-ignore
|
|
462
|
-
textTransform: "none",
|
|
463
|
-
WebkitTextTransform: "none"
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
}, A = ({
|
|
467
|
-
children: e,
|
|
468
|
-
isDashboard: r = !1
|
|
469
|
-
}) => {
|
|
470
|
-
const d = M().pathname.startsWith("/admin/maker") || r, b = v(() => d ? T : L, [d]);
|
|
471
|
-
return /* @__PURE__ */ a(
|
|
472
|
-
c,
|
|
473
|
-
{
|
|
474
|
-
theme: b,
|
|
475
|
-
translations: C,
|
|
476
|
-
fallbackLocale: "en",
|
|
477
|
-
injectFirst: !0,
|
|
478
|
-
children: /* @__PURE__ */ a(I, { serviceHost: n, protectedRoutes: [`${O}/*`], children: e })
|
|
479
|
-
}
|
|
480
|
-
);
|
|
481
|
-
};
|
|
482
|
-
export {
|
|
483
|
-
A as PagesKitThemeProvider
|
|
484
|
-
};
|
package/lib/es/uploader.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { UploaderButton as r, UploaderProvider as d, getImageSize as t, getVideoSize as a, useUploader as i } from "@blocklet/pages-kit/builtin/uploader";
|
|
2
|
-
export {
|
|
3
|
-
r as UploaderButton,
|
|
4
|
-
d as UploaderProvider,
|
|
5
|
-
t as getImageSize,
|
|
6
|
-
a as getVideoSize,
|
|
7
|
-
i as useUploader
|
|
8
|
-
};
|