@apify/ui-library 0.57.3 → 0.59.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 (265) hide show
  1. package/.eslintrc +1 -0
  2. package/CHANGELOG.md +22 -0
  3. package/dist/src/components/action_link.d.ts +1 -1
  4. package/dist/src/components/action_link.d.ts.map +1 -1
  5. package/dist/src/components/{action_link.jsx → action_link.js} +6 -12
  6. package/dist/src/components/action_link.js.map +1 -0
  7. package/dist/src/components/{actor_template_card.jsx → actor_template_card.js} +5 -13
  8. package/dist/src/components/actor_template_card.js.map +1 -0
  9. package/dist/src/components/badge.d.ts +1 -1
  10. package/dist/src/components/badge.d.ts.map +1 -1
  11. package/dist/src/components/{badge.jsx → badge.js} +5 -7
  12. package/dist/src/components/badge.js.map +1 -0
  13. package/dist/src/components/{banner.jsx → banner.js} +3 -5
  14. package/dist/src/components/banner.js.map +1 -0
  15. package/dist/src/components/blog_article.d.ts +1 -1
  16. package/dist/src/components/blog_article.d.ts.map +1 -1
  17. package/dist/src/components/{blog_article.jsx → blog_article.js} +3 -7
  18. package/dist/src/components/blog_article.js.map +1 -0
  19. package/dist/src/components/{box.jsx → box.js} +4 -3
  20. package/dist/src/components/box.js.map +1 -0
  21. package/dist/src/components/button.d.ts +2 -2
  22. package/dist/src/components/button.d.ts.map +1 -1
  23. package/dist/src/components/{button.jsx → button.js} +12 -19
  24. package/dist/src/components/button.js.map +1 -0
  25. package/dist/src/components/chip.d.ts +1 -1
  26. package/dist/src/components/chip.d.ts.map +1 -1
  27. package/dist/src/components/{chip.jsx → chip.js} +9 -8
  28. package/dist/src/components/chip.js.map +1 -0
  29. package/dist/src/components/code/action_button.d.ts +2 -2
  30. package/dist/src/components/code/action_button.d.ts.map +1 -1
  31. package/dist/src/components/code/{action_button.jsx → action_button.js} +4 -8
  32. package/dist/src/components/code/action_button.js.map +1 -0
  33. package/dist/src/components/code/code_block/code_block.d.ts +2 -2
  34. package/dist/src/components/code/code_block/code_block.d.ts.map +1 -1
  35. package/dist/src/components/code/code_block/code_block.js +69 -0
  36. package/dist/src/components/code/code_block/code_block.js.map +1 -0
  37. package/dist/src/components/code/code_block/code_block.styled.d.ts +2 -2
  38. package/dist/src/components/code/code_block/code_block.styled.d.ts.map +1 -1
  39. package/dist/src/components/code/code_block/{code_block.styled.jsx → code_block.styled.js} +2 -2
  40. package/dist/src/components/code/code_block/code_block.styled.js.map +1 -0
  41. package/dist/src/components/code/index.d.ts +3 -3
  42. package/dist/src/components/code/index.d.ts.map +1 -1
  43. package/dist/src/components/code/index.js +3 -3
  44. package/dist/src/components/code/index.js.map +1 -1
  45. package/dist/src/components/code/inline_code/inline_code.d.ts +2 -2
  46. package/dist/src/components/code/inline_code/inline_code.d.ts.map +1 -1
  47. package/dist/src/components/code/inline_code/{inline_code.jsx → inline_code.js} +3 -7
  48. package/dist/src/components/code/inline_code/inline_code.js.map +1 -0
  49. package/dist/src/components/code/one_line_code/one_line_code.d.ts +3 -4
  50. package/dist/src/components/code/one_line_code/one_line_code.d.ts.map +1 -1
  51. package/dist/src/components/code/one_line_code/{one_line_code.jsx → one_line_code.js} +6 -26
  52. package/dist/src/components/code/one_line_code/one_line_code.js.map +1 -0
  53. package/dist/src/components/code/syntax_highlighter.d.ts +3 -4
  54. package/dist/src/components/code/syntax_highlighter.d.ts.map +1 -1
  55. package/dist/src/components/code/{syntax_highlighter.jsx → syntax_highlighter.js} +7 -8
  56. package/dist/src/components/code/syntax_highlighter.js.map +1 -0
  57. package/dist/src/components/{color_wheel_gradient.jsx → color_wheel_gradient.js} +1 -1
  58. package/dist/src/components/color_wheel_gradient.js.map +1 -0
  59. package/dist/src/components/floating/index.d.ts +3 -3
  60. package/dist/src/components/floating/index.d.ts.map +1 -1
  61. package/dist/src/components/floating/index.js +3 -3
  62. package/dist/src/components/floating/index.js.map +1 -1
  63. package/dist/src/components/floating/menu.d.ts +2 -2
  64. package/dist/src/components/floating/menu.d.ts.map +1 -1
  65. package/dist/src/components/floating/{menu.jsx → menu.js} +22 -34
  66. package/dist/src/components/floating/menu.js.map +1 -0
  67. package/dist/src/components/floating/{menu_common.jsx → menu_common.js} +1 -1
  68. package/dist/src/components/floating/menu_common.js.map +1 -0
  69. package/dist/src/components/floating/menu_components.d.ts +4 -5
  70. package/dist/src/components/floating/menu_components.d.ts.map +1 -1
  71. package/dist/src/components/floating/{menu_components.jsx → menu_components.js} +5 -7
  72. package/dist/src/components/floating/menu_components.js.map +1 -0
  73. package/dist/src/components/image.d.ts +2 -3
  74. package/dist/src/components/image.d.ts.map +1 -1
  75. package/dist/src/components/image.js +9 -0
  76. package/dist/src/components/image.js.map +1 -0
  77. package/dist/src/components/index.d.ts +14 -14
  78. package/dist/src/components/index.d.ts.map +1 -1
  79. package/dist/src/components/index.js +14 -14
  80. package/dist/src/components/index.js.map +1 -1
  81. package/dist/src/components/link.d.ts +1 -1
  82. package/dist/src/components/link.d.ts.map +1 -1
  83. package/dist/src/components/{link.jsx → link.js} +9 -9
  84. package/dist/src/components/link.js.map +1 -0
  85. package/dist/src/components/message.d.ts +5 -5
  86. package/dist/src/components/message.d.ts.map +1 -1
  87. package/dist/src/components/{message.jsx → message.js} +9 -19
  88. package/dist/src/components/message.js.map +1 -0
  89. package/dist/src/components/rating.d.ts +1 -1
  90. package/dist/src/components/rating.d.ts.map +1 -1
  91. package/dist/src/components/{rating.jsx → rating.js} +10 -16
  92. package/dist/src/components/rating.js.map +1 -0
  93. package/dist/src/components/readme_renderer/index.d.ts +2 -2
  94. package/dist/src/components/readme_renderer/index.d.ts.map +1 -1
  95. package/dist/src/components/readme_renderer/index.js +2 -2
  96. package/dist/src/components/readme_renderer/index.js.map +1 -1
  97. package/dist/src/components/readme_renderer/table_of_contents.d.ts +1 -1
  98. package/dist/src/components/readme_renderer/{table_of_contents.jsx → table_of_contents.js} +44 -49
  99. package/dist/src/components/readme_renderer/{table_of_contents.jsx.map → table_of_contents.js.map} +1 -1
  100. package/dist/src/components/readme_renderer/{utils.jsx → utils.js} +1 -1
  101. package/dist/src/components/readme_renderer/utils.js.map +1 -0
  102. package/dist/src/components/simple_markdown/index.d.ts +2 -2
  103. package/dist/src/components/simple_markdown/index.d.ts.map +1 -1
  104. package/dist/src/components/simple_markdown/index.js +2 -2
  105. package/dist/src/components/simple_markdown/index.js.map +1 -1
  106. package/dist/src/components/simple_markdown/simple_markdown.d.ts +1 -1
  107. package/dist/src/components/simple_markdown/simple_markdown.d.ts.map +1 -1
  108. package/dist/src/components/simple_markdown/simple_markdown.js +161 -0
  109. package/dist/src/components/simple_markdown/simple_markdown.js.map +1 -0
  110. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts +4 -4
  111. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
  112. package/dist/src/components/simple_markdown/{simple_markdown_components.jsx → simple_markdown_components.js} +13 -26
  113. package/dist/src/components/simple_markdown/simple_markdown_components.js.map +1 -0
  114. package/dist/src/components/tag.d.ts +3 -3
  115. package/dist/src/components/tag.d.ts.map +1 -1
  116. package/dist/src/components/{tag.jsx → tag.js} +6 -9
  117. package/dist/src/components/tag.js.map +1 -0
  118. package/dist/src/components/text/heading_content.d.ts +1 -1
  119. package/dist/src/components/text/heading_content.d.ts.map +1 -1
  120. package/dist/src/components/text/{heading_content.jsx → heading_content.js} +4 -4
  121. package/dist/src/components/text/heading_content.js.map +1 -0
  122. package/dist/src/components/text/heading_marketing.d.ts +1 -1
  123. package/dist/src/components/text/heading_marketing.d.ts.map +1 -1
  124. package/dist/src/components/text/{heading_marketing.jsx → heading_marketing.js} +4 -4
  125. package/dist/src/components/text/heading_marketing.js.map +1 -0
  126. package/dist/src/components/text/heading_shared.d.ts +1 -1
  127. package/dist/src/components/text/heading_shared.d.ts.map +1 -1
  128. package/dist/src/components/text/{heading_shared.jsx → heading_shared.js} +4 -4
  129. package/dist/src/components/text/heading_shared.js.map +1 -0
  130. package/dist/src/components/text/index.d.ts +8 -8
  131. package/dist/src/components/text/index.d.ts.map +1 -1
  132. package/dist/src/components/text/index.js +7 -7
  133. package/dist/src/components/text/index.js.map +1 -1
  134. package/dist/src/components/text/text_base.d.ts +1 -1
  135. package/dist/src/components/text/text_base.d.ts.map +1 -1
  136. package/dist/src/components/text/{text_base.jsx → text_base.js} +4 -4
  137. package/dist/src/components/text/text_base.js.map +1 -0
  138. package/dist/src/components/text/text_content.d.ts +2 -3
  139. package/dist/src/components/text/text_content.d.ts.map +1 -1
  140. package/dist/src/components/text/{text_content.jsx → text_content.js} +10 -9
  141. package/dist/src/components/text/text_content.js.map +1 -0
  142. package/dist/src/components/text/text_marketing.d.ts +2 -3
  143. package/dist/src/components/text/text_marketing.d.ts.map +1 -1
  144. package/dist/src/components/text/{text_marketing.jsx → text_marketing.js} +10 -9
  145. package/dist/src/components/text/text_marketing.js.map +1 -0
  146. package/dist/src/components/text/text_shared.d.ts +2 -3
  147. package/dist/src/components/text/text_shared.d.ts.map +1 -1
  148. package/dist/src/components/text/{text_shared.jsx → text_shared.js} +10 -9
  149. package/dist/src/components/text/text_shared.js.map +1 -0
  150. package/dist/src/components/tile/{horizontal_tile.jsx → horizontal_tile.js} +3 -7
  151. package/dist/src/components/tile/horizontal_tile.js.map +1 -0
  152. package/dist/src/components/tile/index.d.ts +2 -2
  153. package/dist/src/components/tile/index.d.ts.map +1 -1
  154. package/dist/src/components/tile/index.js +2 -2
  155. package/dist/src/components/tile/index.js.map +1 -1
  156. package/dist/src/components/tile/{vertical_tile.jsx → vertical_tile.js} +3 -5
  157. package/dist/src/components/tile/vertical_tile.js.map +1 -0
  158. package/dist/src/components/to_consolidate/card.d.ts +1 -1
  159. package/dist/src/components/to_consolidate/card.d.ts.map +1 -1
  160. package/dist/src/components/to_consolidate/{card.jsx → card.js} +5 -13
  161. package/dist/src/components/to_consolidate/card.js.map +1 -0
  162. package/dist/src/components/to_consolidate/index.d.ts +4 -4
  163. package/dist/src/components/to_consolidate/index.d.ts.map +1 -1
  164. package/dist/src/components/to_consolidate/index.js +4 -4
  165. package/dist/src/components/to_consolidate/index.js.map +1 -1
  166. package/dist/src/components/to_consolidate/markdown.d.ts +1 -1
  167. package/dist/src/components/to_consolidate/markdown.d.ts.map +1 -1
  168. package/dist/src/components/to_consolidate/{markdown.jsx → markdown.js} +21 -33
  169. package/dist/src/components/to_consolidate/markdown.js.map +1 -0
  170. package/dist/src/components/to_consolidate/{pagination.jsx → pagination.js} +14 -27
  171. package/dist/src/components/to_consolidate/pagination.js.map +1 -0
  172. package/dist/src/components/to_consolidate/{tab_number_chip.jsx → tab_number_chip.js} +3 -5
  173. package/dist/src/components/to_consolidate/tab_number_chip.js.map +1 -0
  174. package/dist/src/index.d.ts +1 -1
  175. package/dist/src/index.d.ts.map +1 -1
  176. package/dist/src/index.js +1 -1
  177. package/dist/src/index.js.map +1 -1
  178. package/dist/src/{ui_dependency_provider.jsx → ui_dependency_provider.js} +4 -5
  179. package/dist/src/ui_dependency_provider.js.map +1 -0
  180. package/dist/tsconfig.build.tsbuildinfo +1 -1
  181. package/package.json +5 -3
  182. package/src/components/action_link.tsx +2 -2
  183. package/src/components/actor_template_card.tsx +1 -1
  184. package/src/components/badge.tsx +1 -1
  185. package/src/components/button.tsx +3 -3
  186. package/src/components/chip.tsx +1 -1
  187. package/src/components/code/code_block/code_block.styled.tsx +2 -2
  188. package/src/components/code/code_block/code_block.tsx +6 -6
  189. package/src/components/code/index.ts +3 -3
  190. package/src/components/code/inline_code/inline_code.tsx +2 -2
  191. package/src/components/code/one_line_code/one_line_code.tsx +6 -6
  192. package/src/components/code/syntax_highlighter.tsx +4 -4
  193. package/src/components/floating/index.ts +3 -3
  194. package/src/components/floating/menu.tsx +3 -3
  195. package/src/components/floating/menu_components.tsx +2 -2
  196. package/src/components/image.tsx +3 -3
  197. package/src/components/index.ts +14 -14
  198. package/src/components/link.tsx +2 -2
  199. package/src/components/message.tsx +2 -2
  200. package/src/components/rating.tsx +3 -3
  201. package/src/components/readme_renderer/index.ts +2 -2
  202. package/src/components/readme_renderer/table_of_contents.tsx +2 -2
  203. package/src/components/simple_markdown/index.ts +2 -2
  204. package/src/components/simple_markdown/simple_markdown.tsx +45 -12
  205. package/src/components/simple_markdown/simple_markdown_components.tsx +6 -6
  206. package/src/components/tag.tsx +2 -2
  207. package/src/components/text/heading_content.tsx +2 -2
  208. package/src/components/text/heading_marketing.tsx +2 -2
  209. package/src/components/text/heading_shared.tsx +2 -2
  210. package/src/components/text/index.ts +8 -8
  211. package/src/components/text/text_base.tsx +2 -2
  212. package/src/components/text/text_content.tsx +3 -3
  213. package/src/components/text/text_marketing.tsx +3 -3
  214. package/src/components/text/text_shared.tsx +3 -3
  215. package/src/components/tile/index.ts +2 -2
  216. package/src/components/to_consolidate/card.tsx +2 -2
  217. package/src/components/to_consolidate/index.ts +4 -4
  218. package/src/components/to_consolidate/markdown.tsx +1 -1
  219. package/src/components/to_consolidate/pagination.tsx +3 -3
  220. package/src/index.ts +1 -1
  221. package/tsconfig.build.json +1 -1
  222. package/tsconfig.json +1 -1
  223. package/dist/src/components/action_link.jsx.map +0 -1
  224. package/dist/src/components/actor_template_card.jsx.map +0 -1
  225. package/dist/src/components/badge.jsx.map +0 -1
  226. package/dist/src/components/banner.jsx.map +0 -1
  227. package/dist/src/components/blog_article.jsx.map +0 -1
  228. package/dist/src/components/box.jsx.map +0 -1
  229. package/dist/src/components/button.jsx.map +0 -1
  230. package/dist/src/components/chip.jsx.map +0 -1
  231. package/dist/src/components/code/action_button.jsx.map +0 -1
  232. package/dist/src/components/code/code_block/code_block.jsx +0 -99
  233. package/dist/src/components/code/code_block/code_block.jsx.map +0 -1
  234. package/dist/src/components/code/code_block/code_block.styled.jsx.map +0 -1
  235. package/dist/src/components/code/inline_code/inline_code.jsx.map +0 -1
  236. package/dist/src/components/code/one_line_code/one_line_code.jsx.map +0 -1
  237. package/dist/src/components/code/syntax_highlighter.jsx.map +0 -1
  238. package/dist/src/components/color_wheel_gradient.jsx.map +0 -1
  239. package/dist/src/components/floating/menu.jsx.map +0 -1
  240. package/dist/src/components/floating/menu_common.jsx.map +0 -1
  241. package/dist/src/components/floating/menu_components.jsx.map +0 -1
  242. package/dist/src/components/image.jsx +0 -8
  243. package/dist/src/components/image.jsx.map +0 -1
  244. package/dist/src/components/link.jsx.map +0 -1
  245. package/dist/src/components/message.jsx.map +0 -1
  246. package/dist/src/components/rating.jsx.map +0 -1
  247. package/dist/src/components/readme_renderer/utils.jsx.map +0 -1
  248. package/dist/src/components/simple_markdown/simple_markdown.jsx +0 -137
  249. package/dist/src/components/simple_markdown/simple_markdown.jsx.map +0 -1
  250. package/dist/src/components/simple_markdown/simple_markdown_components.jsx.map +0 -1
  251. package/dist/src/components/tag.jsx.map +0 -1
  252. package/dist/src/components/text/heading_content.jsx.map +0 -1
  253. package/dist/src/components/text/heading_marketing.jsx.map +0 -1
  254. package/dist/src/components/text/heading_shared.jsx.map +0 -1
  255. package/dist/src/components/text/text_base.jsx.map +0 -1
  256. package/dist/src/components/text/text_content.jsx.map +0 -1
  257. package/dist/src/components/text/text_marketing.jsx.map +0 -1
  258. package/dist/src/components/text/text_shared.jsx.map +0 -1
  259. package/dist/src/components/tile/horizontal_tile.jsx.map +0 -1
  260. package/dist/src/components/tile/vertical_tile.jsx.map +0 -1
  261. package/dist/src/components/to_consolidate/card.jsx.map +0 -1
  262. package/dist/src/components/to_consolidate/markdown.jsx.map +0 -1
  263. package/dist/src/components/to_consolidate/pagination.jsx.map +0 -1
  264. package/dist/src/components/to_consolidate/tab_number_chip.jsx.map +0 -1
  265. package/dist/src/ui_dependency_provider.jsx.map +0 -1
@@ -0,0 +1,161 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useCallback, useMemo, useRef } from 'react';
3
+ import ReactMarkdown, { uriTransformer } from 'react-markdown';
4
+ import rehypeRaw from 'rehype-raw';
5
+ import rehypeSanitize from 'rehype-sanitize';
6
+ import remarkGfm from 'remark-gfm';
7
+ import styled from 'styled-components';
8
+ import { visit } from 'unist-util-visit';
9
+ import { theme } from '../../design_system/theme.js';
10
+ import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
11
+ import { Box } from '../box.js';
12
+ import { isUrlExternal } from '../link.js';
13
+ import { cleanMarkdown } from '../readme_renderer/utils.js';
14
+ import { HeadingContent } from '../text/heading_content.js';
15
+ import { Heading, Text } from '../text/index.js';
16
+ import { TextContent } from '../text/text_content.js';
17
+ import { MarkdownBlockQuote, MarkdownCode, MarkdownLink, MarkdownTable, } from './simple_markdown_components.js';
18
+ const StyledMarkdown = styled(ReactMarkdown) `
19
+ scroll-margin-top: 10px;
20
+
21
+ @font-face {
22
+ font-family: "ellipsis-font";
23
+ src: local("Courier");
24
+ unicode-range: U+2026;
25
+ size-adjust: 0%;
26
+ }
27
+
28
+ img {
29
+ max-width: 100%;
30
+ }
31
+
32
+ hr {
33
+ color: ${theme.color.neutral.border};
34
+ }
35
+ `;
36
+ // Function to recursively process unsupported elements
37
+ const unwrapUnsupportedElement = (node) => {
38
+ return node.children.flatMap((child) => {
39
+ if (child.type === 'text') {
40
+ return child; // Keep text as is
41
+ }
42
+ if (child.type === 'element') {
43
+ if (defaultAllowedElements.includes(child.tagName)) {
44
+ return child; // Keep supported elements
45
+ }
46
+ return unwrapUnsupportedElement(child);
47
+ }
48
+ return []; // Ignore other node types
49
+ });
50
+ };
51
+ const getUnsupportedRehypeTagsSanitationPlugIn = (allowedElements) => () => (tree) => {
52
+ visit(tree, 'element', (node, index, parent) => {
53
+ if (!allowedElements.includes(node.tagName) && parent && typeof index === 'number') {
54
+ // Replace unsupported element with its valid children
55
+ parent.children.splice(index, 1, ...unwrapUnsupportedElement(node));
56
+ }
57
+ });
58
+ };
59
+ export const defaultAllowedElements = [
60
+ 'a',
61
+ 'b',
62
+ 'blockquote',
63
+ 'br',
64
+ 'center',
65
+ 'code',
66
+ 'del',
67
+ 'em',
68
+ 'h1',
69
+ 'h2',
70
+ 'h3',
71
+ 'h4',
72
+ 'h5',
73
+ 'hr',
74
+ 'i',
75
+ 'img',
76
+ 'li',
77
+ 'ol',
78
+ 'p',
79
+ 'pre',
80
+ 'span',
81
+ 'strong',
82
+ 'table',
83
+ 'tbody',
84
+ 'td',
85
+ 'tfoot',
86
+ 'th',
87
+ 'thead',
88
+ 'tr',
89
+ 'u',
90
+ 'ul',
91
+ ];
92
+ export const defaultRehypePlugins = [rehypeRaw];
93
+ export const defaultRemarkPlugins = [remarkGfm];
94
+ // TODO: Add Image component
95
+ const regularMarkdownSizeComponents = {
96
+ h1: ({ children }) => _jsx(HeadingContent, { mt: 'space32', mb: 'space16', type: 'heading1', children: children }),
97
+ h2: ({ children }) => _jsx(HeadingContent, { mt: 'space32', mb: 'space16', type: 'heading2', children: children }),
98
+ h3: ({ children }) => _jsx(HeadingContent, { mt: 'space32', mb: 'space16', type: 'heading3', children: children }),
99
+ h4: ({ children }) => _jsx(HeadingContent, { mt: 'space32', mb: 'space16', type: 'heading4', children: children }),
100
+ h5: ({ children }) => _jsx(HeadingContent, { mt: 'space32', mb: 'space16', type: 'heading5', children: children }),
101
+ h6: ({ children }) => _jsx(HeadingContent, { mt: 'space32', mb: 'space16', type: 'heading6', children: children }),
102
+ p: ({ children }) => (_jsx(TextContent, { my: 'space16', children: children })),
103
+ strong: ({ children }) => _jsx(TextContent, { as: 'strong', weight: 'bold', children: children }),
104
+ b: ({ children }) => _jsx(TextContent, { as: 'b', weight: 'bold', children: children }),
105
+ th: ({ children }) => _jsx(TextContent, { as: 'th', weight: 'bold', children: children }),
106
+ blockquote: ({ children }) => _jsx(MarkdownBlockQuote, { children: children }),
107
+ table: ({ children }) => _jsx(MarkdownTable, { children: children }),
108
+ ul: ({ children }) => _jsx(Box, { as: 'ul', pl: 'space32', children: children }),
109
+ ol: ({ children, start }) => _jsx(Box, { as: 'ol', pl: 'space32', start: start, children: children }),
110
+ li: ({ children }) => _jsx(Box, { as: 'li', mt: 'space4', children: children }),
111
+ a: ({ children, href }) => _jsx(MarkdownLink, { to: href, children: children }),
112
+ code: ({ children, inline }) => _jsx(MarkdownCode, { inline: inline, size: 'regular', children: children }),
113
+ };
114
+ const smallMarkdownSizeComponents = {
115
+ h1: ({ children }) => _jsx(Heading, { mt: 'space32', mb: 'space16', type: 'title2xl', children: children }),
116
+ h2: ({ children }) => _jsx(Heading, { mt: 'space32', mb: 'space16', type: 'titleXl', children: children }),
117
+ h3: ({ children }) => _jsx(Heading, { mt: 'space32', mb: 'space16', type: 'titleL', children: children }),
118
+ h4: ({ children }) => _jsx(Heading, { mt: 'space32', mb: 'space16', type: 'titleM', children: children }),
119
+ h5: ({ children }) => _jsx(Heading, { mt: 'space32', mb: 'space16', type: 'titleS', children: children }),
120
+ h6: ({ children }) => _jsx(Heading, { mt: 'space32', mb: 'space16', type: 'titleXs', children: children }),
121
+ p: ({ children }) => (_jsx(Text, { my: 'space16', children: children })),
122
+ strong: ({ children }) => _jsx(Text, { as: 'strong', weight: 'bold', children: children }),
123
+ b: ({ children }) => _jsx(Text, { as: 'b', weight: 'bold', children: children }),
124
+ th: ({ children }) => _jsx(Text, { as: 'th', weight: 'bold', children: children }),
125
+ blockquote: ({ children }) => _jsx(MarkdownBlockQuote, { children: children }),
126
+ table: ({ children }) => _jsx(MarkdownTable, { children: children }),
127
+ ul: ({ children }) => _jsx(Box, { as: 'ul', pl: 'space32', children: children }),
128
+ ol: ({ children, start }) => _jsx(Box, { as: 'ol', pl: 'space32', start: start, children: children }),
129
+ li: ({ children }) => _jsx(Box, { as: 'li', mt: 'space4', children: children }),
130
+ a: ({ children, href }) => _jsx(MarkdownLink, { to: href, children: children }),
131
+ code: ({ children, inline }) => _jsx(MarkdownCode, { inline: inline, size: 'small', children: children }),
132
+ };
133
+ const useDefaultUrlTransform = () => {
134
+ const { windowLocationHost } = useSharedUiDependencies();
135
+ return useCallback((url) => {
136
+ if (!isUrlExternal(url, windowLocationHost)) {
137
+ // We want to make sure internal links will be relative links without https://host at the beginning because Link doesn't work with these
138
+ return url.replace(/^(https?:\/\/)?(www\.)?[^/]+/, '') || '/';
139
+ }
140
+ return url;
141
+ }, [windowLocationHost]);
142
+ };
143
+ export const SimpleMarkdown = ({ size = 'regular', // small is default for console
144
+ children: markdown, components, rehypePlugins, remarkPlugins, transformLinkUri, allowedElements, ...rest }) => {
145
+ const cleanedMarkdown = useMemo(() => cleanMarkdown(markdown), [markdown]);
146
+ const effectiveAllowedElements = useRef(allowedElements || defaultAllowedElements);
147
+ const effectiveComponents = useRef({
148
+ ...(size === 'regular' ? regularMarkdownSizeComponents : smallMarkdownSizeComponents),
149
+ ...components,
150
+ });
151
+ const rehypePluginsRef = useRef([
152
+ ...(rehypePlugins || [...defaultRehypePlugins, getUnsupportedRehypeTagsSanitationPlugIn(effectiveAllowedElements.current)]),
153
+ rehypeSanitize, // lets always sanitize the output
154
+ ]);
155
+ const defaultUrlTransform = useDefaultUrlTransform();
156
+ return (_jsx(StyledMarkdown, { components: effectiveComponents.current, rehypePlugins: rehypePluginsRef.current, remarkPlugins: remarkPlugins || defaultRemarkPlugins, allowedElements: effectiveAllowedElements.current, transformLinkUri: (href, children, title) => {
157
+ const transformed = transformLinkUri ? transformLinkUri(href, children, title) : defaultUrlTransform(href);
158
+ return uriTransformer(transformed);
159
+ }, ...rest, children: cleanedMarkdown }));
160
+ };
161
+ //# sourceMappingURL=simple_markdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple_markdown.js","sourceRoot":"","sources":["../../../../src/components/simple_markdown/simple_markdown.tsx"],"names":[],"mappings":";AACA,OAAc,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,aAAa,EAAE,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CA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BAAgB,CAAC,OAAO,EACvC,aAAa,EAAE,aAAa,IAAI,oBAAoB,EACpD,eAAe,EAAE,wBAAwB,CAAC,OAAO,EACjD,gBAAgB,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;YACxC,MAAM,WAAW,GAAG,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;YAC3G,OAAO,cAAc,CAAC,WAAW,CAAC,CAAC;QACvC,CAAC,KACG,IAAI,YAEP,eAAe,GACH,CACpB,CAAC;AACN,CAAC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import type { CodeProps, ReactMarkdownProps } from 'react-markdown/lib/ast-to-react';
3
3
  import type { WithOptional } from '../../type_utils.js';
4
- import type { LinkProps } from '../link.jsx';
5
- import type { HeadingSharedProps } from '../text/heading_shared.jsx';
6
- import type { SharedTextProps, SharedTextSize } from '../text/text_shared.jsx';
4
+ import type { LinkProps } from '../link.js';
5
+ import type { HeadingSharedProps } from '../text/heading_shared.js';
6
+ import type { SharedTextProps, SharedTextSize } from '../text/text_shared.js';
7
7
  export declare const MarkdownPlainHeading: React.FC<HeadingSharedProps>;
8
8
  /**
9
9
  * Default markdown heading that renders copy icon next to it.
@@ -16,7 +16,7 @@ export declare const MarkdownCode: React.FC<MarkdownCodeProps & {
16
16
  size: SharedTextSize;
17
17
  }>;
18
18
  export declare const MarkdownLink: React.FC<WithOptional<LinkProps, 'to'>>;
19
- export declare const MarkdownBlockQuote: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("../box.jsx").BoxProps & React.RefAttributes<HTMLElement>>, any, {
19
+ export declare const MarkdownBlockQuote: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("../box.js").BoxProps & React.RefAttributes<HTMLElement>>, any, {
20
20
  my: "space16";
21
21
  py: "none";
22
22
  forwardedAs: string;
@@ -1 +1 @@
1
- {"version":3,"file":"simple_markdown_components.d.ts","sourceRoot":"","sources":["../../../../src/components/simple_markdown/simple_markdown_components.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAMrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAM/E,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAgB7D,CAAC;AAuBF;;;GAGG;AAEH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA2C/D,CAAC;AAGF,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAYjG,CAAC;AAeF,KAAK,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAC,CAAA;AAE7E,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAwC/E,CAAC;AAoEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,CAWhE,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;+BAa9B,CAAC;AAEF,eAAO,MAAM,aAAa,sEAgBzB,CAAC"}
1
+ {"version":3,"file":"simple_markdown_components.d.ts","sourceRoot":"","sources":["../../../../src/components/simple_markdown/simple_markdown_components.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAMrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAM9E,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAgB7D,CAAC;AAuBF;;;GAGG;AAEH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA2C/D,CAAC;AAGF,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAYjG,CAAC;AAeF,KAAK,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAC,CAAA;AAE7E,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAwC/E,CAAC;AAoEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,CAWhE,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;+BAa9B,CAAC;AAEF,eAAO,MAAM,aAAa,sEAgBzB,CAAC"}
@@ -1,22 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import qs from 'query-string';
2
- import React from 'react';
3
3
  import styled from 'styled-components';
4
4
  import { CheckIcon, LinkIcon } from '@apify/ui-icons';
5
5
  import { theme } from '../../design_system/theme.js';
6
6
  import { useCopyToClipboard } from '../../utils/index.js';
7
- import { Box } from '../box.jsx';
7
+ import { Box } from '../box.js';
8
8
  import { CodeBlock, InlineCode, OneLineCode } from '../code/index.js';
9
- import { Link } from '../link.jsx';
10
- import { slugifyHeadingChildren } from '../readme_renderer/utils.jsx';
9
+ import { Link } from '../link.js';
10
+ import { slugifyHeadingChildren } from '../readme_renderer/utils.js';
11
11
  import { Heading } from '../text/index.js';
12
12
  const simpleMarkdownClassNames = {
13
13
  HEADING_ICON_LINK: 'headingIconLink',
14
14
  };
15
15
  export const MarkdownPlainHeading = ({ children, ...rest }) => {
16
16
  const id = slugifyHeadingChildren(children);
17
- return (<Heading mt='space32' mb='space16' id={id} {...rest}>
18
- {children}
19
- </Heading>);
17
+ return (_jsx(Heading, { mt: 'space32', mb: 'space16', id: id, ...rest, children: children }));
20
18
  };
21
19
  const StyledMarkdownHeading = styled(Box) `
22
20
  display: flex;
@@ -54,12 +52,7 @@ export const MarkdownHeadingWrapper = ({ children, ...rest }) => {
54
52
  return url.toString();
55
53
  },
56
54
  });
57
- return (<StyledMarkdownHeading mt='space32' mb='space16' id={id} {...rest}>
58
- {children}
59
- <Link className={simpleMarkdownClassNames.HEADING_ICON_LINK} onClick={handleClick} to={`#${id}`}>
60
- {isCopied ? (<CheckIcon size="16" color={theme.color.success.action}/>) : (<LinkIcon size="16" color={theme.color.primary.text}/>)}
61
- </Link>
62
- </StyledMarkdownHeading>);
55
+ return (_jsxs(StyledMarkdownHeading, { mt: 'space32', mb: 'space16', id: id, ...rest, children: [children, _jsx(Link, { className: simpleMarkdownClassNames.HEADING_ICON_LINK, onClick: handleClick, to: `#${id}`, children: isCopied ? (_jsx(CheckIcon, { size: "16", color: theme.color.success.action })) : (_jsx(LinkIcon, { size: "16", color: theme.color.primary.text })) })] }));
63
56
  };
64
57
  // TODO: This should be used for readmes
65
58
  export const MarkdownParagraphContent = ({ children, node, }) => {
@@ -67,7 +60,7 @@ export const MarkdownParagraphContent = ({ children, node, }) => {
67
60
  const isText = child?.type === 'text';
68
61
  const videoSrc = isText && getVideoSrc(child.value);
69
62
  if (videoSrc)
70
- return <MarkdownVideo src={videoSrc}/>;
63
+ return _jsx(MarkdownVideo, { src: videoSrc });
71
64
  // the || null part is important because non-supported elements will fall back to this paragraph component;
72
65
  return children || null;
73
66
  };
@@ -85,19 +78,17 @@ const StyledInlineCode = styled(InlineCode) `
85
78
  `;
86
79
  export const MarkdownCode = ({ inline, className, children, size, }) => {
87
80
  if (inline) {
88
- return <StyledInlineCode size={size} className={className}>{children}</StyledInlineCode>;
81
+ return _jsx(StyledInlineCode, { size: size, className: className, children: children });
89
82
  }
90
83
  const code = String(children).replace(/\n$/, '').trim();
91
84
  const match = /language-(\w+)/.exec(className || '');
92
85
  const language = match?.[1]?.toLowerCase();
93
86
  const isOneLineCode = code.split('\n').length <= 1;
94
87
  if (isOneLineCode) {
95
- return (<OneLineCode language={language} size={size} fullWidth>
96
- {code}
97
- </OneLineCode>);
88
+ return (_jsx(OneLineCode, { language: language, size: size, fullWidth: true, children: code }));
98
89
  }
99
90
  if (!inline) {
100
- return (<CodeBlock content={code} language={language} size={size} hideLineNumbers fullWidth hideBashHeader hideBashPromptPrefixes/>);
91
+ return (_jsx(CodeBlock, { content: code, language: language, size: size, hideLineNumbers: true, fullWidth: true, hideBashHeader: true, hideBashPromptPrefixes: true }));
101
92
  }
102
93
  };
103
94
  const youtubeRegex = /^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtube(?:-nocookie)?\.com|youtu\.be)\/(?:watch\?v=|embed\/|v\/)?([a-zA-Z0-9\-_]+)(?:\S*)?$/;
@@ -137,11 +128,7 @@ const StyledVideo = styled.div `
137
128
  }
138
129
  `;
139
130
  const MarkdownVideo = ({ src }) => {
140
- return (<StyledVideo>
141
- <div>
142
- <iframe loading="lazy" allowFullScreen src={src}/>
143
- </div>
144
- </StyledVideo>);
131
+ return (_jsx(StyledVideo, { children: _jsx("div", { children: _jsx("iframe", { loading: "lazy", allowFullScreen: true, src: src }) }) }));
145
132
  };
146
133
  const StyledMarkdownLink = styled(Link) `
147
134
  overflow-wrap: break-word;
@@ -156,7 +143,7 @@ const StyledMarkdownLink = styled(Link) `
156
143
  }
157
144
  `;
158
145
  export const MarkdownLink = ({ to, children, rel, className, }) => {
159
- return (to && typeof to === 'string') ? (<StyledMarkdownLink to={to} hideExternalIcon={true} rel={rel} className={className}>{children}</StyledMarkdownLink>) : ((<span>{children}</span>) // Invalid links can be rendered as a regular span instead
146
+ return (to && typeof to === 'string') ? (_jsx(StyledMarkdownLink, { to: to, hideExternalIcon: true, rel: rel, className: className, children: children })) : ((_jsx("span", { children: children })) // Invalid links can be rendered as a regular span instead
160
147
  );
161
148
  };
162
149
  export const MarkdownBlockQuote = styled(Box).attrs({
@@ -190,4 +177,4 @@ export const MarkdownTable = styled.table `
190
177
  }
191
178
  }
192
179
  `;
193
- //# sourceMappingURL=simple_markdown_components.jsx.map
180
+ //# sourceMappingURL=simple_markdown_components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple_markdown_components.js","sourceRoot":"","sources":["../../../../src/components/simple_markdown/simple_markdown_components.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,cAAc,CAAC;AAG9B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEtE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6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AAK,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe;oBAC5C,KAAK,CAAC,KAAK,CAAC,OAAO;;aAE1B,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS;;;;;CAKzC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAA;;;;;;4BAMb,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM;mBACnC,KAAK,CAAC,KAAK,CAAC,OAAO;;;;;;;;;CASrC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React, { type ForwardedRef } from 'react';
2
2
  import type { IconComponent } from '@apify/ui-icons';
3
- import { type MarginSpacingProps, type RegularBoxProps } from './box.jsx';
4
- import { type RegularLinkProps } from './link.jsx';
3
+ import { type MarginSpacingProps, type RegularBoxProps } from './box.js';
4
+ import { type RegularLinkProps } from './link.js';
5
5
  type TagSize = typeof TAG_SIZES[number];
6
6
  export declare const TAG_SIZES: readonly ["large", "medium", "small"];
7
7
  type TagVariant = typeof TAG_VARIANTS[number];
@@ -27,7 +27,7 @@ export type TagProps<T extends TagNodeType> = RegularBoxProps & MarginSpacingPro
27
27
  /**
28
28
  * Component for displaying inherenly interactive chip descendant
29
29
  */
30
- declare function TagWrapper<T extends TagNodeType>({ as, size, variant, LeadingIcon, TrailingIcon, children, ...props }: TagProps<T>, ref: ForwardedRef<TagNodePropsMap[T]['element']>): React.JSX.Element;
30
+ declare function TagWrapper<T extends TagNodeType>({ as, size, variant, LeadingIcon, TrailingIcon, children, ...props }: TagProps<T>, ref: ForwardedRef<TagNodePropsMap[T]['element']>): import("react/jsx-runtime").JSX.Element;
31
31
  declare namespace TagWrapper {
32
32
  var displayName: string;
33
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/components/tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,YAAY,EAAc,MAAM,OAAO,CAAC;AAG7D,OAAO,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C,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;KACxD,CAAC;CACL,CAAA;AAED,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,WAAW,IAAI,eAAe,GAAG,kBAAkB,GAAG,CAAC;IAClF,EAAE,CAAC,EAAE,CAAC,CAAC;IACP,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,YAAY,CAAC,EAAE,aAAa,CAAC;CAChC,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAE/C;;GAEG;AACH,iBAAS,UAAU,CAAC,CAAC,SAAS,WAAW,EAAE,EACvC,EAAE,EACF,IAAc,EACd,OAAmB,EACnB,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,GAAG,KAAK,EACX,EAAE,QAAQ,CAAC,CAAC,CAAC,EACd,GAAG,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,2CAiB/C;kBA1BQ,UAAU;;;AA8BnB,eAAO,MAAM,GAAG,EAA6B,CAAC,CAAC,SAAS,WAAW,EAC/D,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;CAAE,KACzE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -1,8 +1,9 @@
1
- import React, { forwardRef } from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef } from 'react';
2
3
  import styled, { css } from 'styled-components';
3
4
  import { theme } from '../design_system/theme.js';
4
- import { Box } from './box.jsx';
5
- import { Link } from './link.jsx';
5
+ import { Box } from './box.js';
6
+ import { Link } from './link.js';
6
7
  export const TAG_SIZES = ['large', 'medium', 'small'];
7
8
  const TAG_ICON_SIZES = {
8
9
  large: '20',
@@ -113,14 +114,10 @@ const StyledTag = styled(Box) `
113
114
  */
114
115
  function TagWrapper({ as, size = 'small', variant = 'primary', LeadingIcon, TrailingIcon, children, ...props }, ref) {
115
116
  const component = (as === 'a' ? Link : as ?? 'button');
116
- return (<StyledTag as={component} ref={ref} $variant={variant} $size={size} {...props}>
117
- {LeadingIcon && <LeadingIcon size={TAG_ICON_SIZES[size]}/>}
118
- {children}
119
- {TrailingIcon && <TrailingIcon size={TAG_ICON_SIZES[size]}/>}
120
- </StyledTag>);
117
+ return (_jsxs(StyledTag, { as: component, ref: ref, "$variant": variant, "$size": size, ...props, children: [LeadingIcon && _jsx(LeadingIcon, { size: TAG_ICON_SIZES[size] }), children, TrailingIcon && _jsx(TrailingIcon, { size: TAG_ICON_SIZES[size] })] }));
121
118
  }
122
119
  ;
123
120
  TagWrapper.displayName = 'Tag';
124
121
  // `forwardRef` can't handle generic types, should be fixable with React 19
125
122
  export const Tag = forwardRef(TagWrapper);
126
- //# sourceMappingURL=tag.jsx.map
123
+ //# sourceMappingURL=tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../src/components/tag.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAqB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,MAAM,EAAE,EAAE,GAAG,EAAmC,MAAM,mBAAmB,CAAC;AAIjF,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAE,GAAG,EAAiD,MAAM,UAAU,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAyB,MAAM,WAAW,CAAC;AAIxD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAE/D,MAAM,cAAc,GAAG;IACnB,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,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AAE,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC;;;;;;;;;;;WAWtC,KAAK,CAAC,KAAK,CAAC,MAAM;;6BAEA,KAAK,CAAC,UAAU,CAAC,WAAW;CACxD,CAAC;AAsBF;;GAEG;AACH,SAAS,UAAU,CAAwB,EACvC,EAAE,EACF,IAAI,GAAG,OAAO,EACd,OAAO,GAAG,SAAS,EACnB,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,GAAG,KAAK,EACE,EACd,GAAgD;IAE5C,MAAM,SAAS,GAAsB,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,QAAQ,CAAC,CAAC;IAE1E,OAAO,CACH,MAAC,SAAS,IACN,EAAE,EAAE,SAAS,EACb,GAAG,EAAE,GAAG,cACE,OAAO,WACV,IAAI,KACP,KAAK,aAER,WAAW,IAAI,KAAC,WAAW,IAAC,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,GAAI,EAC1D,QAAQ,EACR,YAAY,IAAI,KAAC,YAAY,IAAC,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,GAAI,IACrD,CACf,CAAC;AACN,CAAC;AAAA,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,KAAK,CAAC;AAE/B,2EAA2E;AAC3E,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,CAAC,UAAU,CAEN,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TextBaseProps } from './text_base.jsx';
2
+ import type { TextBaseProps } from './text_base.js';
3
3
  type HeadingContentType = 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
4
4
  interface HeadingContentTransientProps {
5
5
  type?: HeadingContentType;
@@ -1 +1 @@
1
- {"version":3,"file":"heading_content.d.ts","sourceRoot":"","sources":["../../../../src/components/text/heading_content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,KAAK,kBAAkB,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AAEtG,UAAU,4BAA4B;IAClC,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAeD,MAAM,MAAM,mBAAmB,GAAG,4BAA4B,GAAG,aAAa,CAAC;AAe/E,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAaxD,CAAC"}
1
+ {"version":3,"file":"heading_content.d.ts","sourceRoot":"","sources":["../../../../src/components/text/heading_content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGpD,KAAK,kBAAkB,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AAEtG,UAAU,4BAA4B;IAClC,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAeD,MAAM,MAAM,mBAAmB,GAAG,4BAA4B,GAAG,aAAa,CAAC;AAe/E,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAaxD,CAAC"}
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import styled, { css } from 'styled-components';
3
3
  import { theme } from '../../design_system/theme.js';
4
- import { TextBaseComponent } from './text_base.jsx';
4
+ import { TextBaseComponent } from './text_base.js';
5
5
  ;
6
6
  const getContentHeadingStyles = (headingType) => css `
7
7
  ${theme.typography.content.mobile[headingType]}
@@ -26,6 +26,6 @@ const StyledHeadingContent = styled(TextBaseComponent) `
26
26
  ${(props) => getContentHeadingStyles(props.$type || 'heading1')}
27
27
  `;
28
28
  export const HeadingContent = ({ type, as, ...rest }) => {
29
- return (<StyledHeadingContent $type={type} forwardedAs={as || HEADING_CONTENT_DEFAULT_ELEMENTS[type || 'heading1']} m='none' {...rest}/>);
29
+ return (_jsx(StyledHeadingContent, { "$type": type, forwardedAs: as || HEADING_CONTENT_DEFAULT_ELEMENTS[type || 'heading1'], m: 'none', ...rest }));
30
30
  };
31
- //# sourceMappingURL=heading_content.jsx.map
31
+ //# sourceMappingURL=heading_content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading_content.js","sourceRoot":"","sources":["../../../../src/components/text/heading_content.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMlD,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAAC,WAA+B,EAAE,EAAE,CAAC,GAAG,CAAA;MAClE,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC;;yBAEzB,KAAK,CAAC,MAAM,CAAC,MAAM;UAClC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC;;;yBAG7B,KAAK,CAAC,MAAM,CAAC,OAAO;UACnC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;;CAEtD,CAAC;AAKF,MAAM,gCAAgC,GAAG;IACrC,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;CACR,CAAC;AAEX,MAAM,oBAAoB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAA2B;MAC3E,CAAC,KAAK,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC,KAAK,IAAI,UAAU,CAAC;CAClE,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAC1D,IAAI,EACJ,EAAE,EACF,GAAG,IAAI,EACV,EAAE,EAAE;IACD,OAAO,CACH,KAAC,oBAAoB,aACV,IAAI,EACX,WAAW,EAAE,EAAE,IAAI,gCAAgC,CAAC,IAAI,IAAI,UAAU,CAAC,EACvE,CAAC,EAAC,MAAM,KACJ,IAAI,GACV,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TextBaseProps } from './text_base.jsx';
2
+ import type { TextBaseProps } from './text_base.js';
3
3
  type HeadingMarketingType = 'titleXs' | 'titleS' | 'titleM' | 'titleL' | 'titleXl' | 'title2xl' | 'title3xl';
4
4
  interface HeadingMarketingTransientProps {
5
5
  type?: HeadingMarketingType;
@@ -1 +1 @@
1
- {"version":3,"file":"heading_marketing.d.ts","sourceRoot":"","sources":["../../../../src/components/text/heading_marketing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,KAAK,oBAAoB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE7G,UAAU,8BAA8B;IACpC,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC/B;AAGD,MAAM,MAAM,qBAAqB,GAAG,8BAA8B,GAAG,aAAa,CAAC;AA0BnF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAa5D,CAAC"}
1
+ {"version":3,"file":"heading_marketing.d.ts","sourceRoot":"","sources":["../../../../src/components/text/heading_marketing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGpD,KAAK,oBAAoB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE7G,UAAU,8BAA8B;IACpC,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC/B;AAGD,MAAM,MAAM,qBAAqB,GAAG,8BAA8B,GAAG,aAAa,CAAC;AA0BnF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAa5D,CAAC"}
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import styled from 'styled-components';
3
3
  import { theme } from '../../design_system/theme.js';
4
- import { TextBaseComponent } from './text_base.jsx';
4
+ import { TextBaseComponent } from './text_base.js';
5
5
  ;
6
6
  const HEADING_MARKETING_DEFAULT_ELEMENTS = {
7
7
  titleXs: 'h6',
@@ -26,6 +26,6 @@ const StyledHeadingMarketing = styled(TextBaseComponent) `
26
26
  `}
27
27
  `;
28
28
  export const HeadingMarketing = ({ type, as, ...rest }) => {
29
- return (<StyledHeadingMarketing $type={type} forwardedAs={as || HEADING_MARKETING_DEFAULT_ELEMENTS[type || 'titleL']} m='none' {...rest}/>);
29
+ return (_jsx(StyledHeadingMarketing, { "$type": type, forwardedAs: as || HEADING_MARKETING_DEFAULT_ELEMENTS[type || 'titleL'], m: 'none', ...rest }));
30
30
  };
31
- //# sourceMappingURL=heading_marketing.jsx.map
31
+ //# sourceMappingURL=heading_marketing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading_marketing.js","sourceRoot":"","sources":["../../../../src/components/text/heading_marketing.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMlD,CAAC;AAKF,MAAM,kCAAkC,GAA+C;IACnF,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,sBAAsB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAA6B;MAC/E,CAAC,KAAK,EAAE,EAAE,CAAC;UACP,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;;mBAEjD,KAAK,CAAC,MAAM,CAAC,MAAM;cACxB,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;;;kBAGtD,KAAK,CAAC,MAAM,CAAC,OAAO;cACxB,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;;KAEpE;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,EAC9D,IAAI,EACJ,EAAE,EACF,GAAG,IAAI,EACV,EAAE,EAAE;IACD,OAAO,CACH,KAAC,sBAAsB,aACZ,IAAI,EACX,WAAW,EAAE,EAAE,IAAI,kCAAkC,CAAC,IAAI,IAAI,QAAQ,CAAC,EACvE,CAAC,EAAC,MAAM,KACJ,IAAI,GACV,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TextBaseProps } from './text_base.jsx';
2
+ import type { TextBaseProps } from './text_base.js';
3
3
  type HeadingSharedType = 'titleXs' | 'titleS' | 'titleM' | 'titleL' | 'titleXl' | 'title2xl' | 'title3xl';
4
4
  interface HeadingSharedTransientProps {
5
5
  type?: HeadingSharedType;
@@ -1 +1 @@
1
- {"version":3,"file":"heading_shared.d.ts","sourceRoot":"","sources":["../../../../src/components/text/heading_shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,KAAK,iBAAiB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE1G,UAAU,2BAA2B;IACjC,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAGD,MAAM,MAAM,kBAAkB,GAAG,2BAA2B,GAAG,aAAa,CAAC;AA0B7E,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAa/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"heading_shared.d.ts","sourceRoot":"","sources":["../../../../src/components/text/heading_shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGpD,KAAK,iBAAiB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE1G,UAAU,2BAA2B;IACjC,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAGD,MAAM,MAAM,kBAAkB,GAAG,2BAA2B,GAAG,aAAa,CAAC;AA0B7E,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAa/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import styled from 'styled-components';
3
3
  import { theme } from '../../design_system/theme.js';
4
- import { TextBaseComponent } from './text_base.jsx';
4
+ import { TextBaseComponent } from './text_base.js';
5
5
  ;
6
6
  const HEADING_SHARED_DEFAULT_ELEMENTS = {
7
7
  titleXs: 'h6',
@@ -26,7 +26,7 @@ const StyledHeadingShared = styled(TextBaseComponent) `
26
26
  `}
27
27
  `;
28
28
  const HeadingShared = ({ type, as, ...rest }) => {
29
- return (<StyledHeadingShared $type={type} forwardedAs={as || HEADING_SHARED_DEFAULT_ELEMENTS[type || 'titleL']} m='none' {...rest}/>);
29
+ return (_jsx(StyledHeadingShared, { "$type": type, forwardedAs: as || HEADING_SHARED_DEFAULT_ELEMENTS[type || 'titleL'], m: 'none', ...rest }));
30
30
  };
31
31
  export default HeadingShared;
32
- //# sourceMappingURL=heading_shared.jsx.map
32
+ //# sourceMappingURL=heading_shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading_shared.js","sourceRoot":"","sources":["../../../../src/components/text/heading_shared.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMlD,CAAC;AAKF,MAAM,+BAA+B,GAA4C;IAC7E,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,mBAAmB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAA0B;MACzE,CAAC,KAAK,EAAE,EAAE,CAAC;UACP,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;;kBAE/C,KAAK,CAAC,MAAM,CAAC,MAAM;cACvB,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;;;kBAGnD,KAAK,CAAC,MAAM,CAAC,OAAO;cACxB,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;;KAEjE;CACJ,CAAC;AAEF,MAAM,aAAa,GAAiC,CAAC,EACjD,IAAI,EACJ,EAAE,EACF,GAAG,IAAI,EACV,EAAE,EAAE;IACD,OAAO,CACH,KAAC,mBAAmB,aACT,IAAI,EACX,WAAW,EAAE,EAAE,IAAI,+BAA+B,CAAC,IAAI,IAAI,QAAQ,CAAC,EACpE,CAAC,EAAC,MAAM,KACJ,IAAI,GACV,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,11 +1,11 @@
1
- import HeadingShared from './heading_shared.jsx';
2
- import type { SharedTextProps } from './text_shared.jsx';
3
- import TextShared from './text_shared.jsx';
4
- export * from './text_base.jsx';
5
- export * from './text_content.jsx';
6
- export * from './text_marketing.jsx';
7
- export * from './heading_content.jsx';
8
- export * from './heading_marketing.jsx';
1
+ import HeadingShared from './heading_shared.js';
2
+ import type { SharedTextProps } from './text_shared.js';
3
+ import TextShared from './text_shared.js';
4
+ export * from './text_base.js';
5
+ export * from './text_content.js';
6
+ export * from './text_marketing.js';
7
+ export * from './heading_content.js';
8
+ export * from './heading_marketing.js';
9
9
  export { TextShared as Text, // Shared typography is the default
10
10
  HeadingShared as Heading, };
11
11
  export type { SharedTextProps, };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAE3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AAExC,OAAO,EACH,UAAU,IAAI,IAAI,EAAE,mCAAmC;AACvD,aAAa,IAAI,OAAO,GAC3B,CAAC;AAEF,YAAY,EACR,eAAe,GAClB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAE1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AAEvC,OAAO,EACH,UAAU,IAAI,IAAI,EAAE,mCAAmC;AACvD,aAAa,IAAI,OAAO,GAC3B,CAAC;AAEF,YAAY,EACR,eAAe,GAClB,CAAC"}
@@ -1,10 +1,10 @@
1
- import HeadingShared from './heading_shared.jsx';
2
- import TextShared from './text_shared.jsx';
3
- export * from './text_base.jsx';
4
- export * from './text_content.jsx';
5
- export * from './text_marketing.jsx';
6
- export * from './heading_content.jsx';
7
- export * from './heading_marketing.jsx';
1
+ import HeadingShared from './heading_shared.js';
2
+ import TextShared from './text_shared.js';
3
+ export * from './text_base.js';
4
+ export * from './text_content.js';
5
+ export * from './text_marketing.js';
6
+ export * from './heading_content.js';
7
+ export * from './heading_marketing.js';
8
8
  export { TextShared as Text, // Shared typography is the default
9
9
  HeadingShared as Heading, // Shared typography is the default
10
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,sBAAsB,CAAC;AAEjD,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAE3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AAExC,OAAO,EACH,UAAU,IAAI,IAAI,EAAE,mCAAmC;AACvD,aAAa,IAAI,OAAO,EAAE,mCAAmC;EAChE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAEhD,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAE1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AAEvC,OAAO,EACH,UAAU,IAAI,IAAI,EAAE,mCAAmC;AACvD,aAAa,IAAI,OAAO,EAAE,mCAAmC;EAChE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { WithTransientProps } from '../../type_utils.js';
3
- import type { BoxProps } from '../box.jsx';
3
+ import type { BoxProps } from '../box.js';
4
4
  export interface TransientTextBaseProps {
5
5
  italic?: boolean;
6
6
  uppercase?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"text_base.d.ts","sourceRoot":"","sources":["../../../../src/components/text/text_base.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,MAAM,WAAW,sBAAsB;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;AAC7E,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,QAAQ,CAAC;AAoB9D,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgBrD,CAAC"}
1
+ {"version":3,"file":"text_base.d.ts","sourceRoot":"","sources":["../../../../src/components/text/text_base.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAG1C,MAAM,WAAW,sBAAsB;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;AAC7E,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,QAAQ,CAAC;AAoB9D,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgBrD,CAAC"}
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import styled, { css } from 'styled-components';
3
- import { Box } from '../box.jsx';
3
+ import { Box } from '../box.js';
4
4
  ;
5
5
  const StyledText = styled(Box) `
6
6
  ${(props) => props.$italic && css `
@@ -19,5 +19,5 @@ const StyledText = styled(Box) `
19
19
  color: ${props.$color};
20
20
  `}
21
21
  `;
22
- export const TextBaseComponent = ({ italic, align, color, uppercase, as, ...rest }) => (<StyledText $italic={italic} $align={align} $color={color} $uppercase={uppercase} forwardedAs={as} {...rest}/>);
23
- //# sourceMappingURL=text_base.jsx.map
22
+ export const TextBaseComponent = ({ italic, align, color, uppercase, as, ...rest }) => (_jsx(StyledText, { "$italic": italic, "$align": align, "$color": color, "$uppercase": uppercase, forwardedAs: as, ...rest }));
23
+ //# sourceMappingURL=text_base.js.map