@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action_button.js","sourceRoot":"","sources":["../../../../src/components/code/action_button.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"action_button.js","sourceRoot":"","sources":["../../../../src/components/code/action_button.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,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AAC,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,YAAY,qBAAgB,YAAY,cAAY,OAAO,EAAE,OAAO,EAAE,cAAc,KAAM,KAAK,YAC3F,OAAO,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,MAAM,EAAC,MAAM,YAAE,QAAQ,GAAQ,CAAC,CAAC,CAAC,QAAQ,GAChD,CAClB,CAAC;AACN,CAAC,CAAC;AAQF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAAmB,EAAE,EAAE;IAC9D,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAC3D,OAAO,CACH,KAAC,YAAY,IACT,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,eAChC,mBAAmB,gBAClB,mBAAmB,KAC1B,KAAK,YAER,QAAQ,CAAC,CAAC,CAAC,KAAC,SAAS,IAAC,IAAI,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,KAAC,QAAQ,IAAC,IAAI,EAAC,IAAI,GAAG,GACjD,CAClB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { RegularBoxProps } from '../../box
|
|
3
|
-
import type { SharedTextSize } from '../../text/text_shared
|
|
2
|
+
import type { RegularBoxProps } from '../../box';
|
|
3
|
+
import type { SharedTextSize } from '../../text/text_shared';
|
|
4
4
|
type CodeTab = {
|
|
5
5
|
key: string;
|
|
6
6
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code_block.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"code_block.d.ts","s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SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,sSAqBvB,cAAc,4CAqFhB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useMemo, useRef, useState } from 'react';
|
|
4
|
-
import { ColorWheelGradient } from '../../color_wheel_gradient
|
|
5
|
-
import { Link } from '../../link
|
|
6
|
-
import { Text } from '../../text
|
|
4
|
+
import { ColorWheelGradient } from '../../color_wheel_gradient';
|
|
5
|
+
import { Link } from '../../link';
|
|
6
|
+
import { Text } from '../../text';
|
|
7
7
|
import { ActionButton, CopyButton } from '../action_button.js';
|
|
8
8
|
import { PrismSyntaxHighlighter } from '../prism_highlighter.js';
|
|
9
9
|
import { CodeBlockWrapper } from './code_block.styled.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code_block.js","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,kBAAkB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"code_block.js","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,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,CACjB,KAAC,YAAY,IAAC,YAAY,QAAC,OAAO,EAAE,mBAAmB,YAClD,iBAAiB,IAAI,cAAc,GACzB,CAClB,EACA,CAAC,cAAc,IAAI,KAAC,UAAU,IAAC,IAAI,EAAE,WAAW,GAAI,IACnD,EAEL,YAAY,IAAI,KAAC,kBAAkB,IAAC,SAAS,EAAC,oBAAoB,EAAC,QAAQ,EAAE,EAAE,GAAI,IACrE,CACtB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { SharedTextProps, SharedTextSize } from '../../text/text_shared
|
|
1
|
+
import type { SharedTextProps, SharedTextSize } from '../../text/text_shared';
|
|
2
2
|
export type SyntaxHighlighterBaseStylesWrapperProps = SharedTextProps & {
|
|
3
3
|
$fullWidth?: boolean;
|
|
4
4
|
$fullHeight?: string;
|
|
5
5
|
$showLineNumbers?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export declare const SyntaxHighlighterBaseStylesWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<(import("../../box
|
|
8
|
-
export declare const CodeBlockWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("styled-components/dist/types.js").Substitute<(import("../../box
|
|
7
|
+
export declare const SyntaxHighlighterBaseStylesWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<(import("../../box").BoxProps & import("react").RefAttributes<HTMLElement>) & import("styled-components/dist/types.js").BaseObject, SyntaxHighlighterBaseStylesWrapperProps>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../box").BoxProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
8
|
+
export declare const CodeBlockWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("styled-components/dist/types.js").Substitute<(import("../../box").BoxProps & import("react").RefAttributes<HTMLElement>) & import("styled-components/dist/types.js").BaseObject, SyntaxHighlighterBaseStylesWrapperProps> & import("styled-components/dist/types.js").BaseObject, {
|
|
9
9
|
$hasHeader: boolean;
|
|
10
10
|
$gradientRotation?: number;
|
|
11
11
|
$highlightLines?: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code_block.styled.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.styled.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"code_block.styled.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.styled.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE9E,MAAM,MAAM,uCAAuC,GAAG,eAAe,GAAG;IACpE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,kCAAkC,+dAoB9C,CAAC;AAEF,eAAO,MAAM,gBAAgB;gBACb,OAAO;wBACC,MAAM;sBACR,MAAM,EAAE;uBACP,OAAO;eACf,OAAO;iBACL,OAAO;uBACD,OAAO;kBACZ,OAAO;WACd,cAAc;YAgJxB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { theme } from '../../../design_system/theme.js';
|
|
3
|
-
import { Box } from '../../box
|
|
3
|
+
import { Box } from '../../box';
|
|
4
4
|
export const SyntaxHighlighterBaseStylesWrapper = styled(Box) `
|
|
5
5
|
background-color: ${theme.color.neutral.backgroundMuted} !important;
|
|
6
6
|
border: 1px solid ${theme.color.neutral.border};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code_block.styled.js","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.styled.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"code_block.styled.js","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.styled.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAShC,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAyC;wBAC9E,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe;wBACnC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM;qBAC7B,KAAK,CAAC,MAAM,CAAC,QAAQ;;;;MAIpC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CACjB,CAAC,UAAU;IACX,GAAG,CAAA;;SAEF;MACH,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAClB,CAAC,WAAW;IACZ,GAAG,CAAA;;SAEF;;;;CAIR,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAUxE;;;;;;;;eAQa,KAAK,CAAC,KAAK,CAAC,MAAM;4BACL,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB;mCAC7B,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM;;;;;;;2BAOlC,KAAK,CAAC,KAAK,CAAC,OAAO;6BACjB,KAAK,CAAC,KAAK,CAAC,MAAM;;;;;;;6BAOlB,KAAK,CAAC,KAAK,CAAC,OAAO;4BACpB,KAAK,CAAC,KAAK,CAAC,MAAM;;;;mBAI3B,KA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AAC,KAAK,CAAC,MAAM;;eAEtB,KAAK,CAAC,KAAK,CAAC,MAAM;;uBAEV,KAAK,CAAC,KAAK,CAAC,MAAM;;;;;;;gCAOT,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU;;;CAG7D,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { type IconComponent } from '@apify/ui-icons';
|
|
3
|
-
import { type MarginSpacingProps, type RegularBoxProps } from '../../box
|
|
4
|
-
import { type RegularLinkProps } from '../../link
|
|
3
|
+
import { type MarginSpacingProps, type RegularBoxProps } from '../../box';
|
|
4
|
+
import { type RegularLinkProps } from '../../link';
|
|
5
5
|
import { type CodeBlockProps } from './code_block.js';
|
|
6
6
|
export type CodeBlockTabKey = 'cli' | 'http' | 'javascript' | 'mcp' | 'openapi' | 'python' | 'typescript';
|
|
7
7
|
type CodeBlockTabConfig = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code_block_with_tabs.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block_with_tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAsB,KAAK,aAAa,EAAW,MAAM,iBAAiB,CAAC;AAIlF,OAAO,EAAO,KAAK,kBAAkB,EAAE,KAAK,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"code_block_with_tabs.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block_with_tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAsB,KAAK,aAAa,EAAW,MAAM,iBAAiB,CAAC;AAIlF,OAAO,EAAO,KAAK,kBAAkB,EAAE,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAC/E,OAAO,EAAQ,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEzD,OAAO,EAAa,K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C,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;CAK3C,CAAC;AAiHF,eAAO,MAAM,iBAAiB,GAAI,uFAO/B,sBAAsB,4CA6DxB,CAAC"}
|
|
@@ -6,8 +6,8 @@ import styled from 'styled-components';
|
|
|
6
6
|
import { CodeIcon, HttpIcon, McpIcon } from '@apify/ui-icons';
|
|
7
7
|
import { theme } from '../../../design_system/theme.js';
|
|
8
8
|
import { useSharedUiDependencies } from '../../../ui_dependency_provider.js';
|
|
9
|
-
import { Box } from '../../box
|
|
10
|
-
import { Link } from '../../link
|
|
9
|
+
import { Box } from '../../box';
|
|
10
|
+
import { Link } from '../../link';
|
|
11
11
|
import { HeadingShared } from '../../text/heading_shared.js';
|
|
12
12
|
import { CodeBlock } from './code_block.js';
|
|
13
13
|
export const CODE_BLOCK_TAB_CATALOG = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code_block_with_tabs.js","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block_with_tabs.tsx"],"names":[],"mappings":";;AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,CAAC,MAAM,QAAQ,CAAC;AAEvB,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAsB,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAElF,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,GAAG,EAAiD,MAAM,
|
|
1
|
+
{"version":3,"file":"code_block_with_tabs.js","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block_with_tabs.tsx"],"names":[],"mappings":";;AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,CAAC,MAAM,QAAQ,CAAC;AAEvB,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAE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,KAAC,IAAI,IAAC,IAAI,EAAC,IAAI,GAAG,CACrB,CAAC,CAAC,CAAC,CACA,cACI,GAAG,EAAE,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,IAAI,GAAG,CAAC,EACzE,GAAG,EAAE,KAAK,GACZ,CACL,EACD,KAAC,aAAa,IAAC,IAAI,EAAC,QAAQ,EAAC,EAAE,EAAC,GAAG,YAC9B,KAAK,GACM,EAChB,cAAK,IAAI,EAAC,UAAU,GAAG,IACxB,CACN,CAAC;wBAEF,sDAAsD;wBACtD,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC;4BACT,OAAO,CACH,eAAC,IAAI,OAAK,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,IAC1C,QAAQ,CACN,CACV,CAAC;wBACN,CAAC;wBAED,OAAO,CACH,2BAAS,WAAW,EAAE,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAC3C,QAAQ,CACP,CACT,CAAC;oBACN,CAAC,CAAC,EAEF,cAAK,IAAI,EAAC,UAAU,GAAG,IACrB,EACN,KAAC,SAAS,IACN,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAChD,OAAO,EAAE,UAAU,EAAE,OAAO,IAAI,EAAE,EAClC,QAAQ,EAAE,UAAU,CAAC,gBAAgB,IAAI,sBAAsB,CAAC,UAAU,EAAE,GAAG,CAAC,EAAE,QAAQ,EAC1F,SAAS,EAAE,+BAA+B,CAAC,OAAO,EAClD,cAAc,WACV,cAAc,GACpB,IACqB,CAC9B,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { RegularBoxProps } from '../../box
|
|
3
|
-
import type { SharedTextSize } from '../../text/text_shared
|
|
2
|
+
import type { RegularBoxProps } from '../../box';
|
|
3
|
+
import type { SharedTextSize } from '../../text/text_shared';
|
|
4
4
|
export declare const inlineCodeStyles: import("styled-components").RuleSet<object>;
|
|
5
5
|
export type InlineCodeProps = RegularBoxProps & {
|
|
6
6
|
children: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline_code.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/inline_code/inline_code.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"inline_code.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/inline_code/inline_code.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,eAAO,MAAM,gBAAgB,6CAM5B,CAAC;AAwBF,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG;IAC5C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAOhD,CAAC"}
|
|
@@ -3,7 +3,7 @@ import styled, { css } from 'styled-components';
|
|
|
3
3
|
import { CheckIcon, CopyIcon } from '@apify/ui-icons';
|
|
4
4
|
import { theme } from '../../../design_system/theme.js';
|
|
5
5
|
import { useCopyToClipboard } from '../../../utils/copy_to_clipboard.js';
|
|
6
|
-
import { Text } from '../../text
|
|
6
|
+
import { Text } from '../../text';
|
|
7
7
|
// TODO: We should not need to export these once we consolidate Markdown
|
|
8
8
|
export const inlineCodeStyles = css `
|
|
9
9
|
width: fit-content;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline_code.js","sourceRoot":"","sources":["../../../../../src/components/code/inline_code/inline_code.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"inline_code.js","sourceRoot":"","sources":["../../../../../src/components/code/inline_code/inline_code.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,wEAAwE;AACxE,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;eAEpB,KAAK,CAAC,KAAK,CAAC,MAAM;wBACT,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe;qBACtC,KAAK,CAAC,MAAM,CAAC,OAAO;wBACjB,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM;CACjD,CAAC;AAEF,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;mBAIjB,KAAK,CAAC,KAAK,CAAC,MAAM;CACpC,CAAC;AAEF,MAAM,UAAU,GAA+B,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACxD,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAC3D,OAAO,CACH,KAAC,iBAAiB,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,KAAK,EAAC,mBAAmB,YACjG,QAAQ,CAAC,CAAC,CAAC,KAAC,SAAS,IAAC,IAAI,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,KAAC,QAAQ,IAAC,IAAI,EAAC,IAAI,GAAG,GAC5C,CACvB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAA;;UAEjB,gBAAgB;;CAEzB,CAAC;AAQF,sCAAsC;AACtC,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACnG,KAAC,OAAO,OAAK,KAAK,YACd,MAAC,IAAI,IAAC,IAAI,EAAC,MAAM,EAAC,EAAE,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,aACjC,QAAQ,EACR,cAAc,IAAI,KAAC,UAAU,IAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAI,IAChE,GACD,CACb,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HttpMethod } from '@apify-packages/types';
|
|
2
|
-
import type { BoxProps } from '../../box
|
|
3
|
-
import type { SharedTextSize } from '../../text/text_shared
|
|
2
|
+
import type { BoxProps } from '../../box';
|
|
3
|
+
import type { SharedTextSize } from '../../text/text_shared';
|
|
4
4
|
export declare const oneLineCodeClassNames: {
|
|
5
5
|
gradientWrapper: string;
|
|
6
6
|
scrollableWrapper: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one_line_code.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/one_line_code/one_line_code.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAA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B,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,SAAS,EACT,iBAAyB,EACzB,MAAM,EACN,QAAQ,EACR,cAAc,EACd,cAAc,EACd,GAAG,IAAI,EACV,EAAE,gBAAgB,2CAuElB"}
|
|
@@ -3,7 +3,7 @@ import { useMemo, useState } from 'react';
|
|
|
3
3
|
import styled, { css } from 'styled-components';
|
|
4
4
|
import { EyeIcon, EyeOffIcon } from '@apify/ui-icons';
|
|
5
5
|
import { theme } from '../../../design_system/theme.js';
|
|
6
|
-
import { Text } from '../../text
|
|
6
|
+
import { Text } from '../../text';
|
|
7
7
|
import { ActionButton, CopyButton } from '../action_button.js';
|
|
8
8
|
import { SyntaxHighlighterBaseStylesWrapper } from '../code_block/code_block.styled.js';
|
|
9
9
|
import { getBashLinePrefixes } from '../code_block/utils.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one_line_code.js","sourceRoot":"","sources":["../../../../../src/components/code/one_line_code/one_line_code.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAItD,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAExD,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"one_line_code.js","sourceRoot":"","sources":["../../../../../src/components/code/one_line_code/one_line_code.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAIt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C,CAAC,CAAC,KAAC,UAAU,IAAC,IAAI,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,IAAI,EAAC,IAAI,GAAG,GACnD,CAClB,EACA,CAAC,cAAc,IAAI,CAChB,KAAC,UAAU,IACP,IAAI,EAAE,cAAc,EACpB,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAC5C,YAAY,EAAE,cAAc,EAAE,IAAI,EAAE,YAAY,GAClD,CACL,EACA,CAAC,CAAC,mBAAmB,IAAI,CACtB,KAAC,YAAY,IACT,OAAO,EAAE,mBAAmB,EAC5B,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,EAC9C,YAAY,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,YAEjD,iBAAiB,GACP,CAClB,IACC,IACW,CACxB,CAAC;AACN,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { HighlightProps } from 'prism-react-renderer';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
import type { SharedTextSize } from '../text
|
|
4
|
-
export declare const CodeHighlighterLinePrefix: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("styled-components/dist/types.js").Substitute<import("styled-components/dist/types.js").Substitute<(import("../
|
|
5
|
-
export declare const CodeHighlighterLineBashPrefix: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("../text/text_shared.js").TransientSharedTextProps & import("../
|
|
3
|
+
import type { SharedTextSize } from '../text';
|
|
4
|
+
export declare const CodeHighlighterLinePrefix: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("styled-components/dist/types.js").Substitute<import("styled-components/dist/types.js").Substitute<(import("../text").SharedTextProps & import("react").RefAttributes<HTMLElement | undefined>) & import("styled-components/dist/types.js").BaseObject, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>, import("styled-components/dist/types.js").BaseObject>, import("styled-components/dist/types.js").BaseObject>> & string;
|
|
5
|
+
export declare const CodeHighlighterLineBashPrefix: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("../text/text_shared.js").TransientSharedTextProps & import("../text").TransientTextBaseProps & import("../index.js").MarginSpacingProps & import("../index.js").PaddingSpacingProps & {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: React.CSSProperties;
|
|
@@ -11,7 +11,7 @@ export declare const CodeHighlighterLineBashPrefix: import("styled-components/di
|
|
|
11
11
|
title?: string;
|
|
12
12
|
} & {
|
|
13
13
|
as?: React.ElementType;
|
|
14
|
-
} & import("react").RefAttributes<HTMLElement | undefined>, keyof import("react").ClassAttributes<HTMLSpanElement> | keyof import("react").HTMLAttributes<HTMLSpanElement>> & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, never>, never> | import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("../text/text_shared.js").TransientSharedTextProps & import("../
|
|
14
|
+
} & import("react").RefAttributes<HTMLElement | undefined>, keyof import("react").ClassAttributes<HTMLSpanElement> | keyof import("react").HTMLAttributes<HTMLSpanElement>> & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, never>, never> | import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("../text/text_shared.js").TransientSharedTextProps & import("../text").TransientTextBaseProps & import("../index.js").MarginSpacingProps & import("../index.js").PaddingSpacingProps & {
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
className?: string;
|
|
17
17
|
style?: React.CSSProperties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prism_highlighter.d.ts","sourceRoot":"","sources":["../../../../src/components/code/prism_highlighter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"prism_highlighter.d.ts","sourceRoot":"","sources":["../../../../src/components/code/prism_highlighter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA0J9C,eAAO,MAAM,yBAAyB,wlBAQrC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;iBAAoD,OAAO;YAEpG,CAAC;AAWF,eAAO,MAAM,sBAAsB;WARxB,cAAc;mBACN,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;qBACvB,MAAM,EAAE;eACd,MAAM;gBACL,MAAM;kBACJ,OAAO;kDAgDxB,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { forwardRef, useMemo, useRef } from 'react';
|
|
|
6
6
|
import styled, { css } from 'styled-components';
|
|
7
7
|
import { theme } from '../../design_system/theme.js';
|
|
8
8
|
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
9
|
-
import { Text } from '../text
|
|
9
|
+
import { Text } from '../text';
|
|
10
10
|
import { oneLightTheme } from './one_light_theme.js';
|
|
11
11
|
(typeof global !== 'undefined' ? global : window).Prism = Prism;
|
|
12
12
|
const HIGHLIGHT_BACKGROUND_COLOR = 'rgba(22, 114, 235, 0.05)';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prism_highlighter.js","sourceRoot":"","sources":["../../../../src/components/code/prism_highlighter.tsx"],"names":[],"mappings":";AAAA,O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CAAC,IAAjC,GAAG,CAAkC,CACnD,CAAC,KATG,CAAC,CAUJ,CACT,CAAC,GACC,GACE,CAChB,GACO,CACf,CAAC;AACN,CAAC,CACJ,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { useState } from 'react';
|
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
6
|
import { ChevronDownIcon } from '@apify/ui-icons';
|
|
7
7
|
import { theme } from '../../design_system/theme.js';
|
|
8
|
-
import { Box } from '../box
|
|
8
|
+
import { Box } from '../box';
|
|
9
9
|
export const collapsibleCardClassNames = {
|
|
10
10
|
TOP_SECTION: 'CollapsibleCard-TopSection',
|
|
11
11
|
COLLAPSIBLE_CONTENT_WRAPPER: 'CollapsibleCard-Content',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible_card.js","sourceRoot":"","sources":["../../../../src/components/collapsible_card/collapsible_card.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,WAAW,MAAM,6BAA6B,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAkB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"collapsible_card.js","sourceRoot":"","sources":["../../../../src/components/collapsible_card/collapsible_card.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,WAAW,MAAM,6BAA6B,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAkB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MA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AAC;IAClB,IAAI,cAAc;QAAE,aAAa,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;SAC1E,IAAI,mBAAmB;QAAE,aAAa,GAAG,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC,CAAC;IAErF,OAAO,CACH,MAAC,iBAAiB,IACd,WAAW,EAAE,OAAO,IAAI,SAAS,sBACf,eAAe,gBACrB,SAAS,KACjB,IAAI,aAEP,UAAU,IAAI,CACX,KAAC,gBAAgB,IACb,SAAS,EAAE,yBAAyB,CAAC,WAAW,eACtC,8BAA8B,YAEvC,UAAU,GACI,CACtB,EACD,MAAC,YAAY,wBACS,eAAe,mBAClB,kBAAkB,IAAI,CAAC,MAAM,IAAI,CAAC,UAAU,0BACrC,mBAAmB,EACzC,OAAO,EAAE,aAAa,aAErB,CAAC,SAAS,IAAI,CACX,KAAC,eAAe,IACZ,IAAI,EAAC,IAAI,EACT,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,UAAU,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,gBAAgB,CAAC,GACxF,CACL,EACA,MAAM,IACI,EACf,KAAC,WAAW,CAAC,IAAI,IAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,YACxD,KAAC,kBAAkB,kBACH,SAAS,EACrB,SAAS,EAAE,yBAAyB,CAAC,2BAA2B,YAEhE,KAAC,iBAAiB,IAAC,SAAS,EAAE,yBAAyB,CAAC,OAAO,eAAY,cAAc,YACpF,QAAQ,GACO,GACH,GACN,IACH,CACvB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color_wheel_gradient.d.ts","sourceRoot":"","sources":["../../../../src/components/color_wheel_gradient/color_wheel_gradient.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,4PAsB9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color_wheel_gradient.js","sourceRoot":"","sources":["../../../../src/components/color_wheel_gradient/color_wheel_gradient.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAUvC,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAyB;MAC/D,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,EAAE,EAAE,UAAU,GAAG,CAAC,EAAE,UAAU,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC;;;aAGtE,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM;cAC9B,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM;;2BAElB,UAAU,OAAO,UAAU,cAAc,QAAQ;;;;;;;;;;;;;mBAazD,QAAQ;CAC1B;CACA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/color_wheel_gradient/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/color_wheel_gradient/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Placement } from '@floating-ui/react';
|
|
2
2
|
import type React from 'react';
|
|
3
|
-
import { type BoxProps } from '../box
|
|
3
|
+
import { type BoxProps } from '../box';
|
|
4
4
|
export declare const menuClassNames: {
|
|
5
5
|
WRAPPER: string;
|
|
6
6
|
BASE: string;
|
|
@@ -15,12 +15,16 @@ export interface MenuOption {
|
|
|
15
15
|
export interface MenuProps<T = MenuOption> {
|
|
16
16
|
ariaLabel?: string;
|
|
17
17
|
options: T[];
|
|
18
|
-
value?: string;
|
|
18
|
+
value?: string | string[];
|
|
19
19
|
onSelect: (newValue: string, selectedBy: SelectActionType) => void;
|
|
20
20
|
onMenuOpen?: (isOpen: boolean) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Overrides default label, which is selected value || defaultLabel
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
21
25
|
defaultLabel?: React.ReactNode;
|
|
22
26
|
closeOnSelect?: boolean;
|
|
23
|
-
renderOption?: (option: T) => React.ReactNode;
|
|
27
|
+
renderOption?: (option: T, isSelected: boolean) => React.ReactNode;
|
|
24
28
|
placement?: Placement;
|
|
25
29
|
components?: {
|
|
26
30
|
MenuBase?: React.ElementType;
|
|
@@ -32,6 +36,6 @@ export interface MenuProps<T = MenuOption> {
|
|
|
32
36
|
* This example is a Select taken from https://floating-ui.com/docs/react-examples
|
|
33
37
|
* It tries to mimic API of react-select as closely as possible
|
|
34
38
|
*/
|
|
35
|
-
export declare const Menu: <T extends MenuOption>({ ariaLabel, options, value, onSelect, onMenuOpen, closeOnSelect, defaultLabel, components, renderOption, className, placement, ...rest }: MenuProps<T> & BoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const Menu: <T extends MenuOption>({ ariaLabel, options, value, onSelect, onMenuOpen, closeOnSelect, label, defaultLabel, components, renderOption, className, placement, ...rest }: MenuProps<T> & BoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
40
|
export {};
|
|
37
41
|
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,SAAS,EAOjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,SAAS,EAOjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAK5C,eAAO,MAAM,cAAc;;;;;CAK1B,CAAC;AAEF,KAAK,gBAAgB,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AAI7D,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,UAAU;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnE,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC;IACnE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;QAC7B,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;QACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;KAChC,CAAC;CACL;AAID;;;GAGG;AACH,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,UAAU,EAAE,kJAcxC,SAAS,CAAC,CAAC,CAAC,GAAG,QAAQ,4CAqIzB,CAAC"}
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { FloatingFocusManager, FloatingPortal, useClick, useDismiss, useInteractions, useListNavigation, useRole, useTypeahead, } from '@floating-ui/react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
5
|
-
import { Box } from '../box
|
|
6
|
-
import { Text } from '../text
|
|
5
|
+
import { Box } from '../box';
|
|
6
|
+
import { Text } from '../text';
|
|
7
7
|
import { useFloatingMenu } from './menu_common.js';
|
|
8
8
|
import { DropdownMenuBaseComponent, ListMenuComponent, ListMenuItemComponent } from './menu_components.js';
|
|
9
9
|
export const menuClassNames = {
|
|
@@ -12,12 +12,12 @@ export const menuClassNames = {
|
|
|
12
12
|
LIST: 'menu-list',
|
|
13
13
|
ITEM: 'menu-item',
|
|
14
14
|
};
|
|
15
|
-
const defaultRenderOption = ({ label }) => _jsx(Text, { as: "span", children: label });
|
|
15
|
+
const defaultRenderOption = ({ label }, _isSelected) => _jsx(Text, { as: "span", children: label });
|
|
16
16
|
/**
|
|
17
17
|
* This example is a Select taken from https://floating-ui.com/docs/react-examples
|
|
18
18
|
* It tries to mimic API of react-select as closely as possible
|
|
19
19
|
*/
|
|
20
|
-
export const Menu = ({ ariaLabel, options, value, onSelect, onMenuOpen, closeOnSelect = true, defaultLabel, components, renderOption, className, placement, ...rest }) => {
|
|
20
|
+
export const Menu = ({ ariaLabel, options, value, onSelect, onMenuOpen, closeOnSelect = true, label, defaultLabel, components, renderOption, className, placement, ...rest }) => {
|
|
21
21
|
const [isOpen, setIsOpenState] = useState(false);
|
|
22
22
|
const setIsOpen = useCallback((newIsOpen) => {
|
|
23
23
|
setIsOpenState(newIsOpen);
|
|
@@ -31,9 +31,13 @@ export const Menu = ({ ariaLabel, options, value, onSelect, onMenuOpen, closeOnS
|
|
|
31
31
|
placement,
|
|
32
32
|
});
|
|
33
33
|
const selectedIndex = useMemo(() => {
|
|
34
|
+
if (Array.isArray(value))
|
|
35
|
+
return null;
|
|
34
36
|
const foundIndex = options.findIndex((option) => option.value === value);
|
|
35
37
|
return foundIndex < 0 ? null : foundIndex;
|
|
36
38
|
}, [options, value]);
|
|
39
|
+
const selectedValuesSet = useMemo(() => new Set(Array.isArray(value) ? value : []), [value]);
|
|
40
|
+
const isItemSelected = (index) => Array.isArray(value) ? selectedValuesSet.has(options[index].value) : index === selectedIndex;
|
|
37
41
|
const [activeIndex, setActiveIndex] = useState(null);
|
|
38
42
|
const handleSelect = (newIndex, selectedBy) => {
|
|
39
43
|
onSelect(options[newIndex].value, selectedBy);
|
|
@@ -73,20 +77,23 @@ export const Menu = ({ ariaLabel, options, value, onSelect, onMenuOpen, closeOnS
|
|
|
73
77
|
const MenuComponent = components?.Menu || ListMenuComponent;
|
|
74
78
|
const MenuItemComponent = components?.MenuItem || ListMenuItemComponent;
|
|
75
79
|
const effectiveRenderOption = renderOption || defaultRenderOption;
|
|
76
|
-
return (_jsxs(Box, { className: clsx(className, menuClassNames.WRAPPER), ...rest, children: [_jsx(MenuBaseComponent, { "aria-label": ariaLabel, "aria-labelledby": ariaLabel ? undefined : 'select-label', "aria-autocomplete": "none", ref: refs.setReference, ...getReferenceProps(), className: menuClassNames.BASE, tabindex: "0", children: selectedIndex !== null ? options[selectedIndex].label : defaultLabel }), isOpen && (_jsx(FloatingPortal, { children: _jsx(FloatingFocusManager, { context: context, modal: false, children: _jsx(MenuComponent, { ref: refs.setFloating, style: floatingStyles, ...getFloatingProps(), className: menuClassNames.LIST, children: options.map((option, i) =>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
80
|
+
return (_jsxs(Box, { className: clsx(className, menuClassNames.WRAPPER), ...rest, children: [_jsx(MenuBaseComponent, { "aria-label": ariaLabel, "aria-labelledby": ariaLabel ? undefined : 'select-label', "aria-autocomplete": "none", ref: refs.setReference, ...getReferenceProps(), className: menuClassNames.BASE, tabindex: "0", children: label ?? (selectedIndex !== null ? options[selectedIndex].label : defaultLabel) }), isOpen && (_jsx(FloatingPortal, { children: _jsx(FloatingFocusManager, { context: context, modal: false, children: _jsx(MenuComponent, { ref: refs.setFloating, style: floatingStyles, ...getFloatingProps(), className: menuClassNames.LIST, children: options.map((option, i) => {
|
|
81
|
+
const isSelected = isItemSelected(i);
|
|
82
|
+
return (_jsx(MenuItemComponent, { "$isSelected": isSelected, "$isActive": i === activeIndex, ref: (node) => {
|
|
83
|
+
listRef.current[i] = node;
|
|
84
|
+
}, role: "option", tabIndex: i === activeIndex ? 0 : -1, className: menuClassNames.ITEM, "aria-selected": isSelected && i === activeIndex, ...getItemProps({
|
|
85
|
+
onClick: () => handleSelect(i, 'click'), // Handles mouse click
|
|
86
|
+
onKeyDown: (event) => {
|
|
87
|
+
if (event.key === 'Enter') {
|
|
88
|
+
event.preventDefault();
|
|
89
|
+
handleSelect(i, 'enter'); // Handles enter press
|
|
90
|
+
}
|
|
91
|
+
if (event.key === ' ' && !isTypingRef.current) {
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
handleSelect(i, 'space');
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
}), children: effectiveRenderOption(option, isSelected) }, option.value));
|
|
97
|
+
}) }) }) }))] }));
|
|
91
98
|
};
|
|
92
99
|
//# sourceMappingURL=menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../../../src/components/floating/menu.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,oBAAoB,EACpB,cAAc,EAEd,QAAQ,EACR,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,OAAO,EACP,YAAY,GACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,GAAG,EAAiB,MAAM,
|
|
1
|
+
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../../../src/components/floating/menu.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,oBAAoB,EACpB,cAAc,EAEd,QAAQ,EACR,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,OAAO,EACP,YAAY,GACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,GAAG,EAAiB,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE3G,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,WAAW;CACpB,CAAC;AAgCF,MAAM,mBAAmB,GAAG,CAAC,EAAE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