@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.
- package/LICENSE +21 -0
- package/README.md +313 -0
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +13 -0
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js.map +1 -0
- package/dist/cjs/anchor-scroll-BmplAyR0.js +69 -0
- package/dist/cjs/anchor-scroll-BmplAyR0.js.map +1 -0
- package/dist/cjs/index-DYiJ6dQL.js +1866 -0
- package/dist/cjs/index-DYiJ6dQL.js.map +1 -0
- package/dist/cjs/index.cjs.js +3 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- 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
- package/dist/cjs/kompendium-app_7.cjs.entry.js +2924 -0
- package/dist/cjs/kompendium-code.cjs.entry.js +2724 -0
- package/dist/cjs/kompendium-code.entry.cjs.js.map +1 -0
- package/dist/cjs/kompendium-component.cjs.entry.js +207 -0
- package/dist/cjs/kompendium-component.entry.cjs.js.map +1 -0
- package/dist/cjs/kompendium-debug.cjs.entry.js +47 -0
- package/dist/cjs/kompendium-debug.entry.cjs.js.map +1 -0
- package/dist/cjs/kompendium-example-code.cjs.entry.js +20 -0
- package/dist/cjs/kompendium-example-code.entry.cjs.js.map +1 -0
- package/dist/cjs/kompendium-example-markdown.cjs.entry.js +165 -0
- package/dist/cjs/kompendium-example-markdown.entry.cjs.js.map +1 -0
- package/dist/cjs/kompendium-guide.cjs.entry.js +33 -0
- package/dist/cjs/kompendium-guide.entry.cjs.js.map +1 -0
- package/dist/cjs/kompendium-markdown.cjs.entry.js +48923 -0
- package/dist/cjs/kompendium-markdown.entry.cjs.js.map +1 -0
- package/dist/cjs/kompendium-playground.cjs.entry.js +89 -0
- package/dist/cjs/kompendium-playground.entry.cjs.js.map +1 -0
- package/dist/cjs/kompendium-proplist.kompendium-taglist.entry.cjs.js.map +1 -0
- package/dist/cjs/kompendium-proplist_2.cjs.entry.js +49 -0
- package/dist/cjs/kompendium-type.cjs.entry.js +83 -0
- package/dist/cjs/kompendium-type.entry.cjs.js.map +1 -0
- package/dist/cjs/kompendium.cjs.js +25 -0
- package/dist/cjs/kompendium.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/markdown-types-B884tLd-.js +15 -0
- package/dist/cjs/markdown-types-B884tLd-.js.map +1 -0
- package/dist/cjs/methods-DoA78dOH.js +97 -0
- package/dist/cjs/methods-DoA78dOH.js.map +1 -0
- package/dist/cjs/types-SjA7Kcy_.js +8 -0
- package/dist/cjs/types-SjA7Kcy_.js.map +1 -0
- package/dist/collection/assets/favicon.svg +65 -0
- package/dist/collection/assets/icons/bookmark-fill.svg +1 -0
- package/dist/collection/assets/icons/danger.svg +1 -0
- package/dist/collection/assets/icons/debug.svg +1 -0
- package/dist/collection/assets/icons/important.svg +1 -0
- package/dist/collection/assets/icons/info.svg +1 -0
- package/dist/collection/assets/icons/logo.svg +1 -0
- package/dist/collection/assets/icons/note.svg +1 -0
- package/dist/collection/assets/icons/search.svg +1 -0
- package/dist/collection/assets/icons/tip.svg +1 -0
- package/dist/collection/assets/icons/warning.svg +1 -0
- package/dist/collection/assets/logotype.svg +64 -0
- package/dist/collection/collection-manifest.json +35 -0
- package/dist/collection/components/anchor-scroll.js +61 -0
- package/dist/collection/components/anchor-scroll.js.map +1 -0
- package/dist/collection/components/app/app.css +125 -0
- package/dist/collection/components/app/app.js +149 -0
- package/dist/collection/components/app/app.js.map +1 -0
- package/dist/collection/components/code/code.css +250 -0
- package/dist/collection/components/code/code.js +82 -0
- package/dist/collection/components/code/code.js.map +1 -0
- package/dist/collection/components/code/examples/code.js +14 -0
- package/dist/collection/components/code/examples/code.js.map +1 -0
- package/dist/collection/components/component/component.css +383 -0
- package/dist/collection/components/component/component.js +191 -0
- package/dist/collection/components/component/component.js.map +1 -0
- package/dist/collection/components/component/templates/events.js +32 -0
- package/dist/collection/components/component/templates/events.js.map +1 -0
- package/dist/collection/components/component/templates/examples.js +17 -0
- package/dist/collection/components/component/templates/examples.js.map +1 -0
- package/dist/collection/components/component/templates/methods.js +54 -0
- package/dist/collection/components/component/templates/methods.js.map +1 -0
- package/dist/collection/components/component/templates/props.js +36 -0
- package/dist/collection/components/component/templates/props.js.map +1 -0
- package/dist/collection/components/component/templates/slots.js +14 -0
- package/dist/collection/components/component/templates/slots.js.map +1 -0
- package/dist/collection/components/component/templates/style.js +14 -0
- package/dist/collection/components/component/templates/style.js.map +1 -0
- package/dist/collection/components/darkmode-switch/darkmode-switch.css +141 -0
- package/dist/collection/components/darkmode-switch/darkmode-switch.js +90 -0
- package/dist/collection/components/darkmode-switch/darkmode-switch.js.map +1 -0
- package/dist/collection/components/darkmode-switch/types.js +2 -0
- package/dist/collection/components/darkmode-switch/types.js.map +1 -0
- package/dist/collection/components/debug/debug.js +146 -0
- package/dist/collection/components/debug/debug.js.map +1 -0
- package/dist/collection/components/guide/guide.js +61 -0
- package/dist/collection/components/guide/guide.js.map +1 -0
- package/dist/collection/components/markdown/examples/markdown-example.js +150 -0
- package/dist/collection/components/markdown/examples/markdown-example.js.map +1 -0
- package/dist/collection/components/markdown/examples/markdown.js +14 -0
- package/dist/collection/components/markdown/examples/markdown.js.map +1 -0
- package/dist/collection/components/markdown/markdown-types.js +8 -0
- package/dist/collection/components/markdown/markdown-types.js.map +1 -0
- package/dist/collection/components/markdown/markdown.css +660 -0
- package/dist/collection/components/markdown/markdown.js +83 -0
- package/dist/collection/components/markdown/markdown.js.map +1 -0
- package/dist/collection/components/navigation/navigation.css +403 -0
- package/dist/collection/components/navigation/navigation.js +184 -0
- package/dist/collection/components/navigation/navigation.js.map +1 -0
- package/dist/collection/components/playground/playground.css +198 -0
- package/dist/collection/components/playground/playground.js +174 -0
- package/dist/collection/components/playground/playground.js.map +1 -0
- package/dist/collection/components/playground/playground.types.js +2 -0
- package/dist/collection/components/playground/playground.types.js.map +1 -0
- package/dist/collection/components/proplist/proplist.css +334 -0
- package/dist/collection/components/proplist/proplist.js +53 -0
- package/dist/collection/components/proplist/proplist.js.map +1 -0
- package/dist/collection/components/search/search.css +183 -0
- package/dist/collection/components/search/search.js +76 -0
- package/dist/collection/components/search/search.js.map +1 -0
- package/dist/collection/components/taglist/taglist.css +58 -0
- package/dist/collection/components/taglist/taglist.js +82 -0
- package/dist/collection/components/taglist/taglist.js.map +1 -0
- package/dist/collection/components/type/templates/alias.js +11 -0
- package/dist/collection/components/type/templates/alias.js.map +1 -0
- package/dist/collection/components/type/templates/enum.js +25 -0
- package/dist/collection/components/type/templates/enum.js.map +1 -0
- package/dist/collection/components/type/templates/interface.js +13 -0
- package/dist/collection/components/type/templates/interface.js.map +1 -0
- package/dist/collection/components/type/type.js +97 -0
- package/dist/collection/components/type/type.js.map +1 -0
- package/dist/collection/index.js +4 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/kompendium/config.js +7 -0
- package/dist/collection/kompendium/config.js.map +1 -0
- package/dist/collection/kompendium/filesystem.js +9 -0
- package/dist/collection/kompendium/filesystem.js.map +1 -0
- package/dist/collection/kompendium/generator.js +217 -0
- package/dist/collection/kompendium/generator.js.map +1 -0
- package/dist/collection/kompendium/guides.js +30 -0
- package/dist/collection/kompendium/guides.js.map +1 -0
- package/dist/collection/kompendium/index.js +2 -0
- package/dist/collection/kompendium/index.js.map +1 -0
- package/dist/collection/kompendium/markdown-admonitions.js +82 -0
- package/dist/collection/kompendium/markdown-admonitions.js.map +1 -0
- package/dist/collection/kompendium/markdown-code.js +40 -0
- package/dist/collection/kompendium/markdown-code.js.map +1 -0
- package/dist/collection/kompendium/markdown-frontmatter.js +12 -0
- package/dist/collection/kompendium/markdown-frontmatter.js.map +1 -0
- package/dist/collection/kompendium/markdown-nodes.js +10 -0
- package/dist/collection/kompendium/markdown-nodes.js.map +1 -0
- package/dist/collection/kompendium/markdown-typelinks.js +115 -0
- package/dist/collection/kompendium/markdown-typelinks.js.map +1 -0
- package/dist/collection/kompendium/markdown.js +35 -0
- package/dist/collection/kompendium/markdown.js.map +1 -0
- package/dist/collection/kompendium/menu.js +149 -0
- package/dist/collection/kompendium/menu.js.map +1 -0
- package/dist/collection/kompendium/schema.js +167 -0
- package/dist/collection/kompendium/schema.js.map +1 -0
- package/dist/collection/kompendium/search.js +144 -0
- package/dist/collection/kompendium/search.js.map +1 -0
- package/dist/collection/kompendium/source.js +81 -0
- package/dist/collection/kompendium/source.js.map +1 -0
- package/dist/collection/kompendium/test/fixtures/basic.js +48 -0
- package/dist/collection/kompendium/test/fixtures/basic.js.map +1 -0
- package/dist/collection/kompendium/test/fixtures/filtering/example-type.js +2 -0
- package/dist/collection/kompendium/test/fixtures/filtering/example-type.js.map +1 -0
- package/dist/collection/kompendium/test/fixtures/filtering/node-modules-type.js +2 -0
- package/dist/collection/kompendium/test/fixtures/filtering/node-modules-type.js.map +1 -0
- package/dist/collection/kompendium/test/fixtures/filtering/private-types.js +2 -0
- package/dist/collection/kompendium/test/fixtures/filtering/private-types.js.map +1 -0
- package/dist/collection/kompendium/test/fixtures/filtering/stencil-component-types.js +2 -0
- package/dist/collection/kompendium/test/fixtures/filtering/stencil-component-types.js.map +1 -0
- package/dist/collection/kompendium/test/fixtures/filtering/test-helper-type.js +2 -0
- package/dist/collection/kompendium/test/fixtures/filtering/test-helper-type.js.map +1 -0
- package/dist/collection/kompendium/test/fixtures/filtering/valid-types.js +29 -0
- package/dist/collection/kompendium/test/fixtures/filtering/valid-types.js.map +1 -0
- package/dist/collection/kompendium/typedoc.js +481 -0
- package/dist/collection/kompendium/typedoc.js.map +1 -0
- package/dist/collection/kompendium/watch.js +9 -0
- package/dist/collection/kompendium/watch.js.map +1 -0
- package/dist/collection/types.js +2 -0
- package/dist/collection/types.js.map +1 -0
- package/dist/config.ts +8 -0
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +10 -0
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js.map +1 -0
- package/dist/esm/anchor-scroll-BAGXN2n6.js +65 -0
- package/dist/esm/anchor-scroll-BAGXN2n6.js.map +1 -0
- package/dist/esm/index-9UrzenzW.js +1857 -0
- package/dist/esm/index-9UrzenzW.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.js.map +1 -0
- package/dist/esm/kompendium-app_7.entry.js +2916 -0
- package/dist/esm/kompendium-code.entry.js +2722 -0
- package/dist/esm/kompendium-code.entry.js.map +1 -0
- package/dist/esm/kompendium-component.entry.js +205 -0
- package/dist/esm/kompendium-component.entry.js.map +1 -0
- package/dist/esm/kompendium-debug.entry.js +45 -0
- package/dist/esm/kompendium-debug.entry.js.map +1 -0
- package/dist/esm/kompendium-example-code.entry.js +18 -0
- package/dist/esm/kompendium-example-code.entry.js.map +1 -0
- package/dist/esm/kompendium-example-markdown.entry.js +163 -0
- package/dist/esm/kompendium-example-markdown.entry.js.map +1 -0
- package/dist/esm/kompendium-guide.entry.js +31 -0
- package/dist/esm/kompendium-guide.entry.js.map +1 -0
- package/dist/esm/kompendium-markdown.entry.js +48921 -0
- package/dist/esm/kompendium-markdown.entry.js.map +1 -0
- package/dist/esm/kompendium-playground.entry.js +87 -0
- package/dist/esm/kompendium-playground.entry.js.map +1 -0
- package/dist/esm/kompendium-proplist.kompendium-taglist.entry.js.map +1 -0
- package/dist/esm/kompendium-proplist_2.entry.js +46 -0
- package/dist/esm/kompendium-type.entry.js +81 -0
- package/dist/esm/kompendium-type.entry.js.map +1 -0
- package/dist/esm/kompendium.js +21 -0
- package/dist/esm/kompendium.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/markdown-types-Ajsawr_9.js +12 -0
- package/dist/esm/markdown-types-Ajsawr_9.js.map +1 -0
- package/dist/esm/methods-BAjd6f7g.js +94 -0
- package/dist/esm/methods-BAjd6f7g.js.map +1 -0
- package/dist/esm/types-BIPLEi1G.js +6 -0
- package/dist/esm/types-BIPLEi1G.js.map +1 -0
- package/dist/filesystem.ts +9 -0
- package/dist/generator.ts +302 -0
- package/dist/guides.ts +49 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/index.ts +1 -0
- package/dist/kompendium/index.esm.js +2 -0
- package/dist/kompendium/index.esm.js.map +1 -0
- 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
- package/dist/kompendium/kompendium-code.entry.esm.js.map +1 -0
- package/dist/kompendium/kompendium-component.entry.esm.js.map +1 -0
- package/dist/kompendium/kompendium-debug.entry.esm.js.map +1 -0
- package/dist/kompendium/kompendium-example-code.entry.esm.js.map +1 -0
- package/dist/kompendium/kompendium-example-markdown.entry.esm.js.map +1 -0
- package/dist/kompendium/kompendium-guide.entry.esm.js.map +1 -0
- package/dist/kompendium/kompendium-markdown.entry.esm.js.map +1 -0
- package/dist/kompendium/kompendium-playground.entry.esm.js.map +1 -0
- package/dist/kompendium/kompendium-proplist.kompendium-taglist.entry.esm.js.map +1 -0
- package/dist/kompendium/kompendium-type.entry.esm.js.map +1 -0
- package/dist/kompendium/kompendium.css +47 -0
- package/dist/kompendium/kompendium.esm.js +2 -0
- package/dist/kompendium/kompendium.esm.js.map +1 -0
- package/dist/kompendium/loader.esm.js.map +1 -0
- package/dist/kompendium/p-15e4b2c0.entry.js +2 -0
- package/dist/kompendium/p-15e4b2c0.entry.js.map +1 -0
- package/dist/kompendium/p-1cf0168f.entry.js +2 -0
- package/dist/kompendium/p-1cf0168f.entry.js.map +1 -0
- package/dist/kompendium/p-29c23c89.entry.js +2 -0
- package/dist/kompendium/p-29c23c89.entry.js.map +1 -0
- package/dist/kompendium/p-3981d11f.entry.js +2 -0
- package/dist/kompendium/p-3981d11f.entry.js.map +1 -0
- package/dist/kompendium/p-93f0548d.entry.js +2 -0
- package/dist/kompendium/p-93f0548d.entry.js.map +1 -0
- package/dist/kompendium/p-97b02575.entry.js +2 -0
- package/dist/kompendium/p-97b02575.entry.js.map +1 -0
- package/dist/kompendium/p-9UrzenzW.js +3 -0
- package/dist/kompendium/p-9UrzenzW.js.map +1 -0
- package/dist/kompendium/p-Ajsawr_9.js +2 -0
- package/dist/kompendium/p-Ajsawr_9.js.map +1 -0
- package/dist/kompendium/p-BAGXN2n6.js +2 -0
- package/dist/kompendium/p-BAGXN2n6.js.map +1 -0
- package/dist/kompendium/p-BFTU3MAI.js +2 -0
- package/dist/kompendium/p-BFTU3MAI.js.map +1 -0
- package/dist/kompendium/p-BIPLEi1G.js +2 -0
- package/dist/kompendium/p-BIPLEi1G.js.map +1 -0
- package/dist/kompendium/p-CnQEA7KO.js +2 -0
- package/dist/kompendium/p-CnQEA7KO.js.map +1 -0
- package/dist/kompendium/p-b0f95bd6.entry.js +2 -0
- package/dist/kompendium/p-b0f95bd6.entry.js.map +1 -0
- package/dist/kompendium/p-d9bcc473.entry.js +10 -0
- package/dist/kompendium/p-d9bcc473.entry.js.map +1 -0
- package/dist/kompendium/p-e36f3f1e.entry.js +2 -0
- package/dist/kompendium/p-e36f3f1e.entry.js.map +1 -0
- package/dist/kompendium/p-e52a2f57.entry.js +2 -0
- package/dist/kompendium/p-e52a2f57.entry.js.map +1 -0
- package/dist/kompendium/p-ec5861de.entry.js +2 -0
- package/dist/kompendium/p-ec5861de.entry.js.map +1 -0
- package/dist/markdown-admonitions.ts +112 -0
- package/dist/markdown-code.ts +51 -0
- package/dist/markdown-frontmatter.ts +19 -0
- package/dist/markdown-nodes.ts +23 -0
- package/dist/markdown-typelinks.ts +166 -0
- package/dist/markdown.ts +49 -0
- package/dist/menu.ts +189 -0
- package/dist/schema.ts +233 -0
- package/dist/search.ts +197 -0
- package/dist/source.ts +129 -0
- package/dist/typedoc.ts +665 -0
- package/dist/types/components/anchor-scroll.d.ts +36 -0
- package/dist/types/components/app/app.d.ts +22 -0
- package/dist/types/components/code/code.d.ts +26 -0
- package/dist/types/components/code/examples/code.d.ts +3 -0
- package/dist/types/components/component/component.d.ts +32 -0
- package/dist/types/components/component/templates/events.d.ts +5 -0
- package/dist/types/components/component/templates/examples.d.ts +9 -0
- package/dist/types/components/component/templates/methods.d.ts +5 -0
- package/dist/types/components/component/templates/props.d.ts +5 -0
- package/dist/types/components/component/templates/slots.d.ts +5 -0
- package/dist/types/components/component/templates/style.d.ts +5 -0
- package/dist/types/components/darkmode-switch/darkmode-switch.d.ts +18 -0
- package/dist/types/components/darkmode-switch/types.d.ts +2 -0
- package/dist/types/components/debug/debug.d.ts +24 -0
- package/dist/types/components/guide/guide.d.ts +14 -0
- package/dist/types/components/markdown/examples/markdown-example.d.ts +1 -0
- package/dist/types/components/markdown/examples/markdown.d.ts +7 -0
- package/dist/types/components/markdown/markdown-types.d.ts +2 -0
- package/dist/types/components/markdown/markdown.d.ts +20 -0
- package/dist/types/components/navigation/navigation.d.ts +35 -0
- package/dist/types/components/playground/playground.d.ts +32 -0
- package/dist/types/components/playground/playground.types.d.ts +1 -0
- package/dist/types/components/proplist/proplist.d.ts +12 -0
- package/dist/types/components/search/search.d.ts +15 -0
- package/dist/types/components/taglist/taglist.d.ts +16 -0
- package/dist/types/components/type/templates/alias.d.ts +4 -0
- package/dist/types/components/type/templates/enum.d.ts +4 -0
- package/dist/types/components/type/templates/interface.d.ts +4 -0
- package/dist/types/components/type/type.d.ts +15 -0
- package/dist/types/components.d.ts +517 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/kompendium/config.d.ts +2 -0
- package/dist/types/kompendium/filesystem.d.ts +1 -0
- package/dist/types/kompendium/generator.d.ts +4 -0
- package/dist/types/kompendium/guides.d.ts +9 -0
- package/dist/types/kompendium/index.d.ts +1 -0
- package/dist/types/kompendium/markdown-admonitions.d.ts +3 -0
- package/dist/types/kompendium/markdown-code.d.ts +2 -0
- package/dist/types/kompendium/markdown-frontmatter.d.ts +6 -0
- package/dist/types/kompendium/markdown-nodes.d.ts +12 -0
- package/dist/types/kompendium/markdown-typelinks.d.ts +21 -0
- package/dist/types/kompendium/markdown.d.ts +8 -0
- package/dist/types/kompendium/menu.d.ts +12 -0
- package/dist/types/kompendium/schema.d.ts +9 -0
- package/dist/types/kompendium/search.d.ts +3 -0
- package/dist/types/kompendium/source.d.ts +10 -0
- package/dist/types/kompendium/test/fixtures/basic.d.ts +65 -0
- package/dist/types/kompendium/test/fixtures/filtering/example-type.d.ts +8 -0
- package/dist/types/kompendium/test/fixtures/filtering/node-modules-type.d.ts +8 -0
- package/dist/types/kompendium/test/fixtures/filtering/private-types.d.ts +23 -0
- package/dist/types/kompendium/test/fixtures/filtering/stencil-component-types.d.ts +19 -0
- package/dist/types/kompendium/test/fixtures/filtering/test-helper-type.d.ts +8 -0
- package/dist/types/kompendium/test/fixtures/filtering/valid-types.d.ts +42 -0
- package/dist/types/kompendium/typedoc.d.ts +2 -0
- package/dist/types/kompendium/watch.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1746 -0
- package/dist/types/types.d.ts +119 -0
- package/dist/watch.ts +14 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +116 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-DYiJ6dQL.js');
|
|
4
|
+
var types = require('./types-SjA7Kcy_.js');
|
|
5
|
+
|
|
6
|
+
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))}";
|
|
7
|
+
|
|
8
|
+
const Playground = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
/**
|
|
12
|
+
* Factory for creating props for example components
|
|
13
|
+
* @returns {Record<string, unknown>} props
|
|
14
|
+
*/
|
|
15
|
+
this.propsFactory = () => ({});
|
|
16
|
+
this.activateTab = (id) => () => {
|
|
17
|
+
this.activeTab = id;
|
|
18
|
+
};
|
|
19
|
+
this.themeListener = (event) => {
|
|
20
|
+
this.theme = event.detail;
|
|
21
|
+
};
|
|
22
|
+
this.renderTab = this.renderTab.bind(this);
|
|
23
|
+
this.renderItem = this.renderItem.bind(this);
|
|
24
|
+
}
|
|
25
|
+
connectedCallback() {
|
|
26
|
+
this.theme = document.querySelector('html').dataset.theme;
|
|
27
|
+
document.addEventListener(types.THEME_EVENT_NAME, this.themeListener);
|
|
28
|
+
}
|
|
29
|
+
disconnectedCallback() {
|
|
30
|
+
document.removeEventListener(types.THEME_EVENT_NAME, this.themeListener);
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
if (!this.component) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const sources = this.component.sources || [];
|
|
37
|
+
return (index.h(index.Host, { "data-theme": this.theme }, index.h("section", { class: "example" }, index.h("div", { class: "result" }, this.renderResult()), index.h("aside", { class: "code" }, index.h("nav", { class: "tab-bar" }, this.renderTabs(sources)), index.h("div", { class: "tab-items" }, this.renderItems(sources))))));
|
|
38
|
+
}
|
|
39
|
+
renderTabs(sources) {
|
|
40
|
+
return sources.map(this.renderTab);
|
|
41
|
+
}
|
|
42
|
+
renderTab(source, index$1) {
|
|
43
|
+
const classList = {
|
|
44
|
+
tab: true,
|
|
45
|
+
active: this.isTabActive(source, index$1),
|
|
46
|
+
};
|
|
47
|
+
return (index.h("a", { class: classList, onClick: this.activateTab(source.filename) }, index.h("span", null, source.filename)));
|
|
48
|
+
}
|
|
49
|
+
renderItems(sources) {
|
|
50
|
+
return sources.map(this.renderItem);
|
|
51
|
+
}
|
|
52
|
+
renderResult() {
|
|
53
|
+
const ExampleComponent = this.component.tag;
|
|
54
|
+
const text = '##### ' + this.component.docs;
|
|
55
|
+
const factory = this.propsFactory;
|
|
56
|
+
const props = {
|
|
57
|
+
schema: this.schema,
|
|
58
|
+
...factory(ExampleComponent),
|
|
59
|
+
};
|
|
60
|
+
return (index.h("div", { class: "show-case" }, index.h("div", { class: "show-case_description" }, index.h("kompendium-markdown", { text: text })), index.h("div", { class: "show-case_component" }, this.renderDebugButton(this.component.tag), index.h(ExampleComponent, { ...props }))));
|
|
61
|
+
}
|
|
62
|
+
renderItem(source, index$1) {
|
|
63
|
+
const classList = {
|
|
64
|
+
'tab-item': true,
|
|
65
|
+
active: this.isTabActive(source, index$1),
|
|
66
|
+
};
|
|
67
|
+
const code = source.source.replace(/\/\*\*.+?\*\//gms, '');
|
|
68
|
+
const key = [this.component.tag, source.filename].join('/');
|
|
69
|
+
return (index.h("kompendium-code", { class: classList, language: source.type, key: key }, code));
|
|
70
|
+
}
|
|
71
|
+
renderDebugButton(tag) {
|
|
72
|
+
if (!['localhost', '127.0.0.1'].includes(location.hostname)) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const href = `#/debug/${tag}`;
|
|
76
|
+
return (index.h("div", { class: "debug" }, index.h("a", { class: "debug-link", href: href, title: "Debug" }, index.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" }, index.h("path", { fill: "none", d: "M0 0h400v400H0z" }), index.h("path", { d: "M194.97 254.84h77.555", fill: "none", stroke: "currentColor", "stroke-opacity": ".6", "stroke-width": "20" }), index.h("path", { d: "M127.474 145.16l54.84 54.84M182.315 200l-54.84 54.84", fill: "none", stroke: "currentColor", "stroke-width": "20" })))));
|
|
77
|
+
}
|
|
78
|
+
isTabActive(source, index) {
|
|
79
|
+
let isActive = this.activeTab === source.filename;
|
|
80
|
+
if (!isActive) {
|
|
81
|
+
isActive = index === 0 && !this.activeTab;
|
|
82
|
+
}
|
|
83
|
+
return isActive;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
Playground.style = playgroundCss;
|
|
87
|
+
|
|
88
|
+
exports.kompendium_playground = Playground;
|
|
89
|
+
//# sourceMappingURL=kompendium-playground.entry.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kompendium-playground.entry.cjs.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":["THEME_EVENT_NAME","h","Host","index"],"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,aAAa,GAAG,CAAC,KAAyB,KAAI;AAClD,YAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM;AAC7B,SAAC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CA,OAAA,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,EACFA,OAAA,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.cjs.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"],"names":["h"],"mappings":";;;;AAAA,MAAM,WAAW,GAAG,22J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AAC,cAAc,GACf,CACN,EACNA,OAAA,CAAA,MAAA,EAAA,IAAA,OAAQ,GAAG,CAAC,IAAI,CAAQ,EACxBA,OAAqB,CAAA,qBAAA,EAAA,EAAA,IAAI,EAAE,GAAG,CAAC,IAAI,EAAI,CAAA,CACrC;;;;;;;;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-DYiJ6dQL.js');
|
|
4
|
+
|
|
5
|
+
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}";
|
|
6
|
+
|
|
7
|
+
const Proplist = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return index.h("dl", { key: 'e0d431f2ef5b105af7436d0a9b46a3ad2886a96b' }, this.items.map(this.renderProperty));
|
|
13
|
+
}
|
|
14
|
+
renderProperty(property) {
|
|
15
|
+
const { key, value } = property;
|
|
16
|
+
return [
|
|
17
|
+
index.h("dt", null, key),
|
|
18
|
+
index.h("dd", { class: `value--${value}` }, index.h("kompendium-markdown", { text: `\`${value}\`` })),
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
Proplist.style = proplistCss;
|
|
23
|
+
|
|
24
|
+
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}";
|
|
25
|
+
|
|
26
|
+
const Taglist = class {
|
|
27
|
+
constructor(hostRef) {
|
|
28
|
+
index.registerInstance(this, hostRef);
|
|
29
|
+
/**
|
|
30
|
+
* Set to `true` if the list should be rendered in compact mode
|
|
31
|
+
*/
|
|
32
|
+
this.compact = false;
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return this.tags.map(this.renderTag);
|
|
36
|
+
}
|
|
37
|
+
renderTag(tag) {
|
|
38
|
+
const classList = {
|
|
39
|
+
'tag-list': true,
|
|
40
|
+
};
|
|
41
|
+
classList[`tag--${tag.name}`] = true;
|
|
42
|
+
return (index.h("div", { class: classList }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, index.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" })), index.h("code", null, "@", tag.name), index.h("kompendium-markdown", { text: tag.text })));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
Taglist.style = taglistCss;
|
|
46
|
+
|
|
47
|
+
exports.kompendium_proplist = Proplist;
|
|
48
|
+
exports.kompendium_taglist = Taglist;
|
|
49
|
+
//# sourceMappingURL=kompendium-proplist.kompendium-taglist.entry.cjs.js.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-DYiJ6dQL.js');
|
|
4
|
+
var methods = require('./methods-DoA78dOH.js');
|
|
5
|
+
|
|
6
|
+
function Interface({ type, }) {
|
|
7
|
+
return [
|
|
8
|
+
index.h("h1", { id: type.name }, type.name),
|
|
9
|
+
index.h("kompendium-markdown", { text: type.docs }),
|
|
10
|
+
index.h("kompendium-taglist", { tags: type.docsTags }),
|
|
11
|
+
index.h(methods.PropertyList, { props: type.props }),
|
|
12
|
+
index.h(methods.MethodList, { methods: type.methods }),
|
|
13
|
+
];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function Alias({ type }) {
|
|
17
|
+
const alias = '`' + type.alias + '`';
|
|
18
|
+
return [
|
|
19
|
+
index.h("h1", { id: type.name }, type.name),
|
|
20
|
+
index.h("kompendium-markdown", { text: type.docs }),
|
|
21
|
+
index.h("kompendium-taglist", { tags: type.docsTags }),
|
|
22
|
+
index.h("kompendium-markdown", { text: alias }),
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function Enum({ type }) {
|
|
27
|
+
return [
|
|
28
|
+
index.h("h1", { id: type.name }, type.name),
|
|
29
|
+
index.h("kompendium-markdown", { text: type.docs }),
|
|
30
|
+
index.h("kompendium-taglist", { tags: type.docsTags }),
|
|
31
|
+
index.h(MemberList, { members: type.members }),
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
function MemberList({ members }) {
|
|
35
|
+
if (!members.length) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
return [index.h("h3", null, "Members"), ...members.map(renderMember)];
|
|
39
|
+
}
|
|
40
|
+
function renderMember(member) {
|
|
41
|
+
const items = [
|
|
42
|
+
{
|
|
43
|
+
key: 'Value',
|
|
44
|
+
value: member.value,
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
return (index.h("div", null, index.h("h4", null, member.name), index.h("kompendium-markdown", { text: member.docs }), index.h("kompendium-taglist", { tags: member.docsTags }), index.h("kompendium-proplist", { items: items })));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
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}";
|
|
51
|
+
|
|
52
|
+
const Type = class {
|
|
53
|
+
constructor(hostRef) {
|
|
54
|
+
index.registerInstance(this, hostRef);
|
|
55
|
+
}
|
|
56
|
+
componentWillRender() {
|
|
57
|
+
this.findType();
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
if (!this.type) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const type = this.type;
|
|
64
|
+
const componentMap = {
|
|
65
|
+
interface: Interface,
|
|
66
|
+
alias: Alias,
|
|
67
|
+
enum: Enum,
|
|
68
|
+
class: Interface,
|
|
69
|
+
};
|
|
70
|
+
const TypeComponent = componentMap[this.type.type];
|
|
71
|
+
return (index.h("article", { class: "type" }, index.h("section", { class: "docs" }, index.h(TypeComponent, { type: type }))));
|
|
72
|
+
}
|
|
73
|
+
findType() {
|
|
74
|
+
const type = this.types.find((type) => type.name === this.match.params.name);
|
|
75
|
+
if (type) {
|
|
76
|
+
this.type = type;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
Type.style = componentCss;
|
|
81
|
+
|
|
82
|
+
exports.kompendium_type = Type;
|
|
83
|
+
//# sourceMappingURL=kompendium-type.entry.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kompendium-type.entry.cjs.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":["h","PropertyList","MethodList"],"mappings":";;;;;AAKgB,SAAA,SAAS,CAAC,EACtB,IAAI,GAGP,EAAA;IACG,OAAO;AACH,QAAAA,OAAI,CAAA,IAAA,EAAA,EAAA,EAAE,EAAE,IAAI,CAAC,IAAI,EAAG,EAAA,IAAI,CAAC,IAAI,CAAM;QACnCA,OAAA,CAAA,qBAAA,EAAA,EAAqB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAI,CAAA;QACxCA,OAAA,CAAA,oBAAA,EAAA,EAAoB,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAI,CAAA;QAC3CA,OAAA,CAACC,oBAAY,EAAC,EAAA,KAAK,EAAE,IAAI,CAAC,KAAK,EAAI,CAAA;QACnCD,OAAA,CAACE,kBAAU,EAAC,EAAA,OAAO,EAAE,IAAI,CAAC,OAAO,EAAI,CAAA;KACxC;AACL;;ACdgB,SAAA,KAAK,CAAC,EAAE,IAAI,EAA8B,EAAA;IACtD,MAAM,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,KAAK,GAAG,GAAG;IAEpC,OAAO;AACH,QAAAF,OAAI,CAAA,IAAA,EAAA,EAAA,EAAE,EAAE,IAAI,CAAC,IAAI,EAAG,E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index = require('./index-DYiJ6dQL.js');
|
|
4
|
+
|
|
5
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
|
+
/*
|
|
7
|
+
Stencil Client Patch Browser v4.38.0 | MIT Licensed | https://stenciljs.com
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var patchBrowser = () => {
|
|
11
|
+
const importMeta = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('kompendium.cjs.js', document.baseURI).href));
|
|
12
|
+
const opts = {};
|
|
13
|
+
if (importMeta !== "") {
|
|
14
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
15
|
+
}
|
|
16
|
+
return index.promiseResolve(opts);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
patchBrowser().then(async (options) => {
|
|
20
|
+
await index.globalScripts();
|
|
21
|
+
return index.bootstrapLazy([["kompendium-component.cjs",[[257,"kompendium-component",{"docs":[16],"schemas":[16],"match":[16],"examplePropsFactory":[16]}]]],["kompendium-type.cjs",[[257,"kompendium-type",{"types":[16],"match":[16],"type":[32]}]]],["kompendium-example-code.cjs",[[257,"kompendium-example-code"]]],["kompendium-example-markdown.cjs",[[257,"kompendium-example-markdown"]]],["kompendium-guide.cjs",[[257,"kompendium-guide",{"data":[16],"route":[32]}]]],["kompendium-debug.cjs",[[257,"kompendium-debug",{"docs":[16],"schemas":[16],"match":[16],"examplePropsFactory":[16]}]]],["kompendium-code.cjs",[[257,"kompendium-code",{"language":[1],"code":[32]}]]],["kompendium-markdown.cjs",[[257,"kompendium-markdown",{"text":[1]}]]],["kompendium-playground.cjs",[[257,"kompendium-playground",{"component":[16],"schema":[16],"propsFactory":[16],"activeTab":[32],"theme":[32]}]]],["kompendium-proplist_2.cjs",[[257,"kompendium-proplist",{"items":[16]}],[257,"kompendium-taglist",{"tags":[16],"compact":[4]}]]],["kompendium-app_7.cjs",[[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);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
exports.setNonce = index.setNonce;
|
|
25
|
+
//# sourceMappingURL=kompendium.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kompendium.cjs.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":["promiseResolve","globalScripts","bootstrapLazy"],"mappings":";;;;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,mQAAe;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,OAAOA,oBAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAMC,mBAAa,EAAE;AACvB,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-DYiJ6dQL.js');
|
|
4
|
+
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
6
|
+
if (typeof window === 'undefined') return undefined;
|
|
7
|
+
await index.globalScripts();
|
|
8
|
+
return index.bootstrapLazy([["kompendium-component.cjs",[[257,"kompendium-component",{"docs":[16],"schemas":[16],"match":[16],"examplePropsFactory":[16]}]]],["kompendium-type.cjs",[[257,"kompendium-type",{"types":[16],"match":[16],"type":[32]}]]],["kompendium-example-code.cjs",[[257,"kompendium-example-code"]]],["kompendium-example-markdown.cjs",[[257,"kompendium-example-markdown"]]],["kompendium-guide.cjs",[[257,"kompendium-guide",{"data":[16],"route":[32]}]]],["kompendium-debug.cjs",[[257,"kompendium-debug",{"docs":[16],"schemas":[16],"match":[16],"examplePropsFactory":[16]}]]],["kompendium-code.cjs",[[257,"kompendium-code",{"language":[1],"code":[32]}]]],["kompendium-markdown.cjs",[[257,"kompendium-markdown",{"text":[1]}]]],["kompendium-playground.cjs",[[257,"kompendium-playground",{"component":[16],"schema":[16],"propsFactory":[16],"activeTab":[32],"theme":[32]}]]],["kompendium-proplist_2.cjs",[[257,"kompendium-proplist",{"items":[16]}],[257,"kompendium-taglist",{"tags":[16],"compact":[4]}]]],["kompendium-app_7.cjs",[[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);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.setNonce = index.setNonce;
|
|
12
|
+
exports.defineCustomElements = defineCustomElements;
|
|
13
|
+
//# sourceMappingURL=loader.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.cjs.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":["globalScripts","bootstrapLazy"],"mappings":";;;;AAGY,MAAC,oBAAoB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS;AACrD,EAAE,MAAMA,mBAAa,EAAE;AACvB,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
let types = [];
|
|
4
|
+
function getTypes() {
|
|
5
|
+
return types;
|
|
6
|
+
}
|
|
7
|
+
function setTypes(newTypes) {
|
|
8
|
+
types = newTypes;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
exports.getTypes = getTypes;
|
|
12
|
+
exports.setTypes = setTypes;
|
|
13
|
+
//# sourceMappingURL=markdown-types-B884tLd-.js.map
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=markdown-types-B884tLd-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-types-B884tLd-.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,97 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-DYiJ6dQL.js');
|
|
4
|
+
|
|
5
|
+
function PropertyList({ props, id, }) {
|
|
6
|
+
if (!props.length) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
return [
|
|
10
|
+
index.h("h3", { class: "docs-layout-section-heading", id: id }, "Properties"),
|
|
11
|
+
...props.map(renderProperty),
|
|
12
|
+
];
|
|
13
|
+
}
|
|
14
|
+
function renderProperty(property) {
|
|
15
|
+
const items = [
|
|
16
|
+
{
|
|
17
|
+
key: 'Type',
|
|
18
|
+
value: property.type,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: 'Attribute name',
|
|
22
|
+
value: property.attr,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
key: 'Default value',
|
|
26
|
+
value: property.default,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: 'Optional',
|
|
30
|
+
value: String(property.optional),
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: 'Required',
|
|
34
|
+
value: String(property.required),
|
|
35
|
+
},
|
|
36
|
+
].filter((item) => item.value !== undefined && item.value !== 'undefined');
|
|
37
|
+
return (index.h("div", { class: "props-events-layout" }, index.h("h4", null, property.name), index.h("kompendium-taglist", { tags: property.docsTags }), index.h("div", { class: "markdown-props" }, index.h("kompendium-markdown", { text: property.docs }), index.h("kompendium-proplist", { items: items }))));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function MethodList({ methods, id, }) {
|
|
41
|
+
if (!methods.length) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
return [
|
|
45
|
+
index.h("h3", { class: "docs-layout-section-heading", id: id }, "Methods"),
|
|
46
|
+
...methods.map(renderMethod),
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
function renderMethod(method) {
|
|
50
|
+
const items = [
|
|
51
|
+
{
|
|
52
|
+
key: 'Signature',
|
|
53
|
+
value: method.signature,
|
|
54
|
+
},
|
|
55
|
+
].filter((item) => item.value !== undefined);
|
|
56
|
+
return (index.h("div", { class: "methods-layout" }, index.h("h4", { class: "methods-title" }, method.name), index.h("div", { class: "methods-content" }, index.h("div", null, index.h("kompendium-markdown", { text: method.docs })), index.h("div", null, index.h("kompendium-taglist", { tags: method.docsTags }), index.h("kompendium-proplist", { items: items }), index.h(ParamList, { params: method.parameters }))), index.h("div", { class: "methods-returns" }, index.h(Returns, { value: method.returns }))));
|
|
57
|
+
}
|
|
58
|
+
function ParamList({ params }) {
|
|
59
|
+
if (!params.length) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
return [index.h("h5", null, "Parameters"), ...params.map(renderParam)];
|
|
63
|
+
}
|
|
64
|
+
function renderParam(param) {
|
|
65
|
+
const items = [
|
|
66
|
+
{
|
|
67
|
+
key: 'Type',
|
|
68
|
+
value: param.type,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
key: 'Optional',
|
|
72
|
+
value: String(param.optional),
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
key: 'Default',
|
|
76
|
+
value: param.default,
|
|
77
|
+
},
|
|
78
|
+
].filter((item) => item.value !== undefined);
|
|
79
|
+
return (index.h("div", null, index.h("h6", null, param.name), index.h("kompendium-markdown", { text: param.docs }), index.h("kompendium-proplist", { items: items })));
|
|
80
|
+
}
|
|
81
|
+
function Returns({ value }) {
|
|
82
|
+
if (!value) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const type = '`' + value.type + '`';
|
|
86
|
+
return [
|
|
87
|
+
index.h("h5", null, "Returns"),
|
|
88
|
+
index.h("kompendium-markdown", { text: value.docs }),
|
|
89
|
+
index.h("kompendium-markdown", { text: type }),
|
|
90
|
+
];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
exports.MethodList = MethodList;
|
|
94
|
+
exports.PropertyList = PropertyList;
|
|
95
|
+
//# sourceMappingURL=methods-DoA78dOH.js.map
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=methods-DoA78dOH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods-DoA78dOH.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":["h"],"mappings":";;;;SAIgB,YAAY,CAAC,EACzB,KAAK,EACL,EAAE,GAIL,EAAA;AACG,IAAA,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;QACf;;IAGJ,OAAO;AACH,QAAAA,OAAA,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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AAqB,CAAA,qBAAA,EAAA,EAAA,IAAI,EAAE,IAAI,EAAI,CAAA;KACtC;AACL;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-SjA7Kcy_.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,65 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg width="100%" height="100%" viewBox="0 0 148 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
|
4
|
+
<style>
|
|
5
|
+
@keyframes blink {
|
|
6
|
+
0%, 10%, 90%, 100% {
|
|
7
|
+
opacity: 1;
|
|
8
|
+
}
|
|
9
|
+
50%, 60% {
|
|
10
|
+
opacity: 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
#backplate {
|
|
14
|
+
fill:#254758;
|
|
15
|
+
fill-rule:nonzero;
|
|
16
|
+
}
|
|
17
|
+
#blinker {
|
|
18
|
+
fill:#ffa000;
|
|
19
|
+
fill-rule:nonzero;
|
|
20
|
+
animation: blink 1s ease;
|
|
21
|
+
animation-iteration-count: 4;
|
|
22
|
+
}
|
|
23
|
+
#logotype {
|
|
24
|
+
fill:#00c853;
|
|
25
|
+
fill-rule:nonzero;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (prefers-color-scheme:dark){
|
|
29
|
+
#backplate {
|
|
30
|
+
fill:#224150
|
|
31
|
+
}
|
|
32
|
+
#blinker {
|
|
33
|
+
fill:#ff8f00
|
|
34
|
+
}
|
|
35
|
+
#logotype {
|
|
36
|
+
fill:#00B94A
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
</style>
|
|
40
|
+
<g transform="matrix(1,0,0,1,-5264.22,0)">
|
|
41
|
+
<g id="favicon" transform="matrix(0.0927545,0,0,0.0807867,4835.74,0)">
|
|
42
|
+
<rect x="4619.47" y="0" width="1595.61" height="990.262" style="fill:none;"/>
|
|
43
|
+
<clipPath id="_clip1">
|
|
44
|
+
<rect x="4619.47" y="0" width="1595.61" height="990.262"/>
|
|
45
|
+
</clipPath>
|
|
46
|
+
<g clip-path="url(#_clip1)">
|
|
47
|
+
<g transform="matrix(2.01166,0,0,8.47173,4136.87,-2041.77)">
|
|
48
|
+
<path
|
|
49
|
+
id="backplate"
|
|
50
|
+
d="M1033.16,270.232C1033.16,254.104 985.135,241.01 925.977,241.01L347.001,241.01C287.844,241.01 239.815,254.104 239.815,270.232L239.815,328.677C239.815,344.806 287.844,357.9 347.001,357.9L925.977,357.9C985.135,357.9 1033.16,344.806 1033.16,328.677L1033.16,270.232Z"/>
|
|
51
|
+
</g>
|
|
52
|
+
<g transform="matrix(12.0222,0,0,13.8032,-37803.4,-3487.35)">
|
|
53
|
+
<path
|
|
54
|
+
id="blinker"
|
|
55
|
+
d="M3552.55,291.794L3552.55,304.89L3546,304.89L3546,291.794L3552.55,291.794ZM3552.55,285.245L3546,285.245L3546,272.149L3552.55,272.149L3552.55,285.245Z"/>
|
|
56
|
+
</g>
|
|
57
|
+
<g transform="matrix(12.0222,0,0,13.8032,-79804.4,-6339.25)">
|
|
58
|
+
<path
|
|
59
|
+
id="logotype"
|
|
60
|
+
d="M7118.15,511.502L7118.15,504.953L7124.7,504.953L7124.7,498.405L7131.25,498.405L7131.25,491.857L7124.7,491.857L7124.7,485.308L7118.15,485.308L7118.15,478.76L7124.7,478.76L7124.7,485.308L7131.25,485.308L7131.25,491.857L7137.79,491.857L7137.79,498.405L7131.25,498.405L7131.25,504.953L7124.7,504.953L7124.7,511.502L7118.15,511.502ZM7078.86,511.502L7078.86,504.953L7085.41,504.953L7085.41,498.405L7091.96,498.405L7091.96,491.857L7098.51,491.857L7098.51,485.308L7105.05,485.308L7105.05,478.76L7111.6,478.76L7111.6,485.308L7105.05,485.308L7105.05,491.857L7098.51,491.857L7098.51,498.405L7091.96,498.405L7091.96,504.953L7085.41,504.953L7085.41,511.502L7078.86,511.502ZM7065.77,511.502L7065.77,504.953L7059.22,504.953L7059.22,498.405L7052.67,498.405L7052.67,491.857L7059.22,491.857L7059.22,485.308L7065.77,485.308L7065.77,478.76L7072.31,478.76L7072.31,485.308L7065.77,485.308L7065.77,491.857L7059.22,491.857L7059.22,498.405L7065.77,498.405L7065.77,504.953L7072.31,504.953L7072.31,511.502L7065.77,511.502Z"/>
|
|
61
|
+
</g>
|
|
62
|
+
</g>
|
|
63
|
+
</g>
|
|
64
|
+
</g>
|
|
65
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><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="#000"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 400 400"><defs/><path fill="none" d="M0 0h400v400H0z"/><path fill="#446c80" d="M100.7 233.141c-5.6-12.935-8.7-27.173-8.7-42.122C92 131.954 140.393 84 200 84s108 47.954 108 107.019c0 14.949-3.1 29.187-8.7 42.122-4.582 26.722-21.33 48.534-43.425 57.687v12.728c0 10.357-8.485 18.764-18.935 18.764-9.066 0-16.653-6.327-18.504-14.765-1.962 8.291-9.477 14.47-18.436 14.47-9.012 0-16.562-6.251-18.47-14.615-1.909 8.364-9.459 14.615-18.47 14.615-10.45 0-18.935-8.407-18.935-18.764v-12.433c-22.096-9.154-38.844-30.967-43.425-57.687z"/><path fill="#fff" fill-opacity=".2" d="M213.322 264.164c-3.328 3.135-23.317 3.135-26.644 0-3.332-3.136-3.332-4.928 0-11.199 2.328-4.703 9.832-17.022 13.322-17.022 3.489 0 10.993 12.319 13.322 17.022 3.331 6.271 3.331 8.063 0 11.199z"/><path fill="#fff" d="M150.179 213.14c12.03 0 21.797 9.678 21.797 21.599s-9.767 21.599-21.797 21.599c-12.03 0-21.797-9.678-21.797-21.599s9.767-21.599 21.797-21.599zm100.844 12.114l8.678-8.598c2.635-2.612 6.896-2.624 9.557.014 2.644 2.619 2.618 6.891.015 9.47l-8.678 8.599 8.678 8.599a6.637 6.637 0 01-.015 9.47c-2.643 2.619-6.954 2.594-9.557.014l-8.678-8.598-8.677 8.598c-2.635 2.612-6.896 2.624-9.558-.014-2.643-2.619-2.617-6.89-.014-9.47l8.678-8.599-8.678-8.599a6.638 6.638 0 01.014-9.47c2.644-2.619 6.954-2.594 9.558-.014l8.677 8.598z"/></svg>
|