@blocklet/pages-kit-inner-components 0.1.0 → 0.1.2
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/home.js +1 -1
- package/lib/cjs/locales.js +1 -1
- package/lib/cjs/resources.js +1 -1
- package/lib/cjs/setting.js +4 -4
- package/lib/cjs/site-state.js +1 -1
- package/lib/cjs/theme.js +239 -0
- package/lib/{draft-data-BR6QMafP.mjs → draft-data-Bbv-4GaF.mjs} +1 -1
- package/lib/{draft-data-DY34VJHh.js → draft-data-CgY7-dem.js} +1 -1
- package/lib/es/home.js +10 -8
- package/lib/es/locales.js +16 -4
- package/lib/es/resources.js +1 -1
- package/lib/es/setting.js +946 -821
- package/lib/es/site-state.js +1 -1
- package/lib/es/theme.js +767 -0
- package/lib/home-D7i9eFDB.js +542 -0
- package/lib/{home-eQg2nzvF.mjs → home-DSngH2He.mjs} +698 -682
- package/lib/{publish-button-CKgx9XuN.mjs → publish-button-B0t_3Z4M.mjs} +2 -2
- package/lib/{publish-button-B-kvMf2a.js → publish-button-CrxBSa6-.js} +1 -1
- package/lib/{site-state-CrZeDXXY.mjs → site-state-BcfhbQn3.mjs} +304 -294
- package/lib/site-state-kBaXBQhY.js +1 -0
- package/lib/state-BQClQU2N.js +1 -0
- package/lib/state-C0vjPuun.mjs +407 -0
- package/package.json +26 -22
- package/lib/home-DhKwQuXD.js +0 -542
- package/lib/site-state-Ur6wK5g3.js +0 -1
- package/lib/state-BfVA6vd8.mjs +0 -378
- package/lib/state-C6F-M3XT.js +0 -1
package/lib/cjs/theme.js
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),c=require("@arcblock/ux/lib/Colors"),f=require("@arcblock/ux/lib/Theme"),F=require("@iconify-icon/react"),m=require("@iconify-icons/tabler/chevron-down"),v=require("@mui/lab"),e=require("@mui/material"),w=require("defu"),g=t=>t&&t.__esModule?t:{default:t},o=g(c),x=g(m);function r(t){const i=o.default.common.white,h=e.getContrastRatio(t,i)>=2?i:"rgba(0, 0, 0, 0.87)";return{main:t,light:e.lighten(t,.2),dark:e.darken(t,.3),contrastText:h}}function n(t={}){return f.createTheme(w.defu(t,{palette:{_did:r(o.default.did.primary),black:r(o.default.grey[900])},breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536,section:1440}}}))}const u=`
|
|
2
|
+
:root {
|
|
3
|
+
/* Light */
|
|
4
|
+
/* colors */
|
|
5
|
+
--backgrounds-bg-base: #FFFFFF;
|
|
6
|
+
--backgrounds-bg-base-hover: #F9FAFB;
|
|
7
|
+
--backgrounds-bg-base-pressed: #F3F4F6;
|
|
8
|
+
--backgrounds-bg-component: #F1F3F5;
|
|
9
|
+
--backgrounds-bg-disabled: #F3F4F6;
|
|
10
|
+
--backgrounds-bg-field: #F9FAFB;
|
|
11
|
+
--backgrounds-bg-field-hover: #F3F4F6;
|
|
12
|
+
--backgrounds-bg-glass: #ffffffb8;
|
|
13
|
+
--backgrounds-bg-highlight: #EFF6FF;
|
|
14
|
+
--backgrounds-bg-highlight-hover: #DBEAFE;
|
|
15
|
+
--backgrounds-bg-interactive: #3B82F6;
|
|
16
|
+
--backgrounds-bg-interactive-hover: #2563EB;
|
|
17
|
+
--backgrounds-bg-overlay: #03071266;
|
|
18
|
+
--backgrounds-bg-subtle: #F9FAFB;
|
|
19
|
+
--backgrounds-bg-subtle-hover: #F3F4F6;
|
|
20
|
+
--backgrounds-bg-subtle-pressed: #E5E7EB;
|
|
21
|
+
--backgrounds-bg-switch-off: #E5E7EB;
|
|
22
|
+
--backgrounds-bg-switch-off-hover: #D1D5DB;
|
|
23
|
+
--buttons-button-danger: #E11D48;
|
|
24
|
+
--buttons-button-danger-hover: #BE123C;
|
|
25
|
+
--buttons-button-danger-pressed: #9F1239;
|
|
26
|
+
--buttons-button-inverted: #030712;
|
|
27
|
+
--buttons-button-inverted-hover: #111827;
|
|
28
|
+
--buttons-button-inverted-pressed: #1F2937;
|
|
29
|
+
--buttons-button-neutral: #FFFFFF;
|
|
30
|
+
--buttons-button-neutral-hover: #F3F4F6;
|
|
31
|
+
--buttons-button-neutral-pressed: #E5E7EB;
|
|
32
|
+
--buttons-button-transparent: #ffffff00;
|
|
33
|
+
--buttons-button-transparent-hover: #F3F4F6;
|
|
34
|
+
--buttons-button-transparent-pressed: #E5E7EB;
|
|
35
|
+
--foregrounds-fg-base: #030712;
|
|
36
|
+
--foregrounds-fg-danger: #E11D48;
|
|
37
|
+
--foregrounds-fg-disabled: #D1D5DB;
|
|
38
|
+
--foregrounds-fg-interactive: #3B82F6;
|
|
39
|
+
--foregrounds-fg-interactive-hover: #2563EB;
|
|
40
|
+
--foregrounds-fg-muted: #9CA3AF;
|
|
41
|
+
--foregrounds-fg-on-color: #FFFFFF;
|
|
42
|
+
--foregrounds-fg-on-inverted: #FFFFFF;
|
|
43
|
+
--foregrounds-fg-subtle: #4B5563;
|
|
44
|
+
--others-spacer: #ffffff00;
|
|
45
|
+
--shadows-card-hover-1: #03071214;
|
|
46
|
+
--shadows-card-hover-2: #03071214;
|
|
47
|
+
--shadows-card-hover-3: #0307121a;
|
|
48
|
+
--shadows-card-rest-1: #03071214;
|
|
49
|
+
--shadows-card-rest-2: #03071214;
|
|
50
|
+
--shadows-card-rest-3: #0307120a;
|
|
51
|
+
--shadows-danger-1: #E11D48;
|
|
52
|
+
--shadows-error-2: #e11d4826;
|
|
53
|
+
--shadows-flyout-1: #03071214;
|
|
54
|
+
--shadows-flyout-2: #03071214;
|
|
55
|
+
--shadows-interactive-with-active-1: #3B82F6;
|
|
56
|
+
--shadows-interactive-with-active-2: #3b82f633;
|
|
57
|
+
--shadows-interactive-with-shadow-1: #1e3a8a80;
|
|
58
|
+
--shadows-interactive-with-shadow-2: #3B82F6;
|
|
59
|
+
--shadows-modal-1: #FFFFFF;
|
|
60
|
+
--shadows-modal-2: #e5e7eb66;
|
|
61
|
+
--shadows-modal-3: #03071214;
|
|
62
|
+
--shadows-modal-4: #03071214;
|
|
63
|
+
--shadows-modal-5: #03071214;
|
|
64
|
+
--shadows-switch-background-1: #0307120a;
|
|
65
|
+
--shadows-switch-background-2: #0307120a;
|
|
66
|
+
--shadows-switch-background-3: #0307120f;
|
|
67
|
+
--shadows-switch-background-4: #03071205;
|
|
68
|
+
--shadows-switch-background-5: #0307120a;
|
|
69
|
+
--shadows-switch-handle-1: #FFFFFF;
|
|
70
|
+
--shadows-switch-handle-2: #FFFFFF;
|
|
71
|
+
--shadows-switch-handle-3: #03071205;
|
|
72
|
+
--shadows-switch-handle-4: #03071205;
|
|
73
|
+
--shadows-switch-handle-5: #0307120a;
|
|
74
|
+
--shadows-switch-handle-6: #0307121f;
|
|
75
|
+
--shadows-switch-handle-7: #03071214;
|
|
76
|
+
--shadows-tooltip-1: #03071214;
|
|
77
|
+
--shadows-tooltip-2: #03071214;
|
|
78
|
+
--stroke-border-base: #E5E7EB;
|
|
79
|
+
--stroke-border-error: #E11D48;
|
|
80
|
+
--stroke-border-interactive: #3B82F6;
|
|
81
|
+
--stroke-border-loud: #030712;
|
|
82
|
+
--stroke-border-strong: #D1D5DB;
|
|
83
|
+
--stroke-sep: #E5E7EB;
|
|
84
|
+
--tags-tag-blue-bg: #DBEAFE;
|
|
85
|
+
--tags-tag-blue-bg-hover: #BFDBFE;
|
|
86
|
+
--tags-tag-blue-border: #BFDBFE;
|
|
87
|
+
--tags-tag-blue-icon: #2563EB;
|
|
88
|
+
--tags-tag-blue-text: #1D4ED8;
|
|
89
|
+
--tags-tag-green-bg: #D1FAE5;
|
|
90
|
+
--tags-tag-green-bg-hover: #A7F3D0;
|
|
91
|
+
--tags-tag-green-border: #A7F3D0;
|
|
92
|
+
--tags-tag-green-icon: #059669;
|
|
93
|
+
--tags-tag-green-text: #047857;
|
|
94
|
+
--tags-tag-neutral-bg: #F3F4F6;
|
|
95
|
+
--tags-tag-neutral-bg-hover: #E5E7EB;
|
|
96
|
+
--tags-tag-neutral-border: #E5E7EB;
|
|
97
|
+
--tags-tag-neutral-icon: #6B7280;
|
|
98
|
+
--tags-tag-neutral-text: #4B5563;
|
|
99
|
+
--tags-tag-orange-bg: #FEF4C7;
|
|
100
|
+
--tags-tag-orange-bg-hover: #FDE68A;
|
|
101
|
+
--tags-tag-orange-border: #FDE68A;
|
|
102
|
+
--tags-tag-orange-icon: #D97706;
|
|
103
|
+
--tags-tag-orange-text: #B45309;
|
|
104
|
+
--tags-tag-purple-bg: #EDE9FE;
|
|
105
|
+
--tags-tag-purple-bg-hover: #DDD6FE;
|
|
106
|
+
--tags-tag-purple-border: #DDD6FE;
|
|
107
|
+
--tags-tag-purple-icon: #7C3AED;
|
|
108
|
+
--tags-tag-purple-text: #6D28D9;
|
|
109
|
+
--tags-tag-red-bg: #FFE4E6;
|
|
110
|
+
--tags-tag-red-bg-hover: #FECDD3;
|
|
111
|
+
--tags-tag-red-border: #FECDD3;
|
|
112
|
+
--tags-tag-red-icon: #E11D48;
|
|
113
|
+
--tags-tag-red-text: #BE123C;
|
|
114
|
+
/* numbers */
|
|
115
|
+
--others-max-width-root: 1200px;
|
|
116
|
+
--radius-s: 4px;
|
|
117
|
+
--radius-m: 8px;
|
|
118
|
+
--radius-l: 12px;
|
|
119
|
+
--radius-round: 9999px;
|
|
120
|
+
}`,E=`
|
|
121
|
+
:root {
|
|
122
|
+
/* Dark */
|
|
123
|
+
/* colors */
|
|
124
|
+
--backgrounds-bg-base: #1B1B1F;
|
|
125
|
+
--backgrounds-bg-base-hover: #27282D;
|
|
126
|
+
--backgrounds-bg-base-pressed: #2E3035;
|
|
127
|
+
--backgrounds-bg-component: #27282D;
|
|
128
|
+
--backgrounds-bg-disabled: #27282D;
|
|
129
|
+
--backgrounds-bg-field: #27282D;
|
|
130
|
+
--backgrounds-bg-field-hover: #2E3035;
|
|
131
|
+
--backgrounds-bg-glass: #1b1b1fb8;
|
|
132
|
+
--backgrounds-bg-highlight: #172554;
|
|
133
|
+
--backgrounds-bg-highlight-hover: #1E3A8A;
|
|
134
|
+
--backgrounds-bg-interactive: #60A5FA;
|
|
135
|
+
--backgrounds-bg-interactive-hover: #60A5FA;
|
|
136
|
+
--backgrounds-bg-overlay: #18181ab2;
|
|
137
|
+
--backgrounds-bg-subtle: #18181A;
|
|
138
|
+
--backgrounds-bg-subtle-hover: #1B1B1F;
|
|
139
|
+
--backgrounds-bg-subtle-pressed: #27282D;
|
|
140
|
+
--backgrounds-bg-switch-off: #35373C;
|
|
141
|
+
--backgrounds-bg-switch-off-hover: #464B50;
|
|
142
|
+
--buttons-button-danger: #9F1239;
|
|
143
|
+
--buttons-button-danger-hover: #BE123C;
|
|
144
|
+
--buttons-button-danger-pressed: #E11D48;
|
|
145
|
+
--buttons-button-inverted: #EDEEF0;
|
|
146
|
+
--buttons-button-inverted-hover: #FFFFFF;
|
|
147
|
+
--buttons-button-inverted-pressed: #EDEEF0;
|
|
148
|
+
--buttons-button-neutral: #27282D;
|
|
149
|
+
--buttons-button-neutral-hover: #35373C;
|
|
150
|
+
--buttons-button-neutral-pressed: #3C3F44;
|
|
151
|
+
--buttons-button-transparent: #ffffff00;
|
|
152
|
+
--buttons-button-transparent-hover: #27282D;
|
|
153
|
+
--buttons-button-transparent-pressed: #2E3035;
|
|
154
|
+
--foregrounds-fg-base: #EDEEF0;
|
|
155
|
+
--foregrounds-fg-danger: #FB7185;
|
|
156
|
+
--foregrounds-fg-disabled: #3C3F44;
|
|
157
|
+
--foregrounds-fg-interactive: #60A5FA;
|
|
158
|
+
--foregrounds-fg-interactive-hover: #3B82F6;
|
|
159
|
+
--foregrounds-fg-muted: #696E77;
|
|
160
|
+
--foregrounds-fg-on-color: #FFFFFF;
|
|
161
|
+
--foregrounds-fg-on-inverted: #0A0A0A;
|
|
162
|
+
--foregrounds-fg-subtle: #ADB1B8;
|
|
163
|
+
--others-spacer: #FFFFFF;
|
|
164
|
+
--shadows-card-hover-1: #ffffff1a;
|
|
165
|
+
--shadows-card-hover-2: #ffffff29;
|
|
166
|
+
--shadows-card-hover-3: #00000066;
|
|
167
|
+
--shadows-card-rest-1: #ffffff1a;
|
|
168
|
+
--shadows-card-rest-2: #ffffff29;
|
|
169
|
+
--shadows-card-rest-3: #00000066;
|
|
170
|
+
--shadows-danger-1: #f43f5e1a;
|
|
171
|
+
--shadows-error-2: #e11d4840;
|
|
172
|
+
--shadows-flyout-1: #ffffff1a;
|
|
173
|
+
--shadows-flyout-2: #00000052;
|
|
174
|
+
--shadows-interactive-with-active-1: #60A5FA;
|
|
175
|
+
--shadows-interactive-with-active-2: #3b82f640;
|
|
176
|
+
--shadows-interactive-with-shadow-1: #dbeafe80;
|
|
177
|
+
--shadows-interactive-with-shadow-2: #60A5FA;
|
|
178
|
+
--shadows-modal-1: #171717;
|
|
179
|
+
--shadows-modal-2: #2e303566;
|
|
180
|
+
--shadows-modal-3: #ffffff1a;
|
|
181
|
+
--shadows-modal-4: #00000052;
|
|
182
|
+
--shadows-modal-5: #00000052;
|
|
183
|
+
--shadows-switch-background-1: #0000001a;
|
|
184
|
+
--shadows-switch-background-2: #0000001a;
|
|
185
|
+
--shadows-switch-background-3: #ffffff29;
|
|
186
|
+
--shadows-switch-background-4: #0000001a;
|
|
187
|
+
--shadows-switch-background-5: #00000033;
|
|
188
|
+
--shadows-switch-handle-1: #FFFFFF;
|
|
189
|
+
--shadows-switch-handle-2: #FFFFFF;
|
|
190
|
+
--shadows-switch-handle-3: #00000029;
|
|
191
|
+
--shadows-switch-handle-4: #0000001a;
|
|
192
|
+
--shadows-switch-handle-5: #0000001a;
|
|
193
|
+
--shadows-switch-handle-6: #0000001a;
|
|
194
|
+
--shadows-switch-handle-7: #0000001a;
|
|
195
|
+
--shadows-tooltip-1: #ffffff1a;
|
|
196
|
+
--shadows-tooltip-2: #00000052;
|
|
197
|
+
--stroke-border-base: #2E3035;
|
|
198
|
+
--stroke-border-error: #F43F5E;
|
|
199
|
+
--stroke-border-interactive: #60A5FA;
|
|
200
|
+
--stroke-border-loud: #EDEEF0;
|
|
201
|
+
--stroke-border-strong: #35373C;
|
|
202
|
+
--stroke-sep: #2E3035;
|
|
203
|
+
--tags-tag-blue-bg: #172554;
|
|
204
|
+
--tags-tag-blue-bg-hover: #1E2A8A;
|
|
205
|
+
--tags-tag-blue-border: #1E3A8A;
|
|
206
|
+
--tags-tag-blue-icon: #1D4ED8;
|
|
207
|
+
--tags-tag-blue-text: #3B82F6;
|
|
208
|
+
--tags-tag-green-bg: #022C22;
|
|
209
|
+
--tags-tag-green-bg-hover: #064E3B;
|
|
210
|
+
--tags-tag-green-border: #064E3B;
|
|
211
|
+
--tags-tag-green-icon: #047857;
|
|
212
|
+
--tags-tag-green-text: #10B981;
|
|
213
|
+
--tags-tag-neutral-bg: #2E3035;
|
|
214
|
+
--tags-tag-neutral-bg-hover: #35373C;
|
|
215
|
+
--tags-tag-neutral-border: #3C3F44;
|
|
216
|
+
--tags-tag-neutral-icon: #7D828A;
|
|
217
|
+
--tags-tag-neutral-text: #ADB1B8;
|
|
218
|
+
--tags-tag-orange-bg: #451A03;
|
|
219
|
+
--tags-tag-orange-bg-hover: #78350F;
|
|
220
|
+
--tags-tag-orange-border: #78350F;
|
|
221
|
+
--tags-tag-orange-icon: #B45309;
|
|
222
|
+
--tags-tag-orange-text: #F59E0B;
|
|
223
|
+
--tags-tag-purple-bg: #2E1064;
|
|
224
|
+
--tags-tag-purple-bg-hover: #4C1D95;
|
|
225
|
+
--tags-tag-purple-border: #3C3F44;
|
|
226
|
+
--tags-tag-purple-icon: #6D28D9;
|
|
227
|
+
--tags-tag-purple-text: #8B5CF6;
|
|
228
|
+
--tags-tag-red-bg: #4C0519;
|
|
229
|
+
--tags-tag-red-bg-hover: #881337;
|
|
230
|
+
--tags-tag-red-border: #881337;
|
|
231
|
+
--tags-tag-red-icon: #F43F5E;
|
|
232
|
+
--tags-tag-red-text: #FF6369;
|
|
233
|
+
/* numbers */
|
|
234
|
+
--others-max-width-root: 1200px;
|
|
235
|
+
--radius-s: 4px;
|
|
236
|
+
--radius-m: 8px;
|
|
237
|
+
--radius-l: 12px;
|
|
238
|
+
--radius-round: 9999px;
|
|
239
|
+
}`,a=n({typography:{button:{textTransform:"none"},subtitle1:{fontWeight:600,fontSize:"18px",color:"#000",lineHeight:1.5},subtitle2:{fontSize:"14px",lineHeight:"24px",fontWeight:500,color:"#030712",marginBottom:"4px"}},palette:{background:{paper:"#ffffff",default:"#F9FAFB"},action:{selected:"rgba(25, 118, 210, 0.08)"}},shape:{borderRadius:8},components:{MuiCssBaseline:{styleOverrides:u},MuiFormLabel:{styleOverrides:{root:{fontSize:"0.875rem"}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:0},label:{fontSize:"0.875rem"}}},MuiInputLabel:{styleOverrides:{root:{fontSize:"0.875rem"}}},MuiRadio:{styleOverrides:{root:{padding:4,[`.${e.svgIconClasses.fontSizeMedium}`]:{fontSize:"1.25rem"},[`.${e.svgIconClasses.fontSizeSmall}`]:{fontSize:"1.125rem"}}}},MuiCheckbox:{styleOverrides:{root:{padding:4,[`.${e.svgIconClasses.fontSizeMedium}`]:{fontSize:"1.25rem"},[`.${e.svgIconClasses.fontSizeSmall}`]:{fontSize:"1.125rem"}}}},MuiSwitch:{styleOverrides:{root:{height:28,width:48,padding:8,[`&.${e.switchClasses.sizeSmall}`]:{height:26,width:40,padding:8}},switchBase:{padding:4}}},MuiAutocomplete:{defaultProps:{popupIcon:l.jsx(d,{fontSize:14})},variants:[{props:{},style:({theme:t})=>t.unstable_sx({[`.${e.autocompleteClasses.inputRoot}`]:{pt:1.5,pb:.25,[`.${e.autocompleteClasses.input}.${e.inputBaseClasses.input}`]:{px:0,pt:.5,pb:.25},[`&.${e.inputBaseClasses.sizeSmall}`]:{[`.${e.autocompleteClasses.input}.${e.inputBaseClasses.input}`]:{px:0,py:0,pb:"1px"}}}})}]},MuiTextField:{defaultProps:{variant:"filled"},variants:[{props:{},style:({theme:t,ownerState:s})=>t.unstable_sx({[`.${e.inputBaseClasses.root}`]:{borderRadius:1,lineHeight:"1.5rem",[`.${e.inputBaseClasses.input}`]:{height:"1.5rem"},[`&.${e.inputClasses.multiline}`]:{pl:0,pr:0,pt:.25,"& .MuiInputBase-inputMultiline":{py:0}}},[`.${e.inputClasses.root}`]:{mt:1.5,[`&.${e.inputBaseClasses.hiddenLabel}`]:{mt:0,pt:0,[`.${e.selectClasses.select}.${e.inputClasses.input}:focus`]:{bgcolor:"transparent"}}},[`.${e.inputLabelClasses.standard}`]:{transform:"translate(0px, 18px) scale(1)",[`&.${e.inputLabelClasses.sizeSmall}`]:{transform:"translate(0px, 15px) scale(1)"},[`&.${e.inputLabelClasses.shrink}`]:{transform:"translate(0px, -1px) scale(0.8)",[`&.${e.inputLabelClasses.sizeSmall}`]:{transform:"translate(0px, -1px) scale(0.8)"}}},[`.${e.filledInputClasses.root}`]:{":before,:after":{display:"none"},[`.${e.inputBaseClasses.input}`]:{pb:.5,pt:s!=null&&s.label?2:.5,px:1,":focus":{borderRadius:1},[`&.${e.inputBaseClasses.inputSizeSmall}`]:{pb:.25,pt:s!=null&&s.label?1.25:.25},[`&.${e.inputBaseClasses.inputHiddenLabel}`]:{py:.5,[`&.${e.inputBaseClasses.inputSizeSmall}`]:{py:"1px"}}}},[`.${e.inputLabelClasses.filled}`]:{transform:"translate(8px, 11px) scale(1)",[`&.${e.inputLabelClasses.sizeSmall}`]:{transform:"translate(8px, 7px) scale(1)"},[`&.${e.inputLabelClasses.shrink}`]:{transform:"translate(8px, 2px) scale(0.8)",[`&.${e.inputLabelClasses.sizeSmall}`]:{transform:"translate(8px, 0) scale(0.8)"}}},[`.${e.outlinedInputClasses.root}`]:{[`.${e.inputBaseClasses.input}`]:{py:1.25,px:1,[`&.${e.inputBaseClasses.inputSizeSmall}`]:{py:.875},[`&.${e.inputBaseClasses.inputHiddenLabel}`]:{py:.5,[`&.${e.inputBaseClasses.inputSizeSmall}`]:{py:"1px"}}}},[`.${e.inputLabelClasses.outlined}`]:{transform:"translate(8px, 10px) scale(1)",[`&.${e.inputLabelClasses.sizeSmall}`]:{transform:"translate(8px, 7px) scale(1)"},[`&.${e.inputLabelClasses.shrink}`]:{transform:"translate(16px, -7px) scale(0.8)"}}})}]},MuiInput:{defaultProps:{disableUnderline:!0},variants:[{props:{disableUnderline:!0},style:({theme:t})=>t.unstable_sx({fontSize:"0.875rem",lineHeight:"1.5rem",[`&.${e.inputBaseClasses.multiline}`]:{py:0},[`.${e.inputBaseClasses.input}`]:{py:.5,height:"1.5rem"},[`&.${e.inputBaseClasses.sizeSmall}`]:{[`.${e.inputBaseClasses.input}`]:{py:"1px"}}})}]},MuiFilledInput:{styleOverrides:{root:{fontSize:"0.875rem",backgroundColor:"rgba(0, 0, 0, 0.03)","&:hover":{backgroundColor:"rgb(0, 0, 0, 0.06)","@media (hover: none)":{backgroundColor:"rgba(0, 0, 0, 0.03)"}}}}},MuiSelect:{styleOverrides:{select:{display:"flex",alignItems:"center",[`.${e.listItemIconClasses.root}`]:{minWidth:20}}},defaultProps:{variant:"filled",IconComponent:d},variants:[{props:{},style:({theme:t})=>t.unstable_sx({fontSize:"0.875rem",borderRadius:1,lineHeight:"1.5rem",[`&.${e.filledInputClasses.root}`]:{":before,:after":{display:"none"},[`.${e.inputBaseClasses.input}`]:{py:.5,borderRadius:1,[`&.${e.inputBaseClasses.inputSizeSmall}`]:{py:"1px"}}},[`&.${e.outlinedInputClasses.root}`]:{[`.${e.inputBaseClasses.input}`]:{py:.5,borderRadius:1,[`&.${e.inputBaseClasses.inputSizeSmall}`]:{py:"1px"}}}})}]},MuiSlider:{defaultProps:{},variants:[{props:{},style:({theme:t})=>t.unstable_sx({height:3,[`.${e.sliderClasses.track}`]:{borderWidth:0},[`.${e.sliderClasses.thumb}`]:{width:16,height:16},[`&.${e.sliderClasses.sizeSmall}`]:{height:2,[`.${e.sliderClasses.thumb}`]:{width:12,height:12}}})}]},MuiFormHelperText:{styleOverrides:{root:({theme:t})=>t.unstable_sx({mx:1})}},MuiTypography:{variants:[{props:{variant:"body1"},style:({theme:t})=>t.unstable_sx({fontSize:"0.875rem"})},{props:{variant:"body2"},style:({theme:t})=>t.unstable_sx({fontSize:"0.75rem"})}]},MuiMenuItem:{styleOverrides:{root:({theme:t})=>t.unstable_sx({padding:"6px 12px",fontSize:"0.875rem",borderRadius:1,".MuiListItemIcon-root":{minWidth:0,mr:1}})}},MuiListItemButton:{styleOverrides:{root:{padding:"6px 12px"}}},MuiList:{styleOverrides:{root:{padding:4}}},MuiListItemText:{styleOverrides:{primary:{fontSize:"0.875rem"}}},MuiDialogTitle:{styleOverrides:{root:{padding:"16px 24px",borderBottom:"1px solid #E5E7EB"}}},MuiDialogActions:{styleOverrides:{root:{borderTop:"1px solid #E5E7EB",padding:"16px 24px"}}},MuiDialogContent:{styleOverrides:{root:{padding:"12px 24px !important"}}},MuiButton:{defaultProps:{size:"small"},styleOverrides:{contained:({ownerState:t})=>({...(t.color==="inherit"||t.color==="primary")&&{backgroundColor:"#030712",color:"white","&:hover":{backgroundColor:"#030712"}},[`&.${v.loadingButtonClasses.loading}`]:{color:"grey"}}),outlined:({ownerState:t})=>({...(t.color==="inherit"||t.color==="primary")&&{bgcolor:"#fff",color:"#000",border:"1px solid #E5E7EB",fontSize:"13px",fontWeight:500,padding:"4px 12px","&:hover":{border:"1px solid #E5E7EB"}}})}}}}),b={fontSize:"5rem",[a.breakpoints.down("xl")]:{fontSize:"5rem"},[a.breakpoints.down("lg")]:{fontSize:"4rem"},[a.breakpoints.down("md")]:{fontSize:"3rem"},[a.breakpoints.down("sm")]:{fontSize:"2rem"}};a.typography.big={...b};const p=n({typography:{button:{textTransform:"none"}}});p.typography.big={...b};function d(t){return l.jsx(e.Box,{...t,component:F.Icon,icon:x.default})}exports.create=n;exports.darkThemeRoot=E;exports.genPaletteColor=r;exports.lightThemeRoot=u;exports.pagesTheme=p;exports.theme=a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { u as o, S as a, k as s, h as n } from "./state-
|
|
2
|
+
import { u as o, S as a, k as s, h as n } from "./state-C0vjPuun.mjs";
|
|
3
3
|
function d({ children: t }) {
|
|
4
4
|
const r = o();
|
|
5
5
|
return /* @__PURE__ */ e(a, { url: s(r ?? ""), name: "root", waitingSynced: !0, children: /* @__PURE__ */ e(i, { children: t }) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),t=require("./state-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),t=require("./state-BQClQU2N.js");function n({children:e}){const r=t.useProjectId();return s.jsx(t.StoreProvider,{url:t.getWssURL(r??""),name:"root",waitingSynced:!0,children:s.jsx(o,{children:e})})}function o({children:e}){const{state:r}=t.useStore();return e({state:r})}exports.default=n;
|
package/lib/es/home.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../state-
|
|
3
|
-
import { a as
|
|
2
|
+
import "../state-C0vjPuun.mjs";
|
|
3
|
+
import { a as b, P as h, c as x, b as y, T as B, H as R } from "../home-DSngH2He.mjs";
|
|
4
4
|
import "@arcblock/ux/lib/Locale/context";
|
|
5
5
|
import "@arcblock/ux/lib/Result";
|
|
6
6
|
import "@blocklet/pages-kit/builtin/page/header";
|
|
@@ -9,7 +9,9 @@ import "@emotion/css";
|
|
|
9
9
|
import "@emotion/react";
|
|
10
10
|
import "@emotion/styled";
|
|
11
11
|
import "@mui/material";
|
|
12
|
+
import "ahooks";
|
|
12
13
|
import "isomorphic-dompurify";
|
|
14
|
+
import "lodash";
|
|
13
15
|
import "lodash/isEmpty";
|
|
14
16
|
import "react";
|
|
15
17
|
import "react-helmet";
|
|
@@ -17,10 +19,10 @@ import "react-router-dom";
|
|
|
17
19
|
import "react-use";
|
|
18
20
|
import "ufo";
|
|
19
21
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
b as HomeView,
|
|
23
|
+
h as PageRoutes,
|
|
24
|
+
x as PageView,
|
|
25
|
+
y as PageViewByPath,
|
|
26
|
+
B as TranslucentHeader,
|
|
27
|
+
R as default
|
|
26
28
|
};
|
package/lib/es/locales.js
CHANGED
|
@@ -8,6 +8,8 @@ const t = e({
|
|
|
8
8
|
confirmDelete: "Please enter {name} to confirm deletion",
|
|
9
9
|
confirmReset: "Please enter {name} to confirm reset",
|
|
10
10
|
uploadNewIcon: "Upload new icon",
|
|
11
|
+
requiredKey: "Key cannot be empty, please set a unique key, so that it can be referenced and configured in the component",
|
|
12
|
+
duplicateKey: "Key already exists, please set a unique key",
|
|
11
13
|
projects: {
|
|
12
14
|
project: "Project",
|
|
13
15
|
myProjects: "My Projects",
|
|
@@ -124,6 +126,8 @@ const t = e({
|
|
|
124
126
|
outline: "Outline"
|
|
125
127
|
},
|
|
126
128
|
properties: {
|
|
129
|
+
noProperties: "No properties",
|
|
130
|
+
noParameters: "No configurable parameters, please add properties first",
|
|
127
131
|
properties: "Properties",
|
|
128
132
|
setDefaultLocale: "Set default",
|
|
129
133
|
copyDefault: "Copy over default",
|
|
@@ -207,7 +211,7 @@ const t = e({
|
|
|
207
211
|
isTemplateSection: "Template dynamic card",
|
|
208
212
|
templateSectionNameRequired: "Name is required for template section to set values when using dynamic templates",
|
|
209
213
|
templateSectionNameHelper: "Section name is used to identify the section in the template, please use a meaningful and unique name, so that the section can be set content later",
|
|
210
|
-
propertyNotFound: "Failed to modify parameter, reason: component does not exist `{key}`
|
|
214
|
+
propertyNotFound: "Failed to modify parameter, reason: component does not exist `{key}` property"
|
|
211
215
|
}
|
|
212
216
|
},
|
|
213
217
|
error: {
|
|
@@ -316,6 +320,8 @@ const t = e({
|
|
|
316
320
|
},
|
|
317
321
|
show: "Show",
|
|
318
322
|
hide: "Hide",
|
|
323
|
+
showParameter: "Show Parameter Config",
|
|
324
|
+
hideParameter: "Hide Parameter Config",
|
|
319
325
|
dragSort: "Drag sort",
|
|
320
326
|
saved: "Saved",
|
|
321
327
|
supportMarkdownSyntaxPlaceholder: "support markdown syntax",
|
|
@@ -361,6 +367,8 @@ const t = e({
|
|
|
361
367
|
confirmDelete: "请输入 {name} 以确认删除",
|
|
362
368
|
confirmReset: "请输入 {name} 以确认重置",
|
|
363
369
|
uploadNewIcon: "上传新图标",
|
|
370
|
+
requiredKey: "键不能为空,请设置一个唯一的键,以便在组件中引用和配置参数",
|
|
371
|
+
duplicateKey: "键已存在,请设置一个唯一的键",
|
|
364
372
|
projects: {
|
|
365
373
|
project: "项目",
|
|
366
374
|
myProjects: "我的项目",
|
|
@@ -477,6 +485,8 @@ const t = e({
|
|
|
477
485
|
outline: "概览"
|
|
478
486
|
},
|
|
479
487
|
properties: {
|
|
488
|
+
noProperties: "暂无属性",
|
|
489
|
+
noParameters: "暂无可配置参数,请先添加属性",
|
|
480
490
|
properties: "属性",
|
|
481
491
|
setDefaultLocale: "设为默认语言",
|
|
482
492
|
copyDefault: "设为默认值",
|
|
@@ -560,7 +570,7 @@ const t = e({
|
|
|
560
570
|
isTemplateSection: "模板动态卡片",
|
|
561
571
|
templateSectionNameRequired: "模板区块需要设置名称,以便在使用动态模板时为区块设置对应的值",
|
|
562
572
|
templateSectionNameHelper: "区块名称用于标识模板中的区块,请使用有意义且唯一的名称,以便后续为区块设置内容",
|
|
563
|
-
propertyNotFound: "修改参数失败,原因:组件不存在 `{key}`
|
|
573
|
+
propertyNotFound: "修改参数失败,原因:组件不存在 `{key}` 属性"
|
|
564
574
|
}
|
|
565
575
|
},
|
|
566
576
|
error: {
|
|
@@ -669,6 +679,8 @@ const t = e({
|
|
|
669
679
|
},
|
|
670
680
|
show: "显示",
|
|
671
681
|
hide: "隐藏",
|
|
682
|
+
showParameter: "显示参数配置",
|
|
683
|
+
hideParameter: "隐藏参数配置",
|
|
672
684
|
dragSort: "拖拽排序",
|
|
673
685
|
saved: "保存成功",
|
|
674
686
|
supportMarkdownSyntaxPlaceholder: "支持输入 markdown",
|
|
@@ -705,7 +717,7 @@ const t = e({
|
|
|
705
717
|
undo: "撤销",
|
|
706
718
|
redo: "重做"
|
|
707
719
|
}
|
|
708
|
-
}),
|
|
720
|
+
}), r = { en: t, zh: a };
|
|
709
721
|
export {
|
|
710
|
-
|
|
722
|
+
r as translations
|
|
711
723
|
};
|
package/lib/es/resources.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as S, i as b, g as M, C as J, R as X, S as x, t as W, a as G } from "../site-state-
|
|
1
|
+
import { P as S, i as b, g as M, C as J, R as X, S as x, t as W, a as G } from "../site-state-BcfhbQn3.mjs";
|
|
2
2
|
import { l as N } from "../components-Bo3_pN-Y.mjs";
|
|
3
3
|
import { AsyncLocalStorage as K } from "async_hooks";
|
|
4
4
|
import { Router as Y } from "express";
|