@apify/ui-library 1.140.2 → 1.141.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +8 -4
- package/dist/src/components/floating/menu.d.ts.map +1 -1
- package/dist/src/components/floating/menu.js +26 -19
- package/dist/src/components/floating/menu.js.map +1 -1
- package/dist/src/components/floating/menu_components.d.ts +17 -5
- package/dist/src/components/floating/menu_components.d.ts.map +1 -1
- package/dist/src/components/floating/menu_components.js +20 -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 -35
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +39 -35
- 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/radio_button/index.d.ts +2 -0
- package/dist/src/components/radio_button/index.d.ts.map +1 -0
- package/dist/src/components/radio_button/index.js +2 -0
- package/dist/src/components/radio_button/index.js.map +1 -0
- package/dist/src/components/radio_button/radio_button.d.ts +13 -0
- package/dist/src/components/radio_button/radio_button.d.ts.map +1 -0
- package/dist/src/components/radio_button/radio_button.js +15 -0
- package/dist/src/components/radio_button/radio_button.js.map +1 -0
- package/dist/src/components/radio_button/radio_button.style.d.ts +2 -0
- package/dist/src/components/radio_button/radio_button.style.d.ts.map +1 -0
- package/dist/src/components/radio_button/radio_button.style.js +47 -0
- package/dist/src/components/radio_button/radio_button.style.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/index.d.ts +2 -2
- package/dist/src/components/table/index.d.ts.map +1 -1
- package/dist/src/components/table/index.js +1 -1
- 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.js +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_test_ids.d.ts → table.test_ids.d.ts} +1 -1
- package/dist/src/components/table/table.test_ids.d.ts.map +1 -0
- package/dist/src/components/table/table.test_ids.js +16 -0
- package/dist/src/components/table/table.test_ids.js.map +1 -0
- package/dist/src/components/table/{types.d.ts → table.types.d.ts} +2 -2
- package/dist/src/components/table/table.types.d.ts.map +1 -0
- package/dist/src/components/table/table.types.js +2 -0
- package/dist/src/components/table/table.types.js.map +1 -0
- package/dist/src/components/table/table_body.js +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 +2 -2
- package/dist/src/components/table/table_cell.js.map +1 -1
- package/dist/src/components/table/table_empty_row.js +1 -1
- package/dist/src/components/table/table_error_row.js +2 -2
- 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_expansion_row.js +1 -1
- package/dist/src/components/table/table_foot.js +1 -1
- package/dist/src/components/table/table_head.js +1 -1
- package/dist/src/components/table/table_head_cell.js +1 -1
- package/dist/src/components/table/table_head_row.js +1 -1
- package/dist/src/components/table/table_loading_row.js +2 -2
- 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_row.js +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 +2 -2
- 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 +4 -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 +50 -36
- package/src/components/floating/menu_components.tsx +53 -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 -35
- 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/radio_button/index.ts +1 -0
- package/src/components/radio_button/radio_button.stories.tsx +57 -0
- package/src/components/radio_button/radio_button.style.ts +48 -0
- package/src/components/radio_button/radio_button.tsx +43 -0
- 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/index.ts +2 -2
- package/src/components/table/table.context.ts +1 -1
- package/src/components/table/table.stories.tsx +16 -13
- package/src/components/table/table.styled.ts +1 -1
- package/src/components/table/table.test_ids.ts +15 -0
- package/src/components/table/table.tsx +1 -1
- package/src/components/table/{types.ts → table.types.ts} +1 -1
- package/src/components/table/table_body.tsx +1 -1
- package/src/components/table/table_cell.tsx +2 -2
- package/src/components/table/table_empty_row.tsx +1 -1
- package/src/components/table/table_error_row.tsx +2 -2
- package/src/components/table/table_expansion_row.tsx +2 -2
- package/src/components/table/table_foot.tsx +1 -1
- package/src/components/table/table_head.tsx +1 -1
- package/src/components/table/table_head_cell.tsx +1 -1
- package/src/components/table/table_head_row.tsx +1 -1
- package/src/components/table/table_loading_row.tsx +2 -2
- package/src/components/table/table_row.tsx +2 -2
- package/src/components/table/table_wrapper.tsx +3 -3
- 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/table/table_test_ids.d.ts.map +0 -1
- package/dist/src/components/table/table_test_ids.js +0 -16
- package/dist/src/components/table/table_test_ids.js.map +0 -1
- package/dist/src/components/table/types.d.ts.map +0 -1
- package/dist/src/components/table/types.js +0 -2
- package/dist/src/components/table/types.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/table/table_test_ids.ts +0 -15
- 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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { type ComponentPropsWithoutRef, type FC } from 'react';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
|
|
6
|
+
import { radioButtonStyle } from './radio_button.style.js';
|
|
7
|
+
|
|
8
|
+
const RADIO_VALUE = 'checked';
|
|
9
|
+
|
|
10
|
+
const StyledRoot = styled(RadioGroupPrimitive.Root)`
|
|
11
|
+
display: contents;
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
const StyledRadioItem = styled(RadioGroupPrimitive.Item)`
|
|
15
|
+
${radioButtonStyle}
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
type RadioButtonBaseProps = Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, 'value'> & {
|
|
19
|
+
setValue: () => void;
|
|
20
|
+
error?: string;
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type RadioButtonPrimitiveProps = RadioButtonBaseProps & { value: boolean };
|
|
25
|
+
|
|
26
|
+
export const RadioButtonPrimitive: FC<RadioButtonPrimitiveProps> = ({
|
|
27
|
+
value,
|
|
28
|
+
setValue,
|
|
29
|
+
error,
|
|
30
|
+
disabled,
|
|
31
|
+
readOnly,
|
|
32
|
+
className,
|
|
33
|
+
...rest
|
|
34
|
+
}) => (
|
|
35
|
+
<StyledRoot value={value ? RADIO_VALUE : ''} onValueChange={() => setValue()}>
|
|
36
|
+
<StyledRadioItem
|
|
37
|
+
value={RADIO_VALUE}
|
|
38
|
+
disabled={disabled || readOnly}
|
|
39
|
+
className={clsx(className, error && 'error', (disabled || readOnly) && 'disabled')}
|
|
40
|
+
{...rest}
|
|
41
|
+
/>
|
|
42
|
+
</StyledRoot>
|
|
43
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './rating.js';
|
|
@@ -6,10 +6,10 @@ import { StarEmptyIcon, StarFullIcon, StarHalfIcon } from '@apify/ui-icons';
|
|
|
6
6
|
|
|
7
7
|
import type { ReviewRating } from '@apify-packages/types';
|
|
8
8
|
|
|
9
|
-
import { theme } from '
|
|
10
|
-
import type { BoxProps } from '
|
|
11
|
-
import { Box } from '
|
|
12
|
-
import { Text } from '
|
|
9
|
+
import { theme } from '../../design_system/theme.js';
|
|
10
|
+
import type { BoxProps } from '../box';
|
|
11
|
+
import { Box } from '../box';
|
|
12
|
+
import { Text } from '../text';
|
|
13
13
|
|
|
14
14
|
type RatingStatsProps = {
|
|
15
15
|
ratingStats: Record<ReviewRating, number>;
|
|
@@ -5,9 +5,9 @@ import remarkToc from 'remark-toc';
|
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
|
|
7
7
|
import { theme } from '../../design_system/theme.js';
|
|
8
|
-
import { inlineCodeStyles } from '../code
|
|
9
|
-
import { Link } from '../link
|
|
10
|
-
import { Text } from '../text
|
|
8
|
+
import { inlineCodeStyles } from '../code';
|
|
9
|
+
import { Link } from '../link';
|
|
10
|
+
import { Text } from '../text';
|
|
11
11
|
import { cleanMarkdown, slugifyHeadingChildren } from './utils.js';
|
|
12
12
|
|
|
13
13
|
export const useShowTableOfContents = (markdown: string | null | undefined) =>
|
|
@@ -14,8 +14,8 @@ import styled from 'styled-components';
|
|
|
14
14
|
import { CaretDownIcon, CaretUpIcon, CrossIcon, XCircleIcon } from '@apify/ui-icons';
|
|
15
15
|
|
|
16
16
|
import { theme } from '../../design_system/theme.js';
|
|
17
|
-
import { IconButton } from '../icon_button
|
|
18
|
-
import { Text } from '../text
|
|
17
|
+
import { IconButton } from '../icon_button';
|
|
18
|
+
import { Text } from '../text';
|
|
19
19
|
|
|
20
20
|
const DEFAULT_Z_INDEX_IN_MODAL = 99;
|
|
21
21
|
const DEFAULT_Z_INDEX_OUTSIDE_MODAL = 9;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './shortcut.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ElementType } from 'react';
|
|
2
2
|
import styled, { css } from 'styled-components';
|
|
3
3
|
|
|
4
|
-
import { theme } from '
|
|
5
|
-
import { Text } from '
|
|
4
|
+
import { theme } from '../../design_system/theme.js';
|
|
5
|
+
import { Text } from '../text';
|
|
6
6
|
|
|
7
7
|
interface ShortcutProps {
|
|
8
8
|
as?: ElementType;
|
|
@@ -11,11 +11,11 @@ import { visit } from 'unist-util-visit';
|
|
|
11
11
|
|
|
12
12
|
import { theme } from '../../design_system/theme.js';
|
|
13
13
|
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
14
|
-
import { Box } from '../box
|
|
15
|
-
import { Image } from '../image
|
|
16
|
-
import { isUrlExternal } from '../link
|
|
17
|
-
import { cleanMarkdown } from '../readme_renderer
|
|
18
|
-
import { Heading, HeadingContent, Text, TextContent } from '../text
|
|
14
|
+
import { Box } from '../box';
|
|
15
|
+
import { Image } from '../image';
|
|
16
|
+
import { isUrlExternal } from '../link';
|
|
17
|
+
import { cleanMarkdown } from '../readme_renderer';
|
|
18
|
+
import { Heading, HeadingContent, Text, TextContent } from '../text';
|
|
19
19
|
import { MarkdownBlockQuote, MarkdownCode, MarkdownLink, MarkdownTable } from './simple_markdown_components.js';
|
|
20
20
|
|
|
21
21
|
export type SimpleMarkdownComponents = Components;
|
|
@@ -7,17 +7,17 @@ import styled from 'styled-components';
|
|
|
7
7
|
import { CheckIcon, LinkIcon } from '@apify/ui-icons';
|
|
8
8
|
|
|
9
9
|
import { theme } from '../../design_system/theme.js';
|
|
10
|
-
import type { WithOptional } from '../../type_utils
|
|
11
|
-
import { useCopyToClipboard } from '../../utils
|
|
12
|
-
import { Box } from '../box
|
|
13
|
-
import { CodeBlock, InlineCode, OneLineCode } from '../code
|
|
14
|
-
import type { LinkProps } from '../link
|
|
15
|
-
import { Link } from '../link
|
|
16
|
-
import { slugifyHeadingChildren } from '../readme_renderer
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import type { ContentTextProps } from '../text
|
|
20
|
-
import type { SharedTextSize } from '../text
|
|
10
|
+
import type { WithOptional } from '../../type_utils';
|
|
11
|
+
import { useCopyToClipboard } from '../../utils';
|
|
12
|
+
import { Box } from '../box';
|
|
13
|
+
import { CodeBlock, InlineCode, OneLineCode } from '../code';
|
|
14
|
+
import type { LinkProps } from '../link';
|
|
15
|
+
import { Link } from '../link';
|
|
16
|
+
import { slugifyHeadingChildren } from '../readme_renderer';
|
|
17
|
+
import { Heading, TextContent } from '../text';
|
|
18
|
+
import type { HeadingSharedProps } from '../text';
|
|
19
|
+
import type { ContentTextProps } from '../text';
|
|
20
|
+
import type { SharedTextSize } from '../text';
|
|
21
21
|
|
|
22
22
|
const simpleMarkdownClassNames = {
|
|
23
23
|
HEADING_ICON_LINK: 'headingIconLink',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './spinner.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { keyframes } from 'styled-components';
|
|
2
2
|
|
|
3
|
-
import { theme } from '
|
|
4
|
-
import type { WithTransientProps } from '
|
|
3
|
+
import { theme } from '../../design_system/theme.js';
|
|
4
|
+
import type { WithTransientProps } from '../../type_utils';
|
|
5
5
|
|
|
6
6
|
export const spinnerClassNames = {
|
|
7
7
|
SPINNER: 'spinner',
|
|
@@ -2,9 +2,9 @@ import styled from 'styled-components';
|
|
|
2
2
|
|
|
3
3
|
import { StarEmptyIcon, WarningTriangleIcon } from '@apify/ui-icons';
|
|
4
4
|
|
|
5
|
-
import { Badge, Box, type BoxProps, Text } from '../../components
|
|
5
|
+
import { Badge, Box, type BoxProps, Text } from '../../components';
|
|
6
6
|
import { theme } from '../../design_system/theme.js';
|
|
7
|
-
import { ActorAvatar, actorAvatarClassnames } from '../avatar
|
|
7
|
+
import { ActorAvatar, actorAvatarClassnames } from '../avatar';
|
|
8
8
|
|
|
9
9
|
const storeActorHeaderClassNames = {
|
|
10
10
|
title: 'ActorStoreItem-title',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tab_number_chip.js';
|
|
@@ -2,7 +2,7 @@ import type React from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
4
|
import { theme } from '../../design_system/theme.js';
|
|
5
|
-
import { Text } from '../text
|
|
5
|
+
import { Text } from '../text';
|
|
6
6
|
|
|
7
7
|
const StyledChip = styled(Text)`
|
|
8
8
|
color: ${theme.color.neutral.text};
|
|
@@ -12,5 +12,5 @@ export { TableEmptyRow } from './table_empty_row.js';
|
|
|
12
12
|
export { TableLoadingRow } from './table_loading_row.js';
|
|
13
13
|
export { TableErrorRow } from './table_error_row.js';
|
|
14
14
|
export { tableClassNames } from './table.styled.js';
|
|
15
|
-
export { tableTestIds } from './
|
|
16
|
-
export type { HorizontallyScrollableTableWrapperProps, TableExpansion, TableRowProps } from './types.js';
|
|
15
|
+
export { tableTestIds } from './table.test_ids.js';
|
|
16
|
+
export type { HorizontallyScrollableTableWrapperProps, TableExpansion, TableRowProps } from './table.types.js';
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { expect, within } from 'storybook/test';
|
|
3
3
|
|
|
4
|
-
import { Text } from '../text
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
import { Text } from '../text';
|
|
5
|
+
import {
|
|
6
|
+
HorizontallyScrollableTableWrapper,
|
|
7
|
+
Table,
|
|
8
|
+
TableBody,
|
|
9
|
+
TableCell,
|
|
10
|
+
TableCellLink,
|
|
11
|
+
TableEmptyRow,
|
|
12
|
+
TableErrorRow,
|
|
13
|
+
TableHead,
|
|
14
|
+
TableHeadCell,
|
|
15
|
+
TableHeadRow,
|
|
16
|
+
TableLoadingRow,
|
|
17
|
+
TableRow,
|
|
18
|
+
tableTestIds,
|
|
19
|
+
} from './';
|
|
17
20
|
|
|
18
21
|
// ---------------------------------------------------------------------------
|
|
19
22
|
// Mock data
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
3
|
import { theme } from '../../design_system/theme.js';
|
|
4
|
-
import { Box } from '../box
|
|
4
|
+
import { Box } from '../box';
|
|
5
5
|
|
|
6
6
|
/** z-index for sticky table head cells. Consumers can override via CSS if needed. */
|
|
7
7
|
const STICKY_HEAD_Z_INDEX = 5;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const tableTestIds = {
|
|
2
|
+
TABLE: 'table',
|
|
3
|
+
HEAD: 'table-head',
|
|
4
|
+
HEAD_ROW: 'table-head-row',
|
|
5
|
+
HEAD_CELL: 'table-head-cell',
|
|
6
|
+
BODY: 'table-body',
|
|
7
|
+
ROW: 'table-row',
|
|
8
|
+
CELL: 'table-cell',
|
|
9
|
+
FOOT: 'table-foot',
|
|
10
|
+
WRAPPER: 'table-wrapper',
|
|
11
|
+
EMPTY_ROW: 'table-empty-row',
|
|
12
|
+
LOADING_ROW: 'table-loading-row',
|
|
13
|
+
ERROR_ROW: 'table-error-row',
|
|
14
|
+
EXPANSION_ROW: 'table-expansion-row',
|
|
15
|
+
};
|
|
@@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|
|
2
2
|
import type { FC, HTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
4
|
import { StyledTable, tableClassNames } from './table.styled.js';
|
|
5
|
-
import { tableTestIds } from './
|
|
5
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
6
6
|
|
|
7
7
|
export const Table: FC<HTMLAttributes<HTMLTableElement>> = ({ className, ...rest }) => (
|
|
8
8
|
<StyledTable data-test={tableTestIds.TABLE} className={clsx(tableClassNames.TABLE, className)} {...rest} />
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
import type { To } from '../link
|
|
3
|
+
import type { To } from '../link';
|
|
4
4
|
|
|
5
5
|
export type TableRowProps = HTMLAttributes<HTMLTableRowElement> & {
|
|
6
6
|
/** Apply clickable cursor style. Automatically set when `to` is provided. */
|
|
@@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|
|
2
2
|
import type { FC, HTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
4
|
import { tableClassNames } from './table.styled.js';
|
|
5
|
-
import { tableTestIds } from './
|
|
5
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
6
6
|
|
|
7
7
|
export const TableBody: FC<HTMLAttributes<HTMLTableSectionElement>> = ({ className, ...rest }) => (
|
|
8
8
|
<tbody data-test={tableTestIds.BODY} className={clsx(tableClassNames.BODY, className)} {...rest} />
|
|
@@ -2,10 +2,10 @@ import clsx from 'clsx';
|
|
|
2
2
|
import type { FC, TdHTMLAttributes } from 'react';
|
|
3
3
|
import { useContext } from 'react';
|
|
4
4
|
|
|
5
|
-
import { Link, type LinkProps } from '../link
|
|
5
|
+
import { Link, type LinkProps } from '../link';
|
|
6
6
|
import { TableRowLinkContext } from './table.context.js';
|
|
7
7
|
import { tableClassNames } from './table.styled.js';
|
|
8
|
-
import { tableTestIds } from './
|
|
8
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
9
9
|
|
|
10
10
|
export const TableCell: FC<TdHTMLAttributes<HTMLTableCellElement>> = ({ className, children, ...rest }) => {
|
|
11
11
|
const rowLink = useContext(TableRowLinkContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
import { tableClassNames } from './table.styled.js';
|
|
4
|
-
import { tableTestIds } from './
|
|
4
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
5
5
|
|
|
6
6
|
export const TableEmptyRow: FC<{ colSpan: number; children: ReactNode }> = ({ colSpan, children }) => (
|
|
7
7
|
<tr data-test={tableTestIds.EMPTY_ROW} className={tableClassNames.ROW_EMPTY}>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FC, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
import { Text } from '../text
|
|
3
|
+
import { Text } from '../text';
|
|
4
4
|
import { tableClassNames } from './table.styled.js';
|
|
5
|
-
import { tableTestIds } from './
|
|
5
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
6
6
|
|
|
7
7
|
export const TableErrorRow: FC<{ colSpan: number; children?: ReactNode; error?: Error | null }> = ({
|
|
8
8
|
colSpan,
|
|
@@ -2,8 +2,8 @@ import clsx from 'clsx';
|
|
|
2
2
|
import type { FC, ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
import { tableClassNames } from './table.styled.js';
|
|
5
|
-
import { tableTestIds } from './
|
|
6
|
-
import type { TableExpansion } from './types
|
|
5
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
6
|
+
import type { TableExpansion } from './table.types';
|
|
7
7
|
|
|
8
8
|
export const TableExpansionRow: FC<{
|
|
9
9
|
colSpan: number;
|
|
@@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|
|
2
2
|
import type { FC, HTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
4
|
import { tableClassNames } from './table.styled.js';
|
|
5
|
-
import { tableTestIds } from './
|
|
5
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
6
6
|
|
|
7
7
|
export const TableFoot: FC<HTMLAttributes<HTMLTableSectionElement>> = ({ className, ...rest }) => (
|
|
8
8
|
<tfoot data-test={tableTestIds.FOOT} className={clsx(tableClassNames.FOOT, className)} {...rest} />
|
|
@@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|
|
2
2
|
import type { FC, HTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
4
|
import { tableClassNames } from './table.styled.js';
|
|
5
|
-
import { tableTestIds } from './
|
|
5
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
6
6
|
|
|
7
7
|
export const TableHead: FC<HTMLAttributes<HTMLTableSectionElement>> = ({ className, ...rest }) => (
|
|
8
8
|
<thead data-test={tableTestIds.HEAD} className={clsx(tableClassNames.HEAD, className)} {...rest} />
|
|
@@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|
|
2
2
|
import type { FC, ThHTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
4
|
import { tableClassNames } from './table.styled.js';
|
|
5
|
-
import { tableTestIds } from './
|
|
5
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
6
6
|
|
|
7
7
|
export const TableHeadCell: FC<ThHTMLAttributes<HTMLTableCellElement>> = ({ className, ...rest }) => (
|
|
8
8
|
<th data-test={tableTestIds.HEAD_CELL} className={clsx(tableClassNames.HEAD_CELL, className)} {...rest} />
|
|
@@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|
|
2
2
|
import type { FC, HTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
4
|
import { tableClassNames } from './table.styled.js';
|
|
5
|
-
import { tableTestIds } from './
|
|
5
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
6
6
|
|
|
7
7
|
export const TableHeadRow: FC<HTMLAttributes<HTMLTableRowElement>> = ({ className, ...rest }) => (
|
|
8
8
|
<tr data-test={tableTestIds.HEAD_ROW} className={clsx(tableClassNames.HEAD_ROW, className)} {...rest} />
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FC, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
import { InlineSpinner } from '../spinner
|
|
3
|
+
import { InlineSpinner } from '../spinner';
|
|
4
4
|
import { tableClassNames } from './table.styled.js';
|
|
5
|
-
import { tableTestIds } from './
|
|
5
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
6
6
|
|
|
7
7
|
export const TableLoadingRow: FC<{ colSpan: number; children?: ReactNode }> = ({ colSpan, children }) => (
|
|
8
8
|
<tr data-test={tableTestIds.LOADING_ROW} className={tableClassNames.ROW_EMPTY}>
|
|
@@ -3,8 +3,8 @@ import type { FC } from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { TableRowLinkContext } from './table.context.js';
|
|
5
5
|
import { tableClassNames } from './table.styled.js';
|
|
6
|
-
import { tableTestIds } from './
|
|
7
|
-
import type { TableRowProps } from './types
|
|
6
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
7
|
+
import type { TableRowProps } from './table.types';
|
|
8
8
|
|
|
9
9
|
export const TableRow: FC<TableRowProps> = ({ className, clickable, expanded, to, ...rest }) => {
|
|
10
10
|
const row = (
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import { useCallback, useEffect, useRef } from 'react';
|
|
3
3
|
|
|
4
|
-
import { Box } from '../box
|
|
4
|
+
import { Box } from '../box';
|
|
5
5
|
import { StyledHorizontallyScrollableTableWrapper, StyledTableFooterWrapper, tableClassNames } from './table.styled.js';
|
|
6
|
-
import { tableTestIds } from './
|
|
7
|
-
import type { HorizontallyScrollableTableWrapperProps } from './types
|
|
6
|
+
import { tableTestIds } from './table.test_ids.js';
|
|
7
|
+
import type { HorizontallyScrollableTableWrapperProps } from './table.types';
|
|
8
8
|
|
|
9
9
|
export const HorizontallyScrollableTableWrapper: FC<HorizontallyScrollableTableWrapperProps> = ({
|
|
10
10
|
children,
|
|
@@ -6,15 +6,15 @@ import styled, { css } from 'styled-components';
|
|
|
6
6
|
import type { IconComponent } from '@apify/ui-icons';
|
|
7
7
|
|
|
8
8
|
import { theme } from '../../design_system/theme.js';
|
|
9
|
-
import type { WithTransientProps } from '../../type_utils
|
|
10
|
-
import type { FlattenSimpleInterpolation } from '../../utils/type_utils
|
|
11
|
-
import type { BadgeSize } from '../badge
|
|
12
|
-
import { Badge } from '../badge
|
|
13
|
-
import type { MarginSpacingProps, RegularBoxProps } from '../box
|
|
14
|
-
import type { RegularLinkProps } from '../link
|
|
15
|
-
import { Link } from '../link
|
|
16
|
-
import { Text } from '../text
|
|
17
|
-
import type { SharedTextSize } from '../text
|
|
9
|
+
import type { WithTransientProps } from '../../type_utils';
|
|
10
|
+
import type { FlattenSimpleInterpolation } from '../../utils/type_utils';
|
|
11
|
+
import type { BadgeSize } from '../badge';
|
|
12
|
+
import { Badge } from '../badge';
|
|
13
|
+
import type { MarginSpacingProps, RegularBoxProps } from '../box';
|
|
14
|
+
import type { RegularLinkProps } from '../link';
|
|
15
|
+
import { Link } from '../link';
|
|
16
|
+
import { Text } from '../text';
|
|
17
|
+
import type { SharedTextSize } from '../text';
|
|
18
18
|
|
|
19
19
|
type SharedTabProps = Omit<RegularBoxProps, 'as' | 'onClick'> &
|
|
20
20
|
MarginSpacingProps &
|
|
@@ -3,12 +3,12 @@ import { useCallback, useRef, useState } from 'react';
|
|
|
3
3
|
import styled, { css } from 'styled-components';
|
|
4
4
|
|
|
5
5
|
import { theme } from '../../design_system/theme.js';
|
|
6
|
-
import type { WithTransientProps } from '../../type_utils
|
|
6
|
+
import type { WithTransientProps } from '../../type_utils';
|
|
7
7
|
import { useResizeObserverSsr } from '../../utils/resize_observer.js';
|
|
8
|
-
import type { FlattenSimpleInterpolation } from '../../utils/type_utils
|
|
9
|
-
import type { MarginSpacingProps, RegularBoxProps } from '../box
|
|
10
|
-
import { Box } from '../box
|
|
11
|
-
import type { TabData, TabVariant } from './tab
|
|
8
|
+
import type { FlattenSimpleInterpolation } from '../../utils/type_utils';
|
|
9
|
+
import type { MarginSpacingProps, RegularBoxProps } from '../box';
|
|
10
|
+
import { Box } from '../box';
|
|
11
|
+
import type { TabData, TabVariant } from './tab';
|
|
12
12
|
import { Tab } from './tab.js';
|
|
13
13
|
|
|
14
14
|
type SharedTabsProps = Omit<RegularBoxProps, 'as' | 'onClick'> & MarginSpacingProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tag.js';
|
|
@@ -3,8 +3,8 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
import { PeopleIcon, PlusIcon } from '@apify/ui-icons';
|
|
5
5
|
|
|
6
|
+
import { SHARED_TEXT_TYPES } from '../text/text_shared.tsx';
|
|
6
7
|
import { Tag, TAG_SIZES, TAG_VARIANTS } from './tag.tsx';
|
|
7
|
-
import { SHARED_TEXT_TYPES } from './text/text_shared.tsx';
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
10
|
title: 'UI-Library/Tag',
|