@multiplatform.one/markdown 6.4.1 → 6.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Aside/index.cjs +117 -0
- package/dist/cjs/Aside/index.native.js +126 -0
- package/dist/cjs/Aside/index.native.js.map +1 -0
- package/dist/cjs/ExternalIcon/index.cjs +48 -0
- package/dist/cjs/ExternalIcon/index.native.js +53 -0
- package/dist/cjs/ExternalIcon/index.native.js.map +1 -0
- package/dist/cjs/Hr/index.cjs +33 -0
- package/dist/cjs/Hr/index.native.js +38 -0
- package/dist/cjs/Hr/index.native.js.map +1 -0
- package/dist/cjs/Li/index.cjs +38 -0
- package/dist/cjs/Li/index.native.js +41 -0
- package/dist/cjs/Li/index.native.js.map +1 -0
- package/dist/cjs/Markdown.cjs +66 -0
- package/dist/cjs/Markdown.native.js +71 -0
- package/dist/cjs/Markdown.native.js.map +1 -0
- package/dist/cjs/MarkdownSimpleTable/index.cjs +150 -0
- package/dist/cjs/MarkdownSimpleTable/index.native.js +183 -0
- package/dist/cjs/MarkdownSimpleTable/index.native.js.map +1 -0
- package/dist/cjs/Mdx/index.cjs +66 -0
- package/dist/cjs/Mdx/index.native.js +70 -0
- package/dist/cjs/Mdx/index.native.js.map +1 -0
- package/dist/cjs/MdxCodeBlock/index.cjs +193 -0
- package/dist/cjs/MdxCodeBlock/index.native.js +216 -0
- package/dist/cjs/MdxCodeBlock/index.native.js.map +1 -0
- package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.cjs +29 -0
- package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.native.js +32 -0
- package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -0
- package/dist/cjs/Notice/index.cjs +51 -0
- package/dist/cjs/Notice/index.native.js +55 -0
- package/dist/cjs/Notice/index.native.js.map +1 -0
- package/dist/cjs/Table/index.cjs +134 -0
- package/dist/cjs/Table/index.native.js +145 -0
- package/dist/cjs/Table/index.native.js.map +1 -0
- package/dist/cjs/Tabs/index.cjs +61 -0
- package/dist/cjs/Tabs/index.native.js +71 -0
- package/dist/cjs/Tabs/index.native.js.map +1 -0
- package/dist/cjs/Ul/index.cjs +35 -0
- package/dist/cjs/Ul/index.native.js +38 -0
- package/dist/cjs/Ul/index.native.js.map +1 -0
- package/dist/cjs/Video/index.cjs +86 -0
- package/dist/cjs/Video/index.native.js +91 -0
- package/dist/cjs/Video/index.native.js.map +1 -0
- package/dist/cjs/components/Blockquote.cjs +60 -0
- package/dist/cjs/components/Blockquote.native.js +73 -0
- package/dist/cjs/components/Blockquote.native.js.map +1 -0
- package/dist/cjs/components/Break.cjs +35 -0
- package/dist/cjs/components/Break.native.js +38 -0
- package/dist/cjs/components/Break.native.js.map +1 -0
- package/dist/cjs/components/CodeBlock.cjs +69 -0
- package/dist/cjs/components/CodeBlock.native.js +77 -0
- package/dist/cjs/components/CodeBlock.native.js.map +1 -0
- package/dist/cjs/components/Heading.cjs +71 -0
- package/dist/cjs/components/Heading.native.js +76 -0
- package/dist/cjs/components/Heading.native.js.map +1 -0
- package/dist/cjs/components/HorizontalRule.cjs +34 -0
- package/dist/cjs/components/HorizontalRule.native.js +37 -0
- package/dist/cjs/components/HorizontalRule.native.js.map +1 -0
- package/dist/cjs/components/Image.cjs +51 -0
- package/dist/cjs/components/Image.native.js +58 -0
- package/dist/cjs/components/Image.native.js.map +1 -0
- package/dist/cjs/components/InlineCode.cjs +45 -0
- package/dist/cjs/components/InlineCode.native.js +49 -0
- package/dist/cjs/components/InlineCode.native.js.map +1 -0
- package/dist/cjs/components/InlineStyles.cjs +58 -0
- package/dist/cjs/components/InlineStyles.native.js +64 -0
- package/dist/cjs/components/InlineStyles.native.js.map +1 -0
- package/dist/cjs/components/Link.cjs +71 -0
- package/dist/cjs/components/Link.native.js +76 -0
- package/dist/cjs/components/Link.native.js.map +1 -0
- package/dist/cjs/components/List.cjs +152 -0
- package/dist/cjs/components/List.native.js +161 -0
- package/dist/cjs/components/List.native.js.map +1 -0
- package/dist/cjs/components/Paragraph.cjs +43 -0
- package/dist/cjs/components/Paragraph.native.js +47 -0
- package/dist/cjs/components/Paragraph.native.js.map +1 -0
- package/dist/cjs/components/Table.cjs +119 -0
- package/dist/cjs/components/Table.native.js +134 -0
- package/dist/cjs/components/Table.native.js.map +1 -0
- package/dist/cjs/components/index.cjs +55 -0
- package/dist/cjs/components/index.native.js +58 -0
- package/dist/cjs/components/index.native.js.map +1 -0
- package/dist/cjs/hooks/index.cjs +22 -0
- package/dist/cjs/hooks/index.native.js +25 -0
- package/dist/cjs/hooks/index.native.js.map +1 -0
- package/dist/cjs/hooks/useCompileAndEvaluateMdx.cjs +42 -0
- package/dist/cjs/hooks/useCompileAndEvaluateMdx.native.js +45 -0
- package/dist/cjs/hooks/useCompileAndEvaluateMdx.native.js.map +1 -0
- package/dist/cjs/hooks/useCompileMdx.cjs +113 -0
- package/dist/cjs/hooks/useCompileMdx.native.js +135 -0
- package/dist/cjs/hooks/useCompileMdx.native.js.map +1 -0
- package/dist/cjs/hooks/useEvaluateMdx.cjs +64 -0
- package/dist/cjs/hooks/useEvaluateMdx.native.js +69 -0
- package/dist/cjs/hooks/useEvaluateMdx.native.js.map +1 -0
- package/dist/cjs/icons/index.cjs +135 -0
- package/dist/cjs/icons/index.native.js +146 -0
- package/dist/cjs/icons/index.native.js.map +1 -0
- package/dist/cjs/index.cjs +53 -0
- package/dist/cjs/index.native.js +56 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/mdxComponents.cjs +324 -0
- package/dist/cjs/mdxComponents.native.js +386 -0
- package/dist/cjs/mdxComponents.native.js.map +1 -0
- package/dist/cjs/mermaid/MermaidBlock.cjs +110 -0
- package/dist/cjs/mermaid/MermaidBlock.native.js +41 -0
- package/dist/cjs/mermaid/MermaidBlock.native.js.map +1 -0
- package/dist/cjs/mermaid/index.cjs +31 -0
- package/dist/cjs/mermaid/index.native.js +34 -0
- package/dist/cjs/mermaid/index.native.js.map +1 -0
- package/dist/cjs/mermaid/mountDiagramSvg.cjs +54 -0
- package/dist/cjs/mermaid/mountDiagramSvg.native.js +98 -0
- package/dist/cjs/mermaid/mountDiagramSvg.native.js.map +1 -0
- package/dist/cjs/mermaid/renderMermaidDiagram.cjs +92 -0
- package/dist/cjs/mermaid/renderMermaidDiagram.native.js +110 -0
- package/dist/cjs/mermaid/renderMermaidDiagram.native.js.map +1 -0
- package/dist/cjs/parser.cjs +49 -0
- package/dist/cjs/parser.native.js +52 -0
- package/dist/cjs/parser.native.js.map +1 -0
- package/dist/cjs/renderer.cjs +334 -0
- package/dist/cjs/renderer.native.js +356 -0
- package/dist/cjs/renderer.native.js.map +1 -0
- package/dist/cjs/shared/colorRamps.cjs +64 -0
- package/dist/cjs/shared/colorRamps.native.js +67 -0
- package/dist/cjs/shared/colorRamps.native.js.map +1 -0
- package/dist/cjs/shared/cutoffGradient.cjs +54 -0
- package/dist/cjs/shared/cutoffGradient.native.js +63 -0
- package/dist/cjs/shared/cutoffGradient.native.js.map +1 -0
- package/dist/cjs/shared/index.cjs +20 -0
- package/dist/cjs/shared/index.native.js +23 -0
- package/dist/cjs/shared/index.native.js.map +1 -0
- package/dist/cjs/shiki/index.cjs +18 -0
- package/dist/cjs/shiki/index.native.js +21 -0
- package/dist/cjs/shiki/index.native.js.map +1 -0
- package/dist/cjs/types.cjs +18 -0
- package/dist/cjs/types.native.js +21 -0
- package/dist/cjs/types.native.js.map +1 -0
- package/dist/cjs/util/rehypeMetaAttributes.cjs +45 -0
- package/dist/cjs/util/rehypeMetaAttributes.native.js +49 -0
- package/dist/cjs/util/rehypeMetaAttributes.native.js.map +1 -0
- package/dist/esm/Aside/index.mjs +91 -0
- package/dist/esm/Aside/index.mjs.map +1 -0
- package/dist/esm/Aside/index.native.js +97 -0
- package/dist/esm/Aside/index.native.js.map +1 -0
- package/dist/esm/ExternalIcon/index.mjs +23 -0
- package/dist/esm/ExternalIcon/index.mjs.map +1 -0
- package/dist/esm/ExternalIcon/index.native.js +25 -0
- package/dist/esm/ExternalIcon/index.native.js.map +1 -0
- package/dist/esm/Hr/index.mjs +8 -0
- package/dist/esm/Hr/index.mjs.map +1 -0
- package/dist/esm/Hr/index.native.js +10 -0
- package/dist/esm/Hr/index.native.js.map +1 -0
- package/dist/esm/Li/index.mjs +13 -0
- package/dist/esm/Li/index.mjs.map +1 -0
- package/dist/esm/Li/index.native.js +13 -0
- package/dist/esm/Li/index.native.js.map +1 -0
- package/dist/esm/Markdown.mjs +41 -0
- package/dist/esm/Markdown.mjs.map +1 -0
- package/dist/esm/Markdown.native.js +43 -0
- package/dist/esm/Markdown.native.js.map +1 -0
- package/dist/esm/MarkdownSimpleTable/index.mjs +125 -0
- package/dist/esm/MarkdownSimpleTable/index.mjs.map +1 -0
- package/dist/esm/MarkdownSimpleTable/index.native.js +155 -0
- package/dist/esm/MarkdownSimpleTable/index.native.js.map +1 -0
- package/dist/esm/Mdx/index.mjs +41 -0
- package/dist/esm/Mdx/index.mjs.map +1 -0
- package/dist/esm/Mdx/index.native.js +42 -0
- package/dist/esm/Mdx/index.native.js.map +1 -0
- package/dist/esm/MdxCodeBlock/index.mjs +157 -0
- package/dist/esm/MdxCodeBlock/index.mjs.map +1 -0
- package/dist/esm/MdxCodeBlock/index.native.js +177 -0
- package/dist/esm/MdxCodeBlock/index.native.js.map +1 -0
- package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.mjs +4 -0
- package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.mjs.map +1 -0
- package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.native.js +4 -0
- package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -0
- package/dist/esm/Notice/index.mjs +26 -0
- package/dist/esm/Notice/index.mjs.map +1 -0
- package/dist/esm/Notice/index.native.js +27 -0
- package/dist/esm/Notice/index.native.js.map +1 -0
- package/dist/esm/Table/index.mjs +104 -0
- package/dist/esm/Table/index.mjs.map +1 -0
- package/dist/esm/Table/index.native.js +112 -0
- package/dist/esm/Table/index.native.js.map +1 -0
- package/dist/esm/Tabs/index.mjs +35 -0
- package/dist/esm/Tabs/index.mjs.map +1 -0
- package/dist/esm/Tabs/index.native.js +42 -0
- package/dist/esm/Tabs/index.native.js.map +1 -0
- package/dist/esm/Ul/index.mjs +10 -0
- package/dist/esm/Ul/index.mjs.map +1 -0
- package/dist/esm/Ul/index.native.js +10 -0
- package/dist/esm/Ul/index.native.js.map +1 -0
- package/dist/esm/Video/index.mjs +61 -0
- package/dist/esm/Video/index.mjs.map +1 -0
- package/dist/esm/Video/index.native.js +63 -0
- package/dist/esm/Video/index.native.js.map +1 -0
- package/dist/esm/components/Blockquote.mjs +35 -0
- package/dist/esm/components/Blockquote.mjs.map +1 -0
- package/dist/esm/components/Blockquote.native.js +45 -0
- package/dist/esm/components/Blockquote.native.js.map +1 -0
- package/dist/esm/components/Break.mjs +10 -0
- package/dist/esm/components/Break.mjs.map +1 -0
- package/dist/esm/components/Break.native.js +10 -0
- package/dist/esm/components/Break.native.js.map +1 -0
- package/dist/esm/components/CodeBlock.mjs +44 -0
- package/dist/esm/components/CodeBlock.mjs.map +1 -0
- package/dist/esm/components/CodeBlock.native.js +49 -0
- package/dist/esm/components/CodeBlock.native.js.map +1 -0
- package/dist/esm/components/Heading.mjs +46 -0
- package/dist/esm/components/Heading.mjs.map +1 -0
- package/dist/esm/components/Heading.native.js +48 -0
- package/dist/esm/components/Heading.native.js.map +1 -0
- package/dist/esm/components/HorizontalRule.mjs +9 -0
- package/dist/esm/components/HorizontalRule.mjs.map +1 -0
- package/dist/esm/components/HorizontalRule.native.js +9 -0
- package/dist/esm/components/HorizontalRule.native.js.map +1 -0
- package/dist/esm/components/Image.mjs +26 -0
- package/dist/esm/components/Image.mjs.map +1 -0
- package/dist/esm/components/Image.native.js +30 -0
- package/dist/esm/components/Image.native.js.map +1 -0
- package/dist/esm/components/InlineCode.mjs +20 -0
- package/dist/esm/components/InlineCode.mjs.map +1 -0
- package/dist/esm/components/InlineCode.native.js +21 -0
- package/dist/esm/components/InlineCode.native.js.map +1 -0
- package/dist/esm/components/InlineStyles.mjs +31 -0
- package/dist/esm/components/InlineStyles.mjs.map +1 -0
- package/dist/esm/components/InlineStyles.native.js +34 -0
- package/dist/esm/components/InlineStyles.native.js.map +1 -0
- package/dist/esm/components/Link.mjs +46 -0
- package/dist/esm/components/Link.mjs.map +1 -0
- package/dist/esm/components/Link.native.js +48 -0
- package/dist/esm/components/Link.native.js.map +1 -0
- package/dist/esm/components/List.mjs +126 -0
- package/dist/esm/components/List.mjs.map +1 -0
- package/dist/esm/components/List.native.js +132 -0
- package/dist/esm/components/List.native.js.map +1 -0
- package/dist/esm/components/Paragraph.mjs +18 -0
- package/dist/esm/components/Paragraph.mjs.map +1 -0
- package/dist/esm/components/Paragraph.native.js +19 -0
- package/dist/esm/components/Paragraph.native.js.map +1 -0
- package/dist/esm/components/Table.mjs +92 -0
- package/dist/esm/components/Table.mjs.map +1 -0
- package/dist/esm/components/Table.native.js +104 -0
- package/dist/esm/components/Table.native.js.map +1 -0
- package/dist/esm/components/index.mjs +14 -0
- package/dist/esm/components/index.mjs.map +1 -0
- package/dist/esm/components/index.native.js +14 -0
- package/dist/esm/components/index.native.js.map +1 -0
- package/dist/esm/hooks/index.mjs +4 -0
- package/dist/esm/hooks/index.mjs.map +1 -0
- package/dist/esm/hooks/index.native.js +4 -0
- package/dist/esm/hooks/index.native.js.map +1 -0
- package/dist/esm/hooks/useCompileAndEvaluateMdx.mjs +17 -0
- package/dist/esm/hooks/useCompileAndEvaluateMdx.mjs.map +1 -0
- package/dist/esm/hooks/useCompileAndEvaluateMdx.native.js +17 -0
- package/dist/esm/hooks/useCompileAndEvaluateMdx.native.js.map +1 -0
- package/dist/esm/hooks/useCompileMdx.mjs +76 -0
- package/dist/esm/hooks/useCompileMdx.mjs.map +1 -0
- package/dist/esm/hooks/useCompileMdx.native.js +95 -0
- package/dist/esm/hooks/useCompileMdx.native.js.map +1 -0
- package/dist/esm/hooks/useEvaluateMdx.mjs +28 -0
- package/dist/esm/hooks/useEvaluateMdx.mjs.map +1 -0
- package/dist/esm/hooks/useEvaluateMdx.native.js +30 -0
- package/dist/esm/hooks/useEvaluateMdx.native.js.map +1 -0
- package/dist/esm/icons/index.mjs +107 -0
- package/dist/esm/icons/index.mjs.map +1 -0
- package/dist/esm/icons/index.native.js +115 -0
- package/dist/esm/icons/index.native.js.map +1 -0
- package/dist/esm/index.mjs +23 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +23 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/mdxComponents.mjs +298 -0
- package/dist/esm/mdxComponents.mjs.map +1 -0
- package/dist/esm/mdxComponents.native.js +357 -0
- package/dist/esm/mdxComponents.native.js.map +1 -0
- package/dist/esm/mermaid/MermaidBlock.mjs +85 -0
- package/dist/esm/mermaid/MermaidBlock.mjs.map +1 -0
- package/dist/esm/mermaid/MermaidBlock.native.js +13 -0
- package/dist/esm/mermaid/MermaidBlock.native.js.map +1 -0
- package/dist/esm/mermaid/index.mjs +4 -0
- package/dist/esm/mermaid/index.mjs.map +1 -0
- package/dist/esm/mermaid/index.native.js +4 -0
- package/dist/esm/mermaid/index.native.js.map +1 -0
- package/dist/esm/mermaid/mountDiagramSvg.mjs +29 -0
- package/dist/esm/mermaid/mountDiagramSvg.mjs.map +1 -0
- package/dist/esm/mermaid/mountDiagramSvg.native.js +70 -0
- package/dist/esm/mermaid/mountDiagramSvg.native.js.map +1 -0
- package/dist/esm/mermaid/renderMermaidDiagram.mjs +55 -0
- package/dist/esm/mermaid/renderMermaidDiagram.mjs.map +1 -0
- package/dist/esm/mermaid/renderMermaidDiagram.native.js +70 -0
- package/dist/esm/mermaid/renderMermaidDiagram.native.js.map +1 -0
- package/dist/esm/parser.mjs +12 -0
- package/dist/esm/parser.mjs.map +1 -0
- package/dist/esm/parser.native.js +12 -0
- package/dist/esm/parser.native.js.map +1 -0
- package/dist/esm/renderer.mjs +308 -0
- package/dist/esm/renderer.mjs.map +1 -0
- package/dist/esm/renderer.native.js +327 -0
- package/dist/esm/renderer.native.js.map +1 -0
- package/dist/esm/shared/colorRamps.mjs +36 -0
- package/dist/esm/shared/colorRamps.mjs.map +1 -0
- package/dist/esm/shared/colorRamps.native.js +36 -0
- package/dist/esm/shared/colorRamps.native.js.map +1 -0
- package/dist/esm/shared/cutoffGradient.mjs +28 -0
- package/dist/esm/shared/cutoffGradient.mjs.map +1 -0
- package/dist/esm/shared/cutoffGradient.native.js +34 -0
- package/dist/esm/shared/cutoffGradient.native.js.map +1 -0
- package/dist/esm/shared/index.mjs +2 -0
- package/dist/esm/shared/index.mjs.map +1 -0
- package/dist/esm/shared/index.native.js +2 -0
- package/dist/esm/shared/index.native.js.map +1 -0
- package/dist/esm/shiki/index.mjs +2 -0
- package/dist/esm/shiki/index.mjs.map +1 -0
- package/dist/esm/shiki/index.native.js +2 -0
- package/dist/esm/shiki/index.native.js.map +1 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/types.native.js +2 -0
- package/dist/esm/types.native.js.map +1 -0
- package/dist/esm/util/rehypeMetaAttributes.mjs +20 -0
- package/dist/esm/util/rehypeMetaAttributes.mjs.map +1 -0
- package/dist/esm/util/rehypeMetaAttributes.native.js +21 -0
- package/dist/esm/util/rehypeMetaAttributes.native.js.map +1 -0
- package/dist/jsx/Aside/index.mjs +91 -0
- package/dist/jsx/Aside/index.mjs.map +1 -0
- package/dist/jsx/Aside/index.native.js +126 -0
- package/dist/jsx/Aside/index.native.js.map +1 -0
- package/dist/jsx/ExternalIcon/index.mjs +23 -0
- package/dist/jsx/ExternalIcon/index.mjs.map +1 -0
- package/dist/jsx/ExternalIcon/index.native.js +53 -0
- package/dist/jsx/ExternalIcon/index.native.js.map +1 -0
- package/dist/jsx/Hr/index.mjs +8 -0
- package/dist/jsx/Hr/index.mjs.map +1 -0
- package/dist/jsx/Hr/index.native.js +38 -0
- package/dist/jsx/Hr/index.native.js.map +1 -0
- package/dist/jsx/Li/index.mjs +13 -0
- package/dist/jsx/Li/index.mjs.map +1 -0
- package/dist/jsx/Li/index.native.js +41 -0
- package/dist/jsx/Li/index.native.js.map +1 -0
- package/dist/jsx/Markdown.mjs +41 -0
- package/dist/jsx/Markdown.mjs.map +1 -0
- package/dist/jsx/Markdown.native.js +71 -0
- package/dist/jsx/Markdown.native.js.map +1 -0
- package/dist/jsx/MarkdownSimpleTable/index.mjs +125 -0
- package/dist/jsx/MarkdownSimpleTable/index.mjs.map +1 -0
- package/dist/jsx/MarkdownSimpleTable/index.native.js +183 -0
- package/dist/jsx/MarkdownSimpleTable/index.native.js.map +1 -0
- package/dist/jsx/Mdx/index.mjs +41 -0
- package/dist/jsx/Mdx/index.mjs.map +1 -0
- package/dist/jsx/Mdx/index.native.js +70 -0
- package/dist/jsx/Mdx/index.native.js.map +1 -0
- package/dist/jsx/MdxCodeBlock/index.mjs +157 -0
- package/dist/jsx/MdxCodeBlock/index.mjs.map +1 -0
- package/dist/jsx/MdxCodeBlock/index.native.js +216 -0
- package/dist/jsx/MdxCodeBlock/index.native.js.map +1 -0
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.mjs +4 -0
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.mjs.map +1 -0
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.native.js +32 -0
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -0
- package/dist/jsx/Notice/index.mjs +26 -0
- package/dist/jsx/Notice/index.mjs.map +1 -0
- package/dist/jsx/Notice/index.native.js +55 -0
- package/dist/jsx/Notice/index.native.js.map +1 -0
- package/dist/jsx/Table/index.mjs +104 -0
- package/dist/jsx/Table/index.mjs.map +1 -0
- package/dist/jsx/Table/index.native.js +145 -0
- package/dist/jsx/Table/index.native.js.map +1 -0
- package/dist/jsx/Tabs/index.mjs +35 -0
- package/dist/jsx/Tabs/index.mjs.map +1 -0
- package/dist/jsx/Tabs/index.native.js +71 -0
- package/dist/jsx/Tabs/index.native.js.map +1 -0
- package/dist/jsx/Ul/index.mjs +10 -0
- package/dist/jsx/Ul/index.mjs.map +1 -0
- package/dist/jsx/Ul/index.native.js +38 -0
- package/dist/jsx/Ul/index.native.js.map +1 -0
- package/dist/jsx/Video/index.mjs +61 -0
- package/dist/jsx/Video/index.mjs.map +1 -0
- package/dist/jsx/Video/index.native.js +91 -0
- package/dist/jsx/Video/index.native.js.map +1 -0
- package/dist/jsx/components/Blockquote.mjs +35 -0
- package/dist/jsx/components/Blockquote.mjs.map +1 -0
- package/dist/jsx/components/Blockquote.native.js +73 -0
- package/dist/jsx/components/Blockquote.native.js.map +1 -0
- package/dist/jsx/components/Break.mjs +10 -0
- package/dist/jsx/components/Break.mjs.map +1 -0
- package/dist/jsx/components/Break.native.js +38 -0
- package/dist/jsx/components/Break.native.js.map +1 -0
- package/dist/jsx/components/CodeBlock.mjs +44 -0
- package/dist/jsx/components/CodeBlock.mjs.map +1 -0
- package/dist/jsx/components/CodeBlock.native.js +77 -0
- package/dist/jsx/components/CodeBlock.native.js.map +1 -0
- package/dist/jsx/components/Heading.mjs +46 -0
- package/dist/jsx/components/Heading.mjs.map +1 -0
- package/dist/jsx/components/Heading.native.js +76 -0
- package/dist/jsx/components/Heading.native.js.map +1 -0
- package/dist/jsx/components/HorizontalRule.mjs +9 -0
- package/dist/jsx/components/HorizontalRule.mjs.map +1 -0
- package/dist/jsx/components/HorizontalRule.native.js +37 -0
- package/dist/jsx/components/HorizontalRule.native.js.map +1 -0
- package/dist/jsx/components/Image.mjs +26 -0
- package/dist/jsx/components/Image.mjs.map +1 -0
- package/dist/jsx/components/Image.native.js +58 -0
- package/dist/jsx/components/Image.native.js.map +1 -0
- package/dist/jsx/components/InlineCode.mjs +20 -0
- package/dist/jsx/components/InlineCode.mjs.map +1 -0
- package/dist/jsx/components/InlineCode.native.js +49 -0
- package/dist/jsx/components/InlineCode.native.js.map +1 -0
- package/dist/jsx/components/InlineStyles.mjs +31 -0
- package/dist/jsx/components/InlineStyles.mjs.map +1 -0
- package/dist/jsx/components/InlineStyles.native.js +64 -0
- package/dist/jsx/components/InlineStyles.native.js.map +1 -0
- package/dist/jsx/components/Link.mjs +46 -0
- package/dist/jsx/components/Link.mjs.map +1 -0
- package/dist/jsx/components/Link.native.js +76 -0
- package/dist/jsx/components/Link.native.js.map +1 -0
- package/dist/jsx/components/List.mjs +126 -0
- package/dist/jsx/components/List.mjs.map +1 -0
- package/dist/jsx/components/List.native.js +161 -0
- package/dist/jsx/components/List.native.js.map +1 -0
- package/dist/jsx/components/Paragraph.mjs +18 -0
- package/dist/jsx/components/Paragraph.mjs.map +1 -0
- package/dist/jsx/components/Paragraph.native.js +47 -0
- package/dist/jsx/components/Paragraph.native.js.map +1 -0
- package/dist/jsx/components/Table.mjs +92 -0
- package/dist/jsx/components/Table.mjs.map +1 -0
- package/dist/jsx/components/Table.native.js +134 -0
- package/dist/jsx/components/Table.native.js.map +1 -0
- package/dist/jsx/components/index.mjs +14 -0
- package/dist/jsx/components/index.mjs.map +1 -0
- package/dist/jsx/components/index.native.js +58 -0
- package/dist/jsx/components/index.native.js.map +1 -0
- package/dist/jsx/hooks/index.mjs +4 -0
- package/dist/jsx/hooks/index.mjs.map +1 -0
- package/dist/jsx/hooks/index.native.js +25 -0
- package/dist/jsx/hooks/index.native.js.map +1 -0
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.mjs +17 -0
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.mjs.map +1 -0
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.native.js +45 -0
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.native.js.map +1 -0
- package/dist/jsx/hooks/useCompileMdx.mjs +76 -0
- package/dist/jsx/hooks/useCompileMdx.mjs.map +1 -0
- package/dist/jsx/hooks/useCompileMdx.native.js +135 -0
- package/dist/jsx/hooks/useCompileMdx.native.js.map +1 -0
- package/dist/jsx/hooks/useEvaluateMdx.mjs +28 -0
- package/dist/jsx/hooks/useEvaluateMdx.mjs.map +1 -0
- package/dist/jsx/hooks/useEvaluateMdx.native.js +69 -0
- package/dist/jsx/hooks/useEvaluateMdx.native.js.map +1 -0
- package/dist/jsx/icons/index.mjs +107 -0
- package/dist/jsx/icons/index.mjs.map +1 -0
- package/dist/jsx/icons/index.native.js +146 -0
- package/dist/jsx/icons/index.native.js.map +1 -0
- package/dist/jsx/index.js +23 -0
- package/dist/jsx/index.js.map +1 -0
- package/dist/jsx/index.mjs +23 -0
- package/dist/jsx/index.mjs.map +1 -0
- package/dist/jsx/index.native.js +56 -0
- package/dist/jsx/index.native.js.map +1 -0
- package/dist/jsx/mdxComponents.mjs +298 -0
- package/dist/jsx/mdxComponents.mjs.map +1 -0
- package/dist/jsx/mdxComponents.native.js +386 -0
- package/dist/jsx/mdxComponents.native.js.map +1 -0
- package/dist/jsx/mermaid/MermaidBlock.mjs +85 -0
- package/dist/jsx/mermaid/MermaidBlock.mjs.map +1 -0
- package/dist/jsx/mermaid/MermaidBlock.native.js +41 -0
- package/dist/jsx/mermaid/MermaidBlock.native.js.map +1 -0
- package/dist/jsx/mermaid/index.mjs +4 -0
- package/dist/jsx/mermaid/index.mjs.map +1 -0
- package/dist/jsx/mermaid/index.native.js +34 -0
- package/dist/jsx/mermaid/index.native.js.map +1 -0
- package/dist/jsx/mermaid/mountDiagramSvg.mjs +29 -0
- package/dist/jsx/mermaid/mountDiagramSvg.mjs.map +1 -0
- package/dist/jsx/mermaid/mountDiagramSvg.native.js +98 -0
- package/dist/jsx/mermaid/mountDiagramSvg.native.js.map +1 -0
- package/dist/jsx/mermaid/renderMermaidDiagram.mjs +55 -0
- package/dist/jsx/mermaid/renderMermaidDiagram.mjs.map +1 -0
- package/dist/jsx/mermaid/renderMermaidDiagram.native.js +110 -0
- package/dist/jsx/mermaid/renderMermaidDiagram.native.js.map +1 -0
- package/dist/jsx/parser.mjs +12 -0
- package/dist/jsx/parser.mjs.map +1 -0
- package/dist/jsx/parser.native.js +52 -0
- package/dist/jsx/parser.native.js.map +1 -0
- package/dist/jsx/renderer.mjs +308 -0
- package/dist/jsx/renderer.mjs.map +1 -0
- package/dist/jsx/renderer.native.js +356 -0
- package/dist/jsx/renderer.native.js.map +1 -0
- package/dist/jsx/shared/colorRamps.mjs +36 -0
- package/dist/jsx/shared/colorRamps.mjs.map +1 -0
- package/dist/jsx/shared/colorRamps.native.js +67 -0
- package/dist/jsx/shared/colorRamps.native.js.map +1 -0
- package/dist/jsx/shared/cutoffGradient.mjs +28 -0
- package/dist/jsx/shared/cutoffGradient.mjs.map +1 -0
- package/dist/jsx/shared/cutoffGradient.native.js +63 -0
- package/dist/jsx/shared/cutoffGradient.native.js.map +1 -0
- package/dist/jsx/shared/index.mjs +2 -0
- package/dist/jsx/shared/index.mjs.map +1 -0
- package/dist/jsx/shared/index.native.js +23 -0
- package/dist/jsx/shared/index.native.js.map +1 -0
- package/dist/jsx/shiki/index.mjs +2 -0
- package/dist/jsx/shiki/index.mjs.map +1 -0
- package/dist/jsx/shiki/index.native.js +21 -0
- package/dist/jsx/shiki/index.native.js.map +1 -0
- package/dist/jsx/types.mjs +2 -0
- package/dist/jsx/types.mjs.map +1 -0
- package/dist/jsx/types.native.js +21 -0
- package/dist/jsx/types.native.js.map +1 -0
- package/dist/jsx/util/rehypeMetaAttributes.mjs +20 -0
- package/dist/jsx/util/rehypeMetaAttributes.mjs.map +1 -0
- package/dist/jsx/util/rehypeMetaAttributes.native.js +49 -0
- package/dist/jsx/util/rehypeMetaAttributes.native.js.map +1 -0
- package/package.json +9 -9
- package/types/Aside/index.d.ts +11 -0
- package/types/Aside/index.d.ts.map +1 -0
- package/types/ExternalIcon/index.d.ts +2 -0
- package/types/ExternalIcon/index.d.ts.map +1 -0
- package/types/Hr/index.d.ts +2 -0
- package/types/Hr/index.d.ts.map +1 -0
- package/types/Li/index.d.ts +6 -0
- package/types/Li/index.d.ts.map +1 -0
- package/types/Markdown.d.ts +22 -0
- package/types/Markdown.d.ts.map +1 -0
- package/types/MarkdownSimpleTable/index.d.ts +16 -0
- package/types/MarkdownSimpleTable/index.d.ts.map +1 -0
- package/types/Mdx/index.d.ts +9 -0
- package/types/Mdx/index.d.ts.map +1 -0
- package/types/MdxCodeBlock/index.d.ts +7 -0
- package/types/MdxCodeBlock/index.d.ts.map +1 -0
- package/types/MdxCodeBlock/mdxCodeBlockContext.d.ts +13 -0
- package/types/MdxCodeBlock/mdxCodeBlockContext.d.ts.map +1 -0
- package/types/Notice/index.d.ts +12 -0
- package/types/Notice/index.d.ts.map +1 -0
- package/types/Table/index.d.ts +20 -0
- package/types/Table/index.d.ts.map +1 -0
- package/types/Tabs/index.d.ts +21 -0
- package/types/Tabs/index.d.ts.map +1 -0
- package/types/Ul/index.d.ts +6 -0
- package/types/Ul/index.d.ts.map +1 -0
- package/types/Video/index.d.ts +12 -0
- package/types/Video/index.d.ts.map +1 -0
- package/types/components/Blockquote.d.ts +3 -0
- package/types/components/Blockquote.d.ts.map +1 -0
- package/types/components/Break.d.ts +3 -0
- package/types/components/Break.d.ts.map +1 -0
- package/types/components/CodeBlock.d.ts +17 -0
- package/types/components/CodeBlock.d.ts.map +1 -0
- package/types/components/Heading.d.ts +3 -0
- package/types/components/Heading.d.ts.map +1 -0
- package/types/components/HorizontalRule.d.ts +3 -0
- package/types/components/HorizontalRule.d.ts.map +1 -0
- package/types/components/Image.d.ts +3 -0
- package/types/components/Image.d.ts.map +1 -0
- package/types/components/InlineCode.d.ts +12 -0
- package/types/components/InlineCode.d.ts.map +1 -0
- package/types/components/InlineStyles.d.ts +5 -0
- package/types/components/InlineStyles.d.ts.map +1 -0
- package/types/components/Link.d.ts +3 -0
- package/types/components/Link.d.ts.map +1 -0
- package/types/components/List.d.ts +10 -0
- package/types/components/List.d.ts.map +1 -0
- package/types/components/Paragraph.d.ts +3 -0
- package/types/components/Paragraph.d.ts.map +1 -0
- package/types/components/Table.d.ts +13 -0
- package/types/components/Table.d.ts.map +1 -0
- package/types/components/index.d.ts +13 -0
- package/types/components/index.d.ts.map +1 -0
- package/types/hooks/index.d.ts +4 -0
- package/types/hooks/index.d.ts.map +1 -0
- package/types/hooks/useCompileAndEvaluateMdx.d.ts +9 -0
- package/types/hooks/useCompileAndEvaluateMdx.d.ts.map +1 -0
- package/types/hooks/useCompileMdx.d.ts +13 -0
- package/types/hooks/useCompileMdx.d.ts.map +1 -0
- package/types/hooks/useEvaluateMdx.d.ts +5 -0
- package/types/hooks/useEvaluateMdx.d.ts.map +1 -0
- package/types/icons/index.d.ts +12 -0
- package/types/icons/index.d.ts.map +1 -0
- package/types/index.d.ts +29 -0
- package/types/index.d.ts.map +1 -0
- package/types/mdxComponents.d.ts +8 -0
- package/types/mdxComponents.d.ts.map +1 -0
- package/types/mermaid/MermaidBlock.d.ts +15 -0
- package/types/mermaid/MermaidBlock.d.ts.map +1 -0
- package/types/mermaid/MermaidBlock.native.d.ts +10 -0
- package/types/mermaid/MermaidBlock.native.d.ts.map +1 -0
- package/types/mermaid/index.d.ts +18 -0
- package/types/mermaid/index.d.ts.map +1 -0
- package/types/mermaid/mountDiagramSvg.d.ts +11 -0
- package/types/mermaid/mountDiagramSvg.d.ts.map +1 -0
- package/types/mermaid/renderMermaidDiagram.d.ts +33 -0
- package/types/mermaid/renderMermaidDiagram.d.ts.map +1 -0
- package/types/parser.d.ts +11 -0
- package/types/parser.d.ts.map +1 -0
- package/types/renderer.d.ts +32 -0
- package/types/renderer.d.ts.map +1 -0
- package/types/shared/colorRamps.d.ts +39 -0
- package/types/shared/colorRamps.d.ts.map +1 -0
- package/types/shared/cutoffGradient.d.ts +12 -0
- package/types/shared/cutoffGradient.d.ts.map +1 -0
- package/types/shared/index.d.ts +2 -0
- package/types/shared/index.d.ts.map +1 -0
- package/types/shiki/index.d.ts +8 -0
- package/types/shiki/index.d.ts.map +1 -0
- package/types/types.d.ts +160 -0
- package/types/types.d.ts.map +1 -0
- package/types/util/rehypeMetaAttributes.d.ts +2 -0
- package/types/util/rehypeMetaAttributes.d.ts.map +1 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var Blockquote_exports = {};
|
|
26
|
+
__export(Blockquote_exports, {
|
|
27
|
+
Blockquote: () => Blockquote
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(Blockquote_exports);
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_tamagui = require("tamagui");
|
|
32
|
+
var import_theme = require("@multiplatform.one/theme");
|
|
33
|
+
var import_colorRamps = require("../shared/colorRamps.native.js");
|
|
34
|
+
function Blockquote(param) {
|
|
35
|
+
var {
|
|
36
|
+
children
|
|
37
|
+
} = param;
|
|
38
|
+
var _ref, _ref1;
|
|
39
|
+
var _getTokens_space_padToken, _getTokens_space, _theme_color8;
|
|
40
|
+
var {
|
|
41
|
+
knobProps
|
|
42
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
43
|
+
var theme = (0, import_tamagui.useTheme)();
|
|
44
|
+
var padToken = knobProps.panelPadding.padding;
|
|
45
|
+
var pad = typeof padToken === "number" ? padToken : (_ref = (_getTokens_space = (0, import_tamagui.getTokens)().space) === null || _getTokens_space === void 0 ? void 0 : (_getTokens_space_padToken = _getTokens_space[padToken]) === null || _getTokens_space_padToken === void 0 ? void 0 : _getTokens_space_padToken.val) !== null && _ref !== void 0 ? _ref : padToken;
|
|
46
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.View, {
|
|
47
|
+
backgroundColor: import_colorRamps.markdownBlockquoteColors.background.base,
|
|
48
|
+
// R-SCALE quote frame (spec Blockquote): the painted quote surface
|
|
49
|
+
// rounds with the radius knob, capped at its own padding (Axiom 1 —
|
|
50
|
+
// containerRadius fragment). Was radius-dead (spec conformance note).
|
|
51
|
+
...knobProps.containerRadius,
|
|
52
|
+
paddingVertical: knobProps.gap.gap,
|
|
53
|
+
marginVertical: "$3",
|
|
54
|
+
// CSS logical properties keep the border and padding on the logical
|
|
55
|
+
// start side in RTL (SB-M-1215); tamagui borderStartWidth does not
|
|
56
|
+
// compile to working CSS in this version. Native uses the RN logical
|
|
57
|
+
// border/padding props, which flip with I18nManager.
|
|
58
|
+
...(import_tamagui.isWeb ? {
|
|
59
|
+
style: {
|
|
60
|
+
borderInlineStartWidth: 4,
|
|
61
|
+
borderInlineStartStyle: "solid",
|
|
62
|
+
borderInlineStartColor: (_ref1 = (_theme_color8 = theme.color8) === null || _theme_color8 === void 0 ? void 0 : _theme_color8.val) !== null && _ref1 !== void 0 ? _ref1 : "#999",
|
|
63
|
+
paddingInlineStart: pad
|
|
64
|
+
}
|
|
65
|
+
} : {
|
|
66
|
+
borderStartWidth: 4,
|
|
67
|
+
borderStartColor: import_colorRamps.markdownBlockquoteColors.border.base,
|
|
68
|
+
paddingStart: knobProps.panelPadding.padding
|
|
69
|
+
}),
|
|
70
|
+
children
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=Blockquote.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Blockquote_exports","__export","Blockquote","module","exports","import_jsx_runtime","require","import_tamagui","import_theme","import_colorRamps","param","children","_ref","_ref1","_getTokens_space_padToken","_getTokens_space","_theme_color8","knobProps","useResolvedKnobs","theme","useTheme","padToken","panelPadding","padding","pad","getTokens","space","val","jsx","View","backgroundColor","markdownBlockquoteColors","background","base","containerRadius","paddingVertical","gap","marginVertical","isWeb","style","borderInlineStartWidth","borderInlineStartStyle","borderInlineStartColor","color8","paddingInlineStart"],"sources":["../../../src/components/Blockquote.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAiD,CAAAK,kBAAA;AACjD,IAAAK,kBAAiC,GAAAC,OAAA;AACjC,IAAAC,cAAA,GAAAD,OAAyC;AAYrC,IAAAE,YAAA,GAAAF,OAAA;AATG,IAAAG,iBAAoB,GAAEH,OAAS,iCAAoB;AACxD,SAAMJ,UAAEA,CAAUQ,KAAA;EAClB;IAAMC;EAAA,IAAQD,KAAA;EACd,IAAAE,IAAM,EAAAC,KAAA;EACN,IAAAC,yBACS,EAAAC,gBACH,EAAAC,aACE;EACR;IAAAC;EACE,QAAAT,YAAA,CAAAU,gBAAA;EAAA,IAACC,KAAA,OAAAZ,cAAA,CAAAa,QAAA;EAAA,IAAAC,QAAA,GAAAJ,SAAA,CAAAK,YAAA,CAAAC,OAAA;EAAA,IACCC,GAAA,UAAAH,QAAiB,gBAAAA,QAAA,IAAAT,IAAA,IAAAG,gBAAoC,OAAAR,cAAA,CAAAkB,SAAA,IAAAC,KAAA,cAAAX,gBAAA,wBAAAD,yBAAA,GAAAC,gBAAA,CAAAM,QAAA,eAAAP,yBAAA,uBAAAA,yBAAA,CAAAa,GAAA,cAAAf,IAAA,cAAAA,IAAA,GAAAS,QAAA;EAAA,OAIjD,eAAU,IAAAhB,kBAAA,CAAAuB,GAAA,EAAArB,cAAA,CAAAsB,IAAA;IAAAC,eACd,EAAArB,iBAA+B,CAAAsB,wBAAA,CAAAC,UAAA,CAAAC,IAAA;IAAA;IAChB;IAMX;IACS,GAAAhB,SACL,CAAAiB,eAAA;IAAwBC,eACxB,EAAAlB,SAAA,CAAAmB,GAAwB,CAAAA,GAAA;IAAAC,cACxB;IAA6C;IACzB;IACtB;IAEF;IACoB,IAAA9B,cAClB,CAAA+B,KAAkB;MAAgCC,KAClD;QACFC,sBAAA;QAEHC,sBAAA;QAAAC,sBAAA,GAAA7B,KAAA,IAAAG,aAAA,GAAAG,KAAA,CAAAwB,MAAA,cAAA3B,aAAA,uBAAAA,aAAA,CAAAW,GAAA,cAAAd,KAAA,cAAAA,KAAA;QACH+B,kBAAA,EAAApB;MAEJ","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var Break_exports = {};
|
|
24
|
+
__export(Break_exports, {
|
|
25
|
+
Break: () => Break
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(Break_exports);
|
|
28
|
+
var import_tamagui = require("tamagui");
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
+
function Break(_props) {
|
|
31
|
+
if (import_tamagui.isWeb) return /* @__PURE__ */(0, import_jsx_runtime.jsx)("br", {});
|
|
32
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
33
|
+
children: "\n"
|
|
34
|
+
});
|
|
35
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var Break_exports = {};
|
|
26
|
+
__export(Break_exports, {
|
|
27
|
+
Break: () => Break
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(Break_exports);
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_tamagui = require("tamagui");
|
|
32
|
+
function Break(_props) {
|
|
33
|
+
if (import_tamagui.isWeb) return /* @__PURE__ */(0, import_jsx_runtime.jsx)("br", {});
|
|
34
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
35
|
+
children: "\n"
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=Break.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Break_exports","__export","Break","module","exports","import_jsx_runtime","require","import_tamagui","_props","isWeb","jsx","Text"],"sources":["../../../src/components/Break.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,KAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA4B,CAAAK,aAAA;AAKR,IAAAK,kBAAA,GAAAC,OAAA;AAFb,IAAAC,cAAe,GAAAD,OAAoB;AAExC,SAAIJ,MAAAM,MAAA;EACJ,IAAAD,cAAO,CAAAE,KAAA,0BAAC,EAAAJ,kBAAA,CAAAK,GAAM;EAChB,0BAAAL,kBAAA,CAAAK,GAAA,EAAAH,cAAA,CAAAI,IAAA","ignoreList":[]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var CodeBlock_exports = {};
|
|
24
|
+
__export(CodeBlock_exports, {
|
|
25
|
+
CodeBlock: () => CodeBlock
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(CodeBlock_exports);
|
|
28
|
+
var import_components = require("@multiplatform.one/components");
|
|
29
|
+
var import_theme = require("@multiplatform.one/theme");
|
|
30
|
+
var import_tamagui = require("tamagui");
|
|
31
|
+
var import_colorRamps = require("../shared/colorRamps.cjs");
|
|
32
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
|
+
function CodeBlock({
|
|
34
|
+
children,
|
|
35
|
+
lang,
|
|
36
|
+
theme: themeProp = "auto"
|
|
37
|
+
}) {
|
|
38
|
+
const {
|
|
39
|
+
knobProps
|
|
40
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
41
|
+
const tokens = (0, import_components.useShikiTokens)(children, lang || "text", themeProp === "auto" ? void 0 : themeProp);
|
|
42
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.View, {
|
|
43
|
+
...(knobProps.borderRadiusOuter ?? {
|
|
44
|
+
borderRadius: "$4"
|
|
45
|
+
}),
|
|
46
|
+
backgroundColor: import_colorRamps.markdownCodeColors.background.base,
|
|
47
|
+
borderWidth: 1,
|
|
48
|
+
borderColor: import_colorRamps.markdownCodeColors.border.base,
|
|
49
|
+
...knobProps.panelPadding,
|
|
50
|
+
marginVertical: "$2",
|
|
51
|
+
overflow: "hidden",
|
|
52
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.ScrollView, {
|
|
53
|
+
horizontal: true,
|
|
54
|
+
showsHorizontalScrollIndicator: false,
|
|
55
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Code, {
|
|
56
|
+
backgroundColor: "transparent",
|
|
57
|
+
borderWidth: 0,
|
|
58
|
+
padding: 0,
|
|
59
|
+
color: import_colorRamps.markdownCodeColors.text.base,
|
|
60
|
+
fontSize: knobProps.sizeToken,
|
|
61
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.HighlightedCode, {
|
|
62
|
+
tokens,
|
|
63
|
+
fontSize: knobProps.sizeToken,
|
|
64
|
+
children
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var CodeBlock_exports = {};
|
|
26
|
+
__export(CodeBlock_exports, {
|
|
27
|
+
CodeBlock: () => CodeBlock
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(CodeBlock_exports);
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_components = require("@multiplatform.one/components");
|
|
32
|
+
var import_theme = require("@multiplatform.one/theme");
|
|
33
|
+
var import_tamagui = require("tamagui");
|
|
34
|
+
var import_colorRamps = require("../shared/colorRamps.native.js");
|
|
35
|
+
function CodeBlock(param) {
|
|
36
|
+
var {
|
|
37
|
+
children,
|
|
38
|
+
lang,
|
|
39
|
+
theme: themeProp = "auto"
|
|
40
|
+
} = param;
|
|
41
|
+
var _knobProps_borderRadiusOuter;
|
|
42
|
+
var {
|
|
43
|
+
knobProps
|
|
44
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
45
|
+
var tokens = (0, import_components.useShikiTokens)(children, lang || "text", themeProp === "auto" ? void 0 : themeProp);
|
|
46
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.View, {
|
|
47
|
+
...((_knobProps_borderRadiusOuter = knobProps.borderRadiusOuter) !== null && _knobProps_borderRadiusOuter !== void 0 ? _knobProps_borderRadiusOuter : {
|
|
48
|
+
borderRadius: "$4"
|
|
49
|
+
}),
|
|
50
|
+
backgroundColor: import_colorRamps.markdownCodeColors.background.base,
|
|
51
|
+
borderWidth: 1,
|
|
52
|
+
borderColor: import_colorRamps.markdownCodeColors.border.base,
|
|
53
|
+
// SP-PAD (spec CodeBlock frame; LC-18 / UX-P07): the block inset rides
|
|
54
|
+
// the space knob through the complete panelPadding fragment —
|
|
55
|
+
// components-CodeBlock parity.
|
|
56
|
+
...knobProps.panelPadding,
|
|
57
|
+
marginVertical: "$2",
|
|
58
|
+
overflow: "hidden",
|
|
59
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.ScrollView, {
|
|
60
|
+
horizontal: true,
|
|
61
|
+
showsHorizontalScrollIndicator: false,
|
|
62
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Code, {
|
|
63
|
+
backgroundColor: "transparent",
|
|
64
|
+
borderWidth: 0,
|
|
65
|
+
padding: 0,
|
|
66
|
+
color: import_colorRamps.markdownCodeColors.text.base,
|
|
67
|
+
fontSize: knobProps.sizeToken,
|
|
68
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.HighlightedCode, {
|
|
69
|
+
tokens,
|
|
70
|
+
fontSize: knobProps.sizeToken,
|
|
71
|
+
children
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=CodeBlock.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","CodeBlock_exports","__export","CodeBlock","module","exports","import_jsx_runtime","require","import_components","import_theme","import_tamagui","import_colorRamps","param","children","lang","theme","themeProp","_knobProps_borderRadiusOuter","knobProps","useResolvedKnobs","tokens","useShikiTokens","jsx","View","borderRadiusOuter","borderRadius","backgroundColor","markdownCodeColors","background","base","borderWidth","borderColor","border","panelPadding","marginVertical","overflow","ScrollView","horizontal","showsHorizontalScrollIndicator","Code","padding","color","text","fontSize","sizeToken","HighlightedCode"],"sources":["../../../src/components/CodeBlock.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAWAC,MAAA,CAAAC,OAAA,GAAAT,YAAsD,CAAAK,iBAAA;AACtD,IAAAK,kBAAiC,GAAAC,OAAA;AACjC,IAAAC,iBAAiC,GAAAD,OAAA;AACjC,IAAAE,YAAA,GAAAF,OAAmC;AA0CzB,IAAAG,cAAA,GAAAH,OAAA;AAnCH,IAAAI,iBAAqB,GAAAJ,OAAU,iCAAa;AACjD,SAAMJ,SAAEA,CAAAS,KAAU;EAIlB;IAAMC,QAAA;IAAAC,IAAS;IAAAC,KAAA,EAAAC,SAAA;EAAA,IAAAJ,KAAA;EAAA,IACbK,4BAAA;EAAA,IACA;IAAAC;EAAQ,QAAAT,YAAA,CAAAU,gBAAA;EAAA,IACRC,MAAA,OAAcZ,iBAAqB,CAAAa,cAAA,EAAAR,QAAA,EAAAC,IAAA,YAAAE,SAAA,uBAAAA,SAAA;EACrC,0BAAAV,kBAAA,CAAAgB,GAAA,EAAAZ,cAAA,CAAAa,IAAA;IAEA,KAAAN,4BACE,GAAAC,SAAA,CAAAM,iBAAA,cAAAP,4BAAA,cAAAA,4BAAA;MAACQ,YAAA;IAAA;IAAAC,eAIgB,EAAAf,iBAAA,CAAAgB,kBAAqC,CAAAC,UAAK,CAAAC,IAAA;IAAAC,WACzD;IAA+CC,WAC/C,EAAApB,iBAAa,CAAAgB,kBAAA,CAAAK,MAAA,CAAAH,IAAA;IAAA;IAC0B;IAIzB;IACC,GACfX,SAAS,CAAAe,YAAA;IAAAC,cAET;IACEC,QAAC;IAAAtB,QAAA,qBAAAP,kBAAA,CAAAgB,GAAA,EAAAZ,cAAA,CAAA0B,UAAA;MAAAC,UACC;MAAgBC,8BACH;MAAAzB,QACb,iBAAS,IAAAP,kBAAA,CAAAgB,GAAA,EAAAd,iBAAA,CAAA+B,IAAA;QAAAb,eACF;QAAwBI,WAC/B,EAAU;QAAUU,OAEpB;QAEAC,KAAA,EAAA9B,iBAAA,CAAAgB,kBAAA,CAAAe,IAAA,CAAAb,IAAA;QACFc,QACF,EAAAzB,SAAA,CAAA0B,SAAA;QAAA/B,QAAA,qBAAAP,kBAAA,CAAAgB,GAAA,EAAAd,iBAAA,CAAAqC,eAAA;UACFzB,MAAA;UAEJuB,QAAA,EAAAzB,SAAA,CAAA0B,SAAA","ignoreList":[]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var Heading_exports = {};
|
|
24
|
+
__export(Heading_exports, {
|
|
25
|
+
Heading: () => Heading
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(Heading_exports);
|
|
28
|
+
var import_theme = require("@multiplatform.one/theme");
|
|
29
|
+
var import_tamagui = require("tamagui");
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
const headingComponents = {
|
|
32
|
+
1: import_tamagui.H1,
|
|
33
|
+
2: import_tamagui.H2,
|
|
34
|
+
3: import_tamagui.H3,
|
|
35
|
+
4: import_tamagui.H4,
|
|
36
|
+
5: import_tamagui.H5,
|
|
37
|
+
6: import_tamagui.H6
|
|
38
|
+
};
|
|
39
|
+
const headingBaseSize = {
|
|
40
|
+
1: 9,
|
|
41
|
+
2: 8,
|
|
42
|
+
3: 7,
|
|
43
|
+
4: 6,
|
|
44
|
+
5: 5,
|
|
45
|
+
6: 4
|
|
46
|
+
};
|
|
47
|
+
const sizeShift = {
|
|
48
|
+
$3: -1,
|
|
49
|
+
$4: 0,
|
|
50
|
+
$5: 1
|
|
51
|
+
};
|
|
52
|
+
function Heading({
|
|
53
|
+
level,
|
|
54
|
+
children
|
|
55
|
+
}) {
|
|
56
|
+
const Component = headingComponents[level];
|
|
57
|
+
const {
|
|
58
|
+
knobProps
|
|
59
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
60
|
+
const headingFamily = import_tamagui.isWeb ? null : {
|
|
61
|
+
fontFamily: knobProps.heading.fontFamily
|
|
62
|
+
};
|
|
63
|
+
const size = `$${headingBaseSize[level] + (sizeShift[knobProps.sizeToken] ?? 0)}`;
|
|
64
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Component, {
|
|
65
|
+
marginTop: "$3",
|
|
66
|
+
marginBottom: "$2",
|
|
67
|
+
size,
|
|
68
|
+
...headingFamily,
|
|
69
|
+
children
|
|
70
|
+
});
|
|
71
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var Heading_exports = {};
|
|
26
|
+
__export(Heading_exports, {
|
|
27
|
+
Heading: () => Heading
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(Heading_exports);
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_theme = require("@multiplatform.one/theme");
|
|
32
|
+
var import_tamagui = require("tamagui");
|
|
33
|
+
var headingComponents = {
|
|
34
|
+
1: import_tamagui.H1,
|
|
35
|
+
2: import_tamagui.H2,
|
|
36
|
+
3: import_tamagui.H3,
|
|
37
|
+
4: import_tamagui.H4,
|
|
38
|
+
5: import_tamagui.H5,
|
|
39
|
+
6: import_tamagui.H6
|
|
40
|
+
};
|
|
41
|
+
var headingBaseSize = {
|
|
42
|
+
1: 9,
|
|
43
|
+
2: 8,
|
|
44
|
+
3: 7,
|
|
45
|
+
4: 6,
|
|
46
|
+
5: 5,
|
|
47
|
+
6: 4
|
|
48
|
+
};
|
|
49
|
+
var sizeShift = {
|
|
50
|
+
$3: -1,
|
|
51
|
+
$4: 0,
|
|
52
|
+
$5: 1
|
|
53
|
+
};
|
|
54
|
+
function Heading(param) {
|
|
55
|
+
var {
|
|
56
|
+
level,
|
|
57
|
+
children
|
|
58
|
+
} = param;
|
|
59
|
+
var _sizeShift_knobProps_sizeToken;
|
|
60
|
+
var Component = headingComponents[level];
|
|
61
|
+
var {
|
|
62
|
+
knobProps
|
|
63
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
64
|
+
var headingFamily = import_tamagui.isWeb ? null : {
|
|
65
|
+
fontFamily: knobProps.heading.fontFamily
|
|
66
|
+
};
|
|
67
|
+
var size = `$${headingBaseSize[level] + ((_sizeShift_knobProps_sizeToken = sizeShift[knobProps.sizeToken]) !== null && _sizeShift_knobProps_sizeToken !== void 0 ? _sizeShift_knobProps_sizeToken : 0)}`;
|
|
68
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Component, {
|
|
69
|
+
marginTop: "$3",
|
|
70
|
+
marginBottom: "$2",
|
|
71
|
+
size,
|
|
72
|
+
...headingFamily,
|
|
73
|
+
children
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=Heading.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Heading_exports","__export","Heading","module","exports","import_jsx_runtime","require","import_theme","import_tamagui","headingComponents","H1","H2","H3","H4","H5","H6","headingBaseSize"],"sources":["../../../src/components/Heading.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,eAAA;AAAAC,QAAA,CAAAD,eAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAiC,CAAAK,eAAA;AACjC,IAAAK,kBAA8C,GAAAC,OAAA;AA2B1C,IAAAC,YAAA,GAAAD,OAAA;AAxBJ,IAAAE,cAAM,GAAAF,OAAoB;AAAA,IACxBG,iBAAG;EACH,GAAGD,cAAA,CAAAE,EAAA;EACH,GAAGF,cAAA,CAAAG,EAAA;EACH,GAAGH,cAAA,CAAAI,EAAA;EACH,GAAGJ,cAAA,CAAAK,EAAA;EACH,GAAGL,cAAA,CAAAM,EAAA;EACL,GAAAN,cAAA,CAAAO;AAGA;AAGA,IAAAC,eAA0C,GAAE;EAErC;EACL;EAIA;EACA;EACA;EACA;AAKF","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var HorizontalRule_exports = {};
|
|
24
|
+
__export(HorizontalRule_exports, {
|
|
25
|
+
HorizontalRule: () => HorizontalRule
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(HorizontalRule_exports);
|
|
28
|
+
var import_tamagui = require("tamagui");
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
+
function HorizontalRule(_props) {
|
|
31
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Separator, {
|
|
32
|
+
marginVertical: "$4"
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var HorizontalRule_exports = {};
|
|
26
|
+
__export(HorizontalRule_exports, {
|
|
27
|
+
HorizontalRule: () => HorizontalRule
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(HorizontalRule_exports);
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_tamagui = require("tamagui");
|
|
32
|
+
function HorizontalRule(_props) {
|
|
33
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Separator, {
|
|
34
|
+
marginVertical: "$4"
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=HorizontalRule.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","HorizontalRule_exports","__export","HorizontalRule","module","exports","import_jsx_runtime","require","import_tamagui","_props","jsx","Separator"],"sources":["../../../src/components/HorizontalRule.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,sBAAA;AAAAC,QAAA,CAAAD,sBAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA0B,CAAAK,sBAAA;AAIjB,IAAAK,kBAAA,GAAAC,OAAA;AADF,IAAAC,cAAS,GAAAD,OAAe,UAA6B;AAC1D,SAAOJ,eAAAM,MAAA;EACT,0BAAAH,kBAAA,CAAAI,GAAA,EAAAF,cAAA,CAAAG,SAAA","ignoreList":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var Image_exports = {};
|
|
24
|
+
__export(Image_exports, {
|
|
25
|
+
MarkdownImage: () => MarkdownImage
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(Image_exports);
|
|
28
|
+
var import_tamagui = require("tamagui");
|
|
29
|
+
var import_theme = require("@multiplatform.one/theme");
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
function MarkdownImage({
|
|
32
|
+
src,
|
|
33
|
+
alt,
|
|
34
|
+
title
|
|
35
|
+
}) {
|
|
36
|
+
const {
|
|
37
|
+
knobProps
|
|
38
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
39
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.View, {
|
|
40
|
+
marginVertical: "$2",
|
|
41
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Image, {
|
|
42
|
+
src,
|
|
43
|
+
alt: alt || "",
|
|
44
|
+
"aria-label": alt || title || void 0,
|
|
45
|
+
width: "100%",
|
|
46
|
+
height: 200,
|
|
47
|
+
objectFit: "contain",
|
|
48
|
+
borderRadius: knobProps.borderRadius.borderRadius
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var Image_exports = {};
|
|
26
|
+
__export(Image_exports, {
|
|
27
|
+
MarkdownImage: () => MarkdownImage
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(Image_exports);
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_tamagui = require("tamagui");
|
|
32
|
+
var import_theme = require("@multiplatform.one/theme");
|
|
33
|
+
function MarkdownImage(param) {
|
|
34
|
+
var {
|
|
35
|
+
src,
|
|
36
|
+
alt,
|
|
37
|
+
title
|
|
38
|
+
} = param;
|
|
39
|
+
var {
|
|
40
|
+
knobProps
|
|
41
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
42
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.View, {
|
|
43
|
+
marginVertical: "$2",
|
|
44
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Image, {
|
|
45
|
+
// src (string), not source: the RN source object never reaches the
|
|
46
|
+
// DOM <img> src on web, so the image silently renders empty; tamagui
|
|
47
|
+
// maps src back to source={{uri}} on native.
|
|
48
|
+
src,
|
|
49
|
+
alt: alt || "",
|
|
50
|
+
"aria-label": alt || title || void 0,
|
|
51
|
+
width: "100%",
|
|
52
|
+
height: 200,
|
|
53
|
+
objectFit: "contain",
|
|
54
|
+
borderRadius: knobProps.borderRadius.borderRadius
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=Image.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Image_exports","__export","MarkdownImage","module","exports","import_jsx_runtime","require","import_tamagui","import_theme","param","src","alt","title","knobProps","useResolvedKnobs","jsx","View","marginVertical","children","Image","width","height"],"sources":["../../../src/components/Image.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA4C,CAAAK,aAAA;AAC5C,IAAAK,kBAAiC,GAAAC,OAAA;AAO3B,IAAAC,cAAA,GAAAD,OAAA;AAJC,IAAAE,YAAS,GAAAF,OAAgB,2BAA+B;AAC7D,SAAMJ,aAAYA,CAAAO,KAAI;EACtB;IAAAC,GACE;IAAAC,GAAA;IAAAC;EAAA,IAAAH,KAAA;EACE,IAAC;IAAAI;EAAA,QAAAL,YAAA,CAAAM,gBAAA;EAAA,0BAAAT,kBAAA,CAAAU,GAAA,EAAAR,cAAA,CAAAS,IAAA;IAAAC,cAIC;IAAAC,QACK,iBAAO,IAAAb,kBAAA,CAAAU,GAAA,EAAAR,cAAA,CAAAY,KAAA;MACZ;MACA;MACA;MACAT,GAAA;MACAC,GAAA,EAAAA,GAAA,MAAc;MAAuB,cAAAA,GAAA,IAAAC,KAAA;MAEzCQ,KAAA;MAEJC,MAAA","ignoreList":[]}
|