@apify/ui-library 1.141.0 → 1.141.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 (472) hide show
  1. package/dist/src/components/{action_link.d.ts → action_link/action_link.d.ts} +2 -2
  2. package/dist/src/components/action_link/action_link.d.ts.map +1 -0
  3. package/dist/src/components/{action_link.js → action_link/action_link.js} +4 -4
  4. package/dist/src/components/action_link/action_link.js.map +1 -0
  5. package/dist/src/components/action_link/index.d.ts +2 -0
  6. package/dist/src/components/action_link/index.d.ts.map +1 -0
  7. package/dist/src/components/action_link/index.js +2 -0
  8. package/dist/src/components/action_link/index.js.map +1 -0
  9. package/dist/src/components/actor_template_card/actor_template_card.d.ts.map +1 -0
  10. package/dist/src/components/{actor_template_card.js → actor_template_card/actor_template_card.js} +4 -4
  11. package/dist/src/components/actor_template_card/actor_template_card.js.map +1 -0
  12. package/dist/src/components/actor_template_card/index.d.ts +2 -0
  13. package/dist/src/components/actor_template_card/index.d.ts.map +1 -0
  14. package/dist/src/components/actor_template_card/index.js +2 -0
  15. package/dist/src/components/actor_template_card/index.js.map +1 -0
  16. package/dist/src/components/{badge.d.ts → badge/badge.d.ts} +2 -2
  17. package/dist/src/components/badge/badge.d.ts.map +1 -0
  18. package/dist/src/components/{badge.js → badge/badge.js} +3 -3
  19. package/dist/src/components/badge/badge.js.map +1 -0
  20. package/dist/src/components/badge/index.d.ts +2 -0
  21. package/dist/src/components/badge/index.d.ts.map +1 -0
  22. package/dist/src/components/badge/index.js +2 -0
  23. package/dist/src/components/badge/index.js.map +1 -0
  24. package/dist/src/components/banner/banner.d.ts.map +1 -0
  25. package/dist/src/components/{banner.js → banner/banner.js} +1 -1
  26. package/dist/src/components/banner/banner.js.map +1 -0
  27. package/dist/src/components/banner/index.d.ts +2 -0
  28. package/dist/src/components/banner/index.d.ts.map +1 -0
  29. package/dist/src/components/banner/index.js +2 -0
  30. package/dist/src/components/banner/index.js.map +1 -0
  31. package/dist/src/components/blog_article/blog_article.d.ts.map +1 -0
  32. package/dist/src/components/{blog_article.js → blog_article/blog_article.js} +1 -1
  33. package/dist/src/components/blog_article/blog_article.js.map +1 -0
  34. package/dist/src/components/blog_article/index.d.ts +2 -0
  35. package/dist/src/components/blog_article/index.d.ts.map +1 -0
  36. package/dist/src/components/blog_article/index.js +2 -0
  37. package/dist/src/components/blog_article/index.js.map +1 -0
  38. package/dist/src/components/{box.d.ts → box/box.d.ts} +1 -1
  39. package/dist/src/components/box/box.d.ts.map +1 -0
  40. package/dist/src/components/{box.js → box/box.js} +1 -1
  41. package/dist/src/components/box/box.js.map +1 -0
  42. package/dist/src/components/box/index.d.ts +2 -0
  43. package/dist/src/components/box/index.d.ts.map +1 -0
  44. package/dist/src/components/box/index.js +2 -0
  45. package/dist/src/components/box/index.js.map +1 -0
  46. package/dist/src/components/breadcrumb/breadcrumb.js +3 -3
  47. package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
  48. package/dist/src/components/browser_window/browser_window.js +1 -1
  49. package/dist/src/components/browser_window/browser_window.js.map +1 -1
  50. package/dist/src/components/{button.d.ts → button/button.d.ts} +3 -3
  51. package/dist/src/components/button/button.d.ts.map +1 -0
  52. package/dist/src/components/{button.js → button/button.js} +5 -5
  53. package/dist/src/components/button/button.js.map +1 -0
  54. package/dist/src/components/button/index.d.ts +2 -0
  55. package/dist/src/components/button/index.d.ts.map +1 -0
  56. package/dist/src/components/button/index.js +2 -0
  57. package/dist/src/components/button/index.js.map +1 -0
  58. package/dist/src/components/{to_consolidate → card}/card.d.ts +2 -2
  59. package/dist/src/components/card/card.d.ts.map +1 -0
  60. package/dist/src/components/{to_consolidate → card}/card.js +2 -2
  61. package/dist/src/components/card/card.js.map +1 -0
  62. package/dist/src/components/card/index.d.ts +2 -0
  63. package/dist/src/components/card/index.d.ts.map +1 -0
  64. package/dist/src/components/card/index.js +2 -0
  65. package/dist/src/components/card/index.js.map +1 -0
  66. package/dist/src/components/{card_container.d.ts → card_container/card_container.d.ts} +2 -2
  67. package/dist/src/components/card_container/card_container.d.ts.map +1 -0
  68. package/dist/src/components/{card_container.js → card_container/card_container.js} +2 -2
  69. package/dist/src/components/card_container/card_container.js.map +1 -0
  70. package/dist/src/components/card_container/index.d.ts +2 -0
  71. package/dist/src/components/card_container/index.d.ts.map +1 -0
  72. package/dist/src/components/card_container/index.js +2 -0
  73. package/dist/src/components/card_container/index.js.map +1 -0
  74. package/dist/src/components/{chip.d.ts → chip/chip.d.ts} +1 -1
  75. package/dist/src/components/chip/chip.d.ts.map +1 -0
  76. package/dist/src/components/{chip.js → chip/chip.js} +1 -1
  77. package/dist/src/components/chip/chip.js.map +1 -0
  78. package/dist/src/components/chip/index.d.ts +2 -0
  79. package/dist/src/components/chip/index.d.ts.map +1 -0
  80. package/dist/src/components/chip/index.js +2 -0
  81. package/dist/src/components/chip/index.js.map +1 -0
  82. package/dist/src/components/code/action_button.js +2 -2
  83. package/dist/src/components/code/action_button.js.map +1 -1
  84. package/dist/src/components/code/code_block/code_block.d.ts +2 -2
  85. package/dist/src/components/code/code_block/code_block.d.ts.map +1 -1
  86. package/dist/src/components/code/code_block/code_block.js +3 -3
  87. package/dist/src/components/code/code_block/code_block.js.map +1 -1
  88. package/dist/src/components/code/code_block/code_block.styled.d.ts +3 -3
  89. package/dist/src/components/code/code_block/code_block.styled.d.ts.map +1 -1
  90. package/dist/src/components/code/code_block/code_block.styled.js +1 -1
  91. package/dist/src/components/code/code_block/code_block.styled.js.map +1 -1
  92. package/dist/src/components/code/code_block/code_block_with_tabs.d.ts +2 -2
  93. package/dist/src/components/code/code_block/code_block_with_tabs.d.ts.map +1 -1
  94. package/dist/src/components/code/code_block/code_block_with_tabs.js +2 -2
  95. package/dist/src/components/code/code_block/code_block_with_tabs.js.map +1 -1
  96. package/dist/src/components/code/inline_code/inline_code.d.ts +2 -2
  97. package/dist/src/components/code/inline_code/inline_code.d.ts.map +1 -1
  98. package/dist/src/components/code/inline_code/inline_code.js +1 -1
  99. package/dist/src/components/code/inline_code/inline_code.js.map +1 -1
  100. package/dist/src/components/code/one_line_code/one_line_code.d.ts +2 -2
  101. package/dist/src/components/code/one_line_code/one_line_code.d.ts.map +1 -1
  102. package/dist/src/components/code/one_line_code/one_line_code.js +1 -1
  103. package/dist/src/components/code/one_line_code/one_line_code.js.map +1 -1
  104. package/dist/src/components/code/prism_highlighter.d.ts +4 -4
  105. package/dist/src/components/code/prism_highlighter.d.ts.map +1 -1
  106. package/dist/src/components/code/prism_highlighter.js +1 -1
  107. package/dist/src/components/code/prism_highlighter.js.map +1 -1
  108. package/dist/src/components/collapsible_card/collapsible_card.js +1 -1
  109. package/dist/src/components/collapsible_card/collapsible_card.js.map +1 -1
  110. package/dist/src/components/color_wheel_gradient/color_wheel_gradient.d.ts.map +1 -0
  111. package/dist/src/components/color_wheel_gradient/color_wheel_gradient.js.map +1 -0
  112. package/dist/src/components/color_wheel_gradient/index.d.ts +2 -0
  113. package/dist/src/components/color_wheel_gradient/index.d.ts.map +1 -0
  114. package/dist/src/components/color_wheel_gradient/index.js +2 -0
  115. package/dist/src/components/color_wheel_gradient/index.js.map +1 -0
  116. package/dist/src/components/floating/menu.d.ts +1 -1
  117. package/dist/src/components/floating/menu.d.ts.map +1 -1
  118. package/dist/src/components/floating/menu.js +2 -2
  119. package/dist/src/components/floating/menu.js.map +1 -1
  120. package/dist/src/components/floating/menu_components.d.ts +1 -1
  121. package/dist/src/components/floating/menu_components.d.ts.map +1 -1
  122. package/dist/src/components/floating/menu_components.js +2 -2
  123. package/dist/src/components/floating/menu_components.js.map +1 -1
  124. package/dist/src/components/floating/tooltip_content.d.ts +1 -1
  125. package/dist/src/components/floating/tooltip_content.d.ts.map +1 -1
  126. package/dist/src/components/floating/tooltip_content.js +1 -1
  127. package/dist/src/components/floating/tooltip_content.js.map +1 -1
  128. package/dist/src/components/{icon_button.d.ts → icon_button/icon_button.d.ts} +3 -3
  129. package/dist/src/components/icon_button/icon_button.d.ts.map +1 -0
  130. package/dist/src/components/{icon_button.js → icon_button/icon_button.js} +5 -5
  131. package/dist/src/components/icon_button/icon_button.js.map +1 -0
  132. package/dist/src/components/icon_button/index.d.ts +2 -0
  133. package/dist/src/components/icon_button/index.d.ts.map +1 -0
  134. package/dist/src/components/icon_button/index.js +2 -0
  135. package/dist/src/components/icon_button/index.js.map +1 -0
  136. package/dist/src/components/{image.d.ts → image/image.d.ts} +2 -2
  137. package/dist/src/components/image/image.d.ts.map +1 -0
  138. package/dist/src/components/{image.js → image/image.js} +2 -2
  139. package/dist/src/components/image/image.js.map +1 -0
  140. package/dist/src/components/image/index.d.ts +2 -0
  141. package/dist/src/components/image/index.d.ts.map +1 -0
  142. package/dist/src/components/image/index.js +2 -0
  143. package/dist/src/components/image/index.js.map +1 -0
  144. package/dist/src/components/index.d.ts +39 -36
  145. package/dist/src/components/index.d.ts.map +1 -1
  146. package/dist/src/components/index.js +39 -36
  147. package/dist/src/components/index.js.map +1 -1
  148. package/dist/src/components/link/index.d.ts +2 -0
  149. package/dist/src/components/link/index.d.ts.map +1 -0
  150. package/dist/src/components/link/index.js +2 -0
  151. package/dist/src/components/link/index.js.map +1 -0
  152. package/dist/src/components/{link.d.ts → link/link.d.ts} +1 -1
  153. package/dist/src/components/link/link.d.ts.map +1 -0
  154. package/dist/src/components/{link.js → link/link.js} +3 -3
  155. package/dist/src/components/link/link.js.map +1 -0
  156. package/dist/src/components/markdown/index.d.ts +2 -0
  157. package/dist/src/components/markdown/index.d.ts.map +1 -0
  158. package/dist/src/components/markdown/index.js +2 -0
  159. package/dist/src/components/markdown/index.js.map +1 -0
  160. package/dist/src/components/{to_consolidate → markdown}/markdown.d.ts +1 -1
  161. package/dist/src/components/markdown/markdown.d.ts.map +1 -0
  162. package/dist/src/components/{to_consolidate → markdown}/markdown.js +5 -5
  163. package/dist/src/components/markdown/markdown.js.map +1 -0
  164. package/dist/src/components/message/index.d.ts +2 -0
  165. package/dist/src/components/message/index.d.ts.map +1 -0
  166. package/dist/src/components/message/index.js +2 -0
  167. package/dist/src/components/message/index.js.map +1 -0
  168. package/dist/src/components/{message.d.ts → message/message.d.ts} +2 -2
  169. package/dist/src/components/message/message.d.ts.map +1 -0
  170. package/dist/src/components/{message.js → message/message.js} +4 -4
  171. package/dist/src/components/message/message.js.map +1 -0
  172. package/dist/src/components/pagination/index.d.ts +2 -0
  173. package/dist/src/components/pagination/index.d.ts.map +1 -0
  174. package/dist/src/components/pagination/index.js +2 -0
  175. package/dist/src/components/pagination/index.js.map +1 -0
  176. package/dist/src/components/pagination/pagination.d.ts.map +1 -0
  177. package/dist/src/components/{to_consolidate → pagination}/pagination.js +2 -2
  178. package/dist/src/components/pagination/pagination.js.map +1 -0
  179. package/dist/src/components/rating/index.d.ts +2 -0
  180. package/dist/src/components/rating/index.d.ts.map +1 -0
  181. package/dist/src/components/rating/index.js +2 -0
  182. package/dist/src/components/rating/index.js.map +1 -0
  183. package/dist/src/components/{rating.d.ts → rating/rating.d.ts} +1 -1
  184. package/dist/src/components/rating/rating.d.ts.map +1 -0
  185. package/dist/src/components/{rating.js → rating/rating.js} +3 -3
  186. package/dist/src/components/rating/rating.js.map +1 -0
  187. package/dist/src/components/readme_renderer/table_of_contents.js +3 -3
  188. package/dist/src/components/readme_renderer/table_of_contents.js.map +1 -1
  189. package/dist/src/components/select/select.js +2 -2
  190. package/dist/src/components/select/select.js.map +1 -1
  191. package/dist/src/components/shortcut/index.d.ts +2 -0
  192. package/dist/src/components/shortcut/index.d.ts.map +1 -0
  193. package/dist/src/components/shortcut/index.js +2 -0
  194. package/dist/src/components/shortcut/index.js.map +1 -0
  195. package/dist/src/components/shortcut/shortcut.d.ts.map +1 -0
  196. package/dist/src/components/{shortcut.js → shortcut/shortcut.js} +2 -2
  197. package/dist/src/components/shortcut/shortcut.js.map +1 -0
  198. package/dist/src/components/simple_markdown/simple_markdown.js +5 -5
  199. package/dist/src/components/simple_markdown/simple_markdown.js.map +1 -1
  200. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts +6 -6
  201. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
  202. package/dist/src/components/simple_markdown/simple_markdown_components.js +6 -6
  203. package/dist/src/components/simple_markdown/simple_markdown_components.js.map +1 -1
  204. package/dist/src/components/spinner/index.d.ts +2 -0
  205. package/dist/src/components/spinner/index.d.ts.map +1 -0
  206. package/dist/src/components/spinner/index.js +2 -0
  207. package/dist/src/components/spinner/index.js.map +1 -0
  208. package/dist/src/components/spinner/spinner.d.ts.map +1 -0
  209. package/dist/src/components/{spinner.js → spinner/spinner.js} +1 -1
  210. package/dist/src/components/spinner/spinner.js.map +1 -0
  211. package/dist/src/components/store/store_actor_header.d.ts +1 -1
  212. package/dist/src/components/store/store_actor_header.d.ts.map +1 -1
  213. package/dist/src/components/store/store_actor_header.js +2 -2
  214. package/dist/src/components/store/store_actor_header.js.map +1 -1
  215. package/dist/src/components/tab_number_chip/index.d.ts +2 -0
  216. package/dist/src/components/tab_number_chip/index.d.ts.map +1 -0
  217. package/dist/src/components/tab_number_chip/index.js +2 -0
  218. package/dist/src/components/tab_number_chip/index.js.map +1 -0
  219. package/dist/src/components/tab_number_chip/tab_number_chip.d.ts.map +1 -0
  220. package/dist/src/components/{to_consolidate → tab_number_chip}/tab_number_chip.js +1 -1
  221. package/dist/src/components/tab_number_chip/tab_number_chip.js.map +1 -0
  222. package/dist/src/components/table/table.context.d.ts +1 -1
  223. package/dist/src/components/table/table.context.d.ts.map +1 -1
  224. package/dist/src/components/table/table.styled.d.ts +2 -2
  225. package/dist/src/components/table/table.styled.d.ts.map +1 -1
  226. package/dist/src/components/table/table.styled.js +1 -1
  227. package/dist/src/components/table/table.styled.js.map +1 -1
  228. package/dist/src/components/table/table.types.d.ts +1 -1
  229. package/dist/src/components/table/table.types.d.ts.map +1 -1
  230. package/dist/src/components/table/table_cell.d.ts +1 -1
  231. package/dist/src/components/table/table_cell.d.ts.map +1 -1
  232. package/dist/src/components/table/table_cell.js +1 -1
  233. package/dist/src/components/table/table_cell.js.map +1 -1
  234. package/dist/src/components/table/table_error_row.js +1 -1
  235. package/dist/src/components/table/table_error_row.js.map +1 -1
  236. package/dist/src/components/table/table_expansion_row.d.ts +1 -1
  237. package/dist/src/components/table/table_expansion_row.d.ts.map +1 -1
  238. package/dist/src/components/table/table_loading_row.js +1 -1
  239. package/dist/src/components/table/table_loading_row.js.map +1 -1
  240. package/dist/src/components/table/table_row.d.ts +1 -1
  241. package/dist/src/components/table/table_row.d.ts.map +1 -1
  242. package/dist/src/components/table/table_wrapper.d.ts +1 -1
  243. package/dist/src/components/table/table_wrapper.d.ts.map +1 -1
  244. package/dist/src/components/table/table_wrapper.js +1 -1
  245. package/dist/src/components/table/table_wrapper.js.map +1 -1
  246. package/dist/src/components/tabs/tab.d.ts +2 -2
  247. package/dist/src/components/tabs/tab.d.ts.map +1 -1
  248. package/dist/src/components/tabs/tab.js +3 -3
  249. package/dist/src/components/tabs/tab.js.map +1 -1
  250. package/dist/src/components/tabs/tabs.d.ts +2 -2
  251. package/dist/src/components/tabs/tabs.d.ts.map +1 -1
  252. package/dist/src/components/tabs/tabs.js +1 -1
  253. package/dist/src/components/tabs/tabs.js.map +1 -1
  254. package/dist/src/components/tag/index.d.ts +2 -0
  255. package/dist/src/components/tag/index.d.ts.map +1 -0
  256. package/dist/src/components/tag/index.js +2 -0
  257. package/dist/src/components/tag/index.js.map +1 -0
  258. package/dist/src/components/tag/tag.d.ts +44 -0
  259. package/dist/src/components/tag/tag.d.ts.map +1 -0
  260. package/dist/src/components/tag/tag.js +136 -0
  261. package/dist/src/components/tag/tag.js.map +1 -0
  262. package/dist/src/components/tag.d.ts +1 -42
  263. package/dist/src/components/tag.d.ts.map +1 -1
  264. package/dist/src/components/tag.js +1 -135
  265. package/dist/src/components/tag.js.map +1 -1
  266. package/dist/src/components/text/heading_content.d.ts +1 -1
  267. package/dist/src/components/text/heading_content.d.ts.map +1 -1
  268. package/dist/src/components/text/heading_marketing.d.ts +1 -1
  269. package/dist/src/components/text/heading_marketing.d.ts.map +1 -1
  270. package/dist/src/components/text/heading_shared.d.ts +1 -1
  271. package/dist/src/components/text/heading_shared.d.ts.map +1 -1
  272. package/dist/src/components/text/index.d.ts +4 -2
  273. package/dist/src/components/text/index.d.ts.map +1 -1
  274. package/dist/src/components/text/index.js +1 -1
  275. package/dist/src/components/text/index.js.map +1 -1
  276. package/dist/src/components/text/text_base.d.ts +2 -2
  277. package/dist/src/components/text/text_base.d.ts.map +1 -1
  278. package/dist/src/components/text/text_base.js +1 -1
  279. package/dist/src/components/text/text_base.js.map +1 -1
  280. package/dist/src/components/text/text_content.d.ts +1 -1
  281. package/dist/src/components/text/text_content.d.ts.map +1 -1
  282. package/dist/src/components/text/text_marketing.d.ts +1 -1
  283. package/dist/src/components/text/text_marketing.d.ts.map +1 -1
  284. package/dist/src/components/text/text_shared.d.ts +1 -1
  285. package/dist/src/components/text/text_shared.d.ts.map +1 -1
  286. package/dist/src/components/tile/horizontal_tile.d.ts +1 -1
  287. package/dist/src/components/tile/horizontal_tile.d.ts.map +1 -1
  288. package/dist/src/components/tile/vertical_tile.d.ts +1 -1
  289. package/dist/src/components/tile/vertical_tile.d.ts.map +1 -1
  290. package/dist/src/design_system/theme.js +2 -2
  291. package/dist/src/design_system/theme.js.map +1 -1
  292. package/dist/src/index.d.ts +4 -4
  293. package/dist/src/index.d.ts.map +1 -1
  294. package/dist/src/index.js +4 -4
  295. package/dist/src/index.js.map +1 -1
  296. package/dist/src/ui_dependency_provider.d.ts +1 -1
  297. package/dist/src/ui_dependency_provider.d.ts.map +1 -1
  298. package/dist/tsconfig.build.tsbuildinfo +1 -1
  299. package/package.json +2 -2
  300. package/src/components/{action_link.tsx → action_link/action_link.tsx} +4 -4
  301. package/src/components/action_link/index.ts +1 -0
  302. package/src/components/{actor_template_card.tsx → actor_template_card/actor_template_card.tsx} +4 -4
  303. package/src/components/actor_template_card/index.ts +1 -0
  304. package/src/components/{badge.stories.jsx → badge/badge.stories.jsx} +1 -1
  305. package/src/components/{badge.tsx → badge/badge.tsx} +6 -6
  306. package/src/components/badge/index.ts +1 -0
  307. package/src/components/{banner.tsx → banner/banner.tsx} +1 -1
  308. package/src/components/banner/index.ts +1 -0
  309. package/src/components/{blog_article.tsx → blog_article/blog_article.tsx} +1 -1
  310. package/src/components/blog_article/index.ts +1 -0
  311. package/src/components/box/box.stories.tsx +87 -0
  312. package/src/components/{box.tsx → box/box.tsx} +3 -3
  313. package/src/components/box/index.ts +1 -0
  314. package/src/components/breadcrumb/breadcrumb.tsx +3 -3
  315. package/src/components/browser_window/browser_window.tsx +1 -1
  316. package/src/components/{button.stories.tsx → button/button.stories.tsx} +1 -1
  317. package/src/components/{button.tsx → button/button.tsx} +5 -5
  318. package/src/components/button/index.ts +1 -0
  319. package/src/components/{to_consolidate → card}/card.stories.tsx +1 -1
  320. package/src/components/{to_consolidate → card}/card.tsx +4 -4
  321. package/src/components/card/index.ts +1 -0
  322. package/src/components/{card_container.stories.tsx → card_container/card_container.stories.tsx} +1 -1
  323. package/src/components/{card_container.tsx → card_container/card_container.tsx} +3 -3
  324. package/src/components/card_container/index.ts +1 -0
  325. package/src/components/{chip.tsx → chip/chip.tsx} +2 -2
  326. package/src/components/chip/index.ts +1 -0
  327. package/src/components/code/action_button.tsx +2 -2
  328. package/src/components/code/code_block/code_block.styled.tsx +2 -2
  329. package/src/components/code/code_block/code_block.tsx +5 -5
  330. package/src/components/code/code_block/code_block_with_tabs.tsx +2 -2
  331. package/src/components/code/inline_code/inline_code.stories.tsx +1 -1
  332. package/src/components/code/inline_code/inline_code.tsx +3 -3
  333. package/src/components/code/one_line_code/one_line_code.tsx +4 -4
  334. package/src/components/code/prism_highlighter.tsx +2 -2
  335. package/src/components/collapsible_card/collapsible_card.tsx +2 -2
  336. package/src/components/color_wheel_gradient/index.ts +1 -0
  337. package/src/components/floating/menu.tsx +2 -2
  338. package/src/components/floating/menu_components.tsx +3 -3
  339. package/src/components/floating/tooltip_content.tsx +2 -2
  340. package/src/components/{icon_button.tsx → icon_button/icon_button.tsx} +6 -6
  341. package/src/components/icon_button/index.ts +1 -0
  342. package/src/components/image/image.stories.tsx +77 -0
  343. package/src/components/{image.tsx → image/image.tsx} +3 -3
  344. package/src/components/image/index.ts +1 -0
  345. package/src/components/index.ts +39 -36
  346. package/src/components/link/index.ts +1 -0
  347. package/src/components/{link.tsx → link/link.tsx} +3 -3
  348. package/src/components/markdown/index.ts +1 -0
  349. package/src/components/{to_consolidate → markdown}/markdown.tsx +6 -6
  350. package/src/components/message/index.ts +1 -0
  351. package/src/components/{message.stories.jsx → message/message.stories.jsx} +1 -1
  352. package/src/components/{message.tsx → message/message.tsx} +5 -5
  353. package/src/components/pagination/index.ts +1 -0
  354. package/src/components/{to_consolidate → pagination}/pagination.tsx +2 -2
  355. package/src/components/rating/index.ts +1 -0
  356. package/src/components/{rating.tsx → rating/rating.tsx} +4 -4
  357. package/src/components/readme_renderer/table_of_contents.tsx +3 -3
  358. package/src/components/select/select.tsx +2 -2
  359. package/src/components/shortcut/index.ts +1 -0
  360. package/src/components/{shortcut.stories.jsx → shortcut/shortcut.stories.jsx} +1 -1
  361. package/src/components/{shortcut.tsx → shortcut/shortcut.tsx} +2 -2
  362. package/src/components/simple_markdown/simple_markdown.stories.tsx +1 -1
  363. package/src/components/simple_markdown/simple_markdown.tsx +5 -5
  364. package/src/components/simple_markdown/simple_markdown_components.tsx +11 -11
  365. package/src/components/spinner/index.ts +1 -0
  366. package/src/components/{spinner.tsx → spinner/spinner.tsx} +2 -2
  367. package/src/components/store/store_actor_header.tsx +2 -2
  368. package/src/components/tab_number_chip/index.ts +1 -0
  369. package/src/components/{to_consolidate → tab_number_chip}/tab_number_chip.tsx +1 -1
  370. package/src/components/table/table.context.ts +1 -1
  371. package/src/components/table/table.stories.tsx +1 -1
  372. package/src/components/table/table.styled.ts +1 -1
  373. package/src/components/table/table.types.ts +1 -1
  374. package/src/components/table/table_cell.tsx +1 -1
  375. package/src/components/table/table_error_row.tsx +1 -1
  376. package/src/components/table/table_expansion_row.tsx +1 -1
  377. package/src/components/table/table_loading_row.tsx +1 -1
  378. package/src/components/table/table_row.tsx +1 -1
  379. package/src/components/table/table_wrapper.tsx +2 -2
  380. package/src/components/tabs/tab.tsx +9 -9
  381. package/src/components/tabs/tabs.tsx +5 -5
  382. package/src/components/tag/index.ts +1 -0
  383. package/src/components/{tag.stories.jsx → tag/tag.stories.jsx} +1 -1
  384. package/src/components/tag/tag.tsx +203 -0
  385. package/src/components/tag.tsx +1 -202
  386. package/src/components/text/heading_content.tsx +2 -2
  387. package/src/components/text/heading_marketing.tsx +2 -2
  388. package/src/components/text/heading_shared.tsx +2 -2
  389. package/src/components/text/index.ts +4 -1
  390. package/src/components/text/text_base.tsx +3 -3
  391. package/src/components/text/text_content.tsx +3 -3
  392. package/src/components/text/text_marketing.tsx +3 -3
  393. package/src/components/text/text_shared.tsx +2 -2
  394. package/src/components/tile/horizontal_tile.stories.tsx +1 -1
  395. package/src/components/tile/horizontal_tile.tsx +1 -1
  396. package/src/components/tile/vertical_tile.stories.tsx +2 -2
  397. package/src/components/tile/vertical_tile.tsx +1 -1
  398. package/src/design_system/theme.ts +2 -2
  399. package/src/index.ts +4 -4
  400. package/src/ui_dependency_provider.tsx +1 -1
  401. package/dist/src/components/action_link.d.ts.map +0 -1
  402. package/dist/src/components/action_link.js.map +0 -1
  403. package/dist/src/components/actor_template_card.d.ts.map +0 -1
  404. package/dist/src/components/actor_template_card.js.map +0 -1
  405. package/dist/src/components/badge.d.ts.map +0 -1
  406. package/dist/src/components/badge.js.map +0 -1
  407. package/dist/src/components/banner.d.ts.map +0 -1
  408. package/dist/src/components/banner.js.map +0 -1
  409. package/dist/src/components/blog_article.d.ts.map +0 -1
  410. package/dist/src/components/blog_article.js.map +0 -1
  411. package/dist/src/components/box.d.ts.map +0 -1
  412. package/dist/src/components/box.js.map +0 -1
  413. package/dist/src/components/button.d.ts.map +0 -1
  414. package/dist/src/components/button.js.map +0 -1
  415. package/dist/src/components/card_container.d.ts.map +0 -1
  416. package/dist/src/components/card_container.js.map +0 -1
  417. package/dist/src/components/chip.d.ts.map +0 -1
  418. package/dist/src/components/chip.js.map +0 -1
  419. package/dist/src/components/color_wheel_gradient.d.ts.map +0 -1
  420. package/dist/src/components/color_wheel_gradient.js.map +0 -1
  421. package/dist/src/components/icon_button.d.ts.map +0 -1
  422. package/dist/src/components/icon_button.js.map +0 -1
  423. package/dist/src/components/image.d.ts.map +0 -1
  424. package/dist/src/components/image.js.map +0 -1
  425. package/dist/src/components/link.d.ts.map +0 -1
  426. package/dist/src/components/link.js.map +0 -1
  427. package/dist/src/components/message.d.ts.map +0 -1
  428. package/dist/src/components/message.js.map +0 -1
  429. package/dist/src/components/rating.d.ts.map +0 -1
  430. package/dist/src/components/rating.js.map +0 -1
  431. package/dist/src/components/shortcut.d.ts.map +0 -1
  432. package/dist/src/components/shortcut.js.map +0 -1
  433. package/dist/src/components/spinner.d.ts.map +0 -1
  434. package/dist/src/components/spinner.js.map +0 -1
  435. package/dist/src/components/to_consolidate/card.d.ts.map +0 -1
  436. package/dist/src/components/to_consolidate/card.js.map +0 -1
  437. package/dist/src/components/to_consolidate/index.d.ts +0 -5
  438. package/dist/src/components/to_consolidate/index.d.ts.map +0 -1
  439. package/dist/src/components/to_consolidate/index.js +0 -5
  440. package/dist/src/components/to_consolidate/index.js.map +0 -1
  441. package/dist/src/components/to_consolidate/markdown.d.ts.map +0 -1
  442. package/dist/src/components/to_consolidate/markdown.js.map +0 -1
  443. package/dist/src/components/to_consolidate/pagination.d.ts.map +0 -1
  444. package/dist/src/components/to_consolidate/pagination.js.map +0 -1
  445. package/dist/src/components/to_consolidate/tab_number_chip.d.ts.map +0 -1
  446. package/dist/src/components/to_consolidate/tab_number_chip.js.map +0 -1
  447. package/src/components/to_consolidate/index.ts +0 -4
  448. /package/dist/src/components/{actor_template_card.d.ts → actor_template_card/actor_template_card.d.ts} +0 -0
  449. /package/dist/src/components/{banner.d.ts → banner/banner.d.ts} +0 -0
  450. /package/dist/src/components/{blog_article.d.ts → blog_article/blog_article.d.ts} +0 -0
  451. /package/dist/src/components/{color_wheel_gradient.d.ts → color_wheel_gradient/color_wheel_gradient.d.ts} +0 -0
  452. /package/dist/src/components/{color_wheel_gradient.js → color_wheel_gradient/color_wheel_gradient.js} +0 -0
  453. /package/dist/src/components/{to_consolidate → pagination}/pagination.d.ts +0 -0
  454. /package/dist/src/components/{shortcut.d.ts → shortcut/shortcut.d.ts} +0 -0
  455. /package/dist/src/components/{spinner.d.ts → spinner/spinner.d.ts} +0 -0
  456. /package/dist/src/components/{to_consolidate → tab_number_chip}/tab_number_chip.d.ts +0 -0
  457. /package/src/components/{action_link.stories.tsx → action_link/action_link.stories.tsx} +0 -0
  458. /package/src/components/{actor_template_card.stories.tsx → actor_template_card/actor_template_card.stories.tsx} +0 -0
  459. /package/src/components/{badge.doc.mdx → badge/badge.doc.mdx} +0 -0
  460. /package/src/components/{banner.stories.tsx → banner/banner.stories.tsx} +0 -0
  461. /package/src/components/{blog_article.stories.tsx → blog_article/blog_article.stories.tsx} +0 -0
  462. /package/src/components/{chip.stories.tsx → chip/chip.stories.tsx} +0 -0
  463. /package/src/components/{color_wheel_gradient.stories.tsx → color_wheel_gradient/color_wheel_gradient.stories.tsx} +0 -0
  464. /package/src/components/{color_wheel_gradient.tsx → color_wheel_gradient/color_wheel_gradient.tsx} +0 -0
  465. /package/src/components/{icon_button.stories.tsx → icon_button/icon_button.stories.tsx} +0 -0
  466. /package/src/components/{link.stories.tsx → link/link.stories.tsx} +0 -0
  467. /package/src/components/{to_consolidate → markdown}/markdown.stories.tsx +0 -0
  468. /package/src/components/{to_consolidate → pagination}/pagination.stories.tsx +0 -0
  469. /package/src/components/{rating.stories.tsx → rating/rating.stories.tsx} +0 -0
  470. /package/src/components/{spinner.stories.tsx → spinner/spinner.stories.tsx} +0 -0
  471. /package/src/components/{to_consolidate → tab_number_chip}/tab_number_chip.stories.tsx +0 -0
  472. /package/src/components/{tag.doc.mdx → tag/tag.doc.mdx} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/ui-library",
3
- "version": "1.141.0",
3
+ "version": "1.141.1",
4
4
  "description": "React UI library used by apify.com",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -73,5 +73,5 @@
73
73
  "src",
74
74
  "style"
75
75
  ],
76
- "gitHead": "0d1fdfbe1cf60fe2c2eff457d75e8bc6fd8843c0"
76
+ "gitHead": "4fdb816061bb62853986f16bfcc237a4300d38c0"
77
77
  }
@@ -5,10 +5,10 @@ import { ArrowLeftIcon, ArrowRightIcon } from '@apify/ui-icons';
5
5
 
6
6
  import type { RequiredBy } from '@apify-packages/types';
7
7
 
8
- import { theme } from '../design_system/theme.js';
9
- import { Box, type BoxProps } from './box.js';
10
- import { Link, type LinkProps, StyledAsLink } from './link.js';
11
- import { Heading } from './text/index.js';
8
+ import { theme } from '../../design_system/theme.js';
9
+ import { Box, type BoxProps } from '../box';
10
+ import { Link, type LinkProps, StyledAsLink } from '../link';
11
+ import { Heading } from '../text';
12
12
 
13
13
  const StyledGuidepost = styled(Box)<{ $isBackLink: boolean }>`
14
14
  display: inline-flex;
@@ -0,0 +1 @@
1
+ export * from './action_link.js';
@@ -1,10 +1,10 @@
1
1
  import type React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
- import { theme } from '../design_system/theme.js';
5
- import { Badge } from './badge.js';
6
- import { TextMarketing } from './text/text_marketing.js';
7
- import { VerticalTile } from './tile/index.js';
4
+ import { theme } from '../../design_system/theme.js';
5
+ import { Badge } from '../badge';
6
+ import { TextMarketing } from '../text';
7
+ import { VerticalTile } from '../tile';
8
8
 
9
9
  interface ActorTemplateCardProps {
10
10
  id: string;
@@ -0,0 +1 @@
1
+ export * from './actor_template_card.js';
@@ -5,8 +5,8 @@ import styled from 'styled-components';
5
5
 
6
6
  import { PeopleIcon } from '@apify/ui-icons';
7
7
 
8
+ import { SHARED_TEXT_TYPES } from '..';
8
9
  import { Badge, BADGE_SIZES, BADGE_VARIANTS } from './badge.tsx';
9
- import { SHARED_TEXT_TYPES } from './index.ts';
10
10
 
11
11
  export default {
12
12
  title: 'UI-Library/Badge',
@@ -4,12 +4,12 @@ import styled, { css } from 'styled-components';
4
4
 
5
5
  import type { IconComponent, IconSize } from '@apify/ui-icons';
6
6
 
7
- import { theme } from '../design_system/theme.js';
8
- import type { WithTransientProps } from '../type_utils.js';
9
- import type { FlattenSimpleInterpolation } from '../utils/type_utils.js';
10
- import { Box, type MarginSpacingProps, type RegularBoxProps } from './box.js';
11
- import { Text } from './text/index.js';
12
- import type { SharedTextSize, SharedTextType } from './text/text_shared.js';
7
+ import { theme } from '../../design_system/theme.js';
8
+ import type { WithTransientProps } from '../../type_utils';
9
+ import type { FlattenSimpleInterpolation } from '../../utils/type_utils';
10
+ import { Box, type MarginSpacingProps, type RegularBoxProps } from '../box';
11
+ import { Text } from '../text';
12
+ import type { SharedTextSize, SharedTextType } from '../text';
13
13
 
14
14
  export type BadgeSize = 'large' | 'regular' | 'small' | 'extra_small';
15
15
  export const BADGE_SIZES: BadgeSize[] = ['large', 'regular', 'small', 'extra_small'];
@@ -0,0 +1 @@
1
+ export * from './badge.js';
@@ -1,7 +1,7 @@
1
1
  import type React from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
- import { theme } from '../design_system/theme.js';
4
+ import { theme } from '../../design_system/theme.js';
5
5
 
6
6
  const BANNER_GRADIENT_BACKGROUND_SVG = `<svg width="1200" height="148" viewBox="0 0 1200 148" fill="none" xmlns="http://www.w3.org/2000/svg">
7
7
  <g clip-path="url(#clip0_2285_34756)">
@@ -0,0 +1 @@
1
+ export * from './banner.js';
@@ -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.js';
6
+ import { theme } from '../../design_system/theme.js';
7
7
 
8
8
  const classNames = {
9
9
  IMAGE_WRAPPER: 'ImageWrapper',
@@ -0,0 +1 @@
1
+ export * from './blog_article.js';
@@ -0,0 +1,87 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+
3
+ import { Box } from './box.js';
4
+
5
+ const meta: Meta<typeof Box> = {
6
+ title: 'UI-Library/Box',
7
+ component: Box,
8
+ parameters: {
9
+ layout: 'padded',
10
+ docs: {
11
+ description: {
12
+ component:
13
+ 'Foundational primitive for layout and spacing. Provides margin/padding props (`m`, `mt`, `p`, `px`, …) via design tokens, plus a polymorphic `as` prop. Used as the base for most other components.',
14
+ },
15
+ },
16
+ },
17
+ };
18
+
19
+ export default meta;
20
+
21
+ type Story = StoryObj<typeof Box>;
22
+
23
+ const Sample = ({ label, background = '#e3f2fd' }: { label: string; background?: string }) => (
24
+ <div style={{ background, padding: '0.5rem 1rem', borderRadius: '0.4rem', display: 'inline-block' }}>{label}</div>
25
+ );
26
+
27
+ /** Default Box renders as a div with no styling applied. */
28
+ export const Default: Story = {
29
+ render: () => (
30
+ <Box>
31
+ <Sample label="Default Box (no spacing)" />
32
+ </Box>
33
+ ),
34
+ };
35
+
36
+ /** Margin props: `m`, `mt`, `mb`, `ml`, `mr`, `mx`, `my`. Values come from the spacing scale. */
37
+ export const MarginSpacing: Story = {
38
+ render: () => (
39
+ <div style={{ border: '1px dashed #aaa', padding: '1rem' }}>
40
+ <Box mt="space8" mb="space24">
41
+ <Sample label="mt='space8' mb='space24'" />
42
+ </Box>
43
+ <Box mx="space32">
44
+ <Sample label="mx='space32' (horizontal margin)" background="#fff3e0" />
45
+ </Box>
46
+ <Box m="space16">
47
+ <Sample label="m='space16' (uniform)" background="#f3e5f5" />
48
+ </Box>
49
+ </div>
50
+ ),
51
+ };
52
+
53
+ /** Padding props: `p`, `pt`, `pb`, `pl`, `pr`, `px`, `py`. */
54
+ export const PaddingSpacing: Story = {
55
+ render: () => (
56
+ <Box p="space16" style={{ background: '#e8f5e9', display: 'inline-block', borderRadius: '0.4rem' }}>
57
+ <Sample label="Box with p='space16'" background="#fff" />
58
+ </Box>
59
+ ),
60
+ };
61
+
62
+ /** `as` prop renders the Box as a different HTML element while keeping all spacing props. */
63
+ export const PolymorphicAs: Story = {
64
+ render: () => (
65
+ <>
66
+ <Box as="section" mb="space16" style={{ background: '#e1f5fe', padding: '1rem' }}>
67
+ <Sample label="Box as='section'" background="#fff" />
68
+ </Box>
69
+ <Box as="aside" style={{ background: '#fff3e0', padding: '1rem' }}>
70
+ <Sample label="Box as='aside'" background="#fff" />
71
+ </Box>
72
+ </>
73
+ ),
74
+ };
75
+
76
+ /** Click handler. */
77
+ export const WithOnClick: Story = {
78
+ render: () => (
79
+ <Box
80
+ onClick={() => alert('Box clicked!')}
81
+ p="space12"
82
+ style={{ background: '#fce4ec', cursor: 'pointer', borderRadius: '0.4rem', display: 'inline-block' }}
83
+ >
84
+ Click me
85
+ </Box>
86
+ ),
87
+ };
@@ -2,9 +2,9 @@ import type React from 'react';
2
2
  import { forwardRef } from 'react';
3
3
  import styled, { css } from 'styled-components';
4
4
 
5
- import { theme } from '../design_system/theme.js';
6
- import type { Size } from '../design_system/tokens/index.js';
7
- import type { WithTransientProps } from '../type_utils.js';
5
+ import { theme } from '../../design_system/theme.js';
6
+ import type { Size } from '../../design_system/tokens';
7
+ import type { WithTransientProps } from '../../type_utils';
8
8
 
9
9
  type ExtendedSize = Size | 'none' | 'auto';
10
10
 
@@ -0,0 +1 @@
1
+ export * from './box.js';
@@ -3,9 +3,9 @@ import React from 'react';
3
3
  import styled from 'styled-components';
4
4
 
5
5
  import { theme } from '../../design_system/theme.js';
6
- import { Box } from '../box.js';
7
- import { Link } from '../link.js';
8
- import { Text } from '../text/index.js';
6
+ import { Box } from '../box';
7
+ import { Link } from '../link';
8
+ import { Text } from '../text';
9
9
 
10
10
  export const breadcrumbClassNames = {
11
11
  WRAPPER: 'Breadcrumbs__Wrapper',
@@ -3,7 +3,7 @@ import type { ReactNode } from 'react';
3
3
  import styled from 'styled-components';
4
4
 
5
5
  import { theme } from '../../design_system/theme.js';
6
- import { Badge } from '../badge.js';
6
+ import { Badge } from '../badge';
7
7
 
8
8
  const classNames = {
9
9
  ROOT: 'browser-window',
@@ -5,7 +5,7 @@ import styled from 'styled-components';
5
5
 
6
6
  import { CrossIcon } from '@apify/ui-icons';
7
7
 
8
- import { theme } from '../design_system/theme.js';
8
+ import { theme } from '../../design_system/theme.js';
9
9
  import { Button, type ButtonProps } from './button.js';
10
10
 
11
11
  export default {
@@ -5,11 +5,11 @@ import styled, { css } from 'styled-components';
5
5
 
6
6
  import { ExternalLinkIcon, type IconSize } from '@apify/ui-icons';
7
7
 
8
- import { theme } from '../design_system/theme.js';
9
- import { type WithRequired, type WithTransientProps } from '../type_utils.js';
10
- import { useSharedUiDependencies } from '../ui_dependency_provider.js';
11
- import { Box, type MarginSpacingProps, type RegularBoxProps } from './box.js';
12
- import { isUrlExternal, Link, type LinkProps } from './link.js';
8
+ import { theme } from '../../design_system/theme.js';
9
+ import { type WithRequired, type WithTransientProps } from '../../type_utils.js';
10
+ import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
11
+ import { Box, type MarginSpacingProps, type RegularBoxProps } from '../box';
12
+ import { isUrlExternal, Link, type LinkProps } from '../link';
13
13
 
14
14
  export type ButtonSize = 'extraLarge' | 'large' | 'medium' | 'small' | 'extraSmall';
15
15
  type ButtonColor = 'default' | 'success' | 'danger' | 'primaryBlack';
@@ -0,0 +1 @@
1
+ export * from './button.js';
@@ -1,6 +1,6 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
 
3
- import { Button } from '../button.js';
3
+ import { Button } from '../button';
4
4
  import { Card, type CardProps } from './card.js';
5
5
 
6
6
  export default {
@@ -4,10 +4,10 @@ import { forwardRef } from 'react';
4
4
  import styled, { css } from 'styled-components';
5
5
 
6
6
  import { theme } from '../../design_system/theme.js';
7
- import type { WithTransientProps } from '../../type_utils.js';
8
- import type { BoxProps } from '../box.js';
9
- import { Box } from '../box.js';
10
- import { Text } from '../text/index.js';
7
+ import type { WithTransientProps } from '../../type_utils';
8
+ import type { BoxProps } from '../box';
9
+ import { Box } from '../box';
10
+ import { Text } from '../text';
11
11
 
12
12
  export const cardClassNames = {
13
13
  WRAPPER: 'Card',
@@ -0,0 +1 @@
1
+ export * from './card.js';
@@ -4,8 +4,8 @@ import styled from 'styled-components';
4
4
 
5
5
  import { DragIndicatorIcon } from '@apify/ui-icons';
6
6
 
7
+ import { IconButton } from '../icon_button';
7
8
  import { CardContainer, cardContainerClassNames, type CardContainerProps } from './card_container.js';
8
- import { IconButton } from './icon_button.js';
9
9
 
10
10
  export default {
11
11
  title: 'UI-Library/Cards/CardContainer',
@@ -3,9 +3,9 @@ import styled from 'styled-components';
3
3
 
4
4
  import type { ValueOf } from '@apify-packages/types';
5
5
 
6
- import { theme } from '../design_system/theme.js';
7
- import type { Size } from '../design_system/tokens/index.js';
8
- import { Box, type BoxProps } from './box.js';
6
+ import { theme } from '../../design_system/theme.js';
7
+ import type { Size } from '../../design_system/tokens';
8
+ import { Box, type BoxProps } from '../box';
9
9
 
10
10
  export const cardContainerClassNames = {
11
11
  CONTENT: 'CardContainer-Content',
@@ -0,0 +1 @@
1
+ export * from './card_container.js';
@@ -6,8 +6,8 @@ import styled, { css } from 'styled-components';
6
6
 
7
7
  import type { ValueOf } from '@apify-packages/types';
8
8
 
9
- import { theme } from '../design_system/theme.js';
10
- import type { RegularBoxProps } from './box.js';
9
+ import { theme } from '../../design_system/theme.js';
10
+ import type { RegularBoxProps } from '../box';
11
11
 
12
12
  export const CHIP_SIZES = {
13
13
  EXTRA_SMALL: 'XS',
@@ -0,0 +1 @@
1
+ export * from './chip.js';
@@ -5,8 +5,8 @@ import { CheckIcon, CopyIcon } from '@apify/ui-icons';
5
5
 
6
6
  import { theme } from '../../design_system/theme.js';
7
7
  import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
8
- import { useCopyToClipboard } from '../../utils/index.js';
9
- import { Text } from '../text/index.js';
8
+ import { useCopyToClipboard } from '../../utils';
9
+ import { Text } from '../text';
10
10
 
11
11
  interface StyledButtonProps {
12
12
  $successStyle?: boolean;
@@ -1,8 +1,8 @@
1
1
  import styled, { css } from 'styled-components';
2
2
 
3
3
  import { theme } from '../../../design_system/theme.js';
4
- import { Box } from '../../box.js';
5
- import type { SharedTextProps, SharedTextSize } from '../../text/text_shared.js';
4
+ import { Box } from '../../box';
5
+ import type { SharedTextProps, SharedTextSize } from '../../text/text_shared';
6
6
 
7
7
  export type SyntaxHighlighterBaseStylesWrapperProps = SharedTextProps & {
8
8
  $fullWidth?: boolean;
@@ -2,11 +2,11 @@ import clsx from 'clsx';
2
2
  import type React from 'react';
3
3
  import { useMemo, useRef, useState } from 'react';
4
4
 
5
- import type { RegularBoxProps } from '../../box.js';
6
- import { ColorWheelGradient } from '../../color_wheel_gradient.js';
7
- import { Link } from '../../link.js';
8
- import { Text } from '../../text/index.js';
9
- import type { SharedTextSize } from '../../text/text_shared.js';
5
+ import type { RegularBoxProps } from '../../box';
6
+ import { ColorWheelGradient } from '../../color_wheel_gradient';
7
+ import { Link } from '../../link';
8
+ import { Text } from '../../text';
9
+ import type { SharedTextSize } from '../../text/text_shared';
10
10
  import { ActionButton, CopyButton } from '../action_button.js';
11
11
  import { PrismSyntaxHighlighter } from '../prism_highlighter.js';
12
12
  import { CodeBlockWrapper } from './code_block.styled.js';
@@ -7,8 +7,8 @@ import { CodeIcon, HttpIcon, type IconComponent, McpIcon } from '@apify/ui-icons
7
7
 
8
8
  import { theme } from '../../../design_system/theme.js';
9
9
  import { useSharedUiDependencies } from '../../../ui_dependency_provider.js';
10
- import { Box, type MarginSpacingProps, type RegularBoxProps } from '../../box.js';
11
- import { Link, type RegularLinkProps } from '../../link.js';
10
+ import { Box, type MarginSpacingProps, type RegularBoxProps } from '../../box';
11
+ import { Link, type RegularLinkProps } from '../../link';
12
12
  import { HeadingShared } from '../../text/heading_shared.js';
13
13
  import { CodeBlock, type CodeBlockProps } from './code_block.js';
14
14
 
@@ -1,6 +1,6 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
 
3
- import type { InlineCodeProps } from './inline_code.js';
3
+ import type { InlineCodeProps } from './inline_code';
4
4
  import { InlineCode } from './inline_code.js';
5
5
 
6
6
  /**
@@ -5,9 +5,9 @@ import { CheckIcon, CopyIcon } from '@apify/ui-icons';
5
5
 
6
6
  import { theme } from '../../../design_system/theme.js';
7
7
  import { useCopyToClipboard } from '../../../utils/copy_to_clipboard.js';
8
- import type { RegularBoxProps } from '../../box.js';
9
- import { Text } from '../../text/index.js';
10
- import type { SharedTextSize } from '../../text/text_shared.js';
8
+ import type { RegularBoxProps } from '../../box';
9
+ import { Text } from '../../text';
10
+ import type { SharedTextSize } from '../../text/text_shared';
11
11
 
12
12
  // TODO: We should not need to export these once we consolidate Markdown
13
13
  export const inlineCodeStyles = css`
@@ -6,11 +6,11 @@ import { EyeIcon, EyeOffIcon } from '@apify/ui-icons';
6
6
  import type { HttpMethod } from '@apify-packages/types';
7
7
 
8
8
  import { theme } from '../../../design_system/theme.js';
9
- import type { BoxProps } from '../../box.js';
10
- import { Text } from '../../text/index.js';
11
- import type { SharedTextSize } from '../../text/text_shared.js';
9
+ import type { BoxProps } from '../../box';
10
+ import { Text } from '../../text';
11
+ import type { SharedTextSize } from '../../text/text_shared';
12
12
  import { ActionButton, CopyButton } from '../action_button.js';
13
- import type { SyntaxHighlighterBaseStylesWrapperProps } from '../code_block/code_block.styled.js';
13
+ import type { SyntaxHighlighterBaseStylesWrapperProps } from '../code_block/code_block.styled';
14
14
  import { SyntaxHighlighterBaseStylesWrapper } from '../code_block/code_block.styled.js';
15
15
  import { getBashLinePrefixes } from '../code_block/utils.js';
16
16
  import { PrismSyntaxHighlighter } from '../prism_highlighter.js';
@@ -8,8 +8,8 @@ import styled, { css } from 'styled-components';
8
8
 
9
9
  import { theme } from '../../design_system/theme.js';
10
10
  import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
11
- import { Text } from '../text/index.js';
12
- import type { SharedTextSize } from '../text/text_shared.js';
11
+ import { Text } from '../text';
12
+ import type { SharedTextSize } from '../text';
13
13
  import { oneLightTheme } from './one_light_theme.js';
14
14
 
15
15
  (typeof global !== 'undefined' ? global : window).Prism = Prism;
@@ -6,8 +6,8 @@ import styled, { css } from 'styled-components';
6
6
  import { ChevronDownIcon } from '@apify/ui-icons';
7
7
 
8
8
  import { theme } from '../../design_system/theme.js';
9
- import type { WithTransientProps } from '../../type_utils.js';
10
- import { Box } from '../box.js';
9
+ import type { WithTransientProps } from '../../type_utils';
10
+ import { Box } from '../box';
11
11
 
12
12
  interface TransientWrapperProps {
13
13
  hideOuterBorder?: boolean;
@@ -0,0 +1 @@
1
+ export * from './color_wheel_gradient.js';
@@ -13,8 +13,8 @@ import clsx from 'clsx';
13
13
  import type React from 'react';
14
14
  import { useCallback, useMemo, useRef, useState } from 'react';
15
15
 
16
- import { Box, type BoxProps } from '../box.js';
17
- import { Text } from '../text/index.js';
16
+ import { Box, type BoxProps } from '../box';
17
+ import { Text } from '../text';
18
18
  import { useFloatingMenu } from './menu_common.js';
19
19
  import { DropdownMenuBaseComponent, ListMenuComponent, ListMenuItemComponent } from './menu_components.js';
20
20
 
@@ -6,9 +6,9 @@ import styled, { css } from 'styled-components';
6
6
  import { ChevronDownIcon, CrossIcon } from '@apify/ui-icons';
7
7
 
8
8
  import { theme } from '../../design_system/theme.js';
9
- import { Badge } from '../badge.js';
10
- import type { BoxProps } from '../box.js';
11
- import { Box } from '../box.js';
9
+ import { Badge } from '../badge';
10
+ import type { BoxProps } from '../box';
11
+ import { Box } from '../box';
12
12
 
13
13
  export type FloatingContext = Pick<UseFloatingReturn<ReferenceType>, 'context'>['context'];
14
14
 
@@ -1,8 +1,8 @@
1
1
  import styled, { css } from 'styled-components';
2
2
 
3
3
  import { theme } from '../../design_system/theme.js';
4
- import { Shortcut } from '../shortcut.js';
5
- import type { TooltipProps, TooltipSize, TooltipTextAlign } from './tooltip.js';
4
+ import { Shortcut } from '../shortcut';
5
+ import type { TooltipProps, TooltipSize, TooltipTextAlign } from './tooltip';
6
6
  import { TOOLTIP_SIZES, TOOLTIP_TEXT_ALIGNS } from './tooltip.js';
7
7
 
8
8
  type ContentProps = Pick<TooltipProps, 'content' | 'shortcuts' | 'imageUrl' | 'subtleText' | 'size' | 'textAlign'>;
@@ -5,18 +5,18 @@ import type { IconComponent, IconSize } from '@apify/ui-icons';
5
5
 
6
6
  import type { ValueOf } from '@apify-packages/types';
7
7
 
8
- import { theme } from '../design_system/theme.js';
9
- import type { RegularBoxProps } from './box.js';
8
+ import { theme } from '../../design_system/theme.js';
9
+ import type { RegularBoxProps } from '../box';
10
10
  import {
11
11
  Button,
12
12
  BUTTON_SIZE_VARIANTS_CSS,
13
13
  type ButtonSize,
14
14
  type RegularButtonProps,
15
15
  type TransientButtonProps,
16
- } from './button.js';
17
- import { Tooltip } from './floating/tooltip.js';
18
- import { Link, type RegularLinkProps } from './link.js';
19
- import { InlineSpinner, spinnerClassNames } from './spinner.js';
16
+ } from '../button';
17
+ import { Tooltip } from '../floating';
18
+ import { Link, type RegularLinkProps } from '../link';
19
+ import { InlineSpinner, spinnerClassNames } from '../spinner';
20
20
 
21
21
  export const ICON_BUTTON_VARIANTS = {
22
22
  DEFAULT: 'DEFAULT',
@@ -0,0 +1 @@
1
+ export * from './icon_button.js';
@@ -0,0 +1,77 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+
3
+ import { Image } from './image.js';
4
+
5
+ const meta: Meta<typeof Image> = {
6
+ title: 'UI-Library/Image',
7
+ component: Image,
8
+ parameters: {
9
+ layout: 'padded',
10
+ docs: {
11
+ description: {
12
+ component:
13
+ "Wrapper around `<img>` that uses the host app's `InternalImage` (e.g. for image proxy / CDN). Also accepts all spacing props from `Box`.",
14
+ },
15
+ },
16
+ },
17
+ argTypes: {
18
+ src: { control: 'text' },
19
+ alt: { control: 'text' },
20
+ width: { control: 'number' },
21
+ height: { control: 'number' },
22
+ loading: {
23
+ control: 'select',
24
+ options: ['eager', 'lazy'],
25
+ },
26
+ },
27
+ };
28
+
29
+ export default meta;
30
+
31
+ type Story = StoryObj<typeof Image>;
32
+
33
+ const PLACEHOLDER_SRC = 'https://console.apify.com/img/logos_apify/logo_apify_full_dark_text.svg';
34
+
35
+ /** Basic image with src and alt. */
36
+ export const Default: Story = {
37
+ args: {
38
+ src: PLACEHOLDER_SRC,
39
+ alt: 'Apify logo',
40
+ width: 160,
41
+ },
42
+ };
43
+
44
+ /** With explicit dimensions. */
45
+ export const WithDimensions: Story = {
46
+ args: {
47
+ src: PLACEHOLDER_SRC,
48
+ alt: 'Apify logo',
49
+ width: 240,
50
+ height: 64,
51
+ },
52
+ };
53
+
54
+ /** Lazy loading — the browser defers the request until the image is near the viewport. */
55
+ export const LazyLoading: Story = {
56
+ args: {
57
+ src: PLACEHOLDER_SRC,
58
+ alt: 'Apify logo (lazy)',
59
+ width: 200,
60
+ loading: 'lazy',
61
+ },
62
+ };
63
+
64
+ /** Box spacing props work on Image too. */
65
+ export const WithSpacing: Story = {
66
+ args: {
67
+ src: PLACEHOLDER_SRC,
68
+ alt: 'Apify logo',
69
+ width: 200,
70
+ m: 'space24',
71
+ },
72
+ render: (args) => (
73
+ <div style={{ background: '#f5f5f5', display: 'inline-block', borderRadius: '0.4rem' }}>
74
+ <Image {...args} />
75
+ </div>
76
+ ),
77
+ };
@@ -1,8 +1,8 @@
1
1
  import { forwardRef } from 'react';
2
2
 
3
- import type { ImageProxyOptions } from '../ui_dependency_provider.js';
4
- import { useSharedUiDependencies } from '../ui_dependency_provider.js';
5
- import { Box, type BoxProps } from './box.js';
3
+ import type { ImageProxyOptions } from '../../ui_dependency_provider';
4
+ import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
5
+ import { Box, type BoxProps } from '../box';
6
6
 
7
7
  type ImageProps = {
8
8
  src: string;