@prokodo/ui 0.0.53 → 0.0.55
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/_virtual/_commonjsHelpers.js +9 -0
- package/dist/_virtual/common.js +7 -0
- package/dist/components/list/List.module.scss.js +0 -1
- package/dist/components/post-item/PostItem.client.js +3 -4
- package/dist/components/post-item/PostItem.server.js +3 -4
- package/dist/components/post-item/PostItem.view.js +2 -2
- package/dist/components/post-teaser/PostTeaser.client.js +5 -6
- package/dist/components/post-teaser/PostTeaser.server.js +3 -4
- package/dist/components/post-teaser/PostTeaser.view.js +4 -4
- package/dist/components/rich-text/RichText.client.js +175 -10
- package/dist/components/rich-text/RichText.module.scss.js +1 -1
- package/dist/components/slider/Slider.view.js +19 -4
- package/dist/constants/project.js +1 -1
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +90 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1629 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +407 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +307 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +556 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +413 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +950 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +66 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +167 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +83 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +129 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +268 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +715 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +53 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +268 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +1031 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +74 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +84 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +245 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +256 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +498 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +59 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +614 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +25 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +38 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +428 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +223 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +426 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +326 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +935 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +37 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +658 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +893 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +829 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +146 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +134 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +239 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +214 -0
- package/dist/node_modules/.pnpm/marked-highlight@2.2.2_marked@15.0.12/node_modules/marked-highlight/src/index.js +93 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/post-item/PostItem.model.d.ts +1 -1
- package/dist/types/components/post-teaser/PostTeaser.model.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.d.ts +5 -0
- package/dist/types/components/rich-text/RichText.lazy.d.ts +5 -0
- package/dist/types/components/rich-text/RichText.model.d.ts +5 -0
- package/dist/ui.css +98 -58
- package/package.json +3 -1
- package/dist/helpers/calculation.js +0 -6
package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
var rust_1;
|
|
4
|
+
var hasRequiredRust;
|
|
5
|
+
function requireRust() {
|
|
6
|
+
if (hasRequiredRust) return rust_1;
|
|
7
|
+
hasRequiredRust = 1;
|
|
8
|
+
function rust(hljs) {
|
|
9
|
+
const regex = hljs.regex;
|
|
10
|
+
const RAW_IDENTIFIER = /(r#)?/;
|
|
11
|
+
const UNDERSCORE_IDENT_RE = regex.concat(RAW_IDENTIFIER, hljs.UNDERSCORE_IDENT_RE);
|
|
12
|
+
const IDENT_RE = regex.concat(RAW_IDENTIFIER, hljs.IDENT_RE);
|
|
13
|
+
const FUNCTION_INVOKE = {
|
|
14
|
+
className: "title.function.invoke",
|
|
15
|
+
relevance: 0,
|
|
16
|
+
begin: regex.concat(
|
|
17
|
+
/\b/,
|
|
18
|
+
/(?!let|for|while|if|else|match\b)/,
|
|
19
|
+
IDENT_RE,
|
|
20
|
+
regex.lookahead(/\s*\(/)
|
|
21
|
+
)
|
|
22
|
+
};
|
|
23
|
+
const NUMBER_SUFFIX = "([ui](8|16|32|64|128|size)|f(32|64))?";
|
|
24
|
+
const KEYWORDS = [
|
|
25
|
+
"abstract",
|
|
26
|
+
"as",
|
|
27
|
+
"async",
|
|
28
|
+
"await",
|
|
29
|
+
"become",
|
|
30
|
+
"box",
|
|
31
|
+
"break",
|
|
32
|
+
"const",
|
|
33
|
+
"continue",
|
|
34
|
+
"crate",
|
|
35
|
+
"do",
|
|
36
|
+
"dyn",
|
|
37
|
+
"else",
|
|
38
|
+
"enum",
|
|
39
|
+
"extern",
|
|
40
|
+
"false",
|
|
41
|
+
"final",
|
|
42
|
+
"fn",
|
|
43
|
+
"for",
|
|
44
|
+
"if",
|
|
45
|
+
"impl",
|
|
46
|
+
"in",
|
|
47
|
+
"let",
|
|
48
|
+
"loop",
|
|
49
|
+
"macro",
|
|
50
|
+
"match",
|
|
51
|
+
"mod",
|
|
52
|
+
"move",
|
|
53
|
+
"mut",
|
|
54
|
+
"override",
|
|
55
|
+
"priv",
|
|
56
|
+
"pub",
|
|
57
|
+
"ref",
|
|
58
|
+
"return",
|
|
59
|
+
"self",
|
|
60
|
+
"Self",
|
|
61
|
+
"static",
|
|
62
|
+
"struct",
|
|
63
|
+
"super",
|
|
64
|
+
"trait",
|
|
65
|
+
"true",
|
|
66
|
+
"try",
|
|
67
|
+
"type",
|
|
68
|
+
"typeof",
|
|
69
|
+
"union",
|
|
70
|
+
"unsafe",
|
|
71
|
+
"unsized",
|
|
72
|
+
"use",
|
|
73
|
+
"virtual",
|
|
74
|
+
"where",
|
|
75
|
+
"while",
|
|
76
|
+
"yield"
|
|
77
|
+
];
|
|
78
|
+
const LITERALS = [
|
|
79
|
+
"true",
|
|
80
|
+
"false",
|
|
81
|
+
"Some",
|
|
82
|
+
"None",
|
|
83
|
+
"Ok",
|
|
84
|
+
"Err"
|
|
85
|
+
];
|
|
86
|
+
const BUILTINS = [
|
|
87
|
+
// functions
|
|
88
|
+
"drop ",
|
|
89
|
+
// traits
|
|
90
|
+
"Copy",
|
|
91
|
+
"Send",
|
|
92
|
+
"Sized",
|
|
93
|
+
"Sync",
|
|
94
|
+
"Drop",
|
|
95
|
+
"Fn",
|
|
96
|
+
"FnMut",
|
|
97
|
+
"FnOnce",
|
|
98
|
+
"ToOwned",
|
|
99
|
+
"Clone",
|
|
100
|
+
"Debug",
|
|
101
|
+
"PartialEq",
|
|
102
|
+
"PartialOrd",
|
|
103
|
+
"Eq",
|
|
104
|
+
"Ord",
|
|
105
|
+
"AsRef",
|
|
106
|
+
"AsMut",
|
|
107
|
+
"Into",
|
|
108
|
+
"From",
|
|
109
|
+
"Default",
|
|
110
|
+
"Iterator",
|
|
111
|
+
"Extend",
|
|
112
|
+
"IntoIterator",
|
|
113
|
+
"DoubleEndedIterator",
|
|
114
|
+
"ExactSizeIterator",
|
|
115
|
+
"SliceConcatExt",
|
|
116
|
+
"ToString",
|
|
117
|
+
// macros
|
|
118
|
+
"assert!",
|
|
119
|
+
"assert_eq!",
|
|
120
|
+
"bitflags!",
|
|
121
|
+
"bytes!",
|
|
122
|
+
"cfg!",
|
|
123
|
+
"col!",
|
|
124
|
+
"concat!",
|
|
125
|
+
"concat_idents!",
|
|
126
|
+
"debug_assert!",
|
|
127
|
+
"debug_assert_eq!",
|
|
128
|
+
"env!",
|
|
129
|
+
"eprintln!",
|
|
130
|
+
"panic!",
|
|
131
|
+
"file!",
|
|
132
|
+
"format!",
|
|
133
|
+
"format_args!",
|
|
134
|
+
"include_bytes!",
|
|
135
|
+
"include_str!",
|
|
136
|
+
"line!",
|
|
137
|
+
"local_data_key!",
|
|
138
|
+
"module_path!",
|
|
139
|
+
"option_env!",
|
|
140
|
+
"print!",
|
|
141
|
+
"println!",
|
|
142
|
+
"select!",
|
|
143
|
+
"stringify!",
|
|
144
|
+
"try!",
|
|
145
|
+
"unimplemented!",
|
|
146
|
+
"unreachable!",
|
|
147
|
+
"vec!",
|
|
148
|
+
"write!",
|
|
149
|
+
"writeln!",
|
|
150
|
+
"macro_rules!",
|
|
151
|
+
"assert_ne!",
|
|
152
|
+
"debug_assert_ne!"
|
|
153
|
+
];
|
|
154
|
+
const TYPES = [
|
|
155
|
+
"i8",
|
|
156
|
+
"i16",
|
|
157
|
+
"i32",
|
|
158
|
+
"i64",
|
|
159
|
+
"i128",
|
|
160
|
+
"isize",
|
|
161
|
+
"u8",
|
|
162
|
+
"u16",
|
|
163
|
+
"u32",
|
|
164
|
+
"u64",
|
|
165
|
+
"u128",
|
|
166
|
+
"usize",
|
|
167
|
+
"f32",
|
|
168
|
+
"f64",
|
|
169
|
+
"str",
|
|
170
|
+
"char",
|
|
171
|
+
"bool",
|
|
172
|
+
"Box",
|
|
173
|
+
"Option",
|
|
174
|
+
"Result",
|
|
175
|
+
"String",
|
|
176
|
+
"Vec"
|
|
177
|
+
];
|
|
178
|
+
return {
|
|
179
|
+
name: "Rust",
|
|
180
|
+
aliases: ["rs"],
|
|
181
|
+
keywords: {
|
|
182
|
+
$pattern: hljs.IDENT_RE + "!?",
|
|
183
|
+
type: TYPES,
|
|
184
|
+
keyword: KEYWORDS,
|
|
185
|
+
literal: LITERALS,
|
|
186
|
+
built_in: BUILTINS
|
|
187
|
+
},
|
|
188
|
+
illegal: "</",
|
|
189
|
+
contains: [
|
|
190
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
191
|
+
hljs.COMMENT("/\\*", "\\*/", { contains: ["self"] }),
|
|
192
|
+
hljs.inherit(hljs.QUOTE_STRING_MODE, {
|
|
193
|
+
begin: /b?"/,
|
|
194
|
+
illegal: null
|
|
195
|
+
}),
|
|
196
|
+
{
|
|
197
|
+
className: "symbol",
|
|
198
|
+
// negative lookahead to avoid matching `'`
|
|
199
|
+
begin: /'[a-zA-Z_][a-zA-Z0-9_]*(?!')/
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
scope: "string",
|
|
203
|
+
variants: [
|
|
204
|
+
{ begin: /b?r(#*)"(.|\n)*?"\1(?!#)/ },
|
|
205
|
+
{
|
|
206
|
+
begin: /b?'/,
|
|
207
|
+
end: /'/,
|
|
208
|
+
contains: [
|
|
209
|
+
{
|
|
210
|
+
scope: "char.escape",
|
|
211
|
+
match: /\\('|\w|x\w{2}|u\w{4}|U\w{8})/
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
className: "number",
|
|
219
|
+
variants: [
|
|
220
|
+
{ begin: "\\b0b([01_]+)" + NUMBER_SUFFIX },
|
|
221
|
+
{ begin: "\\b0o([0-7_]+)" + NUMBER_SUFFIX },
|
|
222
|
+
{ begin: "\\b0x([A-Fa-f0-9_]+)" + NUMBER_SUFFIX },
|
|
223
|
+
{ begin: "\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)" + NUMBER_SUFFIX }
|
|
224
|
+
],
|
|
225
|
+
relevance: 0
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
begin: [
|
|
229
|
+
/fn/,
|
|
230
|
+
/\s+/,
|
|
231
|
+
UNDERSCORE_IDENT_RE
|
|
232
|
+
],
|
|
233
|
+
className: {
|
|
234
|
+
1: "keyword",
|
|
235
|
+
3: "title.function"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
className: "meta",
|
|
240
|
+
begin: "#!?\\[",
|
|
241
|
+
end: "\\]",
|
|
242
|
+
contains: [
|
|
243
|
+
{
|
|
244
|
+
className: "string",
|
|
245
|
+
begin: /"/,
|
|
246
|
+
end: /"/,
|
|
247
|
+
contains: [
|
|
248
|
+
hljs.BACKSLASH_ESCAPE
|
|
249
|
+
]
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
begin: [
|
|
255
|
+
/let/,
|
|
256
|
+
/\s+/,
|
|
257
|
+
/(?:mut\s+)?/,
|
|
258
|
+
UNDERSCORE_IDENT_RE
|
|
259
|
+
],
|
|
260
|
+
className: {
|
|
261
|
+
1: "keyword",
|
|
262
|
+
3: "keyword",
|
|
263
|
+
4: "variable"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
// must come before impl/for rule later
|
|
267
|
+
{
|
|
268
|
+
begin: [
|
|
269
|
+
/for/,
|
|
270
|
+
/\s+/,
|
|
271
|
+
UNDERSCORE_IDENT_RE,
|
|
272
|
+
/\s+/,
|
|
273
|
+
/in/
|
|
274
|
+
],
|
|
275
|
+
className: {
|
|
276
|
+
1: "keyword",
|
|
277
|
+
3: "variable",
|
|
278
|
+
5: "keyword"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
begin: [
|
|
283
|
+
/type/,
|
|
284
|
+
/\s+/,
|
|
285
|
+
UNDERSCORE_IDENT_RE
|
|
286
|
+
],
|
|
287
|
+
className: {
|
|
288
|
+
1: "keyword",
|
|
289
|
+
3: "title.class"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
begin: [
|
|
294
|
+
/(?:trait|enum|struct|union|impl|for)/,
|
|
295
|
+
/\s+/,
|
|
296
|
+
UNDERSCORE_IDENT_RE
|
|
297
|
+
],
|
|
298
|
+
className: {
|
|
299
|
+
1: "keyword",
|
|
300
|
+
3: "title.class"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
begin: hljs.IDENT_RE + "::",
|
|
305
|
+
keywords: {
|
|
306
|
+
keyword: "Self",
|
|
307
|
+
built_in: BUILTINS,
|
|
308
|
+
type: TYPES
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
className: "punctuation",
|
|
313
|
+
begin: "->"
|
|
314
|
+
},
|
|
315
|
+
FUNCTION_INVOKE
|
|
316
|
+
]
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
__name(rust, "rust");
|
|
320
|
+
rust_1 = rust;
|
|
321
|
+
return rust_1;
|
|
322
|
+
}
|
|
323
|
+
__name(requireRust, "requireRust");
|
|
324
|
+
export {
|
|
325
|
+
requireRust as __require
|
|
326
|
+
};
|