@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.
Files changed (63) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +9 -0
  2. package/dist/_virtual/common.js +7 -0
  3. package/dist/components/list/List.module.scss.js +0 -1
  4. package/dist/components/post-item/PostItem.client.js +3 -4
  5. package/dist/components/post-item/PostItem.server.js +3 -4
  6. package/dist/components/post-item/PostItem.view.js +2 -2
  7. package/dist/components/post-teaser/PostTeaser.client.js +5 -6
  8. package/dist/components/post-teaser/PostTeaser.server.js +3 -4
  9. package/dist/components/post-teaser/PostTeaser.view.js +4 -4
  10. package/dist/components/rich-text/RichText.client.js +175 -10
  11. package/dist/components/rich-text/RichText.module.scss.js +1 -1
  12. package/dist/components/slider/Slider.view.js +19 -4
  13. package/dist/constants/project.js +1 -1
  14. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
  15. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +90 -0
  16. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1629 -0
  17. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +407 -0
  18. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +307 -0
  19. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +556 -0
  20. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +413 -0
  21. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +950 -0
  22. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +66 -0
  23. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +167 -0
  24. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +83 -0
  25. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +129 -0
  26. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +268 -0
  27. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +715 -0
  28. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +53 -0
  29. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +268 -0
  30. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +1031 -0
  31. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +74 -0
  32. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +84 -0
  33. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +245 -0
  34. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +256 -0
  35. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +498 -0
  36. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +59 -0
  37. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +614 -0
  38. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +25 -0
  39. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +38 -0
  40. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +428 -0
  41. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +223 -0
  42. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +426 -0
  43. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +326 -0
  44. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +935 -0
  45. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +37 -0
  46. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +658 -0
  47. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +893 -0
  48. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +829 -0
  49. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +146 -0
  50. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +134 -0
  51. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +239 -0
  52. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +214 -0
  53. package/dist/node_modules/.pnpm/marked-highlight@2.2.2_marked@15.0.12/node_modules/marked-highlight/src/index.js +93 -0
  54. package/dist/tsconfig.build.tsbuildinfo +1 -1
  55. package/dist/types/components/post-item/PostItem.model.d.ts +1 -1
  56. package/dist/types/components/post-teaser/PostTeaser.model.d.ts +1 -1
  57. package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
  58. package/dist/types/components/rich-text/RichText.d.ts +5 -0
  59. package/dist/types/components/rich-text/RichText.lazy.d.ts +5 -0
  60. package/dist/types/components/rich-text/RichText.model.d.ts +5 -0
  61. package/dist/ui.css +98 -58
  62. package/package.json +3 -1
  63. package/dist/helpers/calculation.js +0 -6
@@ -0,0 +1,413 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var csharp_1;
4
+ var hasRequiredCsharp;
5
+ function requireCsharp() {
6
+ if (hasRequiredCsharp) return csharp_1;
7
+ hasRequiredCsharp = 1;
8
+ function csharp(hljs) {
9
+ const BUILT_IN_KEYWORDS = [
10
+ "bool",
11
+ "byte",
12
+ "char",
13
+ "decimal",
14
+ "delegate",
15
+ "double",
16
+ "dynamic",
17
+ "enum",
18
+ "float",
19
+ "int",
20
+ "long",
21
+ "nint",
22
+ "nuint",
23
+ "object",
24
+ "sbyte",
25
+ "short",
26
+ "string",
27
+ "ulong",
28
+ "uint",
29
+ "ushort"
30
+ ];
31
+ const FUNCTION_MODIFIERS = [
32
+ "public",
33
+ "private",
34
+ "protected",
35
+ "static",
36
+ "internal",
37
+ "protected",
38
+ "abstract",
39
+ "async",
40
+ "extern",
41
+ "override",
42
+ "unsafe",
43
+ "virtual",
44
+ "new",
45
+ "sealed",
46
+ "partial"
47
+ ];
48
+ const LITERAL_KEYWORDS = [
49
+ "default",
50
+ "false",
51
+ "null",
52
+ "true"
53
+ ];
54
+ const NORMAL_KEYWORDS = [
55
+ "abstract",
56
+ "as",
57
+ "base",
58
+ "break",
59
+ "case",
60
+ "catch",
61
+ "class",
62
+ "const",
63
+ "continue",
64
+ "do",
65
+ "else",
66
+ "event",
67
+ "explicit",
68
+ "extern",
69
+ "finally",
70
+ "fixed",
71
+ "for",
72
+ "foreach",
73
+ "goto",
74
+ "if",
75
+ "implicit",
76
+ "in",
77
+ "interface",
78
+ "internal",
79
+ "is",
80
+ "lock",
81
+ "namespace",
82
+ "new",
83
+ "operator",
84
+ "out",
85
+ "override",
86
+ "params",
87
+ "private",
88
+ "protected",
89
+ "public",
90
+ "readonly",
91
+ "record",
92
+ "ref",
93
+ "return",
94
+ "scoped",
95
+ "sealed",
96
+ "sizeof",
97
+ "stackalloc",
98
+ "static",
99
+ "struct",
100
+ "switch",
101
+ "this",
102
+ "throw",
103
+ "try",
104
+ "typeof",
105
+ "unchecked",
106
+ "unsafe",
107
+ "using",
108
+ "virtual",
109
+ "void",
110
+ "volatile",
111
+ "while"
112
+ ];
113
+ const CONTEXTUAL_KEYWORDS = [
114
+ "add",
115
+ "alias",
116
+ "and",
117
+ "ascending",
118
+ "args",
119
+ "async",
120
+ "await",
121
+ "by",
122
+ "descending",
123
+ "dynamic",
124
+ "equals",
125
+ "file",
126
+ "from",
127
+ "get",
128
+ "global",
129
+ "group",
130
+ "init",
131
+ "into",
132
+ "join",
133
+ "let",
134
+ "nameof",
135
+ "not",
136
+ "notnull",
137
+ "on",
138
+ "or",
139
+ "orderby",
140
+ "partial",
141
+ "record",
142
+ "remove",
143
+ "required",
144
+ "scoped",
145
+ "select",
146
+ "set",
147
+ "unmanaged",
148
+ "value|0",
149
+ "var",
150
+ "when",
151
+ "where",
152
+ "with",
153
+ "yield"
154
+ ];
155
+ const KEYWORDS = {
156
+ keyword: NORMAL_KEYWORDS.concat(CONTEXTUAL_KEYWORDS),
157
+ built_in: BUILT_IN_KEYWORDS,
158
+ literal: LITERAL_KEYWORDS
159
+ };
160
+ const TITLE_MODE = hljs.inherit(hljs.TITLE_MODE, { begin: "[a-zA-Z](\\.?\\w)*" });
161
+ const NUMBERS = {
162
+ className: "number",
163
+ variants: [
164
+ { begin: "\\b(0b[01']+)" },
165
+ { begin: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)" },
166
+ { begin: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" }
167
+ ],
168
+ relevance: 0
169
+ };
170
+ const RAW_STRING = {
171
+ className: "string",
172
+ begin: /"""("*)(?!")(.|\n)*?"""\1/,
173
+ relevance: 1
174
+ };
175
+ const VERBATIM_STRING = {
176
+ className: "string",
177
+ begin: '@"',
178
+ end: '"',
179
+ contains: [{ begin: '""' }]
180
+ };
181
+ const VERBATIM_STRING_NO_LF = hljs.inherit(VERBATIM_STRING, { illegal: /\n/ });
182
+ const SUBST = {
183
+ className: "subst",
184
+ begin: /\{/,
185
+ end: /\}/,
186
+ keywords: KEYWORDS
187
+ };
188
+ const SUBST_NO_LF = hljs.inherit(SUBST, { illegal: /\n/ });
189
+ const INTERPOLATED_STRING = {
190
+ className: "string",
191
+ begin: /\$"/,
192
+ end: '"',
193
+ illegal: /\n/,
194
+ contains: [
195
+ { begin: /\{\{/ },
196
+ { begin: /\}\}/ },
197
+ hljs.BACKSLASH_ESCAPE,
198
+ SUBST_NO_LF
199
+ ]
200
+ };
201
+ const INTERPOLATED_VERBATIM_STRING = {
202
+ className: "string",
203
+ begin: /\$@"/,
204
+ end: '"',
205
+ contains: [
206
+ { begin: /\{\{/ },
207
+ { begin: /\}\}/ },
208
+ { begin: '""' },
209
+ SUBST
210
+ ]
211
+ };
212
+ const INTERPOLATED_VERBATIM_STRING_NO_LF = hljs.inherit(INTERPOLATED_VERBATIM_STRING, {
213
+ illegal: /\n/,
214
+ contains: [
215
+ { begin: /\{\{/ },
216
+ { begin: /\}\}/ },
217
+ { begin: '""' },
218
+ SUBST_NO_LF
219
+ ]
220
+ });
221
+ SUBST.contains = [
222
+ INTERPOLATED_VERBATIM_STRING,
223
+ INTERPOLATED_STRING,
224
+ VERBATIM_STRING,
225
+ hljs.APOS_STRING_MODE,
226
+ hljs.QUOTE_STRING_MODE,
227
+ NUMBERS,
228
+ hljs.C_BLOCK_COMMENT_MODE
229
+ ];
230
+ SUBST_NO_LF.contains = [
231
+ INTERPOLATED_VERBATIM_STRING_NO_LF,
232
+ INTERPOLATED_STRING,
233
+ VERBATIM_STRING_NO_LF,
234
+ hljs.APOS_STRING_MODE,
235
+ hljs.QUOTE_STRING_MODE,
236
+ NUMBERS,
237
+ hljs.inherit(hljs.C_BLOCK_COMMENT_MODE, { illegal: /\n/ })
238
+ ];
239
+ const STRING = { variants: [
240
+ RAW_STRING,
241
+ INTERPOLATED_VERBATIM_STRING,
242
+ INTERPOLATED_STRING,
243
+ VERBATIM_STRING,
244
+ hljs.APOS_STRING_MODE,
245
+ hljs.QUOTE_STRING_MODE
246
+ ] };
247
+ const GENERIC_MODIFIER = {
248
+ begin: "<",
249
+ end: ">",
250
+ contains: [
251
+ { beginKeywords: "in out" },
252
+ TITLE_MODE
253
+ ]
254
+ };
255
+ const TYPE_IDENT_RE = hljs.IDENT_RE + "(<" + hljs.IDENT_RE + "(\\s*,\\s*" + hljs.IDENT_RE + ")*>)?(\\[\\])?";
256
+ const AT_IDENTIFIER = {
257
+ // prevents expressions like `@class` from incorrect flagging
258
+ // `class` as a keyword
259
+ begin: "@" + hljs.IDENT_RE,
260
+ relevance: 0
261
+ };
262
+ return {
263
+ name: "C#",
264
+ aliases: [
265
+ "cs",
266
+ "c#"
267
+ ],
268
+ keywords: KEYWORDS,
269
+ illegal: /::/,
270
+ contains: [
271
+ hljs.COMMENT(
272
+ "///",
273
+ "$",
274
+ {
275
+ returnBegin: true,
276
+ contains: [
277
+ {
278
+ className: "doctag",
279
+ variants: [
280
+ {
281
+ begin: "///",
282
+ relevance: 0
283
+ },
284
+ { begin: "<!--|-->" },
285
+ {
286
+ begin: "</?",
287
+ end: ">"
288
+ }
289
+ ]
290
+ }
291
+ ]
292
+ }
293
+ ),
294
+ hljs.C_LINE_COMMENT_MODE,
295
+ hljs.C_BLOCK_COMMENT_MODE,
296
+ {
297
+ className: "meta",
298
+ begin: "#",
299
+ end: "$",
300
+ keywords: { keyword: "if else elif endif define undef warning error line region endregion pragma checksum" }
301
+ },
302
+ STRING,
303
+ NUMBERS,
304
+ {
305
+ beginKeywords: "class interface",
306
+ relevance: 0,
307
+ end: /[{;=]/,
308
+ illegal: /[^\s:,]/,
309
+ contains: [
310
+ { beginKeywords: "where class" },
311
+ TITLE_MODE,
312
+ GENERIC_MODIFIER,
313
+ hljs.C_LINE_COMMENT_MODE,
314
+ hljs.C_BLOCK_COMMENT_MODE
315
+ ]
316
+ },
317
+ {
318
+ beginKeywords: "namespace",
319
+ relevance: 0,
320
+ end: /[{;=]/,
321
+ illegal: /[^\s:]/,
322
+ contains: [
323
+ TITLE_MODE,
324
+ hljs.C_LINE_COMMENT_MODE,
325
+ hljs.C_BLOCK_COMMENT_MODE
326
+ ]
327
+ },
328
+ {
329
+ beginKeywords: "record",
330
+ relevance: 0,
331
+ end: /[{;=]/,
332
+ illegal: /[^\s:]/,
333
+ contains: [
334
+ TITLE_MODE,
335
+ GENERIC_MODIFIER,
336
+ hljs.C_LINE_COMMENT_MODE,
337
+ hljs.C_BLOCK_COMMENT_MODE
338
+ ]
339
+ },
340
+ {
341
+ // [Attributes("")]
342
+ className: "meta",
343
+ begin: "^\\s*\\[(?=[\\w])",
344
+ excludeBegin: true,
345
+ end: "\\]",
346
+ excludeEnd: true,
347
+ contains: [
348
+ {
349
+ className: "string",
350
+ begin: /"/,
351
+ end: /"/
352
+ }
353
+ ]
354
+ },
355
+ {
356
+ // Expression keywords prevent 'keyword Name(...)' from being
357
+ // recognized as a function definition
358
+ beginKeywords: "new return throw await else",
359
+ relevance: 0
360
+ },
361
+ {
362
+ className: "function",
363
+ begin: "(" + TYPE_IDENT_RE + "\\s+)+" + hljs.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(",
364
+ returnBegin: true,
365
+ end: /\s*[{;=]/,
366
+ excludeEnd: true,
367
+ keywords: KEYWORDS,
368
+ contains: [
369
+ // prevents these from being highlighted `title`
370
+ {
371
+ beginKeywords: FUNCTION_MODIFIERS.join(" "),
372
+ relevance: 0
373
+ },
374
+ {
375
+ begin: hljs.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(",
376
+ returnBegin: true,
377
+ contains: [
378
+ hljs.TITLE_MODE,
379
+ GENERIC_MODIFIER
380
+ ],
381
+ relevance: 0
382
+ },
383
+ { match: /\(\)/ },
384
+ {
385
+ className: "params",
386
+ begin: /\(/,
387
+ end: /\)/,
388
+ excludeBegin: true,
389
+ excludeEnd: true,
390
+ keywords: KEYWORDS,
391
+ relevance: 0,
392
+ contains: [
393
+ STRING,
394
+ NUMBERS,
395
+ hljs.C_BLOCK_COMMENT_MODE
396
+ ]
397
+ },
398
+ hljs.C_LINE_COMMENT_MODE,
399
+ hljs.C_BLOCK_COMMENT_MODE
400
+ ]
401
+ },
402
+ AT_IDENTIFIER
403
+ ]
404
+ };
405
+ }
406
+ __name(csharp, "csharp");
407
+ csharp_1 = csharp;
408
+ return csharp_1;
409
+ }
410
+ __name(requireCsharp, "requireCsharp");
411
+ export {
412
+ requireCsharp as __require
413
+ };