@webround/core 0.1.8 → 0.3.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/dist/base-css.d.ts +8 -0
- package/dist/base-css.js +19 -0
- package/dist/components/WrAltcha.d.ts +5 -0
- package/dist/components/WrAltcha.js +7 -0
- package/dist/components/WrButton.js +19 -0
- package/dist/components/WrForm.d.ts +7 -0
- package/dist/components/WrForm.js +15 -0
- package/dist/components/WrFormPrivacy.d.ts +4 -0
- package/dist/components/WrFormPrivacy.js +6 -0
- package/dist/components/WrFormSuccess.d.ts +4 -0
- package/dist/components/WrFormSuccess.js +6 -0
- package/dist/components/WrIframe.d.ts +8 -0
- package/dist/components/WrIframe.js +13 -0
- package/dist/components/WrImage.d.ts +9 -0
- package/dist/components/WrImage.js +13 -0
- package/dist/components/WrInput.d.ts +8 -0
- package/dist/components/WrInput.js +10 -0
- package/dist/components/WrLangSelector.d.ts +17 -0
- package/dist/components/WrLangSelector.js +27 -0
- package/dist/components/WrLangSync.d.ts +6 -0
- package/dist/components/WrLangSync.js +12 -0
- package/dist/components/WrLink.js +23 -0
- package/dist/components/WrNav.d.ts +26 -0
- package/dist/components/WrNav.js +15 -0
- package/dist/{WrSection.d.ts → components/WrSection.d.ts} +3 -3
- package/dist/components/WrShared.d.ts +22 -0
- package/dist/components/WrShared.js +18 -0
- package/dist/components/WrText.d.ts +11 -0
- package/dist/components/WrText.js +14 -0
- package/dist/components/WrThemeToggle.d.ts +9 -0
- package/dist/components/WrThemeToggle.js +43 -0
- package/dist/components/WrVideo.js +61 -0
- package/dist/context/WrAppContext.d.ts +40 -0
- package/dist/context/WrAppContext.js +95 -0
- package/dist/context/WrLayout.d.ts +23 -0
- package/dist/context/WrLayout.js +18 -0
- package/dist/context/WrPageContext.d.ts +10 -0
- package/dist/context/WrPageContext.js +13 -0
- package/dist/form-react.d.ts +82 -0
- package/dist/form-react.js +165 -0
- package/dist/form.d.ts +83 -0
- package/dist/form.js +175 -0
- package/dist/index.css +651 -0
- package/dist/index.d.ts +20 -8
- package/dist/index.js +20 -8
- package/dist/kinds.d.ts +109 -0
- package/dist/kinds.js +35 -0
- package/dist/lang-codes.d.ts +366 -0
- package/dist/lang-codes.js +166 -0
- package/dist/localized.d.ts +36 -0
- package/dist/localized.js +71 -0
- package/dist/not-found.d.ts +9 -0
- package/dist/not-found.js +13 -0
- package/dist/routing.d.ts +122 -0
- package/dist/routing.js +198 -0
- package/dist/seo-react.d.ts +20 -0
- package/dist/seo-react.js +37 -0
- package/dist/seo.d.ts +167 -0
- package/dist/seo.js +221 -0
- package/dist/site-env.d.ts +25 -0
- package/dist/site-env.js +37 -0
- package/dist/style.d.ts +456 -0
- package/dist/style.js +1081 -0
- package/dist/text-react.d.ts +11 -0
- package/dist/text-react.js +5 -0
- package/dist/theme.d.ts +22 -0
- package/dist/theme.js +45 -0
- package/dist/types.d.ts +37 -21
- package/package.json +93 -7
- package/dist/WrButton.d.ts.map +0 -1
- package/dist/WrButton.js +0 -7
- package/dist/WrButton.js.map +0 -1
- package/dist/WrImage.d.ts +0 -8
- package/dist/WrImage.d.ts.map +0 -1
- package/dist/WrImage.js +0 -7
- package/dist/WrImage.js.map +0 -1
- package/dist/WrLink.d.ts.map +0 -1
- package/dist/WrLink.js +0 -15
- package/dist/WrLink.js.map +0 -1
- package/dist/WrPageContext.d.ts +0 -8
- package/dist/WrPageContext.d.ts.map +0 -1
- package/dist/WrPageContext.js +0 -11
- package/dist/WrPageContext.js.map +0 -1
- package/dist/WrSection.d.ts.map +0 -1
- package/dist/WrSection.js.map +0 -1
- package/dist/WrText.d.ts +0 -11
- package/dist/WrText.d.ts.map +0 -1
- package/dist/WrText.js +0 -7
- package/dist/WrText.js.map +0 -1
- package/dist/WrVideo.d.ts.map +0 -1
- package/dist/WrVideo.js +0 -42
- package/dist/WrVideo.js.map +0 -1
- package/dist/bridge.d.ts +0 -2
- package/dist/bridge.d.ts.map +0 -1
- package/dist/bridge.js +0 -110
- package/dist/bridge.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- /package/dist/{WrButton.d.ts → components/WrButton.d.ts} +0 -0
- /package/dist/{WrLink.d.ts → components/WrLink.d.ts} +0 -0
- /package/dist/{WrSection.js → components/WrSection.js} +0 -0
- /package/dist/{WrVideo.d.ts → components/WrVideo.d.ts} +0 -0
package/dist/index.css
ADDED
|
@@ -0,0 +1,651 @@
|
|
|
1
|
+
/* ── LIGHT THEME ── */
|
|
2
|
+
:root,
|
|
3
|
+
[data-theme="light"] {
|
|
4
|
+
|
|
5
|
+
--wr-bg: #ffffff;
|
|
6
|
+
|
|
7
|
+
/* SFONDI — 1 = più chiaro, 5 = più scuro */
|
|
8
|
+
--wr-bg-1: #ffffff;
|
|
9
|
+
--wr-bg-2: #f8fafc;
|
|
10
|
+
--wr-bg-3: #edf2f7;
|
|
11
|
+
--wr-bg-4: #e2e8f0;
|
|
12
|
+
--wr-bg-5: #cbd5e1;
|
|
13
|
+
|
|
14
|
+
/* SFONDI INVERSI */
|
|
15
|
+
--wr-bg-1-inv: #020617;
|
|
16
|
+
--wr-bg-2-inv: #0f172a;
|
|
17
|
+
--wr-bg-3-inv: #1e293b;
|
|
18
|
+
--wr-bg-4-inv: #f1f5f9;
|
|
19
|
+
--wr-bg-5-inv: #ffffff;
|
|
20
|
+
|
|
21
|
+
/* TESTO — 1 = più visibile, 4 = meno visibile */
|
|
22
|
+
--wr-text-1: #0f172a;
|
|
23
|
+
--wr-text-2: #1e293b;
|
|
24
|
+
--wr-text-3: #475569;
|
|
25
|
+
--wr-text-4: #94a3b8;
|
|
26
|
+
|
|
27
|
+
/* TESTO INVERSI */
|
|
28
|
+
--wr-text-1-inv: #ffffff;
|
|
29
|
+
--wr-text-2-inv: #f1f5f9;
|
|
30
|
+
--wr-text-3-inv: #94a3b8;
|
|
31
|
+
--wr-text-4-inv: #334155;
|
|
32
|
+
|
|
33
|
+
/* SEZIONI ALWAYS-DARK */
|
|
34
|
+
--wr-bg-dark-1: #0f172a;
|
|
35
|
+
--wr-bg-dark-2: #1e293b;
|
|
36
|
+
--wr-bg-dark-3: #334155;
|
|
37
|
+
|
|
38
|
+
/* BORDI */
|
|
39
|
+
--wr-border: rgba(15, 23, 42, 0.10);
|
|
40
|
+
--wr-border-strong: rgba(15, 23, 42, 0.18);
|
|
41
|
+
|
|
42
|
+
/* OMBRE */
|
|
43
|
+
--wr-shadow-1: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
|
|
44
|
+
--wr-shadow-2: 0 4px 12px rgba(15, 23, 42, 0.10), 0 2px 4px rgba(15, 23, 42, 0.06);
|
|
45
|
+
--wr-shadow-3: 0 12px 32px rgba(15, 23, 42, 0.14), 0 4px 8px rgba(15, 23, 42, 0.08);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* ── DARK THEME ── */
|
|
49
|
+
[data-theme="dark"] {
|
|
50
|
+
|
|
51
|
+
--wr-bg: #334155;
|
|
52
|
+
|
|
53
|
+
/* SFONDI — 1 = più chiaro, 5 = più scuro */
|
|
54
|
+
--wr-bg-1: #334155;
|
|
55
|
+
--wr-bg-2: #232d3f;
|
|
56
|
+
--wr-bg-3: #162030;
|
|
57
|
+
--wr-bg-4: #0f172a;
|
|
58
|
+
--wr-bg-5: #020617;
|
|
59
|
+
|
|
60
|
+
/* SFONDI INVERSI */
|
|
61
|
+
--wr-bg-1-inv: #ffffff;
|
|
62
|
+
--wr-bg-2-inv: #f8fafc;
|
|
63
|
+
--wr-bg-3-inv: #edf2f7;
|
|
64
|
+
--wr-bg-4-inv: #1e293b;
|
|
65
|
+
--wr-bg-5-inv: #0f172a;
|
|
66
|
+
|
|
67
|
+
/* TESTO — 1 = più visibile, 4 = meno visibile */
|
|
68
|
+
--wr-text-1: #ffffff;
|
|
69
|
+
--wr-text-2: #e2e8f0;
|
|
70
|
+
--wr-text-3: #94a3b8;
|
|
71
|
+
--wr-text-4: #475569;
|
|
72
|
+
|
|
73
|
+
/* TESTO INVERSI */
|
|
74
|
+
--wr-text-1-inv: #0f172a;
|
|
75
|
+
--wr-text-2-inv: #1e293b;
|
|
76
|
+
--wr-text-3-inv: #475569;
|
|
77
|
+
--wr-text-4-inv: #cbd5e1;
|
|
78
|
+
|
|
79
|
+
/* SEZIONI ALWAYS-DARK */
|
|
80
|
+
--wr-bg-dark-1: #000000;
|
|
81
|
+
--wr-bg-dark-2: #0f172a;
|
|
82
|
+
--wr-bg-dark-3: #1e293b;
|
|
83
|
+
|
|
84
|
+
/* BORDI */
|
|
85
|
+
--wr-border: rgba(255, 255, 255, 0.10);
|
|
86
|
+
--wr-border-strong: rgba(255, 255, 255, 0.16);
|
|
87
|
+
|
|
88
|
+
/* OMBRE */
|
|
89
|
+
--wr-shadow-1: 0 1px 3px rgba(0, 0, 0, 0.30), 0 1px 2px rgba(0, 0, 0, 0.20);
|
|
90
|
+
--wr-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
91
|
+
--wr-shadow-3: 0 12px 32px rgba(0, 0, 0, 0.60), 0 4px 8px rgba(0, 0, 0, 0.35);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* ── UTILITY CLASSES ── */
|
|
95
|
+
|
|
96
|
+
/* SFONDI */
|
|
97
|
+
.wr-bg {
|
|
98
|
+
background-color: var(--wr-bg);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.wr-bg-1 {
|
|
102
|
+
background-color: var(--wr-bg-1);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.wr-bg-2 {
|
|
106
|
+
background-color: var(--wr-bg-2);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.wr-bg-3 {
|
|
110
|
+
background-color: var(--wr-bg-3);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.wr-bg-4 {
|
|
114
|
+
background-color: var(--wr-bg-4);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.wr-bg-5 {
|
|
118
|
+
background-color: var(--wr-bg-5);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.wr-bg-1-inv {
|
|
122
|
+
background-color: var(--wr-bg-1-inv);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.wr-bg-2-inv {
|
|
126
|
+
background-color: var(--wr-bg-2-inv);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.wr-bg-3-inv {
|
|
130
|
+
background-color: var(--wr-bg-3-inv);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.wr-bg-4-inv {
|
|
134
|
+
background-color: var(--wr-bg-4-inv);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.wr-bg-5-inv {
|
|
138
|
+
background-color: var(--wr-bg-5-inv);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* TESTO */
|
|
142
|
+
.wr-text {
|
|
143
|
+
color: var(--wr-text);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.wr-text-1 {
|
|
147
|
+
color: var(--wr-text-1);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.wr-text-2 {
|
|
151
|
+
color: var(--wr-text-2);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.wr-text-3 {
|
|
155
|
+
color: var(--wr-text-3);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.wr-text-4 {
|
|
159
|
+
color: var(--wr-text-4);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.wr-text-1-inv {
|
|
163
|
+
color: var(--wr-text-1-inv);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.wr-text-2-inv {
|
|
167
|
+
color: var(--wr-text-2-inv);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.wr-text-3-inv {
|
|
171
|
+
color: var(--wr-text-3-inv);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.wr-text-4-inv {
|
|
175
|
+
color: var(--wr-text-4-inv);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* ALWAYS-DARK */
|
|
179
|
+
.wr-bg-dark-1 {
|
|
180
|
+
background-color: var(--wr-bg-dark-1);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.wr-bg-dark-2 {
|
|
184
|
+
background-color: var(--wr-bg-dark-2);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.wr-bg-dark-3 {
|
|
188
|
+
background-color: var(--wr-bg-dark-3);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* testo su always-dark — hardcoded, non dipende dal tema */
|
|
192
|
+
.wr-dark-text-1 {
|
|
193
|
+
color: #ffffff;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.wr-dark-text-2 {
|
|
197
|
+
color: #e2e8f0;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.wr-dark-text-3 {
|
|
201
|
+
color: #94a3b8;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.wr-dark-text-4 {
|
|
205
|
+
color: #475569;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.wr-elevated-border {
|
|
209
|
+
border-color: rgba(255, 255, 255, 0.08);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.wr-elevated-border-strong {
|
|
213
|
+
border-color: rgba(255, 255, 255, 0.16);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* BORDI */
|
|
217
|
+
.wr-border {
|
|
218
|
+
border-color: var(--wr-border);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.wr-border-strong {
|
|
222
|
+
border-color: var(--wr-border-strong);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* OMBRE */
|
|
226
|
+
.wr-shadow-1 {
|
|
227
|
+
box-shadow: var(--wr-shadow-1);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.wr-shadow-2 {
|
|
231
|
+
box-shadow: var(--wr-shadow-2);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.wr-shadow-3 {
|
|
235
|
+
box-shadow: var(--wr-shadow-3);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* LEXICAL */
|
|
239
|
+
.other h2 {
|
|
240
|
+
font-size: 18px;
|
|
241
|
+
color: #444;
|
|
242
|
+
margin-bottom: 7px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.other a {
|
|
246
|
+
color: #777;
|
|
247
|
+
text-decoration: underline;
|
|
248
|
+
font-size: 14px;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.other ul {
|
|
252
|
+
padding: 0;
|
|
253
|
+
margin: 0;
|
|
254
|
+
list-style-type: none;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.App {
|
|
258
|
+
font-family: sans-serif;
|
|
259
|
+
text-align: center;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.ltr {
|
|
263
|
+
text-align: left;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.rtl {
|
|
267
|
+
text-align: right;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.editor-container {
|
|
271
|
+
color: #000;
|
|
272
|
+
display: flex;
|
|
273
|
+
flex-direction: column;
|
|
274
|
+
height: 100%;
|
|
275
|
+
font-weight: 400;
|
|
276
|
+
text-align: left;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.editor-inner {
|
|
280
|
+
background: transparent;
|
|
281
|
+
flex: 1;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.editor-input {
|
|
285
|
+
resize: none;
|
|
286
|
+
font-size: 15px;
|
|
287
|
+
caret-color: rgb(5, 5, 5);
|
|
288
|
+
tab-size: 1;
|
|
289
|
+
outline: 0;
|
|
290
|
+
caret-color: inherit;
|
|
291
|
+
width: 100%;
|
|
292
|
+
height: 100%;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.editor-input p {
|
|
296
|
+
text-align: inherit !important;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.editor-input h1 {
|
|
300
|
+
text-align: inherit !important;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.editor-input h2 {
|
|
304
|
+
text-align: inherit !important;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.editor-input h3 {
|
|
308
|
+
text-align: inherit !important;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.editor-input h4 {
|
|
312
|
+
text-align: inherit !important;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.editor-input h5 {
|
|
316
|
+
text-align: inherit !important;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.editor-input h6 {
|
|
320
|
+
text-align: inherit !important;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.editor-placeholder {
|
|
324
|
+
color: #999;
|
|
325
|
+
width: 100%;
|
|
326
|
+
height: 100%;
|
|
327
|
+
font-size: 15px;
|
|
328
|
+
margin-top: -22px;
|
|
329
|
+
padding-right: 10px;
|
|
330
|
+
padding-left: 10px;
|
|
331
|
+
user-select: none;
|
|
332
|
+
pointer-events: none;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.editor-text-bold {
|
|
336
|
+
font-weight: bold;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.editor-text-italic {
|
|
340
|
+
font-style: italic;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.editor-text-underline {
|
|
344
|
+
text-decoration: underline;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.editor-input u,
|
|
348
|
+
.editor-input s {
|
|
349
|
+
text-decoration: none !important;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.editor-text-strikethrough {
|
|
353
|
+
text-decoration: line-through;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.editor-text-underlineStrikethrough {
|
|
357
|
+
text-decoration: underline line-through;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.editor-link {
|
|
361
|
+
color: rgb(33, 111, 219);
|
|
362
|
+
text-decoration: none;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.tree-view-output {
|
|
366
|
+
display: block;
|
|
367
|
+
background: #222;
|
|
368
|
+
color: #fff;
|
|
369
|
+
padding: 5px;
|
|
370
|
+
font-size: 12px;
|
|
371
|
+
white-space: pre-wrap;
|
|
372
|
+
margin: 1px auto 10px auto;
|
|
373
|
+
max-height: 250px;
|
|
374
|
+
position: relative;
|
|
375
|
+
border-bottom-left-radius: 10px;
|
|
376
|
+
border-bottom-right-radius: 10px;
|
|
377
|
+
overflow: auto;
|
|
378
|
+
line-height: 14px;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.editor-code {
|
|
382
|
+
background-color: rgb(240, 242, 245);
|
|
383
|
+
font-family: Menlo, Consolas, Monaco, monospace;
|
|
384
|
+
display: block;
|
|
385
|
+
padding: 8px 8px 8px 52px;
|
|
386
|
+
line-height: 1.53;
|
|
387
|
+
font-size: 13px;
|
|
388
|
+
margin: 0;
|
|
389
|
+
margin-top: 8px;
|
|
390
|
+
margin-bottom: 8px;
|
|
391
|
+
tab-size: 2;
|
|
392
|
+
overflow-x: auto;
|
|
393
|
+
position: relative;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.editor-code:before {
|
|
397
|
+
content: attr(data-gutter);
|
|
398
|
+
position: absolute;
|
|
399
|
+
background-color: #eee;
|
|
400
|
+
left: 0;
|
|
401
|
+
top: 0;
|
|
402
|
+
border-right: 1px solid #ccc;
|
|
403
|
+
padding: 8px;
|
|
404
|
+
color: #777;
|
|
405
|
+
white-space: pre-wrap;
|
|
406
|
+
text-align: right;
|
|
407
|
+
min-width: 25px;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.editor-code:after {
|
|
411
|
+
content: attr(data-highlight-language);
|
|
412
|
+
top: 0;
|
|
413
|
+
right: 3px;
|
|
414
|
+
padding: 3px;
|
|
415
|
+
font-size: 10px;
|
|
416
|
+
text-transform: uppercase;
|
|
417
|
+
position: absolute;
|
|
418
|
+
color: rgba(0, 0, 0, 0.5);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.editor-tokenComment {
|
|
422
|
+
color: slategray;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.editor-tokenPunctuation {
|
|
426
|
+
color: #999;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.editor-tokenProperty {
|
|
430
|
+
color: #905;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.editor-tokenSelector {
|
|
434
|
+
color: #690;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.editor-tokenOperator {
|
|
438
|
+
color: #9a6e3a;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.editor-tokenAttr {
|
|
442
|
+
color: #07a;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.editor-tokenVariable {
|
|
446
|
+
color: #e90;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.editor-tokenFunction {
|
|
450
|
+
color: #dd4a68;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.editor-paragraph {
|
|
454
|
+
margin: 0;
|
|
455
|
+
margin-bottom: 0;
|
|
456
|
+
position: relative;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.editor-paragraph:last-child {
|
|
460
|
+
margin-bottom: 0;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.editor-quote {
|
|
464
|
+
margin: 0;
|
|
465
|
+
margin-left: 20px;
|
|
466
|
+
font-size: 15px;
|
|
467
|
+
color: rgb(101, 103, 107);
|
|
468
|
+
border-left-color: rgb(206, 208, 212);
|
|
469
|
+
border-left-width: 4px;
|
|
470
|
+
border-left-style: solid;
|
|
471
|
+
padding-left: 16px;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.editor-list-ol {
|
|
475
|
+
list-style-type: decimal;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.editor-list-ul {
|
|
479
|
+
list-style-type: disc;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.editor-list-ol li::marker,
|
|
483
|
+
.editor-list-ul li::marker {
|
|
484
|
+
font-family: var(--list-marker-font-family, inherit);
|
|
485
|
+
color: var(--list-marker-color, inherit);
|
|
486
|
+
font-size: var(--list-marker-font-size, inherit);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.editor-listitem {
|
|
490
|
+
margin-bottom: 8px;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.editor-nested-listitem {
|
|
494
|
+
list-style-type: none;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
pre::-webkit-scrollbar {
|
|
498
|
+
background: transparent;
|
|
499
|
+
width: 10px;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
pre::-webkit-scrollbar-thumb {
|
|
503
|
+
background: #999;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.debug-timetravel-panel {
|
|
507
|
+
overflow: hidden;
|
|
508
|
+
padding: 0 0 10px 0;
|
|
509
|
+
margin: auto;
|
|
510
|
+
display: flex;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.debug-timetravel-panel-slider {
|
|
514
|
+
padding: 0;
|
|
515
|
+
flex: 8;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.debug-timetravel-panel-button {
|
|
519
|
+
padding: 0;
|
|
520
|
+
border: 0;
|
|
521
|
+
background: none;
|
|
522
|
+
flex: 1;
|
|
523
|
+
color: #fff;
|
|
524
|
+
font-size: 12px;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.debug-timetravel-panel-button:hover {
|
|
528
|
+
text-decoration: underline;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.debug-timetravel-button {
|
|
532
|
+
border: 0;
|
|
533
|
+
padding: 0;
|
|
534
|
+
font-size: 12px;
|
|
535
|
+
top: 10px;
|
|
536
|
+
right: 15px;
|
|
537
|
+
position: absolute;
|
|
538
|
+
background: none;
|
|
539
|
+
color: #fff;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.debug-timetravel-button:hover {
|
|
543
|
+
text-decoration: underline;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.toolbar {
|
|
547
|
+
display: flex;
|
|
548
|
+
background: var(--wr-bg-2);
|
|
549
|
+
padding: 12px;
|
|
550
|
+
vertical-align: middle;
|
|
551
|
+
overflow-x: auto;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.toolbar-container {
|
|
555
|
+
position: absolute;
|
|
556
|
+
top: 0;
|
|
557
|
+
left: 0;
|
|
558
|
+
width: 100%;
|
|
559
|
+
background: transparent;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.toolbar button.toolbar-item {
|
|
563
|
+
border: 0;
|
|
564
|
+
display: flex;
|
|
565
|
+
background: none;
|
|
566
|
+
border-radius: 0.75rem;
|
|
567
|
+
padding: 8px;
|
|
568
|
+
cursor: pointer;
|
|
569
|
+
vertical-align: middle;
|
|
570
|
+
background: var(--wr-bg-1);
|
|
571
|
+
border: 1px solid var(--wr-border-strong)
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.toolbar button.toolbar-item:disabled {
|
|
575
|
+
cursor: not-allowed;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.toolbar button.toolbar-item.spaced {
|
|
579
|
+
margin-right: 2px;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.toolbar button.toolbar-item i.format {
|
|
583
|
+
background-size: contain;
|
|
584
|
+
display: inline-block;
|
|
585
|
+
height: 18px;
|
|
586
|
+
width: 18px;
|
|
587
|
+
margin-top: 2px;
|
|
588
|
+
vertical-align: -0.25em;
|
|
589
|
+
display: flex;
|
|
590
|
+
opacity: 0.6;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.toolbar button.toolbar-item:disabled i.format {
|
|
594
|
+
opacity: 0.2;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.toolbar button.toolbar-item.active {
|
|
598
|
+
background-color: var(--wr-bg-3);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.toolbar button.toolbar-item.active i {
|
|
602
|
+
opacity: 1;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.toolbar .toolbar-item:hover:not([disabled]) {
|
|
606
|
+
background-color: var(--wr-bg-3);
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.toolbar .divider {
|
|
610
|
+
width: 1px;
|
|
611
|
+
background-color: #413f3f;
|
|
612
|
+
margin: 0 4px;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.toolbar .toolbar-item .text {
|
|
616
|
+
display: flex;
|
|
617
|
+
line-height: 20px;
|
|
618
|
+
width: 200px;
|
|
619
|
+
vertical-align: middle;
|
|
620
|
+
font-size: 14px;
|
|
621
|
+
color: #777;
|
|
622
|
+
text-overflow: ellipsis;
|
|
623
|
+
width: 70px;
|
|
624
|
+
overflow: hidden;
|
|
625
|
+
height: 20px;
|
|
626
|
+
text-align: left;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.toolbar .toolbar-item .icon {
|
|
630
|
+
display: flex;
|
|
631
|
+
width: 20px;
|
|
632
|
+
height: 20px;
|
|
633
|
+
user-select: none;
|
|
634
|
+
margin-right: 8px;
|
|
635
|
+
line-height: 16px;
|
|
636
|
+
background-size: contain;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
[data-lexical-decorator="true"] {
|
|
640
|
+
max-width: 100%;
|
|
641
|
+
width: 100%;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.editor-color-picker-dot {
|
|
645
|
+
width: 1rem;
|
|
646
|
+
height: 1rem;
|
|
647
|
+
padding: 0.5rem;
|
|
648
|
+
border: 1px solid var(--wr-border);
|
|
649
|
+
border-radius: 9999px;
|
|
650
|
+
box-shadow: var(--wr-shadow-1)
|
|
651
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
1
|
+
import './index.css';
|
|
2
|
+
export { WrAppProvider, useWrApp } from './context/WrAppContext';
|
|
3
|
+
export { useWrPage, useWrPageMeta, WrPageProvider } from './context/WrPageContext';
|
|
4
|
+
export { WrAltcha } from './components/WrAltcha';
|
|
5
|
+
export { WrButton } from './components/WrButton';
|
|
6
|
+
export { WrForm } from './components/WrForm';
|
|
7
|
+
export { WrFormPrivacy } from './components/WrFormPrivacy';
|
|
8
|
+
export { WrFormSuccess } from './components/WrFormSuccess';
|
|
9
|
+
export { WrInput } from './components/WrInput';
|
|
10
|
+
export { WrIframe } from './components/WrIframe';
|
|
11
|
+
export { WrImage } from './components/WrImage';
|
|
12
|
+
export { WrLink } from './components/WrLink';
|
|
13
|
+
export { WrNav } from './components/WrNav';
|
|
14
|
+
export type { WrNavOptions } from './components/WrNav';
|
|
15
|
+
export { WrSection } from './components/WrSection';
|
|
16
|
+
export { WrText } from './components/WrText';
|
|
17
|
+
export { WrVideo } from './components/WrVideo';
|
|
18
|
+
export { WrShared } from './components/WrShared';
|
|
19
|
+
export { wrResolveRoutes, wrBuildRegistry, wrBuildLazyRegistry, wrBuildPageConfigMap, wrPageConfigPath, wrPageFilePath, wrExpandRoutesForLangs, wrExtractLang, wrLangKey, wrBuildLangPath, wrLocalizeHref, wrIsExternalHref, WR_SHARED_SCOPES, WR_SHARED_FILE, wrSharedName, wrSharedProblem, wrSharedScopes, type WrSharedScope, type WrSharedFile, type WrRouteEntry, type WrRoutesFile, type WrResolvedRoute, type WrRegistry, type WrLazyRegistry, type WrResolveErrors, type WrResolveResult, type WrLangConfig, } from './routing';
|
|
20
|
+
export { langCodesMap, langCodeValues, langFlagMap, langOptions, type LangCode, } from './lang-codes';
|
|
9
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
1
|
+
// packages/core/src/index.ts
|
|
2
|
+
import './index.css';
|
|
3
|
+
export { WrAppProvider, useWrApp } from './context/WrAppContext';
|
|
4
|
+
export { useWrPage, useWrPageMeta, WrPageProvider } from './context/WrPageContext';
|
|
5
|
+
export { WrAltcha } from './components/WrAltcha';
|
|
6
|
+
export { WrButton } from './components/WrButton';
|
|
7
|
+
export { WrForm } from './components/WrForm';
|
|
8
|
+
export { WrFormPrivacy } from './components/WrFormPrivacy';
|
|
9
|
+
export { WrFormSuccess } from './components/WrFormSuccess';
|
|
10
|
+
export { WrInput } from './components/WrInput';
|
|
11
|
+
export { WrIframe } from './components/WrIframe';
|
|
12
|
+
export { WrImage } from './components/WrImage';
|
|
13
|
+
export { WrLink } from './components/WrLink';
|
|
14
|
+
export { WrNav } from './components/WrNav';
|
|
15
|
+
export { WrSection } from './components/WrSection';
|
|
16
|
+
export { WrText } from './components/WrText';
|
|
17
|
+
export { WrVideo } from './components/WrVideo';
|
|
18
|
+
export { WrShared } from './components/WrShared';
|
|
19
|
+
export { wrResolveRoutes, wrBuildRegistry, wrBuildLazyRegistry, wrBuildPageConfigMap, wrPageConfigPath, wrPageFilePath, wrExpandRoutesForLangs, wrExtractLang, wrLangKey, wrBuildLangPath, wrLocalizeHref, wrIsExternalHref, WR_SHARED_SCOPES, WR_SHARED_FILE, wrSharedName, wrSharedProblem, wrSharedScopes, } from './routing';
|
|
20
|
+
export { langCodesMap, langCodeValues, langFlagMap, langOptions, } from './lang-codes';
|
|
9
21
|
//# sourceMappingURL=index.js.map
|