@apify/ui-library 0.57.1 → 0.57.3

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 (240) hide show
  1. package/.eslintrc +1 -0
  2. package/CHANGELOG.md +19 -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 +4 -4
  6. package/dist/src/components/action_link.jsx.map +1 -1
  7. package/dist/src/components/actor_template_card.jsx +3 -3
  8. package/dist/src/components/actor_template_card.jsx.map +1 -1
  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 +2 -2
  12. package/dist/src/components/badge.jsx.map +1 -1
  13. package/dist/src/components/banner.jsx +1 -1
  14. package/dist/src/components/banner.jsx.map +1 -1
  15. package/dist/src/components/blog_article.jsx +1 -1
  16. package/dist/src/components/blog_article.jsx.map +1 -1
  17. package/dist/src/components/box.d.ts +1 -1
  18. package/dist/src/components/box.d.ts.map +1 -1
  19. package/dist/src/components/box.jsx +1 -1
  20. package/dist/src/components/box.jsx.map +1 -1
  21. package/dist/src/components/button.d.ts +3 -3
  22. package/dist/src/components/button.d.ts.map +1 -1
  23. package/dist/src/components/button.jsx +4 -4
  24. package/dist/src/components/button.jsx.map +1 -1
  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 +1 -1
  28. package/dist/src/components/chip.jsx.map +1 -1
  29. package/dist/src/components/code/action_button.jsx +3 -3
  30. package/dist/src/components/code/action_button.jsx.map +1 -1
  31. package/dist/src/components/code/code_block/code_block.d.ts +2 -2
  32. package/dist/src/components/code/code_block/code_block.d.ts.map +1 -1
  33. package/dist/src/components/code/code_block/code_block.jsx +7 -7
  34. package/dist/src/components/code/code_block/code_block.jsx.map +1 -1
  35. package/dist/src/components/code/code_block/code_block.styled.d.ts +2 -2
  36. package/dist/src/components/code/code_block/code_block.styled.d.ts.map +1 -1
  37. package/dist/src/components/code/code_block/code_block.styled.jsx +2 -2
  38. package/dist/src/components/code/code_block/code_block.styled.jsx.map +1 -1
  39. package/dist/src/components/code/index.d.ts +3 -3
  40. package/dist/src/components/code/index.d.ts.map +1 -1
  41. package/dist/src/components/code/index.js +3 -3
  42. package/dist/src/components/code/index.js.map +1 -1
  43. package/dist/src/components/code/inline_code/inline_code.d.ts +2 -2
  44. package/dist/src/components/code/inline_code/inline_code.d.ts.map +1 -1
  45. package/dist/src/components/code/inline_code/inline_code.jsx +2 -2
  46. package/dist/src/components/code/inline_code/inline_code.jsx.map +1 -1
  47. package/dist/src/components/code/one_line_code/one_line_code.d.ts +2 -2
  48. package/dist/src/components/code/one_line_code/one_line_code.d.ts.map +1 -1
  49. package/dist/src/components/code/one_line_code/one_line_code.jsx +4 -4
  50. package/dist/src/components/code/one_line_code/one_line_code.jsx.map +1 -1
  51. package/dist/src/components/code/syntax_highlighter.d.ts +5 -5
  52. package/dist/src/components/code/syntax_highlighter.d.ts.map +1 -1
  53. package/dist/src/components/code/syntax_highlighter.jsx +30 -19
  54. package/dist/src/components/code/syntax_highlighter.jsx.map +1 -1
  55. package/dist/src/components/floating/index.d.ts +3 -3
  56. package/dist/src/components/floating/index.d.ts.map +1 -1
  57. package/dist/src/components/floating/index.js +3 -3
  58. package/dist/src/components/floating/index.js.map +1 -1
  59. package/dist/src/components/floating/menu.d.ts +1 -1
  60. package/dist/src/components/floating/menu.d.ts.map +1 -1
  61. package/dist/src/components/floating/menu.jsx +4 -4
  62. package/dist/src/components/floating/menu.jsx.map +1 -1
  63. package/dist/src/components/floating/menu_components.d.ts +3 -3
  64. package/dist/src/components/floating/menu_components.d.ts.map +1 -1
  65. package/dist/src/components/floating/menu_components.jsx +2 -2
  66. package/dist/src/components/floating/menu_components.jsx.map +1 -1
  67. package/dist/src/components/image.d.ts +1 -1
  68. package/dist/src/components/image.d.ts.map +1 -1
  69. package/dist/src/components/image.jsx +2 -2
  70. package/dist/src/components/image.jsx.map +1 -1
  71. package/dist/src/components/index.d.ts +21 -21
  72. package/dist/src/components/index.d.ts.map +1 -1
  73. package/dist/src/components/index.js +21 -21
  74. package/dist/src/components/index.js.map +1 -1
  75. package/dist/src/components/link.d.ts +1 -1
  76. package/dist/src/components/link.d.ts.map +1 -1
  77. package/dist/src/components/link.jsx +3 -3
  78. package/dist/src/components/link.jsx.map +1 -1
  79. package/dist/src/components/message.d.ts +1 -1
  80. package/dist/src/components/message.d.ts.map +1 -1
  81. package/dist/src/components/message.jsx +4 -4
  82. package/dist/src/components/message.jsx.map +1 -1
  83. package/dist/src/components/rating.d.ts +1 -1
  84. package/dist/src/components/rating.d.ts.map +1 -1
  85. package/dist/src/components/rating.jsx +3 -3
  86. package/dist/src/components/rating.jsx.map +1 -1
  87. package/dist/src/components/readme_renderer/index.d.ts +3 -3
  88. package/dist/src/components/readme_renderer/index.d.ts.map +1 -1
  89. package/dist/src/components/readme_renderer/index.js +3 -3
  90. package/dist/src/components/readme_renderer/index.js.map +1 -1
  91. package/dist/src/components/readme_renderer/table_of_contents.jsx +5 -5
  92. package/dist/src/components/readme_renderer/table_of_contents.jsx.map +1 -1
  93. package/dist/src/components/simple_markdown/index.d.ts +2 -2
  94. package/dist/src/components/simple_markdown/index.d.ts.map +1 -1
  95. package/dist/src/components/simple_markdown/index.js +3 -0
  96. package/dist/src/components/simple_markdown/index.js.map +1 -0
  97. package/dist/src/components/simple_markdown/simple_markdown.jsx +9 -9
  98. package/dist/src/components/simple_markdown/simple_markdown.jsx.map +1 -1
  99. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts +5 -5
  100. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
  101. package/dist/src/components/simple_markdown/simple_markdown_components.jsx +8 -8
  102. package/dist/src/components/simple_markdown/simple_markdown_components.jsx.map +1 -1
  103. package/dist/src/components/tag.d.ts +2 -2
  104. package/dist/src/components/tag.d.ts.map +1 -1
  105. package/dist/src/components/tag.jsx +3 -3
  106. package/dist/src/components/tag.jsx.map +1 -1
  107. package/dist/src/components/text/heading_content.d.ts +1 -1
  108. package/dist/src/components/text/heading_content.d.ts.map +1 -1
  109. package/dist/src/components/text/heading_content.jsx +2 -2
  110. package/dist/src/components/text/heading_content.jsx.map +1 -1
  111. package/dist/src/components/text/heading_marketing.d.ts +1 -1
  112. package/dist/src/components/text/heading_marketing.d.ts.map +1 -1
  113. package/dist/src/components/text/heading_marketing.jsx +2 -2
  114. package/dist/src/components/text/heading_marketing.jsx.map +1 -1
  115. package/dist/src/components/text/heading_shared.d.ts +1 -1
  116. package/dist/src/components/text/heading_shared.d.ts.map +1 -1
  117. package/dist/src/components/text/heading_shared.jsx +2 -2
  118. package/dist/src/components/text/heading_shared.jsx.map +1 -1
  119. package/dist/src/components/text/index.d.ts +8 -8
  120. package/dist/src/components/text/index.d.ts.map +1 -1
  121. package/dist/src/components/text/index.js +7 -7
  122. package/dist/src/components/text/index.js.map +1 -1
  123. package/dist/src/components/text/text_base.d.ts +2 -2
  124. package/dist/src/components/text/text_base.d.ts.map +1 -1
  125. package/dist/src/components/text/text_base.jsx +1 -1
  126. package/dist/src/components/text/text_base.jsx.map +1 -1
  127. package/dist/src/components/text/text_content.d.ts +1 -1
  128. package/dist/src/components/text/text_content.d.ts.map +1 -1
  129. package/dist/src/components/text/text_content.jsx +2 -2
  130. package/dist/src/components/text/text_content.jsx.map +1 -1
  131. package/dist/src/components/text/text_marketing.d.ts +1 -1
  132. package/dist/src/components/text/text_marketing.d.ts.map +1 -1
  133. package/dist/src/components/text/text_marketing.jsx +2 -2
  134. package/dist/src/components/text/text_marketing.jsx.map +1 -1
  135. package/dist/src/components/text/text_shared.d.ts +1 -1
  136. package/dist/src/components/text/text_shared.d.ts.map +1 -1
  137. package/dist/src/components/text/text_shared.jsx +2 -2
  138. package/dist/src/components/text/text_shared.jsx.map +1 -1
  139. package/dist/src/components/tile/horizontal_tile.d.ts +1 -1
  140. package/dist/src/components/tile/horizontal_tile.d.ts.map +1 -1
  141. package/dist/src/components/tile/horizontal_tile.jsx +2 -2
  142. package/dist/src/components/tile/horizontal_tile.jsx.map +1 -1
  143. package/dist/src/components/tile/index.d.ts +2 -2
  144. package/dist/src/components/tile/index.d.ts.map +1 -1
  145. package/dist/src/components/tile/index.js +2 -2
  146. package/dist/src/components/tile/index.js.map +1 -1
  147. package/dist/src/components/tile/shared.js +1 -1
  148. package/dist/src/components/tile/shared.js.map +1 -1
  149. package/dist/src/components/tile/vertical_tile.d.ts +1 -1
  150. package/dist/src/components/tile/vertical_tile.d.ts.map +1 -1
  151. package/dist/src/components/tile/vertical_tile.jsx +2 -2
  152. package/dist/src/components/tile/vertical_tile.jsx.map +1 -1
  153. package/dist/src/components/to_consolidate/card.d.ts +2 -2
  154. package/dist/src/components/to_consolidate/card.d.ts.map +1 -1
  155. package/dist/src/components/to_consolidate/card.jsx +3 -3
  156. package/dist/src/components/to_consolidate/card.jsx.map +1 -1
  157. package/dist/src/components/to_consolidate/index.d.ts +4 -4
  158. package/dist/src/components/to_consolidate/index.d.ts.map +1 -1
  159. package/dist/src/components/to_consolidate/index.js +4 -4
  160. package/dist/src/components/to_consolidate/index.js.map +1 -1
  161. package/dist/src/components/to_consolidate/markdown.d.ts +1 -1
  162. package/dist/src/components/to_consolidate/markdown.d.ts.map +1 -1
  163. package/dist/src/components/to_consolidate/markdown.jsx +4 -4
  164. package/dist/src/components/to_consolidate/markdown.jsx.map +1 -1
  165. package/dist/src/components/to_consolidate/pagination.jsx +3 -3
  166. package/dist/src/components/to_consolidate/pagination.jsx.map +1 -1
  167. package/dist/src/components/to_consolidate/tab_number_chip.jsx +2 -2
  168. package/dist/src/components/to_consolidate/tab_number_chip.jsx.map +1 -1
  169. package/dist/src/design_system/theme.js +4 -4
  170. package/dist/src/design_system/theme.js.map +1 -1
  171. package/dist/src/design_system/tokens/index.d.ts +5 -5
  172. package/dist/src/design_system/tokens/index.d.ts.map +1 -1
  173. package/dist/src/design_system/tokens/index.js +5 -5
  174. package/dist/src/design_system/tokens/index.js.map +1 -1
  175. package/dist/src/index.d.ts +6 -6
  176. package/dist/src/index.d.ts.map +1 -1
  177. package/dist/src/index.js +6 -6
  178. package/dist/src/index.js.map +1 -1
  179. package/dist/src/ui_dependency_provider.d.ts +1 -1
  180. package/dist/src/ui_dependency_provider.d.ts.map +1 -1
  181. package/dist/src/utils/index.d.ts +3 -3
  182. package/dist/src/utils/index.d.ts.map +1 -1
  183. package/dist/src/utils/index.js +3 -3
  184. package/dist/src/utils/index.js.map +1 -1
  185. package/dist/tsconfig.build.tsbuildinfo +1 -1
  186. package/package.json +2 -2
  187. package/src/components/action_link.tsx +4 -4
  188. package/src/components/actor_template_card.tsx +3 -3
  189. package/src/components/badge.tsx +3 -3
  190. package/src/components/banner.tsx +1 -1
  191. package/src/components/blog_article.tsx +1 -1
  192. package/src/components/box.tsx +3 -3
  193. package/src/components/button.tsx +5 -5
  194. package/src/components/chip.tsx +2 -2
  195. package/src/components/code/action_button.tsx +3 -3
  196. package/src/components/code/code_block/code_block.styled.tsx +3 -3
  197. package/src/components/code/code_block/code_block.tsx +9 -9
  198. package/src/components/code/index.ts +3 -3
  199. package/src/components/code/inline_code/inline_code.tsx +4 -4
  200. package/src/components/code/one_line_code/one_line_code.tsx +7 -7
  201. package/src/components/code/syntax_highlighter.tsx +33 -22
  202. package/src/components/floating/index.ts +3 -3
  203. package/src/components/floating/menu.tsx +4 -4
  204. package/src/components/floating/menu_components.tsx +2 -2
  205. package/src/components/image.tsx +2 -2
  206. package/src/components/index.ts +21 -21
  207. package/src/components/link.tsx +3 -3
  208. package/src/components/message.tsx +4 -4
  209. package/src/components/rating.tsx +4 -4
  210. package/src/components/readme_renderer/index.ts +3 -3
  211. package/src/components/readme_renderer/table_of_contents.tsx +5 -5
  212. package/src/components/simple_markdown/index.ts +2 -0
  213. package/src/components/simple_markdown/simple_markdown.tsx +9 -9
  214. package/src/components/simple_markdown/simple_markdown_components.tsx +12 -12
  215. package/src/components/tag.tsx +4 -4
  216. package/src/components/text/heading_content.tsx +4 -4
  217. package/src/components/text/heading_marketing.tsx +4 -4
  218. package/src/components/text/heading_shared.tsx +4 -4
  219. package/src/components/text/index.ts +8 -8
  220. package/src/components/text/text_base.tsx +3 -3
  221. package/src/components/text/text_content.tsx +4 -4
  222. package/src/components/text/text_marketing.tsx +4 -4
  223. package/src/components/text/text_shared.tsx +4 -4
  224. package/src/components/tile/horizontal_tile.tsx +4 -3
  225. package/src/components/tile/index.ts +2 -2
  226. package/src/components/tile/shared.ts +1 -1
  227. package/src/components/tile/vertical_tile.tsx +4 -3
  228. package/src/components/to_consolidate/card.tsx +5 -5
  229. package/src/components/to_consolidate/index.ts +4 -4
  230. package/src/components/to_consolidate/markdown.tsx +5 -5
  231. package/src/components/to_consolidate/pagination.tsx +3 -3
  232. package/src/components/to_consolidate/tab_number_chip.tsx +2 -2
  233. package/src/design_system/theme.ts +4 -4
  234. package/src/design_system/tokens/index.ts +5 -5
  235. package/src/index.ts +6 -6
  236. package/src/ui_dependency_provider.tsx +1 -1
  237. package/src/utils/index.ts +3 -3
  238. package/dist/src/components/simple_markdown/index.jsx +0 -3
  239. package/dist/src/components/simple_markdown/index.jsx.map +0 -1
  240. package/src/components/simple_markdown/index.tsx +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/ui-library",
3
- "version": "0.57.1",
3
+ "version": "0.57.3",
4
4
  "description": "React UI library used by apify.com",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -65,5 +65,5 @@
65
65
  "recast": "^0.23.9",
66
66
  "typescript": "^5.1.6"
67
67
  },
68
- "gitHead": "400e79d84ab4b2e5b961296c97e6d2a0c510dc84"
68
+ "gitHead": "1bd900e3e849d7be1b4d22470b34bf45b56c3a2f"
69
69
  }
@@ -3,10 +3,10 @@ import styled from 'styled-components';
3
3
 
4
4
  import { ArrowLeftIcon, ArrowRightIcon } from '@apify/ui-icons';
5
5
 
6
- import { theme } from '../design_system/theme';
7
- import { Box } from './box';
8
- import { Link, type LinkProps } from './link';
9
- import { Heading } from './text';
6
+ import { theme } from '../design_system/theme.js';
7
+ import { Box } from './box.jsx';
8
+ import { Link, type LinkProps } from './link.jsx';
9
+ import { Heading } from './text/index.js';
10
10
 
11
11
  const StyledGuidepost = styled(Box)<{ $isBackLink: boolean }>`
12
12
  display: inline-flex;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
- import { theme } from '../design_system/theme';
5
- import { TextBaseComponent } from './text/text_base';
6
- import { VerticalTile } from './tile';
4
+ import { theme } from '../design_system/theme.js';
5
+ import { TextBaseComponent } from './text/text_base.jsx';
6
+ import { VerticalTile } from './tile/index.js';
7
7
 
8
8
  interface ActorTemplateCardProps {
9
9
  id: string;
@@ -3,9 +3,9 @@ import styled, { css, type FlattenSimpleInterpolation } from 'styled-components'
3
3
 
4
4
  import type { IconComponent, IconSize } from '@apify/ui-icons';
5
5
 
6
- import { theme } from '../design_system/theme';
7
- import type { WithTransientProps } from '../type_utils';
8
- import { type RegularBoxProps, type MarginSpacingProps, Box } from './box';
6
+ import { theme } from '../design_system/theme.js';
7
+ import type { WithTransientProps } from '../type_utils.js';
8
+ import { type RegularBoxProps, type MarginSpacingProps, Box } from './box.jsx';
9
9
 
10
10
  type BadgeSize = typeof BADGE_SIZES[number];
11
11
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
- import { theme } from '../design_system/theme';
4
+ import { theme } from '../design_system/theme.js';
5
5
 
6
6
  /* eslint-disable max-len */
7
7
  const BANNER_GRADIENT_BACKGROUND_SVG = `<svg width="1200" height="148" viewBox="0 0 1200 148" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -3,7 +3,7 @@ import styled from 'styled-components';
3
3
 
4
4
  import { ArrowRightIcon } from '@apify/ui-icons';
5
5
 
6
- import { theme } from '../design_system/theme';
6
+ import { theme } from '../design_system/theme.js';
7
7
 
8
8
  const classNames = {
9
9
  IMAGE_WRAPPER: 'ImageWrapper',
@@ -1,9 +1,9 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
- import { theme } from '../design_system/theme';
5
- import type { Size } from '../design_system/tokens';
6
- import type { WithTransientProps } from '../type_utils';
4
+ import { theme } from '../design_system/theme.js';
5
+ import type { Size } from '../design_system/tokens/index.js';
6
+ import type { WithTransientProps } from '../type_utils.js';
7
7
 
8
8
  type ExtendedSize = Size | 'none' | 'auto';
9
9
 
@@ -3,11 +3,11 @@ import styled, { css } from 'styled-components';
3
3
 
4
4
  import { ExternalLinkIcon } from '@apify/ui-icons';
5
5
 
6
- import { theme } from '../design_system/theme';
7
- import { type WithRequired, type WithTransientProps } from '../type_utils';
8
- import { useSharedUiDependencies } from '../ui_dependency_provider';
9
- import { Box, type RegularBoxProps, type MarginSpacingProps } from './box';
10
- import { Link, isUrlExternal, type LinkProps } from './link';
6
+ import { theme } from '../design_system/theme.js';
7
+ import { type WithRequired, type WithTransientProps } from '../type_utils.js';
8
+ import { useSharedUiDependencies } from '../ui_dependency_provider.jsx';
9
+ import { Box, type RegularBoxProps, type MarginSpacingProps } from './box.jsx';
10
+ import { Link, isUrlExternal, type LinkProps } from './link.jsx';
11
11
 
12
12
  type ButtonSize = 'medium' | 'small';
13
13
  type ButtonColor = 'default' | 'success' | 'danger';
@@ -5,8 +5,8 @@ import styled, { css } from 'styled-components';
5
5
 
6
6
  import type { ValueOf } from '@apify-packages/types';
7
7
 
8
- import { theme } from '../design_system/theme';
9
- import type { RegularBoxProps } from './box';
8
+ import { theme } from '../design_system/theme.js';
9
+ import type { RegularBoxProps } from './box.jsx';
10
10
 
11
11
  const CHIP_SIZES = {
12
12
  SMALL: 'S',
@@ -3,9 +3,9 @@ import styled, { css } from 'styled-components';
3
3
 
4
4
  import { CheckIcon, CopyIcon } from '@apify/ui-icons';
5
5
 
6
- import { theme } from '../../design_system/theme';
7
- import { useCopyToClipboard } from '../../utils';
8
- import { Text } from '../text';
6
+ import { theme } from '../../design_system/theme.js';
7
+ import { useCopyToClipboard } from '../../utils/index.js';
8
+ import { Text } from '../text/index.js';
9
9
 
10
10
  interface StyledButtonProps {
11
11
  $successStyle?: boolean;
@@ -1,8 +1,8 @@
1
1
  import styled, { css } from 'styled-components';
2
2
 
3
- import { theme } from '../../../design_system/theme';
4
- import type { SharedTextSize } from '../../text/text_shared';
5
- import { SyntaxHighlighterBaseStylesWrapper } from '../syntax_highlighter';
3
+ import { theme } from '../../../design_system/theme.js';
4
+ import type { SharedTextSize } from '../../text/text_shared.jsx';
5
+ import { SyntaxHighlighterBaseStylesWrapper } from '../syntax_highlighter.jsx';
6
6
 
7
7
  const HIGHLIGHT_BACKGROUND_COLOR = 'rgba(22, 114, 235, 0.05)';
8
8
 
@@ -1,15 +1,15 @@
1
1
  import clsx from 'clsx';
2
2
  import React, { useCallback, useMemo, useRef, useState } from 'react';
3
3
 
4
- import type { RegularBoxProps } from '../../box';
5
- import { ColorWheelGradient } from '../../color_wheel_gradient';
6
- import { Link } from '../../link';
7
- import { Text } from '../../text';
8
- import type { SharedTextSize } from '../../text/text_shared';
9
- import { ActionButton, CopyButton } from '../action_button';
10
- import SyntaxHighlighter from '../syntax_highlighter';
11
- import { CodeBlockWrapper } from './code_block.styled';
12
- import { mapPrefixToBashLine } from './utils';
4
+ import type { RegularBoxProps } from '../../box.js';
5
+ import { ColorWheelGradient } from '../../color_wheel_gradient.jsx';
6
+ import { Link } from '../../link.jsx';
7
+ import { Text } from '../../text/index.js';
8
+ import type { SharedTextSize } from '../../text/text_shared.jsx';
9
+ import { ActionButton, CopyButton } from '../action_button.jsx';
10
+ import SyntaxHighlighter from '../syntax_highlighter.jsx';
11
+ import { CodeBlockWrapper } from './code_block.styled.jsx';
12
+ import { mapPrefixToBashLine } from './utils.js';
13
13
 
14
14
  function HeaderDots() {
15
15
  return (
@@ -1,3 +1,3 @@
1
- export * from './code_block/code_block';
2
- export * from './one_line_code/one_line_code';
3
- export * from './inline_code/inline_code';
1
+ export * from './code_block/code_block.jsx';
2
+ export * from './one_line_code/one_line_code.jsx';
3
+ export * from './inline_code/inline_code.jsx';
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
- import { theme } from '../../../design_system/theme';
5
- import type { RegularBoxProps } from '../../box';
6
- import { Text } from '../../text';
7
- import type { SharedTextSize } from '../../text/text_shared';
4
+ import { theme } from '../../../design_system/theme.js';
5
+ import type { RegularBoxProps } from '../../box.jsx';
6
+ import { Text } from '../../text/index.js';
7
+ import type { SharedTextSize } from '../../text/text_shared.jsx';
8
8
 
9
9
  // TODO: We should not need to export these once we consolidate Markdown
10
10
  export const inlineCodeStyles = css`
@@ -3,13 +3,13 @@ import styled, { css } from 'styled-components';
3
3
 
4
4
  import { EyeIcon, EyeOffIcon } from '@apify/ui-icons';
5
5
 
6
- import { theme } from '../../../design_system/theme';
7
- import type { BoxProps } from '../../box';
8
- import { Text } from '../../text';
9
- import type { SharedTextSize } from '../../text/text_shared';
10
- import { ActionButton, CopyButton } from '../action_button';
11
- import SyntaxHighlighter, { SyntaxHighlighterBaseStylesWrapper } from '../syntax_highlighter';
12
- import type { SyntaxHighlighterBaseStylesWrapperProps } from '../syntax_highlighter';
6
+ import { theme } from '../../../design_system/theme.js';
7
+ import type { BoxProps } from '../../box.jsx';
8
+ import { Text } from '../../text/index.js';
9
+ import type { SharedTextSize } from '../../text/text_shared.jsx';
10
+ import { ActionButton, CopyButton } from '../action_button.jsx';
11
+ import SyntaxHighlighter, { SyntaxHighlighterBaseStylesWrapper } from '../syntax_highlighter.jsx';
12
+ import type { SyntaxHighlighterBaseStylesWrapperProps } from '../syntax_highlighter.jsx';
13
13
 
14
14
  export const oneLineCodeClassNames = {
15
15
  gradientWrapper: 'OneLineCode-GradientWrapper',
@@ -1,30 +1,41 @@
1
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
1
2
  import React, { forwardRef } from 'react';
2
3
  // https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues/228
3
4
  import type { SyntaxHighlighterProps as ReactSyntaxHighlighterProps } from 'react-syntax-highlighter';
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
5
  // @ts-ignore The library is badly typed and does not export the type
6
- import bash from 'react-syntax-highlighter/dist/esm/languages/prism/bash';
7
- import dockerFile from 'react-syntax-highlighter/dist/esm/languages/prism/docker';
8
- import http from 'react-syntax-highlighter/dist/esm/languages/prism/http';
9
- import js from 'react-syntax-highlighter/dist/esm/languages/prism/javascript';
10
- import json from 'react-syntax-highlighter/dist/esm/languages/prism/json';
11
- import html from 'react-syntax-highlighter/dist/esm/languages/prism/markup';
12
- import python from 'react-syntax-highlighter/dist/esm/languages/prism/python';
13
- import ts from 'react-syntax-highlighter/dist/esm/languages/prism/typescript';
14
- import xml from 'react-syntax-highlighter/dist/esm/languages/prism/xml-doc';
15
- import yaml from 'react-syntax-highlighter/dist/esm/languages/prism/yaml';
16
- import ReactSyntaxHighlighter from 'react-syntax-highlighter/dist/esm/prism-light';
17
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6
+ import bash from 'react-syntax-highlighter/dist/esm/languages/prism/bash.js';
18
7
  // @ts-ignore The library is badly typed and does not export the type
19
- import dark from 'react-syntax-highlighter/dist/esm/styles/prism/night-owl';
20
- import light from 'react-syntax-highlighter/dist/esm/styles/prism/prism';
8
+ import dockerFile from 'react-syntax-highlighter/dist/esm/languages/prism/docker.js';
9
+ // @ts-ignore The library is badly typed and does not export the type
10
+ import http from 'react-syntax-highlighter/dist/esm/languages/prism/http.js';
11
+ // @ts-ignore The library is badly typed and does not export the type
12
+ import js from 'react-syntax-highlighter/dist/esm/languages/prism/javascript.js';
13
+ // @ts-ignore The library is badly typed and does not export the type
14
+ import json from 'react-syntax-highlighter/dist/esm/languages/prism/json.js';
15
+ // @ts-ignore The library is badly typed and does not export the type
16
+ import html from 'react-syntax-highlighter/dist/esm/languages/prism/markup.js';
17
+ // @ts-ignore The library is badly typed and does not export the type
18
+ import python from 'react-syntax-highlighter/dist/esm/languages/prism/python.js';
19
+ // @ts-ignore The library is badly typed and does not export the type
20
+ import ts from 'react-syntax-highlighter/dist/esm/languages/prism/typescript.js';
21
+ // @ts-ignore The library is badly typed and does not export the type
22
+ import xml from 'react-syntax-highlighter/dist/esm/languages/prism/xml-doc.js';
23
+ // @ts-ignore The library is badly typed and does not export the type
24
+ import yaml from 'react-syntax-highlighter/dist/esm/languages/prism/yaml.js';
25
+ // @ts-ignore The library is badly typed and does not export the type
26
+ import ReactSyntaxHighlighter from 'react-syntax-highlighter/dist/esm/prism-light.js';
27
+ // @ts-ignore The library is badly typed and does not export the type
28
+ import dark from 'react-syntax-highlighter/dist/esm/styles/prism/night-owl.js';
29
+ // @ts-ignore The library is badly typed and does not export the type
30
+ import light from 'react-syntax-highlighter/dist/esm/styles/prism/prism.js';
31
+ /* tslint:enable */
21
32
  import styled, { css } from 'styled-components';
22
33
 
23
- import { theme } from '../../design_system/theme';
24
- import { useSharedUiDependencies } from '../../ui_dependency_provider';
25
- import { Box } from '../box';
26
- import { Text, type SharedTextProps } from '../text';
27
- import type { SharedTextSize } from '../text/text_shared';
34
+ import { theme } from '../../design_system/theme.js';
35
+ import { useSharedUiDependencies } from '../../ui_dependency_provider.jsx';
36
+ import { Box } from '../box.jsx';
37
+ import { Text, type SharedTextProps } from '../text/index.js';
38
+ import type { SharedTextSize } from '../text/text_shared.jsx';
28
39
 
29
40
  ReactSyntaxHighlighter.registerLanguage('typescript', ts);
30
41
  ReactSyntaxHighlighter.registerLanguage('javascript', js);
@@ -104,8 +115,8 @@ export const SyntaxHighlighter = forwardRef<HTMLPreElement, SyntaxHighlighterPro
104
115
 
105
116
  export type SyntaxHighlighterBaseStylesWrapperProps = SharedTextProps & {
106
117
  $fullWidth?: boolean;
107
- $fullHeight?: boolean;
108
- $showLineNumbers?: boolean;
118
+ $fullHeight?: string;
119
+ $showLineNumbers?: any;
109
120
  }
110
121
 
111
122
  export const SyntaxHighlighterBaseStylesWrapper = styled(Box)<SyntaxHighlighterBaseStylesWrapperProps>`
@@ -1,3 +1,3 @@
1
- export * from './menu';
2
- export * from './menu_components';
3
- export * from './menu_common';
1
+ export * from './menu.jsx';
2
+ export * from './menu_components.jsx';
3
+ export * from './menu_common.jsx';
@@ -18,14 +18,14 @@ import React, {
18
18
  import {
19
19
  Box,
20
20
  type BoxProps,
21
- } from '../box';
22
- import { Text } from '../text';
23
- import { useFloatingMenu } from './menu_common';
21
+ } from '../box.jsx';
22
+ import { Text } from '../text/index.js';
23
+ import { useFloatingMenu } from './menu_common.jsx';
24
24
  import {
25
25
  DropdownMenuBaseComponent,
26
26
  ListMenuComponent,
27
27
  ListMenuItemComponent,
28
- } from './menu_components';
28
+ } from './menu_components.jsx';
29
29
 
30
30
  export const menuClassNames = {
31
31
  WRAPPER: 'menu-wrapper',
@@ -7,8 +7,8 @@ import styled, { css } from 'styled-components';
7
7
 
8
8
  import { ChevronDownIcon } from '@apify/ui-icons';
9
9
 
10
- import { theme } from '../../design_system/theme';
11
- import { Box } from '../box';
10
+ import { theme } from '../../design_system/theme.js';
11
+ import { Box } from '../box.jsx';
12
12
 
13
13
  export type FloatingContext = Pick<UseFloatingReturn<ReferenceType>, 'context'>['context'];
14
14
 
@@ -1,7 +1,7 @@
1
1
  import React, { forwardRef } from 'react';
2
2
 
3
- import { useSharedUiDependencies } from '../ui_dependency_provider';
4
- import { Box, type BoxProps } from './box';
3
+ import { useSharedUiDependencies } from '../ui_dependency_provider.jsx';
4
+ import { Box, type BoxProps } from './box.jsx';
5
5
 
6
6
  type ImageProps = {
7
7
  src: string,
@@ -1,21 +1,21 @@
1
- export * from './text';
2
- export * from './box';
3
- export * from './message';
4
- export * from './floating';
5
- export * from './button';
6
- export * from './link';
7
- export * from './action_link';
8
- export * from './simple_markdown';
9
- export * from './code';
10
- export * from './color_wheel_gradient';
11
- export * from './readme_renderer';
12
- export * from './to_consolidate';
13
- export * from './tile';
14
- export * from './blog_article';
15
- export * from './banner';
16
- export * from './actor_template_card';
17
- export * from './chip';
18
- export * from './image';
19
- export * from './rating';
20
- export * from './badge';
21
- export * from './tag';
1
+ export * from './text/index.js';
2
+ export * from './box.jsx';
3
+ export * from './message.jsx';
4
+ export * from './floating/index.js';
5
+ export * from './button.jsx';
6
+ export * from './link.jsx';
7
+ export * from './action_link.jsx';
8
+ export * from './simple_markdown/index.js';
9
+ export * from './code/index.js';
10
+ export * from './color_wheel_gradient.jsx';
11
+ export * from './readme_renderer/index.js';
12
+ export * from './to_consolidate/index.js';
13
+ export * from './tile/index.js';
14
+ export * from './blog_article.jsx';
15
+ export * from './banner.jsx';
16
+ export * from './actor_template_card.jsx';
17
+ export * from './chip.jsx';
18
+ export * from './image.jsx';
19
+ export * from './rating.jsx';
20
+ export * from './badge.jsx';
21
+ export * from './tag.jsx';
@@ -5,9 +5,9 @@ import styled from 'styled-components';
5
5
 
6
6
  import { ExternalLinkIcon } from '@apify/ui-icons';
7
7
 
8
- import { theme } from '../design_system/theme';
9
- import { useSharedUiDependencies } from '../ui_dependency_provider';
10
- import { Box, type BoxProps } from './box';
8
+ import { theme } from '../design_system/theme.js';
9
+ import { useSharedUiDependencies } from '../ui_dependency_provider.jsx';
10
+ import { Box, type BoxProps } from './box.jsx';
11
11
 
12
12
  export type To = string | Partial<Path>;
13
13
  export interface RegularLinkProps {
@@ -4,10 +4,10 @@ import styled from 'styled-components';
4
4
 
5
5
  import { CheckCircleIcon, CrossIcon, InfoIcon, WarningTriangleIcon } from '@apify/ui-icons';
6
6
 
7
- import { theme } from '../design_system/theme';
8
- import { Box, type BoxProps } from './box';
9
- import { Button } from './button';
10
- import { Heading } from './text';
7
+ import { theme } from '../design_system/theme.js';
8
+ import { Box, type BoxProps } from './box.jsx';
9
+ import { Button } from './button.jsx';
10
+ import { Heading } from './text/index.js';
11
11
 
12
12
  export const messageClassNames = {
13
13
  main: 'Message',
@@ -6,10 +6,10 @@ import { StarEmptyIcon, StarFullIcon, StarHalfIcon } from '@apify/ui-icons';
6
6
 
7
7
  import type { ReviewRating } from '@apify-packages/types';
8
8
 
9
- import { theme } from '../design_system/theme';
10
- import type { BoxProps } from './box';
11
- import { Box } from './box';
12
- import { Text } from './text';
9
+ import { theme } from '../design_system/theme.js';
10
+ import type { BoxProps } from './box.jsx';
11
+ import { Box } from './box.jsx';
12
+ import { Text } from './text/index.js';
13
13
 
14
14
  type RatingStatsProps = {
15
15
  ratingStats: Record<ReviewRating, number>
@@ -1,3 +1,3 @@
1
- export { useActorTitleHeadingFilter } from './utils';
2
- export { default as pythonizeValue } from './pythonize_value';
3
- export { default as TableOfContents } from './table_of_contents';
1
+ export { useActorTitleHeadingFilter } from './utils.jsx';
2
+ export { default as pythonizeValue } from './pythonize_value.js';
3
+ export { default as TableOfContents } from './table_of_contents.jsx';
@@ -8,11 +8,11 @@ import type { AllowElement } from 'react-markdown/lib/rehype-filter';
8
8
  import remarkToc from 'remark-toc';
9
9
  import styled from 'styled-components';
10
10
 
11
- import { theme } from '../../design_system/theme';
12
- import { inlineCodeStyles } from '../code';
13
- import { Link } from '../link';
14
- import { Text } from '../text';
15
- import { cleanMarkdown, slugifyHeadingChildren } from './utils';
11
+ import { theme } from '../../design_system/theme.js';
12
+ import { inlineCodeStyles } from '../code/index.js';
13
+ import { Link } from '../link.jsx';
14
+ import { Text } from '../text/index.js';
15
+ import { cleanMarkdown, slugifyHeadingChildren } from './utils.jsx';
16
16
 
17
17
  const TOC_HEADING_ID = 'Contents';
18
18
 
@@ -0,0 +1,2 @@
1
+ export * from './simple_markdown.jsx';
2
+ export * from './simple_markdown_components.jsx';
@@ -7,20 +7,20 @@ import rehypeSanitize from 'rehype-sanitize';
7
7
  import remarkGfm from 'remark-gfm';
8
8
  import styled from 'styled-components';
9
9
 
10
- import { theme } from '../../design_system/theme';
11
- import { useSharedUiDependencies } from '../../ui_dependency_provider';
12
- import { Box } from '../box';
13
- import { isUrlExternal } from '../link';
14
- import { cleanMarkdown } from '../readme_renderer/utils';
15
- import { Heading, Text } from '../text';
16
- import { HeadingContent } from '../text/heading_content';
17
- import { TextContent } from '../text/text_content';
10
+ import { theme } from '../../design_system/theme.js';
11
+ import { useSharedUiDependencies } from '../../ui_dependency_provider.jsx';
12
+ import { Box } from '../box.jsx';
13
+ import { isUrlExternal } from '../link.jsx';
14
+ import { cleanMarkdown } from '../readme_renderer/utils.jsx';
15
+ import { HeadingContent } from '../text/heading_content.jsx';
16
+ import { Heading, Text } from '../text/index.js';
17
+ import { TextContent } from '../text/text_content.jsx';
18
18
  import {
19
19
  MarkdownBlockQuote,
20
20
  MarkdownCode,
21
21
  MarkdownLink,
22
22
  MarkdownTable,
23
- } from './simple_markdown_components';
23
+ } from './simple_markdown_components.jsx';
24
24
 
25
25
  export type SimpleMarkdownComponents = Components;
26
26
 
@@ -5,17 +5,17 @@ import styled from 'styled-components';
5
5
 
6
6
  import { CheckIcon, LinkIcon } from '@apify/ui-icons';
7
7
 
8
- import { theme } from '../../design_system/theme';
9
- import type { WithOptional } from '../../type_utils';
10
- import { useCopyToClipboard } from '../../utils';
11
- import { Box } from '../box';
12
- import { CodeBlock, InlineCode, OneLineCode } from '../code';
13
- import type { LinkProps } from '../link';
14
- import { Link } from '../link';
15
- import { slugifyHeadingChildren } from '../readme_renderer/utils';
16
- import { Heading } from '../text';
17
- import type { HeadingSharedProps } from '../text/heading_shared';
18
- import type { SharedTextProps, SharedTextSize } from '../text/text_shared';
8
+ import { theme } from '../../design_system/theme.js';
9
+ import type { WithOptional } from '../../type_utils.js';
10
+ import { useCopyToClipboard } from '../../utils/index.js';
11
+ import { Box } from '../box.jsx';
12
+ import { CodeBlock, InlineCode, OneLineCode } from '../code/index.js';
13
+ import type { LinkProps } from '../link.jsx';
14
+ import { Link } from '../link.jsx';
15
+ import { slugifyHeadingChildren } from '../readme_renderer/utils.jsx';
16
+ import type { HeadingSharedProps } from '../text/heading_shared.jsx';
17
+ import { Heading } from '../text/index.js';
18
+ import type { SharedTextProps, SharedTextSize } from '../text/text_shared.jsx';
19
19
 
20
20
  const simpleMarkdownClassNames = {
21
21
  HEADING_ICON_LINK: 'headingIconLink',
@@ -257,7 +257,7 @@ export const MarkdownLink: React.FC<WithOptional<LinkProps, 'to'>> = ({
257
257
  return (to && typeof to === 'string') ? (
258
258
  <StyledMarkdownLink to={to} hideExternalIcon={true} rel={rel} className={className}>{children}</StyledMarkdownLink>
259
259
  ) : (
260
- <span>{children}</span> // Invalid links can be rendered as a regular span instead
260
+ (<span>{children}</span>) // Invalid links can be rendered as a regular span instead
261
261
  );
262
262
  };
263
263
 
@@ -3,10 +3,10 @@ import styled, { css, type FlattenSimpleInterpolation } from 'styled-components'
3
3
 
4
4
  import type { IconComponent, IconSize } from '@apify/ui-icons';
5
5
 
6
- import { theme } from '../design_system/theme';
7
- import type { WithTransientProps } from '../type_utils';
8
- import { Box, type MarginSpacingProps, type RegularBoxProps } from './box';
9
- import { Link, type RegularLinkProps } from './link';
6
+ import { theme } from '../design_system/theme.js';
7
+ import type { WithTransientProps } from '../type_utils.js';
8
+ import { Box, type MarginSpacingProps, type RegularBoxProps } from './box.jsx';
9
+ import { Link, type RegularLinkProps } from './link.jsx';
10
10
 
11
11
  type TagSize = typeof TAG_SIZES[number];
12
12
 
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
- import { theme } from '../../design_system/theme';
5
- import type { WithTransientProps } from '../../type_utils';
6
- import type { TextBaseProps } from './text_base';
7
- import { TextBaseComponent } from './text_base';
4
+ import { theme } from '../../design_system/theme.js';
5
+ import type { WithTransientProps } from '../../type_utils.js';
6
+ import type { TextBaseProps } from './text_base.jsx';
7
+ import { TextBaseComponent } from './text_base.jsx';
8
8
 
9
9
  type HeadingContentType = 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
10
10
 
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
- import { theme } from '../../design_system/theme';
5
- import type { WithTransientProps } from '../../type_utils';
6
- import type { TextBaseProps } from './text_base';
7
- import { TextBaseComponent } from './text_base';
4
+ import { theme } from '../../design_system/theme.js';
5
+ import type { WithTransientProps } from '../../type_utils.js';
6
+ import type { TextBaseProps } from './text_base.jsx';
7
+ import { TextBaseComponent } from './text_base.jsx';
8
8
 
9
9
  type HeadingMarketingType = 'titleXs' | 'titleS' | 'titleM' | 'titleL' | 'titleXl' | 'title2xl' | 'title3xl';
10
10
 
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
- import { theme } from '../../design_system/theme';
5
- import type { WithTransientProps } from '../../type_utils';
6
- import type { TextBaseProps } from './text_base';
7
- import { TextBaseComponent } from './text_base';
4
+ import { theme } from '../../design_system/theme.js';
5
+ import type { WithTransientProps } from '../../type_utils.js';
6
+ import type { TextBaseProps } from './text_base.jsx';
7
+ import { TextBaseComponent } from './text_base.jsx';
8
8
 
9
9
  type HeadingSharedType = 'titleXs' | 'titleS' | 'titleM' | 'titleL' | 'titleXl' | 'title2xl' | 'title3xl';
10
10