@apify/ui-library 1.138.0 → 1.138.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/README.md +3 -3
  2. package/dist/src/components/action_link.d.ts.map +1 -1
  3. package/dist/src/components/action_link.js +3 -3
  4. package/dist/src/components/action_link.js.map +1 -1
  5. package/dist/src/components/actor_template_card.d.ts.map +1 -1
  6. package/dist/src/components/actor_template_card.js +3 -3
  7. package/dist/src/components/actor_template_card.js.map +1 -1
  8. package/dist/src/components/avatar/actor_avatar.d.ts.map +1 -1
  9. package/dist/src/components/avatar/actor_avatar.js +3 -3
  10. package/dist/src/components/avatar/actor_avatar.js.map +1 -1
  11. package/dist/src/components/avatar/boring_avatar.d.ts.map +1 -1
  12. package/dist/src/components/avatar/boring_avatar.js +8 -7
  13. package/dist/src/components/avatar/boring_avatar.js.map +1 -1
  14. package/dist/src/components/avatar/user_avatar.d.ts.map +1 -1
  15. package/dist/src/components/avatar/user_avatar.js +1 -1
  16. package/dist/src/components/avatar/user_avatar.js.map +1 -1
  17. package/dist/src/components/badge.d.ts.map +1 -1
  18. package/dist/src/components/badge.js +10 -3
  19. package/dist/src/components/badge.js.map +1 -1
  20. package/dist/src/components/banner.d.ts.map +1 -1
  21. package/dist/src/components/banner.js +4 -3
  22. package/dist/src/components/banner.js.map +1 -1
  23. package/dist/src/components/blog_article.d.ts.map +1 -1
  24. package/dist/src/components/blog_article.js +2 -3
  25. package/dist/src/components/blog_article.js.map +1 -1
  26. package/dist/src/components/box.d.ts.map +1 -1
  27. package/dist/src/components/box.js +32 -24
  28. package/dist/src/components/box.js.map +1 -1
  29. package/dist/src/components/breadcrumb/breadcrumb.d.ts.map +1 -1
  30. package/dist/src/components/breadcrumb/breadcrumb.js +1 -1
  31. package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
  32. package/dist/src/components/button.d.ts.map +1 -1
  33. package/dist/src/components/button.js +12 -9
  34. package/dist/src/components/button.js.map +1 -1
  35. package/dist/src/components/card_container.d.ts.map +1 -1
  36. package/dist/src/components/card_container.js +5 -3
  37. package/dist/src/components/card_container.js.map +1 -1
  38. package/dist/src/components/checkbox/checkbox.d.ts.map +1 -1
  39. package/dist/src/components/checkbox/checkbox.js +1 -1
  40. package/dist/src/components/checkbox/checkbox.js.map +1 -1
  41. package/dist/src/components/checkbox/checkbox.style.d.ts.map +1 -1
  42. package/dist/src/components/checkbox/checkbox.style.js +7 -4
  43. package/dist/src/components/checkbox/checkbox.style.js.map +1 -1
  44. package/dist/src/components/chip.d.ts.map +1 -1
  45. package/dist/src/components/chip.js +1 -1
  46. package/dist/src/components/chip.js.map +1 -1
  47. package/dist/src/components/code/action_button.d.ts.map +1 -1
  48. package/dist/src/components/code/action_button.js +5 -5
  49. package/dist/src/components/code/action_button.js.map +1 -1
  50. package/dist/src/components/code/code_block/code_block.d.ts.map +1 -1
  51. package/dist/src/components/code/code_block/code_block.js +19 -8
  52. package/dist/src/components/code/code_block/code_block.js.map +1 -1
  53. package/dist/src/components/code/code_block/code_block.styled.d.ts.map +1 -1
  54. package/dist/src/components/code/code_block/code_block.styled.js +18 -15
  55. package/dist/src/components/code/code_block/code_block.styled.js.map +1 -1
  56. package/dist/src/components/code/code_block/code_block_with_tabs.d.ts.map +1 -1
  57. package/dist/src/components/code/code_block/code_block_with_tabs.js +10 -8
  58. package/dist/src/components/code/code_block/code_block_with_tabs.js.map +1 -1
  59. package/dist/src/components/code/code_block/utils.d.ts.map +1 -1
  60. package/dist/src/components/code/code_block/utils.js.map +1 -1
  61. package/dist/src/components/code/inline_code/inline_code.d.ts.map +1 -1
  62. package/dist/src/components/code/inline_code/inline_code.js +2 -2
  63. package/dist/src/components/code/inline_code/inline_code.js.map +1 -1
  64. package/dist/src/components/code/one_light_theme.d.ts.map +1 -1
  65. package/dist/src/components/code/one_light_theme.js +2 -17
  66. package/dist/src/components/code/one_light_theme.js.map +1 -1
  67. package/dist/src/components/code/one_line_code/one_line_code.d.ts.map +1 -1
  68. package/dist/src/components/code/one_line_code/one_line_code.js +11 -14
  69. package/dist/src/components/code/one_line_code/one_line_code.js.map +1 -1
  70. package/dist/src/components/code/prism_highlighter.d.ts.map +1 -1
  71. package/dist/src/components/code/prism_highlighter.js +35 -27
  72. package/dist/src/components/code/prism_highlighter.js.map +1 -1
  73. package/dist/src/components/code/prism_python.js.map +1 -1
  74. package/dist/src/components/collapsible_card/collapsible_card.d.ts.map +1 -1
  75. package/dist/src/components/collapsible_card/collapsible_card.js +7 -6
  76. package/dist/src/components/collapsible_card/collapsible_card.js.map +1 -1
  77. package/dist/src/components/color_wheel_gradient.d.ts.map +1 -1
  78. package/dist/src/components/color_wheel_gradient.js +4 -2
  79. package/dist/src/components/color_wheel_gradient.js.map +1 -1
  80. package/dist/src/components/floating/floating_component_base.d.ts +1 -1
  81. package/dist/src/components/floating/floating_component_base.d.ts.map +1 -1
  82. package/dist/src/components/floating/floating_component_base.js +3 -5
  83. package/dist/src/components/floating/floating_component_base.js.map +1 -1
  84. package/dist/src/components/floating/menu.d.ts.map +1 -1
  85. package/dist/src/components/floating/menu.js +11 -5
  86. package/dist/src/components/floating/menu.js.map +1 -1
  87. package/dist/src/components/floating/menu_common.d.ts +4 -4
  88. package/dist/src/components/floating/menu_common.d.ts.map +1 -1
  89. package/dist/src/components/floating/menu_common.js +1 -1
  90. package/dist/src/components/floating/menu_common.js.map +1 -1
  91. package/dist/src/components/floating/menu_components.d.ts.map +1 -1
  92. package/dist/src/components/floating/menu_components.js +9 -7
  93. package/dist/src/components/floating/menu_components.js.map +1 -1
  94. package/dist/src/components/floating/tooltip.d.ts +2 -2
  95. package/dist/src/components/floating/tooltip.d.ts.map +1 -1
  96. package/dist/src/components/floating/tooltip.js +10 -9
  97. package/dist/src/components/floating/tooltip.js.map +1 -1
  98. package/dist/src/components/floating/tooltip_content.d.ts.map +1 -1
  99. package/dist/src/components/floating/tooltip_content.js +3 -3
  100. package/dist/src/components/floating/tooltip_content.js.map +1 -1
  101. package/dist/src/components/icon_button.d.ts.map +1 -1
  102. package/dist/src/components/icon_button.js +10 -8
  103. package/dist/src/components/icon_button.js.map +1 -1
  104. package/dist/src/components/image.d.ts.map +1 -1
  105. package/dist/src/components/image.js +1 -1
  106. package/dist/src/components/image.js.map +1 -1
  107. package/dist/src/components/link.d.ts.map +1 -1
  108. package/dist/src/components/link.js +5 -5
  109. package/dist/src/components/link.js.map +1 -1
  110. package/dist/src/components/message.d.ts.map +1 -1
  111. package/dist/src/components/message.js +21 -21
  112. package/dist/src/components/message.js.map +1 -1
  113. package/dist/src/components/rating.d.ts.map +1 -1
  114. package/dist/src/components/rating.js +5 -6
  115. package/dist/src/components/rating.js.map +1 -1
  116. package/dist/src/components/readme_renderer/pythonize_value.d.ts.map +1 -1
  117. package/dist/src/components/readme_renderer/pythonize_value.js +10 -6
  118. package/dist/src/components/readme_renderer/pythonize_value.js.map +1 -1
  119. package/dist/src/components/readme_renderer/table_of_contents.d.ts.map +1 -1
  120. package/dist/src/components/readme_renderer/table_of_contents.js +16 -15
  121. package/dist/src/components/readme_renderer/table_of_contents.js.map +1 -1
  122. package/dist/src/components/readme_renderer/utils.d.ts.map +1 -1
  123. package/dist/src/components/readme_renderer/utils.js +6 -6
  124. package/dist/src/components/readme_renderer/utils.js.map +1 -1
  125. package/dist/src/components/select/select.d.ts.map +1 -1
  126. package/dist/src/components/select/select.js +14 -13
  127. package/dist/src/components/select/select.js.map +1 -1
  128. package/dist/src/components/shortcut.d.ts +1 -1
  129. package/dist/src/components/shortcut.d.ts.map +1 -1
  130. package/dist/src/components/shortcut.js +2 -2
  131. package/dist/src/components/shortcut.js.map +1 -1
  132. package/dist/src/components/simple_markdown/simple_markdown.d.ts.map +1 -1
  133. package/dist/src/components/simple_markdown/simple_markdown.js +32 -35
  134. package/dist/src/components/simple_markdown/simple_markdown.js.map +1 -1
  135. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
  136. package/dist/src/components/simple_markdown/simple_markdown_components.js +26 -12
  137. package/dist/src/components/simple_markdown/simple_markdown_components.js.map +1 -1
  138. package/dist/src/components/spinner.d.ts.map +1 -1
  139. package/dist/src/components/spinner.js +3 -1
  140. package/dist/src/components/spinner.js.map +1 -1
  141. package/dist/src/components/store/store_actor_header.d.ts.map +1 -1
  142. package/dist/src/components/store/store_actor_header.js +1 -1
  143. package/dist/src/components/store/store_actor_header.js.map +1 -1
  144. package/dist/src/components/switch/switch.d.ts.map +1 -1
  145. package/dist/src/components/switch/switch.js +1 -1
  146. package/dist/src/components/switch/switch.js.map +1 -1
  147. package/dist/src/components/switch/switch.style.d.ts.map +1 -1
  148. package/dist/src/components/switch/switch.style.js +5 -3
  149. package/dist/src/components/switch/switch.style.js.map +1 -1
  150. package/dist/src/components/table/table.styled.js +3 -3
  151. package/dist/src/components/table/table.styled.js.map +1 -1
  152. package/dist/src/components/table/table_error_row.d.ts.map +1 -1
  153. package/dist/src/components/table/table_error_row.js +1 -1
  154. package/dist/src/components/table/table_error_row.js.map +1 -1
  155. package/dist/src/components/table/table_row.d.ts.map +1 -1
  156. package/dist/src/components/table/table_row.js +1 -1
  157. package/dist/src/components/table/table_row.js.map +1 -1
  158. package/dist/src/components/table/table_wrapper.d.ts.map +1 -1
  159. package/dist/src/components/table/table_wrapper.js +3 -3
  160. package/dist/src/components/table/table_wrapper.js.map +1 -1
  161. package/dist/src/components/tabs/tab.d.ts.map +1 -1
  162. package/dist/src/components/tabs/tab.js +7 -5
  163. package/dist/src/components/tabs/tab.js.map +1 -1
  164. package/dist/src/components/tabs/tabs.d.ts.map +1 -1
  165. package/dist/src/components/tabs/tabs.js +3 -3
  166. package/dist/src/components/tabs/tabs.js.map +1 -1
  167. package/dist/src/components/tag.d.ts +1 -1
  168. package/dist/src/components/tag.d.ts.map +1 -1
  169. package/dist/src/components/tag.js +1 -1
  170. package/dist/src/components/tag.js.map +1 -1
  171. package/dist/src/components/text/heading_content.d.ts.map +1 -1
  172. package/dist/src/components/text/heading_content.js +1 -1
  173. package/dist/src/components/text/heading_content.js.map +1 -1
  174. package/dist/src/components/text/heading_marketing.d.ts.map +1 -1
  175. package/dist/src/components/text/heading_marketing.js +1 -1
  176. package/dist/src/components/text/heading_marketing.js.map +1 -1
  177. package/dist/src/components/text/heading_shared.d.ts.map +1 -1
  178. package/dist/src/components/text/heading_shared.js +1 -1
  179. package/dist/src/components/text/heading_shared.js.map +1 -1
  180. package/dist/src/components/text/index.d.ts +1 -1
  181. package/dist/src/components/text/index.d.ts.map +1 -1
  182. package/dist/src/components/text/text_base.d.ts.map +1 -1
  183. package/dist/src/components/text/text_base.js +16 -12
  184. package/dist/src/components/text/text_base.js.map +1 -1
  185. package/dist/src/components/text/text_content.d.ts.map +1 -1
  186. package/dist/src/components/text/text_content.js +1 -1
  187. package/dist/src/components/text/text_content.js.map +1 -1
  188. package/dist/src/components/text/text_marketing.d.ts.map +1 -1
  189. package/dist/src/components/text/text_marketing.js +1 -1
  190. package/dist/src/components/text/text_marketing.js.map +1 -1
  191. package/dist/src/components/text/text_shared.d.ts +1 -1
  192. package/dist/src/components/text/text_shared.d.ts.map +1 -1
  193. package/dist/src/components/text/text_shared.js +1 -1
  194. package/dist/src/components/text/text_shared.js.map +1 -1
  195. package/dist/src/components/tile/horizontal_tile.d.ts.map +1 -1
  196. package/dist/src/components/tile/horizontal_tile.js +3 -2
  197. package/dist/src/components/tile/horizontal_tile.js.map +1 -1
  198. package/dist/src/components/tile/shared.d.ts +1 -1
  199. package/dist/src/components/tile/shared.d.ts.map +1 -1
  200. package/dist/src/components/tile/vertical_tile.d.ts.map +1 -1
  201. package/dist/src/components/tile/vertical_tile.js +3 -2
  202. package/dist/src/components/tile/vertical_tile.js.map +1 -1
  203. package/dist/src/components/to_consolidate/card.d.ts.map +1 -1
  204. package/dist/src/components/to_consolidate/card.js +20 -15
  205. package/dist/src/components/to_consolidate/card.js.map +1 -1
  206. package/dist/src/components/to_consolidate/markdown.d.ts.map +1 -1
  207. package/dist/src/components/to_consolidate/markdown.js +36 -20
  208. package/dist/src/components/to_consolidate/markdown.js.map +1 -1
  209. package/dist/src/components/to_consolidate/pagination.d.ts.map +1 -1
  210. package/dist/src/components/to_consolidate/pagination.js +6 -6
  211. package/dist/src/components/to_consolidate/pagination.js.map +1 -1
  212. package/dist/src/components/to_consolidate/tab_number_chip.d.ts.map +1 -1
  213. package/dist/src/components/to_consolidate/tab_number_chip.js +1 -1
  214. package/dist/src/components/to_consolidate/tab_number_chip.js.map +1 -1
  215. package/dist/src/design_system/theme.d.ts.map +1 -1
  216. package/dist/src/design_system/theme.js +1 -1
  217. package/dist/src/design_system/theme.js.map +1 -1
  218. package/dist/src/design_system/typography_theme.d.ts.map +1 -1
  219. package/dist/src/design_system/typography_theme.js.map +1 -1
  220. package/dist/src/ui_dependency_provider.d.ts.map +1 -1
  221. package/dist/src/ui_dependency_provider.js +2 -2
  222. package/dist/src/ui_dependency_provider.js.map +1 -1
  223. package/dist/tsconfig.build.tsbuildinfo +1 -1
  224. package/package.json +8 -6
  225. package/src/codemods/generate_typograpy_tokens_files.mjs +23 -28
  226. package/src/components/action_link.tsx +13 -23
  227. package/src/components/actor_template_card.stories.tsx +20 -14
  228. package/src/components/actor_template_card.tsx +4 -21
  229. package/src/components/avatar/actor_avatar.tsx +3 -4
  230. package/src/components/avatar/boring_avatar.tsx +134 -167
  231. package/src/components/avatar/user_avatar.stories.tsx +1 -5
  232. package/src/components/avatar/user_avatar.tsx +6 -20
  233. package/src/components/badge.stories.jsx +26 -40
  234. package/src/components/badge.tsx +37 -26
  235. package/src/components/banner.stories.tsx +10 -28
  236. package/src/components/banner.tsx +11 -14
  237. package/src/components/blog_article.tsx +6 -4
  238. package/src/components/box.tsx +90 -89
  239. package/src/components/breadcrumb/breadcrumb.stories.tsx +2 -8
  240. package/src/components/breadcrumb/breadcrumb.tsx +7 -5
  241. package/src/components/button.stories.tsx +70 -66
  242. package/src/components/button.tsx +33 -39
  243. package/src/components/card_container.stories.tsx +28 -29
  244. package/src/components/card_container.tsx +15 -10
  245. package/src/components/checkbox/checkbox.stories.tsx +52 -17
  246. package/src/components/checkbox/checkbox.style.ts +7 -4
  247. package/src/components/checkbox/checkbox.tsx +6 -9
  248. package/src/components/chip.stories.tsx +15 -5
  249. package/src/components/chip.tsx +26 -16
  250. package/src/components/code/action_button.tsx +10 -12
  251. package/src/components/code/code_block/code_block.stories.jsx +7 -25
  252. package/src/components/code/code_block/code_block.styled.tsx +26 -19
  253. package/src/components/code/code_block/code_block.tsx +26 -24
  254. package/src/components/code/code_block/code_block_with_tabs.stories.tsx +12 -18
  255. package/src/components/code/code_block/code_block_with_tabs.tsx +30 -16
  256. package/src/components/code/code_block/utils.tsx +23 -15
  257. package/src/components/code/inline_code/inline_code.stories.tsx +18 -10
  258. package/src/components/code/inline_code/inline_code.tsx +16 -21
  259. package/src/components/code/one_light_theme.ts +2 -17
  260. package/src/components/code/one_line_code/one_line_code.stories.tsx +31 -19
  261. package/src/components/code/one_line_code/one_line_code.tsx +19 -30
  262. package/src/components/code/prism_highlighter.tsx +117 -109
  263. package/src/components/code/prism_python.ts +4 -2
  264. package/src/components/collapsible_card/collapsible_card.stories.tsx +2 -1
  265. package/src/components/collapsible_card/collapsible_card.tsx +30 -15
  266. package/src/components/color_wheel_gradient.tsx +9 -7
  267. package/src/components/floating/floating_component_base.tsx +16 -9
  268. package/src/components/floating/menu.tsx +37 -46
  269. package/src/components/floating/menu_common.tsx +24 -30
  270. package/src/components/floating/menu_components.tsx +24 -24
  271. package/src/components/floating/tooltip.stories.jsx +85 -68
  272. package/src/components/floating/tooltip.tsx +32 -39
  273. package/src/components/floating/tooltip_content.tsx +8 -16
  274. package/src/components/icon_button.stories.tsx +176 -188
  275. package/src/components/icon_button.tsx +72 -58
  276. package/src/components/image.tsx +5 -11
  277. package/src/components/link.stories.tsx +4 -2
  278. package/src/components/link.tsx +70 -70
  279. package/src/components/message.stories.jsx +35 -33
  280. package/src/components/message.tsx +45 -45
  281. package/src/components/rating.tsx +37 -44
  282. package/src/components/readme_renderer/pythonize_value.ts +19 -7
  283. package/src/components/readme_renderer/table_of_contents.stories.tsx +40 -15
  284. package/src/components/readme_renderer/table_of_contents.tsx +87 -85
  285. package/src/components/readme_renderer/utils.tsx +17 -13
  286. package/src/components/select/select.stories.tsx +19 -46
  287. package/src/components/select/select.tsx +103 -101
  288. package/src/components/shortcut.stories.jsx +23 -14
  289. package/src/components/shortcut.tsx +2 -13
  290. package/src/components/simple_markdown/simple_markdown.stories.tsx +5 -10
  291. package/src/components/simple_markdown/simple_markdown.tsx +152 -55
  292. package/src/components/simple_markdown/simple_markdown_components.tsx +49 -59
  293. package/src/components/spinner.stories.tsx +14 -8
  294. package/src/components/spinner.tsx +5 -3
  295. package/src/components/store/store_actor_header.stories.tsx +2 -11
  296. package/src/components/store/store_actor_header.tsx +20 -16
  297. package/src/components/switch/switch.stories.jsx +4 -12
  298. package/src/components/switch/switch.style.ts +5 -3
  299. package/src/components/switch/switch.tsx +3 -13
  300. package/src/components/table/table.stories.tsx +5 -2
  301. package/src/components/table/table.styled.ts +3 -3
  302. package/src/components/table/table_error_row.tsx +5 -1
  303. package/src/components/table/table_row.tsx +1 -5
  304. package/src/components/table/table_wrapper.tsx +12 -12
  305. package/src/components/tabs/tab.stories.tsx +1 -5
  306. package/src/components/tabs/tab.tsx +33 -13
  307. package/src/components/tabs/tabs.tsx +14 -18
  308. package/src/components/tag.stories.jsx +35 -45
  309. package/src/components/tag.tsx +18 -22
  310. package/src/components/text/heading_content.stories.tsx +13 -24
  311. package/src/components/text/heading_content.tsx +3 -7
  312. package/src/components/text/heading_marketing.stories.tsx +4 -3
  313. package/src/components/text/heading_marketing.tsx +12 -8
  314. package/src/components/text/heading_shared.stories.tsx +3 -2
  315. package/src/components/text/heading_shared.tsx +3 -7
  316. package/src/components/text/index.ts +1 -3
  317. package/src/components/text/text_base.tsx +29 -35
  318. package/src/components/text/text_content.stories.tsx +17 -13
  319. package/src/components/text/text_content.tsx +20 -23
  320. package/src/components/text/text_marketing.stories.tsx +4 -3
  321. package/src/components/text/text_marketing.tsx +20 -23
  322. package/src/components/text/text_shared.stories.tsx +4 -3
  323. package/src/components/text/text_shared.tsx +23 -27
  324. package/src/components/tile/horizontal_tile.stories.tsx +6 -2
  325. package/src/components/tile/horizontal_tile.tsx +5 -15
  326. package/src/components/tile/shared.ts +5 -5
  327. package/src/components/tile/vertical_tile.stories.tsx +10 -18
  328. package/src/components/tile/vertical_tile.tsx +4 -9
  329. package/src/components/to_consolidate/card.stories.tsx +3 -1
  330. package/src/components/to_consolidate/card.tsx +67 -58
  331. package/src/components/to_consolidate/markdown.tsx +76 -62
  332. package/src/components/to_consolidate/pagination.tsx +11 -15
  333. package/src/components/to_consolidate/tab_number_chip.tsx +5 -6
  334. package/src/design_system/colors/build_color_tokens.js +7 -15
  335. package/src/design_system/theme.ts +1 -8
  336. package/src/design_system/tokens/radiuses.stories.tsx +9 -1
  337. package/src/design_system/tokens/shadows.stories.tsx +3 -1
  338. package/src/design_system/typography_theme.ts +78 -39
  339. package/src/ui_dependency_provider.tsx +16 -23
@@ -9,8 +9,9 @@ export default {
9
9
  parameters: {
10
10
  docs: {
11
11
  description: {
12
- component: 'Shared headings are the standard typography component used throughout the console and shared components. '
13
- + 'This is the default choice for most heading needs. **If you\'re unsure which heading component to use, choose this one.**',
12
+ component:
13
+ 'Shared headings are the standard typography component used throughout the console and shared components. ' +
14
+ "This is the default choice for most heading needs. **If you're unsure which heading component to use, choose this one.**",
14
15
  },
15
16
  },
16
17
  },
@@ -9,7 +9,7 @@ import { TextBaseComponent } from './text_base.js';
9
9
  type HeadingSharedType = 'titleXs' | 'titleS' | 'titleM' | 'titleL' | 'titleXl' | 'title2xl' | 'title3xl';
10
10
 
11
11
  interface HeadingSharedTransientProps {
12
- type?: HeadingSharedType,
12
+ type?: HeadingSharedType;
13
13
  }
14
14
 
15
15
  type StyledHeadingSharedProps = WithTransientProps<HeadingSharedTransientProps>;
@@ -39,16 +39,12 @@ const StyledHeadingShared = styled(TextBaseComponent)<StyledHeadingSharedProps>`
39
39
  `}
40
40
  `;
41
41
 
42
- export const HeadingShared: React.FC<HeadingSharedProps> = ({
43
- type,
44
- as,
45
- ...rest
46
- }) => {
42
+ export const HeadingShared: React.FC<HeadingSharedProps> = ({ type, as, ...rest }) => {
47
43
  return (
48
44
  <StyledHeadingShared
49
45
  $type={type}
50
46
  forwardedAs={as || HEADING_SHARED_DEFAULT_ELEMENTS[type || 'titleL']}
51
- m='none'
47
+ m="none"
52
48
  {...rest}
53
49
  />
54
50
  );
@@ -14,6 +14,4 @@ export {
14
14
  SHARED_TEXT_TYPES,
15
15
  };
16
16
 
17
- export type {
18
- SharedTextProps,
19
- };
17
+ export type { SharedTextProps };
@@ -6,47 +6,41 @@ import type { BoxProps } from '../box.js';
6
6
  import { Box } from '../box.js';
7
7
 
8
8
  export interface TransientTextBaseProps {
9
- italic?: boolean
10
- uppercase?: boolean
11
- align?: 'left' | 'right' | 'center'
12
- color?: string,
9
+ italic?: boolean;
10
+ uppercase?: boolean;
11
+ align?: 'left' | 'right' | 'center';
12
+ color?: string;
13
13
  }
14
14
 
15
15
  export type StyledTextBaseProps = WithTransientProps<TransientTextBaseProps>;
16
16
  export type TextBaseProps = TransientTextBaseProps & BoxProps;
17
17
 
18
18
  const StyledText = styled(Box)<StyledTextBaseProps>`
19
- ${(props) => props.$italic && css`
20
- font-style: italic;
21
- `}
22
-
23
- ${(props) => props.$uppercase && css`
24
- text-transform: uppercase;
25
- `}
26
-
27
- ${(props) => props.$align && css`
28
- text-align: ${props.$align};
29
- `}
30
-
31
- ${(props) => props.$color && css`
32
- color: ${props.$color};
33
- `}
19
+ ${(props) =>
20
+ props.$italic &&
21
+ css`
22
+ font-style: italic;
23
+ `}
24
+
25
+ ${(props) =>
26
+ props.$uppercase &&
27
+ css`
28
+ text-transform: uppercase;
29
+ `}
30
+
31
+ ${(props) =>
32
+ props.$align &&
33
+ css`
34
+ text-align: ${props.$align};
35
+ `}
36
+
37
+ ${(props) =>
38
+ props.$color &&
39
+ css`
40
+ color: ${props.$color};
41
+ `}
34
42
  `;
35
43
 
36
- export const TextBaseComponent: React.FC<TextBaseProps> = ({
37
- italic,
38
- align,
39
- color,
40
- uppercase,
41
- as,
42
- ...rest
43
- }) => (
44
- <StyledText
45
- $italic={italic}
46
- $align={align}
47
- $color={color}
48
- $uppercase={uppercase}
49
- forwardedAs={as}
50
- {...rest}
51
- />
44
+ export const TextBaseComponent: React.FC<TextBaseProps> = ({ italic, align, color, uppercase, as, ...rest }) => (
45
+ <StyledText $italic={italic} $align={align} $color={color} $uppercase={uppercase} forwardedAs={as} {...rest} />
52
46
  );
@@ -10,9 +10,10 @@ export default {
10
10
  parameters: {
11
11
  docs: {
12
12
  description: {
13
- component: '⚠️ **Internal Component**: This component is specifically designed for use within the SimpleMarkdown component.'
14
- + ' It provides content-specific text styles for markdown rendering (paragraphs and code snippets).'
15
- + ' For general text usage, use TextShared or TextMarketing instead.',
13
+ component:
14
+ '⚠️ **Internal Component**: This component is specifically designed for use within the SimpleMarkdown component.' +
15
+ ' It provides content-specific text styles for markdown rendering (paragraphs and code snippets).' +
16
+ ' For general text usage, use TextShared or TextMarketing instead.',
16
17
  },
17
18
  },
18
19
  },
@@ -124,9 +125,9 @@ export const AllVariants: Story = {
124
125
  <WarningBanner>
125
126
  <strong>⚠️ Internal Component</strong>
126
127
  <p>
127
- TextContent is used exclusively by the SimpleMarkdown component for rendering
128
- markdown paragraphs and inline code snippets. For general text usage in your
129
- application, use TextShared or TextMarketing components instead.
128
+ TextContent is used exclusively by the SimpleMarkdown component for rendering markdown paragraphs
129
+ and inline code snippets. For general text usage in your application, use TextShared or
130
+ TextMarketing components instead.
130
131
  </p>
131
132
  </WarningBanner>
132
133
 
@@ -139,16 +140,16 @@ export const AllVariants: Story = {
139
140
  <TextShowcase>
140
141
  <small>type=paragraph, weight=normal</small>
141
142
  <TextContent type="paragraph" weight="normal">
142
- This is a paragraph with normal weight, used for standard markdown text content.
143
- It provides optimal readability for documentation and readme files.
143
+ This is a paragraph with normal weight, used for standard markdown text content. It provides
144
+ optimal readability for documentation and readme files.
144
145
  </TextContent>
145
146
  </TextShowcase>
146
147
 
147
148
  <TextShowcase>
148
149
  <small>type=paragraph, weight=bold</small>
149
150
  <TextContent type="paragraph" weight="bold">
150
- This is a paragraph with bold weight, used for **strong text** in markdown.
151
- It creates emphasis for important information within the content.
151
+ This is a paragraph with bold weight, used for **strong text** in markdown. It creates emphasis
152
+ for important information within the content.
152
153
  </TextContent>
153
154
  </TextShowcase>
154
155
  </div>
@@ -177,9 +178,12 @@ export const AllVariants: Story = {
177
178
  <div style={{ marginTop: '2rem', padding: '1.5rem', border: '1px solid #e0e0e0', borderRadius: '4px' }}>
178
179
  <h4 style={{ marginTop: 0 }}>Example in Markdown Context</h4>
179
180
  <TextContent type="paragraph" weight="normal" mb="space8">
180
- The SimpleMarkdown component uses these styles to render markdown. For example,
181
- when you write code like <TextContent type="snippet" weight="normal" as="span">npm install</TextContent> inline,
182
- it uses the snippet type.
181
+ The SimpleMarkdown component uses these styles to render markdown. For example, when you write code
182
+ like{' '}
183
+ <TextContent type="snippet" weight="normal" as="span">
184
+ npm install
185
+ </TextContent>{' '}
186
+ inline, it uses the snippet type.
183
187
  </TextContent>
184
188
  <TextContent type="paragraph" weight="bold">
185
189
  Bold text in markdown is rendered using paragraph with bold weight.
@@ -11,8 +11,8 @@ export type ContentTextType = 'paragraph' | 'snippet';
11
11
  export type ContentTextWeight = 'normal' | 'bold';
12
12
 
13
13
  export interface TransientContentTextProps {
14
- type?: ContentTextType,
15
- weight?: ContentTextWeight,
14
+ type?: ContentTextType;
15
+ weight?: ContentTextWeight;
16
16
  }
17
17
 
18
18
  type StyledContentTextProps = WithTransientProps<TransientContentTextProps>;
@@ -82,26 +82,23 @@ const StyledTextContent = styled(TextBaseComponent)<StyledContentTextProps>`
82
82
  /**
83
83
  * @deprecated Use Text or TextMarketing from ui-library
84
84
  */
85
- export const TextContent = forwardRef<HTMLElement | undefined, ContentTextProps>(({
86
- type,
87
- weight,
88
- as,
89
- ...rest
90
- }, ref) => {
91
- return (
92
- <StyledTextContent
93
- $type={type}
94
- $weight={weight}
95
- forwardedAs={as || 'p'}
96
- ref={ref}
97
- // We have global CSS file that defines margins for p and h to some 'normalized' value
98
- // But at the same time we want to have default margin set to 0 for Text and Headings
99
- // In perfect world, all texts would be rendered using Text/Heading components and we could have 0 margin set globally
100
- // Until then we have to set default 0 margin here
101
- m='none'
102
- {...rest}
103
- />
104
- );
105
- });
85
+ export const TextContent = forwardRef<HTMLElement | undefined, ContentTextProps>(
86
+ ({ type, weight, as, ...rest }, ref) => {
87
+ return (
88
+ <StyledTextContent
89
+ $type={type}
90
+ $weight={weight}
91
+ forwardedAs={as || 'p'}
92
+ ref={ref}
93
+ // We have global CSS file that defines margins for p and h to some 'normalized' value
94
+ // But at the same time we want to have default margin set to 0 for Text and Headings
95
+ // In perfect world, all texts would be rendered using Text/Heading components and we could have 0 margin set globally
96
+ // Until then we have to set default 0 margin here
97
+ m="none"
98
+ {...rest}
99
+ />
100
+ );
101
+ },
102
+ );
106
103
 
107
104
  TextContent.displayName = 'TextContent';
@@ -9,9 +9,10 @@ export default {
9
9
  parameters: {
10
10
  docs: {
11
11
  description: {
12
- component: 'Marketing text is designed for promotional and web-facing content.'
13
- + ' These typography elements are primarily used for marketing pages, landing pages,'
14
- + ' and other web components where engaging, conversion-focused text is needed.',
12
+ component:
13
+ 'Marketing text is designed for promotional and web-facing content.' +
14
+ ' These typography elements are primarily used for marketing pages, landing pages,' +
15
+ ' and other web components where engaging, conversion-focused text is needed.',
15
16
  },
16
17
  },
17
18
  },
@@ -11,8 +11,8 @@ export type MarketingTextSize = 'large' | 'regular' | 'small' | 'extraSmall';
11
11
  export type MarketingTextWeight = 'normal' | 'medium' | 'bold';
12
12
 
13
13
  export interface TransientMarketingTextProps {
14
- size?: MarketingTextSize,
15
- weight?: MarketingTextWeight,
14
+ size?: MarketingTextSize;
15
+ weight?: MarketingTextWeight;
16
16
  }
17
17
 
18
18
  type StyledMarketingTextProps = WithTransientProps<TransientMarketingTextProps>;
@@ -171,26 +171,23 @@ const StyledTextMarketing = styled(TextBaseComponent)<StyledMarketingTextProps>`
171
171
  ${(props) => TEXT_MARKETING_VARIANTS_CSS[props.$size || 'regular'][props.$weight || 'normal']}
172
172
  `;
173
173
 
174
- export const TextMarketing = forwardRef<HTMLElement | undefined, MarketingTextProps>(({
175
- weight,
176
- size,
177
- as,
178
- ...rest
179
- }, ref) => {
180
- return (
181
- <StyledTextMarketing
182
- $weight={weight}
183
- $size={size}
184
- forwardedAs={as || 'p'}
185
- ref={ref}
186
- // We have global CSS file that defines margins for p and h to some 'normalized' value
187
- // But at the same time we want to have default margin set to 0 for Text and Headings
188
- // In perfect world, all texts would be rendered using Text/Heading components and we could have 0 margin set globally
189
- // Until then we have to set default 0 margin here
190
- m='none'
191
- {...rest}
192
- />
193
- );
194
- });
174
+ export const TextMarketing = forwardRef<HTMLElement | undefined, MarketingTextProps>(
175
+ ({ weight, size, as, ...rest }, ref) => {
176
+ return (
177
+ <StyledTextMarketing
178
+ $weight={weight}
179
+ $size={size}
180
+ forwardedAs={as || 'p'}
181
+ ref={ref}
182
+ // We have global CSS file that defines margins for p and h to some 'normalized' value
183
+ // But at the same time we want to have default margin set to 0 for Text and Headings
184
+ // In perfect world, all texts would be rendered using Text/Heading components and we could have 0 margin set globally
185
+ // Until then we have to set default 0 margin here
186
+ m="none"
187
+ {...rest}
188
+ />
189
+ );
190
+ },
191
+ );
195
192
 
196
193
  TextMarketing.displayName = 'TextMarketing';
@@ -9,9 +9,10 @@ export default {
9
9
  parameters: {
10
10
  docs: {
11
11
  description: {
12
- component: 'Shared text is the standard typography component used throughout the console and shared components.'
13
- + ' This is the default choice for most text needs across the application.'
14
- + ' **If you\'re unsure which text component to use, choose this one.**',
12
+ component:
13
+ 'Shared text is the standard typography component used throughout the console and shared components.' +
14
+ ' This is the default choice for most text needs across the application.' +
15
+ " **If you're unsure which text component to use, choose this one.**",
15
16
  },
16
17
  },
17
18
  },
@@ -7,15 +7,15 @@ import type { TextBaseProps } from './text_base.js';
7
7
  import { TextBaseComponent } from './text_base.js';
8
8
 
9
9
  export const SHARED_TEXT_TYPES = ['body', 'code'] as const;
10
- export type SharedTextType = typeof SHARED_TEXT_TYPES[number];
10
+ export type SharedTextType = (typeof SHARED_TEXT_TYPES)[number];
11
11
 
12
12
  export type SharedTextSize = 'regular' | 'small' | 'big';
13
13
  export type SharedTextWeight = 'normal' | 'medium' | 'bold';
14
14
 
15
15
  export interface TransientSharedTextProps {
16
- type?: SharedTextType,
17
- size?: SharedTextSize,
18
- weight?: SharedTextWeight,
16
+ type?: SharedTextType;
17
+ size?: SharedTextSize;
18
+ weight?: SharedTextWeight;
19
19
  }
20
20
 
21
21
  type StyledSharedTextProps = WithTransientProps<TransientSharedTextProps>;
@@ -70,26 +70,22 @@ const StyledTextShared = styled(TextBaseComponent)<StyledSharedTextProps>`
70
70
  ${(props) => TEXT_SHARED_VARIANTS_CSS[props.$type || 'body'][props.$size || 'regular'][props.$weight || 'normal']}
71
71
  `;
72
72
 
73
- export const TextShared = forwardRef<HTMLElement | undefined, SharedTextProps>(({
74
- type,
75
- size,
76
- weight,
77
- as,
78
- ...rest
79
- }, ref) => {
80
- return (
81
- <StyledTextShared
82
- $type={type}
83
- $size={size}
84
- $weight={weight}
85
- forwardedAs={as || 'p'}
86
- ref={ref}
87
- // We have global CSS file that defines margins for p and h to some 'normalized' value
88
- // But at the same time we want to have default margin set to 0 for Text and Headings
89
- // In perfect world, all texts would be rendered using Text/Heading components and we could have 0 margin set globally
90
- // Until then we have to set default 0 margin here
91
- m='none'
92
- {...rest}
93
- />
94
- );
95
- });
73
+ export const TextShared = forwardRef<HTMLElement | undefined, SharedTextProps>(
74
+ ({ type, size, weight, as, ...rest }, ref) => {
75
+ return (
76
+ <StyledTextShared
77
+ $type={type}
78
+ $size={size}
79
+ $weight={weight}
80
+ forwardedAs={as || 'p'}
81
+ ref={ref}
82
+ // We have global CSS file that defines margins for p and h to some 'normalized' value
83
+ // But at the same time we want to have default margin set to 0 for Text and Headings
84
+ // In perfect world, all texts would be rendered using Text/Heading components and we could have 0 margin set globally
85
+ // Until then we have to set default 0 margin here
86
+ m="none"
87
+ {...rest}
88
+ />
89
+ );
90
+ },
91
+ );
@@ -86,7 +86,9 @@ export const SizeComparison: Story = {
86
86
  render: () => (
87
87
  <StoryWrapper>
88
88
  <div>
89
- <TextShared size="small" weight="bold" mb="space8">Small Size</TextShared>
89
+ <TextShared size="small" weight="bold" mb="space8">
90
+ Small Size
91
+ </TextShared>
90
92
  <HorizontalTile
91
93
  icon={<StarFullIcon size="24" />}
92
94
  content="Small tile with padding of 16px"
@@ -95,7 +97,9 @@ export const SizeComparison: Story = {
95
97
  />
96
98
  </div>
97
99
  <div>
98
- <TextShared size="small" weight="bold" mb="space8">Large Size</TextShared>
100
+ <TextShared size="small" weight="bold" mb="space8">
101
+ Large Size
102
+ </TextShared>
99
103
  <HorizontalTile
100
104
  icon={<StarFullIcon size="24" />}
101
105
  content="Large tile with padding of 24px"
@@ -2,14 +2,8 @@ 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 type {
6
- TileSharedProps,
7
- TileSizesType,
8
- } from './shared.js';
9
- import {
10
- TILE_SIZES,
11
- tileStyle,
12
- } from './shared.js';
5
+ import type { TileSharedProps, TileSizesType } from './shared.js';
6
+ import { TILE_SIZES, tileStyle } from './shared.js';
13
7
 
14
8
  interface HorizontalTileProps extends TileSharedProps {
15
9
  icon?: React.ReactNode;
@@ -33,7 +27,8 @@ const StyledTileWrapper = styled.div<StyledTileWrapperProps>`
33
27
  align-items: center;
34
28
 
35
29
  cursor: pointer;
36
- transition: box-shadow ${theme.transition.smoothEaseOut},
30
+ transition:
31
+ box-shadow ${theme.transition.smoothEaseOut},
37
32
  background-color ${theme.transition.smoothEaseOut},
38
33
  border-color ${theme.transition.smoothEaseOut};
39
34
 
@@ -63,12 +58,7 @@ export const HorizontalTile: React.FC<HorizontalTileProps> = ({
63
58
  ...otherProps
64
59
  }) => {
65
60
  return (
66
- <StyledTileWrapper
67
- $hasIcon={!!icon}
68
- $size={size}
69
- onClick={onClick}
70
- {...otherProps}
71
- >
61
+ <StyledTileWrapper $hasIcon={!!icon} $size={size} onClick={onClick} {...otherProps}>
72
62
  <div>{icon}</div>
73
63
  <div className={WrapperClasses.TILE_CONTENT}>{content}</div>
74
64
  <div>{action}</div>
@@ -7,7 +7,7 @@ export const TILE_SIZES = {
7
7
  LARGE: 'L',
8
8
  };
9
9
 
10
- export type TileSizesType = typeof TILE_SIZES[keyof typeof TILE_SIZES];
10
+ export type TileSizesType = (typeof TILE_SIZES)[keyof typeof TILE_SIZES];
11
11
 
12
12
  export const tileStyle = css`
13
13
  background-color: ${theme.color.neutral.background};
@@ -16,10 +16,10 @@ export const tileStyle = css`
16
16
  `;
17
17
 
18
18
  export type TileSharedProps = {
19
- content: React.ReactNode,
20
- size?: TileSizesType,
21
- isClickable?: boolean,
22
- onClick?: () => void,
19
+ content: React.ReactNode;
20
+ size?: TileSizesType;
21
+ isClickable?: boolean;
22
+ onClick?: () => void;
23
23
  id?: string;
24
24
  className?: string;
25
25
  style?: React.CSSProperties;
@@ -40,22 +40,10 @@ const StoryWrapper = styled.div`
40
40
  export const Default: Story = {
41
41
  render: () => (
42
42
  <StoryWrapper>
43
- <VerticalTile
44
- content={<TextShared>Option 1</TextShared>}
45
- size={TILE_SIZES.SMALL}
46
- />
47
- <VerticalTile
48
- content={<TextShared>Option 2</TextShared>}
49
- size={TILE_SIZES.SMALL}
50
- />
51
- <VerticalTile
52
- content={<TextShared>Option 3</TextShared>}
53
- size={TILE_SIZES.SMALL}
54
- />
55
- <VerticalTile
56
- content={<TextShared>Option 4</TextShared>}
57
- size={TILE_SIZES.SMALL}
58
- />
43
+ <VerticalTile content={<TextShared>Option 1</TextShared>} size={TILE_SIZES.SMALL} />
44
+ <VerticalTile content={<TextShared>Option 2</TextShared>} size={TILE_SIZES.SMALL} />
45
+ <VerticalTile content={<TextShared>Option 3</TextShared>} size={TILE_SIZES.SMALL} />
46
+ <VerticalTile content={<TextShared>Option 4</TextShared>} size={TILE_SIZES.SMALL} />
59
47
  </StoryWrapper>
60
48
  ),
61
49
  };
@@ -134,7 +122,9 @@ export const SizeComparison: Story = {
134
122
  render: () => (
135
123
  <StoryWrapper>
136
124
  <div>
137
- <TextShared size="small" weight="bold" mb="space8">Small Size</TextShared>
125
+ <TextShared size="small" weight="bold" mb="space8">
126
+ Small Size
127
+ </TextShared>
138
128
  <VerticalTile
139
129
  content={
140
130
  <div>
@@ -150,7 +140,9 @@ export const SizeComparison: Story = {
150
140
  />
151
141
  </div>
152
142
  <div>
153
- <TextShared size="small" weight="bold" mb="space8">Large Size</TextShared>
143
+ <TextShared size="small" weight="bold" mb="space8">
144
+ Large Size
145
+ </TextShared>
154
146
  <VerticalTile
155
147
  content={
156
148
  <div>
@@ -2,14 +2,8 @@ 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 type {
6
- TileSharedProps,
7
- TileSizesType,
8
- } from './shared.js';
9
- import {
10
- TILE_SIZES,
11
- tileStyle,
12
- } from './shared.js';
5
+ import type { TileSharedProps, TileSizesType } from './shared.js';
6
+ import { TILE_SIZES, tileStyle } from './shared.js';
13
7
 
14
8
  interface VerticalTileProps extends TileSharedProps {
15
9
  content: React.ReactNode;
@@ -30,7 +24,8 @@ const StyledTileWrapper = styled.div<StyledTileWrapperProps>`
30
24
  padding: ${({ $size }) => ($size === TILE_SIZES.SMALL ? theme.space.space16 : theme.space.space24)};
31
25
  width: 100%;
32
26
  cursor: pointer;
33
- transition: box-shadow ${theme.transition.smoothEaseOut},
27
+ transition:
28
+ box-shadow ${theme.transition.smoothEaseOut},
34
29
  background-color ${theme.transition.smoothEaseOut},
35
30
  border-color ${theme.transition.smoothEaseOut};
36
31
 
@@ -70,7 +70,9 @@ export const WithActions: Story = {
70
70
  caption: 'Card with Actions',
71
71
  actions: (
72
72
  <>
73
- <Button size="small" variant="tertiary">Cancel</Button>
73
+ <Button size="small" variant="tertiary">
74
+ Cancel
75
+ </Button>
74
76
  <Button size="small">Save</Button>
75
77
  </>
76
78
  ),