@prokodo/ui 0.0.52 → 0.0.54

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 (204) hide show
  1. package/README.md +81 -81
  2. package/dist/_virtual/_commonjsHelpers.js +9 -0
  3. package/dist/_virtual/common.js +7 -0
  4. package/dist/components/accordion/Accordion.client.js +3 -1
  5. package/dist/components/accordion/Accordion.view.js +100 -81
  6. package/dist/components/animated/Animated.server.js +3 -1
  7. package/dist/components/animatedText/AnimatedText.client.js +1 -7
  8. package/dist/components/animatedText/AnimatedText.view.js +4 -1
  9. package/dist/components/avatar/Avatar.view.js +2 -2
  10. package/dist/components/base-link/BaseLink.view.js +1 -1
  11. package/dist/components/button/Button.server.js +1 -8
  12. package/dist/components/calendly/Calendly.client.js +63 -54
  13. package/dist/components/calendly/Calendly.server.js +3 -1
  14. package/dist/components/card/Card.client.js +2 -1
  15. package/dist/components/card/Card.effects.client.js +5 -1
  16. package/dist/components/card/Card.view.js +19 -2
  17. package/dist/components/carousel/Carousel.client.js +36 -12
  18. package/dist/components/chip/Chip.view.js +10 -6
  19. package/dist/components/datePicker/DatePicker.client.js +53 -37
  20. package/dist/components/datePicker/DatePicker.view.js +3 -1
  21. package/dist/components/dialog/Dialog.client.js +22 -14
  22. package/dist/components/dialog/Dialog.view.js +10 -2
  23. package/dist/components/drawer/Drawer.client.js +10 -2
  24. package/dist/components/drawer/Drawer.effects.client.js +7 -2
  25. package/dist/components/dynamic-list/DynamicList.client.js +8 -7
  26. package/dist/components/dynamic-list/DynamicList.server.js +10 -4
  27. package/dist/components/dynamic-list/DynamicList.view.js +1 -1
  28. package/dist/components/form/Form.client.js +16 -13
  29. package/dist/components/form/Form.view.js +8 -4
  30. package/dist/components/form/FormField.client.js +5 -5
  31. package/dist/components/form/FormField.server.js +3 -23
  32. package/dist/components/form/FormResponse.js +5 -1
  33. package/dist/components/grid/Grid.js +7 -2
  34. package/dist/components/grid/GridRow.js +12 -2
  35. package/dist/components/headline/Headline.js +3 -1
  36. package/dist/components/icon/Icon.js +8 -4
  37. package/dist/components/image-text/ImageText.js +5 -1
  38. package/dist/components/input/Input.client.js +52 -28
  39. package/dist/components/input/Input.view.js +92 -68
  40. package/dist/components/inputOTP/InputOTP.js +107 -90
  41. package/dist/components/label/Label.js +1 -8
  42. package/dist/components/link/Link.view.js +3 -1
  43. package/dist/components/list/List.js +94 -42
  44. package/dist/components/loading/Loading.client.js +15 -2
  45. package/dist/components/loading/Loading.server.js +8 -1
  46. package/dist/components/loading/Loading.view.js +30 -7
  47. package/dist/components/post-item/PostItem.client.js +17 -0
  48. package/dist/components/post-item/PostItem.js +7 -136
  49. package/dist/components/post-item/PostItem.lazy.js +14 -0
  50. package/dist/components/post-item/PostItem.module.scss.js +3 -1
  51. package/dist/components/post-item/PostItem.server.js +14 -0
  52. package/dist/components/post-item/PostItem.view.js +238 -0
  53. package/dist/components/post-item/PostItemAuthor.js +28 -22
  54. package/dist/components/post-teaser/PostTeaser.client.js +30 -0
  55. package/dist/components/post-teaser/PostTeaser.js +9 -169
  56. package/dist/components/post-teaser/PostTeaser.lazy.js +13 -0
  57. package/dist/components/post-teaser/PostTeaser.module.scss.js +3 -0
  58. package/dist/components/post-teaser/PostTeaser.server.js +22 -0
  59. package/dist/components/post-teaser/PostTeaser.view.js +252 -0
  60. package/dist/components/post-widget/PostWidget.client.js +9 -0
  61. package/dist/components/post-widget/PostWidget.js +11 -156
  62. package/dist/components/post-widget/PostWidget.lazy.js +13 -0
  63. package/dist/components/post-widget/PostWidget.module.scss.js +1 -0
  64. package/dist/components/post-widget/PostWidget.server.js +11 -0
  65. package/dist/components/post-widget/PostWidget.view.js +263 -0
  66. package/dist/components/post-widget-carousel/PostWidgetCarousel.client.js +9 -0
  67. package/dist/components/post-widget-carousel/PostWidgetCarousel.js +9 -160
  68. package/dist/components/post-widget-carousel/PostWidgetCarousel.lazy.js +13 -0
  69. package/dist/components/post-widget-carousel/PostWidgetCarousel.module.scss.js +3 -0
  70. package/dist/components/post-widget-carousel/PostWidgetCarousel.server.js +11 -0
  71. package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +244 -0
  72. package/dist/components/rich-text/RichText.client.js +182 -12
  73. package/dist/components/rich-text/RichText.module.scss.js +1 -1
  74. package/dist/components/select/Select.view.js +132 -116
  75. package/dist/components/sidenav/SideNav.client.js +19 -18
  76. package/dist/components/sidenav/SideNav.server.js +8 -1
  77. package/dist/components/sidenav/SideNav.view.js +21 -3
  78. package/dist/components/skeleton/Skeleton.effects.client.js +3 -1
  79. package/dist/components/slider/Slider.client.js +56 -38
  80. package/dist/components/slider/Slider.view.js +1 -7
  81. package/dist/components/snackbar/SnackbarProvider.client.js +21 -22
  82. package/dist/components/stepper/Stepper.client.js +1 -8
  83. package/dist/components/switch/Switch.client.js +1 -6
  84. package/dist/components/switch/Switch.server.js +1 -3
  85. package/dist/components/table/Table.js +3 -1
  86. package/dist/components/table/TableCell.js +13 -1
  87. package/dist/components/teaser/Teaser.js +1 -5
  88. package/dist/constants/project.js +1 -1
  89. package/dist/helpers/createIsland.js +3 -1
  90. package/dist/helpers/createLazyWrapper.js +3 -1
  91. package/dist/helpers/date.js +21 -0
  92. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
  93. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +90 -0
  94. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1629 -0
  95. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +407 -0
  96. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +307 -0
  97. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +556 -0
  98. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +413 -0
  99. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +950 -0
  100. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +66 -0
  101. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +167 -0
  102. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +83 -0
  103. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +129 -0
  104. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +268 -0
  105. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +715 -0
  106. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +53 -0
  107. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +268 -0
  108. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +1031 -0
  109. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +74 -0
  110. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +84 -0
  111. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +245 -0
  112. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +256 -0
  113. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +498 -0
  114. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +59 -0
  115. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +614 -0
  116. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +25 -0
  117. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +38 -0
  118. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +428 -0
  119. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +223 -0
  120. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +426 -0
  121. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +326 -0
  122. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +935 -0
  123. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +37 -0
  124. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +658 -0
  125. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +893 -0
  126. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +829 -0
  127. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +146 -0
  128. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +134 -0
  129. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +239 -0
  130. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +214 -0
  131. package/dist/node_modules/.pnpm/marked-highlight@2.2.2_marked@15.0.12/node_modules/marked-highlight/src/index.js +93 -0
  132. package/dist/tsconfig.build.tsbuildinfo +1 -1
  133. package/dist/types/components/accordion/Accordion.model.d.ts +1 -1
  134. package/dist/types/components/animated/Animated.client.d.ts +2 -2
  135. package/dist/types/components/animated/Animated.model.d.ts +1 -1
  136. package/dist/types/components/button/Button.client.d.ts +1 -1
  137. package/dist/types/components/button/Button.d.ts +1 -1
  138. package/dist/types/components/button/Button.lazy.d.ts +1 -1
  139. package/dist/types/components/button/Button.server.d.ts +1 -1
  140. package/dist/types/components/button/Button.view.d.ts +1 -1
  141. package/dist/types/components/card/Card.effects.client.d.ts +1 -1
  142. package/dist/types/components/card/index.d.ts +1 -1
  143. package/dist/types/components/carousel/Carousel.d.ts +3 -0
  144. package/dist/types/components/carousel/Carousel.lazy.d.ts +3 -0
  145. package/dist/types/components/carousel/Carousel.model.d.ts +4 -0
  146. package/dist/types/components/dialog/Dialog.client.d.ts +1 -1
  147. package/dist/types/components/dialog/Dialog.model.d.ts +4 -4
  148. package/dist/types/components/dialog/Dialog.view.d.ts +2 -2
  149. package/dist/types/components/drawer/Drawer.client.d.ts +1 -1
  150. package/dist/types/components/drawer/Drawer.d.ts +1 -1
  151. package/dist/types/components/drawer/Drawer.effects.client.d.ts +1 -1
  152. package/dist/types/components/drawer/Drawer.lazy.d.ts +1 -1
  153. package/dist/types/components/drawer/Drawer.model.d.ts +6 -6
  154. package/dist/types/components/drawer/Drawer.server.d.ts +1 -1
  155. package/dist/types/components/drawer/Drawer.view.d.ts +2 -2
  156. package/dist/types/components/drawer/index.d.ts +1 -1
  157. package/dist/types/components/icon/IconList.d.ts +1 -1
  158. package/dist/types/components/icon/index.d.ts +1 -1
  159. package/dist/types/components/image/Image.model.d.ts +2 -2
  160. package/dist/types/components/link/Link.d.ts +1 -1
  161. package/dist/types/components/link/Link.model.d.ts +1 -1
  162. package/dist/types/components/link/Link.server.d.ts +1 -1
  163. package/dist/types/components/loading/index.d.ts +1 -1
  164. package/dist/types/components/post-item/PostItem.client.d.ts +4 -0
  165. package/dist/types/components/post-item/PostItem.d.ts +3 -2
  166. package/dist/types/components/post-item/PostItem.lazy.d.ts +5 -0
  167. package/dist/types/components/post-item/PostItem.model.d.ts +46 -6
  168. package/dist/types/components/post-item/PostItem.server.d.ts +3 -0
  169. package/dist/types/components/post-item/PostItem.view.d.ts +3 -0
  170. package/dist/types/components/post-item/PostItemAuthor.model.d.ts +5 -8
  171. package/dist/types/components/post-item/index.d.ts +2 -2
  172. package/dist/types/components/post-teaser/PostTeaser.client.d.ts +4 -0
  173. package/dist/types/components/post-teaser/PostTeaser.d.ts +3 -2
  174. package/dist/types/components/post-teaser/PostTeaser.lazy.d.ts +5 -0
  175. package/dist/types/components/post-teaser/PostTeaser.model.d.ts +49 -3
  176. package/dist/types/components/post-teaser/PostTeaser.server.d.ts +3 -0
  177. package/dist/types/components/post-teaser/PostTeaser.view.d.ts +3 -0
  178. package/dist/types/components/post-teaser/index.d.ts +1 -1
  179. package/dist/types/components/post-widget/PostWidget.client.d.ts +4 -0
  180. package/dist/types/components/post-widget/PostWidget.d.ts +13 -3
  181. package/dist/types/components/post-widget/PostWidget.lazy.d.ts +14 -0
  182. package/dist/types/components/post-widget/PostWidget.model.d.ts +53 -3
  183. package/dist/types/components/post-widget/PostWidget.server.d.ts +3 -0
  184. package/dist/types/components/post-widget/PostWidget.view.d.ts +3 -0
  185. package/dist/types/components/post-widget/index.d.ts +1 -1
  186. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.client.d.ts +3 -0
  187. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.d.ts +11 -3
  188. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.lazy.d.ts +12 -0
  189. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.model.d.ts +39 -0
  190. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.server.d.ts +3 -0
  191. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.view.d.ts +3 -0
  192. package/dist/types/components/post-widget-carousel/index.d.ts +1 -1
  193. package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
  194. package/dist/types/components/rich-text/RichText.d.ts +5 -0
  195. package/dist/types/components/rich-text/RichText.lazy.d.ts +5 -0
  196. package/dist/types/components/rich-text/RichText.model.d.ts +5 -0
  197. package/dist/types/components/sidenav/index.d.ts +1 -1
  198. package/dist/types/components/skeleton/Skeleton.effects.client.d.ts +2 -2
  199. package/dist/types/helpers/createIsland.d.ts +1 -1
  200. package/dist/types/helpers/createLazyWrapper.d.ts +1 -1
  201. package/dist/types/helpers/date.d.ts +5 -0
  202. package/dist/ui.css +154 -65
  203. package/package.json +5 -2
  204. package/dist/helpers/calculation.js +0 -6
@@ -0,0 +1,74 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var lua_1;
4
+ var hasRequiredLua;
5
+ function requireLua() {
6
+ if (hasRequiredLua) return lua_1;
7
+ hasRequiredLua = 1;
8
+ function lua(hljs) {
9
+ const OPENING_LONG_BRACKET = "\\[=*\\[";
10
+ const CLOSING_LONG_BRACKET = "\\]=*\\]";
11
+ const LONG_BRACKETS = {
12
+ begin: OPENING_LONG_BRACKET,
13
+ end: CLOSING_LONG_BRACKET,
14
+ contains: ["self"]
15
+ };
16
+ const COMMENTS = [
17
+ hljs.COMMENT("--(?!" + OPENING_LONG_BRACKET + ")", "$"),
18
+ hljs.COMMENT(
19
+ "--" + OPENING_LONG_BRACKET,
20
+ CLOSING_LONG_BRACKET,
21
+ {
22
+ contains: [LONG_BRACKETS],
23
+ relevance: 10
24
+ }
25
+ )
26
+ ];
27
+ return {
28
+ name: "Lua",
29
+ aliases: ["pluto"],
30
+ keywords: {
31
+ $pattern: hljs.UNDERSCORE_IDENT_RE,
32
+ literal: "true false nil",
33
+ keyword: "and break do else elseif end for goto if in local not or repeat return then until while",
34
+ built_in: (
35
+ // Metatags and globals:
36
+ "_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"
37
+ )
38
+ },
39
+ contains: COMMENTS.concat([
40
+ {
41
+ className: "function",
42
+ beginKeywords: "function",
43
+ end: "\\)",
44
+ contains: [
45
+ hljs.inherit(hljs.TITLE_MODE, { begin: "([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*" }),
46
+ {
47
+ className: "params",
48
+ begin: "\\(",
49
+ endsWithParent: true,
50
+ contains: COMMENTS
51
+ }
52
+ ].concat(COMMENTS)
53
+ },
54
+ hljs.C_NUMBER_MODE,
55
+ hljs.APOS_STRING_MODE,
56
+ hljs.QUOTE_STRING_MODE,
57
+ {
58
+ className: "string",
59
+ begin: OPENING_LONG_BRACKET,
60
+ end: CLOSING_LONG_BRACKET,
61
+ contains: [LONG_BRACKETS],
62
+ relevance: 5
63
+ }
64
+ ])
65
+ };
66
+ }
67
+ __name(lua, "lua");
68
+ lua_1 = lua;
69
+ return lua_1;
70
+ }
71
+ __name(requireLua, "requireLua");
72
+ export {
73
+ requireLua as __require
74
+ };
@@ -0,0 +1,84 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var makefile_1;
4
+ var hasRequiredMakefile;
5
+ function requireMakefile() {
6
+ if (hasRequiredMakefile) return makefile_1;
7
+ hasRequiredMakefile = 1;
8
+ function makefile(hljs) {
9
+ const VARIABLE = {
10
+ className: "variable",
11
+ variants: [
12
+ {
13
+ begin: "\\$\\(" + hljs.UNDERSCORE_IDENT_RE + "\\)",
14
+ contains: [hljs.BACKSLASH_ESCAPE]
15
+ },
16
+ { begin: /\$[@%<?\^\+\*]/ }
17
+ ]
18
+ };
19
+ const QUOTE_STRING = {
20
+ className: "string",
21
+ begin: /"/,
22
+ end: /"/,
23
+ contains: [
24
+ hljs.BACKSLASH_ESCAPE,
25
+ VARIABLE
26
+ ]
27
+ };
28
+ const FUNC = {
29
+ className: "variable",
30
+ begin: /\$\([\w-]+\s/,
31
+ end: /\)/,
32
+ keywords: { built_in: "subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value" },
33
+ contains: [
34
+ VARIABLE,
35
+ QUOTE_STRING
36
+ // Added QUOTE_STRING as they can be a part of functions
37
+ ]
38
+ };
39
+ const ASSIGNMENT = { begin: "^" + hljs.UNDERSCORE_IDENT_RE + "\\s*(?=[:+?]?=)" };
40
+ const META = {
41
+ className: "meta",
42
+ begin: /^\.PHONY:/,
43
+ end: /$/,
44
+ keywords: {
45
+ $pattern: /[\.\w]+/,
46
+ keyword: ".PHONY"
47
+ }
48
+ };
49
+ const TARGET = {
50
+ className: "section",
51
+ begin: /^[^\s]+:/,
52
+ end: /$/,
53
+ contains: [VARIABLE]
54
+ };
55
+ return {
56
+ name: "Makefile",
57
+ aliases: [
58
+ "mk",
59
+ "mak",
60
+ "make"
61
+ ],
62
+ keywords: {
63
+ $pattern: /[\w-]+/,
64
+ keyword: "define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"
65
+ },
66
+ contains: [
67
+ hljs.HASH_COMMENT_MODE,
68
+ VARIABLE,
69
+ QUOTE_STRING,
70
+ FUNC,
71
+ ASSIGNMENT,
72
+ META,
73
+ TARGET
74
+ ]
75
+ };
76
+ }
77
+ __name(makefile, "makefile");
78
+ makefile_1 = makefile;
79
+ return makefile_1;
80
+ }
81
+ __name(requireMakefile, "requireMakefile");
82
+ export {
83
+ requireMakefile as __require
84
+ };
@@ -0,0 +1,245 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var markdown_1;
4
+ var hasRequiredMarkdown;
5
+ function requireMarkdown() {
6
+ if (hasRequiredMarkdown) return markdown_1;
7
+ hasRequiredMarkdown = 1;
8
+ function markdown(hljs) {
9
+ const regex = hljs.regex;
10
+ const INLINE_HTML = {
11
+ begin: /<\/?[A-Za-z_]/,
12
+ end: ">",
13
+ subLanguage: "xml",
14
+ relevance: 0
15
+ };
16
+ const HORIZONTAL_RULE = {
17
+ begin: "^[-\\*]{3,}",
18
+ end: "$"
19
+ };
20
+ const CODE = {
21
+ className: "code",
22
+ variants: [
23
+ // TODO: fix to allow these to work with sublanguage also
24
+ { begin: "(`{3,})[^`](.|\\n)*?\\1`*[ ]*" },
25
+ { begin: "(~{3,})[^~](.|\\n)*?\\1~*[ ]*" },
26
+ // needed to allow markdown as a sublanguage to work
27
+ {
28
+ begin: "```",
29
+ end: "```+[ ]*$"
30
+ },
31
+ {
32
+ begin: "~~~",
33
+ end: "~~~+[ ]*$"
34
+ },
35
+ { begin: "`.+?`" },
36
+ {
37
+ begin: "(?=^( {4}|\\t))",
38
+ // use contains to gobble up multiple lines to allow the block to be whatever size
39
+ // but only have a single open/close tag vs one per line
40
+ contains: [
41
+ {
42
+ begin: "^( {4}|\\t)",
43
+ end: "(\\n)$"
44
+ }
45
+ ],
46
+ relevance: 0
47
+ }
48
+ ]
49
+ };
50
+ const LIST = {
51
+ className: "bullet",
52
+ begin: "^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",
53
+ end: "\\s+",
54
+ excludeEnd: true
55
+ };
56
+ const LINK_REFERENCE = {
57
+ begin: /^\[[^\n]+\]:/,
58
+ returnBegin: true,
59
+ contains: [
60
+ {
61
+ className: "symbol",
62
+ begin: /\[/,
63
+ end: /\]/,
64
+ excludeBegin: true,
65
+ excludeEnd: true
66
+ },
67
+ {
68
+ className: "link",
69
+ begin: /:\s*/,
70
+ end: /$/,
71
+ excludeBegin: true
72
+ }
73
+ ]
74
+ };
75
+ const URL_SCHEME = /[A-Za-z][A-Za-z0-9+.-]*/;
76
+ const LINK = {
77
+ variants: [
78
+ // too much like nested array access in so many languages
79
+ // to have any real relevance
80
+ {
81
+ begin: /\[.+?\]\[.*?\]/,
82
+ relevance: 0
83
+ },
84
+ // popular internet URLs
85
+ {
86
+ begin: /\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,
87
+ relevance: 2
88
+ },
89
+ {
90
+ begin: regex.concat(/\[.+?\]\(/, URL_SCHEME, /:\/\/.*?\)/),
91
+ relevance: 2
92
+ },
93
+ // relative urls
94
+ {
95
+ begin: /\[.+?\]\([./?&#].*?\)/,
96
+ relevance: 1
97
+ },
98
+ // whatever else, lower relevance (might not be a link at all)
99
+ {
100
+ begin: /\[.*?\]\(.*?\)/,
101
+ relevance: 0
102
+ }
103
+ ],
104
+ returnBegin: true,
105
+ contains: [
106
+ {
107
+ // empty strings for alt or link text
108
+ match: /\[(?=\])/
109
+ },
110
+ {
111
+ className: "string",
112
+ relevance: 0,
113
+ begin: "\\[",
114
+ end: "\\]",
115
+ excludeBegin: true,
116
+ returnEnd: true
117
+ },
118
+ {
119
+ className: "link",
120
+ relevance: 0,
121
+ begin: "\\]\\(",
122
+ end: "\\)",
123
+ excludeBegin: true,
124
+ excludeEnd: true
125
+ },
126
+ {
127
+ className: "symbol",
128
+ relevance: 0,
129
+ begin: "\\]\\[",
130
+ end: "\\]",
131
+ excludeBegin: true,
132
+ excludeEnd: true
133
+ }
134
+ ]
135
+ };
136
+ const BOLD = {
137
+ className: "strong",
138
+ contains: [],
139
+ // defined later
140
+ variants: [
141
+ {
142
+ begin: /_{2}(?!\s)/,
143
+ end: /_{2}/
144
+ },
145
+ {
146
+ begin: /\*{2}(?!\s)/,
147
+ end: /\*{2}/
148
+ }
149
+ ]
150
+ };
151
+ const ITALIC = {
152
+ className: "emphasis",
153
+ contains: [],
154
+ // defined later
155
+ variants: [
156
+ {
157
+ begin: /\*(?![*\s])/,
158
+ end: /\*/
159
+ },
160
+ {
161
+ begin: /_(?![_\s])/,
162
+ end: /_/,
163
+ relevance: 0
164
+ }
165
+ ]
166
+ };
167
+ const BOLD_WITHOUT_ITALIC = hljs.inherit(BOLD, { contains: [] });
168
+ const ITALIC_WITHOUT_BOLD = hljs.inherit(ITALIC, { contains: [] });
169
+ BOLD.contains.push(ITALIC_WITHOUT_BOLD);
170
+ ITALIC.contains.push(BOLD_WITHOUT_ITALIC);
171
+ let CONTAINABLE = [
172
+ INLINE_HTML,
173
+ LINK
174
+ ];
175
+ [
176
+ BOLD,
177
+ ITALIC,
178
+ BOLD_WITHOUT_ITALIC,
179
+ ITALIC_WITHOUT_BOLD
180
+ ].forEach((m) => {
181
+ m.contains = m.contains.concat(CONTAINABLE);
182
+ });
183
+ CONTAINABLE = CONTAINABLE.concat(BOLD, ITALIC);
184
+ const HEADER = {
185
+ className: "section",
186
+ variants: [
187
+ {
188
+ begin: "^#{1,6}",
189
+ end: "$",
190
+ contains: CONTAINABLE
191
+ },
192
+ {
193
+ begin: "(?=^.+?\\n[=-]{2,}$)",
194
+ contains: [
195
+ { begin: "^[=-]*$" },
196
+ {
197
+ begin: "^",
198
+ end: "\\n",
199
+ contains: CONTAINABLE
200
+ }
201
+ ]
202
+ }
203
+ ]
204
+ };
205
+ const BLOCKQUOTE = {
206
+ className: "quote",
207
+ begin: "^>\\s+",
208
+ contains: CONTAINABLE,
209
+ end: "$"
210
+ };
211
+ const ENTITY = {
212
+ //https://spec.commonmark.org/0.31.2/#entity-references
213
+ scope: "literal",
214
+ match: /&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/
215
+ };
216
+ return {
217
+ name: "Markdown",
218
+ aliases: [
219
+ "md",
220
+ "mkdown",
221
+ "mkd"
222
+ ],
223
+ contains: [
224
+ HEADER,
225
+ INLINE_HTML,
226
+ LIST,
227
+ BOLD,
228
+ ITALIC,
229
+ BLOCKQUOTE,
230
+ CODE,
231
+ HORIZONTAL_RULE,
232
+ LINK,
233
+ LINK_REFERENCE,
234
+ ENTITY
235
+ ]
236
+ };
237
+ }
238
+ __name(markdown, "markdown");
239
+ markdown_1 = markdown;
240
+ return markdown_1;
241
+ }
242
+ __name(requireMarkdown, "requireMarkdown");
243
+ export {
244
+ requireMarkdown as __require
245
+ };
@@ -0,0 +1,256 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var objectivec_1;
4
+ var hasRequiredObjectivec;
5
+ function requireObjectivec() {
6
+ if (hasRequiredObjectivec) return objectivec_1;
7
+ hasRequiredObjectivec = 1;
8
+ function objectivec(hljs) {
9
+ const API_CLASS = {
10
+ className: "built_in",
11
+ begin: "\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"
12
+ };
13
+ const IDENTIFIER_RE = /[a-zA-Z@][a-zA-Z0-9_]*/;
14
+ const TYPES = [
15
+ "int",
16
+ "float",
17
+ "char",
18
+ "unsigned",
19
+ "signed",
20
+ "short",
21
+ "long",
22
+ "double",
23
+ "wchar_t",
24
+ "unichar",
25
+ "void",
26
+ "bool",
27
+ "BOOL",
28
+ "id|0",
29
+ "_Bool"
30
+ ];
31
+ const KWS = [
32
+ "while",
33
+ "export",
34
+ "sizeof",
35
+ "typedef",
36
+ "const",
37
+ "struct",
38
+ "for",
39
+ "union",
40
+ "volatile",
41
+ "static",
42
+ "mutable",
43
+ "if",
44
+ "do",
45
+ "return",
46
+ "goto",
47
+ "enum",
48
+ "else",
49
+ "break",
50
+ "extern",
51
+ "asm",
52
+ "case",
53
+ "default",
54
+ "register",
55
+ "explicit",
56
+ "typename",
57
+ "switch",
58
+ "continue",
59
+ "inline",
60
+ "readonly",
61
+ "assign",
62
+ "readwrite",
63
+ "self",
64
+ "@synchronized",
65
+ "id",
66
+ "typeof",
67
+ "nonatomic",
68
+ "IBOutlet",
69
+ "IBAction",
70
+ "strong",
71
+ "weak",
72
+ "copy",
73
+ "in",
74
+ "out",
75
+ "inout",
76
+ "bycopy",
77
+ "byref",
78
+ "oneway",
79
+ "__strong",
80
+ "__weak",
81
+ "__block",
82
+ "__autoreleasing",
83
+ "@private",
84
+ "@protected",
85
+ "@public",
86
+ "@try",
87
+ "@property",
88
+ "@end",
89
+ "@throw",
90
+ "@catch",
91
+ "@finally",
92
+ "@autoreleasepool",
93
+ "@synthesize",
94
+ "@dynamic",
95
+ "@selector",
96
+ "@optional",
97
+ "@required",
98
+ "@encode",
99
+ "@package",
100
+ "@import",
101
+ "@defs",
102
+ "@compatibility_alias",
103
+ "__bridge",
104
+ "__bridge_transfer",
105
+ "__bridge_retained",
106
+ "__bridge_retain",
107
+ "__covariant",
108
+ "__contravariant",
109
+ "__kindof",
110
+ "_Nonnull",
111
+ "_Nullable",
112
+ "_Null_unspecified",
113
+ "__FUNCTION__",
114
+ "__PRETTY_FUNCTION__",
115
+ "__attribute__",
116
+ "getter",
117
+ "setter",
118
+ "retain",
119
+ "unsafe_unretained",
120
+ "nonnull",
121
+ "nullable",
122
+ "null_unspecified",
123
+ "null_resettable",
124
+ "class",
125
+ "instancetype",
126
+ "NS_DESIGNATED_INITIALIZER",
127
+ "NS_UNAVAILABLE",
128
+ "NS_REQUIRES_SUPER",
129
+ "NS_RETURNS_INNER_POINTER",
130
+ "NS_INLINE",
131
+ "NS_AVAILABLE",
132
+ "NS_DEPRECATED",
133
+ "NS_ENUM",
134
+ "NS_OPTIONS",
135
+ "NS_SWIFT_UNAVAILABLE",
136
+ "NS_ASSUME_NONNULL_BEGIN",
137
+ "NS_ASSUME_NONNULL_END",
138
+ "NS_REFINED_FOR_SWIFT",
139
+ "NS_SWIFT_NAME",
140
+ "NS_SWIFT_NOTHROW",
141
+ "NS_DURING",
142
+ "NS_HANDLER",
143
+ "NS_ENDHANDLER",
144
+ "NS_VALUERETURN",
145
+ "NS_VOIDRETURN"
146
+ ];
147
+ const LITERALS = [
148
+ "false",
149
+ "true",
150
+ "FALSE",
151
+ "TRUE",
152
+ "nil",
153
+ "YES",
154
+ "NO",
155
+ "NULL"
156
+ ];
157
+ const BUILT_INS = [
158
+ "dispatch_once_t",
159
+ "dispatch_queue_t",
160
+ "dispatch_sync",
161
+ "dispatch_async",
162
+ "dispatch_once"
163
+ ];
164
+ const KEYWORDS = {
165
+ "variable.language": [
166
+ "this",
167
+ "super"
168
+ ],
169
+ $pattern: IDENTIFIER_RE,
170
+ keyword: KWS,
171
+ literal: LITERALS,
172
+ built_in: BUILT_INS,
173
+ type: TYPES
174
+ };
175
+ const CLASS_KEYWORDS = {
176
+ $pattern: IDENTIFIER_RE,
177
+ keyword: [
178
+ "@interface",
179
+ "@class",
180
+ "@protocol",
181
+ "@implementation"
182
+ ]
183
+ };
184
+ return {
185
+ name: "Objective-C",
186
+ aliases: [
187
+ "mm",
188
+ "objc",
189
+ "obj-c",
190
+ "obj-c++",
191
+ "objective-c++"
192
+ ],
193
+ keywords: KEYWORDS,
194
+ illegal: "</",
195
+ contains: [
196
+ API_CLASS,
197
+ hljs.C_LINE_COMMENT_MODE,
198
+ hljs.C_BLOCK_COMMENT_MODE,
199
+ hljs.C_NUMBER_MODE,
200
+ hljs.QUOTE_STRING_MODE,
201
+ hljs.APOS_STRING_MODE,
202
+ {
203
+ className: "string",
204
+ variants: [
205
+ {
206
+ begin: '@"',
207
+ end: '"',
208
+ illegal: "\\n",
209
+ contains: [hljs.BACKSLASH_ESCAPE]
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ className: "meta",
215
+ begin: /#\s*[a-z]+\b/,
216
+ end: /$/,
217
+ keywords: { keyword: "if else elif endif define undef warning error line pragma ifdef ifndef include" },
218
+ contains: [
219
+ {
220
+ begin: /\\\n/,
221
+ relevance: 0
222
+ },
223
+ hljs.inherit(hljs.QUOTE_STRING_MODE, { className: "string" }),
224
+ {
225
+ className: "string",
226
+ begin: /<.*?>/,
227
+ end: /$/,
228
+ illegal: "\\n"
229
+ },
230
+ hljs.C_LINE_COMMENT_MODE,
231
+ hljs.C_BLOCK_COMMENT_MODE
232
+ ]
233
+ },
234
+ {
235
+ className: "class",
236
+ begin: "(" + CLASS_KEYWORDS.keyword.join("|") + ")\\b",
237
+ end: /(\{|$)/,
238
+ excludeEnd: true,
239
+ keywords: CLASS_KEYWORDS,
240
+ contains: [hljs.UNDERSCORE_TITLE_MODE]
241
+ },
242
+ {
243
+ begin: "\\." + hljs.UNDERSCORE_IDENT_RE,
244
+ relevance: 0
245
+ }
246
+ ]
247
+ };
248
+ }
249
+ __name(objectivec, "objectivec");
250
+ objectivec_1 = objectivec;
251
+ return objectivec_1;
252
+ }
253
+ __name(requireObjectivec, "requireObjectivec");
254
+ export {
255
+ requireObjectivec as __require
256
+ };