@multiplatform.one/markdown 9.16.1 → 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.
Files changed (735) hide show
  1. package/dist/cjs/Aside/index.cjs +87 -101
  2. package/dist/cjs/Aside/index.native.cjs +119 -0
  3. package/dist/cjs/Aside/index.native.js +93 -109
  4. package/dist/cjs/Aside/index.native.js.map +1 -1
  5. package/dist/cjs/ExternalIcon/index.cjs +28 -34
  6. package/dist/cjs/ExternalIcon/index.native.cjs +46 -0
  7. package/dist/cjs/ExternalIcon/index.native.js +30 -35
  8. package/dist/cjs/ExternalIcon/index.native.js.map +1 -1
  9. package/dist/cjs/Hr/index.cjs +14 -20
  10. package/dist/cjs/Hr/index.native.cjs +30 -0
  11. package/dist/cjs/Hr/index.native.js +15 -20
  12. package/dist/cjs/Hr/index.native.js.map +1 -1
  13. package/dist/cjs/Li/index.cjs +20 -26
  14. package/dist/cjs/Li/index.native.cjs +34 -0
  15. package/dist/cjs/Li/index.native.js +20 -25
  16. package/dist/cjs/Li/index.native.js.map +1 -1
  17. package/dist/cjs/Markdown.cjs +38 -43
  18. package/dist/cjs/Markdown.native.cjs +56 -0
  19. package/dist/cjs/Markdown.native.js +38 -42
  20. package/dist/cjs/Markdown.native.js.map +1 -1
  21. package/dist/cjs/MarkdownSimpleTable/index.cjs +112 -131
  22. package/dist/cjs/MarkdownSimpleTable/index.native.cjs +159 -0
  23. package/dist/cjs/MarkdownSimpleTable/index.native.js +136 -158
  24. package/dist/cjs/MarkdownSimpleTable/index.native.js.map +1 -1
  25. package/dist/cjs/Mdx/index.cjs +27 -50
  26. package/dist/cjs/Mdx/index.native.cjs +46 -0
  27. package/dist/cjs/Mdx/index.native.js +27 -49
  28. package/dist/cjs/Mdx/index.native.js.map +1 -1
  29. package/dist/cjs/MdxCodeBlock/index.cjs +138 -176
  30. package/dist/cjs/MdxCodeBlock/index.native.cjs +181 -0
  31. package/dist/cjs/MdxCodeBlock/index.native.js +150 -195
  32. package/dist/cjs/MdxCodeBlock/index.native.js.map +1 -1
  33. package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.cjs +14 -18
  34. package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.native.cjs +27 -0
  35. package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.native.js +14 -17
  36. package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -1
  37. package/dist/cjs/Notice/index.cjs +34 -45
  38. package/dist/cjs/Notice/index.native.cjs +52 -0
  39. package/dist/cjs/Notice/index.native.js +34 -44
  40. package/dist/cjs/Notice/index.native.js.map +1 -1
  41. package/dist/cjs/Table/index.cjs +89 -123
  42. package/dist/cjs/Table/index.native.cjs +121 -0
  43. package/dist/cjs/Table/index.native.js +89 -124
  44. package/dist/cjs/Table/index.native.js.map +1 -1
  45. package/dist/cjs/Tabs/index.cjs +33 -45
  46. package/dist/cjs/Tabs/index.native.cjs +58 -0
  47. package/dist/cjs/Tabs/index.native.js +38 -49
  48. package/dist/cjs/Tabs/index.native.js.map +1 -1
  49. package/dist/cjs/Ul/index.cjs +19 -23
  50. package/dist/cjs/Ul/index.native.cjs +33 -0
  51. package/dist/cjs/Ul/index.native.js +19 -22
  52. package/dist/cjs/Ul/index.native.js.map +1 -1
  53. package/dist/cjs/Video/index.cjs +61 -78
  54. package/dist/cjs/Video/index.native.cjs +78 -0
  55. package/dist/cjs/Video/index.native.js +61 -79
  56. package/dist/cjs/Video/index.native.js.map +1 -1
  57. package/dist/cjs/components/Blockquote.cjs +37 -47
  58. package/dist/cjs/components/Blockquote.native.cjs +56 -0
  59. package/dist/cjs/components/Blockquote.native.js +39 -55
  60. package/dist/cjs/components/Blockquote.native.js.map +1 -1
  61. package/dist/cjs/components/Break.cjs +16 -22
  62. package/dist/cjs/components/Break.native.cjs +32 -0
  63. package/dist/cjs/components/Break.native.js +16 -21
  64. package/dist/cjs/components/Break.native.js.map +1 -1
  65. package/dist/cjs/components/CodeBlock.cjs +42 -54
  66. package/dist/cjs/components/CodeBlock.native.cjs +61 -0
  67. package/dist/cjs/components/CodeBlock.native.js +43 -57
  68. package/dist/cjs/components/CodeBlock.native.js.map +1 -1
  69. package/dist/cjs/components/Heading.cjs +42 -53
  70. package/dist/cjs/components/Heading.native.cjs +65 -0
  71. package/dist/cjs/components/Heading.native.js +43 -53
  72. package/dist/cjs/components/Heading.native.js.map +1 -1
  73. package/dist/cjs/components/HorizontalRule.cjs +25 -31
  74. package/dist/cjs/components/HorizontalRule.native.cjs +41 -0
  75. package/dist/cjs/components/HorizontalRule.native.js +25 -30
  76. package/dist/cjs/components/HorizontalRule.native.js.map +1 -1
  77. package/dist/cjs/components/Image.cjs +28 -38
  78. package/dist/cjs/components/Image.native.cjs +44 -0
  79. package/dist/cjs/components/Image.native.js +28 -41
  80. package/dist/cjs/components/Image.native.js.map +1 -1
  81. package/dist/cjs/components/InlineCode.cjs +25 -33
  82. package/dist/cjs/components/InlineCode.native.cjs +41 -0
  83. package/dist/cjs/components/InlineCode.native.js +25 -32
  84. package/dist/cjs/components/InlineCode.native.js.map +1 -1
  85. package/dist/cjs/components/InlineStyles.cjs +40 -54
  86. package/dist/cjs/components/InlineStyles.native.cjs +62 -0
  87. package/dist/cjs/components/InlineStyles.native.js +40 -53
  88. package/dist/cjs/components/InlineStyles.native.js.map +1 -1
  89. package/dist/cjs/components/Link.cjs +53 -61
  90. package/dist/cjs/components/Link.native.cjs +73 -0
  91. package/dist/cjs/components/Link.native.js +53 -61
  92. package/dist/cjs/components/Link.native.js.map +1 -1
  93. package/dist/cjs/components/List.cjs +107 -132
  94. package/dist/cjs/components/List.native.cjs +143 -0
  95. package/dist/cjs/components/List.native.js +111 -135
  96. package/dist/cjs/components/List.native.js.map +1 -1
  97. package/dist/cjs/components/Paragraph.cjs +22 -30
  98. package/dist/cjs/components/Paragraph.native.cjs +38 -0
  99. package/dist/cjs/components/Paragraph.native.js +22 -29
  100. package/dist/cjs/components/Paragraph.native.js.map +1 -1
  101. package/dist/cjs/components/Table.cjs +85 -104
  102. package/dist/cjs/components/Table.native.cjs +116 -0
  103. package/dist/cjs/components/Table.native.js +89 -111
  104. package/dist/cjs/components/Table.native.js.map +1 -1
  105. package/dist/cjs/components/index.cjs +30 -32
  106. package/dist/cjs/components/index.native.cjs +55 -0
  107. package/dist/cjs/components/index.native.js +30 -31
  108. package/dist/cjs/components/index.native.js.map +1 -1
  109. package/dist/cjs/hooks/index.cjs +9 -11
  110. package/dist/cjs/hooks/index.native.cjs +22 -0
  111. package/dist/cjs/hooks/index.native.js +9 -10
  112. package/dist/cjs/hooks/index.native.js.map +1 -1
  113. package/dist/cjs/hooks/useCompileAndEvaluateMdx.cjs +22 -29
  114. package/dist/cjs/hooks/useCompileAndEvaluateMdx.native.cjs +37 -0
  115. package/dist/cjs/hooks/useCompileAndEvaluateMdx.native.js +22 -28
  116. package/dist/cjs/hooks/useCompileAndEvaluateMdx.native.js.map +1 -1
  117. package/dist/cjs/hooks/useCompileMdx.cjs +89 -92
  118. package/dist/cjs/hooks/useCompileMdx.native.cjs +129 -0
  119. package/dist/cjs/hooks/useCompileMdx.native.js +106 -110
  120. package/dist/cjs/hooks/useCompileMdx.native.js.map +1 -1
  121. package/dist/cjs/hooks/useEvaluateMdx.cjs +34 -43
  122. package/dist/cjs/hooks/useEvaluateMdx.native.cjs +59 -0
  123. package/dist/cjs/hooks/useEvaluateMdx.native.js +36 -44
  124. package/dist/cjs/hooks/useEvaluateMdx.native.js.map +1 -1
  125. package/dist/cjs/icons/index.cjs +101 -115
  126. package/dist/cjs/icons/index.native.cjs +129 -0
  127. package/dist/cjs/icons/index.native.js +103 -118
  128. package/dist/cjs/icons/index.native.js.map +1 -1
  129. package/dist/cjs/index.cjs +18 -20
  130. package/dist/cjs/index.native.cjs +53 -0
  131. package/dist/cjs/index.native.js +18 -19
  132. package/dist/cjs/index.native.js.map +1 -1
  133. package/dist/cjs/mdxComponents.cjs +247 -353
  134. package/dist/cjs/mdxComponents.native.cjs +349 -0
  135. package/dist/cjs/mdxComponents.native.js +300 -408
  136. package/dist/cjs/mdxComponents.native.js.map +1 -1
  137. package/dist/cjs/mermaid/MermaidBlock.cjs +84 -94
  138. package/dist/cjs/mermaid/MermaidBlock.native.cjs +34 -0
  139. package/dist/cjs/mermaid/MermaidBlock.native.js +19 -24
  140. package/dist/cjs/mermaid/MermaidBlock.native.js.map +1 -1
  141. package/dist/cjs/mermaid/index.cjs +16 -18
  142. package/dist/cjs/mermaid/index.native.cjs +31 -0
  143. package/dist/cjs/mermaid/index.native.js +16 -17
  144. package/dist/cjs/mermaid/index.native.js.map +1 -1
  145. package/dist/cjs/mermaid/mountDiagramSvg.cjs +37 -41
  146. package/dist/cjs/mermaid/mountDiagramSvg.native.cjs +90 -0
  147. package/dist/cjs/mermaid/mountDiagramSvg.native.js +74 -81
  148. package/dist/cjs/mermaid/mountDiagramSvg.native.js.map +1 -1
  149. package/dist/cjs/mermaid/renderMermaidDiagram.cjs +56 -67
  150. package/dist/cjs/mermaid/renderMermaidDiagram.native.cjs +37 -0
  151. package/dist/cjs/mermaid/renderMermaidDiagram.native.js +20 -21
  152. package/dist/cjs/mermaid/renderMermaidDiagram.native.js.map +1 -1
  153. package/dist/cjs/parser.cjs +20 -27
  154. package/dist/cjs/parser.native.cjs +44 -0
  155. package/dist/cjs/parser.native.js +20 -26
  156. package/dist/cjs/parser.native.js.map +1 -1
  157. package/dist/cjs/renderer.cjs +250 -314
  158. package/dist/cjs/renderer.native.cjs +295 -0
  159. package/dist/cjs/renderer.native.js +267 -330
  160. package/dist/cjs/renderer.native.js.map +1 -1
  161. package/dist/cjs/shared/colorRamps.cjs +28 -42
  162. package/dist/cjs/shared/colorRamps.native.cjs +46 -0
  163. package/dist/cjs/shared/colorRamps.native.js +29 -42
  164. package/dist/cjs/shared/colorRamps.native.js.map +1 -1
  165. package/dist/cjs/shared/cutoffGradient.cjs +36 -38
  166. package/dist/cjs/shared/cutoffGradient.native.cjs +60 -0
  167. package/dist/cjs/shared/cutoffGradient.native.js +42 -43
  168. package/dist/cjs/shared/cutoffGradient.native.js.map +1 -1
  169. package/dist/cjs/shared/textRidesText.cjs +39 -41
  170. package/dist/cjs/shared/textRidesText.native.cjs +76 -0
  171. package/dist/cjs/shared/textRidesText.native.js +56 -59
  172. package/dist/cjs/shared/textRidesText.native.js.map +1 -1
  173. package/dist/cjs/shared/tokenPx.cjs +29 -29
  174. package/dist/cjs/shared/tokenPx.native.cjs +45 -0
  175. package/dist/cjs/shared/tokenPx.native.js +31 -30
  176. package/dist/cjs/shared/tokenPx.native.js.map +1 -1
  177. package/dist/cjs/shared/useMarkdownTableKnobs.cjs +43 -49
  178. package/dist/cjs/shared/useMarkdownTableKnobs.native.cjs +57 -0
  179. package/dist/cjs/shared/useMarkdownTableKnobs.native.js +43 -48
  180. package/dist/cjs/shared/useMarkdownTableKnobs.native.js.map +1 -1
  181. package/dist/cjs/shiki/index.cjs +9 -11
  182. package/dist/cjs/shiki/index.native.cjs +18 -0
  183. package/dist/cjs/shiki/index.native.js +9 -10
  184. package/dist/cjs/shiki/index.native.js.map +1 -1
  185. package/dist/cjs/types.cjs +9 -11
  186. package/dist/cjs/types.native.cjs +18 -0
  187. package/dist/cjs/types.native.js +9 -10
  188. package/dist/cjs/types.native.js.map +1 -1
  189. package/dist/cjs/util/rehypeMetaAttributes.cjs +28 -32
  190. package/dist/cjs/util/rehypeMetaAttributes.native.cjs +44 -0
  191. package/dist/cjs/util/rehypeMetaAttributes.native.js +29 -32
  192. package/dist/cjs/util/rehypeMetaAttributes.native.js.map +1 -1
  193. package/dist/esm/Aside/index.mjs +76 -86
  194. package/dist/esm/Aside/index.mjs.map +1 -1
  195. package/dist/esm/Aside/index.native.js +83 -96
  196. package/dist/esm/Aside/index.native.js.map +1 -1
  197. package/dist/esm/ExternalIcon/index.mjs +16 -16
  198. package/dist/esm/ExternalIcon/index.mjs.map +1 -1
  199. package/dist/esm/ExternalIcon/index.native.js +19 -19
  200. package/dist/esm/ExternalIcon/index.native.js.map +1 -1
  201. package/dist/esm/Hr/index.mjs +3 -3
  202. package/dist/esm/Hr/index.mjs.map +1 -1
  203. package/dist/esm/Hr/index.native.js +4 -4
  204. package/dist/esm/Hr/index.native.js.map +1 -1
  205. package/dist/esm/Li/index.mjs +8 -8
  206. package/dist/esm/Li/index.mjs.map +1 -1
  207. package/dist/esm/Li/index.native.js +8 -8
  208. package/dist/esm/Li/index.native.js.map +1 -1
  209. package/dist/esm/Markdown.mjs +26 -25
  210. package/dist/esm/Markdown.mjs.map +1 -1
  211. package/dist/esm/Markdown.native.js +27 -26
  212. package/dist/esm/Markdown.native.js.map +1 -1
  213. package/dist/esm/MarkdownSimpleTable/index.mjs +100 -113
  214. package/dist/esm/MarkdownSimpleTable/index.mjs.map +1 -1
  215. package/dist/esm/MarkdownSimpleTable/index.native.js +125 -142
  216. package/dist/esm/MarkdownSimpleTable/index.native.js.map +1 -1
  217. package/dist/esm/Mdx/index.mjs +15 -32
  218. package/dist/esm/Mdx/index.mjs.map +1 -1
  219. package/dist/esm/Mdx/index.native.js +16 -33
  220. package/dist/esm/Mdx/index.native.js.map +1 -1
  221. package/dist/esm/MdxCodeBlock/index.mjs +125 -152
  222. package/dist/esm/MdxCodeBlock/index.mjs.map +1 -1
  223. package/dist/esm/MdxCodeBlock/index.native.js +137 -172
  224. package/dist/esm/MdxCodeBlock/index.native.js.map +1 -1
  225. package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.mjs +2 -0
  226. package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.mjs.map +1 -1
  227. package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.native.js +2 -0
  228. package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -1
  229. package/dist/esm/Notice/index.mjs +22 -27
  230. package/dist/esm/Notice/index.mjs.map +1 -1
  231. package/dist/esm/Notice/index.native.js +23 -28
  232. package/dist/esm/Notice/index.native.js.map +1 -1
  233. package/dist/esm/Table/index.mjs +73 -103
  234. package/dist/esm/Table/index.mjs.map +1 -1
  235. package/dist/esm/Table/index.native.js +74 -106
  236. package/dist/esm/Table/index.native.js.map +1 -1
  237. package/dist/esm/Tabs/index.mjs +20 -28
  238. package/dist/esm/Tabs/index.mjs.map +1 -1
  239. package/dist/esm/Tabs/index.native.js +26 -34
  240. package/dist/esm/Tabs/index.native.js.map +1 -1
  241. package/dist/esm/Ul/index.mjs +7 -5
  242. package/dist/esm/Ul/index.mjs.map +1 -1
  243. package/dist/esm/Ul/index.native.js +7 -5
  244. package/dist/esm/Ul/index.native.js.map +1 -1
  245. package/dist/esm/Video/index.mjs +50 -61
  246. package/dist/esm/Video/index.mjs.map +1 -1
  247. package/dist/esm/Video/index.native.js +51 -64
  248. package/dist/esm/Video/index.native.js.map +1 -1
  249. package/dist/esm/components/Blockquote.mjs +27 -31
  250. package/dist/esm/components/Blockquote.mjs.map +1 -1
  251. package/dist/esm/components/Blockquote.native.js +30 -41
  252. package/dist/esm/components/Blockquote.native.js.map +1 -1
  253. package/dist/esm/components/Break.mjs +4 -4
  254. package/dist/esm/components/Break.mjs.map +1 -1
  255. package/dist/esm/components/Break.native.js +5 -5
  256. package/dist/esm/components/Break.native.js.map +1 -1
  257. package/dist/esm/components/CodeBlock.mjs +31 -37
  258. package/dist/esm/components/CodeBlock.mjs.map +1 -1
  259. package/dist/esm/components/CodeBlock.native.js +33 -42
  260. package/dist/esm/components/CodeBlock.native.js.map +1 -1
  261. package/dist/esm/components/Heading.mjs +30 -35
  262. package/dist/esm/components/Heading.mjs.map +1 -1
  263. package/dist/esm/components/Heading.native.js +32 -37
  264. package/dist/esm/components/Heading.native.js.map +1 -1
  265. package/dist/esm/components/HorizontalRule.mjs +13 -13
  266. package/dist/esm/components/HorizontalRule.mjs.map +1 -1
  267. package/dist/esm/components/HorizontalRule.native.js +14 -14
  268. package/dist/esm/components/HorizontalRule.native.js.map +1 -1
  269. package/dist/esm/components/Image.mjs +17 -21
  270. package/dist/esm/components/Image.mjs.map +1 -1
  271. package/dist/esm/components/Image.native.js +18 -26
  272. package/dist/esm/components/Image.native.js.map +1 -1
  273. package/dist/esm/components/InlineCode.mjs +13 -15
  274. package/dist/esm/components/InlineCode.mjs.map +1 -1
  275. package/dist/esm/components/InlineCode.native.js +14 -16
  276. package/dist/esm/components/InlineCode.native.js.map +1 -1
  277. package/dist/esm/components/InlineStyles.mjs +26 -36
  278. package/dist/esm/components/InlineStyles.mjs.map +1 -1
  279. package/dist/esm/components/InlineStyles.native.js +27 -37
  280. package/dist/esm/components/InlineStyles.native.js.map +1 -1
  281. package/dist/esm/components/Link.mjs +41 -43
  282. package/dist/esm/components/Link.mjs.map +1 -1
  283. package/dist/esm/components/Link.native.js +42 -45
  284. package/dist/esm/components/Link.native.js.map +1 -1
  285. package/dist/esm/components/List.mjs +95 -116
  286. package/dist/esm/components/List.mjs.map +1 -1
  287. package/dist/esm/components/List.native.js +100 -121
  288. package/dist/esm/components/List.native.js.map +1 -1
  289. package/dist/esm/components/Paragraph.mjs +11 -13
  290. package/dist/esm/components/Paragraph.mjs.map +1 -1
  291. package/dist/esm/components/Paragraph.native.js +12 -14
  292. package/dist/esm/components/Paragraph.native.js.map +1 -1
  293. package/dist/esm/components/Table.mjs +71 -86
  294. package/dist/esm/components/Table.mjs.map +1 -1
  295. package/dist/esm/components/Table.native.js +76 -95
  296. package/dist/esm/components/Table.native.js.map +1 -1
  297. package/dist/esm/components/index.mjs +4 -4
  298. package/dist/esm/components/index.native.js +4 -4
  299. package/dist/esm/hooks/index.mjs +5 -4
  300. package/dist/esm/hooks/index.native.js +5 -4
  301. package/dist/esm/hooks/useCompileAndEvaluateMdx.mjs +10 -11
  302. package/dist/esm/hooks/useCompileAndEvaluateMdx.mjs.map +1 -1
  303. package/dist/esm/hooks/useCompileAndEvaluateMdx.native.js +10 -11
  304. package/dist/esm/hooks/useCompileAndEvaluateMdx.native.js.map +1 -1
  305. package/dist/esm/hooks/useCompileMdx.mjs +73 -67
  306. package/dist/esm/hooks/useCompileMdx.mjs.map +1 -1
  307. package/dist/esm/hooks/useCompileMdx.native.js +90 -86
  308. package/dist/esm/hooks/useCompileMdx.native.js.map +1 -1
  309. package/dist/esm/hooks/useEvaluateMdx.mjs +19 -17
  310. package/dist/esm/hooks/useEvaluateMdx.mjs.map +1 -1
  311. package/dist/esm/hooks/useEvaluateMdx.native.js +21 -19
  312. package/dist/esm/hooks/useEvaluateMdx.native.js.map +1 -1
  313. package/dist/esm/icons/index.mjs +86 -96
  314. package/dist/esm/icons/index.mjs.map +1 -1
  315. package/dist/esm/icons/index.native.js +89 -101
  316. package/dist/esm/icons/index.native.js.map +1 -1
  317. package/dist/esm/index.mjs +34 -18
  318. package/dist/esm/index.native.js +34 -18
  319. package/dist/esm/mdxComponents.mjs +234 -336
  320. package/dist/esm/mdxComponents.mjs.map +1 -1
  321. package/dist/esm/mdxComponents.native.js +288 -393
  322. package/dist/esm/mdxComponents.native.js.map +1 -1
  323. package/dist/esm/mermaid/MermaidBlock.mjs +72 -76
  324. package/dist/esm/mermaid/MermaidBlock.mjs.map +1 -1
  325. package/dist/esm/mermaid/MermaidBlock.native.js +8 -8
  326. package/dist/esm/mermaid/MermaidBlock.native.js.map +1 -1
  327. package/dist/esm/mermaid/index.mjs +2 -2
  328. package/dist/esm/mermaid/index.native.js +2 -2
  329. package/dist/esm/mermaid/mountDiagramSvg.mjs +24 -23
  330. package/dist/esm/mermaid/mountDiagramSvg.mjs.map +1 -1
  331. package/dist/esm/mermaid/mountDiagramSvg.native.js +61 -64
  332. package/dist/esm/mermaid/mountDiagramSvg.native.js.map +1 -1
  333. package/dist/esm/mermaid/renderMermaidDiagram.mjs +39 -42
  334. package/dist/esm/mermaid/renderMermaidDiagram.mjs.map +1 -1
  335. package/dist/esm/mermaid/renderMermaidDiagram.native.js +6 -5
  336. package/dist/esm/mermaid/renderMermaidDiagram.native.js.map +1 -1
  337. package/dist/esm/parser.mjs +4 -2
  338. package/dist/esm/parser.mjs.map +1 -1
  339. package/dist/esm/parser.native.js +4 -2
  340. package/dist/esm/parser.native.js.map +1 -1
  341. package/dist/esm/renderer.mjs +238 -298
  342. package/dist/esm/renderer.mjs.map +1 -1
  343. package/dist/esm/renderer.native.js +256 -316
  344. package/dist/esm/renderer.native.js.map +1 -1
  345. package/dist/esm/shared/colorRamps.mjs +14 -25
  346. package/dist/esm/shared/colorRamps.mjs.map +1 -1
  347. package/dist/esm/shared/colorRamps.native.js +14 -25
  348. package/dist/esm/shared/colorRamps.native.js.map +1 -1
  349. package/dist/esm/shared/cutoffGradient.mjs +23 -21
  350. package/dist/esm/shared/cutoffGradient.mjs.map +1 -1
  351. package/dist/esm/shared/cutoffGradient.native.js +29 -27
  352. package/dist/esm/shared/cutoffGradient.native.js.map +1 -1
  353. package/dist/esm/shared/textRidesText.mjs +26 -24
  354. package/dist/esm/shared/textRidesText.mjs.map +1 -1
  355. package/dist/esm/shared/textRidesText.native.js +43 -43
  356. package/dist/esm/shared/textRidesText.native.js.map +1 -1
  357. package/dist/esm/shared/tokenPx.mjs +17 -11
  358. package/dist/esm/shared/tokenPx.mjs.map +1 -1
  359. package/dist/esm/shared/tokenPx.native.js +19 -13
  360. package/dist/esm/shared/tokenPx.native.js.map +1 -1
  361. package/dist/esm/shared/useMarkdownTableKnobs.mjs +31 -31
  362. package/dist/esm/shared/useMarkdownTableKnobs.mjs.map +1 -1
  363. package/dist/esm/shared/useMarkdownTableKnobs.native.js +31 -31
  364. package/dist/esm/shared/useMarkdownTableKnobs.native.js.map +1 -1
  365. package/dist/esm/shiki/index.mjs +0 -2
  366. package/dist/esm/shiki/index.native.js +0 -2
  367. package/dist/esm/types.mjs +0 -2
  368. package/dist/esm/types.native.js +0 -2
  369. package/dist/esm/util/rehypeMetaAttributes.mjs +16 -14
  370. package/dist/esm/util/rehypeMetaAttributes.mjs.map +1 -1
  371. package/dist/esm/util/rehypeMetaAttributes.native.js +17 -15
  372. package/dist/esm/util/rehypeMetaAttributes.native.js.map +1 -1
  373. package/dist/jsx/Aside/index.mjs +76 -86
  374. package/dist/jsx/Aside/index.mjs.map +1 -1
  375. package/dist/jsx/Aside/index.native.cjs +119 -0
  376. package/dist/jsx/Aside/index.native.js +93 -109
  377. package/dist/jsx/Aside/index.native.js.map +1 -1
  378. package/dist/jsx/ExternalIcon/index.mjs +16 -16
  379. package/dist/jsx/ExternalIcon/index.mjs.map +1 -1
  380. package/dist/jsx/ExternalIcon/index.native.cjs +46 -0
  381. package/dist/jsx/ExternalIcon/index.native.js +30 -35
  382. package/dist/jsx/ExternalIcon/index.native.js.map +1 -1
  383. package/dist/jsx/Hr/index.mjs +3 -3
  384. package/dist/jsx/Hr/index.mjs.map +1 -1
  385. package/dist/jsx/Hr/index.native.cjs +30 -0
  386. package/dist/jsx/Hr/index.native.js +15 -20
  387. package/dist/jsx/Hr/index.native.js.map +1 -1
  388. package/dist/jsx/Li/index.mjs +8 -8
  389. package/dist/jsx/Li/index.mjs.map +1 -1
  390. package/dist/jsx/Li/index.native.cjs +34 -0
  391. package/dist/jsx/Li/index.native.js +20 -25
  392. package/dist/jsx/Li/index.native.js.map +1 -1
  393. package/dist/jsx/Markdown.mjs +26 -25
  394. package/dist/jsx/Markdown.mjs.map +1 -1
  395. package/dist/jsx/Markdown.native.cjs +56 -0
  396. package/dist/jsx/Markdown.native.js +38 -42
  397. package/dist/jsx/Markdown.native.js.map +1 -1
  398. package/dist/jsx/MarkdownSimpleTable/index.mjs +100 -113
  399. package/dist/jsx/MarkdownSimpleTable/index.mjs.map +1 -1
  400. package/dist/jsx/MarkdownSimpleTable/index.native.cjs +159 -0
  401. package/dist/jsx/MarkdownSimpleTable/index.native.js +136 -158
  402. package/dist/jsx/MarkdownSimpleTable/index.native.js.map +1 -1
  403. package/dist/jsx/Mdx/index.mjs +15 -32
  404. package/dist/jsx/Mdx/index.mjs.map +1 -1
  405. package/dist/jsx/Mdx/index.native.cjs +46 -0
  406. package/dist/jsx/Mdx/index.native.js +27 -49
  407. package/dist/jsx/Mdx/index.native.js.map +1 -1
  408. package/dist/jsx/MdxCodeBlock/index.mjs +125 -152
  409. package/dist/jsx/MdxCodeBlock/index.mjs.map +1 -1
  410. package/dist/jsx/MdxCodeBlock/index.native.cjs +181 -0
  411. package/dist/jsx/MdxCodeBlock/index.native.js +150 -195
  412. package/dist/jsx/MdxCodeBlock/index.native.js.map +1 -1
  413. package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.mjs +2 -0
  414. package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.mjs.map +1 -1
  415. package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.native.cjs +27 -0
  416. package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.native.js +14 -17
  417. package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -1
  418. package/dist/jsx/Notice/index.mjs +22 -27
  419. package/dist/jsx/Notice/index.mjs.map +1 -1
  420. package/dist/jsx/Notice/index.native.cjs +52 -0
  421. package/dist/jsx/Notice/index.native.js +34 -44
  422. package/dist/jsx/Notice/index.native.js.map +1 -1
  423. package/dist/jsx/Table/index.mjs +73 -103
  424. package/dist/jsx/Table/index.mjs.map +1 -1
  425. package/dist/jsx/Table/index.native.cjs +121 -0
  426. package/dist/jsx/Table/index.native.js +89 -124
  427. package/dist/jsx/Table/index.native.js.map +1 -1
  428. package/dist/jsx/Tabs/index.mjs +20 -28
  429. package/dist/jsx/Tabs/index.mjs.map +1 -1
  430. package/dist/jsx/Tabs/index.native.cjs +58 -0
  431. package/dist/jsx/Tabs/index.native.js +38 -49
  432. package/dist/jsx/Tabs/index.native.js.map +1 -1
  433. package/dist/jsx/Ul/index.mjs +7 -5
  434. package/dist/jsx/Ul/index.mjs.map +1 -1
  435. package/dist/jsx/Ul/index.native.cjs +33 -0
  436. package/dist/jsx/Ul/index.native.js +19 -22
  437. package/dist/jsx/Ul/index.native.js.map +1 -1
  438. package/dist/jsx/Video/index.mjs +50 -61
  439. package/dist/jsx/Video/index.mjs.map +1 -1
  440. package/dist/jsx/Video/index.native.cjs +78 -0
  441. package/dist/jsx/Video/index.native.js +61 -79
  442. package/dist/jsx/Video/index.native.js.map +1 -1
  443. package/dist/jsx/components/Blockquote.mjs +27 -31
  444. package/dist/jsx/components/Blockquote.mjs.map +1 -1
  445. package/dist/jsx/components/Blockquote.native.cjs +56 -0
  446. package/dist/jsx/components/Blockquote.native.js +39 -55
  447. package/dist/jsx/components/Blockquote.native.js.map +1 -1
  448. package/dist/jsx/components/Break.mjs +4 -4
  449. package/dist/jsx/components/Break.mjs.map +1 -1
  450. package/dist/jsx/components/Break.native.cjs +32 -0
  451. package/dist/jsx/components/Break.native.js +16 -21
  452. package/dist/jsx/components/Break.native.js.map +1 -1
  453. package/dist/jsx/components/CodeBlock.mjs +31 -37
  454. package/dist/jsx/components/CodeBlock.mjs.map +1 -1
  455. package/dist/jsx/components/CodeBlock.native.cjs +61 -0
  456. package/dist/jsx/components/CodeBlock.native.js +43 -57
  457. package/dist/jsx/components/CodeBlock.native.js.map +1 -1
  458. package/dist/jsx/components/Heading.mjs +30 -35
  459. package/dist/jsx/components/Heading.mjs.map +1 -1
  460. package/dist/jsx/components/Heading.native.cjs +65 -0
  461. package/dist/jsx/components/Heading.native.js +43 -53
  462. package/dist/jsx/components/Heading.native.js.map +1 -1
  463. package/dist/jsx/components/HorizontalRule.mjs +13 -13
  464. package/dist/jsx/components/HorizontalRule.mjs.map +1 -1
  465. package/dist/jsx/components/HorizontalRule.native.cjs +41 -0
  466. package/dist/jsx/components/HorizontalRule.native.js +25 -30
  467. package/dist/jsx/components/HorizontalRule.native.js.map +1 -1
  468. package/dist/jsx/components/Image.mjs +17 -21
  469. package/dist/jsx/components/Image.mjs.map +1 -1
  470. package/dist/jsx/components/Image.native.cjs +44 -0
  471. package/dist/jsx/components/Image.native.js +28 -41
  472. package/dist/jsx/components/Image.native.js.map +1 -1
  473. package/dist/jsx/components/InlineCode.mjs +13 -15
  474. package/dist/jsx/components/InlineCode.mjs.map +1 -1
  475. package/dist/jsx/components/InlineCode.native.cjs +41 -0
  476. package/dist/jsx/components/InlineCode.native.js +25 -32
  477. package/dist/jsx/components/InlineCode.native.js.map +1 -1
  478. package/dist/jsx/components/InlineStyles.mjs +26 -36
  479. package/dist/jsx/components/InlineStyles.mjs.map +1 -1
  480. package/dist/jsx/components/InlineStyles.native.cjs +62 -0
  481. package/dist/jsx/components/InlineStyles.native.js +40 -53
  482. package/dist/jsx/components/InlineStyles.native.js.map +1 -1
  483. package/dist/jsx/components/Link.mjs +41 -43
  484. package/dist/jsx/components/Link.mjs.map +1 -1
  485. package/dist/jsx/components/Link.native.cjs +73 -0
  486. package/dist/jsx/components/Link.native.js +53 -61
  487. package/dist/jsx/components/Link.native.js.map +1 -1
  488. package/dist/jsx/components/List.mjs +95 -116
  489. package/dist/jsx/components/List.mjs.map +1 -1
  490. package/dist/jsx/components/List.native.cjs +143 -0
  491. package/dist/jsx/components/List.native.js +111 -135
  492. package/dist/jsx/components/List.native.js.map +1 -1
  493. package/dist/jsx/components/Paragraph.mjs +11 -13
  494. package/dist/jsx/components/Paragraph.mjs.map +1 -1
  495. package/dist/jsx/components/Paragraph.native.cjs +38 -0
  496. package/dist/jsx/components/Paragraph.native.js +22 -29
  497. package/dist/jsx/components/Paragraph.native.js.map +1 -1
  498. package/dist/jsx/components/Table.mjs +71 -86
  499. package/dist/jsx/components/Table.mjs.map +1 -1
  500. package/dist/jsx/components/Table.native.cjs +116 -0
  501. package/dist/jsx/components/Table.native.js +89 -111
  502. package/dist/jsx/components/Table.native.js.map +1 -1
  503. package/dist/jsx/components/index.mjs +4 -4
  504. package/dist/jsx/components/index.native.cjs +55 -0
  505. package/dist/jsx/components/index.native.js +30 -31
  506. package/dist/jsx/components/index.native.js.map +1 -1
  507. package/dist/jsx/hooks/index.mjs +5 -4
  508. package/dist/jsx/hooks/index.native.cjs +22 -0
  509. package/dist/jsx/hooks/index.native.js +9 -10
  510. package/dist/jsx/hooks/index.native.js.map +1 -1
  511. package/dist/jsx/hooks/useCompileAndEvaluateMdx.mjs +10 -11
  512. package/dist/jsx/hooks/useCompileAndEvaluateMdx.mjs.map +1 -1
  513. package/dist/jsx/hooks/useCompileAndEvaluateMdx.native.cjs +37 -0
  514. package/dist/jsx/hooks/useCompileAndEvaluateMdx.native.js +22 -28
  515. package/dist/jsx/hooks/useCompileAndEvaluateMdx.native.js.map +1 -1
  516. package/dist/jsx/hooks/useCompileMdx.mjs +73 -67
  517. package/dist/jsx/hooks/useCompileMdx.mjs.map +1 -1
  518. package/dist/jsx/hooks/useCompileMdx.native.cjs +129 -0
  519. package/dist/jsx/hooks/useCompileMdx.native.js +106 -110
  520. package/dist/jsx/hooks/useCompileMdx.native.js.map +1 -1
  521. package/dist/jsx/hooks/useEvaluateMdx.mjs +19 -17
  522. package/dist/jsx/hooks/useEvaluateMdx.mjs.map +1 -1
  523. package/dist/jsx/hooks/useEvaluateMdx.native.cjs +59 -0
  524. package/dist/jsx/hooks/useEvaluateMdx.native.js +36 -44
  525. package/dist/jsx/hooks/useEvaluateMdx.native.js.map +1 -1
  526. package/dist/jsx/icons/index.mjs +86 -96
  527. package/dist/jsx/icons/index.mjs.map +1 -1
  528. package/dist/jsx/icons/index.native.cjs +129 -0
  529. package/dist/jsx/icons/index.native.js +103 -118
  530. package/dist/jsx/icons/index.native.js.map +1 -1
  531. package/dist/jsx/index.js +34 -18
  532. package/dist/jsx/index.mjs +34 -18
  533. package/dist/jsx/index.native.cjs +53 -0
  534. package/dist/jsx/index.native.js +18 -19
  535. package/dist/jsx/index.native.js.map +1 -1
  536. package/dist/jsx/mdxComponents.mjs +234 -336
  537. package/dist/jsx/mdxComponents.mjs.map +1 -1
  538. package/dist/jsx/mdxComponents.native.cjs +349 -0
  539. package/dist/jsx/mdxComponents.native.js +300 -408
  540. package/dist/jsx/mdxComponents.native.js.map +1 -1
  541. package/dist/jsx/mermaid/MermaidBlock.mjs +72 -76
  542. package/dist/jsx/mermaid/MermaidBlock.mjs.map +1 -1
  543. package/dist/jsx/mermaid/MermaidBlock.native.cjs +34 -0
  544. package/dist/jsx/mermaid/MermaidBlock.native.js +19 -24
  545. package/dist/jsx/mermaid/MermaidBlock.native.js.map +1 -1
  546. package/dist/jsx/mermaid/index.mjs +2 -2
  547. package/dist/jsx/mermaid/index.native.cjs +31 -0
  548. package/dist/jsx/mermaid/index.native.js +16 -17
  549. package/dist/jsx/mermaid/index.native.js.map +1 -1
  550. package/dist/jsx/mermaid/mountDiagramSvg.mjs +24 -23
  551. package/dist/jsx/mermaid/mountDiagramSvg.mjs.map +1 -1
  552. package/dist/jsx/mermaid/mountDiagramSvg.native.cjs +90 -0
  553. package/dist/jsx/mermaid/mountDiagramSvg.native.js +74 -81
  554. package/dist/jsx/mermaid/mountDiagramSvg.native.js.map +1 -1
  555. package/dist/jsx/mermaid/renderMermaidDiagram.mjs +39 -42
  556. package/dist/jsx/mermaid/renderMermaidDiagram.mjs.map +1 -1
  557. package/dist/jsx/mermaid/renderMermaidDiagram.native.cjs +37 -0
  558. package/dist/jsx/mermaid/renderMermaidDiagram.native.js +20 -21
  559. package/dist/jsx/mermaid/renderMermaidDiagram.native.js.map +1 -1
  560. package/dist/jsx/parser.mjs +4 -2
  561. package/dist/jsx/parser.mjs.map +1 -1
  562. package/dist/jsx/parser.native.cjs +44 -0
  563. package/dist/jsx/parser.native.js +20 -26
  564. package/dist/jsx/parser.native.js.map +1 -1
  565. package/dist/jsx/renderer.mjs +238 -298
  566. package/dist/jsx/renderer.mjs.map +1 -1
  567. package/dist/jsx/renderer.native.cjs +295 -0
  568. package/dist/jsx/renderer.native.js +267 -330
  569. package/dist/jsx/renderer.native.js.map +1 -1
  570. package/dist/jsx/shared/colorRamps.mjs +14 -25
  571. package/dist/jsx/shared/colorRamps.mjs.map +1 -1
  572. package/dist/jsx/shared/colorRamps.native.cjs +46 -0
  573. package/dist/jsx/shared/colorRamps.native.js +29 -42
  574. package/dist/jsx/shared/colorRamps.native.js.map +1 -1
  575. package/dist/jsx/shared/cutoffGradient.mjs +23 -21
  576. package/dist/jsx/shared/cutoffGradient.mjs.map +1 -1
  577. package/dist/jsx/shared/cutoffGradient.native.cjs +60 -0
  578. package/dist/jsx/shared/cutoffGradient.native.js +42 -43
  579. package/dist/jsx/shared/cutoffGradient.native.js.map +1 -1
  580. package/dist/jsx/shared/textRidesText.mjs +26 -24
  581. package/dist/jsx/shared/textRidesText.mjs.map +1 -1
  582. package/dist/jsx/shared/textRidesText.native.cjs +76 -0
  583. package/dist/jsx/shared/textRidesText.native.js +56 -59
  584. package/dist/jsx/shared/textRidesText.native.js.map +1 -1
  585. package/dist/jsx/shared/tokenPx.mjs +17 -11
  586. package/dist/jsx/shared/tokenPx.mjs.map +1 -1
  587. package/dist/jsx/shared/tokenPx.native.cjs +45 -0
  588. package/dist/jsx/shared/tokenPx.native.js +31 -30
  589. package/dist/jsx/shared/tokenPx.native.js.map +1 -1
  590. package/dist/jsx/shared/useMarkdownTableKnobs.mjs +31 -31
  591. package/dist/jsx/shared/useMarkdownTableKnobs.mjs.map +1 -1
  592. package/dist/jsx/shared/useMarkdownTableKnobs.native.cjs +57 -0
  593. package/dist/jsx/shared/useMarkdownTableKnobs.native.js +43 -48
  594. package/dist/jsx/shared/useMarkdownTableKnobs.native.js.map +1 -1
  595. package/dist/jsx/shiki/index.mjs +0 -2
  596. package/dist/jsx/shiki/index.native.cjs +18 -0
  597. package/dist/jsx/shiki/index.native.js +9 -10
  598. package/dist/jsx/shiki/index.native.js.map +1 -1
  599. package/dist/jsx/types.mjs +0 -2
  600. package/dist/jsx/types.native.cjs +18 -0
  601. package/dist/jsx/types.native.js +9 -10
  602. package/dist/jsx/types.native.js.map +1 -1
  603. package/dist/jsx/util/rehypeMetaAttributes.mjs +16 -14
  604. package/dist/jsx/util/rehypeMetaAttributes.mjs.map +1 -1
  605. package/dist/jsx/util/rehypeMetaAttributes.native.cjs +44 -0
  606. package/dist/jsx/util/rehypeMetaAttributes.native.js +29 -32
  607. package/dist/jsx/util/rehypeMetaAttributes.native.js.map +1 -1
  608. package/package.json +16 -16
  609. package/src/Aside/index.tsx +10 -10
  610. package/src/Li/index.tsx +3 -3
  611. package/src/Markdown.stories.tsx +3 -3
  612. package/src/MdxCodeBlock/index.tsx +8 -9
  613. package/src/Notice/index.tsx +1 -1
  614. package/src/Renderer.stories.tsx +7 -7
  615. package/src/Table/index.tsx +1 -1
  616. package/src/Tabs/index.tsx +1 -1
  617. package/src/Ul/index.ts +4 -4
  618. package/src/Video/index.tsx +5 -5
  619. package/src/codeInk.spec.tsx +16 -10
  620. package/src/components/Blockquote.tsx +5 -7
  621. package/src/components/CodeBlock.tsx +2 -2
  622. package/src/components/Heading.tsx +4 -4
  623. package/src/components/HorizontalRule.tsx +2 -2
  624. package/src/components/Image.tsx +1 -1
  625. package/src/components/InlineCode.tsx +3 -3
  626. package/src/components/Link.tsx +7 -10
  627. package/src/components/List.tsx +17 -17
  628. package/src/components/Paragraph.tsx +1 -1
  629. package/src/components/Table.tsx +1 -1
  630. package/src/components/markdownPrimitives.spec.tsx +5 -3
  631. package/src/docBlocks.spec.tsx +20 -6
  632. package/src/icons/Icons.stories.tsx +23 -23
  633. package/src/icons/icons.spec.tsx +1 -1
  634. package/src/icons/index.tsx +8 -5
  635. package/src/mdx.spec.tsx +2 -2
  636. package/src/mdxComponents.tsx +31 -32
  637. package/src/mermaid/MermaidBlock.stories.tsx +2 -2
  638. package/src/mermaid/MermaidBlock.tsx +3 -3
  639. package/src/mermaid/MermaidBlockNative.stories.tsx +3 -3
  640. package/src/mermaid/MountDiagramSvg.stories.tsx +11 -11
  641. package/src/mermaid/RenderMermaidDiagram.stories.tsx +11 -11
  642. package/src/renderer.spec.tsx +2 -2
  643. package/src/renderer.tsx +1 -3
  644. package/src/shared/colorRamps.ts +9 -9
  645. package/src/shared/tokenPx.ts +7 -8
  646. package/src/shared/useMarkdownTableKnobs.ts +1 -1
  647. package/src/stories/Blocks.stories.tsx +8 -8
  648. package/src/stories/Callouts.stories.tsx +8 -8
  649. package/src/stories/Code.stories.tsx +8 -8
  650. package/src/stories/Inline.stories.tsx +6 -6
  651. package/src/stories/Mdx.stories.tsx +5 -5
  652. package/src/stories/Media.stories.tsx +6 -6
  653. package/src/stories/Tables.stories.tsx +7 -7
  654. package/types/Aside/index.d.ts +2 -2
  655. package/types/Aside/index.d.ts.map +1 -1
  656. package/types/ExternalIcon/index.d.ts +1 -1
  657. package/types/ExternalIcon/index.d.ts.map +1 -1
  658. package/types/Hr/index.d.ts +1 -1
  659. package/types/Hr/index.d.ts.map +1 -1
  660. package/types/Li/index.d.ts +1 -2
  661. package/types/Li/index.d.ts.map +1 -1
  662. package/types/Markdown.d.ts +1 -1
  663. package/types/Markdown.d.ts.map +1 -1
  664. package/types/MarkdownSimpleTable/index.d.ts +1 -1
  665. package/types/MarkdownSimpleTable/index.d.ts.map +1 -1
  666. package/types/Mdx/index.d.ts +1 -1
  667. package/types/Mdx/index.d.ts.map +1 -1
  668. package/types/MdxCodeBlock/index.d.ts +1 -1
  669. package/types/MdxCodeBlock/index.d.ts.map +1 -1
  670. package/types/Notice/index.d.ts +1 -1
  671. package/types/Notice/index.d.ts.map +1 -1
  672. package/types/Table/index.d.ts +6 -6
  673. package/types/Table/index.d.ts.map +1 -1
  674. package/types/Tabs/index.d.ts +2 -2
  675. package/types/Tabs/index.d.ts.map +1 -1
  676. package/types/Ul/index.d.ts +1 -4
  677. package/types/Ul/index.d.ts.map +1 -1
  678. package/types/Video/index.d.ts +1 -1
  679. package/types/Video/index.d.ts.map +1 -1
  680. package/types/components/Blockquote.d.ts +1 -1
  681. package/types/components/Blockquote.d.ts.map +1 -1
  682. package/types/components/Break.d.ts +1 -1
  683. package/types/components/Break.d.ts.map +1 -1
  684. package/types/components/CodeBlock.d.ts +1 -1
  685. package/types/components/CodeBlock.d.ts.map +1 -1
  686. package/types/components/Heading.d.ts +1 -1
  687. package/types/components/Heading.d.ts.map +1 -1
  688. package/types/components/HorizontalRule.d.ts +1 -1
  689. package/types/components/HorizontalRule.d.ts.map +1 -1
  690. package/types/components/Image.d.ts +1 -1
  691. package/types/components/Image.d.ts.map +1 -1
  692. package/types/components/InlineCode.d.ts +1 -1
  693. package/types/components/InlineCode.d.ts.map +1 -1
  694. package/types/components/InlineStyles.d.ts +3 -3
  695. package/types/components/InlineStyles.d.ts.map +1 -1
  696. package/types/components/Link.d.ts +1 -1
  697. package/types/components/Link.d.ts.map +1 -1
  698. package/types/components/List.d.ts +2 -2
  699. package/types/components/List.d.ts.map +1 -1
  700. package/types/components/Paragraph.d.ts +1 -1
  701. package/types/components/Paragraph.d.ts.map +1 -1
  702. package/types/components/Table.d.ts +3 -3
  703. package/types/components/Table.d.ts.map +1 -1
  704. package/types/icons/index.d.ts +4 -4
  705. package/types/icons/index.d.ts.map +1 -1
  706. package/types/mdxComponents.d.ts +1 -4
  707. package/types/mdxComponents.d.ts.map +1 -1
  708. package/types/mermaid/MermaidBlock.d.ts +1 -1
  709. package/types/mermaid/MermaidBlock.d.ts.map +1 -1
  710. package/types/mermaid/MermaidBlock.native.d.ts +1 -1
  711. package/types/mermaid/MermaidBlock.native.d.ts.map +1 -1
  712. package/types/renderer.d.ts.map +1 -1
  713. package/types/shared/colorRamps.d.ts +9 -9
  714. package/types/shared/tokenPx.d.ts.map +1 -1
  715. package/types/shared/useMarkdownTableKnobs.d.ts +3 -1
  716. package/types/shared/useMarkdownTableKnobs.d.ts.map +1 -1
  717. package/dist/esm/components/index.mjs.map +0 -1
  718. package/dist/esm/components/index.native.js.map +0 -1
  719. package/dist/esm/hooks/index.mjs.map +0 -1
  720. package/dist/esm/hooks/index.native.js.map +0 -1
  721. package/dist/esm/index.mjs.map +0 -1
  722. package/dist/esm/index.native.js.map +0 -1
  723. package/dist/esm/mermaid/index.mjs.map +0 -1
  724. package/dist/esm/mermaid/index.native.js.map +0 -1
  725. package/dist/esm/shiki/index.mjs.map +0 -1
  726. package/dist/esm/shiki/index.native.js.map +0 -1
  727. package/dist/esm/types.mjs.map +0 -1
  728. package/dist/esm/types.native.js.map +0 -1
  729. package/dist/jsx/components/index.mjs.map +0 -1
  730. package/dist/jsx/hooks/index.mjs.map +0 -1
  731. package/dist/jsx/index.js.map +0 -1
  732. package/dist/jsx/index.mjs.map +0 -1
  733. package/dist/jsx/mermaid/index.mjs.map +0 -1
  734. package/dist/jsx/shiki/index.mjs.map +0 -1
  735. package/dist/jsx/types.mjs.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import {
2
+ Button,
2
3
  Code,
3
4
  ErrorBoundary,
4
5
  HighlightedCode,
@@ -12,7 +13,7 @@ import { LinearGradient } from "@tamagui/linear-gradient";
12
13
  import rangeParser from "parse-numeric-range";
13
14
  import type { ReactNode } from "react";
14
15
  import { useContext, useMemo, useState } from "react";
15
- import { Button, TooltipSimple, XStack, YStack } from "tamagui";
16
+ import { TooltipSimple, XStack, YStack } from "tamagui";
16
17
  import { CheckCircleIcon, ClipboardIcon } from "../icons";
17
18
  import { useCutoffGradientColors } from "../shared/cutoffGradient";
18
19
  import { tokenPx } from "../shared/tokenPx";
@@ -94,7 +95,7 @@ export function MDXCodeBlock(props: MDXCodeBlockProps) {
94
95
  }, [isHighlightingLines, line]);
95
96
 
96
97
  return (
97
- <YStack position="relative" marginBottom="$4">
98
+ <YStack position="relative" marginBottom="4">
98
99
  <ErrorBoundary>
99
100
  <YStack
100
101
  position="relative"
@@ -118,7 +119,7 @@ export function MDXCodeBlock(props: MDXCodeBlockProps) {
118
119
  />
119
120
  <XStack
120
121
  position="absolute"
121
- bottom="$4"
122
+ bottom="4"
122
123
  left={0}
123
124
  right={0}
124
125
  justifyContent="center"
@@ -163,26 +164,24 @@ export function MDXCodeBlock(props: MDXCodeBlockProps) {
163
164
  </ScrollView>
164
165
  </Pre>
165
166
  )}
166
- <XStack position="absolute" top="$3" insetInlineEnd="$3" {...knobProps.gap}>
167
+ <XStack position="absolute" top="3" insetInlineEnd="3" {...knobProps.gap}>
167
168
  {(!isCollapsed || !isCollapsible) && (copyable ?? !disableCopy) && (
168
169
  <TooltipSimple label={hasCopied ? "Copied" : "Copy to clipboard"}>
169
170
  <Button
170
171
  aria-label="Copy code to clipboard"
171
- size="$2"
172
+ size="2"
173
+ display="max-xs:none"
172
174
  icon={
173
175
  hasCopied ? <CheckCircleIcon size={iconPx} /> : <ClipboardIcon size={iconPx} />
174
176
  }
175
177
  onPress={onCopy}
176
- $max-xs={{
177
- display: "none",
178
- }}
179
178
  />
180
179
  </TooltipSimple>
181
180
  )}
182
181
  {isCollapsible && (
183
182
  <Button
184
183
  aria-label="Show or hide code"
185
- size="$2"
184
+ size="2"
186
185
  onPress={() => setIsCollapsed((x) => !x)}
187
186
  >
188
187
  {isCollapsed ? "Show code" : "Hide code"}
@@ -39,7 +39,7 @@ export function Notice({
39
39
  });
40
40
  const content = (raw ?? disableUnwrap) ? children : unwrapText(children);
41
41
  return (
42
- <Alert intent={themeIntentMap[theme]} title={title} marginVertical="$4" {...props}>
42
+ <Alert intent={themeIntentMap[theme]} title={title} marginVertical="4" {...props}>
43
43
  {content}
44
44
  </Alert>
45
45
  );
@@ -78,7 +78,7 @@ export const Main: Story = {
78
78
  codeTheme: { control: "select", options: ["auto", "github-dark", "github-light"] },
79
79
  },
80
80
  render: (args: any) => (
81
- <YStack maxWidth={700} padding="$4">
81
+ <YStack maxWidth={700} padding="4">
82
82
  {renderMarkdown(parseMarkdown(kitchenSink), { codeTheme: args.codeTheme })}
83
83
  </YStack>
84
84
  ),
@@ -87,7 +87,7 @@ export const Main: Story = {
87
87
  /** GitLab parity: a mermaid fence renders as a diagram, not as code. */
88
88
  export const MermaidFence: Story = {
89
89
  render: () => (
90
- <YStack maxWidth={700} padding="$4">
90
+ <YStack maxWidth={700} padding="4">
91
91
  {renderMarkdown(parseMarkdown(mermaidFence))}
92
92
  </YStack>
93
93
  ),
@@ -95,13 +95,13 @@ export const MermaidFence: Story = {
95
95
 
96
96
  const overrides: Partial<MarkdownComponents> = {
97
97
  h1: ({ children }) => (
98
- <Paragraph size="$8" color="$blue10">
98
+ <Paragraph size="$8" color="$blue-10">
99
99
  {children}
100
100
  </Paragraph>
101
101
  ),
102
- p: ({ children }) => <Paragraph color="$green10">{children}</Paragraph>,
102
+ p: ({ children }) => <Paragraph color="$green-10">{children}</Paragraph>,
103
103
  blockquote: ({ children }) => (
104
- <YStack borderLeftWidth={4} borderColor="$blue8" paddingLeft="$3">
104
+ <YStack borderLeftWidth={4} borderColor="blue-8" paddingLeft="3">
105
105
  {children}
106
106
  </YStack>
107
107
  ),
@@ -113,7 +113,7 @@ const overrides: Partial<MarkdownComponents> = {
113
113
  */
114
114
  export const CustomComponents: Story = {
115
115
  render: () => (
116
- <YStack maxWidth={700} padding="$4">
116
+ <YStack maxWidth={700} padding="4">
117
117
  {renderMarkdown(
118
118
  parseMarkdown("# Overridden heading\n\nAn overridden paragraph.\n\n> An overridden quote."),
119
119
  { components: overrides },
@@ -129,7 +129,7 @@ export const CustomComponents: Story = {
129
129
  */
130
130
  export const UnknownNodes: Story = {
131
131
  render: () => (
132
- <YStack maxWidth={700} padding="$4" gap="$3">
132
+ <YStack maxWidth={700} padding="4" gap="3">
133
133
  <Paragraph>Unknown container keeps its children:</Paragraph>
134
134
  {renderMarkdown({
135
135
  type: "root",
@@ -5,7 +5,7 @@ import { Table as BaseTable } from "@multiplatform.one/table-primitives";
5
5
  import { useMarkdownTableKnobs } from "../shared/useMarkdownTableKnobs";
6
6
 
7
7
  const MDXTableFrame = styled(YStack, {
8
- marginVertical: "$4",
8
+ marginVertical: "4",
9
9
  overflow: "hidden",
10
10
  });
11
11
 
@@ -25,7 +25,7 @@ export function MDXTabs({ items, children, defaultValue }: MDXTabsProps) {
25
25
  const defaultIndex = defaultValue ? Math.max(items.indexOf(defaultValue), 0) : 0;
26
26
 
27
27
  return (
28
- <YStack marginVertical="$4">
28
+ <YStack marginVertical="4">
29
29
  <Tabs
30
30
  items={items.map((label, index) => ({
31
31
  value: values[index]!,
package/src/Ul/index.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { YStack, styled } from "tamagui";
2
2
 
3
3
  export const UL = styled(YStack, {
4
- name: "UL",
4
+ displayName: "UL",
5
5
  render: "ul",
6
- marginVertical: "$1",
7
- marginInlineStart: "$4",
8
- marginInlineEnd: "$2",
6
+ marginVertical: "1",
7
+ marginInlineStart: "4",
8
+ marginInlineEnd: "2",
9
9
  });
10
10
 
11
11
  export type ULProps = React.ComponentProps<typeof UL>;
@@ -31,9 +31,9 @@ export function Video({
31
31
  <YStack
32
32
  render="figure"
33
33
  marginHorizontal={0}
34
- marginVertical="$6"
35
- gap="$2"
36
- paddingTop={children && !hasMedia ? "$2" : undefined}
34
+ marginVertical="6"
35
+ gap="2"
36
+ paddingTop={`${children && !hasMedia ? "2" : undefined}`}
37
37
  {...props}
38
38
  >
39
39
  {isWeb ? (
@@ -57,12 +57,12 @@ export function Video({
57
57
  <YStack
58
58
  {...knobProps.panelPadding}
59
59
  {...knobProps.borderRadius}
60
- backgroundColor="$color3"
60
+ backgroundColor="color-3"
61
61
  alignItems="center"
62
62
  justifyContent="center"
63
63
  minHeight={fallbackMin}
64
64
  >
65
- <Paragraph color="$color9" size={knobProps.sizeToken as any} {...knobProps.body}>
65
+ <Paragraph color="color-9" size={knobProps.sizeToken as any} {...knobProps.body}>
66
66
  Video playback requires a native video player
67
67
  </Paragraph>
68
68
  </YStack>
@@ -5,6 +5,7 @@
5
5
  * code surface.
6
6
  */
7
7
 
8
+ import { atomicStyle, cssVariableName } from "@multiplatform.one/test-utils";
8
9
  import { createDefaultThemeConfig } from "@multiplatform.one/theme";
9
10
  import { cleanup, render, waitFor } from "@testing-library/react";
10
11
  import type { ReactElement } from "react";
@@ -18,8 +19,9 @@ import * as rendererStories from "./Renderer.stories";
18
19
  afterEach(cleanup);
19
20
 
20
21
  const houseConfig = createDefaultThemeConfig();
21
- // Tamagui keeps a token's first 11 characters in its atomic class and hashes the rest.
22
- const inkClass = (token: string) => new RegExp(`_col-${token.slice(0, 11)}`);
22
+ // Tamagui hashes the whole style value into the class, so the token name lives
23
+ // only in the rule's `var()`, and MPO spells its theme keys kebab.
24
+ const inkToken = (el: Element) => cssVariableName(atomicStyle(el).color);
23
25
  const fence = "```typescript\nconst greeting = 1;\n```";
24
26
 
25
27
  function houseRender(ui: ReactElement, scheme: "light" | "dark" = "light") {
@@ -37,24 +39,28 @@ function tokenSpan(container: HTMLElement, text: string) {
37
39
  return matches.find((span) => !matches.some((other) => other !== span && span.contains(other)));
38
40
  }
39
41
 
40
- async function keywordClass(container: HTMLElement) {
41
- await waitFor(() => expect(tokenSpan(container, "const")?.className).toMatch(/_col-/), {
42
- timeout: 30000,
43
- });
44
- return tokenSpan(container, "const")!.className;
42
+ async function keywordInk(container: HTMLElement) {
43
+ await waitFor(
44
+ () => {
45
+ const span = tokenSpan(container, "const");
46
+ expect(span && atomicStyle(span).color).toBeTruthy();
47
+ },
48
+ { timeout: 30000 },
49
+ );
50
+ return inkToken(tokenSpan(container, "const")!);
45
51
  }
46
52
 
47
53
  describe("MPO-474: markdown code ink follows the theme", () => {
48
54
  for (const scheme of ["light", "dark"] as const) {
49
- it(`${scheme}: <Markdown> paints $syntaxPurple, not a GitHub hex`, async () => {
55
+ it(`${scheme}: <Markdown> paints $syntax-purple, not a GitHub hex`, async () => {
50
56
  const { container } = houseRender(<Markdown>{fence}</Markdown>, scheme);
51
- expect(await keywordClass(container)).toMatch(inkClass("syntaxPurple"));
57
+ expect(await keywordInk(container)).toBe("syntax-purple");
52
58
  }, 35000);
53
59
  }
54
60
 
55
61
  it("renderMarkdown's default code theme is the house theme, not github-dark", async () => {
56
62
  const { container } = houseRender(<>{renderMarkdown(parseMarkdown(fence))}</>);
57
- expect(await keywordClass(container)).toMatch(inkClass("syntaxPurple"));
63
+ expect(await keywordInk(container)).toBe("syntax-purple");
58
64
  }, 35000);
59
65
 
60
66
  it("the Renderer story shows the house theme by default", () => {
@@ -1,5 +1,5 @@
1
- import { View, getTokens, isWeb, useTheme } from "tamagui";
2
- import { useResolvedKnobs } from "@multiplatform.one/theme";
1
+ import { View, isWeb, useTheme } from "tamagui";
2
+ import { tokenNumber, useResolvedKnobs } from "@multiplatform.one/theme";
3
3
  import { markdownBlockquoteColors } from "../shared/colorRamps";
4
4
  import type { BlockquoteProps } from "../types";
5
5
 
@@ -8,9 +8,7 @@ export function Blockquote({ children }: BlockquoteProps) {
8
8
  const theme = useTheme();
9
9
  const padToken = knobProps.panelPadding.padding as number | string;
10
10
  const pad =
11
- typeof padToken === "number"
12
- ? padToken
13
- : ((getTokens().space as any)?.[padToken]?.val ?? padToken);
11
+ typeof padToken === "number" ? padToken : (tokenNumber("space", padToken) ?? padToken);
14
12
  const railWidth = knobProps.borderRadius.borderWidth;
15
13
  return (
16
14
  <View
@@ -20,7 +18,7 @@ export function Blockquote({ children }: BlockquoteProps) {
20
18
  // containerRadius fragment). Rail thickness rides borderWidth (0 hides).
21
19
  {...knobProps.containerRadius}
22
20
  paddingVertical={knobProps.gap.gap}
23
- marginVertical="$3"
21
+ marginVertical="3"
24
22
  // CSS logical properties keep the border and padding on the logical
25
23
  // start side in RTL (SB-M-1215); tamagui borderStartWidth does not
26
24
  // compile to working CSS in this version. Native uses the RN logical
@@ -30,7 +28,7 @@ export function Blockquote({ children }: BlockquoteProps) {
30
28
  style: {
31
29
  borderInlineStartWidth: railWidth,
32
30
  borderInlineStartStyle: railWidth ? "solid" : "none",
33
- borderInlineStartColor: theme.color8?.val ?? theme.borderColor?.val,
31
+ borderInlineStartColor: theme["color-8"]?.val ?? theme["border-color"]?.val,
34
32
  paddingInlineStart: pad,
35
33
  } as any,
36
34
  }
@@ -34,7 +34,7 @@ export function CodeBlock({ children, lang, theme: themeProp = "auto" }: CodeBlo
34
34
  // Full fragment spread (AGENTS.md knob rule) so the cornerSmoothing
35
35
  // class rides along with the outer radius; the fallback keeps the old
36
36
  // default when a Preset override drops the fragment.
37
- {...(knobProps.borderRadiusNested ?? { borderRadius: "$4" })}
37
+ {...(knobProps.borderRadiusNested ?? { borderRadius: "4" })}
38
38
  backgroundColor={markdownCodeColors.background.base}
39
39
  borderWidth={knobProps.borderRadius.borderWidth}
40
40
  borderColor={edgeColorAt(markdownCodeColors.border.base, knobProps.borderWidthStop)}
@@ -42,7 +42,7 @@ export function CodeBlock({ children, lang, theme: themeProp = "auto" }: CodeBlo
42
42
  // the complete panelPadding role fragment —
43
43
  // components-CodeBlock parity.
44
44
  {...knobProps.panelPadding}
45
- marginVertical="$2"
45
+ marginVertical="2"
46
46
  overflow="hidden"
47
47
  >
48
48
  <ScrollView horizontal showsHorizontalScrollIndicator={false}>
@@ -15,7 +15,7 @@ const headingComponents = {
15
15
  const headingBaseSize = { 1: 9, 2: 8, 3: 7, 4: 6, 5: 5, 6: 4 } as const;
16
16
 
17
17
  /** Size knob shifts the whole heading scale one step, preserving hierarchy. */
18
- const sizeShift: Record<string, number> = { $3: -1, $4: 0, $5: 1 };
18
+ const sizeShift: Record<string, number> = { "3": -1, "4": 0, "5": 1 };
19
19
 
20
20
  export function Heading({ level, children }: HeadingProps) {
21
21
  const Component = headingComponents[level];
@@ -24,11 +24,11 @@ export function Heading({ level, children }: HeadingProps) {
24
24
  // fontFamily override is native-only (same pattern as PageHeader).
25
25
  const { knobProps } = useResolvedKnobs();
26
26
  const headingFamily = isWeb ? null : { fontFamily: knobProps.heading.fontFamily };
27
- const size = `$${headingBaseSize[level] + (sizeShift[knobProps.sizeToken] ?? 0)}`;
27
+ const size = String(headingBaseSize[level] + (sizeShift[knobProps.sizeToken] ?? 0));
28
28
  return (
29
29
  <Component
30
- marginTop="$3"
31
- marginBottom="$2"
30
+ marginTop="3"
31
+ marginBottom="2"
32
32
  size={size as any}
33
33
  {...knobProps.heading}
34
34
  {...headingFamily}
@@ -13,11 +13,11 @@ export function HorizontalRule(_props: HorizontalRuleProps) {
13
13
  <View
14
14
  role="separator"
15
15
  height={1}
16
- backgroundColor="$borderColor"
16
+ backgroundColor="border-color"
17
17
  alignSelf="stretch"
18
18
  flexGrow={0}
19
19
  flexShrink={0}
20
- marginVertical="$4"
20
+ marginVertical="4"
21
21
  />
22
22
  );
23
23
  }
@@ -5,7 +5,7 @@ import type { ImageProps } from "../types";
5
5
  export function MarkdownImage({ src, alt, title }: ImageProps) {
6
6
  const { knobProps } = useResolvedKnobs();
7
7
  return (
8
- <View marginVertical="$2">
8
+ <View marginVertical="2">
9
9
  <TamaguiImage
10
10
  // src (string), not source: the RN source object never reaches the
11
11
  // DOM <img> src on web, so the image silently renders empty; tamagui
@@ -17,10 +17,10 @@ export function InlineCode({ children }: InlineCodeProps) {
17
17
  return (
18
18
  <CodeInline
19
19
  fontSize={knobProps.sizeToken}
20
- lineHeight={knobProps.sizeToken}
21
- paddingHorizontal="$1.5"
22
- paddingVertical="$0.5"
20
+ paddingHorizontal="1-5"
21
+ paddingVertical="0-5"
23
22
  {...knobProps.body}
23
+ lineHeight={knobProps.sizeToken}
24
24
  {...knobProps.borderRadius}
25
25
  >
26
26
  {children}
@@ -34,19 +34,16 @@ export function Link({ href, title, children }: LinkProps) {
34
34
  rel={isExternal ? "noopener noreferrer" : undefined}
35
35
  title={title || undefined}
36
36
  {...knobProps.body}
37
- color={markdownLinkColors.text.base}
37
+ color={{ default: markdownLinkColors.text.base, hover: markdownLinkColors.text.hover }}
38
38
  textDecorationLine="underline"
39
39
  cursor="pointer"
40
40
  onPress={handlePress}
41
- hoverStyle={{ color: markdownLinkColors.text.hover }}
42
- focusVisibleStyle={{
43
- outlineColor: "$outlineColor",
44
- outlineWidth: 2,
45
- outlineStyle: "solid",
46
- // LC-71 §4 halo: inline text link. Offset 0 puts the band across the
47
- // line box, into the ascenders/descenders of the surrounding prose.
48
- outlineOffset: FOCUS_RING_HALO_OFFSET,
49
- }}
41
+ outlineColor={{ "focus-visible": "outline-color" }}
42
+ outlineWidth={{ "focus-visible": 2 }}
43
+ outlineStyle={{ "focus-visible": "solid" }}
44
+ // LC-71 §4 halo: inline text link. Offset 0 puts the band across the
45
+ // line box, into the ascenders/descenders of the surrounding prose.
46
+ outlineOffset={{ "focus-visible": FOCUS_RING_HALO_OFFSET }}
50
47
  >
51
48
  {children}
52
49
  </Text>
@@ -24,8 +24,8 @@ export function MarkdownList({ ordered, start, children }: ListProps) {
24
24
  <View
25
25
  render={ordered ? "ol" : "ul"}
26
26
  start={ordered ? (start ?? undefined) : undefined}
27
+ marginVertical="2"
27
28
  style={listReset}
28
- marginVertical="$2"
29
29
  >
30
30
  {items}
31
31
  </View>
@@ -40,30 +40,30 @@ interface ListItemInternalProps extends ListItemProps {
40
40
 
41
41
  /**
42
42
  * Typography of the prose the task marker sits beside: markdown Paragraph
43
- * renders the $body font at size $true with lineHeight $6 (./Paragraph.tsx).
43
+ * renders the body font at size 4 with lineHeight 6 (./Paragraph.tsx).
44
44
  * The box derives from those same tokens so it scales with the body type
45
45
  * instead of a hardcoded glyph column (theme-propagation-spec: MarkdownListItem
46
46
  * marker "scales with type/size").
47
47
  */
48
48
  function getTaskBoxMetrics() {
49
- const bodyFont = getConfig()?.fontsParsed?.$body;
50
- const fontSize = Math.round(getVariableValue(bodyFont?.size?.$true) || 14);
51
- const lineHeight = Math.round(getVariableValue(bodyFont?.lineHeight?.$6) || fontSize * 2);
49
+ const bodyFont = getConfig()?.fontsParsed?.body;
50
+ const fontSize = Math.round(getVariableValue(bodyFont?.size?.["4"]) || 14);
51
+ const lineHeight = Math.round(getVariableValue(bodyFont?.lineHeight?.["6"]) || fontSize * 2);
52
52
  return { fontSize, boxSize: Math.round(fontSize * 1.15), lineHeight };
53
53
  }
54
54
 
55
55
  /** Box↔label gap at a size token's stop — mirrors the forms Checkbox inline gap. */
56
56
  const taskInlineGapMap: Record<string, string> = {
57
- small: "$1.5",
58
- medium: "$2",
59
- large: "$2.5",
57
+ small: "1-5",
58
+ medium: "2",
59
+ large: "2-5",
60
60
  };
61
61
 
62
62
  /** Cap the radius knob for a small square control (R-CLAMP: never a circle). */
63
63
  function clampTaskBoxRadius(radiusToken: string, pointy: boolean): string | number {
64
- if (pointy || radiusToken === "$0") return 0;
64
+ if (pointy || radiusToken === "0") return 0;
65
65
  const num = Number.parseInt(radiusToken.replace("$", ""), 10);
66
- return Number.isFinite(num) && num > 2 ? "$2" : radiusToken;
66
+ return Number.isFinite(num) && num > 2 ? "2" : radiusToken;
67
67
  }
68
68
 
69
69
  /**
@@ -84,8 +84,8 @@ function TaskCheckbox({ checked }: { checked: boolean }) {
84
84
  width={boxSize}
85
85
  height={boxSize}
86
86
  borderWidth={knobProps.borderRadius.borderWidth}
87
- borderColor="$color7"
88
- backgroundColor={knobProps.outlined ? "transparent" : "$color5"}
87
+ borderColor="color-7"
88
+ backgroundColor={`${knobProps.outlined ? "transparent" : "color-5"}`}
89
89
  borderRadius={clampTaskBoxRadius(
90
90
  knobProps.borderRadius.borderRadius as string,
91
91
  knobProps.pointy,
@@ -120,9 +120,9 @@ export function MarkdownListItem({
120
120
  return (
121
121
  <XStack
122
122
  render="li"
123
- marginBottom="$1"
123
+ marginBottom="1"
124
124
  alignItems="flex-start"
125
- gap={taskInlineGapMap[sizeTokenStop(knobProps.sizeToken)] ?? "$2"}
125
+ gap={taskInlineGapMap[sizeTokenStop(knobProps.sizeToken)] ?? "2"}
126
126
  >
127
127
  <TaskCheckbox checked={checked} />
128
128
  <View flex={1}>{children}</View>
@@ -135,11 +135,11 @@ export function MarkdownListItem({
135
135
  return (
136
136
  <XStack
137
137
  render="li"
138
- marginBottom="$1"
138
+ marginBottom="1"
139
139
  alignItems="flex-start"
140
- gap={taskInlineGapMap[sizeTokenStop(knobProps.sizeToken)] ?? "$2"}
140
+ gap={taskInlineGapMap[sizeTokenStop(knobProps.sizeToken)] ?? "2"}
141
141
  >
142
- <Text width={markerWidth} color="$color11" aria-hidden {...knobProps.body}>
142
+ <Text width={markerWidth} color="color-11" {...knobProps.body} aria-hidden>
143
143
  {bullet}
144
144
  </Text>
145
145
  <View flex={1}>{children}</View>
@@ -8,7 +8,7 @@ export function Paragraph({ children }: ParagraphProps) {
8
8
  // the paired lineHeight, replacing the old fixed $6.
9
9
  const { knobProps } = useResolvedKnobs();
10
10
  return (
11
- <TamaguiParagraph marginBottom="$2" size={knobProps.sizeToken as any} {...knobProps.body}>
11
+ <TamaguiParagraph marginBottom="2" size={knobProps.sizeToken as any} {...knobProps.body}>
12
12
  {children}
13
13
  </TamaguiParagraph>
14
14
  );
@@ -25,7 +25,7 @@ export function MarkdownTable({ children }: TableProps) {
25
25
  const bodyRows = rows.filter((row) => !isHeaderRow(row));
26
26
 
27
27
  return (
28
- <ScrollView horizontal showsHorizontalScrollIndicator={false} marginVertical="$3">
28
+ <ScrollView horizontal showsHorizontalScrollIndicator={false} marginVertical="3">
29
29
  <YStack minWidth="100%">
30
30
  <Table
31
31
  render="table"
@@ -26,10 +26,12 @@ describe("markdown CodeBlock (canonical code family)", () => {
26
26
  );
27
27
  await waitFor(
28
28
  () => {
29
- const colored = Array.from(container.querySelectorAll("span")).some(
30
- (el) => el.style.color !== "",
29
+ const inks = new Set(
30
+ Array.from(container.querySelectorAll("span")).flatMap((el) =>
31
+ el.className.split(" ").filter((name) => name.startsWith("_c-")),
32
+ ),
31
33
  );
32
- expect(colored).toBe(true);
34
+ expect(inks.size).toBeGreaterThan(1);
33
35
  },
34
36
  { timeout: 30000 },
35
37
  );
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import { fireEvent, screen } from "@testing-library/react";
8
- import { renderWithProviders } from "@multiplatform.one/test-utils";
8
+ import { renderWithProviders, withMeasuredLayout } from "@multiplatform.one/test-utils";
9
9
  import { Text } from "tamagui";
10
10
  import { describe, expect, it } from "vitest";
11
11
  import { MDXAside, MDXNote } from "./Aside";
@@ -18,11 +18,13 @@ describe("MDXAside", () => {
18
18
  expect(screen.queryByText("Show more")).toBeNull();
19
19
  });
20
20
 
21
- it("cuts off unmeasured element content and expands on Show more", () => {
22
- renderWithProviders(
23
- <MDXAside>
24
- <Text>long embedded content</Text>
25
- </MDXAside>,
21
+ it("cuts off element content taller than the max and expands on Show more", () => {
22
+ withMeasuredLayout({ width: 390, height: 1000 }, () =>
23
+ renderWithProviders(
24
+ <MDXAside>
25
+ <Text>long embedded content</Text>
26
+ </MDXAside>,
27
+ ),
26
28
  );
27
29
  // Content is still rendered inside the clipped container...
28
30
  expect(screen.getByText("long embedded content")).toBeTruthy();
@@ -33,6 +35,18 @@ describe("MDXAside", () => {
33
35
  expect(screen.queryByText("Show more")).toBeNull();
34
36
  expect(screen.getByText("long embedded content")).toBeTruthy();
35
37
  });
38
+
39
+ it("leaves element content that fits uncut", () => {
40
+ withMeasuredLayout({ width: 390, height: 24 }, () =>
41
+ renderWithProviders(
42
+ <MDXAside>
43
+ <Text>short embedded content</Text>
44
+ </MDXAside>,
45
+ ),
46
+ );
47
+ expect(screen.getByText("short embedded content")).toBeTruthy();
48
+ expect(screen.queryByText("Show more")).toBeNull();
49
+ });
36
50
  });
37
51
 
38
52
  describe("MDXNote", () => {