@apify/ui-library 1.140.2 → 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 (522) 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 +8 -4
  117. package/dist/src/components/floating/menu.d.ts.map +1 -1
  118. package/dist/src/components/floating/menu.js +26 -19
  119. package/dist/src/components/floating/menu.js.map +1 -1
  120. package/dist/src/components/floating/menu_components.d.ts +17 -5
  121. package/dist/src/components/floating/menu_components.d.ts.map +1 -1
  122. package/dist/src/components/floating/menu_components.js +20 -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 -35
  145. package/dist/src/components/index.d.ts.map +1 -1
  146. package/dist/src/components/index.js +39 -35
  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/radio_button/index.d.ts +2 -0
  180. package/dist/src/components/radio_button/index.d.ts.map +1 -0
  181. package/dist/src/components/radio_button/index.js +2 -0
  182. package/dist/src/components/radio_button/index.js.map +1 -0
  183. package/dist/src/components/radio_button/radio_button.d.ts +13 -0
  184. package/dist/src/components/radio_button/radio_button.d.ts.map +1 -0
  185. package/dist/src/components/radio_button/radio_button.js +15 -0
  186. package/dist/src/components/radio_button/radio_button.js.map +1 -0
  187. package/dist/src/components/radio_button/radio_button.style.d.ts +2 -0
  188. package/dist/src/components/radio_button/radio_button.style.d.ts.map +1 -0
  189. package/dist/src/components/radio_button/radio_button.style.js +47 -0
  190. package/dist/src/components/radio_button/radio_button.style.js.map +1 -0
  191. package/dist/src/components/rating/index.d.ts +2 -0
  192. package/dist/src/components/rating/index.d.ts.map +1 -0
  193. package/dist/src/components/rating/index.js +2 -0
  194. package/dist/src/components/rating/index.js.map +1 -0
  195. package/dist/src/components/{rating.d.ts → rating/rating.d.ts} +1 -1
  196. package/dist/src/components/rating/rating.d.ts.map +1 -0
  197. package/dist/src/components/{rating.js → rating/rating.js} +3 -3
  198. package/dist/src/components/rating/rating.js.map +1 -0
  199. package/dist/src/components/readme_renderer/table_of_contents.js +3 -3
  200. package/dist/src/components/readme_renderer/table_of_contents.js.map +1 -1
  201. package/dist/src/components/select/select.js +2 -2
  202. package/dist/src/components/select/select.js.map +1 -1
  203. package/dist/src/components/shortcut/index.d.ts +2 -0
  204. package/dist/src/components/shortcut/index.d.ts.map +1 -0
  205. package/dist/src/components/shortcut/index.js +2 -0
  206. package/dist/src/components/shortcut/index.js.map +1 -0
  207. package/dist/src/components/shortcut/shortcut.d.ts.map +1 -0
  208. package/dist/src/components/{shortcut.js → shortcut/shortcut.js} +2 -2
  209. package/dist/src/components/shortcut/shortcut.js.map +1 -0
  210. package/dist/src/components/simple_markdown/simple_markdown.js +5 -5
  211. package/dist/src/components/simple_markdown/simple_markdown.js.map +1 -1
  212. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts +6 -6
  213. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
  214. package/dist/src/components/simple_markdown/simple_markdown_components.js +6 -6
  215. package/dist/src/components/simple_markdown/simple_markdown_components.js.map +1 -1
  216. package/dist/src/components/spinner/index.d.ts +2 -0
  217. package/dist/src/components/spinner/index.d.ts.map +1 -0
  218. package/dist/src/components/spinner/index.js +2 -0
  219. package/dist/src/components/spinner/index.js.map +1 -0
  220. package/dist/src/components/spinner/spinner.d.ts.map +1 -0
  221. package/dist/src/components/{spinner.js → spinner/spinner.js} +1 -1
  222. package/dist/src/components/spinner/spinner.js.map +1 -0
  223. package/dist/src/components/store/store_actor_header.d.ts +1 -1
  224. package/dist/src/components/store/store_actor_header.d.ts.map +1 -1
  225. package/dist/src/components/store/store_actor_header.js +2 -2
  226. package/dist/src/components/store/store_actor_header.js.map +1 -1
  227. package/dist/src/components/tab_number_chip/index.d.ts +2 -0
  228. package/dist/src/components/tab_number_chip/index.d.ts.map +1 -0
  229. package/dist/src/components/tab_number_chip/index.js +2 -0
  230. package/dist/src/components/tab_number_chip/index.js.map +1 -0
  231. package/dist/src/components/tab_number_chip/tab_number_chip.d.ts.map +1 -0
  232. package/dist/src/components/{to_consolidate → tab_number_chip}/tab_number_chip.js +1 -1
  233. package/dist/src/components/tab_number_chip/tab_number_chip.js.map +1 -0
  234. package/dist/src/components/table/index.d.ts +2 -2
  235. package/dist/src/components/table/index.d.ts.map +1 -1
  236. package/dist/src/components/table/index.js +1 -1
  237. package/dist/src/components/table/table.context.d.ts +1 -1
  238. package/dist/src/components/table/table.context.d.ts.map +1 -1
  239. package/dist/src/components/table/table.js +1 -1
  240. package/dist/src/components/table/table.styled.d.ts +2 -2
  241. package/dist/src/components/table/table.styled.d.ts.map +1 -1
  242. package/dist/src/components/table/table.styled.js +1 -1
  243. package/dist/src/components/table/table.styled.js.map +1 -1
  244. package/dist/src/components/table/{table_test_ids.d.ts → table.test_ids.d.ts} +1 -1
  245. package/dist/src/components/table/table.test_ids.d.ts.map +1 -0
  246. package/dist/src/components/table/table.test_ids.js +16 -0
  247. package/dist/src/components/table/table.test_ids.js.map +1 -0
  248. package/dist/src/components/table/{types.d.ts → table.types.d.ts} +2 -2
  249. package/dist/src/components/table/table.types.d.ts.map +1 -0
  250. package/dist/src/components/table/table.types.js +2 -0
  251. package/dist/src/components/table/table.types.js.map +1 -0
  252. package/dist/src/components/table/table_body.js +1 -1
  253. package/dist/src/components/table/table_cell.d.ts +1 -1
  254. package/dist/src/components/table/table_cell.d.ts.map +1 -1
  255. package/dist/src/components/table/table_cell.js +2 -2
  256. package/dist/src/components/table/table_cell.js.map +1 -1
  257. package/dist/src/components/table/table_empty_row.js +1 -1
  258. package/dist/src/components/table/table_error_row.js +2 -2
  259. package/dist/src/components/table/table_error_row.js.map +1 -1
  260. package/dist/src/components/table/table_expansion_row.d.ts +1 -1
  261. package/dist/src/components/table/table_expansion_row.d.ts.map +1 -1
  262. package/dist/src/components/table/table_expansion_row.js +1 -1
  263. package/dist/src/components/table/table_foot.js +1 -1
  264. package/dist/src/components/table/table_head.js +1 -1
  265. package/dist/src/components/table/table_head_cell.js +1 -1
  266. package/dist/src/components/table/table_head_row.js +1 -1
  267. package/dist/src/components/table/table_loading_row.js +2 -2
  268. package/dist/src/components/table/table_loading_row.js.map +1 -1
  269. package/dist/src/components/table/table_row.d.ts +1 -1
  270. package/dist/src/components/table/table_row.d.ts.map +1 -1
  271. package/dist/src/components/table/table_row.js +1 -1
  272. package/dist/src/components/table/table_wrapper.d.ts +1 -1
  273. package/dist/src/components/table/table_wrapper.d.ts.map +1 -1
  274. package/dist/src/components/table/table_wrapper.js +2 -2
  275. package/dist/src/components/table/table_wrapper.js.map +1 -1
  276. package/dist/src/components/tabs/tab.d.ts +2 -2
  277. package/dist/src/components/tabs/tab.d.ts.map +1 -1
  278. package/dist/src/components/tabs/tab.js +3 -3
  279. package/dist/src/components/tabs/tab.js.map +1 -1
  280. package/dist/src/components/tabs/tabs.d.ts +2 -2
  281. package/dist/src/components/tabs/tabs.d.ts.map +1 -1
  282. package/dist/src/components/tabs/tabs.js +1 -1
  283. package/dist/src/components/tabs/tabs.js.map +1 -1
  284. package/dist/src/components/tag/index.d.ts +2 -0
  285. package/dist/src/components/tag/index.d.ts.map +1 -0
  286. package/dist/src/components/tag/index.js +2 -0
  287. package/dist/src/components/tag/index.js.map +1 -0
  288. package/dist/src/components/tag/tag.d.ts +44 -0
  289. package/dist/src/components/tag/tag.d.ts.map +1 -0
  290. package/dist/src/components/tag/tag.js +136 -0
  291. package/dist/src/components/tag/tag.js.map +1 -0
  292. package/dist/src/components/tag.d.ts +1 -42
  293. package/dist/src/components/tag.d.ts.map +1 -1
  294. package/dist/src/components/tag.js +1 -135
  295. package/dist/src/components/tag.js.map +1 -1
  296. package/dist/src/components/text/heading_content.d.ts +1 -1
  297. package/dist/src/components/text/heading_content.d.ts.map +1 -1
  298. package/dist/src/components/text/heading_marketing.d.ts +1 -1
  299. package/dist/src/components/text/heading_marketing.d.ts.map +1 -1
  300. package/dist/src/components/text/heading_shared.d.ts +1 -1
  301. package/dist/src/components/text/heading_shared.d.ts.map +1 -1
  302. package/dist/src/components/text/index.d.ts +4 -2
  303. package/dist/src/components/text/index.d.ts.map +1 -1
  304. package/dist/src/components/text/index.js +1 -1
  305. package/dist/src/components/text/index.js.map +1 -1
  306. package/dist/src/components/text/text_base.d.ts +2 -2
  307. package/dist/src/components/text/text_base.d.ts.map +1 -1
  308. package/dist/src/components/text/text_base.js +1 -1
  309. package/dist/src/components/text/text_base.js.map +1 -1
  310. package/dist/src/components/text/text_content.d.ts +1 -1
  311. package/dist/src/components/text/text_content.d.ts.map +1 -1
  312. package/dist/src/components/text/text_marketing.d.ts +1 -1
  313. package/dist/src/components/text/text_marketing.d.ts.map +1 -1
  314. package/dist/src/components/text/text_shared.d.ts +1 -1
  315. package/dist/src/components/text/text_shared.d.ts.map +1 -1
  316. package/dist/src/components/tile/horizontal_tile.d.ts +1 -1
  317. package/dist/src/components/tile/horizontal_tile.d.ts.map +1 -1
  318. package/dist/src/components/tile/vertical_tile.d.ts +1 -1
  319. package/dist/src/components/tile/vertical_tile.d.ts.map +1 -1
  320. package/dist/src/design_system/theme.js +2 -2
  321. package/dist/src/design_system/theme.js.map +1 -1
  322. package/dist/src/index.d.ts +4 -4
  323. package/dist/src/index.d.ts.map +1 -1
  324. package/dist/src/index.js +4 -4
  325. package/dist/src/index.js.map +1 -1
  326. package/dist/src/ui_dependency_provider.d.ts +1 -1
  327. package/dist/src/ui_dependency_provider.d.ts.map +1 -1
  328. package/dist/tsconfig.build.tsbuildinfo +1 -1
  329. package/package.json +4 -3
  330. package/src/components/{action_link.tsx → action_link/action_link.tsx} +4 -4
  331. package/src/components/action_link/index.ts +1 -0
  332. package/src/components/{actor_template_card.tsx → actor_template_card/actor_template_card.tsx} +4 -4
  333. package/src/components/actor_template_card/index.ts +1 -0
  334. package/src/components/{badge.stories.jsx → badge/badge.stories.jsx} +1 -1
  335. package/src/components/{badge.tsx → badge/badge.tsx} +6 -6
  336. package/src/components/badge/index.ts +1 -0
  337. package/src/components/{banner.tsx → banner/banner.tsx} +1 -1
  338. package/src/components/banner/index.ts +1 -0
  339. package/src/components/{blog_article.tsx → blog_article/blog_article.tsx} +1 -1
  340. package/src/components/blog_article/index.ts +1 -0
  341. package/src/components/box/box.stories.tsx +87 -0
  342. package/src/components/{box.tsx → box/box.tsx} +3 -3
  343. package/src/components/box/index.ts +1 -0
  344. package/src/components/breadcrumb/breadcrumb.tsx +3 -3
  345. package/src/components/browser_window/browser_window.tsx +1 -1
  346. package/src/components/{button.stories.tsx → button/button.stories.tsx} +1 -1
  347. package/src/components/{button.tsx → button/button.tsx} +5 -5
  348. package/src/components/button/index.ts +1 -0
  349. package/src/components/{to_consolidate → card}/card.stories.tsx +1 -1
  350. package/src/components/{to_consolidate → card}/card.tsx +4 -4
  351. package/src/components/card/index.ts +1 -0
  352. package/src/components/{card_container.stories.tsx → card_container/card_container.stories.tsx} +1 -1
  353. package/src/components/{card_container.tsx → card_container/card_container.tsx} +3 -3
  354. package/src/components/card_container/index.ts +1 -0
  355. package/src/components/{chip.tsx → chip/chip.tsx} +2 -2
  356. package/src/components/chip/index.ts +1 -0
  357. package/src/components/code/action_button.tsx +2 -2
  358. package/src/components/code/code_block/code_block.styled.tsx +2 -2
  359. package/src/components/code/code_block/code_block.tsx +5 -5
  360. package/src/components/code/code_block/code_block_with_tabs.tsx +2 -2
  361. package/src/components/code/inline_code/inline_code.stories.tsx +1 -1
  362. package/src/components/code/inline_code/inline_code.tsx +3 -3
  363. package/src/components/code/one_line_code/one_line_code.tsx +4 -4
  364. package/src/components/code/prism_highlighter.tsx +2 -2
  365. package/src/components/collapsible_card/collapsible_card.tsx +2 -2
  366. package/src/components/color_wheel_gradient/index.ts +1 -0
  367. package/src/components/floating/menu.tsx +50 -36
  368. package/src/components/floating/menu_components.tsx +53 -3
  369. package/src/components/floating/tooltip_content.tsx +2 -2
  370. package/src/components/{icon_button.tsx → icon_button/icon_button.tsx} +6 -6
  371. package/src/components/icon_button/index.ts +1 -0
  372. package/src/components/image/image.stories.tsx +77 -0
  373. package/src/components/{image.tsx → image/image.tsx} +3 -3
  374. package/src/components/image/index.ts +1 -0
  375. package/src/components/index.ts +39 -35
  376. package/src/components/link/index.ts +1 -0
  377. package/src/components/{link.tsx → link/link.tsx} +3 -3
  378. package/src/components/markdown/index.ts +1 -0
  379. package/src/components/{to_consolidate → markdown}/markdown.tsx +6 -6
  380. package/src/components/message/index.ts +1 -0
  381. package/src/components/{message.stories.jsx → message/message.stories.jsx} +1 -1
  382. package/src/components/{message.tsx → message/message.tsx} +5 -5
  383. package/src/components/pagination/index.ts +1 -0
  384. package/src/components/{to_consolidate → pagination}/pagination.tsx +2 -2
  385. package/src/components/radio_button/index.ts +1 -0
  386. package/src/components/radio_button/radio_button.stories.tsx +57 -0
  387. package/src/components/radio_button/radio_button.style.ts +48 -0
  388. package/src/components/radio_button/radio_button.tsx +43 -0
  389. package/src/components/rating/index.ts +1 -0
  390. package/src/components/{rating.tsx → rating/rating.tsx} +4 -4
  391. package/src/components/readme_renderer/table_of_contents.tsx +3 -3
  392. package/src/components/select/select.tsx +2 -2
  393. package/src/components/shortcut/index.ts +1 -0
  394. package/src/components/{shortcut.stories.jsx → shortcut/shortcut.stories.jsx} +1 -1
  395. package/src/components/{shortcut.tsx → shortcut/shortcut.tsx} +2 -2
  396. package/src/components/simple_markdown/simple_markdown.stories.tsx +1 -1
  397. package/src/components/simple_markdown/simple_markdown.tsx +5 -5
  398. package/src/components/simple_markdown/simple_markdown_components.tsx +11 -11
  399. package/src/components/spinner/index.ts +1 -0
  400. package/src/components/{spinner.tsx → spinner/spinner.tsx} +2 -2
  401. package/src/components/store/store_actor_header.tsx +2 -2
  402. package/src/components/tab_number_chip/index.ts +1 -0
  403. package/src/components/{to_consolidate → tab_number_chip}/tab_number_chip.tsx +1 -1
  404. package/src/components/table/index.ts +2 -2
  405. package/src/components/table/table.context.ts +1 -1
  406. package/src/components/table/table.stories.tsx +16 -13
  407. package/src/components/table/table.styled.ts +1 -1
  408. package/src/components/table/table.test_ids.ts +15 -0
  409. package/src/components/table/table.tsx +1 -1
  410. package/src/components/table/{types.ts → table.types.ts} +1 -1
  411. package/src/components/table/table_body.tsx +1 -1
  412. package/src/components/table/table_cell.tsx +2 -2
  413. package/src/components/table/table_empty_row.tsx +1 -1
  414. package/src/components/table/table_error_row.tsx +2 -2
  415. package/src/components/table/table_expansion_row.tsx +2 -2
  416. package/src/components/table/table_foot.tsx +1 -1
  417. package/src/components/table/table_head.tsx +1 -1
  418. package/src/components/table/table_head_cell.tsx +1 -1
  419. package/src/components/table/table_head_row.tsx +1 -1
  420. package/src/components/table/table_loading_row.tsx +2 -2
  421. package/src/components/table/table_row.tsx +2 -2
  422. package/src/components/table/table_wrapper.tsx +3 -3
  423. package/src/components/tabs/tab.tsx +9 -9
  424. package/src/components/tabs/tabs.tsx +5 -5
  425. package/src/components/tag/index.ts +1 -0
  426. package/src/components/{tag.stories.jsx → tag/tag.stories.jsx} +1 -1
  427. package/src/components/tag/tag.tsx +203 -0
  428. package/src/components/tag.tsx +1 -202
  429. package/src/components/text/heading_content.tsx +2 -2
  430. package/src/components/text/heading_marketing.tsx +2 -2
  431. package/src/components/text/heading_shared.tsx +2 -2
  432. package/src/components/text/index.ts +4 -1
  433. package/src/components/text/text_base.tsx +3 -3
  434. package/src/components/text/text_content.tsx +3 -3
  435. package/src/components/text/text_marketing.tsx +3 -3
  436. package/src/components/text/text_shared.tsx +2 -2
  437. package/src/components/tile/horizontal_tile.stories.tsx +1 -1
  438. package/src/components/tile/horizontal_tile.tsx +1 -1
  439. package/src/components/tile/vertical_tile.stories.tsx +2 -2
  440. package/src/components/tile/vertical_tile.tsx +1 -1
  441. package/src/design_system/theme.ts +2 -2
  442. package/src/index.ts +4 -4
  443. package/src/ui_dependency_provider.tsx +1 -1
  444. package/dist/src/components/action_link.d.ts.map +0 -1
  445. package/dist/src/components/action_link.js.map +0 -1
  446. package/dist/src/components/actor_template_card.d.ts.map +0 -1
  447. package/dist/src/components/actor_template_card.js.map +0 -1
  448. package/dist/src/components/badge.d.ts.map +0 -1
  449. package/dist/src/components/badge.js.map +0 -1
  450. package/dist/src/components/banner.d.ts.map +0 -1
  451. package/dist/src/components/banner.js.map +0 -1
  452. package/dist/src/components/blog_article.d.ts.map +0 -1
  453. package/dist/src/components/blog_article.js.map +0 -1
  454. package/dist/src/components/box.d.ts.map +0 -1
  455. package/dist/src/components/box.js.map +0 -1
  456. package/dist/src/components/button.d.ts.map +0 -1
  457. package/dist/src/components/button.js.map +0 -1
  458. package/dist/src/components/card_container.d.ts.map +0 -1
  459. package/dist/src/components/card_container.js.map +0 -1
  460. package/dist/src/components/chip.d.ts.map +0 -1
  461. package/dist/src/components/chip.js.map +0 -1
  462. package/dist/src/components/color_wheel_gradient.d.ts.map +0 -1
  463. package/dist/src/components/color_wheel_gradient.js.map +0 -1
  464. package/dist/src/components/icon_button.d.ts.map +0 -1
  465. package/dist/src/components/icon_button.js.map +0 -1
  466. package/dist/src/components/image.d.ts.map +0 -1
  467. package/dist/src/components/image.js.map +0 -1
  468. package/dist/src/components/link.d.ts.map +0 -1
  469. package/dist/src/components/link.js.map +0 -1
  470. package/dist/src/components/message.d.ts.map +0 -1
  471. package/dist/src/components/message.js.map +0 -1
  472. package/dist/src/components/rating.d.ts.map +0 -1
  473. package/dist/src/components/rating.js.map +0 -1
  474. package/dist/src/components/shortcut.d.ts.map +0 -1
  475. package/dist/src/components/shortcut.js.map +0 -1
  476. package/dist/src/components/spinner.d.ts.map +0 -1
  477. package/dist/src/components/spinner.js.map +0 -1
  478. package/dist/src/components/table/table_test_ids.d.ts.map +0 -1
  479. package/dist/src/components/table/table_test_ids.js +0 -16
  480. package/dist/src/components/table/table_test_ids.js.map +0 -1
  481. package/dist/src/components/table/types.d.ts.map +0 -1
  482. package/dist/src/components/table/types.js +0 -2
  483. package/dist/src/components/table/types.js.map +0 -1
  484. package/dist/src/components/to_consolidate/card.d.ts.map +0 -1
  485. package/dist/src/components/to_consolidate/card.js.map +0 -1
  486. package/dist/src/components/to_consolidate/index.d.ts +0 -5
  487. package/dist/src/components/to_consolidate/index.d.ts.map +0 -1
  488. package/dist/src/components/to_consolidate/index.js +0 -5
  489. package/dist/src/components/to_consolidate/index.js.map +0 -1
  490. package/dist/src/components/to_consolidate/markdown.d.ts.map +0 -1
  491. package/dist/src/components/to_consolidate/markdown.js.map +0 -1
  492. package/dist/src/components/to_consolidate/pagination.d.ts.map +0 -1
  493. package/dist/src/components/to_consolidate/pagination.js.map +0 -1
  494. package/dist/src/components/to_consolidate/tab_number_chip.d.ts.map +0 -1
  495. package/dist/src/components/to_consolidate/tab_number_chip.js.map +0 -1
  496. package/src/components/table/table_test_ids.ts +0 -15
  497. package/src/components/to_consolidate/index.ts +0 -4
  498. /package/dist/src/components/{actor_template_card.d.ts → actor_template_card/actor_template_card.d.ts} +0 -0
  499. /package/dist/src/components/{banner.d.ts → banner/banner.d.ts} +0 -0
  500. /package/dist/src/components/{blog_article.d.ts → blog_article/blog_article.d.ts} +0 -0
  501. /package/dist/src/components/{color_wheel_gradient.d.ts → color_wheel_gradient/color_wheel_gradient.d.ts} +0 -0
  502. /package/dist/src/components/{color_wheel_gradient.js → color_wheel_gradient/color_wheel_gradient.js} +0 -0
  503. /package/dist/src/components/{to_consolidate → pagination}/pagination.d.ts +0 -0
  504. /package/dist/src/components/{shortcut.d.ts → shortcut/shortcut.d.ts} +0 -0
  505. /package/dist/src/components/{spinner.d.ts → spinner/spinner.d.ts} +0 -0
  506. /package/dist/src/components/{to_consolidate → tab_number_chip}/tab_number_chip.d.ts +0 -0
  507. /package/src/components/{action_link.stories.tsx → action_link/action_link.stories.tsx} +0 -0
  508. /package/src/components/{actor_template_card.stories.tsx → actor_template_card/actor_template_card.stories.tsx} +0 -0
  509. /package/src/components/{badge.doc.mdx → badge/badge.doc.mdx} +0 -0
  510. /package/src/components/{banner.stories.tsx → banner/banner.stories.tsx} +0 -0
  511. /package/src/components/{blog_article.stories.tsx → blog_article/blog_article.stories.tsx} +0 -0
  512. /package/src/components/{chip.stories.tsx → chip/chip.stories.tsx} +0 -0
  513. /package/src/components/{color_wheel_gradient.stories.tsx → color_wheel_gradient/color_wheel_gradient.stories.tsx} +0 -0
  514. /package/src/components/{color_wheel_gradient.tsx → color_wheel_gradient/color_wheel_gradient.tsx} +0 -0
  515. /package/src/components/{icon_button.stories.tsx → icon_button/icon_button.stories.tsx} +0 -0
  516. /package/src/components/{link.stories.tsx → link/link.stories.tsx} +0 -0
  517. /package/src/components/{to_consolidate → markdown}/markdown.stories.tsx +0 -0
  518. /package/src/components/{to_consolidate → pagination}/pagination.stories.tsx +0 -0
  519. /package/src/components/{rating.stories.tsx → rating/rating.stories.tsx} +0 -0
  520. /package/src/components/{spinner.stories.tsx → spinner/spinner.stories.tsx} +0 -0
  521. /package/src/components/{to_consolidate → tab_number_chip}/tab_number_chip.stories.tsx +0 -0
  522. /package/src/components/{tag.doc.mdx → tag/tag.doc.mdx} +0 -0
@@ -0,0 +1,43 @@
1
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
2
+ import clsx from 'clsx';
3
+ import { type ComponentPropsWithoutRef, type FC } from 'react';
4
+ import styled from 'styled-components';
5
+
6
+ import { radioButtonStyle } from './radio_button.style.js';
7
+
8
+ const RADIO_VALUE = 'checked';
9
+
10
+ const StyledRoot = styled(RadioGroupPrimitive.Root)`
11
+ display: contents;
12
+ `;
13
+
14
+ const StyledRadioItem = styled(RadioGroupPrimitive.Item)`
15
+ ${radioButtonStyle}
16
+ `;
17
+
18
+ type RadioButtonBaseProps = Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, 'value'> & {
19
+ setValue: () => void;
20
+ error?: string;
21
+ readOnly?: boolean;
22
+ };
23
+
24
+ export type RadioButtonPrimitiveProps = RadioButtonBaseProps & { value: boolean };
25
+
26
+ export const RadioButtonPrimitive: FC<RadioButtonPrimitiveProps> = ({
27
+ value,
28
+ setValue,
29
+ error,
30
+ disabled,
31
+ readOnly,
32
+ className,
33
+ ...rest
34
+ }) => (
35
+ <StyledRoot value={value ? RADIO_VALUE : ''} onValueChange={() => setValue()}>
36
+ <StyledRadioItem
37
+ value={RADIO_VALUE}
38
+ disabled={disabled || readOnly}
39
+ className={clsx(className, error && 'error', (disabled || readOnly) && 'disabled')}
40
+ {...rest}
41
+ />
42
+ </StyledRoot>
43
+ );
@@ -0,0 +1 @@
1
+ export * from './rating.js';
@@ -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.js';
10
- import type { BoxProps } from './box.js';
11
- import { Box } from './box.js';
12
- import { Text } from './text/index.js';
9
+ import { theme } from '../../design_system/theme.js';
10
+ import type { BoxProps } from '../box';
11
+ import { Box } from '../box';
12
+ import { Text } from '../text';
13
13
 
14
14
  type RatingStatsProps = {
15
15
  ratingStats: Record<ReviewRating, number>;
@@ -5,9 +5,9 @@ import remarkToc from 'remark-toc';
5
5
  import styled from 'styled-components';
6
6
 
7
7
  import { theme } from '../../design_system/theme.js';
8
- import { inlineCodeStyles } from '../code/index.js';
9
- import { Link } from '../link.js';
10
- import { Text } from '../text/index.js';
8
+ import { inlineCodeStyles } from '../code';
9
+ import { Link } from '../link';
10
+ import { Text } from '../text';
11
11
  import { cleanMarkdown, slugifyHeadingChildren } from './utils.js';
12
12
 
13
13
  export const useShowTableOfContents = (markdown: string | null | undefined) =>
@@ -14,8 +14,8 @@ import styled from 'styled-components';
14
14
  import { CaretDownIcon, CaretUpIcon, CrossIcon, XCircleIcon } from '@apify/ui-icons';
15
15
 
16
16
  import { theme } from '../../design_system/theme.js';
17
- import { IconButton } from '../icon_button.js';
18
- import { Text } from '../text/index.js';
17
+ import { IconButton } from '../icon_button';
18
+ import { Text } from '../text';
19
19
 
20
20
  const DEFAULT_Z_INDEX_IN_MODAL = 99;
21
21
  const DEFAULT_Z_INDEX_OUTSIDE_MODAL = 9;
@@ -0,0 +1 @@
1
+ export * from './shortcut.js';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { theme } from '../design_system/theme.ts';
3
+ import { theme } from '../../design_system/theme.ts';
4
4
  import { Shortcut } from './shortcut.tsx';
5
5
 
6
6
  export default {
@@ -1,8 +1,8 @@
1
1
  import type { ElementType } from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
- import { theme } from '../design_system/theme.js';
5
- import { Text } from './text/index.js';
4
+ import { theme } from '../../design_system/theme.js';
5
+ import { Text } from '../text';
6
6
 
7
7
  interface ShortcutProps {
8
8
  as?: ElementType;
@@ -1,4 +1,4 @@
1
- import { Box } from '../box.js';
1
+ import { Box } from '../box';
2
2
  import { SimpleMarkdown, type SimpleMarkdownProps } from './simple_markdown.js';
3
3
 
4
4
  const testMarkdown = `
@@ -11,11 +11,11 @@ import { visit } from 'unist-util-visit';
11
11
 
12
12
  import { theme } from '../../design_system/theme.js';
13
13
  import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
14
- import { Box } from '../box.js';
15
- import { Image } from '../image.js';
16
- import { isUrlExternal } from '../link.js';
17
- import { cleanMarkdown } from '../readme_renderer/utils.js';
18
- import { Heading, HeadingContent, Text, TextContent } from '../text/index.js';
14
+ import { Box } from '../box';
15
+ import { Image } from '../image';
16
+ import { isUrlExternal } from '../link';
17
+ import { cleanMarkdown } from '../readme_renderer';
18
+ import { Heading, HeadingContent, Text, TextContent } from '../text';
19
19
  import { MarkdownBlockQuote, MarkdownCode, MarkdownLink, MarkdownTable } from './simple_markdown_components.js';
20
20
 
21
21
  export type SimpleMarkdownComponents = Components;
@@ -7,17 +7,17 @@ import styled from 'styled-components';
7
7
  import { CheckIcon, LinkIcon } from '@apify/ui-icons';
8
8
 
9
9
  import { theme } from '../../design_system/theme.js';
10
- import type { WithOptional } from '../../type_utils.js';
11
- import { useCopyToClipboard } from '../../utils/index.js';
12
- import { Box } from '../box.js';
13
- import { CodeBlock, InlineCode, OneLineCode } from '../code/index.js';
14
- import type { LinkProps } from '../link.js';
15
- import { Link } from '../link.js';
16
- import { slugifyHeadingChildren } from '../readme_renderer/utils.js';
17
- import type { HeadingSharedProps } from '../text/heading_shared.js';
18
- import { Heading, TextContent } from '../text/index.js';
19
- import type { ContentTextProps } from '../text/text_content.js';
20
- import type { SharedTextSize } from '../text/text_shared.js';
10
+ import type { WithOptional } from '../../type_utils';
11
+ import { useCopyToClipboard } from '../../utils';
12
+ import { Box } from '../box';
13
+ import { CodeBlock, InlineCode, OneLineCode } from '../code';
14
+ import type { LinkProps } from '../link';
15
+ import { Link } from '../link';
16
+ import { slugifyHeadingChildren } from '../readme_renderer';
17
+ import { Heading, TextContent } from '../text';
18
+ import type { HeadingSharedProps } from '../text';
19
+ import type { ContentTextProps } from '../text';
20
+ import type { SharedTextSize } from '../text';
21
21
 
22
22
  const simpleMarkdownClassNames = {
23
23
  HEADING_ICON_LINK: 'headingIconLink',
@@ -0,0 +1 @@
1
+ export * from './spinner.js';
@@ -1,7 +1,7 @@
1
1
  import styled, { keyframes } from 'styled-components';
2
2
 
3
- import { theme } from '../design_system/theme.js';
4
- import type { WithTransientProps } from '../type_utils.js';
3
+ import { theme } from '../../design_system/theme.js';
4
+ import type { WithTransientProps } from '../../type_utils';
5
5
 
6
6
  export const spinnerClassNames = {
7
7
  SPINNER: 'spinner',
@@ -2,9 +2,9 @@ import styled from 'styled-components';
2
2
 
3
3
  import { StarEmptyIcon, WarningTriangleIcon } from '@apify/ui-icons';
4
4
 
5
- import { Badge, Box, type BoxProps, Text } from '../../components/index.js';
5
+ import { Badge, Box, type BoxProps, Text } from '../../components';
6
6
  import { theme } from '../../design_system/theme.js';
7
- import { ActorAvatar, actorAvatarClassnames } from '../avatar/actor_avatar.js';
7
+ import { ActorAvatar, actorAvatarClassnames } from '../avatar';
8
8
 
9
9
  const storeActorHeaderClassNames = {
10
10
  title: 'ActorStoreItem-title',
@@ -0,0 +1 @@
1
+ export * from './tab_number_chip.js';
@@ -2,7 +2,7 @@ import type React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  import { theme } from '../../design_system/theme.js';
5
- import { Text } from '../text/index.js';
5
+ import { Text } from '../text';
6
6
 
7
7
  const StyledChip = styled(Text)`
8
8
  color: ${theme.color.neutral.text};
@@ -12,5 +12,5 @@ export { TableEmptyRow } from './table_empty_row.js';
12
12
  export { TableLoadingRow } from './table_loading_row.js';
13
13
  export { TableErrorRow } from './table_error_row.js';
14
14
  export { tableClassNames } from './table.styled.js';
15
- export { tableTestIds } from './table_test_ids.js';
16
- export type { HorizontallyScrollableTableWrapperProps, TableExpansion, TableRowProps } from './types.js';
15
+ export { tableTestIds } from './table.test_ids.js';
16
+ export type { HorizontallyScrollableTableWrapperProps, TableExpansion, TableRowProps } from './table.types.js';
@@ -1,5 +1,5 @@
1
1
  import { createContext } from 'react';
2
2
 
3
- import type { To } from '../link.js';
3
+ import type { To } from '../link';
4
4
 
5
5
  export const TableRowLinkContext = createContext<To | undefined>(undefined);
@@ -1,19 +1,22 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { expect, within } from 'storybook/test';
3
3
 
4
- import { Text } from '../text/index.js';
5
- import { Table } from './table.js';
6
- import { TableBody } from './table_body.js';
7
- import { TableCell, TableCellLink } from './table_cell.js';
8
- import { TableEmptyRow } from './table_empty_row.js';
9
- import { TableErrorRow } from './table_error_row.js';
10
- import { TableHead } from './table_head.js';
11
- import { TableHeadCell } from './table_head_cell.js';
12
- import { TableHeadRow } from './table_head_row.js';
13
- import { TableLoadingRow } from './table_loading_row.js';
14
- import { TableRow } from './table_row.js';
15
- import { tableTestIds } from './table_test_ids.js';
16
- import { HorizontallyScrollableTableWrapper } from './table_wrapper.js';
4
+ import { Text } from '../text';
5
+ import {
6
+ HorizontallyScrollableTableWrapper,
7
+ Table,
8
+ TableBody,
9
+ TableCell,
10
+ TableCellLink,
11
+ TableEmptyRow,
12
+ TableErrorRow,
13
+ TableHead,
14
+ TableHeadCell,
15
+ TableHeadRow,
16
+ TableLoadingRow,
17
+ TableRow,
18
+ tableTestIds,
19
+ } from './';
17
20
 
18
21
  // ---------------------------------------------------------------------------
19
22
  // Mock data
@@ -1,7 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
 
3
3
  import { theme } from '../../design_system/theme.js';
4
- import { Box } from '../box.js';
4
+ import { Box } from '../box';
5
5
 
6
6
  /** z-index for sticky table head cells. Consumers can override via CSS if needed. */
7
7
  const STICKY_HEAD_Z_INDEX = 5;
@@ -0,0 +1,15 @@
1
+ export const tableTestIds = {
2
+ TABLE: 'table',
3
+ HEAD: 'table-head',
4
+ HEAD_ROW: 'table-head-row',
5
+ HEAD_CELL: 'table-head-cell',
6
+ BODY: 'table-body',
7
+ ROW: 'table-row',
8
+ CELL: 'table-cell',
9
+ FOOT: 'table-foot',
10
+ WRAPPER: 'table-wrapper',
11
+ EMPTY_ROW: 'table-empty-row',
12
+ LOADING_ROW: 'table-loading-row',
13
+ ERROR_ROW: 'table-error-row',
14
+ EXPANSION_ROW: 'table-expansion-row',
15
+ };
@@ -2,7 +2,7 @@ import clsx from 'clsx';
2
2
  import type { FC, HTMLAttributes } from 'react';
3
3
 
4
4
  import { StyledTable, tableClassNames } from './table.styled.js';
5
- import { tableTestIds } from './table_test_ids.js';
5
+ import { tableTestIds } from './table.test_ids.js';
6
6
 
7
7
  export const Table: FC<HTMLAttributes<HTMLTableElement>> = ({ className, ...rest }) => (
8
8
  <StyledTable data-test={tableTestIds.TABLE} className={clsx(tableClassNames.TABLE, className)} {...rest} />
@@ -1,6 +1,6 @@
1
1
  import type { HTMLAttributes, ReactNode } from 'react';
2
2
 
3
- import type { To } from '../link.js';
3
+ import type { To } from '../link';
4
4
 
5
5
  export type TableRowProps = HTMLAttributes<HTMLTableRowElement> & {
6
6
  /** Apply clickable cursor style. Automatically set when `to` is provided. */
@@ -2,7 +2,7 @@ import clsx from 'clsx';
2
2
  import type { FC, HTMLAttributes } from 'react';
3
3
 
4
4
  import { tableClassNames } from './table.styled.js';
5
- import { tableTestIds } from './table_test_ids.js';
5
+ import { tableTestIds } from './table.test_ids.js';
6
6
 
7
7
  export const TableBody: FC<HTMLAttributes<HTMLTableSectionElement>> = ({ className, ...rest }) => (
8
8
  <tbody data-test={tableTestIds.BODY} className={clsx(tableClassNames.BODY, className)} {...rest} />
@@ -2,10 +2,10 @@ import clsx from 'clsx';
2
2
  import type { FC, TdHTMLAttributes } from 'react';
3
3
  import { useContext } from 'react';
4
4
 
5
- import { Link, type LinkProps } from '../link.js';
5
+ import { Link, type LinkProps } from '../link';
6
6
  import { TableRowLinkContext } from './table.context.js';
7
7
  import { tableClassNames } from './table.styled.js';
8
- import { tableTestIds } from './table_test_ids.js';
8
+ import { tableTestIds } from './table.test_ids.js';
9
9
 
10
10
  export const TableCell: FC<TdHTMLAttributes<HTMLTableCellElement>> = ({ className, children, ...rest }) => {
11
11
  const rowLink = useContext(TableRowLinkContext);
@@ -1,7 +1,7 @@
1
1
  import type { FC, ReactNode } from 'react';
2
2
 
3
3
  import { tableClassNames } from './table.styled.js';
4
- import { tableTestIds } from './table_test_ids.js';
4
+ import { tableTestIds } from './table.test_ids.js';
5
5
 
6
6
  export const TableEmptyRow: FC<{ colSpan: number; children: ReactNode }> = ({ colSpan, children }) => (
7
7
  <tr data-test={tableTestIds.EMPTY_ROW} className={tableClassNames.ROW_EMPTY}>
@@ -1,8 +1,8 @@
1
1
  import type { FC, ReactNode } from 'react';
2
2
 
3
- import { Text } from '../text/index.js';
3
+ import { Text } from '../text';
4
4
  import { tableClassNames } from './table.styled.js';
5
- import { tableTestIds } from './table_test_ids.js';
5
+ import { tableTestIds } from './table.test_ids.js';
6
6
 
7
7
  export const TableErrorRow: FC<{ colSpan: number; children?: ReactNode; error?: Error | null }> = ({
8
8
  colSpan,
@@ -2,8 +2,8 @@ import clsx from 'clsx';
2
2
  import type { FC, ReactNode } from 'react';
3
3
 
4
4
  import { tableClassNames } from './table.styled.js';
5
- import { tableTestIds } from './table_test_ids.js';
6
- import type { TableExpansion } from './types.js';
5
+ import { tableTestIds } from './table.test_ids.js';
6
+ import type { TableExpansion } from './table.types';
7
7
 
8
8
  export const TableExpansionRow: FC<{
9
9
  colSpan: number;
@@ -2,7 +2,7 @@ import clsx from 'clsx';
2
2
  import type { FC, HTMLAttributes } from 'react';
3
3
 
4
4
  import { tableClassNames } from './table.styled.js';
5
- import { tableTestIds } from './table_test_ids.js';
5
+ import { tableTestIds } from './table.test_ids.js';
6
6
 
7
7
  export const TableFoot: FC<HTMLAttributes<HTMLTableSectionElement>> = ({ className, ...rest }) => (
8
8
  <tfoot data-test={tableTestIds.FOOT} className={clsx(tableClassNames.FOOT, className)} {...rest} />
@@ -2,7 +2,7 @@ import clsx from 'clsx';
2
2
  import type { FC, HTMLAttributes } from 'react';
3
3
 
4
4
  import { tableClassNames } from './table.styled.js';
5
- import { tableTestIds } from './table_test_ids.js';
5
+ import { tableTestIds } from './table.test_ids.js';
6
6
 
7
7
  export const TableHead: FC<HTMLAttributes<HTMLTableSectionElement>> = ({ className, ...rest }) => (
8
8
  <thead data-test={tableTestIds.HEAD} className={clsx(tableClassNames.HEAD, className)} {...rest} />
@@ -2,7 +2,7 @@ import clsx from 'clsx';
2
2
  import type { FC, ThHTMLAttributes } from 'react';
3
3
 
4
4
  import { tableClassNames } from './table.styled.js';
5
- import { tableTestIds } from './table_test_ids.js';
5
+ import { tableTestIds } from './table.test_ids.js';
6
6
 
7
7
  export const TableHeadCell: FC<ThHTMLAttributes<HTMLTableCellElement>> = ({ className, ...rest }) => (
8
8
  <th data-test={tableTestIds.HEAD_CELL} className={clsx(tableClassNames.HEAD_CELL, className)} {...rest} />
@@ -2,7 +2,7 @@ import clsx from 'clsx';
2
2
  import type { FC, HTMLAttributes } from 'react';
3
3
 
4
4
  import { tableClassNames } from './table.styled.js';
5
- import { tableTestIds } from './table_test_ids.js';
5
+ import { tableTestIds } from './table.test_ids.js';
6
6
 
7
7
  export const TableHeadRow: FC<HTMLAttributes<HTMLTableRowElement>> = ({ className, ...rest }) => (
8
8
  <tr data-test={tableTestIds.HEAD_ROW} className={clsx(tableClassNames.HEAD_ROW, className)} {...rest} />
@@ -1,8 +1,8 @@
1
1
  import type { FC, ReactNode } from 'react';
2
2
 
3
- import { InlineSpinner } from '../spinner.js';
3
+ import { InlineSpinner } from '../spinner';
4
4
  import { tableClassNames } from './table.styled.js';
5
- import { tableTestIds } from './table_test_ids.js';
5
+ import { tableTestIds } from './table.test_ids.js';
6
6
 
7
7
  export const TableLoadingRow: FC<{ colSpan: number; children?: ReactNode }> = ({ colSpan, children }) => (
8
8
  <tr data-test={tableTestIds.LOADING_ROW} className={tableClassNames.ROW_EMPTY}>
@@ -3,8 +3,8 @@ import type { FC } from 'react';
3
3
 
4
4
  import { TableRowLinkContext } from './table.context.js';
5
5
  import { tableClassNames } from './table.styled.js';
6
- import { tableTestIds } from './table_test_ids.js';
7
- import type { TableRowProps } from './types.js';
6
+ import { tableTestIds } from './table.test_ids.js';
7
+ import type { TableRowProps } from './table.types';
8
8
 
9
9
  export const TableRow: FC<TableRowProps> = ({ className, clickable, expanded, to, ...rest }) => {
10
10
  const row = (
@@ -1,10 +1,10 @@
1
1
  import type { FC } from 'react';
2
2
  import { useCallback, useEffect, useRef } from 'react';
3
3
 
4
- import { Box } from '../box.js';
4
+ import { Box } from '../box';
5
5
  import { StyledHorizontallyScrollableTableWrapper, StyledTableFooterWrapper, tableClassNames } from './table.styled.js';
6
- import { tableTestIds } from './table_test_ids.js';
7
- import type { HorizontallyScrollableTableWrapperProps } from './types.js';
6
+ import { tableTestIds } from './table.test_ids.js';
7
+ import type { HorizontallyScrollableTableWrapperProps } from './table.types';
8
8
 
9
9
  export const HorizontallyScrollableTableWrapper: FC<HorizontallyScrollableTableWrapperProps> = ({
10
10
  children,
@@ -6,15 +6,15 @@ import styled, { css } from 'styled-components';
6
6
  import type { IconComponent } 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 type { FlattenSimpleInterpolation } from '../../utils/type_utils.js';
11
- import type { BadgeSize } from '../badge.js';
12
- import { Badge } from '../badge.js';
13
- import type { MarginSpacingProps, RegularBoxProps } from '../box.js';
14
- import type { RegularLinkProps } from '../link.js';
15
- import { Link } from '../link.js';
16
- import { Text } from '../text/index.js';
17
- import type { SharedTextSize } from '../text/text_shared.js';
9
+ import type { WithTransientProps } from '../../type_utils';
10
+ import type { FlattenSimpleInterpolation } from '../../utils/type_utils';
11
+ import type { BadgeSize } from '../badge';
12
+ import { Badge } from '../badge';
13
+ import type { MarginSpacingProps, RegularBoxProps } from '../box';
14
+ import type { RegularLinkProps } from '../link';
15
+ import { Link } from '../link';
16
+ import { Text } from '../text';
17
+ import type { SharedTextSize } from '../text';
18
18
 
19
19
  type SharedTabProps = Omit<RegularBoxProps, 'as' | 'onClick'> &
20
20
  MarginSpacingProps &
@@ -3,12 +3,12 @@ import { useCallback, useRef, useState } from 'react';
3
3
  import styled, { css } from 'styled-components';
4
4
 
5
5
  import { theme } from '../../design_system/theme.js';
6
- import type { WithTransientProps } from '../../type_utils.js';
6
+ import type { WithTransientProps } from '../../type_utils';
7
7
  import { useResizeObserverSsr } from '../../utils/resize_observer.js';
8
- import type { FlattenSimpleInterpolation } from '../../utils/type_utils.js';
9
- import type { MarginSpacingProps, RegularBoxProps } from '../box.js';
10
- import { Box } from '../box.js';
11
- import type { TabData, TabVariant } from './tab.js';
8
+ import type { FlattenSimpleInterpolation } from '../../utils/type_utils';
9
+ import type { MarginSpacingProps, RegularBoxProps } from '../box';
10
+ import { Box } from '../box';
11
+ import type { TabData, TabVariant } from './tab';
12
12
  import { Tab } from './tab.js';
13
13
 
14
14
  type SharedTabsProps = Omit<RegularBoxProps, 'as' | 'onClick'> & MarginSpacingProps;
@@ -0,0 +1 @@
1
+ export * from './tag.js';
@@ -3,8 +3,8 @@ import styled from 'styled-components';
3
3
 
4
4
  import { PeopleIcon, PlusIcon } from '@apify/ui-icons';
5
5
 
6
+ import { SHARED_TEXT_TYPES } from '../text/text_shared.tsx';
6
7
  import { Tag, TAG_SIZES, TAG_VARIANTS } from './tag.tsx';
7
- import { SHARED_TEXT_TYPES } from './text/text_shared.tsx';
8
8
 
9
9
  export default {
10
10
  title: 'UI-Library/Tag',