@multiplatform.one/markdown 9.17.0 → 10.0.0
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 +87 -101
- package/dist/cjs/Aside/index.native.cjs +119 -0
- package/dist/cjs/Aside/index.native.js +93 -109
- package/dist/cjs/Aside/index.native.js.map +1 -1
- package/dist/cjs/ExternalIcon/index.cjs +28 -34
- package/dist/cjs/ExternalIcon/index.native.cjs +46 -0
- package/dist/cjs/ExternalIcon/index.native.js +30 -35
- package/dist/cjs/ExternalIcon/index.native.js.map +1 -1
- package/dist/cjs/Hr/index.cjs +14 -20
- package/dist/cjs/Hr/index.native.cjs +30 -0
- package/dist/cjs/Hr/index.native.js +15 -20
- package/dist/cjs/Hr/index.native.js.map +1 -1
- package/dist/cjs/Li/index.cjs +20 -26
- package/dist/cjs/Li/index.native.cjs +34 -0
- package/dist/cjs/Li/index.native.js +20 -25
- package/dist/cjs/Li/index.native.js.map +1 -1
- package/dist/cjs/Markdown.cjs +38 -43
- package/dist/cjs/Markdown.native.cjs +56 -0
- package/dist/cjs/Markdown.native.js +38 -42
- package/dist/cjs/Markdown.native.js.map +1 -1
- package/dist/cjs/MarkdownSimpleTable/index.cjs +112 -131
- package/dist/cjs/MarkdownSimpleTable/index.native.cjs +159 -0
- package/dist/cjs/MarkdownSimpleTable/index.native.js +136 -158
- package/dist/cjs/MarkdownSimpleTable/index.native.js.map +1 -1
- package/dist/cjs/Mdx/index.cjs +27 -50
- package/dist/cjs/Mdx/index.native.cjs +46 -0
- package/dist/cjs/Mdx/index.native.js +27 -49
- package/dist/cjs/Mdx/index.native.js.map +1 -1
- package/dist/cjs/MdxCodeBlock/index.cjs +138 -176
- package/dist/cjs/MdxCodeBlock/index.native.cjs +181 -0
- package/dist/cjs/MdxCodeBlock/index.native.js +150 -195
- package/dist/cjs/MdxCodeBlock/index.native.js.map +1 -1
- package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.cjs +14 -18
- package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.native.cjs +27 -0
- package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.native.js +14 -17
- package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -1
- package/dist/cjs/Notice/index.cjs +34 -45
- package/dist/cjs/Notice/index.native.cjs +52 -0
- package/dist/cjs/Notice/index.native.js +34 -44
- package/dist/cjs/Notice/index.native.js.map +1 -1
- package/dist/cjs/Table/index.cjs +89 -123
- package/dist/cjs/Table/index.native.cjs +121 -0
- package/dist/cjs/Table/index.native.js +89 -124
- package/dist/cjs/Table/index.native.js.map +1 -1
- package/dist/cjs/Tabs/index.cjs +33 -45
- package/dist/cjs/Tabs/index.native.cjs +58 -0
- package/dist/cjs/Tabs/index.native.js +38 -49
- package/dist/cjs/Tabs/index.native.js.map +1 -1
- package/dist/cjs/Ul/index.cjs +19 -23
- package/dist/cjs/Ul/index.native.cjs +33 -0
- package/dist/cjs/Ul/index.native.js +19 -22
- package/dist/cjs/Ul/index.native.js.map +1 -1
- package/dist/cjs/Video/index.cjs +61 -78
- package/dist/cjs/Video/index.native.cjs +78 -0
- package/dist/cjs/Video/index.native.js +61 -79
- package/dist/cjs/Video/index.native.js.map +1 -1
- package/dist/cjs/components/Blockquote.cjs +37 -47
- package/dist/cjs/components/Blockquote.native.cjs +56 -0
- package/dist/cjs/components/Blockquote.native.js +39 -55
- package/dist/cjs/components/Blockquote.native.js.map +1 -1
- package/dist/cjs/components/Break.cjs +16 -22
- package/dist/cjs/components/Break.native.cjs +32 -0
- package/dist/cjs/components/Break.native.js +16 -21
- package/dist/cjs/components/Break.native.js.map +1 -1
- package/dist/cjs/components/CodeBlock.cjs +42 -54
- package/dist/cjs/components/CodeBlock.native.cjs +61 -0
- package/dist/cjs/components/CodeBlock.native.js +43 -57
- package/dist/cjs/components/CodeBlock.native.js.map +1 -1
- package/dist/cjs/components/Heading.cjs +42 -53
- package/dist/cjs/components/Heading.native.cjs +65 -0
- package/dist/cjs/components/Heading.native.js +43 -53
- package/dist/cjs/components/Heading.native.js.map +1 -1
- package/dist/cjs/components/HorizontalRule.cjs +25 -31
- package/dist/cjs/components/HorizontalRule.native.cjs +41 -0
- package/dist/cjs/components/HorizontalRule.native.js +25 -30
- package/dist/cjs/components/HorizontalRule.native.js.map +1 -1
- package/dist/cjs/components/Image.cjs +28 -38
- package/dist/cjs/components/Image.native.cjs +44 -0
- package/dist/cjs/components/Image.native.js +28 -41
- package/dist/cjs/components/Image.native.js.map +1 -1
- package/dist/cjs/components/InlineCode.cjs +25 -33
- package/dist/cjs/components/InlineCode.native.cjs +41 -0
- package/dist/cjs/components/InlineCode.native.js +25 -32
- package/dist/cjs/components/InlineCode.native.js.map +1 -1
- package/dist/cjs/components/InlineStyles.cjs +40 -54
- package/dist/cjs/components/InlineStyles.native.cjs +62 -0
- package/dist/cjs/components/InlineStyles.native.js +40 -53
- package/dist/cjs/components/InlineStyles.native.js.map +1 -1
- package/dist/cjs/components/Link.cjs +53 -61
- package/dist/cjs/components/Link.native.cjs +73 -0
- package/dist/cjs/components/Link.native.js +53 -61
- package/dist/cjs/components/Link.native.js.map +1 -1
- package/dist/cjs/components/List.cjs +107 -132
- package/dist/cjs/components/List.native.cjs +143 -0
- package/dist/cjs/components/List.native.js +111 -135
- package/dist/cjs/components/List.native.js.map +1 -1
- package/dist/cjs/components/Paragraph.cjs +22 -30
- package/dist/cjs/components/Paragraph.native.cjs +38 -0
- package/dist/cjs/components/Paragraph.native.js +22 -29
- package/dist/cjs/components/Paragraph.native.js.map +1 -1
- package/dist/cjs/components/Table.cjs +85 -104
- package/dist/cjs/components/Table.native.cjs +116 -0
- package/dist/cjs/components/Table.native.js +89 -111
- package/dist/cjs/components/Table.native.js.map +1 -1
- package/dist/cjs/components/index.cjs +30 -32
- package/dist/cjs/components/index.native.cjs +55 -0
- package/dist/cjs/components/index.native.js +30 -31
- package/dist/cjs/components/index.native.js.map +1 -1
- package/dist/cjs/hooks/index.cjs +9 -11
- package/dist/cjs/hooks/index.native.cjs +22 -0
- package/dist/cjs/hooks/index.native.js +9 -10
- package/dist/cjs/hooks/index.native.js.map +1 -1
- package/dist/cjs/hooks/useCompileAndEvaluateMdx.cjs +22 -29
- package/dist/cjs/hooks/useCompileAndEvaluateMdx.native.cjs +37 -0
- package/dist/cjs/hooks/useCompileAndEvaluateMdx.native.js +22 -28
- package/dist/cjs/hooks/useCompileAndEvaluateMdx.native.js.map +1 -1
- package/dist/cjs/hooks/useCompileMdx.cjs +89 -92
- package/dist/cjs/hooks/useCompileMdx.native.cjs +129 -0
- package/dist/cjs/hooks/useCompileMdx.native.js +106 -110
- package/dist/cjs/hooks/useCompileMdx.native.js.map +1 -1
- package/dist/cjs/hooks/useEvaluateMdx.cjs +34 -43
- package/dist/cjs/hooks/useEvaluateMdx.native.cjs +59 -0
- package/dist/cjs/hooks/useEvaluateMdx.native.js +36 -44
- package/dist/cjs/hooks/useEvaluateMdx.native.js.map +1 -1
- package/dist/cjs/icons/index.cjs +101 -115
- package/dist/cjs/icons/index.native.cjs +129 -0
- package/dist/cjs/icons/index.native.js +103 -118
- package/dist/cjs/icons/index.native.js.map +1 -1
- package/dist/cjs/index.cjs +18 -20
- package/dist/cjs/index.native.cjs +53 -0
- package/dist/cjs/index.native.js +18 -19
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/mdxComponents.cjs +247 -353
- package/dist/cjs/mdxComponents.native.cjs +349 -0
- package/dist/cjs/mdxComponents.native.js +300 -408
- package/dist/cjs/mdxComponents.native.js.map +1 -1
- package/dist/cjs/mermaid/MermaidBlock.cjs +84 -94
- package/dist/cjs/mermaid/MermaidBlock.native.cjs +34 -0
- package/dist/cjs/mermaid/MermaidBlock.native.js +19 -24
- package/dist/cjs/mermaid/MermaidBlock.native.js.map +1 -1
- package/dist/cjs/mermaid/index.cjs +16 -18
- package/dist/cjs/mermaid/index.native.cjs +31 -0
- package/dist/cjs/mermaid/index.native.js +16 -17
- package/dist/cjs/mermaid/index.native.js.map +1 -1
- package/dist/cjs/mermaid/mountDiagramSvg.cjs +37 -41
- package/dist/cjs/mermaid/mountDiagramSvg.native.cjs +90 -0
- package/dist/cjs/mermaid/mountDiagramSvg.native.js +74 -81
- package/dist/cjs/mermaid/mountDiagramSvg.native.js.map +1 -1
- package/dist/cjs/mermaid/renderMermaidDiagram.cjs +56 -67
- package/dist/cjs/mermaid/renderMermaidDiagram.native.cjs +37 -0
- package/dist/cjs/mermaid/renderMermaidDiagram.native.js +20 -21
- package/dist/cjs/mermaid/renderMermaidDiagram.native.js.map +1 -1
- package/dist/cjs/parser.cjs +20 -27
- package/dist/cjs/parser.native.cjs +44 -0
- package/dist/cjs/parser.native.js +20 -26
- package/dist/cjs/parser.native.js.map +1 -1
- package/dist/cjs/renderer.cjs +250 -314
- package/dist/cjs/renderer.native.cjs +295 -0
- package/dist/cjs/renderer.native.js +267 -330
- package/dist/cjs/renderer.native.js.map +1 -1
- package/dist/cjs/shared/colorRamps.cjs +28 -42
- package/dist/cjs/shared/colorRamps.native.cjs +46 -0
- package/dist/cjs/shared/colorRamps.native.js +29 -42
- package/dist/cjs/shared/colorRamps.native.js.map +1 -1
- package/dist/cjs/shared/cutoffGradient.cjs +36 -38
- package/dist/cjs/shared/cutoffGradient.native.cjs +60 -0
- package/dist/cjs/shared/cutoffGradient.native.js +42 -43
- package/dist/cjs/shared/cutoffGradient.native.js.map +1 -1
- package/dist/cjs/shared/textRidesText.cjs +39 -41
- package/dist/cjs/shared/textRidesText.native.cjs +76 -0
- package/dist/cjs/shared/textRidesText.native.js +56 -59
- package/dist/cjs/shared/textRidesText.native.js.map +1 -1
- package/dist/cjs/shared/tokenPx.cjs +29 -29
- package/dist/cjs/shared/tokenPx.native.cjs +45 -0
- package/dist/cjs/shared/tokenPx.native.js +31 -30
- package/dist/cjs/shared/tokenPx.native.js.map +1 -1
- package/dist/cjs/shared/useMarkdownTableKnobs.cjs +43 -49
- package/dist/cjs/shared/useMarkdownTableKnobs.native.cjs +57 -0
- package/dist/cjs/shared/useMarkdownTableKnobs.native.js +43 -48
- package/dist/cjs/shared/useMarkdownTableKnobs.native.js.map +1 -1
- package/dist/cjs/shiki/index.cjs +9 -11
- package/dist/cjs/shiki/index.native.cjs +18 -0
- package/dist/cjs/shiki/index.native.js +9 -10
- package/dist/cjs/shiki/index.native.js.map +1 -1
- package/dist/cjs/types.cjs +9 -11
- package/dist/cjs/types.native.cjs +18 -0
- package/dist/cjs/types.native.js +9 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/util/rehypeMetaAttributes.cjs +28 -32
- package/dist/cjs/util/rehypeMetaAttributes.native.cjs +44 -0
- package/dist/cjs/util/rehypeMetaAttributes.native.js +29 -32
- package/dist/cjs/util/rehypeMetaAttributes.native.js.map +1 -1
- package/dist/esm/Aside/index.mjs +76 -86
- package/dist/esm/Aside/index.mjs.map +1 -1
- package/dist/esm/Aside/index.native.js +83 -96
- package/dist/esm/Aside/index.native.js.map +1 -1
- package/dist/esm/ExternalIcon/index.mjs +16 -16
- package/dist/esm/ExternalIcon/index.mjs.map +1 -1
- package/dist/esm/ExternalIcon/index.native.js +19 -19
- package/dist/esm/ExternalIcon/index.native.js.map +1 -1
- package/dist/esm/Hr/index.mjs +3 -3
- package/dist/esm/Hr/index.mjs.map +1 -1
- package/dist/esm/Hr/index.native.js +4 -4
- package/dist/esm/Hr/index.native.js.map +1 -1
- package/dist/esm/Li/index.mjs +8 -8
- package/dist/esm/Li/index.mjs.map +1 -1
- package/dist/esm/Li/index.native.js +8 -8
- package/dist/esm/Li/index.native.js.map +1 -1
- package/dist/esm/Markdown.mjs +26 -25
- package/dist/esm/Markdown.mjs.map +1 -1
- package/dist/esm/Markdown.native.js +27 -26
- package/dist/esm/Markdown.native.js.map +1 -1
- package/dist/esm/MarkdownSimpleTable/index.mjs +100 -113
- package/dist/esm/MarkdownSimpleTable/index.mjs.map +1 -1
- package/dist/esm/MarkdownSimpleTable/index.native.js +125 -142
- package/dist/esm/MarkdownSimpleTable/index.native.js.map +1 -1
- package/dist/esm/Mdx/index.mjs +15 -32
- package/dist/esm/Mdx/index.mjs.map +1 -1
- package/dist/esm/Mdx/index.native.js +16 -33
- package/dist/esm/Mdx/index.native.js.map +1 -1
- package/dist/esm/MdxCodeBlock/index.mjs +125 -152
- package/dist/esm/MdxCodeBlock/index.mjs.map +1 -1
- package/dist/esm/MdxCodeBlock/index.native.js +137 -172
- package/dist/esm/MdxCodeBlock/index.native.js.map +1 -1
- package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.mjs +2 -0
- package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.mjs.map +1 -1
- package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.native.js +2 -0
- package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -1
- package/dist/esm/Notice/index.mjs +22 -27
- package/dist/esm/Notice/index.mjs.map +1 -1
- package/dist/esm/Notice/index.native.js +23 -28
- package/dist/esm/Notice/index.native.js.map +1 -1
- package/dist/esm/Table/index.mjs +73 -103
- package/dist/esm/Table/index.mjs.map +1 -1
- package/dist/esm/Table/index.native.js +74 -106
- package/dist/esm/Table/index.native.js.map +1 -1
- package/dist/esm/Tabs/index.mjs +20 -28
- package/dist/esm/Tabs/index.mjs.map +1 -1
- package/dist/esm/Tabs/index.native.js +26 -34
- package/dist/esm/Tabs/index.native.js.map +1 -1
- package/dist/esm/Ul/index.mjs +7 -5
- package/dist/esm/Ul/index.mjs.map +1 -1
- package/dist/esm/Ul/index.native.js +7 -5
- package/dist/esm/Ul/index.native.js.map +1 -1
- package/dist/esm/Video/index.mjs +50 -61
- package/dist/esm/Video/index.mjs.map +1 -1
- package/dist/esm/Video/index.native.js +51 -64
- package/dist/esm/Video/index.native.js.map +1 -1
- package/dist/esm/components/Blockquote.mjs +27 -31
- package/dist/esm/components/Blockquote.mjs.map +1 -1
- package/dist/esm/components/Blockquote.native.js +30 -41
- package/dist/esm/components/Blockquote.native.js.map +1 -1
- package/dist/esm/components/Break.mjs +4 -4
- package/dist/esm/components/Break.mjs.map +1 -1
- package/dist/esm/components/Break.native.js +5 -5
- package/dist/esm/components/Break.native.js.map +1 -1
- package/dist/esm/components/CodeBlock.mjs +31 -37
- package/dist/esm/components/CodeBlock.mjs.map +1 -1
- package/dist/esm/components/CodeBlock.native.js +33 -42
- package/dist/esm/components/CodeBlock.native.js.map +1 -1
- package/dist/esm/components/Heading.mjs +30 -35
- package/dist/esm/components/Heading.mjs.map +1 -1
- package/dist/esm/components/Heading.native.js +32 -37
- package/dist/esm/components/Heading.native.js.map +1 -1
- package/dist/esm/components/HorizontalRule.mjs +13 -13
- package/dist/esm/components/HorizontalRule.mjs.map +1 -1
- package/dist/esm/components/HorizontalRule.native.js +14 -14
- package/dist/esm/components/HorizontalRule.native.js.map +1 -1
- package/dist/esm/components/Image.mjs +17 -21
- package/dist/esm/components/Image.mjs.map +1 -1
- package/dist/esm/components/Image.native.js +18 -26
- package/dist/esm/components/Image.native.js.map +1 -1
- package/dist/esm/components/InlineCode.mjs +13 -15
- package/dist/esm/components/InlineCode.mjs.map +1 -1
- package/dist/esm/components/InlineCode.native.js +14 -16
- package/dist/esm/components/InlineCode.native.js.map +1 -1
- package/dist/esm/components/InlineStyles.mjs +26 -36
- package/dist/esm/components/InlineStyles.mjs.map +1 -1
- package/dist/esm/components/InlineStyles.native.js +27 -37
- package/dist/esm/components/InlineStyles.native.js.map +1 -1
- package/dist/esm/components/Link.mjs +41 -43
- package/dist/esm/components/Link.mjs.map +1 -1
- package/dist/esm/components/Link.native.js +42 -45
- package/dist/esm/components/Link.native.js.map +1 -1
- package/dist/esm/components/List.mjs +95 -116
- package/dist/esm/components/List.mjs.map +1 -1
- package/dist/esm/components/List.native.js +100 -121
- package/dist/esm/components/List.native.js.map +1 -1
- package/dist/esm/components/Paragraph.mjs +11 -13
- package/dist/esm/components/Paragraph.mjs.map +1 -1
- package/dist/esm/components/Paragraph.native.js +12 -14
- package/dist/esm/components/Paragraph.native.js.map +1 -1
- package/dist/esm/components/Table.mjs +71 -86
- package/dist/esm/components/Table.mjs.map +1 -1
- package/dist/esm/components/Table.native.js +76 -95
- package/dist/esm/components/Table.native.js.map +1 -1
- package/dist/esm/components/index.mjs +4 -4
- package/dist/esm/components/index.native.js +4 -4
- package/dist/esm/hooks/index.mjs +5 -4
- package/dist/esm/hooks/index.native.js +5 -4
- package/dist/esm/hooks/useCompileAndEvaluateMdx.mjs +10 -11
- package/dist/esm/hooks/useCompileAndEvaluateMdx.mjs.map +1 -1
- package/dist/esm/hooks/useCompileAndEvaluateMdx.native.js +10 -11
- package/dist/esm/hooks/useCompileAndEvaluateMdx.native.js.map +1 -1
- package/dist/esm/hooks/useCompileMdx.mjs +73 -67
- package/dist/esm/hooks/useCompileMdx.mjs.map +1 -1
- package/dist/esm/hooks/useCompileMdx.native.js +90 -86
- package/dist/esm/hooks/useCompileMdx.native.js.map +1 -1
- package/dist/esm/hooks/useEvaluateMdx.mjs +19 -17
- package/dist/esm/hooks/useEvaluateMdx.mjs.map +1 -1
- package/dist/esm/hooks/useEvaluateMdx.native.js +21 -19
- package/dist/esm/hooks/useEvaluateMdx.native.js.map +1 -1
- package/dist/esm/icons/index.mjs +86 -96
- package/dist/esm/icons/index.mjs.map +1 -1
- package/dist/esm/icons/index.native.js +89 -101
- package/dist/esm/icons/index.native.js.map +1 -1
- package/dist/esm/index.mjs +34 -18
- package/dist/esm/index.native.js +34 -18
- package/dist/esm/mdxComponents.mjs +234 -336
- package/dist/esm/mdxComponents.mjs.map +1 -1
- package/dist/esm/mdxComponents.native.js +288 -393
- package/dist/esm/mdxComponents.native.js.map +1 -1
- package/dist/esm/mermaid/MermaidBlock.mjs +72 -76
- package/dist/esm/mermaid/MermaidBlock.mjs.map +1 -1
- package/dist/esm/mermaid/MermaidBlock.native.js +8 -8
- package/dist/esm/mermaid/MermaidBlock.native.js.map +1 -1
- package/dist/esm/mermaid/index.mjs +2 -2
- package/dist/esm/mermaid/index.native.js +2 -2
- package/dist/esm/mermaid/mountDiagramSvg.mjs +24 -23
- package/dist/esm/mermaid/mountDiagramSvg.mjs.map +1 -1
- package/dist/esm/mermaid/mountDiagramSvg.native.js +61 -64
- package/dist/esm/mermaid/mountDiagramSvg.native.js.map +1 -1
- package/dist/esm/mermaid/renderMermaidDiagram.mjs +39 -42
- package/dist/esm/mermaid/renderMermaidDiagram.mjs.map +1 -1
- package/dist/esm/mermaid/renderMermaidDiagram.native.js +6 -5
- package/dist/esm/mermaid/renderMermaidDiagram.native.js.map +1 -1
- package/dist/esm/parser.mjs +4 -2
- package/dist/esm/parser.mjs.map +1 -1
- package/dist/esm/parser.native.js +4 -2
- package/dist/esm/parser.native.js.map +1 -1
- package/dist/esm/renderer.mjs +238 -298
- package/dist/esm/renderer.mjs.map +1 -1
- package/dist/esm/renderer.native.js +256 -316
- package/dist/esm/renderer.native.js.map +1 -1
- package/dist/esm/shared/colorRamps.mjs +14 -25
- package/dist/esm/shared/colorRamps.mjs.map +1 -1
- package/dist/esm/shared/colorRamps.native.js +14 -25
- package/dist/esm/shared/colorRamps.native.js.map +1 -1
- package/dist/esm/shared/cutoffGradient.mjs +23 -21
- package/dist/esm/shared/cutoffGradient.mjs.map +1 -1
- package/dist/esm/shared/cutoffGradient.native.js +29 -27
- package/dist/esm/shared/cutoffGradient.native.js.map +1 -1
- package/dist/esm/shared/textRidesText.mjs +26 -24
- package/dist/esm/shared/textRidesText.mjs.map +1 -1
- package/dist/esm/shared/textRidesText.native.js +43 -43
- package/dist/esm/shared/textRidesText.native.js.map +1 -1
- package/dist/esm/shared/tokenPx.mjs +17 -11
- package/dist/esm/shared/tokenPx.mjs.map +1 -1
- package/dist/esm/shared/tokenPx.native.js +19 -13
- package/dist/esm/shared/tokenPx.native.js.map +1 -1
- package/dist/esm/shared/useMarkdownTableKnobs.mjs +31 -31
- package/dist/esm/shared/useMarkdownTableKnobs.mjs.map +1 -1
- package/dist/esm/shared/useMarkdownTableKnobs.native.js +31 -31
- package/dist/esm/shared/useMarkdownTableKnobs.native.js.map +1 -1
- package/dist/esm/shiki/index.mjs +0 -2
- package/dist/esm/shiki/index.native.js +0 -2
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/types.native.js +0 -2
- package/dist/esm/util/rehypeMetaAttributes.mjs +16 -14
- package/dist/esm/util/rehypeMetaAttributes.mjs.map +1 -1
- package/dist/esm/util/rehypeMetaAttributes.native.js +17 -15
- package/dist/esm/util/rehypeMetaAttributes.native.js.map +1 -1
- package/dist/jsx/Aside/index.mjs +76 -86
- package/dist/jsx/Aside/index.mjs.map +1 -1
- package/dist/jsx/Aside/index.native.cjs +119 -0
- package/dist/jsx/Aside/index.native.js +93 -109
- package/dist/jsx/Aside/index.native.js.map +1 -1
- package/dist/jsx/ExternalIcon/index.mjs +16 -16
- package/dist/jsx/ExternalIcon/index.mjs.map +1 -1
- package/dist/jsx/ExternalIcon/index.native.cjs +46 -0
- package/dist/jsx/ExternalIcon/index.native.js +30 -35
- package/dist/jsx/ExternalIcon/index.native.js.map +1 -1
- package/dist/jsx/Hr/index.mjs +3 -3
- package/dist/jsx/Hr/index.mjs.map +1 -1
- package/dist/jsx/Hr/index.native.cjs +30 -0
- package/dist/jsx/Hr/index.native.js +15 -20
- package/dist/jsx/Hr/index.native.js.map +1 -1
- package/dist/jsx/Li/index.mjs +8 -8
- package/dist/jsx/Li/index.mjs.map +1 -1
- package/dist/jsx/Li/index.native.cjs +34 -0
- package/dist/jsx/Li/index.native.js +20 -25
- package/dist/jsx/Li/index.native.js.map +1 -1
- package/dist/jsx/Markdown.mjs +26 -25
- package/dist/jsx/Markdown.mjs.map +1 -1
- package/dist/jsx/Markdown.native.cjs +56 -0
- package/dist/jsx/Markdown.native.js +38 -42
- package/dist/jsx/Markdown.native.js.map +1 -1
- package/dist/jsx/MarkdownSimpleTable/index.mjs +100 -113
- package/dist/jsx/MarkdownSimpleTable/index.mjs.map +1 -1
- package/dist/jsx/MarkdownSimpleTable/index.native.cjs +159 -0
- package/dist/jsx/MarkdownSimpleTable/index.native.js +136 -158
- package/dist/jsx/MarkdownSimpleTable/index.native.js.map +1 -1
- package/dist/jsx/Mdx/index.mjs +15 -32
- package/dist/jsx/Mdx/index.mjs.map +1 -1
- package/dist/jsx/Mdx/index.native.cjs +46 -0
- package/dist/jsx/Mdx/index.native.js +27 -49
- package/dist/jsx/Mdx/index.native.js.map +1 -1
- package/dist/jsx/MdxCodeBlock/index.mjs +125 -152
- package/dist/jsx/MdxCodeBlock/index.mjs.map +1 -1
- package/dist/jsx/MdxCodeBlock/index.native.cjs +181 -0
- package/dist/jsx/MdxCodeBlock/index.native.js +150 -195
- package/dist/jsx/MdxCodeBlock/index.native.js.map +1 -1
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.mjs +2 -0
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.mjs.map +1 -1
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.native.cjs +27 -0
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.native.js +14 -17
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -1
- package/dist/jsx/Notice/index.mjs +22 -27
- package/dist/jsx/Notice/index.mjs.map +1 -1
- package/dist/jsx/Notice/index.native.cjs +52 -0
- package/dist/jsx/Notice/index.native.js +34 -44
- package/dist/jsx/Notice/index.native.js.map +1 -1
- package/dist/jsx/Table/index.mjs +73 -103
- package/dist/jsx/Table/index.mjs.map +1 -1
- package/dist/jsx/Table/index.native.cjs +121 -0
- package/dist/jsx/Table/index.native.js +89 -124
- package/dist/jsx/Table/index.native.js.map +1 -1
- package/dist/jsx/Tabs/index.mjs +20 -28
- package/dist/jsx/Tabs/index.mjs.map +1 -1
- package/dist/jsx/Tabs/index.native.cjs +58 -0
- package/dist/jsx/Tabs/index.native.js +38 -49
- package/dist/jsx/Tabs/index.native.js.map +1 -1
- package/dist/jsx/Ul/index.mjs +7 -5
- package/dist/jsx/Ul/index.mjs.map +1 -1
- package/dist/jsx/Ul/index.native.cjs +33 -0
- package/dist/jsx/Ul/index.native.js +19 -22
- package/dist/jsx/Ul/index.native.js.map +1 -1
- package/dist/jsx/Video/index.mjs +50 -61
- package/dist/jsx/Video/index.mjs.map +1 -1
- package/dist/jsx/Video/index.native.cjs +78 -0
- package/dist/jsx/Video/index.native.js +61 -79
- package/dist/jsx/Video/index.native.js.map +1 -1
- package/dist/jsx/components/Blockquote.mjs +27 -31
- package/dist/jsx/components/Blockquote.mjs.map +1 -1
- package/dist/jsx/components/Blockquote.native.cjs +56 -0
- package/dist/jsx/components/Blockquote.native.js +39 -55
- package/dist/jsx/components/Blockquote.native.js.map +1 -1
- package/dist/jsx/components/Break.mjs +4 -4
- package/dist/jsx/components/Break.mjs.map +1 -1
- package/dist/jsx/components/Break.native.cjs +32 -0
- package/dist/jsx/components/Break.native.js +16 -21
- package/dist/jsx/components/Break.native.js.map +1 -1
- package/dist/jsx/components/CodeBlock.mjs +31 -37
- package/dist/jsx/components/CodeBlock.mjs.map +1 -1
- package/dist/jsx/components/CodeBlock.native.cjs +61 -0
- package/dist/jsx/components/CodeBlock.native.js +43 -57
- package/dist/jsx/components/CodeBlock.native.js.map +1 -1
- package/dist/jsx/components/Heading.mjs +30 -35
- package/dist/jsx/components/Heading.mjs.map +1 -1
- package/dist/jsx/components/Heading.native.cjs +65 -0
- package/dist/jsx/components/Heading.native.js +43 -53
- package/dist/jsx/components/Heading.native.js.map +1 -1
- package/dist/jsx/components/HorizontalRule.mjs +13 -13
- package/dist/jsx/components/HorizontalRule.mjs.map +1 -1
- package/dist/jsx/components/HorizontalRule.native.cjs +41 -0
- package/dist/jsx/components/HorizontalRule.native.js +25 -30
- package/dist/jsx/components/HorizontalRule.native.js.map +1 -1
- package/dist/jsx/components/Image.mjs +17 -21
- package/dist/jsx/components/Image.mjs.map +1 -1
- package/dist/jsx/components/Image.native.cjs +44 -0
- package/dist/jsx/components/Image.native.js +28 -41
- package/dist/jsx/components/Image.native.js.map +1 -1
- package/dist/jsx/components/InlineCode.mjs +13 -15
- package/dist/jsx/components/InlineCode.mjs.map +1 -1
- package/dist/jsx/components/InlineCode.native.cjs +41 -0
- package/dist/jsx/components/InlineCode.native.js +25 -32
- package/dist/jsx/components/InlineCode.native.js.map +1 -1
- package/dist/jsx/components/InlineStyles.mjs +26 -36
- package/dist/jsx/components/InlineStyles.mjs.map +1 -1
- package/dist/jsx/components/InlineStyles.native.cjs +62 -0
- package/dist/jsx/components/InlineStyles.native.js +40 -53
- package/dist/jsx/components/InlineStyles.native.js.map +1 -1
- package/dist/jsx/components/Link.mjs +41 -43
- package/dist/jsx/components/Link.mjs.map +1 -1
- package/dist/jsx/components/Link.native.cjs +73 -0
- package/dist/jsx/components/Link.native.js +53 -61
- package/dist/jsx/components/Link.native.js.map +1 -1
- package/dist/jsx/components/List.mjs +95 -116
- package/dist/jsx/components/List.mjs.map +1 -1
- package/dist/jsx/components/List.native.cjs +143 -0
- package/dist/jsx/components/List.native.js +111 -135
- package/dist/jsx/components/List.native.js.map +1 -1
- package/dist/jsx/components/Paragraph.mjs +11 -13
- package/dist/jsx/components/Paragraph.mjs.map +1 -1
- package/dist/jsx/components/Paragraph.native.cjs +38 -0
- package/dist/jsx/components/Paragraph.native.js +22 -29
- package/dist/jsx/components/Paragraph.native.js.map +1 -1
- package/dist/jsx/components/Table.mjs +71 -86
- package/dist/jsx/components/Table.mjs.map +1 -1
- package/dist/jsx/components/Table.native.cjs +116 -0
- package/dist/jsx/components/Table.native.js +89 -111
- package/dist/jsx/components/Table.native.js.map +1 -1
- package/dist/jsx/components/index.mjs +4 -4
- package/dist/jsx/components/index.native.cjs +55 -0
- package/dist/jsx/components/index.native.js +30 -31
- package/dist/jsx/components/index.native.js.map +1 -1
- package/dist/jsx/hooks/index.mjs +5 -4
- package/dist/jsx/hooks/index.native.cjs +22 -0
- package/dist/jsx/hooks/index.native.js +9 -10
- package/dist/jsx/hooks/index.native.js.map +1 -1
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.mjs +10 -11
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.mjs.map +1 -1
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.native.cjs +37 -0
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.native.js +22 -28
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.native.js.map +1 -1
- package/dist/jsx/hooks/useCompileMdx.mjs +73 -67
- package/dist/jsx/hooks/useCompileMdx.mjs.map +1 -1
- package/dist/jsx/hooks/useCompileMdx.native.cjs +129 -0
- package/dist/jsx/hooks/useCompileMdx.native.js +106 -110
- package/dist/jsx/hooks/useCompileMdx.native.js.map +1 -1
- package/dist/jsx/hooks/useEvaluateMdx.mjs +19 -17
- package/dist/jsx/hooks/useEvaluateMdx.mjs.map +1 -1
- package/dist/jsx/hooks/useEvaluateMdx.native.cjs +59 -0
- package/dist/jsx/hooks/useEvaluateMdx.native.js +36 -44
- package/dist/jsx/hooks/useEvaluateMdx.native.js.map +1 -1
- package/dist/jsx/icons/index.mjs +86 -96
- package/dist/jsx/icons/index.mjs.map +1 -1
- package/dist/jsx/icons/index.native.cjs +129 -0
- package/dist/jsx/icons/index.native.js +103 -118
- package/dist/jsx/icons/index.native.js.map +1 -1
- package/dist/jsx/index.js +34 -18
- package/dist/jsx/index.mjs +34 -18
- package/dist/jsx/index.native.cjs +53 -0
- package/dist/jsx/index.native.js +18 -19
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/mdxComponents.mjs +234 -336
- package/dist/jsx/mdxComponents.mjs.map +1 -1
- package/dist/jsx/mdxComponents.native.cjs +349 -0
- package/dist/jsx/mdxComponents.native.js +300 -408
- package/dist/jsx/mdxComponents.native.js.map +1 -1
- package/dist/jsx/mermaid/MermaidBlock.mjs +72 -76
- package/dist/jsx/mermaid/MermaidBlock.mjs.map +1 -1
- package/dist/jsx/mermaid/MermaidBlock.native.cjs +34 -0
- package/dist/jsx/mermaid/MermaidBlock.native.js +19 -24
- package/dist/jsx/mermaid/MermaidBlock.native.js.map +1 -1
- package/dist/jsx/mermaid/index.mjs +2 -2
- package/dist/jsx/mermaid/index.native.cjs +31 -0
- package/dist/jsx/mermaid/index.native.js +16 -17
- package/dist/jsx/mermaid/index.native.js.map +1 -1
- package/dist/jsx/mermaid/mountDiagramSvg.mjs +24 -23
- package/dist/jsx/mermaid/mountDiagramSvg.mjs.map +1 -1
- package/dist/jsx/mermaid/mountDiagramSvg.native.cjs +90 -0
- package/dist/jsx/mermaid/mountDiagramSvg.native.js +74 -81
- package/dist/jsx/mermaid/mountDiagramSvg.native.js.map +1 -1
- package/dist/jsx/mermaid/renderMermaidDiagram.mjs +39 -42
- package/dist/jsx/mermaid/renderMermaidDiagram.mjs.map +1 -1
- package/dist/jsx/mermaid/renderMermaidDiagram.native.cjs +37 -0
- package/dist/jsx/mermaid/renderMermaidDiagram.native.js +20 -21
- package/dist/jsx/mermaid/renderMermaidDiagram.native.js.map +1 -1
- package/dist/jsx/parser.mjs +4 -2
- package/dist/jsx/parser.mjs.map +1 -1
- package/dist/jsx/parser.native.cjs +44 -0
- package/dist/jsx/parser.native.js +20 -26
- package/dist/jsx/parser.native.js.map +1 -1
- package/dist/jsx/renderer.mjs +238 -298
- package/dist/jsx/renderer.mjs.map +1 -1
- package/dist/jsx/renderer.native.cjs +295 -0
- package/dist/jsx/renderer.native.js +267 -330
- package/dist/jsx/renderer.native.js.map +1 -1
- package/dist/jsx/shared/colorRamps.mjs +14 -25
- package/dist/jsx/shared/colorRamps.mjs.map +1 -1
- package/dist/jsx/shared/colorRamps.native.cjs +46 -0
- package/dist/jsx/shared/colorRamps.native.js +29 -42
- package/dist/jsx/shared/colorRamps.native.js.map +1 -1
- package/dist/jsx/shared/cutoffGradient.mjs +23 -21
- package/dist/jsx/shared/cutoffGradient.mjs.map +1 -1
- package/dist/jsx/shared/cutoffGradient.native.cjs +60 -0
- package/dist/jsx/shared/cutoffGradient.native.js +42 -43
- package/dist/jsx/shared/cutoffGradient.native.js.map +1 -1
- package/dist/jsx/shared/textRidesText.mjs +26 -24
- package/dist/jsx/shared/textRidesText.mjs.map +1 -1
- package/dist/jsx/shared/textRidesText.native.cjs +76 -0
- package/dist/jsx/shared/textRidesText.native.js +56 -59
- package/dist/jsx/shared/textRidesText.native.js.map +1 -1
- package/dist/jsx/shared/tokenPx.mjs +17 -11
- package/dist/jsx/shared/tokenPx.mjs.map +1 -1
- package/dist/jsx/shared/tokenPx.native.cjs +45 -0
- package/dist/jsx/shared/tokenPx.native.js +31 -30
- package/dist/jsx/shared/tokenPx.native.js.map +1 -1
- package/dist/jsx/shared/useMarkdownTableKnobs.mjs +31 -31
- package/dist/jsx/shared/useMarkdownTableKnobs.mjs.map +1 -1
- package/dist/jsx/shared/useMarkdownTableKnobs.native.cjs +57 -0
- package/dist/jsx/shared/useMarkdownTableKnobs.native.js +43 -48
- package/dist/jsx/shared/useMarkdownTableKnobs.native.js.map +1 -1
- package/dist/jsx/shiki/index.mjs +0 -2
- package/dist/jsx/shiki/index.native.cjs +18 -0
- package/dist/jsx/shiki/index.native.js +9 -10
- package/dist/jsx/shiki/index.native.js.map +1 -1
- package/dist/jsx/types.mjs +0 -2
- package/dist/jsx/types.native.cjs +18 -0
- package/dist/jsx/types.native.js +9 -10
- package/dist/jsx/types.native.js.map +1 -1
- package/dist/jsx/util/rehypeMetaAttributes.mjs +16 -14
- package/dist/jsx/util/rehypeMetaAttributes.mjs.map +1 -1
- package/dist/jsx/util/rehypeMetaAttributes.native.cjs +44 -0
- package/dist/jsx/util/rehypeMetaAttributes.native.js +29 -32
- package/dist/jsx/util/rehypeMetaAttributes.native.js.map +1 -1
- package/package.json +16 -16
- package/src/Aside/index.tsx +10 -10
- package/src/Li/index.tsx +3 -3
- package/src/Markdown.stories.tsx +3 -3
- package/src/MdxCodeBlock/index.tsx +8 -9
- package/src/Notice/index.tsx +1 -1
- package/src/Renderer.stories.tsx +7 -7
- package/src/Table/index.tsx +1 -1
- package/src/Tabs/index.tsx +1 -1
- package/src/Ul/index.ts +4 -4
- package/src/Video/index.tsx +5 -5
- package/src/codeInk.spec.tsx +16 -10
- package/src/components/Blockquote.tsx +5 -7
- package/src/components/CodeBlock.tsx +2 -2
- package/src/components/Heading.tsx +4 -4
- package/src/components/HorizontalRule.tsx +2 -2
- package/src/components/Image.tsx +1 -1
- package/src/components/InlineCode.tsx +3 -3
- package/src/components/Link.tsx +7 -10
- package/src/components/List.tsx +17 -17
- package/src/components/Paragraph.tsx +1 -1
- package/src/components/Table.tsx +1 -1
- package/src/components/markdownPrimitives.spec.tsx +5 -3
- package/src/docBlocks.spec.tsx +20 -6
- package/src/icons/Icons.stories.tsx +23 -23
- package/src/icons/icons.spec.tsx +1 -1
- package/src/icons/index.tsx +8 -5
- package/src/mdx.spec.tsx +2 -2
- package/src/mdxComponents.tsx +31 -32
- package/src/mermaid/MermaidBlock.stories.tsx +2 -2
- package/src/mermaid/MermaidBlock.tsx +3 -3
- package/src/mermaid/MermaidBlockNative.stories.tsx +3 -3
- package/src/mermaid/MountDiagramSvg.stories.tsx +11 -11
- package/src/mermaid/RenderMermaidDiagram.stories.tsx +11 -11
- package/src/renderer.spec.tsx +2 -2
- package/src/renderer.tsx +1 -3
- package/src/shared/colorRamps.ts +9 -9
- package/src/shared/tokenPx.ts +7 -8
- package/src/shared/useMarkdownTableKnobs.ts +1 -1
- package/src/stories/Blocks.stories.tsx +8 -8
- package/src/stories/Callouts.stories.tsx +8 -8
- package/src/stories/Code.stories.tsx +8 -8
- package/src/stories/Inline.stories.tsx +6 -6
- package/src/stories/Mdx.stories.tsx +5 -5
- package/src/stories/Media.stories.tsx +6 -6
- package/src/stories/Tables.stories.tsx +7 -7
- package/types/Aside/index.d.ts +2 -2
- package/types/Aside/index.d.ts.map +1 -1
- package/types/ExternalIcon/index.d.ts +1 -1
- package/types/ExternalIcon/index.d.ts.map +1 -1
- package/types/Hr/index.d.ts +1 -1
- package/types/Hr/index.d.ts.map +1 -1
- package/types/Li/index.d.ts +1 -2
- package/types/Li/index.d.ts.map +1 -1
- package/types/Markdown.d.ts +1 -1
- package/types/Markdown.d.ts.map +1 -1
- package/types/MarkdownSimpleTable/index.d.ts +1 -1
- package/types/MarkdownSimpleTable/index.d.ts.map +1 -1
- package/types/Mdx/index.d.ts +1 -1
- package/types/Mdx/index.d.ts.map +1 -1
- package/types/MdxCodeBlock/index.d.ts +1 -1
- package/types/MdxCodeBlock/index.d.ts.map +1 -1
- package/types/Notice/index.d.ts +1 -1
- package/types/Notice/index.d.ts.map +1 -1
- package/types/Table/index.d.ts +6 -6
- package/types/Table/index.d.ts.map +1 -1
- package/types/Tabs/index.d.ts +2 -2
- package/types/Tabs/index.d.ts.map +1 -1
- package/types/Ul/index.d.ts +1 -4
- package/types/Ul/index.d.ts.map +1 -1
- package/types/Video/index.d.ts +1 -1
- package/types/Video/index.d.ts.map +1 -1
- package/types/components/Blockquote.d.ts +1 -1
- package/types/components/Blockquote.d.ts.map +1 -1
- package/types/components/Break.d.ts +1 -1
- package/types/components/Break.d.ts.map +1 -1
- package/types/components/CodeBlock.d.ts +1 -1
- package/types/components/CodeBlock.d.ts.map +1 -1
- package/types/components/Heading.d.ts +1 -1
- package/types/components/Heading.d.ts.map +1 -1
- package/types/components/HorizontalRule.d.ts +1 -1
- package/types/components/HorizontalRule.d.ts.map +1 -1
- package/types/components/Image.d.ts +1 -1
- package/types/components/Image.d.ts.map +1 -1
- package/types/components/InlineCode.d.ts +1 -1
- package/types/components/InlineCode.d.ts.map +1 -1
- package/types/components/InlineStyles.d.ts +3 -3
- package/types/components/InlineStyles.d.ts.map +1 -1
- package/types/components/Link.d.ts +1 -1
- package/types/components/Link.d.ts.map +1 -1
- package/types/components/List.d.ts +2 -2
- package/types/components/List.d.ts.map +1 -1
- package/types/components/Paragraph.d.ts +1 -1
- package/types/components/Paragraph.d.ts.map +1 -1
- package/types/components/Table.d.ts +3 -3
- package/types/components/Table.d.ts.map +1 -1
- package/types/icons/index.d.ts +4 -4
- package/types/icons/index.d.ts.map +1 -1
- package/types/mdxComponents.d.ts +1 -4
- package/types/mdxComponents.d.ts.map +1 -1
- package/types/mermaid/MermaidBlock.d.ts +1 -1
- package/types/mermaid/MermaidBlock.d.ts.map +1 -1
- package/types/mermaid/MermaidBlock.native.d.ts +1 -1
- package/types/mermaid/MermaidBlock.native.d.ts.map +1 -1
- package/types/renderer.d.ts.map +1 -1
- package/types/shared/colorRamps.d.ts +9 -9
- package/types/shared/tokenPx.d.ts.map +1 -1
- package/types/shared/useMarkdownTableKnobs.d.ts +3 -1
- package/types/shared/useMarkdownTableKnobs.d.ts.map +1 -1
- package/dist/esm/components/index.mjs.map +0 -1
- package/dist/esm/components/index.native.js.map +0 -1
- package/dist/esm/hooks/index.mjs.map +0 -1
- package/dist/esm/hooks/index.native.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/mermaid/index.mjs.map +0 -1
- package/dist/esm/mermaid/index.native.js.map +0 -1
- package/dist/esm/shiki/index.mjs.map +0 -1
- package/dist/esm/shiki/index.native.js.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/dist/esm/types.native.js.map +0 -1
- package/dist/jsx/components/index.mjs.map +0 -1
- package/dist/jsx/hooks/index.mjs.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
- package/dist/jsx/mermaid/index.mjs.map +0 -1
- package/dist/jsx/shiki/index.mjs.map +0 -1
- package/dist/jsx/types.mjs.map +0 -1
|
@@ -5,43 +5,36 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var Paragraph_exports = {};
|
|
26
|
-
__export(Paragraph_exports, {
|
|
27
|
-
Paragraph: () => Paragraph
|
|
28
|
-
});
|
|
24
|
+
__export(Paragraph_exports, { Paragraph: () => Paragraph });
|
|
29
25
|
module.exports = __toCommonJS(Paragraph_exports);
|
|
30
26
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
27
|
var import_theme = require("@multiplatform.one/theme");
|
|
32
28
|
var import_tamagui = require("tamagui");
|
|
33
29
|
function Paragraph(param) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
size: knobProps.sizeToken,
|
|
43
|
-
...knobProps.body,
|
|
44
|
-
children
|
|
45
|
-
});
|
|
30
|
+
var { children } = param;
|
|
31
|
+
var { knobProps } = (0, import_theme.useResolvedKnobs)();
|
|
32
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
|
|
33
|
+
marginBottom: "2",
|
|
34
|
+
size: knobProps.sizeToken,
|
|
35
|
+
...knobProps.body,
|
|
36
|
+
children
|
|
37
|
+
});
|
|
46
38
|
}
|
|
39
|
+
|
|
47
40
|
//# sourceMappingURL=Paragraph.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Paragraph.native.js","names":[],"sources":["jsx/components/Paragraph.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Paragraph_exports = {};\n__export(Paragraph_exports, {\n Paragraph: () => Paragraph\n});\nmodule.exports = __toCommonJS(Paragraph_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_theme = require(\"@multiplatform.one/theme\");\nvar import_tamagui = require(\"tamagui\");\nfunction Paragraph(param) {\n var { children } = param;\n var { knobProps } = (0, import_theme.useResolvedKnobs)();\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {\n marginBottom: \"2\",\n size: knobProps.sizeToken,\n ...knobProps.body,\n children\n });\n}\n//# sourceMappingURL=Paragraph.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,SAAS,mBAAmB,EAC1B,iBAAiB,UACnB,CAAC;AACD,OAAO,UAAU,aAAa,iBAAiB;AAC/C,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,eAAe,QAAQ,0BAA0B;AACrD,IAAI,iBAAiB,QAAQ,SAAS;AACtC,SAAS,UAAU,OAAO;CACxB,IAAI,EAAE,aAAa;CACnB,IAAI,EAAE,eAAe,GAAG,aAAa,iBAAgB,CAAE;CACvD,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,WAAW;EAC3E,cAAc;EACd,MAAM,UAAU;EAChB,GAAG,UAAU;EACb;CACF,CAAC;AACH"}
|
|
@@ -4,96 +4,81 @@ import { ScrollView } from "@multiplatform.one/components";
|
|
|
4
4
|
import { Table } from "@multiplatform.one/table-primitives";
|
|
5
5
|
import { useMarkdownTableKnobs } from "../shared/useMarkdownTableKnobs.mjs";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
|
|
7
8
|
function isHeaderRow(row) {
|
|
8
|
-
|
|
9
|
+
return isValidElement(row) && Boolean(row.props.isHeader);
|
|
9
10
|
}
|
|
10
|
-
function MarkdownTable({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}), /* @__PURE__ */jsx(Table.Body, {
|
|
47
|
-
render: "tbody",
|
|
48
|
-
children: bodyRows
|
|
49
|
-
})]
|
|
50
|
-
})
|
|
51
|
-
})
|
|
52
|
-
});
|
|
11
|
+
function MarkdownTable({ children }) {
|
|
12
|
+
const { frameProps, headRule } = useMarkdownTableKnobs();
|
|
13
|
+
const rows = Children.toArray(children);
|
|
14
|
+
const headerRows = rows.filter((row) => isHeaderRow(row));
|
|
15
|
+
const bodyRows = rows.filter((row) => !isHeaderRow(row));
|
|
16
|
+
return /* @__PURE__ */ jsx(ScrollView, {
|
|
17
|
+
horizontal: true,
|
|
18
|
+
showsHorizontalScrollIndicator: false,
|
|
19
|
+
marginVertical: "3",
|
|
20
|
+
children: /* @__PURE__ */ jsx(YStack, {
|
|
21
|
+
minWidth: "100%",
|
|
22
|
+
children: /* @__PURE__ */ jsxs(Table, {
|
|
23
|
+
render: "table",
|
|
24
|
+
width: "auto",
|
|
25
|
+
cellWidth: "auto",
|
|
26
|
+
style: { tableLayout: "auto" },
|
|
27
|
+
alignCells: {
|
|
28
|
+
x: "start",
|
|
29
|
+
y: "center"
|
|
30
|
+
},
|
|
31
|
+
alignHeaderCells: {
|
|
32
|
+
x: "start",
|
|
33
|
+
y: "center"
|
|
34
|
+
},
|
|
35
|
+
...frameProps,
|
|
36
|
+
children: [headerRows.length > 0 && /* @__PURE__ */ jsx(Table.Head, {
|
|
37
|
+
render: "thead",
|
|
38
|
+
...headRule,
|
|
39
|
+
children: headerRows
|
|
40
|
+
}), /* @__PURE__ */ jsx(Table.Body, {
|
|
41
|
+
render: "tbody",
|
|
42
|
+
children: bodyRows
|
|
43
|
+
})]
|
|
44
|
+
})
|
|
45
|
+
})
|
|
46
|
+
});
|
|
53
47
|
}
|
|
54
|
-
function MarkdownTableRow({
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
children
|
|
60
|
-
});
|
|
48
|
+
function MarkdownTableRow({ children }) {
|
|
49
|
+
return /* @__PURE__ */ jsx(Table.Row, {
|
|
50
|
+
render: "tr",
|
|
51
|
+
children
|
|
52
|
+
});
|
|
61
53
|
}
|
|
62
|
-
function MarkdownTableCell({
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
children: /* @__PURE__ */jsx(Paragraph, {
|
|
90
|
-
render: "span",
|
|
91
|
-
display: "block",
|
|
92
|
-
...cellTextProps,
|
|
93
|
-
textAlign,
|
|
94
|
-
children
|
|
95
|
-
})
|
|
96
|
-
});
|
|
54
|
+
function MarkdownTableCell({ children, isHeader, align }) {
|
|
55
|
+
const { headerTextProps, cellTextProps, cellPad } = useMarkdownTableKnobs();
|
|
56
|
+
const textAlign = align || "left";
|
|
57
|
+
if (isHeader) {
|
|
58
|
+
return /* @__PURE__ */ jsx(Table.HeaderCell, {
|
|
59
|
+
render: "th",
|
|
60
|
+
...cellPad,
|
|
61
|
+
children: /* @__PURE__ */ jsx(Paragraph, {
|
|
62
|
+
render: "span",
|
|
63
|
+
display: "block",
|
|
64
|
+
...headerTextProps,
|
|
65
|
+
textAlign,
|
|
66
|
+
children
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return /* @__PURE__ */ jsx(Table.Cell, {
|
|
71
|
+
render: "td",
|
|
72
|
+
...cellPad,
|
|
73
|
+
children: /* @__PURE__ */ jsx(Paragraph, {
|
|
74
|
+
render: "span",
|
|
75
|
+
display: "block",
|
|
76
|
+
...cellTextProps,
|
|
77
|
+
textAlign,
|
|
78
|
+
children
|
|
79
|
+
})
|
|
80
|
+
});
|
|
97
81
|
}
|
|
82
|
+
|
|
98
83
|
export { MarkdownTable, MarkdownTableCell, MarkdownTableRow };
|
|
99
84
|
//# sourceMappingURL=Table.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"Table.js","names":[],"sources":["jsx/components/Table.js"],"sourcesContent":["import { Children, isValidElement } from \"react\";\nimport { Paragraph, YStack } from \"tamagui\";\nimport { ScrollView } from \"@multiplatform.one/components\";\nimport { Table } from \"@multiplatform.one/table-primitives\";\nimport { useMarkdownTableKnobs } from \"../shared/useMarkdownTableKnobs\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nfunction isHeaderRow(row) {\n return isValidElement(row) && Boolean(row.props.isHeader);\n}\nfunction MarkdownTable({ children }) {\n const { frameProps, headRule } = useMarkdownTableKnobs();\n const rows = Children.toArray(children);\n const headerRows = rows.filter((row) => isHeaderRow(row));\n const bodyRows = rows.filter((row) => !isHeaderRow(row));\n return /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, marginVertical: \"3\", children: /* @__PURE__ */ jsx(YStack, { minWidth: \"100%\", children: /* @__PURE__ */ jsxs(\n Table,\n {\n render: \"table\",\n width: \"auto\",\n cellWidth: \"auto\",\n style: { tableLayout: \"auto\" },\n alignCells: { x: \"start\", y: \"center\" },\n alignHeaderCells: { x: \"start\", y: \"center\" },\n ...frameProps,\n children: [\n headerRows.length > 0 && /* @__PURE__ */ jsx(Table.Head, { render: \"thead\", ...headRule, children: headerRows }),\n /* @__PURE__ */ jsx(Table.Body, { render: \"tbody\", children: bodyRows })\n ]\n }\n ) }) });\n}\nfunction MarkdownTableRow({ children }) {\n return /* @__PURE__ */ jsx(Table.Row, { render: \"tr\", children });\n}\nfunction MarkdownTableCell({ children, isHeader, align }) {\n const { headerTextProps, cellTextProps, cellPad } = useMarkdownTableKnobs();\n const textAlign = align || \"left\";\n if (isHeader) {\n return /* @__PURE__ */ jsx(Table.HeaderCell, { render: \"th\", ...cellPad, children: /* @__PURE__ */ jsx(Paragraph, { render: \"span\", display: \"block\", ...headerTextProps, textAlign, children }) });\n }\n return /* @__PURE__ */ jsx(Table.Cell, { render: \"td\", ...cellPad, children: /* @__PURE__ */ jsx(Paragraph, { render: \"span\", display: \"block\", ...cellTextProps, textAlign, children }) });\n}\nexport {\n MarkdownTable,\n MarkdownTableCell,\n MarkdownTableRow\n};\n//# sourceMappingURL=Table.js.map\n"],"mappings":";;;;;;;;AAMA,SAAS,YAAY,KAAK;CACxB,OAAO,eAAe,GAAG,KAAK,QAAQ,IAAI,MAAM,QAAQ;AAC1D;AACA,SAAS,cAAc,EAAE,YAAY;CACnC,MAAM,EAAE,YAAY,aAAa,sBAAsB;CACvD,MAAM,OAAO,SAAS,QAAQ,QAAQ;CACtC,MAAM,aAAa,KAAK,QAAQ,QAAQ,YAAY,GAAG,CAAC;CACxD,MAAM,WAAW,KAAK,QAAQ,QAAQ,CAAC,YAAY,GAAG,CAAC;CACvD,OAAuB,oBAAI,YAAY;EAAE,YAAY;EAAM,gCAAgC;EAAO,gBAAgB;EAAK,UAA0B,oBAAI,QAAQ;GAAE,UAAU;GAAQ,UAA0B,qBACzM,OACA;IACE,QAAQ;IACR,OAAO;IACP,WAAW;IACX,OAAO,EAAE,aAAa,OAAO;IAC7B,YAAY;KAAE,GAAG;KAAS,GAAG;IAAS;IACtC,kBAAkB;KAAE,GAAG;KAAS,GAAG;IAAS;IAC5C,GAAG;IACH,UAAU,CACR,WAAW,SAAS,KAAqB,oBAAI,MAAM,MAAM;KAAE,QAAQ;KAAS,GAAG;KAAU,UAAU;IAAW,CAAC,GAC/F,oBAAI,MAAM,MAAM;KAAE,QAAQ;KAAS,UAAU;IAAS,CAAC,CACzE;GACF,CACF;EAAE,CAAC;CAAE,CAAC;AACR;AACA,SAAS,iBAAiB,EAAE,YAAY;CACtC,OAAuB,oBAAI,MAAM,KAAK;EAAE,QAAQ;EAAM;CAAS,CAAC;AAClE;AACA,SAAS,kBAAkB,EAAE,UAAU,UAAU,SAAS;CACxD,MAAM,EAAE,iBAAiB,eAAe,YAAY,sBAAsB;CAC1E,MAAM,YAAY,SAAS;CAC3B,IAAI,UAAU;EACZ,OAAuB,oBAAI,MAAM,YAAY;GAAE,QAAQ;GAAM,GAAG;GAAS,UAA0B,oBAAI,WAAW;IAAE,QAAQ;IAAQ,SAAS;IAAS,GAAG;IAAiB;IAAW;GAAS,CAAC;EAAE,CAAC;CACpM;CACA,OAAuB,oBAAI,MAAM,MAAM;EAAE,QAAQ;EAAM,GAAG;EAAS,UAA0B,oBAAI,WAAW;GAAE,QAAQ;GAAQ,SAAS;GAAS,GAAG;GAAe;GAAW;EAAS,CAAC;CAAE,CAAC;AAC5L"}
|
|
@@ -0,0 +1,116 @@
|
|
|
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", { value: true }), mod);
|
|
23
|
+
var Table_exports = {};
|
|
24
|
+
__export(Table_exports, {
|
|
25
|
+
MarkdownTable: () => MarkdownTable,
|
|
26
|
+
MarkdownTableCell: () => MarkdownTableCell,
|
|
27
|
+
MarkdownTableRow: () => MarkdownTableRow
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(Table_exports);
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_react = require("react");
|
|
32
|
+
var import_tamagui = require("tamagui");
|
|
33
|
+
var import_components = require("@multiplatform.one/components");
|
|
34
|
+
var import_table_primitives = require("@multiplatform.one/table-primitives");
|
|
35
|
+
var import_useMarkdownTableKnobs = require("../shared/useMarkdownTableKnobs.native.js");
|
|
36
|
+
function isHeaderRow(row) {
|
|
37
|
+
return /* @__PURE__ */ (0, import_react.isValidElement)(row) && Boolean(row.props.isHeader);
|
|
38
|
+
}
|
|
39
|
+
function MarkdownTable(param) {
|
|
40
|
+
var { children } = param;
|
|
41
|
+
var { frameProps, headRule } = (0, import_useMarkdownTableKnobs.useMarkdownTableKnobs)();
|
|
42
|
+
var rows = import_react.Children.toArray(children);
|
|
43
|
+
var headerRows = rows.filter(function(row) {
|
|
44
|
+
return isHeaderRow(row);
|
|
45
|
+
});
|
|
46
|
+
var bodyRows = rows.filter(function(row) {
|
|
47
|
+
return !isHeaderRow(row);
|
|
48
|
+
});
|
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.ScrollView, {
|
|
50
|
+
horizontal: true,
|
|
51
|
+
showsHorizontalScrollIndicator: false,
|
|
52
|
+
marginVertical: "3",
|
|
53
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
54
|
+
minWidth: "100%",
|
|
55
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_table_primitives.Table, {
|
|
56
|
+
render: "table",
|
|
57
|
+
width: "auto",
|
|
58
|
+
cellWidth: "auto",
|
|
59
|
+
style: { tableLayout: "auto" },
|
|
60
|
+
alignCells: {
|
|
61
|
+
x: "start",
|
|
62
|
+
y: "center"
|
|
63
|
+
},
|
|
64
|
+
alignHeaderCells: {
|
|
65
|
+
x: "start",
|
|
66
|
+
y: "center"
|
|
67
|
+
},
|
|
68
|
+
...frameProps,
|
|
69
|
+
children: [headerRows.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_table_primitives.Table.Head, {
|
|
70
|
+
render: "thead",
|
|
71
|
+
...headRule,
|
|
72
|
+
children: headerRows
|
|
73
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_table_primitives.Table.Body, {
|
|
74
|
+
render: "tbody",
|
|
75
|
+
children: bodyRows
|
|
76
|
+
})]
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function MarkdownTableRow(param) {
|
|
82
|
+
var { children } = param;
|
|
83
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_table_primitives.Table.Row, {
|
|
84
|
+
render: "tr",
|
|
85
|
+
children
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function MarkdownTableCell(param) {
|
|
89
|
+
var { children, isHeader, align } = param;
|
|
90
|
+
var { headerTextProps, cellTextProps, cellPad } = (0, import_useMarkdownTableKnobs.useMarkdownTableKnobs)();
|
|
91
|
+
var textAlign = align || "left";
|
|
92
|
+
if (isHeader) {
|
|
93
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_table_primitives.Table.HeaderCell, {
|
|
94
|
+
render: "th",
|
|
95
|
+
...cellPad,
|
|
96
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
|
|
97
|
+
render: "span",
|
|
98
|
+
display: "block",
|
|
99
|
+
...headerTextProps,
|
|
100
|
+
textAlign,
|
|
101
|
+
children
|
|
102
|
+
})
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_table_primitives.Table.Cell, {
|
|
106
|
+
render: "td",
|
|
107
|
+
...cellPad,
|
|
108
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
|
|
109
|
+
render: "span",
|
|
110
|
+
display: "block",
|
|
111
|
+
...cellTextProps,
|
|
112
|
+
textAlign,
|
|
113
|
+
children
|
|
114
|
+
})
|
|
115
|
+
});
|
|
116
|
+
}
|
|
@@ -5,28 +5,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var Table_exports = {};
|
|
26
24
|
__export(Table_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
MarkdownTable: () => MarkdownTable,
|
|
26
|
+
MarkdownTableCell: () => MarkdownTableCell,
|
|
27
|
+
MarkdownTableRow: () => MarkdownTableRow
|
|
30
28
|
});
|
|
31
29
|
module.exports = __toCommonJS(Table_exports);
|
|
32
30
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -36,105 +34,85 @@ var import_components = require("@multiplatform.one/components");
|
|
|
36
34
|
var import_table_primitives = require("@multiplatform.one/table-primitives");
|
|
37
35
|
var import_useMarkdownTableKnobs = require("../shared/useMarkdownTableKnobs.native.js");
|
|
38
36
|
function isHeaderRow(row) {
|
|
39
|
-
|
|
37
|
+
return /* @__PURE__ */ (0, import_react.isValidElement)(row) && Boolean(row.props.isHeader);
|
|
40
38
|
}
|
|
41
39
|
function MarkdownTable(param) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
children: [headerRows.length > 0 && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_table_primitives.Table.Head, {
|
|
83
|
-
render: "thead",
|
|
84
|
-
...headRule,
|
|
85
|
-
children: headerRows
|
|
86
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_table_primitives.Table.Body, {
|
|
87
|
-
render: "tbody",
|
|
88
|
-
children: bodyRows
|
|
89
|
-
})]
|
|
90
|
-
})
|
|
91
|
-
})
|
|
92
|
-
});
|
|
40
|
+
var { children } = param;
|
|
41
|
+
var { frameProps, headRule } = (0, import_useMarkdownTableKnobs.useMarkdownTableKnobs)();
|
|
42
|
+
var rows = import_react.Children.toArray(children);
|
|
43
|
+
var headerRows = rows.filter(function(row) {
|
|
44
|
+
return isHeaderRow(row);
|
|
45
|
+
});
|
|
46
|
+
var bodyRows = rows.filter(function(row) {
|
|
47
|
+
return !isHeaderRow(row);
|
|
48
|
+
});
|
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.ScrollView, {
|
|
50
|
+
horizontal: true,
|
|
51
|
+
showsHorizontalScrollIndicator: false,
|
|
52
|
+
marginVertical: "3",
|
|
53
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
54
|
+
minWidth: "100%",
|
|
55
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_table_primitives.Table, {
|
|
56
|
+
render: "table",
|
|
57
|
+
width: "auto",
|
|
58
|
+
cellWidth: "auto",
|
|
59
|
+
style: { tableLayout: "auto" },
|
|
60
|
+
alignCells: {
|
|
61
|
+
x: "start",
|
|
62
|
+
y: "center"
|
|
63
|
+
},
|
|
64
|
+
alignHeaderCells: {
|
|
65
|
+
x: "start",
|
|
66
|
+
y: "center"
|
|
67
|
+
},
|
|
68
|
+
...frameProps,
|
|
69
|
+
children: [headerRows.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_table_primitives.Table.Head, {
|
|
70
|
+
render: "thead",
|
|
71
|
+
...headRule,
|
|
72
|
+
children: headerRows
|
|
73
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_table_primitives.Table.Body, {
|
|
74
|
+
render: "tbody",
|
|
75
|
+
children: bodyRows
|
|
76
|
+
})]
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
});
|
|
93
80
|
}
|
|
94
81
|
function MarkdownTableRow(param) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
children
|
|
101
|
-
});
|
|
82
|
+
var { children } = param;
|
|
83
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_table_primitives.Table.Row, {
|
|
84
|
+
render: "tr",
|
|
85
|
+
children
|
|
86
|
+
});
|
|
102
87
|
}
|
|
103
88
|
function MarkdownTableCell(param) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
|
|
132
|
-
render: "span",
|
|
133
|
-
display: "block",
|
|
134
|
-
...cellTextProps,
|
|
135
|
-
textAlign,
|
|
136
|
-
children
|
|
137
|
-
})
|
|
138
|
-
});
|
|
89
|
+
var { children, isHeader, align } = param;
|
|
90
|
+
var { headerTextProps, cellTextProps, cellPad } = (0, import_useMarkdownTableKnobs.useMarkdownTableKnobs)();
|
|
91
|
+
var textAlign = align || "left";
|
|
92
|
+
if (isHeader) {
|
|
93
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_table_primitives.Table.HeaderCell, {
|
|
94
|
+
render: "th",
|
|
95
|
+
...cellPad,
|
|
96
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
|
|
97
|
+
render: "span",
|
|
98
|
+
display: "block",
|
|
99
|
+
...headerTextProps,
|
|
100
|
+
textAlign,
|
|
101
|
+
children
|
|
102
|
+
})
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_table_primitives.Table.Cell, {
|
|
106
|
+
render: "td",
|
|
107
|
+
...cellPad,
|
|
108
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
|
|
109
|
+
render: "span",
|
|
110
|
+
display: "block",
|
|
111
|
+
...cellTextProps,
|
|
112
|
+
textAlign,
|
|
113
|
+
children
|
|
114
|
+
})
|
|
115
|
+
});
|
|
139
116
|
}
|
|
117
|
+
|
|
140
118
|
//# sourceMappingURL=Table.native.js.map
|