@apify/ui-library 1.138.0 → 1.138.1

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 (339) hide show
  1. package/README.md +3 -3
  2. package/dist/src/components/action_link.d.ts.map +1 -1
  3. package/dist/src/components/action_link.js +3 -3
  4. package/dist/src/components/action_link.js.map +1 -1
  5. package/dist/src/components/actor_template_card.d.ts.map +1 -1
  6. package/dist/src/components/actor_template_card.js +3 -3
  7. package/dist/src/components/actor_template_card.js.map +1 -1
  8. package/dist/src/components/avatar/actor_avatar.d.ts.map +1 -1
  9. package/dist/src/components/avatar/actor_avatar.js +3 -3
  10. package/dist/src/components/avatar/actor_avatar.js.map +1 -1
  11. package/dist/src/components/avatar/boring_avatar.d.ts.map +1 -1
  12. package/dist/src/components/avatar/boring_avatar.js +8 -7
  13. package/dist/src/components/avatar/boring_avatar.js.map +1 -1
  14. package/dist/src/components/avatar/user_avatar.d.ts.map +1 -1
  15. package/dist/src/components/avatar/user_avatar.js +1 -1
  16. package/dist/src/components/avatar/user_avatar.js.map +1 -1
  17. package/dist/src/components/badge.d.ts.map +1 -1
  18. package/dist/src/components/badge.js +10 -3
  19. package/dist/src/components/badge.js.map +1 -1
  20. package/dist/src/components/banner.d.ts.map +1 -1
  21. package/dist/src/components/banner.js +4 -3
  22. package/dist/src/components/banner.js.map +1 -1
  23. package/dist/src/components/blog_article.d.ts.map +1 -1
  24. package/dist/src/components/blog_article.js +2 -3
  25. package/dist/src/components/blog_article.js.map +1 -1
  26. package/dist/src/components/box.d.ts.map +1 -1
  27. package/dist/src/components/box.js +32 -24
  28. package/dist/src/components/box.js.map +1 -1
  29. package/dist/src/components/breadcrumb/breadcrumb.d.ts.map +1 -1
  30. package/dist/src/components/breadcrumb/breadcrumb.js +1 -1
  31. package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
  32. package/dist/src/components/button.d.ts.map +1 -1
  33. package/dist/src/components/button.js +12 -9
  34. package/dist/src/components/button.js.map +1 -1
  35. package/dist/src/components/card_container.d.ts.map +1 -1
  36. package/dist/src/components/card_container.js +5 -3
  37. package/dist/src/components/card_container.js.map +1 -1
  38. package/dist/src/components/checkbox/checkbox.d.ts.map +1 -1
  39. package/dist/src/components/checkbox/checkbox.js +1 -1
  40. package/dist/src/components/checkbox/checkbox.js.map +1 -1
  41. package/dist/src/components/checkbox/checkbox.style.d.ts.map +1 -1
  42. package/dist/src/components/checkbox/checkbox.style.js +7 -4
  43. package/dist/src/components/checkbox/checkbox.style.js.map +1 -1
  44. package/dist/src/components/chip.d.ts.map +1 -1
  45. package/dist/src/components/chip.js +1 -1
  46. package/dist/src/components/chip.js.map +1 -1
  47. package/dist/src/components/code/action_button.d.ts.map +1 -1
  48. package/dist/src/components/code/action_button.js +5 -5
  49. package/dist/src/components/code/action_button.js.map +1 -1
  50. package/dist/src/components/code/code_block/code_block.d.ts.map +1 -1
  51. package/dist/src/components/code/code_block/code_block.js +19 -8
  52. package/dist/src/components/code/code_block/code_block.js.map +1 -1
  53. package/dist/src/components/code/code_block/code_block.styled.d.ts.map +1 -1
  54. package/dist/src/components/code/code_block/code_block.styled.js +18 -15
  55. package/dist/src/components/code/code_block/code_block.styled.js.map +1 -1
  56. package/dist/src/components/code/code_block/code_block_with_tabs.d.ts.map +1 -1
  57. package/dist/src/components/code/code_block/code_block_with_tabs.js +10 -8
  58. package/dist/src/components/code/code_block/code_block_with_tabs.js.map +1 -1
  59. package/dist/src/components/code/code_block/utils.d.ts.map +1 -1
  60. package/dist/src/components/code/code_block/utils.js.map +1 -1
  61. package/dist/src/components/code/inline_code/inline_code.d.ts.map +1 -1
  62. package/dist/src/components/code/inline_code/inline_code.js +2 -2
  63. package/dist/src/components/code/inline_code/inline_code.js.map +1 -1
  64. package/dist/src/components/code/one_light_theme.d.ts.map +1 -1
  65. package/dist/src/components/code/one_light_theme.js +2 -17
  66. package/dist/src/components/code/one_light_theme.js.map +1 -1
  67. package/dist/src/components/code/one_line_code/one_line_code.d.ts.map +1 -1
  68. package/dist/src/components/code/one_line_code/one_line_code.js +11 -14
  69. package/dist/src/components/code/one_line_code/one_line_code.js.map +1 -1
  70. package/dist/src/components/code/prism_highlighter.d.ts.map +1 -1
  71. package/dist/src/components/code/prism_highlighter.js +35 -27
  72. package/dist/src/components/code/prism_highlighter.js.map +1 -1
  73. package/dist/src/components/code/prism_python.js.map +1 -1
  74. package/dist/src/components/collapsible_card/collapsible_card.d.ts.map +1 -1
  75. package/dist/src/components/collapsible_card/collapsible_card.js +7 -6
  76. package/dist/src/components/collapsible_card/collapsible_card.js.map +1 -1
  77. package/dist/src/components/color_wheel_gradient.d.ts.map +1 -1
  78. package/dist/src/components/color_wheel_gradient.js +4 -2
  79. package/dist/src/components/color_wheel_gradient.js.map +1 -1
  80. package/dist/src/components/floating/floating_component_base.d.ts +1 -1
  81. package/dist/src/components/floating/floating_component_base.d.ts.map +1 -1
  82. package/dist/src/components/floating/floating_component_base.js +3 -5
  83. package/dist/src/components/floating/floating_component_base.js.map +1 -1
  84. package/dist/src/components/floating/menu.d.ts.map +1 -1
  85. package/dist/src/components/floating/menu.js +11 -5
  86. package/dist/src/components/floating/menu.js.map +1 -1
  87. package/dist/src/components/floating/menu_common.d.ts +4 -4
  88. package/dist/src/components/floating/menu_common.d.ts.map +1 -1
  89. package/dist/src/components/floating/menu_common.js +1 -1
  90. package/dist/src/components/floating/menu_common.js.map +1 -1
  91. package/dist/src/components/floating/menu_components.d.ts.map +1 -1
  92. package/dist/src/components/floating/menu_components.js +9 -7
  93. package/dist/src/components/floating/menu_components.js.map +1 -1
  94. package/dist/src/components/floating/tooltip.d.ts +2 -2
  95. package/dist/src/components/floating/tooltip.d.ts.map +1 -1
  96. package/dist/src/components/floating/tooltip.js +10 -9
  97. package/dist/src/components/floating/tooltip.js.map +1 -1
  98. package/dist/src/components/floating/tooltip_content.d.ts.map +1 -1
  99. package/dist/src/components/floating/tooltip_content.js +3 -3
  100. package/dist/src/components/floating/tooltip_content.js.map +1 -1
  101. package/dist/src/components/icon_button.d.ts.map +1 -1
  102. package/dist/src/components/icon_button.js +10 -8
  103. package/dist/src/components/icon_button.js.map +1 -1
  104. package/dist/src/components/image.d.ts.map +1 -1
  105. package/dist/src/components/image.js +1 -1
  106. package/dist/src/components/image.js.map +1 -1
  107. package/dist/src/components/link.d.ts.map +1 -1
  108. package/dist/src/components/link.js +5 -5
  109. package/dist/src/components/link.js.map +1 -1
  110. package/dist/src/components/message.d.ts.map +1 -1
  111. package/dist/src/components/message.js +21 -21
  112. package/dist/src/components/message.js.map +1 -1
  113. package/dist/src/components/rating.d.ts.map +1 -1
  114. package/dist/src/components/rating.js +5 -6
  115. package/dist/src/components/rating.js.map +1 -1
  116. package/dist/src/components/readme_renderer/pythonize_value.d.ts.map +1 -1
  117. package/dist/src/components/readme_renderer/pythonize_value.js +10 -6
  118. package/dist/src/components/readme_renderer/pythonize_value.js.map +1 -1
  119. package/dist/src/components/readme_renderer/table_of_contents.d.ts.map +1 -1
  120. package/dist/src/components/readme_renderer/table_of_contents.js +16 -15
  121. package/dist/src/components/readme_renderer/table_of_contents.js.map +1 -1
  122. package/dist/src/components/readme_renderer/utils.d.ts.map +1 -1
  123. package/dist/src/components/readme_renderer/utils.js +6 -6
  124. package/dist/src/components/readme_renderer/utils.js.map +1 -1
  125. package/dist/src/components/select/select.d.ts.map +1 -1
  126. package/dist/src/components/select/select.js +14 -13
  127. package/dist/src/components/select/select.js.map +1 -1
  128. package/dist/src/components/shortcut.d.ts +1 -1
  129. package/dist/src/components/shortcut.d.ts.map +1 -1
  130. package/dist/src/components/shortcut.js +2 -2
  131. package/dist/src/components/shortcut.js.map +1 -1
  132. package/dist/src/components/simple_markdown/simple_markdown.d.ts.map +1 -1
  133. package/dist/src/components/simple_markdown/simple_markdown.js +32 -35
  134. package/dist/src/components/simple_markdown/simple_markdown.js.map +1 -1
  135. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
  136. package/dist/src/components/simple_markdown/simple_markdown_components.js +26 -12
  137. package/dist/src/components/simple_markdown/simple_markdown_components.js.map +1 -1
  138. package/dist/src/components/spinner.d.ts.map +1 -1
  139. package/dist/src/components/spinner.js +3 -1
  140. package/dist/src/components/spinner.js.map +1 -1
  141. package/dist/src/components/store/store_actor_header.d.ts.map +1 -1
  142. package/dist/src/components/store/store_actor_header.js +1 -1
  143. package/dist/src/components/store/store_actor_header.js.map +1 -1
  144. package/dist/src/components/switch/switch.d.ts.map +1 -1
  145. package/dist/src/components/switch/switch.js +1 -1
  146. package/dist/src/components/switch/switch.js.map +1 -1
  147. package/dist/src/components/switch/switch.style.d.ts.map +1 -1
  148. package/dist/src/components/switch/switch.style.js +5 -3
  149. package/dist/src/components/switch/switch.style.js.map +1 -1
  150. package/dist/src/components/table/table.styled.js +3 -3
  151. package/dist/src/components/table/table.styled.js.map +1 -1
  152. package/dist/src/components/table/table_error_row.d.ts.map +1 -1
  153. package/dist/src/components/table/table_error_row.js +1 -1
  154. package/dist/src/components/table/table_error_row.js.map +1 -1
  155. package/dist/src/components/table/table_row.d.ts.map +1 -1
  156. package/dist/src/components/table/table_row.js +1 -1
  157. package/dist/src/components/table/table_row.js.map +1 -1
  158. package/dist/src/components/table/table_wrapper.d.ts.map +1 -1
  159. package/dist/src/components/table/table_wrapper.js +3 -3
  160. package/dist/src/components/table/table_wrapper.js.map +1 -1
  161. package/dist/src/components/tabs/tab.d.ts.map +1 -1
  162. package/dist/src/components/tabs/tab.js +7 -5
  163. package/dist/src/components/tabs/tab.js.map +1 -1
  164. package/dist/src/components/tabs/tabs.d.ts.map +1 -1
  165. package/dist/src/components/tabs/tabs.js +3 -3
  166. package/dist/src/components/tabs/tabs.js.map +1 -1
  167. package/dist/src/components/tag.d.ts +1 -1
  168. package/dist/src/components/tag.d.ts.map +1 -1
  169. package/dist/src/components/tag.js +1 -1
  170. package/dist/src/components/tag.js.map +1 -1
  171. package/dist/src/components/text/heading_content.d.ts.map +1 -1
  172. package/dist/src/components/text/heading_content.js +1 -1
  173. package/dist/src/components/text/heading_content.js.map +1 -1
  174. package/dist/src/components/text/heading_marketing.d.ts.map +1 -1
  175. package/dist/src/components/text/heading_marketing.js +1 -1
  176. package/dist/src/components/text/heading_marketing.js.map +1 -1
  177. package/dist/src/components/text/heading_shared.d.ts.map +1 -1
  178. package/dist/src/components/text/heading_shared.js +1 -1
  179. package/dist/src/components/text/heading_shared.js.map +1 -1
  180. package/dist/src/components/text/index.d.ts +1 -1
  181. package/dist/src/components/text/index.d.ts.map +1 -1
  182. package/dist/src/components/text/text_base.d.ts.map +1 -1
  183. package/dist/src/components/text/text_base.js +16 -12
  184. package/dist/src/components/text/text_base.js.map +1 -1
  185. package/dist/src/components/text/text_content.d.ts.map +1 -1
  186. package/dist/src/components/text/text_content.js +1 -1
  187. package/dist/src/components/text/text_content.js.map +1 -1
  188. package/dist/src/components/text/text_marketing.d.ts.map +1 -1
  189. package/dist/src/components/text/text_marketing.js +1 -1
  190. package/dist/src/components/text/text_marketing.js.map +1 -1
  191. package/dist/src/components/text/text_shared.d.ts +1 -1
  192. package/dist/src/components/text/text_shared.d.ts.map +1 -1
  193. package/dist/src/components/text/text_shared.js +1 -1
  194. package/dist/src/components/text/text_shared.js.map +1 -1
  195. package/dist/src/components/tile/horizontal_tile.d.ts.map +1 -1
  196. package/dist/src/components/tile/horizontal_tile.js +3 -2
  197. package/dist/src/components/tile/horizontal_tile.js.map +1 -1
  198. package/dist/src/components/tile/shared.d.ts +1 -1
  199. package/dist/src/components/tile/shared.d.ts.map +1 -1
  200. package/dist/src/components/tile/vertical_tile.d.ts.map +1 -1
  201. package/dist/src/components/tile/vertical_tile.js +3 -2
  202. package/dist/src/components/tile/vertical_tile.js.map +1 -1
  203. package/dist/src/components/to_consolidate/card.d.ts.map +1 -1
  204. package/dist/src/components/to_consolidate/card.js +20 -15
  205. package/dist/src/components/to_consolidate/card.js.map +1 -1
  206. package/dist/src/components/to_consolidate/markdown.d.ts.map +1 -1
  207. package/dist/src/components/to_consolidate/markdown.js +36 -20
  208. package/dist/src/components/to_consolidate/markdown.js.map +1 -1
  209. package/dist/src/components/to_consolidate/pagination.d.ts.map +1 -1
  210. package/dist/src/components/to_consolidate/pagination.js +6 -6
  211. package/dist/src/components/to_consolidate/pagination.js.map +1 -1
  212. package/dist/src/components/to_consolidate/tab_number_chip.d.ts.map +1 -1
  213. package/dist/src/components/to_consolidate/tab_number_chip.js +1 -1
  214. package/dist/src/components/to_consolidate/tab_number_chip.js.map +1 -1
  215. package/dist/src/design_system/theme.d.ts.map +1 -1
  216. package/dist/src/design_system/theme.js +1 -1
  217. package/dist/src/design_system/theme.js.map +1 -1
  218. package/dist/src/design_system/typography_theme.d.ts.map +1 -1
  219. package/dist/src/design_system/typography_theme.js.map +1 -1
  220. package/dist/src/ui_dependency_provider.d.ts.map +1 -1
  221. package/dist/src/ui_dependency_provider.js +2 -2
  222. package/dist/src/ui_dependency_provider.js.map +1 -1
  223. package/dist/tsconfig.build.tsbuildinfo +1 -1
  224. package/package.json +8 -6
  225. package/src/codemods/generate_typograpy_tokens_files.mjs +23 -28
  226. package/src/components/action_link.tsx +13 -23
  227. package/src/components/actor_template_card.stories.tsx +20 -14
  228. package/src/components/actor_template_card.tsx +4 -21
  229. package/src/components/avatar/actor_avatar.tsx +3 -4
  230. package/src/components/avatar/boring_avatar.tsx +134 -167
  231. package/src/components/avatar/user_avatar.stories.tsx +1 -5
  232. package/src/components/avatar/user_avatar.tsx +6 -20
  233. package/src/components/badge.stories.jsx +26 -40
  234. package/src/components/badge.tsx +37 -26
  235. package/src/components/banner.stories.tsx +10 -28
  236. package/src/components/banner.tsx +11 -14
  237. package/src/components/blog_article.tsx +6 -4
  238. package/src/components/box.tsx +90 -89
  239. package/src/components/breadcrumb/breadcrumb.stories.tsx +2 -8
  240. package/src/components/breadcrumb/breadcrumb.tsx +7 -5
  241. package/src/components/button.stories.tsx +70 -66
  242. package/src/components/button.tsx +33 -39
  243. package/src/components/card_container.stories.tsx +28 -29
  244. package/src/components/card_container.tsx +15 -10
  245. package/src/components/checkbox/checkbox.stories.tsx +52 -17
  246. package/src/components/checkbox/checkbox.style.ts +7 -4
  247. package/src/components/checkbox/checkbox.tsx +6 -9
  248. package/src/components/chip.stories.tsx +15 -5
  249. package/src/components/chip.tsx +26 -16
  250. package/src/components/code/action_button.tsx +10 -12
  251. package/src/components/code/code_block/code_block.stories.jsx +7 -25
  252. package/src/components/code/code_block/code_block.styled.tsx +26 -19
  253. package/src/components/code/code_block/code_block.tsx +26 -24
  254. package/src/components/code/code_block/code_block_with_tabs.stories.tsx +12 -18
  255. package/src/components/code/code_block/code_block_with_tabs.tsx +30 -16
  256. package/src/components/code/code_block/utils.tsx +23 -15
  257. package/src/components/code/inline_code/inline_code.stories.tsx +18 -10
  258. package/src/components/code/inline_code/inline_code.tsx +16 -21
  259. package/src/components/code/one_light_theme.ts +2 -17
  260. package/src/components/code/one_line_code/one_line_code.stories.tsx +31 -19
  261. package/src/components/code/one_line_code/one_line_code.tsx +19 -30
  262. package/src/components/code/prism_highlighter.tsx +117 -109
  263. package/src/components/code/prism_python.ts +4 -2
  264. package/src/components/collapsible_card/collapsible_card.stories.tsx +2 -1
  265. package/src/components/collapsible_card/collapsible_card.tsx +30 -15
  266. package/src/components/color_wheel_gradient.tsx +9 -7
  267. package/src/components/floating/floating_component_base.tsx +16 -9
  268. package/src/components/floating/menu.tsx +37 -46
  269. package/src/components/floating/menu_common.tsx +24 -30
  270. package/src/components/floating/menu_components.tsx +24 -24
  271. package/src/components/floating/tooltip.stories.jsx +85 -68
  272. package/src/components/floating/tooltip.tsx +32 -39
  273. package/src/components/floating/tooltip_content.tsx +8 -16
  274. package/src/components/icon_button.stories.tsx +176 -188
  275. package/src/components/icon_button.tsx +72 -58
  276. package/src/components/image.tsx +5 -11
  277. package/src/components/link.stories.tsx +4 -2
  278. package/src/components/link.tsx +70 -70
  279. package/src/components/message.stories.jsx +35 -33
  280. package/src/components/message.tsx +45 -45
  281. package/src/components/rating.tsx +37 -44
  282. package/src/components/readme_renderer/pythonize_value.ts +19 -7
  283. package/src/components/readme_renderer/table_of_contents.stories.tsx +40 -15
  284. package/src/components/readme_renderer/table_of_contents.tsx +87 -85
  285. package/src/components/readme_renderer/utils.tsx +17 -13
  286. package/src/components/select/select.stories.tsx +19 -46
  287. package/src/components/select/select.tsx +103 -101
  288. package/src/components/shortcut.stories.jsx +23 -14
  289. package/src/components/shortcut.tsx +2 -13
  290. package/src/components/simple_markdown/simple_markdown.stories.tsx +5 -10
  291. package/src/components/simple_markdown/simple_markdown.tsx +152 -55
  292. package/src/components/simple_markdown/simple_markdown_components.tsx +49 -59
  293. package/src/components/spinner.stories.tsx +14 -8
  294. package/src/components/spinner.tsx +5 -3
  295. package/src/components/store/store_actor_header.stories.tsx +2 -11
  296. package/src/components/store/store_actor_header.tsx +20 -16
  297. package/src/components/switch/switch.stories.jsx +4 -12
  298. package/src/components/switch/switch.style.ts +5 -3
  299. package/src/components/switch/switch.tsx +3 -13
  300. package/src/components/table/table.stories.tsx +5 -2
  301. package/src/components/table/table.styled.ts +3 -3
  302. package/src/components/table/table_error_row.tsx +5 -1
  303. package/src/components/table/table_row.tsx +1 -5
  304. package/src/components/table/table_wrapper.tsx +12 -12
  305. package/src/components/tabs/tab.stories.tsx +1 -5
  306. package/src/components/tabs/tab.tsx +33 -13
  307. package/src/components/tabs/tabs.tsx +14 -18
  308. package/src/components/tag.stories.jsx +35 -45
  309. package/src/components/tag.tsx +18 -22
  310. package/src/components/text/heading_content.stories.tsx +13 -24
  311. package/src/components/text/heading_content.tsx +3 -7
  312. package/src/components/text/heading_marketing.stories.tsx +4 -3
  313. package/src/components/text/heading_marketing.tsx +12 -8
  314. package/src/components/text/heading_shared.stories.tsx +3 -2
  315. package/src/components/text/heading_shared.tsx +3 -7
  316. package/src/components/text/index.ts +1 -3
  317. package/src/components/text/text_base.tsx +29 -35
  318. package/src/components/text/text_content.stories.tsx +17 -13
  319. package/src/components/text/text_content.tsx +20 -23
  320. package/src/components/text/text_marketing.stories.tsx +4 -3
  321. package/src/components/text/text_marketing.tsx +20 -23
  322. package/src/components/text/text_shared.stories.tsx +4 -3
  323. package/src/components/text/text_shared.tsx +23 -27
  324. package/src/components/tile/horizontal_tile.stories.tsx +6 -2
  325. package/src/components/tile/horizontal_tile.tsx +5 -15
  326. package/src/components/tile/shared.ts +5 -5
  327. package/src/components/tile/vertical_tile.stories.tsx +10 -18
  328. package/src/components/tile/vertical_tile.tsx +4 -9
  329. package/src/components/to_consolidate/card.stories.tsx +3 -1
  330. package/src/components/to_consolidate/card.tsx +67 -58
  331. package/src/components/to_consolidate/markdown.tsx +76 -62
  332. package/src/components/to_consolidate/pagination.tsx +11 -15
  333. package/src/components/to_consolidate/tab_number_chip.tsx +5 -6
  334. package/src/design_system/colors/build_color_tokens.js +7 -15
  335. package/src/design_system/theme.ts +1 -8
  336. package/src/design_system/tokens/radiuses.stories.tsx +9 -1
  337. package/src/design_system/tokens/shadows.stories.tsx +3 -1
  338. package/src/design_system/typography_theme.ts +78 -39
  339. package/src/ui_dependency_provider.tsx +16 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/ui-library",
3
- "version": "1.138.0",
3
+ "version": "1.138.1",
4
4
  "description": "React UI library used by apify.com",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -14,21 +14,22 @@
14
14
  "test": "echo \"Warning: no test specified\" && exit 0",
15
15
  "lint": "oxlint --type-aware .",
16
16
  "lint:fix": "oxlint --type-aware --fix .",
17
- "build": "npm run clean && npm run compile",
17
+ "build": "pnpm run clean && pnpm run compile",
18
18
  "clean": "rimraf ./dist",
19
19
  "compile": "tsc -p tsconfig.build.json",
20
20
  "type-check": "tsc --noEmit",
21
- "generate-theme": "node src/codemods/generate_typograpy_tokens_files.mjs && npm run lint:fix",
21
+ "generate-theme": "node src/codemods/generate_typograpy_tokens_files.mjs && pnpm run lint:fix",
22
22
  "build-color-tokens": "node src/design_system/colors/build_color_tokens.js",
23
- "postpublish": "npm run clean"
23
+ "postpublish": "pnpm run clean"
24
24
  },
25
25
  "//": [
26
26
  "Storybook for the components lives in a separate package ui-storybook.",
27
27
  "It's not nice, but helps us to get around the problem of multiple react instances."
28
28
  ],
29
29
  "dependencies": {
30
- "@apify/ui-icons": "^1.38.0",
30
+ "@apify/ui-icons": "^1.38.1",
31
31
  "@floating-ui/react": "^0.27.19",
32
+ "@floating-ui/react-dom": "^2.1.8",
32
33
  "@radix-ui/react-checkbox": "^1.3.3",
33
34
  "@radix-ui/react-collapsible": "^1.1.12",
34
35
  "@radix-ui/react-switch": "^1.2.6",
@@ -57,6 +58,7 @@
57
58
  "styled-components": "^6.1.19"
58
59
  },
59
60
  "devDependencies": {
61
+ "@apify-packages/types": "^3.353.1",
60
62
  "@storybook/react-vite": "^10.3.5",
61
63
  "@types/hast": "^3.0.4",
62
64
  "@types/lodash": "^4.14.200",
@@ -70,5 +72,5 @@
70
72
  "src",
71
73
  "style"
72
74
  ],
73
- "gitHead": "459dde84808a04317ad05d19a4b0b48e4f7f2633"
75
+ "gitHead": "1c034549fdf20fd6d95643da8db6940cd850bfdc"
74
76
  }
@@ -15,12 +15,7 @@ const fontFamilies = {
15
15
  };
16
16
 
17
17
  const transformTokenProperties = (token) => {
18
- const {
19
- fontWeight,
20
- fontSize,
21
- lineHeight,
22
- fontFamily,
23
- } = token.value;
18
+ const { fontWeight, fontSize, lineHeight, fontFamily } = token.value;
24
19
 
25
20
  // Convert font family name to font family value
26
21
  let fontFamilyValue;
@@ -29,10 +24,12 @@ const transformTokenProperties = (token) => {
29
24
  if (fontFamilyNameParts.length === 1) {
30
25
  fontFamilyValue = fontFamilies[fontFamilyNameParts[0].toLowerCase()];
31
26
  } else {
32
- const fontFamilyIndex = fontFamilyNameParts.map((fontFamilyNamePart, i) => {
33
- if (i === 0) return fontFamilyNamePart.toLowerCase();
34
- return fontFamilyNamePart;
35
- }).join('');
27
+ const fontFamilyIndex = fontFamilyNameParts
28
+ .map((fontFamilyNamePart, i) => {
29
+ if (i === 0) return fontFamilyNamePart.toLowerCase();
30
+ return fontFamilyNamePart;
31
+ })
32
+ .join('');
36
33
 
37
34
  fontFamilyValue = fontFamilies[fontFamilyIndex];
38
35
  }
@@ -42,7 +39,7 @@ const transformTokenProperties = (token) => {
42
39
 
43
40
  const transformTokenName = (tokenName) => {
44
41
  const [token, variant] = tokenName.split('-');
45
- return (variant ? `${token}${variant.charAt(0).toUpperCase() + variant.slice(1)}` : token);
42
+ return variant ? `${token}${variant.charAt(0).toUpperCase() + variant.slice(1)}` : token;
46
43
  };
47
44
 
48
45
  const extractDeviceTokensDefinitions = (tokens) => {
@@ -97,32 +94,30 @@ const createTokensCode = (tokens) => {
97
94
  const deviceItemsArray = [];
98
95
 
99
96
  for (const [tokenName, tokenValue] of Object.entries(deviceTokens)) {
100
- deviceItemsArray.push(builders.property(
101
- 'init',
102
- builders.identifier(tokenName),
103
- builders.literal(tokenValue),
104
- ));
97
+ deviceItemsArray.push(
98
+ builders.property('init', builders.identifier(tokenName), builders.literal(tokenValue)),
99
+ );
105
100
  }
106
- devicesArray.push(builders.property(
107
- 'init',
108
- builders.identifier(device),
109
- builders.objectExpression(deviceItemsArray),
110
- ));
101
+ devicesArray.push(
102
+ builders.property('init', builders.identifier(device), builders.objectExpression(deviceItemsArray)),
103
+ );
111
104
  }
112
105
 
113
- variantsArray.push(builders.property(
114
- 'init',
115
- builders.identifier(tokenVariant),
116
- builders.objectExpression(devicesArray),
117
- ));
106
+ variantsArray.push(
107
+ builders.property('init', builders.identifier(tokenVariant), builders.objectExpression(devicesArray)),
108
+ );
118
109
  }
119
110
 
120
111
  const exportDeclaration = builders.exportNamedDeclaration(
121
112
  builders.variableDeclaration('const', [
122
113
  builders.variableDeclarator(
123
114
  builders.identifier('typographyTokens'),
124
- builders.tsAsExpression(builders.objectExpression(variantsArray), builders.tsTypeReference(builders.identifier('const'))),
125
- )]),
115
+ builders.tsAsExpression(
116
+ builders.objectExpression(variantsArray),
117
+ builders.tsTypeReference(builders.identifier('const')),
118
+ ),
119
+ ),
120
+ ]),
126
121
  [],
127
122
  );
128
123
 
@@ -34,12 +34,10 @@ export const ActionBox: FC<RequiredBy<BoxProps, 'onClick'> & { contentProps?: ob
34
34
  ...rest
35
35
  }) => {
36
36
  return (
37
- <StyledGuidepost
38
- forwardedAs={as}
39
- $isBackLink={false}
40
- {...rest}
41
- >
42
- <Heading as='span' type='titleM' {...contentProps}>{children}</Heading>
37
+ <StyledGuidepost forwardedAs={as} $isBackLink={false} {...rest}>
38
+ <Heading as="span" type="titleM" {...contentProps}>
39
+ {children}
40
+ </Heading>
43
41
  <ArrowRightIcon size="16" />
44
42
  </StyledGuidepost>
45
43
  );
@@ -52,30 +50,22 @@ export const ActionLink: FC<LinkProps & { contentProps?: object }> = ({
52
50
  ...rest
53
51
  }) => {
54
52
  return (
55
- <StyledGuidepost
56
- forwardedAs={as}
57
- $isBackLink={false}
58
- {...rest}
59
- >
60
- <Heading as='span' type='titleM' {...contentProps}>{children}</Heading>
53
+ <StyledGuidepost forwardedAs={as} $isBackLink={false} {...rest}>
54
+ <Heading as="span" type="titleM" {...contentProps}>
55
+ {children}
56
+ </Heading>
61
57
  <ArrowRightIcon size="16" />
62
58
  </StyledGuidepost>
63
59
  );
64
60
  };
65
61
 
66
- export const BackLink: React.FC<LinkProps> = ({
67
- children,
68
- as,
69
- ...rest
70
- }) => {
62
+ export const BackLink: React.FC<LinkProps> = ({ children, as, ...rest }) => {
71
63
  return (
72
- <StyledGuidepost
73
- forwardedAs={as || Link}
74
- $isBackLink={true}
75
- {...rest}
76
- >
64
+ <StyledGuidepost forwardedAs={as || Link} $isBackLink={true} {...rest}>
77
65
  <ArrowLeftIcon size="16" />
78
- <Heading as='span' type='titleM'>{children}</Heading>
66
+ <Heading as="span" type="titleM">
67
+ {children}
68
+ </Heading>
79
69
  </StyledGuidepost>
80
70
  );
81
71
  };
@@ -18,9 +18,7 @@ const mockIcons = [
18
18
  <img key="2" src="https://apify.com/img/template-icons/typescript.svg" alt="Icon B" />,
19
19
  ];
20
20
 
21
- const singleIcon = [
22
- <img key="1" src="https://apify.com/img/template-icons/typescript.svg" alt="Single Icon" />,
23
- ];
21
+ const singleIcon = [<img key="1" src="https://apify.com/img/template-icons/typescript.svg" alt="Single Icon" />];
24
22
 
25
23
  const multipleIcons = [
26
24
  <img key="1" src="https://apify.com/img/template-icons/typescript.svg" alt="Icon 1" />,
@@ -67,7 +65,8 @@ export const Default: Story = {
67
65
  args: {
68
66
  id: 'web-scraper',
69
67
  label: 'Web Scraper',
70
- description: 'A versatile web scraper that can extract data from any website. Perfect for beginners and professionals alike.',
68
+ description:
69
+ 'A versatile web scraper that can extract data from any website. Perfect for beginners and professionals alike.',
71
70
  icons: mockIcons,
72
71
  },
73
72
  };
@@ -79,7 +78,8 @@ export const WithStarterBadge: Story = {
79
78
  args: {
80
79
  id: 'simple-scraper',
81
80
  label: 'Simple Website Scraper',
82
- description: 'An easy-to-use scraper designed for beginners. Start scraping websites with minimal configuration.',
81
+ description:
82
+ 'An easy-to-use scraper designed for beginners. Start scraping websites with minimal configuration.',
83
83
  icons: singleIcon,
84
84
  useCases: ['STARTER'],
85
85
  },
@@ -92,7 +92,8 @@ export const WithAIBadge: Story = {
92
92
  args: {
93
93
  id: 'ai-scraper',
94
94
  label: 'AI-Powered Data Extractor',
95
- description: 'Advanced scraper using artificial intelligence to intelligently extract and structure data from complex websites.',
95
+ description:
96
+ 'Advanced scraper using artificial intelligence to intelligently extract and structure data from complex websites.',
96
97
  icons: mockIcons,
97
98
  useCases: ['AI'],
98
99
  },
@@ -105,7 +106,8 @@ export const WithMultipleBadges: Story = {
105
106
  args: {
106
107
  id: 'ai-starter-scraper',
107
108
  label: 'AI Scraper for Beginners',
108
- description: 'An AI-powered scraper designed specifically for newcomers. Get the power of AI with beginner-friendly setup.',
109
+ description:
110
+ 'An AI-powered scraper designed specifically for newcomers. Get the power of AI with beginner-friendly setup.',
109
111
  icons: mockIcons,
110
112
  useCases: ['STARTER', 'AI'],
111
113
  },
@@ -118,7 +120,8 @@ export const WithSingleIcon: Story = {
118
120
  args: {
119
121
  id: 'single-icon-scraper',
120
122
  label: 'E-commerce Scraper',
121
- description: 'Specialized scraper for e-commerce websites. Extract product information, prices, and reviews efficiently.',
123
+ description:
124
+ 'Specialized scraper for e-commerce websites. Extract product information, prices, and reviews efficiently.',
122
125
  icons: singleIcon,
123
126
  useCases: ['STARTER'],
124
127
  },
@@ -131,7 +134,8 @@ export const WithMultipleIcons: Story = {
131
134
  args: {
132
135
  id: 'multi-icon-scraper',
133
136
  label: 'Universal Data Scraper',
134
- description: 'A comprehensive scraper supporting multiple data formats and websites. Works with JSON, XML, HTML, and more.',
137
+ description:
138
+ 'A comprehensive scraper supporting multiple data formats and websites. Works with JSON, XML, HTML, and more.',
135
139
  icons: multipleIcons,
136
140
  useCases: ['AI'],
137
141
  },
@@ -144,10 +148,11 @@ export const WithLongDescription: Story = {
144
148
  args: {
145
149
  id: 'long-description-scraper',
146
150
  label: 'Advanced Web Scraper',
147
- description: 'This is a very comprehensive web scraper that can handle complex websites with dynamic content, '
148
- + 'JavaScript rendering, pagination, infinite scroll, CAPTCHA solving, proxy rotation, and much more. '
149
- + 'It includes advanced features like data validation, duplicate detection, rate limiting, and export to '
150
- + 'multiple formats including CSV, JSON, XML, and direct database connections.',
151
+ description:
152
+ 'This is a very comprehensive web scraper that can handle complex websites with dynamic content, ' +
153
+ 'JavaScript rendering, pagination, infinite scroll, CAPTCHA solving, proxy rotation, and much more. ' +
154
+ 'It includes advanced features like data validation, duplicate detection, rate limiting, and export to ' +
155
+ 'multiple formats including CSV, JSON, XML, and direct database connections.',
151
156
  icons: mockIcons,
152
157
  useCases: ['STARTER', 'AI'],
153
158
  },
@@ -160,7 +165,8 @@ export const WithoutBadges: Story = {
160
165
  args: {
161
166
  id: 'no-badges-scraper',
162
167
  label: 'Basic Web Scraper',
163
- description: 'A straightforward web scraper without any special categorization. Perfect for general-purpose data extraction.',
168
+ description:
169
+ 'A straightforward web scraper without any special categorization. Perfect for general-purpose data extraction.',
164
170
  icons: mockIcons,
165
171
  },
166
172
  };
@@ -65,13 +65,7 @@ const TemplateCardContentWrapper = styled.div`
65
65
  }
66
66
  `;
67
67
 
68
- export const ActorTemplateCard: React.FC<ActorTemplateCardProps> = ({
69
- id,
70
- label,
71
- description,
72
- icons,
73
- useCases,
74
- }) => {
68
+ export const ActorTemplateCard: React.FC<ActorTemplateCardProps> = ({ id, label, description, icons, useCases }) => {
75
69
  const templateCardContent = (
76
70
  <TemplateCardContentWrapper data-test={`actor-template-card-${id}`}>
77
71
  <div className={WrapperClasses.TEMPLATE_CARD_IMAGES}>{icons}</div>
@@ -79,17 +73,12 @@ export const ActorTemplateCard: React.FC<ActorTemplateCardProps> = ({
79
73
  <TextMarketing size="regular" weight="bold">
80
74
  {label}
81
75
  </TextMarketing>
82
- <TextMarketing
83
- size="small"
84
- className={WrapperClasses.TEMPLATE_CARD_DESCRIPTION}
85
- >
76
+ <TextMarketing size="small" className={WrapperClasses.TEMPLATE_CARD_DESCRIPTION}>
86
77
  {description}
87
78
  </TextMarketing>
88
79
  </div>
89
80
  <div className={WrapperClasses.TEMPLATE_CARD_BADGES}>
90
- {useCases?.includes('STARTER') && (
91
- <Badge variant="success">Starter</Badge>
92
- )}
81
+ {useCases?.includes('STARTER') && <Badge variant="success">Starter</Badge>}
93
82
  {useCases?.includes('AI') && (
94
83
  <Badge
95
84
  variant="success"
@@ -106,11 +95,5 @@ export const ActorTemplateCard: React.FC<ActorTemplateCardProps> = ({
106
95
  </TemplateCardContentWrapper>
107
96
  );
108
97
 
109
- return (
110
- <VerticalTile
111
- id={`actor-template-card-${id}`}
112
- content={templateCardContent}
113
- isClickable
114
- />
115
- );
98
+ return <VerticalTile id={`actor-template-card-${id}`} content={templateCardContent} isClickable />;
116
99
  };
@@ -64,11 +64,10 @@ export const ActorAvatarInner: FC<ActorAvatarProps> = ({
64
64
  const { generateProxyImageUrl } = useSharedUiDependencies();
65
65
 
66
66
  const maybeProxiedUrl = useMemo(
67
- () => (
67
+ () =>
68
68
  generateProxyImageUrl && url
69
69
  ? generateProxyImageUrl(url, { resize: { height: size * 2, width: size * 2 } })
70
- : url
71
- ),
70
+ : url,
72
71
  [generateProxyImageUrl, url, size],
73
72
  );
74
73
 
@@ -104,7 +103,7 @@ export const ActorAvatarInner: FC<ActorAvatarProps> = ({
104
103
  return (
105
104
  <StyledImg
106
105
  ref={imageRefCallback}
107
- crossOrigin='anonymous'
106
+ crossOrigin="anonymous"
108
107
  src={maybeProxiedUrl}
109
108
  className={fullClassName}
110
109
  width={size}