@apify/ui-library 1.141.0 → 1.141.2
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.
- package/dist/src/components/{action_link.d.ts → action_link/action_link.d.ts} +2 -2
- package/dist/src/components/action_link/action_link.d.ts.map +1 -0
- package/dist/src/components/{action_link.js → action_link/action_link.js} +4 -4
- package/dist/src/components/action_link/action_link.js.map +1 -0
- package/dist/src/components/action_link/index.d.ts +2 -0
- package/dist/src/components/action_link/index.d.ts.map +1 -0
- package/dist/src/components/action_link/index.js +2 -0
- package/dist/src/components/action_link/index.js.map +1 -0
- package/dist/src/components/actor_template_card/actor_template_card.d.ts.map +1 -0
- package/dist/src/components/{actor_template_card.js → actor_template_card/actor_template_card.js} +4 -4
- package/dist/src/components/actor_template_card/actor_template_card.js.map +1 -0
- package/dist/src/components/actor_template_card/index.d.ts +2 -0
- package/dist/src/components/actor_template_card/index.d.ts.map +1 -0
- package/dist/src/components/actor_template_card/index.js +2 -0
- package/dist/src/components/actor_template_card/index.js.map +1 -0
- package/dist/src/components/{badge.d.ts → badge/badge.d.ts} +2 -2
- package/dist/src/components/badge/badge.d.ts.map +1 -0
- package/dist/src/components/{badge.js → badge/badge.js} +3 -3
- package/dist/src/components/badge/badge.js.map +1 -0
- package/dist/src/components/badge/index.d.ts +2 -0
- package/dist/src/components/badge/index.d.ts.map +1 -0
- package/dist/src/components/badge/index.js +2 -0
- package/dist/src/components/badge/index.js.map +1 -0
- package/dist/src/components/banner/banner.d.ts.map +1 -0
- package/dist/src/components/{banner.js → banner/banner.js} +1 -1
- package/dist/src/components/banner/banner.js.map +1 -0
- package/dist/src/components/banner/index.d.ts +2 -0
- package/dist/src/components/banner/index.d.ts.map +1 -0
- package/dist/src/components/banner/index.js +2 -0
- package/dist/src/components/banner/index.js.map +1 -0
- package/dist/src/components/blog_article/blog_article.d.ts.map +1 -0
- package/dist/src/components/{blog_article.js → blog_article/blog_article.js} +1 -1
- package/dist/src/components/blog_article/blog_article.js.map +1 -0
- package/dist/src/components/blog_article/index.d.ts +2 -0
- package/dist/src/components/blog_article/index.d.ts.map +1 -0
- package/dist/src/components/blog_article/index.js +2 -0
- package/dist/src/components/blog_article/index.js.map +1 -0
- package/dist/src/components/{box.d.ts → box/box.d.ts} +1 -1
- package/dist/src/components/box/box.d.ts.map +1 -0
- package/dist/src/components/{box.js → box/box.js} +1 -1
- package/dist/src/components/box/box.js.map +1 -0
- package/dist/src/components/box/index.d.ts +2 -0
- package/dist/src/components/box/index.d.ts.map +1 -0
- package/dist/src/components/box/index.js +2 -0
- package/dist/src/components/box/index.js.map +1 -0
- package/dist/src/components/breadcrumb/breadcrumb.js +3 -3
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/browser_window/browser_window.js +1 -1
- package/dist/src/components/browser_window/browser_window.js.map +1 -1
- package/dist/src/components/{button.d.ts → button/button.d.ts} +3 -3
- package/dist/src/components/button/button.d.ts.map +1 -0
- package/dist/src/components/{button.js → button/button.js} +5 -5
- package/dist/src/components/button/button.js.map +1 -0
- package/dist/src/components/button/index.d.ts +2 -0
- package/dist/src/components/button/index.d.ts.map +1 -0
- package/dist/src/components/button/index.js +2 -0
- package/dist/src/components/button/index.js.map +1 -0
- package/dist/src/components/{to_consolidate → card}/card.d.ts +2 -2
- package/dist/src/components/card/card.d.ts.map +1 -0
- package/dist/src/components/{to_consolidate → card}/card.js +2 -2
- package/dist/src/components/card/card.js.map +1 -0
- package/dist/src/components/card/index.d.ts +2 -0
- package/dist/src/components/card/index.d.ts.map +1 -0
- package/dist/src/components/card/index.js +2 -0
- package/dist/src/components/card/index.js.map +1 -0
- package/dist/src/components/{card_container.d.ts → card_container/card_container.d.ts} +2 -2
- package/dist/src/components/card_container/card_container.d.ts.map +1 -0
- package/dist/src/components/{card_container.js → card_container/card_container.js} +2 -2
- package/dist/src/components/card_container/card_container.js.map +1 -0
- package/dist/src/components/card_container/index.d.ts +2 -0
- package/dist/src/components/card_container/index.d.ts.map +1 -0
- package/dist/src/components/card_container/index.js +2 -0
- package/dist/src/components/card_container/index.js.map +1 -0
- package/dist/src/components/{chip.d.ts → chip/chip.d.ts} +1 -1
- package/dist/src/components/chip/chip.d.ts.map +1 -0
- package/dist/src/components/{chip.js → chip/chip.js} +1 -1
- package/dist/src/components/chip/chip.js.map +1 -0
- package/dist/src/components/chip/index.d.ts +2 -0
- package/dist/src/components/chip/index.d.ts.map +1 -0
- package/dist/src/components/chip/index.js +2 -0
- package/dist/src/components/chip/index.js.map +1 -0
- package/dist/src/components/code/action_button.js +2 -2
- package/dist/src/components/code/action_button.js.map +1 -1
- package/dist/src/components/code/code_block/code_block.d.ts +2 -2
- package/dist/src/components/code/code_block/code_block.d.ts.map +1 -1
- package/dist/src/components/code/code_block/code_block.js +3 -3
- package/dist/src/components/code/code_block/code_block.js.map +1 -1
- package/dist/src/components/code/code_block/code_block.styled.d.ts +3 -3
- package/dist/src/components/code/code_block/code_block.styled.d.ts.map +1 -1
- package/dist/src/components/code/code_block/code_block.styled.js +1 -1
- package/dist/src/components/code/code_block/code_block.styled.js.map +1 -1
- package/dist/src/components/code/code_block/code_block_with_tabs.d.ts +2 -2
- package/dist/src/components/code/code_block/code_block_with_tabs.d.ts.map +1 -1
- package/dist/src/components/code/code_block/code_block_with_tabs.js +2 -2
- package/dist/src/components/code/code_block/code_block_with_tabs.js.map +1 -1
- package/dist/src/components/code/inline_code/inline_code.d.ts +2 -2
- package/dist/src/components/code/inline_code/inline_code.d.ts.map +1 -1
- package/dist/src/components/code/inline_code/inline_code.js +1 -1
- package/dist/src/components/code/inline_code/inline_code.js.map +1 -1
- package/dist/src/components/code/one_line_code/one_line_code.d.ts +2 -2
- package/dist/src/components/code/one_line_code/one_line_code.d.ts.map +1 -1
- package/dist/src/components/code/one_line_code/one_line_code.js +1 -1
- package/dist/src/components/code/one_line_code/one_line_code.js.map +1 -1
- package/dist/src/components/code/prism_highlighter.d.ts +4 -4
- package/dist/src/components/code/prism_highlighter.d.ts.map +1 -1
- package/dist/src/components/code/prism_highlighter.js +1 -1
- package/dist/src/components/code/prism_highlighter.js.map +1 -1
- package/dist/src/components/collapsible_card/collapsible_card.js +1 -1
- package/dist/src/components/collapsible_card/collapsible_card.js.map +1 -1
- package/dist/src/components/color_wheel_gradient/color_wheel_gradient.d.ts.map +1 -0
- package/dist/src/components/color_wheel_gradient/color_wheel_gradient.js.map +1 -0
- package/dist/src/components/color_wheel_gradient/index.d.ts +2 -0
- package/dist/src/components/color_wheel_gradient/index.d.ts.map +1 -0
- package/dist/src/components/color_wheel_gradient/index.js +2 -0
- package/dist/src/components/color_wheel_gradient/index.js.map +1 -0
- package/dist/src/components/floating/menu.d.ts +1 -1
- package/dist/src/components/floating/menu.d.ts.map +1 -1
- package/dist/src/components/floating/menu.js +2 -2
- package/dist/src/components/floating/menu.js.map +1 -1
- package/dist/src/components/floating/menu_components.d.ts +1 -1
- package/dist/src/components/floating/menu_components.d.ts.map +1 -1
- package/dist/src/components/floating/menu_components.js +2 -2
- package/dist/src/components/floating/menu_components.js.map +1 -1
- package/dist/src/components/floating/tooltip_content.d.ts +1 -1
- package/dist/src/components/floating/tooltip_content.d.ts.map +1 -1
- package/dist/src/components/floating/tooltip_content.js +1 -1
- package/dist/src/components/floating/tooltip_content.js.map +1 -1
- package/dist/src/components/{icon_button.d.ts → icon_button/icon_button.d.ts} +3 -3
- package/dist/src/components/icon_button/icon_button.d.ts.map +1 -0
- package/dist/src/components/{icon_button.js → icon_button/icon_button.js} +5 -5
- package/dist/src/components/icon_button/icon_button.js.map +1 -0
- package/dist/src/components/icon_button/index.d.ts +2 -0
- package/dist/src/components/icon_button/index.d.ts.map +1 -0
- package/dist/src/components/icon_button/index.js +2 -0
- package/dist/src/components/icon_button/index.js.map +1 -0
- package/dist/src/components/{image.d.ts → image/image.d.ts} +2 -2
- package/dist/src/components/image/image.d.ts.map +1 -0
- package/dist/src/components/{image.js → image/image.js} +2 -2
- package/dist/src/components/image/image.js.map +1 -0
- package/dist/src/components/image/index.d.ts +2 -0
- package/dist/src/components/image/index.d.ts.map +1 -0
- package/dist/src/components/image/index.js +2 -0
- package/dist/src/components/image/index.js.map +1 -0
- package/dist/src/components/index.d.ts +39 -36
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +39 -36
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/link/index.d.ts +2 -0
- package/dist/src/components/link/index.d.ts.map +1 -0
- package/dist/src/components/link/index.js +2 -0
- package/dist/src/components/link/index.js.map +1 -0
- package/dist/src/components/{link.d.ts → link/link.d.ts} +1 -1
- package/dist/src/components/link/link.d.ts.map +1 -0
- package/dist/src/components/{link.js → link/link.js} +3 -3
- package/dist/src/components/link/link.js.map +1 -0
- package/dist/src/components/markdown/index.d.ts +2 -0
- package/dist/src/components/markdown/index.d.ts.map +1 -0
- package/dist/src/components/markdown/index.js +2 -0
- package/dist/src/components/markdown/index.js.map +1 -0
- package/dist/src/components/{to_consolidate → markdown}/markdown.d.ts +1 -1
- package/dist/src/components/markdown/markdown.d.ts.map +1 -0
- package/dist/src/components/{to_consolidate → markdown}/markdown.js +5 -5
- package/dist/src/components/markdown/markdown.js.map +1 -0
- package/dist/src/components/message/index.d.ts +2 -0
- package/dist/src/components/message/index.d.ts.map +1 -0
- package/dist/src/components/message/index.js +2 -0
- package/dist/src/components/message/index.js.map +1 -0
- package/dist/src/components/{message.d.ts → message/message.d.ts} +2 -2
- package/dist/src/components/message/message.d.ts.map +1 -0
- package/dist/src/components/{message.js → message/message.js} +4 -4
- package/dist/src/components/message/message.js.map +1 -0
- package/dist/src/components/pagination/index.d.ts +2 -0
- package/dist/src/components/pagination/index.d.ts.map +1 -0
- package/dist/src/components/pagination/index.js +2 -0
- package/dist/src/components/pagination/index.js.map +1 -0
- package/dist/src/components/pagination/pagination.d.ts.map +1 -0
- package/dist/src/components/{to_consolidate → pagination}/pagination.js +2 -2
- package/dist/src/components/pagination/pagination.js.map +1 -0
- package/dist/src/components/rating/index.d.ts +2 -0
- package/dist/src/components/rating/index.d.ts.map +1 -0
- package/dist/src/components/rating/index.js +2 -0
- package/dist/src/components/rating/index.js.map +1 -0
- package/dist/src/components/{rating.d.ts → rating/rating.d.ts} +1 -1
- package/dist/src/components/rating/rating.d.ts.map +1 -0
- package/dist/src/components/{rating.js → rating/rating.js} +3 -3
- package/dist/src/components/rating/rating.js.map +1 -0
- package/dist/src/components/readme_renderer/table_of_contents.js +3 -3
- package/dist/src/components/readme_renderer/table_of_contents.js.map +1 -1
- package/dist/src/components/select/select.js +2 -2
- package/dist/src/components/select/select.js.map +1 -1
- package/dist/src/components/shortcut/index.d.ts +2 -0
- package/dist/src/components/shortcut/index.d.ts.map +1 -0
- package/dist/src/components/shortcut/index.js +2 -0
- package/dist/src/components/shortcut/index.js.map +1 -0
- package/dist/src/components/shortcut/shortcut.d.ts.map +1 -0
- package/dist/src/components/{shortcut.js → shortcut/shortcut.js} +2 -2
- package/dist/src/components/shortcut/shortcut.js.map +1 -0
- package/dist/src/components/simple_markdown/simple_markdown.js +5 -5
- package/dist/src/components/simple_markdown/simple_markdown.js.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown_components.d.ts +6 -6
- package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown_components.js +6 -6
- package/dist/src/components/simple_markdown/simple_markdown_components.js.map +1 -1
- package/dist/src/components/spinner/index.d.ts +2 -0
- package/dist/src/components/spinner/index.d.ts.map +1 -0
- package/dist/src/components/spinner/index.js +2 -0
- package/dist/src/components/spinner/index.js.map +1 -0
- package/dist/src/components/spinner/spinner.d.ts.map +1 -0
- package/dist/src/components/{spinner.js → spinner/spinner.js} +1 -1
- package/dist/src/components/spinner/spinner.js.map +1 -0
- package/dist/src/components/store/store_actor_header.d.ts +1 -1
- package/dist/src/components/store/store_actor_header.d.ts.map +1 -1
- package/dist/src/components/store/store_actor_header.js +2 -2
- package/dist/src/components/store/store_actor_header.js.map +1 -1
- package/dist/src/components/tab_number_chip/index.d.ts +2 -0
- package/dist/src/components/tab_number_chip/index.d.ts.map +1 -0
- package/dist/src/components/tab_number_chip/index.js +2 -0
- package/dist/src/components/tab_number_chip/index.js.map +1 -0
- package/dist/src/components/tab_number_chip/tab_number_chip.d.ts.map +1 -0
- package/dist/src/components/{to_consolidate → tab_number_chip}/tab_number_chip.js +1 -1
- package/dist/src/components/tab_number_chip/tab_number_chip.js.map +1 -0
- package/dist/src/components/table/table.context.d.ts +1 -1
- package/dist/src/components/table/table.context.d.ts.map +1 -1
- package/dist/src/components/table/table.styled.d.ts +2 -2
- package/dist/src/components/table/table.styled.d.ts.map +1 -1
- package/dist/src/components/table/table.styled.js +1 -1
- package/dist/src/components/table/table.styled.js.map +1 -1
- package/dist/src/components/table/table.types.d.ts +1 -1
- package/dist/src/components/table/table.types.d.ts.map +1 -1
- package/dist/src/components/table/table_cell.d.ts +1 -1
- package/dist/src/components/table/table_cell.d.ts.map +1 -1
- package/dist/src/components/table/table_cell.js +1 -1
- package/dist/src/components/table/table_cell.js.map +1 -1
- package/dist/src/components/table/table_error_row.js +1 -1
- package/dist/src/components/table/table_error_row.js.map +1 -1
- package/dist/src/components/table/table_expansion_row.d.ts +1 -1
- package/dist/src/components/table/table_expansion_row.d.ts.map +1 -1
- package/dist/src/components/table/table_loading_row.js +1 -1
- package/dist/src/components/table/table_loading_row.js.map +1 -1
- package/dist/src/components/table/table_row.d.ts +1 -1
- package/dist/src/components/table/table_row.d.ts.map +1 -1
- package/dist/src/components/table/table_wrapper.d.ts +1 -1
- package/dist/src/components/table/table_wrapper.d.ts.map +1 -1
- package/dist/src/components/table/table_wrapper.js +1 -1
- package/dist/src/components/table/table_wrapper.js.map +1 -1
- package/dist/src/components/tabs/tab.d.ts +2 -2
- package/dist/src/components/tabs/tab.d.ts.map +1 -1
- package/dist/src/components/tabs/tab.js +3 -3
- package/dist/src/components/tabs/tab.js.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts +2 -2
- package/dist/src/components/tabs/tabs.d.ts.map +1 -1
- package/dist/src/components/tabs/tabs.js +1 -1
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag/index.d.ts +2 -0
- package/dist/src/components/tag/index.d.ts.map +1 -0
- package/dist/src/components/tag/index.js +2 -0
- package/dist/src/components/tag/index.js.map +1 -0
- package/dist/src/components/tag/tag.d.ts +44 -0
- package/dist/src/components/tag/tag.d.ts.map +1 -0
- package/dist/src/components/tag/tag.js +136 -0
- package/dist/src/components/tag/tag.js.map +1 -0
- package/dist/src/components/tag.d.ts +1 -42
- package/dist/src/components/tag.d.ts.map +1 -1
- package/dist/src/components/tag.js +1 -135
- package/dist/src/components/tag.js.map +1 -1
- package/dist/src/components/text/heading_content.d.ts +1 -1
- package/dist/src/components/text/heading_content.d.ts.map +1 -1
- package/dist/src/components/text/heading_marketing.d.ts +1 -1
- package/dist/src/components/text/heading_marketing.d.ts.map +1 -1
- package/dist/src/components/text/heading_shared.d.ts +1 -1
- package/dist/src/components/text/heading_shared.d.ts.map +1 -1
- package/dist/src/components/text/index.d.ts +4 -2
- package/dist/src/components/text/index.d.ts.map +1 -1
- package/dist/src/components/text/index.js +1 -1
- package/dist/src/components/text/index.js.map +1 -1
- package/dist/src/components/text/text_base.d.ts +2 -2
- package/dist/src/components/text/text_base.d.ts.map +1 -1
- package/dist/src/components/text/text_base.js +1 -1
- package/dist/src/components/text/text_base.js.map +1 -1
- package/dist/src/components/text/text_content.d.ts +1 -1
- package/dist/src/components/text/text_content.d.ts.map +1 -1
- package/dist/src/components/text/text_marketing.d.ts +1 -1
- package/dist/src/components/text/text_marketing.d.ts.map +1 -1
- package/dist/src/components/text/text_shared.d.ts +1 -1
- package/dist/src/components/text/text_shared.d.ts.map +1 -1
- package/dist/src/components/tile/horizontal_tile.d.ts +1 -1
- package/dist/src/components/tile/horizontal_tile.d.ts.map +1 -1
- package/dist/src/components/tile/vertical_tile.d.ts +1 -1
- package/dist/src/components/tile/vertical_tile.d.ts.map +1 -1
- package/dist/src/design_system/theme.js +2 -2
- package/dist/src/design_system/theme.js.map +1 -1
- package/dist/src/index.d.ts +4 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/ui_dependency_provider.d.ts +1 -1
- package/dist/src/ui_dependency_provider.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/{action_link.tsx → action_link/action_link.tsx} +4 -4
- package/src/components/action_link/index.ts +1 -0
- package/src/components/{actor_template_card.tsx → actor_template_card/actor_template_card.tsx} +4 -4
- package/src/components/actor_template_card/index.ts +1 -0
- package/src/components/{badge.stories.jsx → badge/badge.stories.jsx} +1 -1
- package/src/components/{badge.tsx → badge/badge.tsx} +6 -6
- package/src/components/badge/index.ts +1 -0
- package/src/components/{banner.tsx → banner/banner.tsx} +1 -1
- package/src/components/banner/index.ts +1 -0
- package/src/components/{blog_article.tsx → blog_article/blog_article.tsx} +1 -1
- package/src/components/blog_article/index.ts +1 -0
- package/src/components/box/box.stories.tsx +87 -0
- package/src/components/{box.tsx → box/box.tsx} +3 -3
- package/src/components/box/index.ts +1 -0
- package/src/components/breadcrumb/breadcrumb.tsx +3 -3
- package/src/components/browser_window/browser_window.tsx +1 -1
- package/src/components/{button.stories.tsx → button/button.stories.tsx} +1 -1
- package/src/components/{button.tsx → button/button.tsx} +5 -5
- package/src/components/button/index.ts +1 -0
- package/src/components/{to_consolidate → card}/card.stories.tsx +1 -1
- package/src/components/{to_consolidate → card}/card.tsx +4 -4
- package/src/components/card/index.ts +1 -0
- package/src/components/{card_container.stories.tsx → card_container/card_container.stories.tsx} +1 -1
- package/src/components/{card_container.tsx → card_container/card_container.tsx} +3 -3
- package/src/components/card_container/index.ts +1 -0
- package/src/components/{chip.tsx → chip/chip.tsx} +2 -2
- package/src/components/chip/index.ts +1 -0
- package/src/components/code/action_button.tsx +2 -2
- package/src/components/code/code_block/code_block.styled.tsx +2 -2
- package/src/components/code/code_block/code_block.tsx +5 -5
- package/src/components/code/code_block/code_block_with_tabs.tsx +2 -2
- package/src/components/code/inline_code/inline_code.stories.tsx +1 -1
- package/src/components/code/inline_code/inline_code.tsx +3 -3
- package/src/components/code/one_line_code/one_line_code.tsx +4 -4
- package/src/components/code/prism_highlighter.tsx +2 -2
- package/src/components/collapsible_card/collapsible_card.tsx +2 -2
- package/src/components/color_wheel_gradient/index.ts +1 -0
- package/src/components/floating/menu.tsx +2 -2
- package/src/components/floating/menu_components.tsx +3 -3
- package/src/components/floating/tooltip_content.tsx +2 -2
- package/src/components/{icon_button.tsx → icon_button/icon_button.tsx} +6 -6
- package/src/components/icon_button/index.ts +1 -0
- package/src/components/image/image.stories.tsx +77 -0
- package/src/components/{image.tsx → image/image.tsx} +3 -3
- package/src/components/image/index.ts +1 -0
- package/src/components/index.ts +39 -36
- package/src/components/link/index.ts +1 -0
- package/src/components/{link.tsx → link/link.tsx} +3 -3
- package/src/components/markdown/index.ts +1 -0
- package/src/components/{to_consolidate → markdown}/markdown.tsx +6 -6
- package/src/components/message/index.ts +1 -0
- package/src/components/{message.stories.jsx → message/message.stories.jsx} +1 -1
- package/src/components/{message.tsx → message/message.tsx} +5 -5
- package/src/components/pagination/index.ts +1 -0
- package/src/components/{to_consolidate → pagination}/pagination.tsx +2 -2
- package/src/components/rating/index.ts +1 -0
- package/src/components/{rating.tsx → rating/rating.tsx} +4 -4
- package/src/components/readme_renderer/table_of_contents.tsx +3 -3
- package/src/components/select/select.tsx +2 -2
- package/src/components/shortcut/index.ts +1 -0
- package/src/components/{shortcut.stories.jsx → shortcut/shortcut.stories.jsx} +1 -1
- package/src/components/{shortcut.tsx → shortcut/shortcut.tsx} +2 -2
- package/src/components/simple_markdown/simple_markdown.stories.tsx +1 -1
- package/src/components/simple_markdown/simple_markdown.tsx +5 -5
- package/src/components/simple_markdown/simple_markdown_components.tsx +11 -11
- package/src/components/spinner/index.ts +1 -0
- package/src/components/{spinner.tsx → spinner/spinner.tsx} +2 -2
- package/src/components/store/store_actor_header.tsx +2 -2
- package/src/components/tab_number_chip/index.ts +1 -0
- package/src/components/{to_consolidate → tab_number_chip}/tab_number_chip.tsx +1 -1
- package/src/components/table/table.context.ts +1 -1
- package/src/components/table/table.stories.tsx +1 -1
- package/src/components/table/table.styled.ts +1 -1
- package/src/components/table/table.types.ts +1 -1
- package/src/components/table/table_cell.tsx +1 -1
- package/src/components/table/table_error_row.tsx +1 -1
- package/src/components/table/table_expansion_row.tsx +1 -1
- package/src/components/table/table_loading_row.tsx +1 -1
- package/src/components/table/table_row.tsx +1 -1
- package/src/components/table/table_wrapper.tsx +2 -2
- package/src/components/tabs/tab.tsx +9 -9
- package/src/components/tabs/tabs.tsx +5 -5
- package/src/components/tag/index.ts +1 -0
- package/src/components/{tag.stories.jsx → tag/tag.stories.jsx} +1 -1
- package/src/components/tag/tag.tsx +203 -0
- package/src/components/tag.tsx +1 -202
- package/src/components/text/heading_content.tsx +2 -2
- package/src/components/text/heading_marketing.tsx +2 -2
- package/src/components/text/heading_shared.tsx +2 -2
- package/src/components/text/index.ts +4 -1
- package/src/components/text/text_base.tsx +3 -3
- package/src/components/text/text_content.tsx +3 -3
- package/src/components/text/text_marketing.tsx +3 -3
- package/src/components/text/text_shared.tsx +2 -2
- package/src/components/tile/horizontal_tile.stories.tsx +1 -1
- package/src/components/tile/horizontal_tile.tsx +1 -1
- package/src/components/tile/vertical_tile.stories.tsx +2 -2
- package/src/components/tile/vertical_tile.tsx +1 -1
- package/src/design_system/theme.ts +2 -2
- package/src/index.ts +4 -4
- package/src/ui_dependency_provider.tsx +1 -1
- package/dist/src/components/action_link.d.ts.map +0 -1
- package/dist/src/components/action_link.js.map +0 -1
- package/dist/src/components/actor_template_card.d.ts.map +0 -1
- package/dist/src/components/actor_template_card.js.map +0 -1
- package/dist/src/components/badge.d.ts.map +0 -1
- package/dist/src/components/badge.js.map +0 -1
- package/dist/src/components/banner.d.ts.map +0 -1
- package/dist/src/components/banner.js.map +0 -1
- package/dist/src/components/blog_article.d.ts.map +0 -1
- package/dist/src/components/blog_article.js.map +0 -1
- package/dist/src/components/box.d.ts.map +0 -1
- package/dist/src/components/box.js.map +0 -1
- package/dist/src/components/button.d.ts.map +0 -1
- package/dist/src/components/button.js.map +0 -1
- package/dist/src/components/card_container.d.ts.map +0 -1
- package/dist/src/components/card_container.js.map +0 -1
- package/dist/src/components/chip.d.ts.map +0 -1
- package/dist/src/components/chip.js.map +0 -1
- package/dist/src/components/color_wheel_gradient.d.ts.map +0 -1
- package/dist/src/components/color_wheel_gradient.js.map +0 -1
- package/dist/src/components/icon_button.d.ts.map +0 -1
- package/dist/src/components/icon_button.js.map +0 -1
- package/dist/src/components/image.d.ts.map +0 -1
- package/dist/src/components/image.js.map +0 -1
- package/dist/src/components/link.d.ts.map +0 -1
- package/dist/src/components/link.js.map +0 -1
- package/dist/src/components/message.d.ts.map +0 -1
- package/dist/src/components/message.js.map +0 -1
- package/dist/src/components/rating.d.ts.map +0 -1
- package/dist/src/components/rating.js.map +0 -1
- package/dist/src/components/shortcut.d.ts.map +0 -1
- package/dist/src/components/shortcut.js.map +0 -1
- package/dist/src/components/spinner.d.ts.map +0 -1
- package/dist/src/components/spinner.js.map +0 -1
- package/dist/src/components/to_consolidate/card.d.ts.map +0 -1
- package/dist/src/components/to_consolidate/card.js.map +0 -1
- package/dist/src/components/to_consolidate/index.d.ts +0 -5
- package/dist/src/components/to_consolidate/index.d.ts.map +0 -1
- package/dist/src/components/to_consolidate/index.js +0 -5
- package/dist/src/components/to_consolidate/index.js.map +0 -1
- package/dist/src/components/to_consolidate/markdown.d.ts.map +0 -1
- package/dist/src/components/to_consolidate/markdown.js.map +0 -1
- package/dist/src/components/to_consolidate/pagination.d.ts.map +0 -1
- package/dist/src/components/to_consolidate/pagination.js.map +0 -1
- package/dist/src/components/to_consolidate/tab_number_chip.d.ts.map +0 -1
- package/dist/src/components/to_consolidate/tab_number_chip.js.map +0 -1
- package/src/components/to_consolidate/index.ts +0 -4
- /package/dist/src/components/{actor_template_card.d.ts → actor_template_card/actor_template_card.d.ts} +0 -0
- /package/dist/src/components/{banner.d.ts → banner/banner.d.ts} +0 -0
- /package/dist/src/components/{blog_article.d.ts → blog_article/blog_article.d.ts} +0 -0
- /package/dist/src/components/{color_wheel_gradient.d.ts → color_wheel_gradient/color_wheel_gradient.d.ts} +0 -0
- /package/dist/src/components/{color_wheel_gradient.js → color_wheel_gradient/color_wheel_gradient.js} +0 -0
- /package/dist/src/components/{to_consolidate → pagination}/pagination.d.ts +0 -0
- /package/dist/src/components/{shortcut.d.ts → shortcut/shortcut.d.ts} +0 -0
- /package/dist/src/components/{spinner.d.ts → spinner/spinner.d.ts} +0 -0
- /package/dist/src/components/{to_consolidate → tab_number_chip}/tab_number_chip.d.ts +0 -0
- /package/src/components/{action_link.stories.tsx → action_link/action_link.stories.tsx} +0 -0
- /package/src/components/{actor_template_card.stories.tsx → actor_template_card/actor_template_card.stories.tsx} +0 -0
- /package/src/components/{badge.doc.mdx → badge/badge.doc.mdx} +0 -0
- /package/src/components/{banner.stories.tsx → banner/banner.stories.tsx} +0 -0
- /package/src/components/{blog_article.stories.tsx → blog_article/blog_article.stories.tsx} +0 -0
- /package/src/components/{chip.stories.tsx → chip/chip.stories.tsx} +0 -0
- /package/src/components/{color_wheel_gradient.stories.tsx → color_wheel_gradient/color_wheel_gradient.stories.tsx} +0 -0
- /package/src/components/{color_wheel_gradient.tsx → color_wheel_gradient/color_wheel_gradient.tsx} +0 -0
- /package/src/components/{icon_button.stories.tsx → icon_button/icon_button.stories.tsx} +0 -0
- /package/src/components/{link.stories.tsx → link/link.stories.tsx} +0 -0
- /package/src/components/{to_consolidate → markdown}/markdown.stories.tsx +0 -0
- /package/src/components/{to_consolidate → pagination}/pagination.stories.tsx +0 -0
- /package/src/components/{rating.stories.tsx → rating/rating.stories.tsx} +0 -0
- /package/src/components/{spinner.stories.tsx → spinner/spinner.stories.tsx} +0 -0
- /package/src/components/{to_consolidate → tab_number_chip}/tab_number_chip.stories.tsx +0 -0
- /package/src/components/{tag.doc.mdx → tag/tag.doc.mdx} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/ui-library",
|
|
3
|
-
"version": "1.141.
|
|
3
|
+
"version": "1.141.2",
|
|
4
4
|
"description": "React UI library used by apify.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"It's not nice, but helps us to get around the problem of multiple react instances."
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@apify/ui-icons": "^1.39.
|
|
30
|
+
"@apify/ui-icons": "^1.39.1",
|
|
31
31
|
"@floating-ui/react": "^0.27.19",
|
|
32
32
|
"@floating-ui/react-dom": "^2.1.8",
|
|
33
33
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"src",
|
|
74
74
|
"style"
|
|
75
75
|
],
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "bf6ef3f0da8a28fe6a467abf93fcc1489e1689eb"
|
|
77
77
|
}
|
|
@@ -5,10 +5,10 @@ import { ArrowLeftIcon, ArrowRightIcon } from '@apify/ui-icons';
|
|
|
5
5
|
|
|
6
6
|
import type { RequiredBy } from '@apify-packages/types';
|
|
7
7
|
|
|
8
|
-
import { theme } from '
|
|
9
|
-
import { Box, type BoxProps } from '
|
|
10
|
-
import { Link, type LinkProps, StyledAsLink } from '
|
|
11
|
-
import { Heading } from '
|
|
8
|
+
import { theme } from '../../design_system/theme.js';
|
|
9
|
+
import { Box, type BoxProps } from '../box';
|
|
10
|
+
import { Link, type LinkProps, StyledAsLink } from '../link';
|
|
11
|
+
import { Heading } from '../text';
|
|
12
12
|
|
|
13
13
|
const StyledGuidepost = styled(Box)<{ $isBackLink: boolean }>`
|
|
14
14
|
display: inline-flex;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './action_link.js';
|
package/src/components/{actor_template_card.tsx → actor_template_card/actor_template_card.tsx}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
import { theme } from '
|
|
5
|
-
import { Badge } from '
|
|
6
|
-
import { TextMarketing } from '
|
|
7
|
-
import { VerticalTile } from '
|
|
4
|
+
import { theme } from '../../design_system/theme.js';
|
|
5
|
+
import { Badge } from '../badge';
|
|
6
|
+
import { TextMarketing } from '../text';
|
|
7
|
+
import { VerticalTile } from '../tile';
|
|
8
8
|
|
|
9
9
|
interface ActorTemplateCardProps {
|
|
10
10
|
id: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './actor_template_card.js';
|
|
@@ -5,8 +5,8 @@ import styled from 'styled-components';
|
|
|
5
5
|
|
|
6
6
|
import { PeopleIcon } from '@apify/ui-icons';
|
|
7
7
|
|
|
8
|
+
import { SHARED_TEXT_TYPES } from '..';
|
|
8
9
|
import { Badge, BADGE_SIZES, BADGE_VARIANTS } from './badge.tsx';
|
|
9
|
-
import { SHARED_TEXT_TYPES } from './index.ts';
|
|
10
10
|
|
|
11
11
|
export default {
|
|
12
12
|
title: 'UI-Library/Badge',
|
|
@@ -4,12 +4,12 @@ import styled, { css } from 'styled-components';
|
|
|
4
4
|
|
|
5
5
|
import type { IconComponent, IconSize } from '@apify/ui-icons';
|
|
6
6
|
|
|
7
|
-
import { theme } from '
|
|
8
|
-
import type { WithTransientProps } from '
|
|
9
|
-
import type { FlattenSimpleInterpolation } from '
|
|
10
|
-
import { Box, type MarginSpacingProps, type RegularBoxProps } from '
|
|
11
|
-
import { Text } from '
|
|
12
|
-
import type { SharedTextSize, SharedTextType } from '
|
|
7
|
+
import { theme } from '../../design_system/theme.js';
|
|
8
|
+
import type { WithTransientProps } from '../../type_utils';
|
|
9
|
+
import type { FlattenSimpleInterpolation } from '../../utils/type_utils';
|
|
10
|
+
import { Box, type MarginSpacingProps, type RegularBoxProps } from '../box';
|
|
11
|
+
import { Text } from '../text';
|
|
12
|
+
import type { SharedTextSize, SharedTextType } from '../text';
|
|
13
13
|
|
|
14
14
|
export type BadgeSize = 'large' | 'regular' | 'small' | 'extra_small';
|
|
15
15
|
export const BADGE_SIZES: BadgeSize[] = ['large', 'regular', 'small', 'extra_small'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './badge.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import styled, { css } from 'styled-components';
|
|
3
3
|
|
|
4
|
-
import { theme } from '
|
|
4
|
+
import { theme } from '../../design_system/theme.js';
|
|
5
5
|
|
|
6
6
|
const BANNER_GRADIENT_BACKGROUND_SVG = `<svg width="1200" height="148" viewBox="0 0 1200 148" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
7
|
<g clip-path="url(#clip0_2285_34756)">
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './banner.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './blog_article.js';
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
|
|
3
|
+
import { Box } from './box.js';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof Box> = {
|
|
6
|
+
title: 'UI-Library/Box',
|
|
7
|
+
component: Box,
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: 'padded',
|
|
10
|
+
docs: {
|
|
11
|
+
description: {
|
|
12
|
+
component:
|
|
13
|
+
'Foundational primitive for layout and spacing. Provides margin/padding props (`m`, `mt`, `p`, `px`, …) via design tokens, plus a polymorphic `as` prop. Used as the base for most other components.',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
|
|
21
|
+
type Story = StoryObj<typeof Box>;
|
|
22
|
+
|
|
23
|
+
const Sample = ({ label, background = '#e3f2fd' }: { label: string; background?: string }) => (
|
|
24
|
+
<div style={{ background, padding: '0.5rem 1rem', borderRadius: '0.4rem', display: 'inline-block' }}>{label}</div>
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
/** Default Box renders as a div with no styling applied. */
|
|
28
|
+
export const Default: Story = {
|
|
29
|
+
render: () => (
|
|
30
|
+
<Box>
|
|
31
|
+
<Sample label="Default Box (no spacing)" />
|
|
32
|
+
</Box>
|
|
33
|
+
),
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** Margin props: `m`, `mt`, `mb`, `ml`, `mr`, `mx`, `my`. Values come from the spacing scale. */
|
|
37
|
+
export const MarginSpacing: Story = {
|
|
38
|
+
render: () => (
|
|
39
|
+
<div style={{ border: '1px dashed #aaa', padding: '1rem' }}>
|
|
40
|
+
<Box mt="space8" mb="space24">
|
|
41
|
+
<Sample label="mt='space8' mb='space24'" />
|
|
42
|
+
</Box>
|
|
43
|
+
<Box mx="space32">
|
|
44
|
+
<Sample label="mx='space32' (horizontal margin)" background="#fff3e0" />
|
|
45
|
+
</Box>
|
|
46
|
+
<Box m="space16">
|
|
47
|
+
<Sample label="m='space16' (uniform)" background="#f3e5f5" />
|
|
48
|
+
</Box>
|
|
49
|
+
</div>
|
|
50
|
+
),
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** Padding props: `p`, `pt`, `pb`, `pl`, `pr`, `px`, `py`. */
|
|
54
|
+
export const PaddingSpacing: Story = {
|
|
55
|
+
render: () => (
|
|
56
|
+
<Box p="space16" style={{ background: '#e8f5e9', display: 'inline-block', borderRadius: '0.4rem' }}>
|
|
57
|
+
<Sample label="Box with p='space16'" background="#fff" />
|
|
58
|
+
</Box>
|
|
59
|
+
),
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** `as` prop renders the Box as a different HTML element while keeping all spacing props. */
|
|
63
|
+
export const PolymorphicAs: Story = {
|
|
64
|
+
render: () => (
|
|
65
|
+
<>
|
|
66
|
+
<Box as="section" mb="space16" style={{ background: '#e1f5fe', padding: '1rem' }}>
|
|
67
|
+
<Sample label="Box as='section'" background="#fff" />
|
|
68
|
+
</Box>
|
|
69
|
+
<Box as="aside" style={{ background: '#fff3e0', padding: '1rem' }}>
|
|
70
|
+
<Sample label="Box as='aside'" background="#fff" />
|
|
71
|
+
</Box>
|
|
72
|
+
</>
|
|
73
|
+
),
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** Click handler. */
|
|
77
|
+
export const WithOnClick: Story = {
|
|
78
|
+
render: () => (
|
|
79
|
+
<Box
|
|
80
|
+
onClick={() => alert('Box clicked!')}
|
|
81
|
+
p="space12"
|
|
82
|
+
style={{ background: '#fce4ec', cursor: 'pointer', borderRadius: '0.4rem', display: 'inline-block' }}
|
|
83
|
+
>
|
|
84
|
+
Click me
|
|
85
|
+
</Box>
|
|
86
|
+
),
|
|
87
|
+
};
|
|
@@ -2,9 +2,9 @@ import type React from 'react';
|
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import styled, { css } from 'styled-components';
|
|
4
4
|
|
|
5
|
-
import { theme } from '
|
|
6
|
-
import type { Size } from '
|
|
7
|
-
import type { WithTransientProps } from '
|
|
5
|
+
import { theme } from '../../design_system/theme.js';
|
|
6
|
+
import type { Size } from '../../design_system/tokens';
|
|
7
|
+
import type { WithTransientProps } from '../../type_utils';
|
|
8
8
|
|
|
9
9
|
type ExtendedSize = Size | 'none' | 'auto';
|
|
10
10
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './box.js';
|
|
@@ -3,9 +3,9 @@ import React from 'react';
|
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
|
|
5
5
|
import { theme } from '../../design_system/theme.js';
|
|
6
|
-
import { Box } from '../box
|
|
7
|
-
import { Link } from '../link
|
|
8
|
-
import { Text } from '../text
|
|
6
|
+
import { Box } from '../box';
|
|
7
|
+
import { Link } from '../link';
|
|
8
|
+
import { Text } from '../text';
|
|
9
9
|
|
|
10
10
|
export const breadcrumbClassNames = {
|
|
11
11
|
WRAPPER: 'Breadcrumbs__Wrapper',
|
|
@@ -5,7 +5,7 @@ import styled from 'styled-components';
|
|
|
5
5
|
|
|
6
6
|
import { CrossIcon } from '@apify/ui-icons';
|
|
7
7
|
|
|
8
|
-
import { theme } from '
|
|
8
|
+
import { theme } from '../../design_system/theme.js';
|
|
9
9
|
import { Button, type ButtonProps } from './button.js';
|
|
10
10
|
|
|
11
11
|
export default {
|
|
@@ -5,11 +5,11 @@ import styled, { css } from 'styled-components';
|
|
|
5
5
|
|
|
6
6
|
import { ExternalLinkIcon, type IconSize } from '@apify/ui-icons';
|
|
7
7
|
|
|
8
|
-
import { theme } from '
|
|
9
|
-
import { type WithRequired, type WithTransientProps } from '
|
|
10
|
-
import { useSharedUiDependencies } from '
|
|
11
|
-
import { Box, type MarginSpacingProps, type RegularBoxProps } from '
|
|
12
|
-
import { isUrlExternal, Link, type LinkProps } from '
|
|
8
|
+
import { theme } from '../../design_system/theme.js';
|
|
9
|
+
import { type WithRequired, type WithTransientProps } from '../../type_utils.js';
|
|
10
|
+
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
11
|
+
import { Box, type MarginSpacingProps, type RegularBoxProps } from '../box';
|
|
12
|
+
import { isUrlExternal, Link, type LinkProps } from '../link';
|
|
13
13
|
|
|
14
14
|
export type ButtonSize = 'extraLarge' | 'large' | 'medium' | 'small' | 'extraSmall';
|
|
15
15
|
type ButtonColor = 'default' | 'success' | 'danger' | 'primaryBlack';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './button.js';
|
|
@@ -4,10 +4,10 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
|
|
6
6
|
import { theme } from '../../design_system/theme.js';
|
|
7
|
-
import type { WithTransientProps } from '../../type_utils
|
|
8
|
-
import type { BoxProps } from '../box
|
|
9
|
-
import { Box } from '../box
|
|
10
|
-
import { Text } from '../text
|
|
7
|
+
import type { WithTransientProps } from '../../type_utils';
|
|
8
|
+
import type { BoxProps } from '../box';
|
|
9
|
+
import { Box } from '../box';
|
|
10
|
+
import { Text } from '../text';
|
|
11
11
|
|
|
12
12
|
export const cardClassNames = {
|
|
13
13
|
WRAPPER: 'Card',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './card.js';
|
package/src/components/{card_container.stories.tsx → card_container/card_container.stories.tsx}
RENAMED
|
@@ -4,8 +4,8 @@ import styled from 'styled-components';
|
|
|
4
4
|
|
|
5
5
|
import { DragIndicatorIcon } from '@apify/ui-icons';
|
|
6
6
|
|
|
7
|
+
import { IconButton } from '../icon_button';
|
|
7
8
|
import { CardContainer, cardContainerClassNames, type CardContainerProps } from './card_container.js';
|
|
8
|
-
import { IconButton } from './icon_button.js';
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
11
|
title: 'UI-Library/Cards/CardContainer',
|
|
@@ -3,9 +3,9 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
import type { ValueOf } from '@apify-packages/types';
|
|
5
5
|
|
|
6
|
-
import { theme } from '
|
|
7
|
-
import type { Size } from '
|
|
8
|
-
import { Box, type BoxProps } from '
|
|
6
|
+
import { theme } from '../../design_system/theme.js';
|
|
7
|
+
import type { Size } from '../../design_system/tokens';
|
|
8
|
+
import { Box, type BoxProps } from '../box';
|
|
9
9
|
|
|
10
10
|
export const cardContainerClassNames = {
|
|
11
11
|
CONTENT: 'CardContainer-Content',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './card_container.js';
|
|
@@ -6,8 +6,8 @@ import styled, { css } from 'styled-components';
|
|
|
6
6
|
|
|
7
7
|
import type { ValueOf } from '@apify-packages/types';
|
|
8
8
|
|
|
9
|
-
import { theme } from '
|
|
10
|
-
import type { RegularBoxProps } from '
|
|
9
|
+
import { theme } from '../../design_system/theme.js';
|
|
10
|
+
import type { RegularBoxProps } from '../box';
|
|
11
11
|
|
|
12
12
|
export const CHIP_SIZES = {
|
|
13
13
|
EXTRA_SMALL: 'XS',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './chip.js';
|
|
@@ -5,8 +5,8 @@ import { CheckIcon, CopyIcon } from '@apify/ui-icons';
|
|
|
5
5
|
|
|
6
6
|
import { theme } from '../../design_system/theme.js';
|
|
7
7
|
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
8
|
-
import { useCopyToClipboard } from '../../utils
|
|
9
|
-
import { Text } from '../text
|
|
8
|
+
import { useCopyToClipboard } from '../../utils';
|
|
9
|
+
import { Text } from '../text';
|
|
10
10
|
|
|
11
11
|
interface StyledButtonProps {
|
|
12
12
|
$successStyle?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
|
|
3
3
|
import { theme } from '../../../design_system/theme.js';
|
|
4
|
-
import { Box } from '../../box
|
|
5
|
-
import type { SharedTextProps, SharedTextSize } from '../../text/text_shared
|
|
4
|
+
import { Box } from '../../box';
|
|
5
|
+
import type { SharedTextProps, SharedTextSize } from '../../text/text_shared';
|
|
6
6
|
|
|
7
7
|
export type SyntaxHighlighterBaseStylesWrapperProps = SharedTextProps & {
|
|
8
8
|
$fullWidth?: boolean;
|
|
@@ -2,11 +2,11 @@ import clsx from 'clsx';
|
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
import { useMemo, useRef, useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import type { RegularBoxProps } from '../../box
|
|
6
|
-
import { ColorWheelGradient } from '../../color_wheel_gradient
|
|
7
|
-
import { Link } from '../../link
|
|
8
|
-
import { Text } from '../../text
|
|
9
|
-
import type { SharedTextSize } from '../../text/text_shared
|
|
5
|
+
import type { RegularBoxProps } from '../../box';
|
|
6
|
+
import { ColorWheelGradient } from '../../color_wheel_gradient';
|
|
7
|
+
import { Link } from '../../link';
|
|
8
|
+
import { Text } from '../../text';
|
|
9
|
+
import type { SharedTextSize } from '../../text/text_shared';
|
|
10
10
|
import { ActionButton, CopyButton } from '../action_button.js';
|
|
11
11
|
import { PrismSyntaxHighlighter } from '../prism_highlighter.js';
|
|
12
12
|
import { CodeBlockWrapper } from './code_block.styled.js';
|
|
@@ -7,8 +7,8 @@ import { CodeIcon, HttpIcon, type IconComponent, McpIcon } from '@apify/ui-icons
|
|
|
7
7
|
|
|
8
8
|
import { theme } from '../../../design_system/theme.js';
|
|
9
9
|
import { useSharedUiDependencies } from '../../../ui_dependency_provider.js';
|
|
10
|
-
import { Box, type MarginSpacingProps, type RegularBoxProps } from '../../box
|
|
11
|
-
import { Link, type RegularLinkProps } from '../../link
|
|
10
|
+
import { Box, type MarginSpacingProps, type RegularBoxProps } from '../../box';
|
|
11
|
+
import { Link, type RegularLinkProps } from '../../link';
|
|
12
12
|
import { HeadingShared } from '../../text/heading_shared.js';
|
|
13
13
|
import { CodeBlock, type CodeBlockProps } from './code_block.js';
|
|
14
14
|
|
|
@@ -5,9 +5,9 @@ import { CheckIcon, CopyIcon } from '@apify/ui-icons';
|
|
|
5
5
|
|
|
6
6
|
import { theme } from '../../../design_system/theme.js';
|
|
7
7
|
import { useCopyToClipboard } from '../../../utils/copy_to_clipboard.js';
|
|
8
|
-
import type { RegularBoxProps } from '../../box
|
|
9
|
-
import { Text } from '../../text
|
|
10
|
-
import type { SharedTextSize } from '../../text/text_shared
|
|
8
|
+
import type { RegularBoxProps } from '../../box';
|
|
9
|
+
import { Text } from '../../text';
|
|
10
|
+
import type { SharedTextSize } from '../../text/text_shared';
|
|
11
11
|
|
|
12
12
|
// TODO: We should not need to export these once we consolidate Markdown
|
|
13
13
|
export const inlineCodeStyles = css`
|
|
@@ -6,11 +6,11 @@ import { EyeIcon, EyeOffIcon } from '@apify/ui-icons';
|
|
|
6
6
|
import type { HttpMethod } from '@apify-packages/types';
|
|
7
7
|
|
|
8
8
|
import { theme } from '../../../design_system/theme.js';
|
|
9
|
-
import type { BoxProps } from '../../box
|
|
10
|
-
import { Text } from '../../text
|
|
11
|
-
import type { SharedTextSize } from '../../text/text_shared
|
|
9
|
+
import type { BoxProps } from '../../box';
|
|
10
|
+
import { Text } from '../../text';
|
|
11
|
+
import type { SharedTextSize } from '../../text/text_shared';
|
|
12
12
|
import { ActionButton, CopyButton } from '../action_button.js';
|
|
13
|
-
import type { SyntaxHighlighterBaseStylesWrapperProps } from '../code_block/code_block.styled
|
|
13
|
+
import type { SyntaxHighlighterBaseStylesWrapperProps } from '../code_block/code_block.styled';
|
|
14
14
|
import { SyntaxHighlighterBaseStylesWrapper } from '../code_block/code_block.styled.js';
|
|
15
15
|
import { getBashLinePrefixes } from '../code_block/utils.js';
|
|
16
16
|
import { PrismSyntaxHighlighter } from '../prism_highlighter.js';
|
|
@@ -8,8 +8,8 @@ import styled, { css } from 'styled-components';
|
|
|
8
8
|
|
|
9
9
|
import { theme } from '../../design_system/theme.js';
|
|
10
10
|
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
11
|
-
import { Text } from '../text
|
|
12
|
-
import type { SharedTextSize } from '../text
|
|
11
|
+
import { Text } from '../text';
|
|
12
|
+
import type { SharedTextSize } from '../text';
|
|
13
13
|
import { oneLightTheme } from './one_light_theme.js';
|
|
14
14
|
|
|
15
15
|
(typeof global !== 'undefined' ? global : window).Prism = Prism;
|
|
@@ -6,8 +6,8 @@ import styled, { css } from 'styled-components';
|
|
|
6
6
|
import { ChevronDownIcon } from '@apify/ui-icons';
|
|
7
7
|
|
|
8
8
|
import { theme } from '../../design_system/theme.js';
|
|
9
|
-
import type { WithTransientProps } from '../../type_utils
|
|
10
|
-
import { Box } from '../box
|
|
9
|
+
import type { WithTransientProps } from '../../type_utils';
|
|
10
|
+
import { Box } from '../box';
|
|
11
11
|
|
|
12
12
|
interface TransientWrapperProps {
|
|
13
13
|
hideOuterBorder?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './color_wheel_gradient.js';
|
|
@@ -13,8 +13,8 @@ import clsx from 'clsx';
|
|
|
13
13
|
import type React from 'react';
|
|
14
14
|
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
15
15
|
|
|
16
|
-
import { Box, type BoxProps } from '../box
|
|
17
|
-
import { Text } from '../text
|
|
16
|
+
import { Box, type BoxProps } from '../box';
|
|
17
|
+
import { Text } from '../text';
|
|
18
18
|
import { useFloatingMenu } from './menu_common.js';
|
|
19
19
|
import { DropdownMenuBaseComponent, ListMenuComponent, ListMenuItemComponent } from './menu_components.js';
|
|
20
20
|
|
|
@@ -6,9 +6,9 @@ import styled, { css } from 'styled-components';
|
|
|
6
6
|
import { ChevronDownIcon, CrossIcon } from '@apify/ui-icons';
|
|
7
7
|
|
|
8
8
|
import { theme } from '../../design_system/theme.js';
|
|
9
|
-
import { Badge } from '../badge
|
|
10
|
-
import type { BoxProps } from '../box
|
|
11
|
-
import { Box } from '../box
|
|
9
|
+
import { Badge } from '../badge';
|
|
10
|
+
import type { BoxProps } from '../box';
|
|
11
|
+
import { Box } from '../box';
|
|
12
12
|
|
|
13
13
|
export type FloatingContext = Pick<UseFloatingReturn<ReferenceType>, 'context'>['context'];
|
|
14
14
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
|
|
3
3
|
import { theme } from '../../design_system/theme.js';
|
|
4
|
-
import { Shortcut } from '../shortcut
|
|
5
|
-
import type { TooltipProps, TooltipSize, TooltipTextAlign } from './tooltip
|
|
4
|
+
import { Shortcut } from '../shortcut';
|
|
5
|
+
import type { TooltipProps, TooltipSize, TooltipTextAlign } from './tooltip';
|
|
6
6
|
import { TOOLTIP_SIZES, TOOLTIP_TEXT_ALIGNS } from './tooltip.js';
|
|
7
7
|
|
|
8
8
|
type ContentProps = Pick<TooltipProps, 'content' | 'shortcuts' | 'imageUrl' | 'subtleText' | 'size' | 'textAlign'>;
|
|
@@ -5,18 +5,18 @@ import type { IconComponent, IconSize } from '@apify/ui-icons';
|
|
|
5
5
|
|
|
6
6
|
import type { ValueOf } from '@apify-packages/types';
|
|
7
7
|
|
|
8
|
-
import { theme } from '
|
|
9
|
-
import type { RegularBoxProps } from '
|
|
8
|
+
import { theme } from '../../design_system/theme.js';
|
|
9
|
+
import type { RegularBoxProps } from '../box';
|
|
10
10
|
import {
|
|
11
11
|
Button,
|
|
12
12
|
BUTTON_SIZE_VARIANTS_CSS,
|
|
13
13
|
type ButtonSize,
|
|
14
14
|
type RegularButtonProps,
|
|
15
15
|
type TransientButtonProps,
|
|
16
|
-
} from '
|
|
17
|
-
import { Tooltip } from '
|
|
18
|
-
import { Link, type RegularLinkProps } from '
|
|
19
|
-
import { InlineSpinner, spinnerClassNames } from '
|
|
16
|
+
} from '../button';
|
|
17
|
+
import { Tooltip } from '../floating';
|
|
18
|
+
import { Link, type RegularLinkProps } from '../link';
|
|
19
|
+
import { InlineSpinner, spinnerClassNames } from '../spinner';
|
|
20
20
|
|
|
21
21
|
export const ICON_BUTTON_VARIANTS = {
|
|
22
22
|
DEFAULT: 'DEFAULT',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './icon_button.js';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
|
|
3
|
+
import { Image } from './image.js';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof Image> = {
|
|
6
|
+
title: 'UI-Library/Image',
|
|
7
|
+
component: Image,
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: 'padded',
|
|
10
|
+
docs: {
|
|
11
|
+
description: {
|
|
12
|
+
component:
|
|
13
|
+
"Wrapper around `<img>` that uses the host app's `InternalImage` (e.g. for image proxy / CDN). Also accepts all spacing props from `Box`.",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
argTypes: {
|
|
18
|
+
src: { control: 'text' },
|
|
19
|
+
alt: { control: 'text' },
|
|
20
|
+
width: { control: 'number' },
|
|
21
|
+
height: { control: 'number' },
|
|
22
|
+
loading: {
|
|
23
|
+
control: 'select',
|
|
24
|
+
options: ['eager', 'lazy'],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default meta;
|
|
30
|
+
|
|
31
|
+
type Story = StoryObj<typeof Image>;
|
|
32
|
+
|
|
33
|
+
const PLACEHOLDER_SRC = 'https://console.apify.com/img/logos_apify/logo_apify_full_dark_text.svg';
|
|
34
|
+
|
|
35
|
+
/** Basic image with src and alt. */
|
|
36
|
+
export const Default: Story = {
|
|
37
|
+
args: {
|
|
38
|
+
src: PLACEHOLDER_SRC,
|
|
39
|
+
alt: 'Apify logo',
|
|
40
|
+
width: 160,
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** With explicit dimensions. */
|
|
45
|
+
export const WithDimensions: Story = {
|
|
46
|
+
args: {
|
|
47
|
+
src: PLACEHOLDER_SRC,
|
|
48
|
+
alt: 'Apify logo',
|
|
49
|
+
width: 240,
|
|
50
|
+
height: 64,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** Lazy loading — the browser defers the request until the image is near the viewport. */
|
|
55
|
+
export const LazyLoading: Story = {
|
|
56
|
+
args: {
|
|
57
|
+
src: PLACEHOLDER_SRC,
|
|
58
|
+
alt: 'Apify logo (lazy)',
|
|
59
|
+
width: 200,
|
|
60
|
+
loading: 'lazy',
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** Box spacing props work on Image too. */
|
|
65
|
+
export const WithSpacing: Story = {
|
|
66
|
+
args: {
|
|
67
|
+
src: PLACEHOLDER_SRC,
|
|
68
|
+
alt: 'Apify logo',
|
|
69
|
+
width: 200,
|
|
70
|
+
m: 'space24',
|
|
71
|
+
},
|
|
72
|
+
render: (args) => (
|
|
73
|
+
<div style={{ background: '#f5f5f5', display: 'inline-block', borderRadius: '0.4rem' }}>
|
|
74
|
+
<Image {...args} />
|
|
75
|
+
</div>
|
|
76
|
+
),
|
|
77
|
+
};
|