@apify/ui-library 0.51.6-featurepublishuilibrary-0a4729.38266

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 (349) hide show
  1. package/.eslintrc +39 -0
  2. package/.stylelintrc +12 -0
  3. package/CHANGELOG.md +2804 -0
  4. package/README.md +15 -0
  5. package/dist/src/components/action_link.d.ts +5 -0
  6. package/dist/src/components/action_link.d.ts.map +1 -0
  7. package/dist/src/components/action_link.jsx +35 -0
  8. package/dist/src/components/action_link.jsx.map +1 -0
  9. package/dist/src/components/actor_template_card.d.ts +10 -0
  10. package/dist/src/components/actor_template_card.d.ts.map +1 -0
  11. package/dist/src/components/actor_template_card.jsx +73 -0
  12. package/dist/src/components/actor_template_card.jsx.map +1 -0
  13. package/dist/src/components/badge.d.ts +26 -0
  14. package/dist/src/components/badge.d.ts.map +1 -0
  15. package/dist/src/components/badge.jsx +96 -0
  16. package/dist/src/components/badge.jsx.map +1 -0
  17. package/dist/src/components/banner.d.ts +11 -0
  18. package/dist/src/components/banner.d.ts.map +1 -0
  19. package/dist/src/components/banner.jsx +73 -0
  20. package/dist/src/components/banner.jsx.map +1 -0
  21. package/dist/src/components/blog_article.d.ts +9 -0
  22. package/dist/src/components/blog_article.d.ts.map +1 -0
  23. package/dist/src/components/blog_article.jsx +73 -0
  24. package/dist/src/components/blog_article.jsx.map +1 -0
  25. package/dist/src/components/box.d.ts +41 -0
  26. package/dist/src/components/box.d.ts.map +1 -0
  27. package/dist/src/components/box.jsx +48 -0
  28. package/dist/src/components/box.jsx.map +1 -0
  29. package/dist/src/components/button.d.ts +35 -0
  30. package/dist/src/components/button.d.ts.map +1 -0
  31. package/dist/src/components/button.jsx +193 -0
  32. package/dist/src/components/button.jsx.map +1 -0
  33. package/dist/src/components/chip.d.ts +52 -0
  34. package/dist/src/components/chip.d.ts.map +1 -0
  35. package/dist/src/components/chip.jsx +89 -0
  36. package/dist/src/components/chip.jsx.map +1 -0
  37. package/dist/src/components/code/action_button.d.ts +11 -0
  38. package/dist/src/components/code/action_button.d.ts.map +1 -0
  39. package/dist/src/components/code/action_button.jsx +67 -0
  40. package/dist/src/components/code/action_button.jsx.map +1 -0
  41. package/dist/src/components/code/code_block/code_block.d.ts +38 -0
  42. package/dist/src/components/code/code_block/code_block.d.ts.map +1 -0
  43. package/dist/src/components/code/code_block/code_block.jsx +99 -0
  44. package/dist/src/components/code/code_block/code_block.jsx.map +1 -0
  45. package/dist/src/components/code/code_block/code_block.styled.d.ts +13 -0
  46. package/dist/src/components/code/code_block/code_block.styled.d.ts.map +1 -0
  47. package/dist/src/components/code/code_block/code_block.styled.jsx +215 -0
  48. package/dist/src/components/code/code_block/code_block.styled.jsx.map +1 -0
  49. package/dist/src/components/code/code_block/utils.d.ts +2 -0
  50. package/dist/src/components/code/code_block/utils.d.ts.map +1 -0
  51. package/dist/src/components/code/code_block/utils.js +20 -0
  52. package/dist/src/components/code/code_block/utils.js.map +1 -0
  53. package/dist/src/components/code/index.d.ts +4 -0
  54. package/dist/src/components/code/index.d.ts.map +1 -0
  55. package/dist/src/components/code/index.js +4 -0
  56. package/dist/src/components/code/index.js.map +1 -0
  57. package/dist/src/components/code/inline_code/inline_code.d.ts +11 -0
  58. package/dist/src/components/code/inline_code/inline_code.d.ts.map +1 -0
  59. package/dist/src/components/code/inline_code/inline_code.jsx +24 -0
  60. package/dist/src/components/code/inline_code/inline_code.jsx.map +1 -0
  61. package/dist/src/components/code/one_line_code/one_line_code.d.ts +27 -0
  62. package/dist/src/components/code/one_line_code/one_line_code.d.ts.map +1 -0
  63. package/dist/src/components/code/one_line_code/one_line_code.jsx +157 -0
  64. package/dist/src/components/code/one_line_code/one_line_code.jsx.map +1 -0
  65. package/dist/src/components/code/syntax_highlighter.d.ts +16 -0
  66. package/dist/src/components/code/syntax_highlighter.d.ts.map +1 -0
  67. package/dist/src/components/code/syntax_highlighter.jsx +94 -0
  68. package/dist/src/components/code/syntax_highlighter.jsx.map +1 -0
  69. package/dist/src/components/color_wheel_gradient.d.ts +9 -0
  70. package/dist/src/components/color_wheel_gradient.d.ts.map +1 -0
  71. package/dist/src/components/color_wheel_gradient.jsx +23 -0
  72. package/dist/src/components/color_wheel_gradient.jsx.map +1 -0
  73. package/dist/src/components/floating/index.d.ts +4 -0
  74. package/dist/src/components/floating/index.d.ts.map +1 -0
  75. package/dist/src/components/floating/index.js +4 -0
  76. package/dist/src/components/floating/index.js.map +1 -0
  77. package/dist/src/components/floating/menu.d.ts +33 -0
  78. package/dist/src/components/floating/menu.d.ts.map +1 -0
  79. package/dist/src/components/floating/menu.jsx +95 -0
  80. package/dist/src/components/floating/menu.jsx.map +1 -0
  81. package/dist/src/components/floating/menu_common.d.ts +42 -0
  82. package/dist/src/components/floating/menu_common.d.ts.map +1 -0
  83. package/dist/src/components/floating/menu_common.jsx +20 -0
  84. package/dist/src/components/floating/menu_common.jsx.map +1 -0
  85. package/dist/src/components/floating/menu_components.d.ts +29 -0
  86. package/dist/src/components/floating/menu_components.d.ts.map +1 -0
  87. package/dist/src/components/floating/menu_components.jsx +73 -0
  88. package/dist/src/components/floating/menu_components.jsx.map +1 -0
  89. package/dist/src/components/image.d.ts +12 -0
  90. package/dist/src/components/image.d.ts.map +1 -0
  91. package/dist/src/components/image.jsx +8 -0
  92. package/dist/src/components/image.jsx.map +1 -0
  93. package/dist/src/components/index.d.ts +21 -0
  94. package/dist/src/components/index.d.ts.map +1 -0
  95. package/dist/src/components/index.js +21 -0
  96. package/dist/src/components/index.js.map +1 -0
  97. package/dist/src/components/link.d.ts +24 -0
  98. package/dist/src/components/link.d.ts.map +1 -0
  99. package/dist/src/components/link.jsx +67 -0
  100. package/dist/src/components/link.jsx.map +1 -0
  101. package/dist/src/components/message.d.ts +31 -0
  102. package/dist/src/components/message.d.ts.map +1 -0
  103. package/dist/src/components/message.jsx +105 -0
  104. package/dist/src/components/message.jsx.map +1 -0
  105. package/dist/src/components/readme_renderer/index.d.ts +4 -0
  106. package/dist/src/components/readme_renderer/index.d.ts.map +1 -0
  107. package/dist/src/components/readme_renderer/index.js +4 -0
  108. package/dist/src/components/readme_renderer/index.js.map +1 -0
  109. package/dist/src/components/readme_renderer/pythonize_value.d.ts +3 -0
  110. package/dist/src/components/readme_renderer/pythonize_value.d.ts.map +1 -0
  111. package/dist/src/components/readme_renderer/pythonize_value.js +81 -0
  112. package/dist/src/components/readme_renderer/pythonize_value.js.map +1 -0
  113. package/dist/src/components/readme_renderer/table_of_contents.d.ts +10 -0
  114. package/dist/src/components/readme_renderer/table_of_contents.d.ts.map +1 -0
  115. package/dist/src/components/readme_renderer/table_of_contents.jsx +197 -0
  116. package/dist/src/components/readme_renderer/table_of_contents.jsx.map +1 -0
  117. package/dist/src/components/readme_renderer/utils.d.ts +6 -0
  118. package/dist/src/components/readme_renderer/utils.d.ts.map +1 -0
  119. package/dist/src/components/readme_renderer/utils.jsx +42 -0
  120. package/dist/src/components/readme_renderer/utils.jsx.map +1 -0
  121. package/dist/src/components/simple_markdown/index.d.ts +3 -0
  122. package/dist/src/components/simple_markdown/index.d.ts.map +1 -0
  123. package/dist/src/components/simple_markdown/index.jsx +3 -0
  124. package/dist/src/components/simple_markdown/index.jsx.map +1 -0
  125. package/dist/src/components/simple_markdown/simple_markdown.d.ts +16 -0
  126. package/dist/src/components/simple_markdown/simple_markdown.d.ts.map +1 -0
  127. package/dist/src/components/simple_markdown/simple_markdown.jsx +137 -0
  128. package/dist/src/components/simple_markdown/simple_markdown.jsx.map +1 -0
  129. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts +26 -0
  130. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -0
  131. package/dist/src/components/simple_markdown/simple_markdown_components.jsx +193 -0
  132. package/dist/src/components/simple_markdown/simple_markdown_components.jsx.map +1 -0
  133. package/dist/src/components/tag.d.ts +38 -0
  134. package/dist/src/components/tag.d.ts.map +1 -0
  135. package/dist/src/components/tag.jsx +126 -0
  136. package/dist/src/components/tag.jsx.map +1 -0
  137. package/dist/src/components/text/heading_content.d.ts +10 -0
  138. package/dist/src/components/text/heading_content.d.ts.map +1 -0
  139. package/dist/src/components/text/heading_content.jsx +31 -0
  140. package/dist/src/components/text/heading_content.jsx.map +1 -0
  141. package/dist/src/components/text/heading_marketing.d.ts +10 -0
  142. package/dist/src/components/text/heading_marketing.d.ts.map +1 -0
  143. package/dist/src/components/text/heading_marketing.jsx +31 -0
  144. package/dist/src/components/text/heading_marketing.jsx.map +1 -0
  145. package/dist/src/components/text/heading_shared.d.ts +10 -0
  146. package/dist/src/components/text/heading_shared.d.ts.map +1 -0
  147. package/dist/src/components/text/heading_shared.jsx +32 -0
  148. package/dist/src/components/text/heading_shared.jsx.map +1 -0
  149. package/dist/src/components/text/index.d.ts +12 -0
  150. package/dist/src/components/text/index.d.ts.map +1 -0
  151. package/dist/src/components/text/index.js +11 -0
  152. package/dist/src/components/text/index.js.map +1 -0
  153. package/dist/src/components/text/text_base.d.ts +13 -0
  154. package/dist/src/components/text/text_base.d.ts.map +1 -0
  155. package/dist/src/components/text/text_base.jsx +23 -0
  156. package/dist/src/components/text/text_base.jsx.map +1 -0
  157. package/dist/src/components/text/text_content.d.ts +11 -0
  158. package/dist/src/components/text/text_content.d.ts.map +1 -0
  159. package/dist/src/components/text/text_content.jsx +68 -0
  160. package/dist/src/components/text/text_content.jsx.map +1 -0
  161. package/dist/src/components/text/text_marketing.d.ts +11 -0
  162. package/dist/src/components/text/text_marketing.d.ts.map +1 -0
  163. package/dist/src/components/text/text_marketing.jsx +116 -0
  164. package/dist/src/components/text/text_marketing.jsx.map +1 -0
  165. package/dist/src/components/text/text_shared.d.ts +14 -0
  166. package/dist/src/components/text/text_shared.d.ts.map +1 -0
  167. package/dist/src/components/text/text_shared.jsx +55 -0
  168. package/dist/src/components/text/text_shared.jsx.map +1 -0
  169. package/dist/src/components/tile/horizontal_tile.d.ts +9 -0
  170. package/dist/src/components/tile/horizontal_tile.d.ts.map +1 -0
  171. package/dist/src/components/tile/horizontal_tile.jsx +43 -0
  172. package/dist/src/components/tile/horizontal_tile.jsx.map +1 -0
  173. package/dist/src/components/tile/index.d.ts +3 -0
  174. package/dist/src/components/tile/index.d.ts.map +1 -0
  175. package/dist/src/components/tile/index.js +3 -0
  176. package/dist/src/components/tile/index.js.map +1 -0
  177. package/dist/src/components/tile/shared.d.ts +17 -0
  178. package/dist/src/components/tile/shared.d.ts.map +1 -0
  179. package/dist/src/components/tile/shared.js +12 -0
  180. package/dist/src/components/tile/shared.js.map +1 -0
  181. package/dist/src/components/tile/vertical_tile.d.ts +10 -0
  182. package/dist/src/components/tile/vertical_tile.d.ts.map +1 -0
  183. package/dist/src/components/tile/vertical_tile.jsx +32 -0
  184. package/dist/src/components/tile/vertical_tile.jsx.map +1 -0
  185. package/dist/src/components/to_consolidate/card.d.ts +27 -0
  186. package/dist/src/components/to_consolidate/card.d.ts.map +1 -0
  187. package/dist/src/components/to_consolidate/card.jsx +93 -0
  188. package/dist/src/components/to_consolidate/card.jsx.map +1 -0
  189. package/dist/src/components/to_consolidate/index.d.ts +5 -0
  190. package/dist/src/components/to_consolidate/index.d.ts.map +1 -0
  191. package/dist/src/components/to_consolidate/index.js +5 -0
  192. package/dist/src/components/to_consolidate/index.js.map +1 -0
  193. package/dist/src/components/to_consolidate/markdown.d.ts +40 -0
  194. package/dist/src/components/to_consolidate/markdown.d.ts.map +1 -0
  195. package/dist/src/components/to_consolidate/markdown.jsx +454 -0
  196. package/dist/src/components/to_consolidate/markdown.jsx.map +1 -0
  197. package/dist/src/components/to_consolidate/pagination.d.ts +8 -0
  198. package/dist/src/components/to_consolidate/pagination.d.ts.map +1 -0
  199. package/dist/src/components/to_consolidate/pagination.jsx +88 -0
  200. package/dist/src/components/to_consolidate/pagination.jsx.map +1 -0
  201. package/dist/src/components/to_consolidate/tab_number_chip.d.ts +7 -0
  202. package/dist/src/components/to_consolidate/tab_number_chip.d.ts.map +1 -0
  203. package/dist/src/components/to_consolidate/tab_number_chip.jsx +22 -0
  204. package/dist/src/components/to_consolidate/tab_number_chip.jsx.map +1 -0
  205. package/dist/src/design_system/colors_theme.d.ts +213 -0
  206. package/dist/src/design_system/colors_theme.d.ts.map +1 -0
  207. package/dist/src/design_system/colors_theme.js +213 -0
  208. package/dist/src/design_system/colors_theme.js.map +1 -0
  209. package/dist/src/design_system/properties_theme.d.ts +175 -0
  210. package/dist/src/design_system/properties_theme.d.ts.map +1 -0
  211. package/dist/src/design_system/properties_theme.js +315 -0
  212. package/dist/src/design_system/properties_theme.js.map +1 -0
  213. package/dist/src/design_system/theme.d.ts +630 -0
  214. package/dist/src/design_system/theme.d.ts.map +1 -0
  215. package/dist/src/design_system/theme.js +17 -0
  216. package/dist/src/design_system/theme.js.map +1 -0
  217. package/dist/src/design_system/tokens/index.d.ts +6 -0
  218. package/dist/src/design_system/tokens/index.d.ts.map +1 -0
  219. package/dist/src/design_system/tokens/index.js +6 -0
  220. package/dist/src/design_system/tokens/index.js.map +1 -0
  221. package/dist/src/design_system/tokens/layouts.d.ts +29 -0
  222. package/dist/src/design_system/tokens/layouts.d.ts.map +1 -0
  223. package/dist/src/design_system/tokens/layouts.js +29 -0
  224. package/dist/src/design_system/tokens/layouts.js.map +1 -0
  225. package/dist/src/design_system/tokens/radiuses.d.ts +23 -0
  226. package/dist/src/design_system/tokens/radiuses.d.ts.map +1 -0
  227. package/dist/src/design_system/tokens/radiuses.js +23 -0
  228. package/dist/src/design_system/tokens/radiuses.js.map +1 -0
  229. package/dist/src/design_system/tokens/shadows.d.ts +23 -0
  230. package/dist/src/design_system/tokens/shadows.d.ts.map +1 -0
  231. package/dist/src/design_system/tokens/shadows.js +23 -0
  232. package/dist/src/design_system/tokens/shadows.js.map +1 -0
  233. package/dist/src/design_system/tokens/spaces.d.ts +15 -0
  234. package/dist/src/design_system/tokens/spaces.d.ts.map +1 -0
  235. package/dist/src/design_system/tokens/spaces.js +14 -0
  236. package/dist/src/design_system/tokens/spaces.js.map +1 -0
  237. package/dist/src/design_system/tokens/transitions.d.ts +20 -0
  238. package/dist/src/design_system/tokens/transitions.d.ts.map +1 -0
  239. package/dist/src/design_system/tokens/transitions.js +20 -0
  240. package/dist/src/design_system/tokens/transitions.js.map +1 -0
  241. package/dist/src/design_system/typography_theme.d.ts +189 -0
  242. package/dist/src/design_system/typography_theme.d.ts.map +1 -0
  243. package/dist/src/design_system/typography_theme.js +190 -0
  244. package/dist/src/design_system/typography_theme.js.map +1 -0
  245. package/dist/src/index.d.ts +7 -0
  246. package/dist/src/index.d.ts.map +1 -0
  247. package/dist/src/index.js +7 -0
  248. package/dist/src/index.js.map +1 -0
  249. package/dist/src/type_utils.d.ts +6 -0
  250. package/dist/src/type_utils.d.ts.map +1 -0
  251. package/dist/src/type_utils.js +2 -0
  252. package/dist/src/type_utils.js.map +1 -0
  253. package/dist/src/ui_dependency_provider.d.ts +29 -0
  254. package/dist/src/ui_dependency_provider.d.ts.map +1 -0
  255. package/dist/src/ui_dependency_provider.jsx +14 -0
  256. package/dist/src/ui_dependency_provider.jsx.map +1 -0
  257. package/dist/src/utils/copy_to_clipboard.d.ts +7 -0
  258. package/dist/src/utils/copy_to_clipboard.d.ts.map +1 -0
  259. package/dist/src/utils/copy_to_clipboard.js +16 -0
  260. package/dist/src/utils/copy_to_clipboard.js.map +1 -0
  261. package/dist/src/utils/image_color.d.ts +7 -0
  262. package/dist/src/utils/image_color.d.ts.map +1 -0
  263. package/dist/src/utils/image_color.js +35 -0
  264. package/dist/src/utils/image_color.js.map +1 -0
  265. package/dist/src/utils/index.d.ts +4 -0
  266. package/dist/src/utils/index.d.ts.map +1 -0
  267. package/dist/src/utils/index.js +4 -0
  268. package/dist/src/utils/index.js.map +1 -0
  269. package/dist/src/utils/sanitization.d.ts +11 -0
  270. package/dist/src/utils/sanitization.d.ts.map +1 -0
  271. package/dist/src/utils/sanitization.js +16 -0
  272. package/dist/src/utils/sanitization.js.map +1 -0
  273. package/dist/tsconfig.build.tsbuildinfo +1 -0
  274. package/package.json +71 -0
  275. package/src/codemods/generate_color_property_tokens.mjs +97 -0
  276. package/src/codemods/generate_color_theme_files.mjs +46 -0
  277. package/src/codemods/generate_typograpy_tokens_files.mjs +136 -0
  278. package/src/components/action_link.tsx +59 -0
  279. package/src/components/actor_template_card.tsx +99 -0
  280. package/src/components/badge.tsx +144 -0
  281. package/src/components/banner.tsx +95 -0
  282. package/src/components/blog_article.tsx +85 -0
  283. package/src/components/box.tsx +127 -0
  284. package/src/components/button.tsx +303 -0
  285. package/src/components/chip.tsx +121 -0
  286. package/src/components/code/action_button.tsx +96 -0
  287. package/src/components/code/code_block/code_block.styled.tsx +228 -0
  288. package/src/components/code/code_block/code_block.tsx +235 -0
  289. package/src/components/code/code_block/utils.ts +19 -0
  290. package/src/components/code/index.ts +3 -0
  291. package/src/components/code/inline_code/inline_code.tsx +44 -0
  292. package/src/components/code/one_line_code/one_line_code.tsx +232 -0
  293. package/src/components/code/syntax_highlighter.tsx +125 -0
  294. package/src/components/color_wheel_gradient.tsx +31 -0
  295. package/src/components/floating/index.ts +3 -0
  296. package/src/components/floating/menu.tsx +191 -0
  297. package/src/components/floating/menu_common.tsx +31 -0
  298. package/src/components/floating/menu_components.tsx +94 -0
  299. package/src/components/image.tsx +23 -0
  300. package/src/components/index.ts +20 -0
  301. package/src/components/link.tsx +114 -0
  302. package/src/components/message.tsx +157 -0
  303. package/src/components/readme_renderer/index.ts +3 -0
  304. package/src/components/readme_renderer/pythonize_value.ts +78 -0
  305. package/src/components/readme_renderer/table_of_contents.tsx +257 -0
  306. package/src/components/readme_renderer/utils.tsx +46 -0
  307. package/src/components/simple_markdown/index.tsx +2 -0
  308. package/src/components/simple_markdown/simple_markdown.tsx +181 -0
  309. package/src/components/simple_markdown/simple_markdown_components.tsx +295 -0
  310. package/src/components/tag.tsx +185 -0
  311. package/src/components/text/heading_content.tsx +56 -0
  312. package/src/components/text/heading_marketing.tsx +55 -0
  313. package/src/components/text/heading_shared.tsx +57 -0
  314. package/src/components/text/index.ts +18 -0
  315. package/src/components/text/text_base.tsx +52 -0
  316. package/src/components/text/text_content.tsx +104 -0
  317. package/src/components/text/text_marketing.tsx +152 -0
  318. package/src/components/text/text_shared.tsx +96 -0
  319. package/src/components/tile/horizontal_tile.tsx +76 -0
  320. package/src/components/tile/index.ts +2 -0
  321. package/src/components/tile/shared.ts +27 -0
  322. package/src/components/tile/vertical_tile.tsx +58 -0
  323. package/src/components/to_consolidate/card.tsx +141 -0
  324. package/src/components/to_consolidate/index.ts +4 -0
  325. package/src/components/to_consolidate/markdown.tsx +593 -0
  326. package/src/components/to_consolidate/pagination.tsx +139 -0
  327. package/src/components/to_consolidate/tab_number_chip.tsx +31 -0
  328. package/src/design_system/colors_theme.ts +213 -0
  329. package/src/design_system/generate_color_definitions.js +43 -0
  330. package/src/design_system/properties_theme.ts +453 -0
  331. package/src/design_system/supernova_color_tokens.json +1766 -0
  332. package/src/design_system/supernova_typography_tokens.json +657 -0
  333. package/src/design_system/theme.ts +26 -0
  334. package/src/design_system/tokens/index.ts +5 -0
  335. package/src/design_system/tokens/layouts.ts +29 -0
  336. package/src/design_system/tokens/radiuses.ts +22 -0
  337. package/src/design_system/tokens/shadows.ts +22 -0
  338. package/src/design_system/tokens/spaces.ts +15 -0
  339. package/src/design_system/tokens/transitions.ts +19 -0
  340. package/src/design_system/typography_theme.ts +197 -0
  341. package/src/index.ts +7 -0
  342. package/src/type_utils.ts +7 -0
  343. package/src/ui_dependency_provider.tsx +50 -0
  344. package/src/utils/copy_to_clipboard.ts +24 -0
  345. package/src/utils/image_color.ts +44 -0
  346. package/src/utils/index.ts +3 -0
  347. package/src/utils/sanitization.ts +14 -0
  348. package/tsconfig.build.json +18 -0
  349. package/tsconfig.json +10 -0
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import { theme } from '../../design_system/theme';
4
+ import { TextBaseComponent } from './text_base';
5
+ ;
6
+ const HEADING_MARKETING_DEFAULT_ELEMENTS = {
7
+ titleXs: 'h6',
8
+ titleS: 'h5',
9
+ titleM: 'h4',
10
+ titleL: 'h3',
11
+ titleXl: 'h2',
12
+ title2xl: 'h1',
13
+ title3xl: 'h1',
14
+ };
15
+ const StyledHeadingMarketing = styled(TextBaseComponent) `
16
+ ${(props) => `
17
+ ${theme.typography.marketing.mobile[props.$type || 'titleL']}
18
+
19
+ @media (${theme.device.tablet}) {
20
+ ${theme.typography.marketing.tablet[props.$type || 'titleL']}
21
+ }
22
+
23
+ @media (${theme.device.desktop}) {
24
+ ${theme.typography.marketing.desktop[props.$type || 'titleL']}
25
+ }
26
+ `}
27
+ `;
28
+ export const HeadingMarketing = ({ type, as, ...rest }) => {
29
+ return (<StyledHeadingMarketing $type={type} forwardedAs={as || HEADING_MARKETING_DEFAULT_ELEMENTS[type || 'titleL']} m='none' {...rest}/>);
30
+ };
31
+ //# sourceMappingURL=heading_marketing.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading_marketing.jsx","sourceRoot":"","sources":["../../../../src/components/text/heading_marketing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAM/C,CAAC;AAKF,MAAM,kCAAkC,GAA+C;IACnF,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,sBAAsB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAA6B;MAC/E,CAAC,KAAK,EAAE,EAAE,CAAC;UACP,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;;mBAEjD,KAAK,CAAC,MAAM,CAAC,MAAM;cACxB,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;;;kBAGtD,KAAK,CAAC,MAAM,CAAC,OAAO;cACxB,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;;KAEpE;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,EAC9D,IAAI,EACJ,EAAE,EACF,GAAG,IAAI,EACV,EAAE,EAAE;IACD,OAAO,CACH,CAAC,sBAAsB,CACnB,KAAK,CAAC,CAAC,IAAI,CAAC,CACZ,WAAW,CAAC,CAAC,EAAE,IAAI,kCAAkC,CAAC,IAAI,IAAI,QAAQ,CAAC,CAAC,CACxE,CAAC,CAAC,MAAM,CACR,IAAI,IAAI,CAAC,EACX,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { TextBaseProps } from './text_base';
3
+ type HeadingSharedType = 'titleXs' | 'titleS' | 'titleM' | 'titleL' | 'titleXl' | 'title2xl' | 'title3xl';
4
+ interface HeadingSharedTransientProps {
5
+ type?: HeadingSharedType;
6
+ }
7
+ export type HeadingSharedProps = HeadingSharedTransientProps & TextBaseProps;
8
+ declare const HeadingShared: React.FC<HeadingSharedProps>;
9
+ export default HeadingShared;
10
+ //# sourceMappingURL=heading_shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading_shared.d.ts","sourceRoot":"","sources":["../../../../src/components/text/heading_shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,KAAK,iBAAiB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE1G,UAAU,2BAA2B;IACjC,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAGD,MAAM,MAAM,kBAAkB,GAAG,2BAA2B,GAAG,aAAa,CAAC;AA0B7E,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAa/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import { theme } from '../../design_system/theme';
4
+ import { TextBaseComponent } from './text_base';
5
+ ;
6
+ const HEADING_SHARED_DEFAULT_ELEMENTS = {
7
+ titleXs: 'h6',
8
+ titleS: 'h5',
9
+ titleM: 'h4',
10
+ titleL: 'h3',
11
+ titleXl: 'h2',
12
+ title2xl: 'h1',
13
+ title3xl: 'h1',
14
+ };
15
+ const StyledHeadingShared = styled(TextBaseComponent) `
16
+ ${(props) => `
17
+ ${theme.typography.shared.mobile[props.$type || 'titleL']}
18
+
19
+ @media (${theme.device.tablet}) {
20
+ ${theme.typography.shared.tablet[props.$type || 'titleL']}
21
+ }
22
+
23
+ @media (${theme.device.desktop}) {
24
+ ${theme.typography.shared.desktop[props.$type || 'titleL']}
25
+ }
26
+ `}
27
+ `;
28
+ const HeadingShared = ({ type, as, ...rest }) => {
29
+ return (<StyledHeadingShared $type={type} forwardedAs={as || HEADING_SHARED_DEFAULT_ELEMENTS[type || 'titleL']} m='none' {...rest}/>);
30
+ };
31
+ export default HeadingShared;
32
+ //# sourceMappingURL=heading_shared.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading_shared.jsx","sourceRoot":"","sources":["../../../../src/components/text/heading_shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAM/C,CAAC;AAKF,MAAM,+BAA+B,GAA4C;IAC7E,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,mBAAmB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAA0B;MACzE,CAAC,KAAK,EAAE,EAAE,CAAC;UACP,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;;kBAE/C,KAAK,CAAC,MAAM,CAAC,MAAM;cACvB,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;;;kBAGnD,KAAK,CAAC,MAAM,CAAC,OAAO;cACxB,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;;KAEjE;CACJ,CAAC;AAEF,MAAM,aAAa,GAAiC,CAAC,EACjD,IAAI,EACJ,EAAE,EACF,GAAG,IAAI,EACV,EAAE,EAAE;IACD,OAAO,CACH,CAAC,mBAAmB,CAChB,KAAK,CAAC,CAAC,IAAI,CAAC,CACZ,WAAW,CAAC,CAAC,EAAE,IAAI,+BAA+B,CAAC,IAAI,IAAI,QAAQ,CAAC,CAAC,CACrE,CAAC,CAAC,MAAM,CACR,IAAI,IAAI,CAAC,EACX,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,12 @@
1
+ import HeadingShared from './heading_shared';
2
+ import type { SharedTextProps } from './text_shared';
3
+ import TextShared from './text_shared';
4
+ export * from './text_base';
5
+ export * from './text_content';
6
+ export * from './text_marketing';
7
+ export * from './heading_content';
8
+ export * from './heading_marketing';
9
+ export { TextShared as Text, // Shared typography is the default
10
+ HeadingShared as Heading, };
11
+ export type { SharedTextProps, };
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EACH,UAAU,IAAI,IAAI,EAAE,mCAAmC;AACvD,aAAa,IAAI,OAAO,GAC3B,CAAC;AAEF,YAAY,EACR,eAAe,GAClB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import HeadingShared from './heading_shared';
2
+ import TextShared from './text_shared';
3
+ export * from './text_base';
4
+ export * from './text_content';
5
+ export * from './text_marketing';
6
+ export * from './heading_content';
7
+ export * from './heading_marketing';
8
+ export { TextShared as Text, // Shared typography is the default
9
+ HeadingShared as Heading, // Shared typography is the default
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EACH,UAAU,IAAI,IAAI,EAAE,mCAAmC;AACvD,aAAa,IAAI,OAAO,EAAE,mCAAmC;EAChE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { WithTransientProps } from '../../type_utils';
3
+ import type { BoxProps } from '../box';
4
+ export interface TransientTextBaseProps {
5
+ italic?: boolean;
6
+ uppercase?: boolean;
7
+ align?: 'left' | 'right' | 'center';
8
+ color?: string;
9
+ }
10
+ export type StyledTextBaseProps = WithTransientProps<TransientTextBaseProps>;
11
+ export type TextBaseProps = TransientTextBaseProps & BoxProps;
12
+ export declare const TextBaseComponent: React.FC<TextBaseProps>;
13
+ //# sourceMappingURL=text_base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text_base.d.ts","sourceRoot":"","sources":["../../../../src/components/text/text_base.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGvC,MAAM,WAAW,sBAAsB;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;AAC7E,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,QAAQ,CAAC;AAoB9D,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgBrD,CAAC"}
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import styled, { css } from 'styled-components';
3
+ import { Box } from '../box';
4
+ ;
5
+ const StyledText = styled(Box) `
6
+ ${(props) => props.$italic && css `
7
+ font-style: italic;
8
+ `}
9
+
10
+ ${(props) => props.$uppercase && css `
11
+ text-transform: uppercase;
12
+ `}
13
+
14
+ ${(props) => props.$align && css `
15
+ text-align: ${props.$align};
16
+ `}
17
+
18
+ ${(props) => props.$color && css `
19
+ color: ${props.$color};
20
+ `}
21
+ `;
22
+ export const TextBaseComponent = ({ italic, align, color, uppercase, as, ...rest }) => (<StyledText $italic={italic} $align={align} $color={color} $uppercase={uppercase} forwardedAs={as} {...rest}/>);
23
+ //# sourceMappingURL=text_base.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text_base.jsx","sourceRoot":"","sources":["../../../../src/components/text/text_base.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIhD,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAO5B,CAAC;AAKF,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAqB;MAC7C,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,IAAI,GAAG,CAAA;;KAEhC;;MAEC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,IAAI,GAAG,CAAA;;KAEnC;;MAEC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,IAAI,GAAG,CAAA;sBACd,KAAK,CAAC,MAAM;KAC7B;;MAEC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,IAAI,GAAG,CAAA;iBACnB,KAAK,CAAC,MAAM;KACxB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAA4B,CAAC,EACvD,MAAM,EACN,KAAK,EACL,KAAK,EACL,SAAS,EACT,EAAE,EACF,GAAG,IAAI,EACV,EAAE,EAAE,CAAC,CACF,CAAC,UAAU,CACP,OAAO,CAAC,CAAC,MAAM,CAAC,CAChB,MAAM,CAAC,CAAC,KAAK,CAAC,CACd,MAAM,CAAC,CAAC,KAAK,CAAC,CACd,UAAU,CAAC,CAAC,SAAS,CAAC,CACtB,WAAW,CAAC,CAAC,EAAE,CAAC,CAChB,IAAI,IAAI,CAAC,EACX,CACL,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { TextBaseProps } from './text_base';
3
+ export type ContentTextType = 'paragraph' | 'snippet';
4
+ export type ContentTextWeight = 'normal' | 'bold';
5
+ export interface TransientContentTextProps {
6
+ type?: ContentTextType;
7
+ weight?: ContentTextWeight;
8
+ }
9
+ export type ContentTextProps = TransientContentTextProps & TextBaseProps;
10
+ export declare const TextContent: React.ForwardRefExoticComponent<ContentTextProps & React.RefAttributes<HTMLElement | undefined>>;
11
+ //# sourceMappingURL=text_content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text_content.d.ts","sourceRoot":"","sources":["../../../../src/components/text/text_content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,SAAS,CAAC;AACtD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElD,MAAM,WAAW,yBAAyB;IACtC,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAGD,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,GAAG,aAAa,CAAC;AA+DzE,eAAO,MAAM,WAAW,kGAoBtB,CAAC"}
@@ -0,0 +1,68 @@
1
+ import React, { forwardRef } from 'react';
2
+ import styled, { css } from 'styled-components';
3
+ import { theme } from '../../design_system/theme';
4
+ import { TextBaseComponent } from './text_base';
5
+ ;
6
+ const TEXT_SHARED_VARIANTS_CSS = {
7
+ paragraph: {
8
+ normal: css `
9
+ ${theme.typography.content.mobile.paragraph}
10
+
11
+ @media (min-width: ${theme.layout.tablet}) {
12
+ ${theme.typography.content.tablet.paragraph}
13
+ }
14
+
15
+ @media (min-width: ${theme.layout.desktop}) {
16
+ ${theme.typography.content.desktop.paragraph}
17
+ }
18
+ `,
19
+ bold: css `
20
+ ${theme.typography.content.mobile.paragraphStrong}
21
+
22
+ @media (min-width: ${theme.layout.tablet}) {
23
+ ${theme.typography.content.tablet.paragraphStrong}
24
+ }
25
+
26
+ @media (min-width: ${theme.layout.desktop}) {
27
+ ${theme.typography.content.desktop.paragraphStrong}
28
+ }
29
+ `,
30
+ },
31
+ snippet: {
32
+ normal: css `
33
+ ${theme.typography.content.mobile.snippet}
34
+
35
+ @media (min-width: ${theme.layout.tablet}) {
36
+ ${theme.typography.content.tablet.snippet}
37
+ }
38
+
39
+ @media (min-width: ${theme.layout.desktop}) {
40
+ ${theme.typography.content.desktop.snippet}
41
+ }
42
+ `,
43
+ bold: css `
44
+ ${theme.typography.content.mobile.snippetStrong}
45
+
46
+ @media (min-width: ${theme.layout.tablet}) {
47
+ ${theme.typography.content.tablet.snippetStrong}
48
+ }
49
+
50
+ @media (min-width: ${theme.layout.desktop}) {
51
+ ${theme.typography.content.desktop.snippetStrong}
52
+ }
53
+ `,
54
+ },
55
+ };
56
+ const StyledTextContent = styled(TextBaseComponent) `
57
+ ${(props) => TEXT_SHARED_VARIANTS_CSS[props.$type || 'paragraph'][props.$weight || 'normal']}
58
+ `;
59
+ export const TextContent = forwardRef(({ type, weight, as, ...rest }, ref) => {
60
+ return (<StyledTextContent $type={type} $weight={weight} forwardedAs={as || 'p'} ref={ref}
61
+ // We have global CSS file that defines margins for p and h to some 'normalized' value
62
+ // But at the same time we want to have default margin set to 0 for Text and Headings
63
+ // In perfect world, all texts would be rendered using Text/Heading components and we could have 0 margin set globally
64
+ // Until then we have to set default 0 margin here
65
+ m='none' {...rest}/>);
66
+ });
67
+ TextContent.displayName = 'TextContent';
68
+ //# sourceMappingURL=text_content.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text_content.jsx","sourceRoot":"","sources":["../../../../src/components/text/text_content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,E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AU,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa;;iCAE1B,KAAK,CAAC,MAAM,CAAC,MAAM;kBAClC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa;;;iCAG9B,KAAK,CAAC,MAAM,CAAC,OAAO;kBACnC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa;;SAEvD;KACJ;CACJ,CAAC;AAEF,MAAM,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAwB;MACrE,CAAC,KAAK,EAAE,EAAE,CAAC,wBAAwB,CAAC,KAAK,CAAC,KAAK,IAAI,WAAW,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAC;CAC/F,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAA4C,CAAC,EAC9E,IAAI,EACJ,MAAM,EACN,EAAE,EACF,GAAG,IAAI,EACV,EAAE,GAAG,EAAE,EAAE;IACN,OAAO,CACH,CAAC,iBAAiB,CACd,KAAK,CAAC,CAAC,IAAI,CAAC,CACZ,OAAO,CAAC,CAAC,MAAM,CAAC,CAChB,WAAW,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,CACvB,GAAG,CAAC,CAAC,GAAG,CAAC;IACT,sFAAsF;IACtF,qFAAqF;IACrF,sHAAsH;IACtH,kDAAkD;IAClD,CAAC,CAAC,MAAM,CACR,IAAI,IAAI,CAAC,EACX,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { TextBaseProps } from './text_base';
3
+ export type MarketingTextSize = 'large' | 'regular' | 'small' | 'extraSmall';
4
+ export type MarketingTextWeight = 'normal' | 'bold';
5
+ export interface TransientMarketingTextProps {
6
+ size?: MarketingTextSize;
7
+ weight?: MarketingTextWeight;
8
+ }
9
+ export type MarketingTextProps = TransientMarketingTextProps & TextBaseProps;
10
+ export declare const TextMarketing: React.ForwardRefExoticComponent<MarketingTextProps & React.RefAttributes<HTMLElement | undefined>>;
11
+ //# sourceMappingURL=text_marketing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text_marketing.d.ts","sourceRoot":"","sources":["../../../../src/components/text/text_marketing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,2BAA2B;IACxC,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAGD,MAAM,MAAM,kBAAkB,GAAG,2BAA2B,GAAG,aAAa,CAAC;AA+G7E,eAAO,MAAM,aAAa,oGAoBxB,CAAC"}
@@ -0,0 +1,116 @@
1
+ import React, { forwardRef } from 'react';
2
+ import styled, { css } from 'styled-components';
3
+ import { theme } from '../../design_system/theme';
4
+ import { TextBaseComponent } from './text_base';
5
+ ;
6
+ const TEXT_MARKETING_VARIANTS_CSS = {
7
+ large: {
8
+ normal: css `
9
+ ${theme.typography.marketing.mobile.bodyL}
10
+
11
+ @media (${theme.device.tablet}) {
12
+ ${theme.typography.marketing.tablet.bodyL}
13
+ }
14
+
15
+ @media (${theme.device.desktop}) {
16
+ ${theme.typography.marketing.desktop.bodyL}
17
+ }
18
+ `,
19
+ bold: css `
20
+ ${theme.typography.marketing.mobile.bodyLStrong}
21
+
22
+ @media (${theme.device.tablet}) {
23
+ ${theme.typography.marketing.tablet.bodyLStrong}
24
+ }
25
+
26
+ @media (${theme.device.desktop}) {
27
+ ${theme.typography.marketing.desktop.bodyLStrong}
28
+ }
29
+ `,
30
+ },
31
+ regular: {
32
+ normal: css `
33
+ ${theme.typography.marketing.mobile.bodyM}
34
+
35
+ @media (${theme.device.tablet}) {
36
+ ${theme.typography.marketing.tablet.bodyM}
37
+ }
38
+
39
+ @media (${theme.device.desktop}) {
40
+ ${theme.typography.marketing.desktop.bodyM}
41
+ }
42
+ `,
43
+ bold: css `
44
+ ${theme.typography.marketing.mobile.bodyMStrong}
45
+
46
+ @media (${theme.device.tablet}) {
47
+ ${theme.typography.marketing.tablet.bodyMStrong}
48
+ }
49
+
50
+ @media (${theme.device.desktop}) {
51
+ ${theme.typography.marketing.desktop.bodyMStrong}
52
+ }
53
+ `,
54
+ },
55
+ small: {
56
+ normal: css `
57
+ ${theme.typography.marketing.mobile.bodyS}
58
+
59
+ @media (${theme.device.tablet}) {
60
+ ${theme.typography.marketing.tablet.bodyS}
61
+ }
62
+
63
+ @media (${theme.device.desktop}) {
64
+ ${theme.typography.marketing.desktop.bodyS}
65
+ }
66
+ `,
67
+ bold: css `
68
+ ${theme.typography.marketing.mobile.bodySStrong}
69
+
70
+ @media (${theme.device.tablet}) {
71
+ ${theme.typography.marketing.tablet.bodySStrong}
72
+ }
73
+
74
+ @media (${theme.device.desktop}) {
75
+ ${theme.typography.marketing.desktop.bodySStrong}
76
+ }
77
+ `,
78
+ },
79
+ extraSmall: {
80
+ normal: css `
81
+ ${theme.typography.marketing.mobile.bodyXs}
82
+
83
+ @media (${theme.device.tablet}) {
84
+ ${theme.typography.marketing.tablet.bodyXs}
85
+ }
86
+
87
+ @media (${theme.device.desktop}) {
88
+ ${theme.typography.marketing.desktop.bodyXs}
89
+ }
90
+ `,
91
+ bold: css `
92
+ ${theme.typography.marketing.mobile.bodyXsStrong}
93
+
94
+ @media (${theme.device.tablet}) {
95
+ ${theme.typography.marketing.tablet.bodyXsStrong}
96
+ }
97
+
98
+ @media (${theme.device.desktop}) {
99
+ ${theme.typography.marketing.desktop.bodyXsStrong}
100
+ }
101
+ `,
102
+ },
103
+ };
104
+ const StyledTextMarketing = styled(TextBaseComponent) `
105
+ ${(props) => TEXT_MARKETING_VARIANTS_CSS[props.$size || 'regular'][props.$weight || 'normal']}
106
+ `;
107
+ export const TextMarketing = forwardRef(({ weight, size, as, ...rest }, ref) => {
108
+ return (<StyledTextMarketing $weight={weight} $size={size} forwardedAs={as || 'p'} ref={ref}
109
+ // We have global CSS file that defines margins for p and h to some 'normalized' value
110
+ // But at the same time we want to have default margin set to 0 for Text and Headings
111
+ // In perfect world, all texts would be rendered using Text/Heading components and we could have 0 margin set globally
112
+ // Until then we have to set default 0 margin here
113
+ m='none' {...rest}/>);
114
+ });
115
+ TextMarketing.displayName = 'TextMarketing';
116
+ //# sourceMappingURL=text_marketing.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text_marketing.jsx","sourceRoot":"","sources":["../../../../src/components/text/text_marketing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAQ/C,CAAC;AAWF,MAAM,2BAA2B,GAA0B;IACvD,KAAK,EAAE;QACH,MAAM,EAAE,GAAG,CAAA;cACL,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK;;sBAE/B,KAAK,CAAC,MAAM,CAAC,MAAM;kBACvB,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK;;;sBAGnC,KAAK,CAAC,MAAM,CAAC,OAAO;kBACxB,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK;;SAEjD;QACD,IAAI,EAAE,GAAG,CAAA;cACH,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW;;sBAErC,KAAK,CAAC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AAM,CAAC,CAChB,KAAK,CAAC,CAAC,IAAI,CAAC,CACZ,WAAW,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,CACvB,GAAG,CAAC,CAAC,GAAG,CAAC;IACT,sFAAsF;IACtF,qFAAqF;IACrF,sHAAsH;IACtH,kDAAkD;IAClD,CAAC,CAAC,MAAM,CACR,IAAI,IAAI,CAAC,EACX,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { TextBaseProps } from './text_base';
3
+ export type SharedTextType = 'body' | 'code';
4
+ export type SharedTextSize = 'regular' | 'small' | 'big';
5
+ export type SharedTextWeight = 'normal' | 'medium' | 'bold';
6
+ export interface TransientSharedTextProps {
7
+ type?: SharedTextType;
8
+ size?: SharedTextSize;
9
+ weight?: SharedTextWeight;
10
+ }
11
+ export type SharedTextProps = TransientSharedTextProps & TextBaseProps;
12
+ declare const TextShared: React.ForwardRefExoticComponent<SharedTextProps & React.RefAttributes<HTMLElement | undefined>>;
13
+ export default TextShared;
14
+ //# sourceMappingURL=text_shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text_shared.d.ts","sourceRoot":"","sources":["../../../../src/components/text/text_shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAC7C,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;AACzD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE5D,MAAM,WAAW,wBAAwB;IACrC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAGD,MAAM,MAAM,eAAe,GAAG,wBAAwB,GAAG,aAAa,CAAC;AAmDvE,QAAA,MAAM,UAAU,iGAsBd,CAAC;AAGH,eAAe,UAAU,CAAC"}
@@ -0,0 +1,55 @@
1
+ import React, { forwardRef } from 'react';
2
+ import styled from 'styled-components';
3
+ import { theme } from '../../design_system/theme';
4
+ import { TextBaseComponent } from './text_base';
5
+ ;
6
+ const TEXT_SHARED_VARIANTS_CSS = {
7
+ body: {
8
+ regular: {
9
+ normal: theme.typography.shared.tablet.bodyM,
10
+ medium: theme.typography.shared.tablet.bodyMMedium,
11
+ bold: theme.typography.shared.tablet.bodyMStrong,
12
+ },
13
+ small: {
14
+ normal: theme.typography.shared.tablet.bodyS,
15
+ medium: theme.typography.shared.tablet.bodySMedium,
16
+ bold: theme.typography.shared.tablet.bodySStrong,
17
+ },
18
+ big: {
19
+ normal: theme.typography.shared.tablet.bodyL,
20
+ medium: theme.typography.shared.tablet.bodyLMedium,
21
+ bold: theme.typography.shared.tablet.bodyLStrong,
22
+ },
23
+ },
24
+ code: {
25
+ regular: {
26
+ normal: theme.typography.shared.tablet.codeM,
27
+ medium: theme.typography.shared.tablet.codeMMedium,
28
+ bold: theme.typography.shared.tablet.codeMStrong,
29
+ },
30
+ small: {
31
+ normal: theme.typography.shared.tablet.codeS,
32
+ medium: theme.typography.shared.tablet.codeSMedium,
33
+ bold: theme.typography.shared.tablet.codeSStrong,
34
+ },
35
+ big: {
36
+ normal: theme.typography.shared.tablet.codeL,
37
+ medium: theme.typography.shared.tablet.codeLMedium,
38
+ bold: theme.typography.shared.tablet.codeLStrong,
39
+ },
40
+ },
41
+ };
42
+ const StyledTextShared = styled(TextBaseComponent) `
43
+ ${(props) => TEXT_SHARED_VARIANTS_CSS[props.$type || 'body'][props.$size || 'regular'][props.$weight || 'normal']}
44
+ `;
45
+ const TextShared = forwardRef(({ type, size, weight, as, ...rest }, ref) => {
46
+ return (<StyledTextShared $type={type} $size={size} $weight={weight} forwardedAs={as || 'p'} ref={ref}
47
+ // We have global CSS file that defines margins for p and h to some 'normalized' value
48
+ // But at the same time we want to have default margin set to 0 for Text and Headings
49
+ // In perfect world, all texts would be rendered using Text/Heading components and we could have 0 margin set globally
50
+ // Until then we have to set default 0 margin here
51
+ m='none' {...rest}/>);
52
+ });
53
+ TextShared.displayName = 'TextShared';
54
+ export default TextShared;
55
+ //# sourceMappingURL=text_shared.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text_shared.jsx","sourceRoot":"","sources":["../../../../src/components/text/text_shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAU/C,CAAC;AAaF,MAAM,wBAAwB,GAAuB;IACjD,IAAI,EAAE;QACF,OAAO,EAAE;YACL,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK;YAC5C,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW;YAClD,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW;SACnD;QACD,KAAK,EAAE;YACH,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK;YAC5C,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW;YAClD,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW;SACnD;QACD,GAAG,EAAE;YACD,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK;YAC5C,MAAM,EAAE,K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AG,IAAI,EACV,EAAE,GAAG,EAAE,EAAE;IACN,OAAO,CACH,CAAC,gBAAgB,CACb,KAAK,CAAC,CAAC,IAAI,CAAC,CACZ,KAAK,CAAC,CAAC,IAAI,CAAC,CACZ,OAAO,CAAC,CAAC,MAAM,CAAC,CAChB,WAAW,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,CACvB,GAAG,CAAC,CAAC,GAAG,CAAC;IACT,sFAAsF;IACtF,qFAAqF;IACrF,sHAAsH;IACtH,kDAAkD;IAClD,CAAC,CAAC,MAAM,CACR,IAAI,IAAI,CAAC,EACX,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AACtC,eAAe,UAAU,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { TileSharedProps } from './shared';
3
+ interface HorizontalTileProps extends TileSharedProps {
4
+ icon?: React.ReactNode;
5
+ action?: React.ReactNode;
6
+ }
7
+ export declare const HorizontalTile: React.FC<HorizontalTileProps>;
8
+ export {};
9
+ //# sourceMappingURL=horizontal_tile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"horizontal_tile.d.ts","sourceRoot":"","sources":["../../../../src/components/tile/horizontal_tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EACR,eAAe,EACA,MAAM,UAAU,CAAC;AAMpC,UAAU,mBAAoB,SAAQ,eAAe;IACjD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAwCD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAoBxD,CAAC"}
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import { theme } from '../../design_system/theme';
4
+ import { TILE_SIZES, tileStyle, } from './shared';
5
+ const WrapperClasses = {
6
+ TILE_CONTENT: 'Tile-Content',
7
+ };
8
+ const StyledTileWrapper = styled.div `
9
+ ${tileStyle}
10
+ padding: ${({ $size }) => ($size === TILE_SIZES.SMALL ? theme.space.space16 : theme.space.space24)};
11
+ display: flex;
12
+ flex-direction: row;
13
+ align-items: center;
14
+
15
+ cursor: pointer;
16
+ transition: box-shadow ${theme.transition.smoothEaseOut},
17
+ background-color ${theme.transition.smoothEaseOut},
18
+ border-color ${theme.transition.smoothEaseOut};
19
+
20
+ &:hover {
21
+ box-shadow: ${theme.shadow.shadow1};
22
+ background-color: ${theme.color.neutral.hover};
23
+ }
24
+
25
+ &:active,
26
+ &:focus {
27
+ border-color: ${theme.color.primary.action};
28
+ }
29
+
30
+ ${({ $hasIcon }) => $hasIcon && `gap: ${theme.space.space8};`}
31
+
32
+ .${WrapperClasses.TILE_CONTENT} {
33
+ flex-grow: 1;
34
+ }
35
+ `;
36
+ export const HorizontalTile = ({ content, icon, action, size = TILE_SIZES.SMALL, onClick, ...otherProps }) => {
37
+ return (<StyledTileWrapper $hasIcon={!!icon} $size={size} onClick={onClick} {...otherProps}>
38
+ <div>{icon}</div>
39
+ <div className={WrapperClasses.TILE_CONTENT}>{content}</div>
40
+ <div>{action}</div>
41
+ </StyledTileWrapper>);
42
+ };
43
+ //# sourceMappingURL=horizontal_tile.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"horizontal_tile.jsx","sourceRoot":"","sources":["../../../../src/components/tile/horizontal_tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAIlD,OAAO,EACH,UAAU,EACV,SAAS,GACZ,MAAM,UAAU,CAAC;AAYlB,MAAM,cAAc,GAAG;IACnB,YAAY,EAAE,cAAc;CAC/B,CAAC;AAEF,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAA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AACN,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './horizontal_tile';
2
+ export * from './vertical_tile';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tile/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './horizontal_tile';
2
+ export * from './vertical_tile';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/tile/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,17 @@
1
+ export declare const TILE_SIZES: {
2
+ SMALL: string;
3
+ LARGE: string;
4
+ };
5
+ export type TileSizesType = typeof TILE_SIZES[keyof typeof TILE_SIZES];
6
+ export declare const tileStyle: import("styled-components").FlattenSimpleInterpolation;
7
+ export type TileSharedProps = {
8
+ content: React.ReactNode;
9
+ size?: TileSizesType;
10
+ isClickable?: boolean;
11
+ onClick?: () => void;
12
+ id?: string;
13
+ className?: string;
14
+ style?: React.CSSProperties;
15
+ as?: React.ElementType;
16
+ };
17
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/components/tile/shared.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;CAGtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,OAAO,UAAU,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEvE,eAAO,MAAM,SAAS,wDAIrB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { css } from 'styled-components';
2
+ import { theme } from '../../design_system/theme';
3
+ export const TILE_SIZES = {
4
+ SMALL: 'S',
5
+ LARGE: 'L',
6
+ };
7
+ export const tileStyle = css `
8
+ background-color: ${theme.color.neutral.background};
9
+ border: 1px solid ${theme.color.neutral.border};
10
+ border-radius: ${theme.radius.radius12};
11
+ `;
12
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/components/tile/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,KAAK,EAAE,GAAG;IACV,KAAK,EAAE,GAAG;CACb,CAAC;AAIF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA;wBACJ,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU;wBAC9B,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM;qBAC7B,KAAK,CAAC,MAAM,CAAC,QAAQ;CACzC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { TileSharedProps } from './shared';
3
+ interface HorizontalTileProps extends TileSharedProps {
4
+ content: React.ReactNode;
5
+ icon?: React.ReactNode;
6
+ action?: React.ReactNode;
7
+ }
8
+ export declare const VerticalTile: React.FC<HorizontalTileProps>;
9
+ export {};
10
+ //# sourceMappingURL=vertical_tile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vertical_tile.d.ts","sourceRoot":"","sources":["../../../../src/components/tile/vertical_tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EACR,eAAe,EACA,MAAM,UAAU,CAAC;AAMpC,UAAU,mBAAoB,SAAQ,eAAe;IACjD,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AA8BD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAWtD,CAAC"}