@limetech/kompendium 1.1.1

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 (348) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +313 -0
  3. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +13 -0
  4. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js.map +1 -0
  5. package/dist/cjs/anchor-scroll-BmplAyR0.js +69 -0
  6. package/dist/cjs/anchor-scroll-BmplAyR0.js.map +1 -0
  7. package/dist/cjs/index-DYiJ6dQL.js +1866 -0
  8. package/dist/cjs/index-DYiJ6dQL.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +3 -0
  10. package/dist/cjs/index.cjs.js.map +1 -0
  11. package/dist/cjs/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.cjs.js.map +1 -0
  12. package/dist/cjs/kompendium-app_7.cjs.entry.js +2924 -0
  13. package/dist/cjs/kompendium-code.cjs.entry.js +2724 -0
  14. package/dist/cjs/kompendium-code.entry.cjs.js.map +1 -0
  15. package/dist/cjs/kompendium-component.cjs.entry.js +207 -0
  16. package/dist/cjs/kompendium-component.entry.cjs.js.map +1 -0
  17. package/dist/cjs/kompendium-debug.cjs.entry.js +47 -0
  18. package/dist/cjs/kompendium-debug.entry.cjs.js.map +1 -0
  19. package/dist/cjs/kompendium-example-code.cjs.entry.js +20 -0
  20. package/dist/cjs/kompendium-example-code.entry.cjs.js.map +1 -0
  21. package/dist/cjs/kompendium-example-markdown.cjs.entry.js +165 -0
  22. package/dist/cjs/kompendium-example-markdown.entry.cjs.js.map +1 -0
  23. package/dist/cjs/kompendium-guide.cjs.entry.js +33 -0
  24. package/dist/cjs/kompendium-guide.entry.cjs.js.map +1 -0
  25. package/dist/cjs/kompendium-markdown.cjs.entry.js +48923 -0
  26. package/dist/cjs/kompendium-markdown.entry.cjs.js.map +1 -0
  27. package/dist/cjs/kompendium-playground.cjs.entry.js +89 -0
  28. package/dist/cjs/kompendium-playground.entry.cjs.js.map +1 -0
  29. package/dist/cjs/kompendium-proplist.kompendium-taglist.entry.cjs.js.map +1 -0
  30. package/dist/cjs/kompendium-proplist_2.cjs.entry.js +49 -0
  31. package/dist/cjs/kompendium-type.cjs.entry.js +83 -0
  32. package/dist/cjs/kompendium-type.entry.cjs.js.map +1 -0
  33. package/dist/cjs/kompendium.cjs.js +25 -0
  34. package/dist/cjs/kompendium.cjs.js.map +1 -0
  35. package/dist/cjs/loader.cjs.js +13 -0
  36. package/dist/cjs/loader.cjs.js.map +1 -0
  37. package/dist/cjs/markdown-types-B884tLd-.js +15 -0
  38. package/dist/cjs/markdown-types-B884tLd-.js.map +1 -0
  39. package/dist/cjs/methods-DoA78dOH.js +97 -0
  40. package/dist/cjs/methods-DoA78dOH.js.map +1 -0
  41. package/dist/cjs/types-SjA7Kcy_.js +8 -0
  42. package/dist/cjs/types-SjA7Kcy_.js.map +1 -0
  43. package/dist/collection/assets/favicon.svg +65 -0
  44. package/dist/collection/assets/icons/bookmark-fill.svg +1 -0
  45. package/dist/collection/assets/icons/danger.svg +1 -0
  46. package/dist/collection/assets/icons/debug.svg +1 -0
  47. package/dist/collection/assets/icons/important.svg +1 -0
  48. package/dist/collection/assets/icons/info.svg +1 -0
  49. package/dist/collection/assets/icons/logo.svg +1 -0
  50. package/dist/collection/assets/icons/note.svg +1 -0
  51. package/dist/collection/assets/icons/search.svg +1 -0
  52. package/dist/collection/assets/icons/tip.svg +1 -0
  53. package/dist/collection/assets/icons/warning.svg +1 -0
  54. package/dist/collection/assets/logotype.svg +64 -0
  55. package/dist/collection/collection-manifest.json +35 -0
  56. package/dist/collection/components/anchor-scroll.js +61 -0
  57. package/dist/collection/components/anchor-scroll.js.map +1 -0
  58. package/dist/collection/components/app/app.css +125 -0
  59. package/dist/collection/components/app/app.js +149 -0
  60. package/dist/collection/components/app/app.js.map +1 -0
  61. package/dist/collection/components/code/code.css +250 -0
  62. package/dist/collection/components/code/code.js +82 -0
  63. package/dist/collection/components/code/code.js.map +1 -0
  64. package/dist/collection/components/code/examples/code.js +14 -0
  65. package/dist/collection/components/code/examples/code.js.map +1 -0
  66. package/dist/collection/components/component/component.css +383 -0
  67. package/dist/collection/components/component/component.js +191 -0
  68. package/dist/collection/components/component/component.js.map +1 -0
  69. package/dist/collection/components/component/templates/events.js +32 -0
  70. package/dist/collection/components/component/templates/events.js.map +1 -0
  71. package/dist/collection/components/component/templates/examples.js +17 -0
  72. package/dist/collection/components/component/templates/examples.js.map +1 -0
  73. package/dist/collection/components/component/templates/methods.js +54 -0
  74. package/dist/collection/components/component/templates/methods.js.map +1 -0
  75. package/dist/collection/components/component/templates/props.js +36 -0
  76. package/dist/collection/components/component/templates/props.js.map +1 -0
  77. package/dist/collection/components/component/templates/slots.js +14 -0
  78. package/dist/collection/components/component/templates/slots.js.map +1 -0
  79. package/dist/collection/components/component/templates/style.js +14 -0
  80. package/dist/collection/components/component/templates/style.js.map +1 -0
  81. package/dist/collection/components/darkmode-switch/darkmode-switch.css +141 -0
  82. package/dist/collection/components/darkmode-switch/darkmode-switch.js +90 -0
  83. package/dist/collection/components/darkmode-switch/darkmode-switch.js.map +1 -0
  84. package/dist/collection/components/darkmode-switch/types.js +2 -0
  85. package/dist/collection/components/darkmode-switch/types.js.map +1 -0
  86. package/dist/collection/components/debug/debug.js +146 -0
  87. package/dist/collection/components/debug/debug.js.map +1 -0
  88. package/dist/collection/components/guide/guide.js +61 -0
  89. package/dist/collection/components/guide/guide.js.map +1 -0
  90. package/dist/collection/components/markdown/examples/markdown-example.js +150 -0
  91. package/dist/collection/components/markdown/examples/markdown-example.js.map +1 -0
  92. package/dist/collection/components/markdown/examples/markdown.js +14 -0
  93. package/dist/collection/components/markdown/examples/markdown.js.map +1 -0
  94. package/dist/collection/components/markdown/markdown-types.js +8 -0
  95. package/dist/collection/components/markdown/markdown-types.js.map +1 -0
  96. package/dist/collection/components/markdown/markdown.css +660 -0
  97. package/dist/collection/components/markdown/markdown.js +83 -0
  98. package/dist/collection/components/markdown/markdown.js.map +1 -0
  99. package/dist/collection/components/navigation/navigation.css +403 -0
  100. package/dist/collection/components/navigation/navigation.js +184 -0
  101. package/dist/collection/components/navigation/navigation.js.map +1 -0
  102. package/dist/collection/components/playground/playground.css +198 -0
  103. package/dist/collection/components/playground/playground.js +174 -0
  104. package/dist/collection/components/playground/playground.js.map +1 -0
  105. package/dist/collection/components/playground/playground.types.js +2 -0
  106. package/dist/collection/components/playground/playground.types.js.map +1 -0
  107. package/dist/collection/components/proplist/proplist.css +334 -0
  108. package/dist/collection/components/proplist/proplist.js +53 -0
  109. package/dist/collection/components/proplist/proplist.js.map +1 -0
  110. package/dist/collection/components/search/search.css +183 -0
  111. package/dist/collection/components/search/search.js +76 -0
  112. package/dist/collection/components/search/search.js.map +1 -0
  113. package/dist/collection/components/taglist/taglist.css +58 -0
  114. package/dist/collection/components/taglist/taglist.js +82 -0
  115. package/dist/collection/components/taglist/taglist.js.map +1 -0
  116. package/dist/collection/components/type/templates/alias.js +11 -0
  117. package/dist/collection/components/type/templates/alias.js.map +1 -0
  118. package/dist/collection/components/type/templates/enum.js +25 -0
  119. package/dist/collection/components/type/templates/enum.js.map +1 -0
  120. package/dist/collection/components/type/templates/interface.js +13 -0
  121. package/dist/collection/components/type/templates/interface.js.map +1 -0
  122. package/dist/collection/components/type/type.js +97 -0
  123. package/dist/collection/components/type/type.js.map +1 -0
  124. package/dist/collection/index.js +4 -0
  125. package/dist/collection/index.js.map +1 -0
  126. package/dist/collection/kompendium/config.js +7 -0
  127. package/dist/collection/kompendium/config.js.map +1 -0
  128. package/dist/collection/kompendium/filesystem.js +9 -0
  129. package/dist/collection/kompendium/filesystem.js.map +1 -0
  130. package/dist/collection/kompendium/generator.js +217 -0
  131. package/dist/collection/kompendium/generator.js.map +1 -0
  132. package/dist/collection/kompendium/guides.js +30 -0
  133. package/dist/collection/kompendium/guides.js.map +1 -0
  134. package/dist/collection/kompendium/index.js +2 -0
  135. package/dist/collection/kompendium/index.js.map +1 -0
  136. package/dist/collection/kompendium/markdown-admonitions.js +82 -0
  137. package/dist/collection/kompendium/markdown-admonitions.js.map +1 -0
  138. package/dist/collection/kompendium/markdown-code.js +40 -0
  139. package/dist/collection/kompendium/markdown-code.js.map +1 -0
  140. package/dist/collection/kompendium/markdown-frontmatter.js +12 -0
  141. package/dist/collection/kompendium/markdown-frontmatter.js.map +1 -0
  142. package/dist/collection/kompendium/markdown-nodes.js +10 -0
  143. package/dist/collection/kompendium/markdown-nodes.js.map +1 -0
  144. package/dist/collection/kompendium/markdown-typelinks.js +115 -0
  145. package/dist/collection/kompendium/markdown-typelinks.js.map +1 -0
  146. package/dist/collection/kompendium/markdown.js +35 -0
  147. package/dist/collection/kompendium/markdown.js.map +1 -0
  148. package/dist/collection/kompendium/menu.js +149 -0
  149. package/dist/collection/kompendium/menu.js.map +1 -0
  150. package/dist/collection/kompendium/schema.js +167 -0
  151. package/dist/collection/kompendium/schema.js.map +1 -0
  152. package/dist/collection/kompendium/search.js +144 -0
  153. package/dist/collection/kompendium/search.js.map +1 -0
  154. package/dist/collection/kompendium/source.js +81 -0
  155. package/dist/collection/kompendium/source.js.map +1 -0
  156. package/dist/collection/kompendium/test/fixtures/basic.js +48 -0
  157. package/dist/collection/kompendium/test/fixtures/basic.js.map +1 -0
  158. package/dist/collection/kompendium/test/fixtures/filtering/example-type.js +2 -0
  159. package/dist/collection/kompendium/test/fixtures/filtering/example-type.js.map +1 -0
  160. package/dist/collection/kompendium/test/fixtures/filtering/node-modules-type.js +2 -0
  161. package/dist/collection/kompendium/test/fixtures/filtering/node-modules-type.js.map +1 -0
  162. package/dist/collection/kompendium/test/fixtures/filtering/private-types.js +2 -0
  163. package/dist/collection/kompendium/test/fixtures/filtering/private-types.js.map +1 -0
  164. package/dist/collection/kompendium/test/fixtures/filtering/stencil-component-types.js +2 -0
  165. package/dist/collection/kompendium/test/fixtures/filtering/stencil-component-types.js.map +1 -0
  166. package/dist/collection/kompendium/test/fixtures/filtering/test-helper-type.js +2 -0
  167. package/dist/collection/kompendium/test/fixtures/filtering/test-helper-type.js.map +1 -0
  168. package/dist/collection/kompendium/test/fixtures/filtering/valid-types.js +29 -0
  169. package/dist/collection/kompendium/test/fixtures/filtering/valid-types.js.map +1 -0
  170. package/dist/collection/kompendium/typedoc.js +481 -0
  171. package/dist/collection/kompendium/typedoc.js.map +1 -0
  172. package/dist/collection/kompendium/watch.js +9 -0
  173. package/dist/collection/kompendium/watch.js.map +1 -0
  174. package/dist/collection/types.js +2 -0
  175. package/dist/collection/types.js.map +1 -0
  176. package/dist/config.ts +8 -0
  177. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +10 -0
  178. package/dist/esm/_commonjsHelpers-BFTU3MAI.js.map +1 -0
  179. package/dist/esm/anchor-scroll-BAGXN2n6.js +65 -0
  180. package/dist/esm/anchor-scroll-BAGXN2n6.js.map +1 -0
  181. package/dist/esm/index-9UrzenzW.js +1857 -0
  182. package/dist/esm/index-9UrzenzW.js.map +1 -0
  183. package/dist/esm/index.js +2 -0
  184. package/dist/esm/index.js.map +1 -0
  185. package/dist/esm/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.js.map +1 -0
  186. package/dist/esm/kompendium-app_7.entry.js +2916 -0
  187. package/dist/esm/kompendium-code.entry.js +2722 -0
  188. package/dist/esm/kompendium-code.entry.js.map +1 -0
  189. package/dist/esm/kompendium-component.entry.js +205 -0
  190. package/dist/esm/kompendium-component.entry.js.map +1 -0
  191. package/dist/esm/kompendium-debug.entry.js +45 -0
  192. package/dist/esm/kompendium-debug.entry.js.map +1 -0
  193. package/dist/esm/kompendium-example-code.entry.js +18 -0
  194. package/dist/esm/kompendium-example-code.entry.js.map +1 -0
  195. package/dist/esm/kompendium-example-markdown.entry.js +163 -0
  196. package/dist/esm/kompendium-example-markdown.entry.js.map +1 -0
  197. package/dist/esm/kompendium-guide.entry.js +31 -0
  198. package/dist/esm/kompendium-guide.entry.js.map +1 -0
  199. package/dist/esm/kompendium-markdown.entry.js +48921 -0
  200. package/dist/esm/kompendium-markdown.entry.js.map +1 -0
  201. package/dist/esm/kompendium-playground.entry.js +87 -0
  202. package/dist/esm/kompendium-playground.entry.js.map +1 -0
  203. package/dist/esm/kompendium-proplist.kompendium-taglist.entry.js.map +1 -0
  204. package/dist/esm/kompendium-proplist_2.entry.js +46 -0
  205. package/dist/esm/kompendium-type.entry.js +81 -0
  206. package/dist/esm/kompendium-type.entry.js.map +1 -0
  207. package/dist/esm/kompendium.js +21 -0
  208. package/dist/esm/kompendium.js.map +1 -0
  209. package/dist/esm/loader.js +11 -0
  210. package/dist/esm/loader.js.map +1 -0
  211. package/dist/esm/markdown-types-Ajsawr_9.js +12 -0
  212. package/dist/esm/markdown-types-Ajsawr_9.js.map +1 -0
  213. package/dist/esm/methods-BAjd6f7g.js +94 -0
  214. package/dist/esm/methods-BAjd6f7g.js.map +1 -0
  215. package/dist/esm/types-BIPLEi1G.js +6 -0
  216. package/dist/esm/types-BIPLEi1G.js.map +1 -0
  217. package/dist/filesystem.ts +9 -0
  218. package/dist/generator.ts +302 -0
  219. package/dist/guides.ts +49 -0
  220. package/dist/index.cjs.js +1 -0
  221. package/dist/index.js +1 -0
  222. package/dist/index.ts +1 -0
  223. package/dist/kompendium/index.esm.js +2 -0
  224. package/dist/kompendium/index.esm.js.map +1 -0
  225. package/dist/kompendium/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.esm.js.map +1 -0
  226. package/dist/kompendium/kompendium-code.entry.esm.js.map +1 -0
  227. package/dist/kompendium/kompendium-component.entry.esm.js.map +1 -0
  228. package/dist/kompendium/kompendium-debug.entry.esm.js.map +1 -0
  229. package/dist/kompendium/kompendium-example-code.entry.esm.js.map +1 -0
  230. package/dist/kompendium/kompendium-example-markdown.entry.esm.js.map +1 -0
  231. package/dist/kompendium/kompendium-guide.entry.esm.js.map +1 -0
  232. package/dist/kompendium/kompendium-markdown.entry.esm.js.map +1 -0
  233. package/dist/kompendium/kompendium-playground.entry.esm.js.map +1 -0
  234. package/dist/kompendium/kompendium-proplist.kompendium-taglist.entry.esm.js.map +1 -0
  235. package/dist/kompendium/kompendium-type.entry.esm.js.map +1 -0
  236. package/dist/kompendium/kompendium.css +47 -0
  237. package/dist/kompendium/kompendium.esm.js +2 -0
  238. package/dist/kompendium/kompendium.esm.js.map +1 -0
  239. package/dist/kompendium/loader.esm.js.map +1 -0
  240. package/dist/kompendium/p-15e4b2c0.entry.js +2 -0
  241. package/dist/kompendium/p-15e4b2c0.entry.js.map +1 -0
  242. package/dist/kompendium/p-1cf0168f.entry.js +2 -0
  243. package/dist/kompendium/p-1cf0168f.entry.js.map +1 -0
  244. package/dist/kompendium/p-29c23c89.entry.js +2 -0
  245. package/dist/kompendium/p-29c23c89.entry.js.map +1 -0
  246. package/dist/kompendium/p-3981d11f.entry.js +2 -0
  247. package/dist/kompendium/p-3981d11f.entry.js.map +1 -0
  248. package/dist/kompendium/p-93f0548d.entry.js +2 -0
  249. package/dist/kompendium/p-93f0548d.entry.js.map +1 -0
  250. package/dist/kompendium/p-97b02575.entry.js +2 -0
  251. package/dist/kompendium/p-97b02575.entry.js.map +1 -0
  252. package/dist/kompendium/p-9UrzenzW.js +3 -0
  253. package/dist/kompendium/p-9UrzenzW.js.map +1 -0
  254. package/dist/kompendium/p-Ajsawr_9.js +2 -0
  255. package/dist/kompendium/p-Ajsawr_9.js.map +1 -0
  256. package/dist/kompendium/p-BAGXN2n6.js +2 -0
  257. package/dist/kompendium/p-BAGXN2n6.js.map +1 -0
  258. package/dist/kompendium/p-BFTU3MAI.js +2 -0
  259. package/dist/kompendium/p-BFTU3MAI.js.map +1 -0
  260. package/dist/kompendium/p-BIPLEi1G.js +2 -0
  261. package/dist/kompendium/p-BIPLEi1G.js.map +1 -0
  262. package/dist/kompendium/p-CnQEA7KO.js +2 -0
  263. package/dist/kompendium/p-CnQEA7KO.js.map +1 -0
  264. package/dist/kompendium/p-b0f95bd6.entry.js +2 -0
  265. package/dist/kompendium/p-b0f95bd6.entry.js.map +1 -0
  266. package/dist/kompendium/p-d9bcc473.entry.js +10 -0
  267. package/dist/kompendium/p-d9bcc473.entry.js.map +1 -0
  268. package/dist/kompendium/p-e36f3f1e.entry.js +2 -0
  269. package/dist/kompendium/p-e36f3f1e.entry.js.map +1 -0
  270. package/dist/kompendium/p-e52a2f57.entry.js +2 -0
  271. package/dist/kompendium/p-e52a2f57.entry.js.map +1 -0
  272. package/dist/kompendium/p-ec5861de.entry.js +2 -0
  273. package/dist/kompendium/p-ec5861de.entry.js.map +1 -0
  274. package/dist/markdown-admonitions.ts +112 -0
  275. package/dist/markdown-code.ts +51 -0
  276. package/dist/markdown-frontmatter.ts +19 -0
  277. package/dist/markdown-nodes.ts +23 -0
  278. package/dist/markdown-typelinks.ts +166 -0
  279. package/dist/markdown.ts +49 -0
  280. package/dist/menu.ts +189 -0
  281. package/dist/schema.ts +233 -0
  282. package/dist/search.ts +197 -0
  283. package/dist/source.ts +129 -0
  284. package/dist/typedoc.ts +665 -0
  285. package/dist/types/components/anchor-scroll.d.ts +36 -0
  286. package/dist/types/components/app/app.d.ts +22 -0
  287. package/dist/types/components/code/code.d.ts +26 -0
  288. package/dist/types/components/code/examples/code.d.ts +3 -0
  289. package/dist/types/components/component/component.d.ts +32 -0
  290. package/dist/types/components/component/templates/events.d.ts +5 -0
  291. package/dist/types/components/component/templates/examples.d.ts +9 -0
  292. package/dist/types/components/component/templates/methods.d.ts +5 -0
  293. package/dist/types/components/component/templates/props.d.ts +5 -0
  294. package/dist/types/components/component/templates/slots.d.ts +5 -0
  295. package/dist/types/components/component/templates/style.d.ts +5 -0
  296. package/dist/types/components/darkmode-switch/darkmode-switch.d.ts +18 -0
  297. package/dist/types/components/darkmode-switch/types.d.ts +2 -0
  298. package/dist/types/components/debug/debug.d.ts +24 -0
  299. package/dist/types/components/guide/guide.d.ts +14 -0
  300. package/dist/types/components/markdown/examples/markdown-example.d.ts +1 -0
  301. package/dist/types/components/markdown/examples/markdown.d.ts +7 -0
  302. package/dist/types/components/markdown/markdown-types.d.ts +2 -0
  303. package/dist/types/components/markdown/markdown.d.ts +20 -0
  304. package/dist/types/components/navigation/navigation.d.ts +35 -0
  305. package/dist/types/components/playground/playground.d.ts +32 -0
  306. package/dist/types/components/playground/playground.types.d.ts +1 -0
  307. package/dist/types/components/proplist/proplist.d.ts +12 -0
  308. package/dist/types/components/search/search.d.ts +15 -0
  309. package/dist/types/components/taglist/taglist.d.ts +16 -0
  310. package/dist/types/components/type/templates/alias.d.ts +4 -0
  311. package/dist/types/components/type/templates/enum.d.ts +4 -0
  312. package/dist/types/components/type/templates/interface.d.ts +4 -0
  313. package/dist/types/components/type/type.d.ts +15 -0
  314. package/dist/types/components.d.ts +517 -0
  315. package/dist/types/index.d.ts +5 -0
  316. package/dist/types/kompendium/config.d.ts +2 -0
  317. package/dist/types/kompendium/filesystem.d.ts +1 -0
  318. package/dist/types/kompendium/generator.d.ts +4 -0
  319. package/dist/types/kompendium/guides.d.ts +9 -0
  320. package/dist/types/kompendium/index.d.ts +1 -0
  321. package/dist/types/kompendium/markdown-admonitions.d.ts +3 -0
  322. package/dist/types/kompendium/markdown-code.d.ts +2 -0
  323. package/dist/types/kompendium/markdown-frontmatter.d.ts +6 -0
  324. package/dist/types/kompendium/markdown-nodes.d.ts +12 -0
  325. package/dist/types/kompendium/markdown-typelinks.d.ts +21 -0
  326. package/dist/types/kompendium/markdown.d.ts +8 -0
  327. package/dist/types/kompendium/menu.d.ts +12 -0
  328. package/dist/types/kompendium/schema.d.ts +9 -0
  329. package/dist/types/kompendium/search.d.ts +3 -0
  330. package/dist/types/kompendium/source.d.ts +10 -0
  331. package/dist/types/kompendium/test/fixtures/basic.d.ts +65 -0
  332. package/dist/types/kompendium/test/fixtures/filtering/example-type.d.ts +8 -0
  333. package/dist/types/kompendium/test/fixtures/filtering/node-modules-type.d.ts +8 -0
  334. package/dist/types/kompendium/test/fixtures/filtering/private-types.d.ts +23 -0
  335. package/dist/types/kompendium/test/fixtures/filtering/stencil-component-types.d.ts +19 -0
  336. package/dist/types/kompendium/test/fixtures/filtering/test-helper-type.d.ts +8 -0
  337. package/dist/types/kompendium/test/fixtures/filtering/valid-types.d.ts +42 -0
  338. package/dist/types/kompendium/typedoc.d.ts +2 -0
  339. package/dist/types/kompendium/watch.d.ts +1 -0
  340. package/dist/types/stencil-public-runtime.d.ts +1746 -0
  341. package/dist/types/types.d.ts +119 -0
  342. package/dist/watch.ts +14 -0
  343. package/loader/cdn.js +1 -0
  344. package/loader/index.cjs.js +1 -0
  345. package/loader/index.d.ts +24 -0
  346. package/loader/index.es2017.js +1 -0
  347. package/loader/index.js +2 -0
  348. package/package.json +116 -0
@@ -0,0 +1,87 @@
1
+ import { r as registerInstance, h, H as Host } from './index-9UrzenzW.js';
2
+ import { T as THEME_EVENT_NAME } from './types-BIPLEi1G.js';
3
+
4
+ const playgroundCss = ":root{--width-nav-panel:16rem}:host{display:block}.tab-panel{height:100%;display:flex;flex-direction:column}.tab-bar{display:flex;padding:0.1875rem 1rem 0 1rem;overflow-y:auto}.tab-bar .tab span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;width:100%;padding:0.125rem 0}.tab-bar .tab{transition:background-color 0.2s ease;cursor:pointer;position:relative;display:inline-block;padding:0.5rem 1rem;text-align:center;line-height:0.9375rem;color:rgb(var(--kompendium-contrast-1000));font-size:1rem;border-radius:0.5rem 0.5rem 0 0;margin:0 0.125rem;min-width:3.75rem}.tab-bar .tab:before,.tab-bar .tab:after{transition:background-color 0.2s ease;content:\"\";display:block;width:0.625rem;height:0.625rem;position:absolute;bottom:0;-webkit-mask-image:url(\"data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' clip-rule='evenodd' viewBox='0 0 50 50'><defs/><path d='M0 0c0 27.594 22.406 50 50 50H0V0z'/></svg>\");mask-image:url(\"data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' clip-rule='evenodd' viewBox='0 0 50 50'><defs/><path d='M0 0c0 27.594 22.406 50 50 50H0V0z'/></svg>\");background:transparent}.tab-bar .tab:before{left:-0.625rem;transform:rotateY(180deg)}.tab-bar .tab:after{right:-0.625rem}.tab-bar .tab:hover{background-color:rgb(var(--kompendium-contrast-100))}.tab-bar .tab:hover:before,.tab-bar .tab:hover:after{background-color:rgb(var(--kompendium-contrast-100))}.tab-bar .tab.active{z-index:1;color:rgb(var(--kompendium-contrast-1100));background:rgb(var(--kompendium-color-code-background))}.tab-bar .tab.active:before,.tab-bar .tab.active:after{background:rgb(var(--kompendium-color-code-background))}.tab-items{display:flex;max-height:31.25rem}.tab-items .tab-item{width:100%;display:none}.tab-items .tab-item.active{display:flex}kompendium-code{display:block}kompendium-code:before,kompendium-code:after{content:\"\";z-index:1;display:block;position:absolute;left:0;right:0;border-radius:0.5625rem;pointer-events:none}kompendium-code:before{top:2.4375rem;height:1.5rem;background-image:linear-gradient(rgb(var(--kompendium-color-code-background)), rgba(var(--kompendium-color-code-background), 0))}kompendium-code:after{bottom:0;height:2rem;background-image:linear-gradient(rgba(var(--kompendium-color-code-background), 0), rgb(var(--kompendium-color-code-background)))}section.example{transition:border-color 0.3s ease 0.05s;padding-bottom:2.5rem;margin-bottom:2.5rem;border-bottom:1px solid rgb(var(--kompendium-contrast-500))}section.example .result,section.example .code{box-sizing:border-box;display:inline-block;vertical-align:top;width:50%}section.example .result{padding-right:2.5rem}section.example .result kompendium-markdown{margin-bottom:2rem}section.example .code{position:sticky;top:0}@media (max-width: 1000px){section.example .result,section.example .code{width:100%;padding-right:0;margin-bottom:5rem}section.example .code{position:relative;margin-bottom:2.5rem}}.show-case_description{padding:0.75rem}.show-case_component{font-family:var(--kompendium-example-font-family, inherit);font-size:var(--kompendium-example-font-size, inherit);line-height:var(--kompendium-example-line-height, inherit);color:var(--kompendium-example-color, inherit);padding:1.25rem;border-radius:0.875rem;background-color:rgb(var(--kompendium-contrast-100));border:1px solid rgb(var(--kompendium-contrast-300));box-shadow:var(--shadow-showcase)}.debug{display:flex;justify-content:flex-end}.debug a.debug-link{transition:background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out}.debug a.debug-link:hover{box-shadow:var(--kompendium-button-shadow-hovered)}.debug a.debug-link:active{box-shadow:var(--kompendium-button-shadow-pressed);transform:translate3d(0, 0.08rem, 0)}.debug a.debug-link:focus{outline:none}.debug a.debug-link:focus-visible{outline:none;box-shadow:var(--kompendium-shadow-depth-8-focused)}.debug a.debug-link{transition:background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out, opacity 0.2s ease;width:1.75rem;height:1.75rem;font-size:0;margin:-3.25rem -1rem 0 0;border-radius:50%;color:rgb(var(--kompendium-contrast-1200));opacity:0.6}.debug a.debug-link:hover{opacity:1;background-color:rgb(var(--kompendium-contrast-100))}";
5
+
6
+ const Playground = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ /**
10
+ * Factory for creating props for example components
11
+ * @returns {Record<string, unknown>} props
12
+ */
13
+ this.propsFactory = () => ({});
14
+ this.activateTab = (id) => () => {
15
+ this.activeTab = id;
16
+ };
17
+ this.themeListener = (event) => {
18
+ this.theme = event.detail;
19
+ };
20
+ this.renderTab = this.renderTab.bind(this);
21
+ this.renderItem = this.renderItem.bind(this);
22
+ }
23
+ connectedCallback() {
24
+ this.theme = document.querySelector('html').dataset.theme;
25
+ document.addEventListener(THEME_EVENT_NAME, this.themeListener);
26
+ }
27
+ disconnectedCallback() {
28
+ document.removeEventListener(THEME_EVENT_NAME, this.themeListener);
29
+ }
30
+ render() {
31
+ if (!this.component) {
32
+ return;
33
+ }
34
+ const sources = this.component.sources || [];
35
+ return (h(Host, { "data-theme": this.theme }, h("section", { class: "example" }, h("div", { class: "result" }, this.renderResult()), h("aside", { class: "code" }, h("nav", { class: "tab-bar" }, this.renderTabs(sources)), h("div", { class: "tab-items" }, this.renderItems(sources))))));
36
+ }
37
+ renderTabs(sources) {
38
+ return sources.map(this.renderTab);
39
+ }
40
+ renderTab(source, index) {
41
+ const classList = {
42
+ tab: true,
43
+ active: this.isTabActive(source, index),
44
+ };
45
+ return (h("a", { class: classList, onClick: this.activateTab(source.filename) }, h("span", null, source.filename)));
46
+ }
47
+ renderItems(sources) {
48
+ return sources.map(this.renderItem);
49
+ }
50
+ renderResult() {
51
+ const ExampleComponent = this.component.tag;
52
+ const text = '##### ' + this.component.docs;
53
+ const factory = this.propsFactory;
54
+ const props = {
55
+ schema: this.schema,
56
+ ...factory(ExampleComponent),
57
+ };
58
+ return (h("div", { class: "show-case" }, h("div", { class: "show-case_description" }, h("kompendium-markdown", { text: text })), h("div", { class: "show-case_component" }, this.renderDebugButton(this.component.tag), h(ExampleComponent, { ...props }))));
59
+ }
60
+ renderItem(source, index) {
61
+ const classList = {
62
+ 'tab-item': true,
63
+ active: this.isTabActive(source, index),
64
+ };
65
+ const code = source.source.replace(/\/\*\*.+?\*\//gms, '');
66
+ const key = [this.component.tag, source.filename].join('/');
67
+ return (h("kompendium-code", { class: classList, language: source.type, key: key }, code));
68
+ }
69
+ renderDebugButton(tag) {
70
+ if (!['localhost', '127.0.0.1'].includes(location.hostname)) {
71
+ return;
72
+ }
73
+ const href = `#/debug/${tag}`;
74
+ return (h("div", { class: "debug" }, h("a", { class: "debug-link", href: href, title: "Debug" }, h("svg", { viewBox: "0 0 400 400", xmlns: "http://www.w3.org/2000/svg", "fill-rule": "evenodd", "clip-rule": "evenodd", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-miterlimit": "1.5" }, h("path", { fill: "none", d: "M0 0h400v400H0z" }), h("path", { d: "M194.97 254.84h77.555", fill: "none", stroke: "currentColor", "stroke-opacity": ".6", "stroke-width": "20" }), h("path", { d: "M127.474 145.16l54.84 54.84M182.315 200l-54.84 54.84", fill: "none", stroke: "currentColor", "stroke-width": "20" })))));
75
+ }
76
+ isTabActive(source, index) {
77
+ let isActive = this.activeTab === source.filename;
78
+ if (!isActive) {
79
+ isActive = index === 0 && !this.activeTab;
80
+ }
81
+ return isActive;
82
+ }
83
+ };
84
+ Playground.style = playgroundCss;
85
+
86
+ export { Playground as kompendium_playground };
87
+ //# sourceMappingURL=kompendium-playground.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kompendium-playground.entry.js","sources":["src/components/playground/playground.scss?tag=kompendium-playground&encapsulation=shadow","src/components/playground/playground.tsx"],"sourcesContent":["@use '../../style/functions.scss';\n@use '../../style/variables.scss';\n@use '../../style/mixins.scss';\n\n$tab-active-outer-edge-curve-size: functions.pxToRem(10);\n\n:host {\n display: block;\n}\n\n.tab-panel {\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.tab-bar {\n display: flex;\n padding: functions.pxToRem(3) functions.pxToRem(16) 0 functions.pxToRem(16);\n overflow-y: auto;\n\n .tab {\n span {\n @include mixins.truncate-text;\n display: inline-block;\n width: 100%;\n padding: functions.pxToRem(2) 0;\n }\n transition: background-color 0.2s ease;\n cursor: pointer;\n\n position: relative;\n display: inline-block;\n padding: functions.pxToRem(8) functions.pxToRem(16);\n text-align: center;\n line-height: functions.pxToRem(15);\n color: rgb(var(--kompendium-contrast-1000));\n font-size: functions.pxToRem(16);\n border-radius: functions.pxToRem(8) functions.pxToRem(8) 0 0;\n margin: 0 functions.pxToRem(2);\n min-width: functions.pxToRem(\n 60\n ); // needs to be here for titles to truncate\n\n &:before,\n &:after {\n transition: background-color 0.2s ease;\n\n content: '';\n display: block;\n width: $tab-active-outer-edge-curve-size;\n height: $tab-active-outer-edge-curve-size;\n position: absolute;\n bottom: 0;\n -webkit-mask-image: url(\"data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' clip-rule='evenodd' viewBox='0 0 50 50'><defs/><path d='M0 0c0 27.594 22.406 50 50 50H0V0z'/></svg>\"); //For chrome and Safari the browser prefix is needed. (last checked Apr 2020)\n mask-image: url(\"data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' clip-rule='evenodd' viewBox='0 0 50 50'><defs/><path d='M0 0c0 27.594 22.406 50 50 50H0V0z'/></svg>\");\n\n background: transparent;\n }\n\n &:before {\n left: -$tab-active-outer-edge-curve-size;\n transform: rotateY(180deg);\n }\n &:after {\n right: -$tab-active-outer-edge-curve-size;\n }\n\n &:hover {\n background-color: rgb(var(--kompendium-contrast-100));\n\n &:before,\n &:after {\n background-color: rgb(var(--kompendium-contrast-100));\n }\n }\n\n &.active {\n z-index: 1;\n color: rgb(var(--kompendium-contrast-1100));\n background: rgb(var(--kompendium-color-code-background));\n\n &:before,\n &:after {\n background: rgb(var(--kompendium-color-code-background));\n }\n }\n }\n}\n\n.tab-items {\n display: flex;\n max-height: functions.pxToRem(500);\n\n .tab-item {\n width: 100%;\n display: none;\n\n &.active {\n display: flex;\n }\n\n // &:nth-child(1) {\n // flex-direction: column;\n // }\n }\n}\n\nkompendium-code {\n display: block;\n\n &:before,\n &:after {\n content: '';\n z-index: 1;\n display: block;\n position: absolute;\n left: 0;\n right: 0;\n border-radius: functions.pxToRem(9);\n pointer-events: none;\n }\n\n &:before {\n top: functions.pxToRem(39);\n height: functions.pxToRem(24);\n background-image: linear-gradient(\n rgb(var(--kompendium-color-code-background)),\n rgba(var(--kompendium-color-code-background), 0)\n );\n }\n &:after {\n bottom: 0;\n height: functions.pxToRem(32);\n background-image: linear-gradient(\n rgba(var(--kompendium-color-code-background), 0),\n rgb(var(--kompendium-color-code-background))\n );\n }\n}\n\nsection.example {\n transition: border-color 0.3s ease 0.05s;\n padding-bottom: functions.pxToRem(40);\n margin-bottom: functions.pxToRem(40);\n border-bottom: 1px solid rgb(var(--kompendium-contrast-500));\n\n .result,\n .code {\n box-sizing: border-box;\n display: inline-block;\n vertical-align: top;\n width: 50%;\n }\n\n .result {\n padding-right: functions.pxToRem(40);\n\n kompendium-markdown {\n margin-bottom: functions.pxToRem(32);\n }\n }\n\n .code {\n position: sticky;\n top: 0;\n }\n}\n\n@media (max-width: variables.$break-point-small) {\n section.example {\n .result,\n .code {\n width: 100%;\n padding-right: 0;\n margin-bottom: functions.pxToRem(80);\n }\n\n .code {\n position: relative;\n margin-bottom: functions.pxToRem(40);\n }\n }\n}\n\n.show-case_description {\n padding: functions.pxToRem(12);\n}\n\n.show-case_component {\n font-family: var(--kompendium-example-font-family, inherit);\n font-size: var(--kompendium-example-font-size, inherit);\n line-height: var(--kompendium-example-line-height, inherit);\n color: var(--kompendium-example-color, inherit);\n\n padding: functions.pxToRem(20);\n border-radius: functions.pxToRem(14);\n background-color: rgb(var(--kompendium-contrast-100));\n border: 1px solid rgb(var(--kompendium-contrast-300));\n box-shadow: var(--shadow-showcase);\n}\n\n.debug {\n display: flex;\n justify-content: flex-end;\n\n a.debug-link {\n @include mixins.is-flat-clickable();\n transition:\n background-color 0.2s ease,\n box-shadow 0.2s ease,\n transform 0.1s ease-out,\n opacity 0.2s ease;\n\n width: functions.pxToRem(28);\n height: functions.pxToRem(28);\n font-size: 0;\n margin: functions.pxToRem(-52) functions.pxToRem(-16) 0 0;\n border-radius: 50%;\n\n color: rgb(var(--kompendium-contrast-1200));\n\n opacity: 0.6;\n\n &:hover {\n opacity: 1;\n background-color: rgb(var(--kompendium-contrast-100));\n }\n }\n}\n","import { Component, h, Host, Prop, State } from '@stencil/core';\nimport { JsonDocsComponent } from '@stencil/core/internal';\nimport { JsonDocsSource } from '../../kompendium/source';\nimport { Theme, THEME_EVENT_NAME } from '../darkmode-switch/types';\nimport { PropsFactory } from './playground.types';\n\n@Component({\n tag: 'kompendium-playground',\n styleUrl: 'playground.scss',\n shadow: true,\n})\nexport class Playground {\n /**\n * The component to display\n */\n @Prop()\n public component: JsonDocsComponent;\n\n /**\n * Schema for the component\n */\n @Prop()\n public schema: Record<string, any>;\n\n /**\n * Factory for creating props for example components\n * @returns {Record<string, unknown>} props\n */\n @Prop()\n public propsFactory?: PropsFactory = () => ({});\n\n @State()\n private activeTab: string;\n\n @State()\n private theme: Theme;\n\n constructor() {\n this.renderTab = this.renderTab.bind(this);\n this.renderItem = this.renderItem.bind(this);\n }\n\n public connectedCallback() {\n this.theme = document.querySelector('html').dataset.theme as Theme;\n document.addEventListener(THEME_EVENT_NAME, this.themeListener);\n }\n\n public disconnectedCallback() {\n document.removeEventListener(THEME_EVENT_NAME, this.themeListener);\n }\n\n public render(): HTMLElement {\n if (!this.component) {\n return;\n }\n\n const sources: JsonDocsSource[] = (this.component as any).sources || [];\n\n return (\n <Host data-theme={this.theme}>\n <section class=\"example\">\n <div class=\"result\">{this.renderResult()}</div>\n\n <aside class=\"code\">\n <nav class=\"tab-bar\">{this.renderTabs(sources)}</nav>\n <div class=\"tab-items\">{this.renderItems(sources)}</div>\n </aside>\n </section>\n </Host>\n );\n }\n\n private renderTabs(sources: JsonDocsSource[]) {\n return sources.map(this.renderTab);\n }\n\n private renderTab(source: JsonDocsSource, index: number) {\n const classList = {\n tab: true,\n active: this.isTabActive(source, index),\n };\n\n return (\n <a class={classList} onClick={this.activateTab(source.filename)}>\n <span>{source.filename}</span>\n </a>\n );\n }\n\n private renderItems(sources: JsonDocsSource[]) {\n return sources.map(this.renderItem);\n }\n\n private renderResult() {\n const ExampleComponent = this.component.tag;\n const text = '##### ' + this.component.docs;\n const factory = this.propsFactory;\n const props = {\n schema: this.schema,\n ...factory(ExampleComponent),\n };\n\n return (\n <div class=\"show-case\">\n <div class=\"show-case_description\">\n <kompendium-markdown text={text} />\n </div>\n <div class=\"show-case_component\">\n {this.renderDebugButton(this.component.tag)}\n <ExampleComponent {...props} />\n </div>\n </div>\n );\n }\n\n private renderItem(source: JsonDocsSource, index: number) {\n const classList = {\n 'tab-item': true,\n active: this.isTabActive(source, index),\n };\n const code = source.source.replace(/\\/\\*\\*.+?\\*\\//gms, '');\n const key = [this.component.tag, source.filename].join('/');\n\n return (\n <kompendium-code class={classList} language={source.type} key={key}>\n {code}\n </kompendium-code>\n );\n }\n\n private renderDebugButton(tag: string) {\n if (!['localhost', '127.0.0.1'].includes(location.hostname)) {\n return;\n }\n\n const href = `#/debug/${tag}`;\n\n return (\n <div class=\"debug\">\n <a class=\"debug-link\" href={href} title=\"Debug\">\n <svg\n viewBox=\"0 0 400 400\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-miterlimit=\"1.5\"\n >\n <path fill=\"none\" d=\"M0 0h400v400H0z\" />\n <path\n d=\"M194.97 254.84h77.555\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-opacity=\".6\"\n stroke-width=\"20\"\n />\n <path\n d=\"M127.474 145.16l54.84 54.84M182.315 200l-54.84 54.84\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"20\"\n />\n </svg>\n </a>\n </div>\n );\n }\n\n private activateTab = (id: string) => () => {\n this.activeTab = id;\n };\n\n private isTabActive(source: JsonDocsSource, index: number): boolean {\n let isActive = this.activeTab === source.filename;\n if (!isActive) {\n isActive = index === 0 && !this.activeTab;\n }\n\n return isActive;\n }\n\n private themeListener = (event: CustomEvent<Theme>) => {\n this.theme = event.detail;\n };\n}\n"],"names":[],"mappings":";;;AAAA,MAAM,aAAa,GAAG,oyIAAoyI;;MCW7yI,UAAU,GAAA,MAAA;AA0BnB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAbA;;;AAGG;QAEI,IAAA,CAAA,YAAY,GAAkB,OAAO,EAAE,CAAC;QA4IvC,IAAA,CAAA,WAAW,GAAG,CAAC,EAAU,KAAK,MAAK;AACvC,YAAA,IAAI,CAAC,SAAS,GAAG,EAAE;AACvB,SAAC;AAWO,QAAA,IAAA,CAAA,a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A,EAAM,IAAI,EAAC,MAAM,EAAC,CAAC,EAAC,iBAAiB,EAAG,CAAA,EACxC,CAAA,CAAA,MAAA,EAAA,EACI,CAAC,EAAC,uBAAuB,EACzB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EAAA,gBAAA,EACN,IAAI,EAAA,cAAA,EACN,IAAI,EACnB,CAAA,EACF,CAAA,CAAA,MAAA,EAAA,EACI,CAAC,EAAC,sDAAsD,EACxD,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,kBACR,IAAI,EAAA,CACnB,CACA,CACN,CACF;;IAQN,WAAW,CAAC,MAAsB,EAAE,KAAa,EAAA;QACrD,IAAI,QAAQ,GAAG,IAAI,CAAC,SAAS,KAAK,MAAM,CAAC,QAAQ;QACjD,IAAI,CAAC,QAAQ,EAAE;YACX,QAAQ,GAAG,KAAK,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS;;AAG7C,QAAA,OAAO,QAAQ;;;;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kompendium-proplist.kompendium-taglist.entry.js","sources":["src/components/proplist/proplist.scss?tag=kompendium-proplist&encapsulation=shadow","src/components/proplist/proplist.tsx","src/components/taglist/taglist.scss?tag=kompendium-taglist&encapsulation=shadow","src/components/taglist/taglist.tsx"],"sourcesContent":["@use '../../style/reset.scss';\n@use '../../style/functions.scss';\n@use '../../style/typography.scss';\n\n:host {\n display: block;\n}\n\npre,\ncode {\n font-family: var(--kompendium-font-code);\n border-radius: functions.pxToRem(4);\n font-size: functions.pxToRem(11);\n\n a {\n font-size: functions.pxToRem(11);\n }\n}\n\ncode {\n background: rgba(var(--kompendium-contrast-1100), 0.05);\n border: 1px solid rgba(var(--kompendium-contrast-1100), 0.1);\n padding: 0.125rem 0.3125rem;\n margin: 0 0.125rem;\n white-space: pre-wrap;\n color: rgb(var(--kompendium-contrast-1100));\n}\n\npre {\n > code {\n display: block;\n padding: 0.625rem 0.6375rem;\n white-space: pre-wrap;\n }\n}\n\n.value--false {\n code {\n color: rgb(var(--kompendium-color-code-magenta));\n border-color: rgba(var(--kompendium-color-code-magenta), 0.2);\n background-color: rgba(var(--kompendium-color-code-magenta), 0.1);\n }\n}\n\n.value--true {\n code {\n color: rgb(var(--kompendium-color-code-green-dark));\n border-color: rgba(var(--kompendium-color-code-green-dark), 0.2);\n background-color: rgba(var(--kompendium-color-code-green-dark), 0.1);\n }\n}\n\ndl {\n display: grid;\n grid-template-columns: 1fr 2fr;\n grid-template-rows: 1fr;\n margin-bottom: 2rem;\n border: 1px solid rgb(var(--kompendium-contrast-500));\n border-radius: functions.pxToRem(6);\n background-color: rgb(var(--kompendium-contrast-300));\n\n dt,\n dd {\n padding: functions.pxToRem(6) functions.pxToRem(8);\n font-size: functions.pxToRem(14);\n\n &:nth-of-type(even) {\n background-color: rgb(var(--kompendium-contrast-400));\n }\n }\n dt {\n &:first-child {\n border-top-left-radius: functions.pxToRem(6);\n }\n &:last-child {\n border-bottom-left-radius: functions.pxToRem(6);\n }\n }\n dd {\n &:first-child {\n border-top-right-radius: functions.pxToRem(6);\n }\n &:last-child {\n border-bottom-right-radius: functions.pxToRem(6);\n }\n }\n}\n\ndl,\ndt,\ndd {\n transition:\n background-color 0.3s ease 0.05s,\n border-color 0.3s ease 0.05s;\n}\n","import { Component, h, Prop } from '@stencil/core';\n\nexport interface ProplistItem {\n key: string;\n value: string;\n}\n\n@Component({\n tag: 'kompendium-proplist',\n shadow: true,\n styleUrl: 'proplist.scss',\n})\nexport class Proplist {\n /**\n * List of properties\n */\n @Prop()\n public items: ProplistItem[];\n\n render(): HTMLElement {\n return <dl>{this.items.map(this.renderProperty)}</dl>;\n }\n\n private renderProperty(property: ProplistItem) {\n const { key, value } = property;\n\n return [\n <dt>{key}</dt>,\n <dd class={`value--${value}`}>\n <kompendium-markdown text={`\\`${value}\\``} />\n </dd>,\n ];\n }\n}\n","@use '../../style/functions.scss';\n\n:host {\n isolation: isolate;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 0.5rem;\n padding: 0.5rem 0 0 0;\n}\n\n.tag-list {\n position: relative;\n display: flex;\n gap: 0.25rem;\n align-items: center;\n justify-content: center;\n padding: 0.125rem 0.25rem 0.125rem 0.25rem;\n border-radius: 0.25rem;\n\n &:before,\n &:after {\n content: '';\n position: absolute;\n inset: 0;\n border-radius: inherit;\n pointer-events: none;\n }\n\n &:before {\n border: 1px dotted;\n opacity: 0.4;\n }\n\n &:after {\n background-color: currentColor;\n opacity: 0.04;\n }\n\n color: rgb(var(--kompendium-contrast-1100));\n}\n\n.tag--private {\n color: rgb(var(--kompendium-color-orange-default));\n}\n\n.tag--beta {\n color: rgb(var(--kompendium-color-blue-default));\n}\n\n.tag--deprecated {\n color: rgb(var(--kompendium-color-red-default));\n}\n\ncode {\n font-family: var(--kompendium-font-code);\n font-size: 0.75rem;\n}\n\nsvg {\n width: 0.75rem;\n opacity: 0.7;\n}\n","import { Component, h, Prop } from '@stencil/core';\nimport { JsonDocsTag } from '@stencil/core/internal';\n\n/**\n * asd\n */\n@Component({\n tag: 'kompendium-taglist',\n shadow: true,\n styleUrl: 'taglist.scss',\n})\nexport class Taglist {\n /**\n * List of tags to render\n */\n @Prop()\n public tags: JsonDocsTag[];\n\n /**\n * Set to `true` if the list should be rendered in compact mode\n */\n @Prop()\n public compact = false;\n\n render(): HTMLElement[] {\n return this.tags.map(this.renderTag);\n }\n\n private renderTag(tag: JsonDocsTag) {\n const classList = {\n 'tag-list': true,\n };\n\n classList[`tag--${tag.name}`] = true;\n\n return (\n <div class={classList}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path\n d=\"M5 2h14a1 1 0 0 1 1 1v19.143a.5.5 0 0 1-.766.424L12 18.03l-7.234 4.536A.5.5 0 0 1 4 22.143V3a1 1 0 0 1 1-1z\"\n fill=\"currentColor\"\n ></path>\n </svg>\n <code>@{tag.name}</code>\n <kompendium-markdown text={tag.text} />\n </div>\n );\n }\n}\n"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AAC,EAAC,6GAA6G,EAC/G,IAAI,EAAC,cAAc,GACf,CACN,EACN,CAAA,CAAA,MAAA,EAAA,IAAA,OAAQ,GAAG,CAAC,IAAI,CAAQ,EACxB,CAAqB,CAAA,qBAAA,EAAA,EAAA,IAAI,EAAE,GAAG,CAAC,IAAI,EAAI,CAAA,CACrC;;;;;;;"}
@@ -0,0 +1,46 @@
1
+ import { r as registerInstance, h } from './index-9UrzenzW.js';
2
+
3
+ const proplistCss = "*,*::before,*::after{box-sizing:border-box}ul[class],ol[class]{padding:0}body,h1,h2,h3,h4,p,ul[class],ol[class],li,figure,figcaption,blockquote,dl,dd{margin:0}ul[class],ol[class]{list-style:none}a:not([class]){text-decoration-skip-ink:auto}img{max-width:100%}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion: reduce){*{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}p,a,li{font-size:0.9375rem}h1,h2,h3,h4,h5,h6{margin-bottom:0.5rem;font-weight:normal;font-weight:500}h1{font-size:2rem;line-height:2.25rem;margin-top:1.5rem;letter-spacing:-0.0625rem;font-weight:400}h2{font-size:1.625rem;line-height:1.25rem;margin-top:1.25rem;margin-bottom:1rem}h3{font-size:1.375rem;line-height:1.5rem;margin-top:1rem}h4{font-size:1.25rem;line-height:1.25rem;margin-top:1rem}h5{font-size:1.125rem;line-height:1.125rem;margin-top:0.75rem}h6{font-size:1rem;font-variant:all-small-caps;letter-spacing:0.0625rem}p,blockquote{margin-top:0;margin-bottom:0.5rem}p:only-child,blockquote:only-child{margin-bottom:0}a{transition:color 0.2s ease;color:rgb(var(--kompendium-color-blue-default));text-decoration:none;border-radius:0.125rem}a:hover{color:rgb(var(--kompendium-color-blue-light))}a:focus{outline:none}a:focus-visible{outline:none;box-shadow:var(--kompendium-shadow-depth-8-focused)}ul{list-style:none}ul li{position:relative;margin-left:0.75rem}ul li:before{content:\"\";position:absolute;left:-0.5rem;top:0.625rem;width:0.25rem;height:0.25rem;border-radius:50%;background-color:rgb(var(--kompendium-contrast-700));display:block}ol{list-style:decimal inside}ol,ul{padding-left:0;margin-top:0}ul ul,ul ol,ol ol,ol ul{margin:0.9375rem 0 0.9375rem 1.875rem;font-size:90%}li{margin-bottom:0.625rem}th,td{padding:0.75rem 1rem;text-align:left;border-bottom:1px solid rgb(var(--kompendium-contrast-600))}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}hr{margin:1.75rem 0 2rem 0;border-width:0;border-top:1px solid rgb(var(--kompendium-contrast-600))}kbd{font-family:var(--kompendium-font-code);font-size:0.875rem;font-weight:600;color:rgb(var(--kompendium-contrast-1000));background-color:rgb(var(--kompendium-contrast-200));white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:normal;padding:0.125rem 0.5rem;margin:0 0.25rem;box-shadow:var(--kompendium-button-shadow-normal), 0 0.03125rem 0.21875rem 0 rgba(var(--kompendium-contrast-100), 0.5) inset;border-radius:0.25rem;border-style:solid;border-color:rgba(var(--kompendium-contrast-600), 0.8);border-width:0 1px 0.125rem 1px}@media (prefers-color-scheme: dark){kbd:not([data-theme=force-light]){background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}}kbd[data-theme=force-dark]{background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}@media (prefers-color-scheme: dark){:host(:not([data-theme=force-light])) kbd{background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}}:host([data-theme=force-dark]) kbd{background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}:host{display:block}pre,code{font-family:var(--kompendium-font-code);border-radius:0.25rem;font-size:0.6875rem}pre a,code a{font-size:0.6875rem}code{background:rgba(var(--kompendium-contrast-1100), 0.05);border:1px solid rgba(var(--kompendium-contrast-1100), 0.1);padding:0.125rem 0.3125rem;margin:0 0.125rem;white-space:pre-wrap;color:rgb(var(--kompendium-contrast-1100))}pre>code{display:block;padding:0.625rem 0.6375rem;white-space:pre-wrap}.value--false code{color:rgb(var(--kompendium-color-code-magenta));border-color:rgba(var(--kompendium-color-code-magenta), 0.2);background-color:rgba(var(--kompendium-color-code-magenta), 0.1)}.value--true code{color:rgb(var(--kompendium-color-code-green-dark));border-color:rgba(var(--kompendium-color-code-green-dark), 0.2);background-color:rgba(var(--kompendium-color-code-green-dark), 0.1)}dl{display:grid;grid-template-columns:1fr 2fr;grid-template-rows:1fr;margin-bottom:2rem;border:1px solid rgb(var(--kompendium-contrast-500));border-radius:0.375rem;background-color:rgb(var(--kompendium-contrast-300))}dl dt,dl dd{padding:0.375rem 0.5rem;font-size:0.875rem}dl dt:nth-of-type(even),dl dd:nth-of-type(even){background-color:rgb(var(--kompendium-contrast-400))}dl dt:first-child{border-top-left-radius:0.375rem}dl dt:last-child{border-bottom-left-radius:0.375rem}dl dd:first-child{border-top-right-radius:0.375rem}dl dd:last-child{border-bottom-right-radius:0.375rem}dl,dt,dd{transition:background-color 0.3s ease 0.05s, border-color 0.3s ease 0.05s}";
4
+
5
+ const Proplist = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ render() {
10
+ return h("dl", { key: 'e0d431f2ef5b105af7436d0a9b46a3ad2886a96b' }, this.items.map(this.renderProperty));
11
+ }
12
+ renderProperty(property) {
13
+ const { key, value } = property;
14
+ return [
15
+ h("dt", null, key),
16
+ h("dd", { class: `value--${value}` }, h("kompendium-markdown", { text: `\`${value}\`` })),
17
+ ];
18
+ }
19
+ };
20
+ Proplist.style = proplistCss;
21
+
22
+ const taglistCss = ":host{isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;gap:0.5rem;padding:0.5rem 0 0 0}.tag-list{position:relative;display:flex;gap:0.25rem;align-items:center;justify-content:center;padding:0.125rem 0.25rem 0.125rem 0.25rem;border-radius:0.25rem}.tag-list:before,.tag-list:after{content:\"\";position:absolute;inset:0;border-radius:inherit;pointer-events:none}.tag-list:before{border:1px dotted;opacity:0.4}.tag-list:after{background-color:currentColor;opacity:0.04}.tag-list{color:rgb(var(--kompendium-contrast-1100))}.tag--private{color:rgb(var(--kompendium-color-orange-default))}.tag--beta{color:rgb(var(--kompendium-color-blue-default))}.tag--deprecated{color:rgb(var(--kompendium-color-red-default))}code{font-family:var(--kompendium-font-code);font-size:0.75rem}svg{width:0.75rem;opacity:0.7}";
23
+
24
+ const Taglist = class {
25
+ constructor(hostRef) {
26
+ registerInstance(this, hostRef);
27
+ /**
28
+ * Set to `true` if the list should be rendered in compact mode
29
+ */
30
+ this.compact = false;
31
+ }
32
+ render() {
33
+ return this.tags.map(this.renderTag);
34
+ }
35
+ renderTag(tag) {
36
+ const classList = {
37
+ 'tag-list': true,
38
+ };
39
+ classList[`tag--${tag.name}`] = true;
40
+ return (h("div", { class: classList }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, h("path", { d: "M5 2h14a1 1 0 0 1 1 1v19.143a.5.5 0 0 1-.766.424L12 18.03l-7.234 4.536A.5.5 0 0 1 4 22.143V3a1 1 0 0 1 1-1z", fill: "currentColor" })), h("code", null, "@", tag.name), h("kompendium-markdown", { text: tag.text })));
41
+ }
42
+ };
43
+ Taglist.style = taglistCss;
44
+
45
+ export { Proplist as kompendium_proplist, Taglist as kompendium_taglist };
46
+ //# sourceMappingURL=kompendium-proplist.kompendium-taglist.entry.js.map
@@ -0,0 +1,81 @@
1
+ import { h, r as registerInstance } from './index-9UrzenzW.js';
2
+ import { P as PropertyList, M as MethodList } from './methods-BAjd6f7g.js';
3
+
4
+ function Interface({ type, }) {
5
+ return [
6
+ h("h1", { id: type.name }, type.name),
7
+ h("kompendium-markdown", { text: type.docs }),
8
+ h("kompendium-taglist", { tags: type.docsTags }),
9
+ h(PropertyList, { props: type.props }),
10
+ h(MethodList, { methods: type.methods }),
11
+ ];
12
+ }
13
+
14
+ function Alias({ type }) {
15
+ const alias = '`' + type.alias + '`';
16
+ return [
17
+ h("h1", { id: type.name }, type.name),
18
+ h("kompendium-markdown", { text: type.docs }),
19
+ h("kompendium-taglist", { tags: type.docsTags }),
20
+ h("kompendium-markdown", { text: alias }),
21
+ ];
22
+ }
23
+
24
+ function Enum({ type }) {
25
+ return [
26
+ h("h1", { id: type.name }, type.name),
27
+ h("kompendium-markdown", { text: type.docs }),
28
+ h("kompendium-taglist", { tags: type.docsTags }),
29
+ h(MemberList, { members: type.members }),
30
+ ];
31
+ }
32
+ function MemberList({ members }) {
33
+ if (!members.length) {
34
+ return;
35
+ }
36
+ return [h("h3", null, "Members"), ...members.map(renderMember)];
37
+ }
38
+ function renderMember(member) {
39
+ const items = [
40
+ {
41
+ key: 'Value',
42
+ value: member.value,
43
+ },
44
+ ];
45
+ return (h("div", null, h("h4", null, member.name), h("kompendium-markdown", { text: member.docs }), h("kompendium-taglist", { tags: member.docsTags }), h("kompendium-proplist", { items: items })));
46
+ }
47
+
48
+ const componentCss = "*,*::before,*::after{box-sizing:border-box}ul[class],ol[class]{padding:0}body,h1,h2,h3,h4,p,ul[class],ol[class],li,figure,figcaption,blockquote,dl,dd{margin:0}ul[class],ol[class]{list-style:none}a:not([class]){text-decoration-skip-ink:auto}img{max-width:100%}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion: reduce){*{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:root{--width-nav-panel:16rem}p,a,li{font-size:0.9375rem}h1,h2,h3,h4,h5,h6{margin-bottom:0.5rem;font-weight:normal;font-weight:500}h1{font-size:2rem;line-height:2.25rem;margin-top:1.5rem;letter-spacing:-0.0625rem;font-weight:400}h2{font-size:1.625rem;line-height:1.25rem;margin-top:1.25rem;margin-bottom:1rem}h3{font-size:1.375rem;line-height:1.5rem;margin-top:1rem}h4{font-size:1.25rem;line-height:1.25rem;margin-top:1rem}h5{font-size:1.125rem;line-height:1.125rem;margin-top:0.75rem}h6{font-size:1rem;font-variant:all-small-caps;letter-spacing:0.0625rem}p,blockquote{margin-top:0;margin-bottom:0.5rem}p:only-child,blockquote:only-child{margin-bottom:0}a{transition:color 0.2s ease;color:rgb(var(--kompendium-color-blue-default));text-decoration:none;border-radius:0.125rem}a:hover{color:rgb(var(--kompendium-color-blue-light))}a:focus{outline:none}a:focus-visible{outline:none;box-shadow:var(--kompendium-shadow-depth-8-focused)}ul{list-style:none}ul li{position:relative;margin-left:0.75rem}ul li:before{content:\"\";position:absolute;left:-0.5rem;top:0.625rem;width:0.25rem;height:0.25rem;border-radius:50%;background-color:rgb(var(--kompendium-contrast-700));display:block}ol{list-style:decimal inside}ol,ul{padding-left:0;margin-top:0}ul ul,ul ol,ol ol,ol ul{margin:0.9375rem 0 0.9375rem 1.875rem;font-size:90%}li{margin-bottom:0.625rem}th,td{padding:0.75rem 1rem;text-align:left;border-bottom:1px solid rgb(var(--kompendium-contrast-600))}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}hr{margin:1.75rem 0 2rem 0;border-width:0;border-top:1px solid rgb(var(--kompendium-contrast-600))}kbd{font-family:var(--kompendium-font-code);font-size:0.875rem;font-weight:600;color:rgb(var(--kompendium-contrast-1000));background-color:rgb(var(--kompendium-contrast-200));white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:normal;padding:0.125rem 0.5rem;margin:0 0.25rem;box-shadow:var(--kompendium-button-shadow-normal), 0 0.03125rem 0.21875rem 0 rgba(var(--kompendium-contrast-100), 0.5) inset;border-radius:0.25rem;border-style:solid;border-color:rgba(var(--kompendium-contrast-600), 0.8);border-width:0 1px 0.125rem 1px}@media (prefers-color-scheme: dark){kbd:not([data-theme=force-light]){background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}}kbd[data-theme=force-dark]{background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}@media (prefers-color-scheme: dark){:host(:not([data-theme=force-light])) kbd{background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}}:host([data-theme=force-dark]) kbd{background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}kompendium-playground{width:100%}.docs-layout-section-heading{transition:border-color 0.3s ease 0.05s;padding-top:2.5rem;margin:2.5rem 0 1.25rem 0;border-top:1px solid rgb(var(--kompendium-contrast-500))}.docs-layout-section-heading:before{content:\"\";width:0.125rem;height:0.75rem;display:inline-block;background-color:rgba(var(--kompendium-color-code-blue), 0.4);border-radius:0.0625rem;transform:translateX(-0.5rem)}.props-events-layout .markdown-props{display:grid;grid-gap:1.25rem;grid-auto-flow:column;grid-template-columns:1fr 1fr}@media (max-width: 800px){.props-events-layout .markdown-props{grid-gap:0.75rem;grid-auto-flow:row;grid-template-columns:unset}}.methods-layout{border-radius:0.375rem;margin-bottom:2.5rem;background-color:rgb(var(--kompendium-contrast-400))}.methods-title{margin:0;border-radius:0.375rem 0.375rem 0 0;padding:0.75rem 1rem;background-color:rgb(var(--kompendium-contrast-500));font-size:1.0625rem}.methods-content{display:grid;grid-gap:1.25rem;grid-auto-flow:column;grid-template-columns:1fr 1fr;padding:1rem 1.25rem 1.5rem 1.25rem}.methods-returns{padding:1rem 1.25rem 1.5rem 1.25rem;border-radius:0 0 0.375rem 0.375rem;border-top:1px solid rgb(var(--kompendium-contrast-600))}.methods-returns h5{margin-top:0}@media (max-width: 800px){.methods-content{grid-gap:0.75rem;grid-auto-flow:row;grid-template-columns:unset}}.styles-layout{display:grid;grid-auto-flow:column;grid-template-columns:1fr 1fr;grid-gap:0 0.75rem;border:solid rgb(var(--kompendium-contrast-500));border-width:1px 1px 0 1px;padding:0.5rem;background-color:rgb(var(--kompendium-contrast-300))}.styles-layout:first-of-type{border-top-right-radius:0.375rem;border-top-left-radius:0.375rem}.styles-layout:last-of-type{border-bottom-right-radius:0.375rem;border-bottom-left-radius:0.375rem;border-bottom-width:1px}.styles-layout:nth-of-type(odd){background-color:rgb(var(--kompendium-contrast-400))}.styles-title code{font-family:var(--kompendium-font-code);border-radius:0.25rem;border:1px solid rgba(var(--kompendium-contrast-1100), 0.1);font-size:0.6875rem;white-space:pre-wrap;color:rgb(var(--kompendium-contrast-1100));padding:0.125rem 0.3125rem;margin:0 0.125rem;background:rgba(var(--kompendium-contrast-1100), 0.05)}@media (max-width: 800px){.styles-layout{grid-auto-flow:row;grid-template-columns:unset;grid-gap:0.75rem 0}}:host{display:block}.docs kompendium-markdown{display:block;width:100%;max-width:60rem}";
49
+
50
+ const Type = class {
51
+ constructor(hostRef) {
52
+ registerInstance(this, hostRef);
53
+ }
54
+ componentWillRender() {
55
+ this.findType();
56
+ }
57
+ render() {
58
+ if (!this.type) {
59
+ return;
60
+ }
61
+ const type = this.type;
62
+ const componentMap = {
63
+ interface: Interface,
64
+ alias: Alias,
65
+ enum: Enum,
66
+ class: Interface,
67
+ };
68
+ const TypeComponent = componentMap[this.type.type];
69
+ return (h("article", { class: "type" }, h("section", { class: "docs" }, h(TypeComponent, { type: type }))));
70
+ }
71
+ findType() {
72
+ const type = this.types.find((type) => type.name === this.match.params.name);
73
+ if (type) {
74
+ this.type = type;
75
+ }
76
+ }
77
+ };
78
+ Type.style = componentCss;
79
+
80
+ export { Type as kompendium_type };
81
+ //# sourceMappingURL=kompendium-type.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kompendium-type.entry.js","sources":["src/components/type/templates/interface.tsx","src/components/type/templates/alias.tsx","src/components/type/templates/enum.tsx","src/components/component/component.scss?tag=kompendium-type&encapsulation=shadow","src/components/type/type.tsx"],"sourcesContent":["import { h } from '@stencil/core';\nimport { InterfaceDescription } from '../../../types';\nimport { PropertyList } from '../../component/templates/props';\nimport { MethodList } from '../../component/templates/methods';\n\nexport function Interface({\n type,\n}: {\n type: InterfaceDescription;\n}): HTMLElement[] {\n return [\n <h1 id={type.name}>{type.name}</h1>,\n <kompendium-markdown text={type.docs} />,\n <kompendium-taglist tags={type.docsTags} />,\n <PropertyList props={type.props} />,\n <MethodList methods={type.methods} />,\n ];\n}\n","import { h } from '@stencil/core';\nimport { AliasDescription } from '../../../types';\n\nexport function Alias({ type }: { type: AliasDescription }): HTMLElement[] {\n const alias = '`' + type.alias + '`';\n\n return [\n <h1 id={type.name}>{type.name}</h1>,\n <kompendium-markdown text={type.docs} />,\n <kompendium-taglist tags={type.docsTags} />,\n <kompendium-markdown text={alias} />,\n ];\n}\n","import { h } from '@stencil/core';\nimport { EnumDescription, EnumMember } from '../../../types';\nimport { ProplistItem } from '../../proplist/proplist';\n\nexport function Enum({ type }: { type: EnumDescription }): HTMLElement[] {\n return [\n <h1 id={type.name}>{type.name}</h1>,\n <kompendium-markdown text={type.docs} />,\n <kompendium-taglist tags={type.docsTags} />,\n <MemberList members={type.members} />,\n ];\n}\n\nfunction MemberList({ members }: { members: EnumMember[] }): HTMLElement[] {\n if (!members.length) {\n return;\n }\n\n return [<h3>Members</h3>, ...members.map(renderMember)];\n}\n\nfunction renderMember(member: EnumMember) {\n const items: ProplistItem[] = [\n {\n key: 'Value',\n value: member.value,\n },\n ];\n\n return (\n <div>\n <h4>{member.name}</h4>\n <kompendium-markdown text={member.docs} />\n <kompendium-taglist tags={member.docsTags} />\n <kompendium-proplist items={items} />\n </div>\n );\n}\n","@use '../../style/reset.scss';\n@use '../../style/variables.scss';\n@use '../../style/mixins.scss';\n@use '../../style/functions.scss';\n@use '../../style/typography.scss';\n@use '../../style/global-layout-rules.scss';\n\n:host {\n display: block;\n}\n\n.docs {\n kompendium-markdown {\n display: block;\n width: 100%;\n max-width: functions.pxToRem(960);\n }\n}\n","import { Component, h, Prop, State } from '@stencil/core';\nimport { TypeDescription, TypeDescriptionType } from '../../types';\nimport { MatchResults } from '@limetech/stencil-router';\nimport { Interface } from './templates/interface';\nimport { Alias } from './templates/alias';\nimport { Enum } from './templates/enum';\n\n@Component({\n tag: 'kompendium-type',\n shadow: true,\n styleUrl: '../component/component.scss',\n})\nexport class Type {\n /**\n */\n @Prop()\n public types: TypeDescription[];\n\n /**\n * Matched route parameters\n */\n @Prop()\n public match: MatchResults;\n\n @State()\n private type: TypeDescription;\n\n public componentWillRender(): void {\n this.findType();\n }\n\n render(): HTMLElement {\n if (!this.type) {\n return;\n }\n\n const type: any = this.type;\n const componentMap: Record<TypeDescriptionType, any> = {\n interface: Interface,\n alias: Alias,\n enum: Enum,\n class: Interface,\n };\n const TypeComponent = componentMap[this.type.type];\n\n return (\n <article class=\"type\">\n <section class=\"docs\">\n <TypeComponent type={type} />\n </section>\n </article>\n );\n }\n\n private findType() {\n const type = this.types.find(\n (type) => type.name === this.match.params.name,\n );\n\n if (type) {\n this.type = type;\n }\n }\n}\n"],"names":[],"mappings":";;;AAKgB,SAAA,SAAS,CAAC,EACtB,IAAI,GAGP,EAAA;IACG,OAAO;AACH,QAAA,CAAI,CAAA,IAAA,EAAA,EAAA,EAAE,EAAE,IAAI,CAAC,IAAI,EAAG,EAAA,IAAI,CAAC,IAAI,CAAM;QACnC,CAAA,CAAA,qBAAA,EAAA,EAAqB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAI,CAAA;QACxC,CAAA,CAAA,oBAAA,EAAA,EAAoB,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAI,CAAA;QAC3C,CAAA,CAAC,YAAY,EAAC,EAAA,KAAK,EAAE,IAAI,CAAC,KAAK,EAAI,CAAA;QACnC,CAAA,CAAC,UAAU,EAAC,EAAA,OAAO,EAAE,IAAI,CAAC,OAAO,EAAI,CAAA;KACxC;AACL;;ACdgB,SAAA,KAAK,CAAC,EAAE,IAAI,EAA8B,EAAA;IACtD,MAAM,KAAK,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N,YAAA,IAAI,CAAC,IAAI,GAAG,IAAI;;;;;;;;"}
@@ -0,0 +1,21 @@
1
+ import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-9UrzenzW.js';
2
+ export { s as setNonce } from './index-9UrzenzW.js';
3
+
4
+ /*
5
+ Stencil Client Patch Browser v4.38.0 | MIT Licensed | https://stenciljs.com
6
+ */
7
+
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
15
+ };
16
+
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
19
+ return bootstrapLazy([["kompendium-component",[[257,"kompendium-component",{"docs":[16],"schemas":[16],"match":[16],"examplePropsFactory":[16]}]]],["kompendium-type",[[257,"kompendium-type",{"types":[16],"match":[16],"type":[32]}]]],["kompendium-example-code",[[257,"kompendium-example-code"]]],["kompendium-example-markdown",[[257,"kompendium-example-markdown"]]],["kompendium-guide",[[257,"kompendium-guide",{"data":[16],"route":[32]}]]],["kompendium-debug",[[257,"kompendium-debug",{"docs":[16],"schemas":[16],"match":[16],"examplePropsFactory":[16]}]]],["kompendium-code",[[257,"kompendium-code",{"language":[1],"code":[32]}]]],["kompendium-markdown",[[257,"kompendium-markdown",{"text":[1]}]]],["kompendium-playground",[[257,"kompendium-playground",{"component":[16],"schema":[16],"propsFactory":[16],"activeTab":[32],"theme":[32]}]]],["kompendium-proplist_2",[[257,"kompendium-proplist",{"items":[16]}],[257,"kompendium-taglist",{"tags":[16],"compact":[4]}]]],["kompendium-app_7",[[257,"kompendium-app",{"path":[1],"examplePropsFactory":[16],"data":[32],"index":[32]},null,{"data":["watchData"]}],[257,"kompendium-navigation",{"menu":[16],"header":[1],"logo":[1],"index":[8],"route":[32],"displayNavPanel":[32]}],[260,"stencil-route",{"url":[1],"component":[1],"componentProps":[16],"routeRender":[16],"currentPath":[32]}],[260,"stencil-route-switch",{"scrollTopOffset":[2,"scroll-top-offset"],"currentPath":[32]}],[260,"stencil-router"],[257,"kompendium-darkmode-switch",{"theme":[32],"systemSettingIsDark":[32]}],[257,"kompendium-search",{"index":[8],"documents":[32]}]]]], options);
20
+ });
21
+ //# sourceMappingURL=kompendium.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kompendium.js","sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.38.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
@@ -0,0 +1,11 @@
1
+ import { g as globalScripts, b as bootstrapLazy } from './index-9UrzenzW.js';
2
+ export { s as setNonce } from './index-9UrzenzW.js';
3
+
4
+ const defineCustomElements = async (win, options) => {
5
+ if (typeof window === 'undefined') return undefined;
6
+ await globalScripts();
7
+ return bootstrapLazy([["kompendium-component",[[257,"kompendium-component",{"docs":[16],"schemas":[16],"match":[16],"examplePropsFactory":[16]}]]],["kompendium-type",[[257,"kompendium-type",{"types":[16],"match":[16],"type":[32]}]]],["kompendium-example-code",[[257,"kompendium-example-code"]]],["kompendium-example-markdown",[[257,"kompendium-example-markdown"]]],["kompendium-guide",[[257,"kompendium-guide",{"data":[16],"route":[32]}]]],["kompendium-debug",[[257,"kompendium-debug",{"docs":[16],"schemas":[16],"match":[16],"examplePropsFactory":[16]}]]],["kompendium-code",[[257,"kompendium-code",{"language":[1],"code":[32]}]]],["kompendium-markdown",[[257,"kompendium-markdown",{"text":[1]}]]],["kompendium-playground",[[257,"kompendium-playground",{"component":[16],"schema":[16],"propsFactory":[16],"activeTab":[32],"theme":[32]}]]],["kompendium-proplist_2",[[257,"kompendium-proplist",{"items":[16]}],[257,"kompendium-taglist",{"tags":[16],"compact":[4]}]]],["kompendium-app_7",[[257,"kompendium-app",{"path":[1],"examplePropsFactory":[16],"data":[32],"index":[32]},null,{"data":["watchData"]}],[257,"kompendium-navigation",{"menu":[16],"header":[1],"logo":[1],"index":[8],"route":[32],"displayNavPanel":[32]}],[260,"stencil-route",{"url":[1],"component":[1],"componentProps":[16],"routeRender":[16],"currentPath":[32]}],[260,"stencil-route-switch",{"scrollTopOffset":[2,"scroll-top-offset"],"currentPath":[32]}],[260,"stencil-router"],[257,"kompendium-darkmode-switch",{"theme":[32],"systemSettingIsDark":[32]}],[257,"kompendium-search",{"index":[8],"documents":[32]}]]]], options);
8
+ };
9
+
10
+ export { defineCustomElements };
11
+ //# sourceMappingURL=loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":[],"mappings":";;;AAGY,MAAC,oBAAoB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS;AACrD,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D;;;;"}
@@ -0,0 +1,12 @@
1
+ let types = [];
2
+ function getTypes() {
3
+ return types;
4
+ }
5
+ function setTypes(newTypes) {
6
+ types = newTypes;
7
+ }
8
+
9
+ export { getTypes as g, setTypes as s };
10
+ //# sourceMappingURL=markdown-types-Ajsawr_9.js.map
11
+
12
+ //# sourceMappingURL=markdown-types-Ajsawr_9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-types-Ajsawr_9.js","sources":["src/components/markdown/markdown-types.ts"],"sourcesContent":["let types: string[] = [];\n\nexport function getTypes(): string[] {\n return types;\n}\n\nexport function setTypes(newTypes: string[]): void {\n types = newTypes;\n}\n"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAa,EAAE;SAER,QAAQ,GAAA;AACpB,IAAA,OAAO,KAAK;AAChB;AAEM,SAAU,QAAQ,CAAC,QAAkB,EAAA;IACvC,KAAK,GAAG,QAAQ;AACpB;;;;"}
@@ -0,0 +1,94 @@
1
+ import { h } from './index-9UrzenzW.js';
2
+
3
+ function PropertyList({ props, id, }) {
4
+ if (!props.length) {
5
+ return;
6
+ }
7
+ return [
8
+ h("h3", { class: "docs-layout-section-heading", id: id }, "Properties"),
9
+ ...props.map(renderProperty),
10
+ ];
11
+ }
12
+ function renderProperty(property) {
13
+ const items = [
14
+ {
15
+ key: 'Type',
16
+ value: property.type,
17
+ },
18
+ {
19
+ key: 'Attribute name',
20
+ value: property.attr,
21
+ },
22
+ {
23
+ key: 'Default value',
24
+ value: property.default,
25
+ },
26
+ {
27
+ key: 'Optional',
28
+ value: String(property.optional),
29
+ },
30
+ {
31
+ key: 'Required',
32
+ value: String(property.required),
33
+ },
34
+ ].filter((item) => item.value !== undefined && item.value !== 'undefined');
35
+ return (h("div", { class: "props-events-layout" }, h("h4", null, property.name), h("kompendium-taglist", { tags: property.docsTags }), h("div", { class: "markdown-props" }, h("kompendium-markdown", { text: property.docs }), h("kompendium-proplist", { items: items }))));
36
+ }
37
+
38
+ function MethodList({ methods, id, }) {
39
+ if (!methods.length) {
40
+ return;
41
+ }
42
+ return [
43
+ h("h3", { class: "docs-layout-section-heading", id: id }, "Methods"),
44
+ ...methods.map(renderMethod),
45
+ ];
46
+ }
47
+ function renderMethod(method) {
48
+ const items = [
49
+ {
50
+ key: 'Signature',
51
+ value: method.signature,
52
+ },
53
+ ].filter((item) => item.value !== undefined);
54
+ return (h("div", { class: "methods-layout" }, h("h4", { class: "methods-title" }, method.name), h("div", { class: "methods-content" }, h("div", null, h("kompendium-markdown", { text: method.docs })), h("div", null, h("kompendium-taglist", { tags: method.docsTags }), h("kompendium-proplist", { items: items }), h(ParamList, { params: method.parameters }))), h("div", { class: "methods-returns" }, h(Returns, { value: method.returns }))));
55
+ }
56
+ function ParamList({ params }) {
57
+ if (!params.length) {
58
+ return;
59
+ }
60
+ return [h("h5", null, "Parameters"), ...params.map(renderParam)];
61
+ }
62
+ function renderParam(param) {
63
+ const items = [
64
+ {
65
+ key: 'Type',
66
+ value: param.type,
67
+ },
68
+ {
69
+ key: 'Optional',
70
+ value: String(param.optional),
71
+ },
72
+ {
73
+ key: 'Default',
74
+ value: param.default,
75
+ },
76
+ ].filter((item) => item.value !== undefined);
77
+ return (h("div", null, h("h6", null, param.name), h("kompendium-markdown", { text: param.docs }), h("kompendium-proplist", { items: items })));
78
+ }
79
+ function Returns({ value }) {
80
+ if (!value) {
81
+ return;
82
+ }
83
+ const type = '`' + value.type + '`';
84
+ return [
85
+ h("h5", null, "Returns"),
86
+ h("kompendium-markdown", { text: value.docs }),
87
+ h("kompendium-markdown", { text: type }),
88
+ ];
89
+ }
90
+
91
+ export { MethodList as M, PropertyList as P };
92
+ //# sourceMappingURL=methods-BAjd6f7g.js.map
93
+
94
+ //# sourceMappingURL=methods-BAjd6f7g.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"methods-BAjd6f7g.js","sources":["src/components/component/templates/props.tsx","src/components/component/templates/methods.tsx"],"sourcesContent":["import { JsonDocsProp } from '@stencil/core/internal';\nimport { h } from '@stencil/core';\nimport { ProplistItem } from '../../proplist/proplist';\n\nexport function PropertyList({\n props,\n id,\n}: {\n id?: string;\n props: Array<Partial<JsonDocsProp>>;\n}): HTMLElement[] {\n if (!props.length) {\n return;\n }\n\n return [\n <h3 class=\"docs-layout-section-heading\" id={id}>\n Properties\n </h3>,\n ...props.map(renderProperty),\n ];\n}\n\nfunction renderProperty(property: JsonDocsProp) {\n const items: ProplistItem[] = [\n {\n key: 'Type',\n value: property.type,\n },\n {\n key: 'Attribute name',\n value: property.attr,\n },\n {\n key: 'Default value',\n value: property.default,\n },\n {\n key: 'Optional',\n value: String(property.optional),\n },\n {\n key: 'Required',\n value: String(property.required),\n },\n ].filter((item) => item.value !== undefined && item.value !== 'undefined');\n\n return (\n <div class=\"props-events-layout\">\n <h4>{property.name}</h4>\n <kompendium-taglist tags={property.docsTags} />\n <div class=\"markdown-props\">\n <kompendium-markdown text={property.docs} />\n <kompendium-proplist items={items} />\n </div>\n </div>\n );\n}\n","import {\n JsonDocsMethod,\n JsonDocMethodParameter,\n JsonDocsMethodReturn,\n} from '@stencil/core/internal';\nimport { h } from '@stencil/core';\nimport { ProplistItem } from '../../proplist/proplist';\nimport { ParameterDescription } from '../../../types';\n\nexport function MethodList({\n methods,\n id,\n}: {\n id?: string;\n methods: Array<Partial<JsonDocsMethod>>;\n}): HTMLElement[] {\n if (!methods.length) {\n return;\n }\n\n return [\n <h3 class=\"docs-layout-section-heading\" id={id}>\n Methods\n </h3>,\n ...methods.map(renderMethod),\n ];\n}\n\nfunction renderMethod(method: JsonDocsMethod) {\n const items: ProplistItem[] = [\n {\n key: 'Signature',\n value: method.signature,\n },\n ].filter((item) => item.value !== undefined);\n\n return (\n <div class=\"methods-layout\">\n <h4 class=\"methods-title\">{method.name}</h4>\n <div class=\"methods-content\">\n <div>\n <kompendium-markdown text={method.docs} />\n </div>\n <div>\n <kompendium-taglist tags={method.docsTags} />\n <kompendium-proplist items={items} />\n <ParamList params={method.parameters} />\n </div>\n </div>\n <div class=\"methods-returns\">\n <Returns value={method.returns} />\n </div>\n </div>\n );\n}\n\nfunction ParamList({ params }: { params: JsonDocMethodParameter[] }) {\n if (!params.length) {\n return;\n }\n\n return [<h5>Parameters</h5>, ...params.map(renderParam)];\n}\n\nfunction renderParam(param: ParameterDescription) {\n const items: ProplistItem[] = [\n {\n key: 'Type',\n value: param.type,\n },\n {\n key: 'Optional',\n value: String(param.optional),\n },\n {\n key: 'Default',\n value: param.default,\n },\n ].filter((item) => item.value !== undefined);\n\n return (\n <div>\n <h6>{param.name}</h6>\n <kompendium-markdown text={param.docs} />\n <kompendium-proplist items={items} />\n </div>\n );\n}\n\nfunction Returns({ value }: { value: JsonDocsMethodReturn }) {\n if (!value) {\n return;\n }\n\n const type = '`' + value.type + '`';\n\n return [\n <h5>Returns</h5>,\n <kompendium-markdown text={value.docs} />,\n <kompendium-markdown text={type} />,\n ];\n}\n"],"names":[],"mappings":";;SAIgB,YAAY,CAAC,EACzB,KAAK,EACL,EAAE,GAIL,EAAA;AACG,IAAA,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;QACf;;IAGJ,OAAO;AACH,QAAA,CAAA,CAAA,IAAA,EAAA,EAAI,KAAK,EAAC,6BAA6B,EAAC,EAAE,EAAE,EAAE,EAEzC,EAAA,YAAA,CAAA;AACL,QAAA,GAAG,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC;KAC/B;AACL;AAEA,SAAS,cAAc,CAAC,QAAsB,EAAA;AAC1C,IAAA,MAAM,KAAK,GAAmB;AAC1B,QAAA;AACI,YAAA,GAAG,EAAE,MAAM;YACX,KAAK,EAAE,QAAQ,CAAC,IAAI;AACvB,SAAA;AACD,QAAA;AACI,YAAA,GAAG,EAAE,gBAAgB;YACrB,KAAK,EAAE,QAAQ,CAAC,IAAI;AACvB,SAAA;AACD,QAAA;AACI,YAAA,GAAG,EAAE,eAAe;YACpB,KAAK,EAAE,QAAQ,CAAC,OAAO;AAC1B,SAAA;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X,KAAK,EAAE,KAAK,CAAC,IAAI;AACpB,SAAA;AACD,QAAA;AACI,YAAA,GAAG,EAAE,UAAU;AACf,YAAA,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;AAChC,SAAA;AACD,QAAA;AACI,YAAA,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,KAAK,CAAC,OAAO;AACvB,SAAA;AACJ,KAAA,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC;AAE5C,IAAA,QACI,CAAA,CAAA,KAAA,EAAA,IAAA,EACI,CAAK,CAAA,IAAA,EAAA,IAAA,EAAA,KAAK,CAAC,IAAI,CAAM,EACrB,CAAA,CAAA,qBAAA,EAAA,EAAqB,IAAI,EAAE,KAAK,CAAC,IAAI,EAAI,CAAA,EACzC,CAAA,CAAA,qBAAA,EAAA,EAAqB,KAAK,EAAE,KAAK,EAAI,CAAA,CACnC;AAEd;AAEA,SAAS,OAAO,CAAC,EAAE,KAAK,EAAmC,EAAA;IACvD,IAAI,CAAC,KAAK,EAAE;QACR;;IAGJ,MAAM,IAAI,GAAG,GAAG,GAAG,KAAK,CAAC,IAAI,GAAG,GAAG;IAEnC,OAAO;AACH,QAAA,CAAgB,CAAA,IAAA,EAAA,IAAA,EAAA,SAAA,CAAA;QAChB,CAAA,CAAA,qBAAA,EAAA,EAAqB,IAAI,EAAE,KAAK,CAAC,IAAI,EAAI,CAAA;QACzC,CAAqB,CAAA,qBAAA,EAAA,EAAA,IAAI,EAAE,IAAI,EAAI,CAAA;KACtC;AACL;;;;"}
@@ -0,0 +1,6 @@
1
+ const THEME_EVENT_NAME = 'kompendiumTheme';
2
+
3
+ export { THEME_EVENT_NAME as T };
4
+ //# sourceMappingURL=types-BIPLEi1G.js.map
5
+
6
+ //# sourceMappingURL=types-BIPLEi1G.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-BIPLEi1G.js","sources":["src/components/darkmode-switch/types.ts"],"sourcesContent":["export type Theme = 'system-default' | 'force-light' | 'force-dark';\nexport const THEME_EVENT_NAME = 'kompendiumTheme';\n"],"names":[],"mappings":"AACO,MAAM,gBAAgB,GAAG;;;;"}
@@ -0,0 +1,9 @@
1
+ import { access, constants } from 'fs';
2
+
3
+ export function exists(path: string): Promise<boolean> {
4
+ return new Promise((resolve) => {
5
+ access(path, constants.F_OK, (error) => {
6
+ resolve(!error);
7
+ });
8
+ });
9
+ }