@apify/ui-library 1.138.0 → 1.138.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/src/components/action_link.d.ts.map +1 -1
- package/dist/src/components/action_link.js +3 -3
- package/dist/src/components/action_link.js.map +1 -1
- package/dist/src/components/actor_template_card.d.ts.map +1 -1
- package/dist/src/components/actor_template_card.js +3 -3
- package/dist/src/components/actor_template_card.js.map +1 -1
- package/dist/src/components/avatar/actor_avatar.d.ts.map +1 -1
- package/dist/src/components/avatar/actor_avatar.js +3 -3
- package/dist/src/components/avatar/actor_avatar.js.map +1 -1
- package/dist/src/components/avatar/boring_avatar.d.ts.map +1 -1
- package/dist/src/components/avatar/boring_avatar.js +8 -7
- package/dist/src/components/avatar/boring_avatar.js.map +1 -1
- package/dist/src/components/avatar/user_avatar.d.ts.map +1 -1
- package/dist/src/components/avatar/user_avatar.js +1 -1
- package/dist/src/components/avatar/user_avatar.js.map +1 -1
- package/dist/src/components/badge.d.ts.map +1 -1
- package/dist/src/components/badge.js +10 -3
- package/dist/src/components/badge.js.map +1 -1
- package/dist/src/components/banner.d.ts.map +1 -1
- package/dist/src/components/banner.js +4 -3
- package/dist/src/components/banner.js.map +1 -1
- package/dist/src/components/blog_article.d.ts.map +1 -1
- package/dist/src/components/blog_article.js +2 -3
- package/dist/src/components/blog_article.js.map +1 -1
- package/dist/src/components/box.d.ts.map +1 -1
- package/dist/src/components/box.js +32 -24
- package/dist/src/components/box.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button.d.ts.map +1 -1
- package/dist/src/components/button.js +12 -9
- package/dist/src/components/button.js.map +1 -1
- package/dist/src/components/card_container.d.ts.map +1 -1
- package/dist/src/components/card_container.js +5 -3
- package/dist/src/components/card_container.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/src/components/checkbox/checkbox.js +1 -1
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.style.d.ts.map +1 -1
- package/dist/src/components/checkbox/checkbox.style.js +7 -4
- package/dist/src/components/checkbox/checkbox.style.js.map +1 -1
- package/dist/src/components/chip.d.ts.map +1 -1
- package/dist/src/components/chip.js +1 -1
- package/dist/src/components/chip.js.map +1 -1
- package/dist/src/components/code/action_button.d.ts.map +1 -1
- package/dist/src/components/code/action_button.js +5 -5
- package/dist/src/components/code/action_button.js.map +1 -1
- package/dist/src/components/code/code_block/code_block.d.ts.map +1 -1
- package/dist/src/components/code/code_block/code_block.js +19 -8
- 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.map +1 -1
- package/dist/src/components/code/code_block/code_block.styled.js +18 -15
- 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.map +1 -1
- package/dist/src/components/code/code_block/code_block_with_tabs.js +10 -8
- package/dist/src/components/code/code_block/code_block_with_tabs.js.map +1 -1
- package/dist/src/components/code/code_block/utils.d.ts.map +1 -1
- package/dist/src/components/code/code_block/utils.js.map +1 -1
- package/dist/src/components/code/inline_code/inline_code.d.ts.map +1 -1
- package/dist/src/components/code/inline_code/inline_code.js +2 -2
- package/dist/src/components/code/inline_code/inline_code.js.map +1 -1
- package/dist/src/components/code/one_light_theme.d.ts.map +1 -1
- package/dist/src/components/code/one_light_theme.js +2 -17
- package/dist/src/components/code/one_light_theme.js.map +1 -1
- 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 +11 -14
- package/dist/src/components/code/one_line_code/one_line_code.js.map +1 -1
- package/dist/src/components/code/prism_highlighter.d.ts.map +1 -1
- package/dist/src/components/code/prism_highlighter.js +35 -27
- package/dist/src/components/code/prism_highlighter.js.map +1 -1
- package/dist/src/components/code/prism_python.js.map +1 -1
- package/dist/src/components/collapsible_card/collapsible_card.d.ts.map +1 -1
- package/dist/src/components/collapsible_card/collapsible_card.js +7 -6
- package/dist/src/components/collapsible_card/collapsible_card.js.map +1 -1
- package/dist/src/components/color_wheel_gradient.d.ts.map +1 -1
- package/dist/src/components/color_wheel_gradient.js +4 -2
- package/dist/src/components/color_wheel_gradient.js.map +1 -1
- package/dist/src/components/floating/floating_component_base.d.ts +1 -1
- package/dist/src/components/floating/floating_component_base.d.ts.map +1 -1
- package/dist/src/components/floating/floating_component_base.js +3 -5
- package/dist/src/components/floating/floating_component_base.js.map +1 -1
- package/dist/src/components/floating/menu.d.ts.map +1 -1
- package/dist/src/components/floating/menu.js +11 -5
- package/dist/src/components/floating/menu.js.map +1 -1
- package/dist/src/components/floating/menu_common.d.ts +4 -4
- package/dist/src/components/floating/menu_common.d.ts.map +1 -1
- package/dist/src/components/floating/menu_common.js +1 -1
- package/dist/src/components/floating/menu_common.js.map +1 -1
- package/dist/src/components/floating/menu_components.d.ts.map +1 -1
- package/dist/src/components/floating/menu_components.js +9 -7
- package/dist/src/components/floating/menu_components.js.map +1 -1
- package/dist/src/components/floating/tooltip.d.ts +2 -2
- package/dist/src/components/floating/tooltip.d.ts.map +1 -1
- package/dist/src/components/floating/tooltip.js +10 -9
- package/dist/src/components/floating/tooltip.js.map +1 -1
- package/dist/src/components/floating/tooltip_content.d.ts.map +1 -1
- package/dist/src/components/floating/tooltip_content.js +3 -3
- package/dist/src/components/floating/tooltip_content.js.map +1 -1
- package/dist/src/components/icon_button.d.ts.map +1 -1
- package/dist/src/components/icon_button.js +10 -8
- package/dist/src/components/icon_button.js.map +1 -1
- package/dist/src/components/image.d.ts.map +1 -1
- package/dist/src/components/image.js +1 -1
- package/dist/src/components/image.js.map +1 -1
- package/dist/src/components/link.d.ts.map +1 -1
- package/dist/src/components/link.js +5 -5
- package/dist/src/components/link.js.map +1 -1
- package/dist/src/components/message.d.ts.map +1 -1
- package/dist/src/components/message.js +21 -21
- package/dist/src/components/message.js.map +1 -1
- package/dist/src/components/rating.d.ts.map +1 -1
- package/dist/src/components/rating.js +5 -6
- package/dist/src/components/rating.js.map +1 -1
- package/dist/src/components/readme_renderer/pythonize_value.d.ts.map +1 -1
- package/dist/src/components/readme_renderer/pythonize_value.js +10 -6
- package/dist/src/components/readme_renderer/pythonize_value.js.map +1 -1
- package/dist/src/components/readme_renderer/table_of_contents.d.ts.map +1 -1
- package/dist/src/components/readme_renderer/table_of_contents.js +16 -15
- package/dist/src/components/readme_renderer/table_of_contents.js.map +1 -1
- package/dist/src/components/readme_renderer/utils.d.ts.map +1 -1
- package/dist/src/components/readme_renderer/utils.js +6 -6
- package/dist/src/components/readme_renderer/utils.js.map +1 -1
- package/dist/src/components/select/select.d.ts.map +1 -1
- package/dist/src/components/select/select.js +14 -13
- package/dist/src/components/select/select.js.map +1 -1
- package/dist/src/components/shortcut.d.ts +1 -1
- package/dist/src/components/shortcut.d.ts.map +1 -1
- package/dist/src/components/shortcut.js +2 -2
- package/dist/src/components/shortcut.js.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown.d.ts.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown.js +32 -35
- package/dist/src/components/simple_markdown/simple_markdown.js.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown_components.js +26 -12
- package/dist/src/components/simple_markdown/simple_markdown_components.js.map +1 -1
- package/dist/src/components/spinner.d.ts.map +1 -1
- package/dist/src/components/spinner.js +3 -1
- package/dist/src/components/spinner.js.map +1 -1
- package/dist/src/components/store/store_actor_header.d.ts.map +1 -1
- package/dist/src/components/store/store_actor_header.js +1 -1
- package/dist/src/components/store/store_actor_header.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts.map +1 -1
- package/dist/src/components/switch/switch.js +1 -1
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/switch/switch.style.d.ts.map +1 -1
- package/dist/src/components/switch/switch.style.js +5 -3
- package/dist/src/components/switch/switch.style.js.map +1 -1
- package/dist/src/components/table/table.styled.js +3 -3
- package/dist/src/components/table/table.styled.js.map +1 -1
- package/dist/src/components/table/table_error_row.d.ts.map +1 -1
- package/dist/src/components/table/table_error_row.js +1 -1
- package/dist/src/components/table/table_error_row.js.map +1 -1
- package/dist/src/components/table/table_row.d.ts.map +1 -1
- package/dist/src/components/table/table_row.js +1 -1
- package/dist/src/components/table/table_row.js.map +1 -1
- package/dist/src/components/table/table_wrapper.d.ts.map +1 -1
- package/dist/src/components/table/table_wrapper.js +3 -3
- package/dist/src/components/table/table_wrapper.js.map +1 -1
- package/dist/src/components/tabs/tab.d.ts.map +1 -1
- package/dist/src/components/tabs/tab.js +7 -5
- package/dist/src/components/tabs/tab.js.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts.map +1 -1
- package/dist/src/components/tabs/tabs.js +3 -3
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag.d.ts +1 -1
- package/dist/src/components/tag.d.ts.map +1 -1
- package/dist/src/components/tag.js +1 -1
- package/dist/src/components/tag.js.map +1 -1
- package/dist/src/components/text/heading_content.d.ts.map +1 -1
- package/dist/src/components/text/heading_content.js +1 -1
- package/dist/src/components/text/heading_content.js.map +1 -1
- package/dist/src/components/text/heading_marketing.d.ts.map +1 -1
- package/dist/src/components/text/heading_marketing.js +1 -1
- package/dist/src/components/text/heading_marketing.js.map +1 -1
- package/dist/src/components/text/heading_shared.d.ts.map +1 -1
- package/dist/src/components/text/heading_shared.js +1 -1
- package/dist/src/components/text/heading_shared.js.map +1 -1
- package/dist/src/components/text/index.d.ts +1 -1
- package/dist/src/components/text/index.d.ts.map +1 -1
- package/dist/src/components/text/text_base.d.ts.map +1 -1
- package/dist/src/components/text/text_base.js +16 -12
- package/dist/src/components/text/text_base.js.map +1 -1
- package/dist/src/components/text/text_content.d.ts.map +1 -1
- package/dist/src/components/text/text_content.js +1 -1
- package/dist/src/components/text/text_content.js.map +1 -1
- package/dist/src/components/text/text_marketing.d.ts.map +1 -1
- package/dist/src/components/text/text_marketing.js +1 -1
- package/dist/src/components/text/text_marketing.js.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/text/text_shared.js +1 -1
- package/dist/src/components/text/text_shared.js.map +1 -1
- package/dist/src/components/tile/horizontal_tile.d.ts.map +1 -1
- package/dist/src/components/tile/horizontal_tile.js +3 -2
- package/dist/src/components/tile/horizontal_tile.js.map +1 -1
- package/dist/src/components/tile/shared.d.ts +1 -1
- package/dist/src/components/tile/shared.d.ts.map +1 -1
- package/dist/src/components/tile/vertical_tile.d.ts.map +1 -1
- package/dist/src/components/tile/vertical_tile.js +3 -2
- package/dist/src/components/tile/vertical_tile.js.map +1 -1
- package/dist/src/components/to_consolidate/card.d.ts.map +1 -1
- package/dist/src/components/to_consolidate/card.js +20 -15
- package/dist/src/components/to_consolidate/card.js.map +1 -1
- package/dist/src/components/to_consolidate/markdown.d.ts.map +1 -1
- package/dist/src/components/to_consolidate/markdown.js +36 -20
- package/dist/src/components/to_consolidate/markdown.js.map +1 -1
- package/dist/src/components/to_consolidate/pagination.d.ts.map +1 -1
- package/dist/src/components/to_consolidate/pagination.js +6 -6
- package/dist/src/components/to_consolidate/pagination.js.map +1 -1
- package/dist/src/components/to_consolidate/tab_number_chip.d.ts.map +1 -1
- package/dist/src/components/to_consolidate/tab_number_chip.js +1 -1
- package/dist/src/components/to_consolidate/tab_number_chip.js.map +1 -1
- package/dist/src/design_system/theme.d.ts.map +1 -1
- package/dist/src/design_system/theme.js +1 -1
- package/dist/src/design_system/theme.js.map +1 -1
- package/dist/src/design_system/typography_theme.d.ts.map +1 -1
- package/dist/src/design_system/typography_theme.js.map +1 -1
- package/dist/src/ui_dependency_provider.d.ts.map +1 -1
- package/dist/src/ui_dependency_provider.js +2 -2
- package/dist/src/ui_dependency_provider.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -6
- package/src/codemods/generate_typograpy_tokens_files.mjs +23 -28
- package/src/components/action_link.tsx +13 -23
- package/src/components/actor_template_card.stories.tsx +20 -14
- package/src/components/actor_template_card.tsx +4 -21
- package/src/components/avatar/actor_avatar.tsx +3 -4
- package/src/components/avatar/boring_avatar.tsx +134 -167
- package/src/components/avatar/user_avatar.stories.tsx +1 -5
- package/src/components/avatar/user_avatar.tsx +6 -20
- package/src/components/badge.stories.jsx +26 -40
- package/src/components/badge.tsx +37 -26
- package/src/components/banner.stories.tsx +10 -28
- package/src/components/banner.tsx +11 -14
- package/src/components/blog_article.tsx +6 -4
- package/src/components/box.tsx +90 -89
- package/src/components/breadcrumb/breadcrumb.stories.tsx +2 -8
- package/src/components/breadcrumb/breadcrumb.tsx +7 -5
- package/src/components/button.stories.tsx +70 -66
- package/src/components/button.tsx +33 -39
- package/src/components/card_container.stories.tsx +28 -29
- package/src/components/card_container.tsx +15 -10
- package/src/components/checkbox/checkbox.stories.tsx +52 -17
- package/src/components/checkbox/checkbox.style.ts +7 -4
- package/src/components/checkbox/checkbox.tsx +6 -9
- package/src/components/chip.stories.tsx +15 -5
- package/src/components/chip.tsx +26 -16
- package/src/components/code/action_button.tsx +10 -12
- package/src/components/code/code_block/code_block.stories.jsx +7 -25
- package/src/components/code/code_block/code_block.styled.tsx +26 -19
- package/src/components/code/code_block/code_block.tsx +26 -24
- package/src/components/code/code_block/code_block_with_tabs.stories.tsx +12 -18
- package/src/components/code/code_block/code_block_with_tabs.tsx +30 -16
- package/src/components/code/code_block/utils.tsx +23 -15
- package/src/components/code/inline_code/inline_code.stories.tsx +18 -10
- package/src/components/code/inline_code/inline_code.tsx +16 -21
- package/src/components/code/one_light_theme.ts +2 -17
- package/src/components/code/one_line_code/one_line_code.stories.tsx +31 -19
- package/src/components/code/one_line_code/one_line_code.tsx +19 -30
- package/src/components/code/prism_highlighter.tsx +117 -109
- package/src/components/code/prism_python.ts +4 -2
- package/src/components/collapsible_card/collapsible_card.stories.tsx +2 -1
- package/src/components/collapsible_card/collapsible_card.tsx +30 -15
- package/src/components/color_wheel_gradient.tsx +9 -7
- package/src/components/floating/floating_component_base.tsx +16 -9
- package/src/components/floating/menu.tsx +37 -46
- package/src/components/floating/menu_common.tsx +24 -30
- package/src/components/floating/menu_components.tsx +24 -24
- package/src/components/floating/tooltip.stories.jsx +85 -68
- package/src/components/floating/tooltip.tsx +32 -39
- package/src/components/floating/tooltip_content.tsx +8 -16
- package/src/components/icon_button.stories.tsx +176 -188
- package/src/components/icon_button.tsx +72 -58
- package/src/components/image.tsx +5 -11
- package/src/components/link.stories.tsx +4 -2
- package/src/components/link.tsx +70 -70
- package/src/components/message.stories.jsx +35 -33
- package/src/components/message.tsx +45 -45
- package/src/components/rating.tsx +37 -44
- package/src/components/readme_renderer/pythonize_value.ts +19 -7
- package/src/components/readme_renderer/table_of_contents.stories.tsx +40 -15
- package/src/components/readme_renderer/table_of_contents.tsx +87 -85
- package/src/components/readme_renderer/utils.tsx +17 -13
- package/src/components/select/select.stories.tsx +19 -46
- package/src/components/select/select.tsx +103 -101
- package/src/components/shortcut.stories.jsx +23 -14
- package/src/components/shortcut.tsx +2 -13
- package/src/components/simple_markdown/simple_markdown.stories.tsx +5 -10
- package/src/components/simple_markdown/simple_markdown.tsx +152 -55
- package/src/components/simple_markdown/simple_markdown_components.tsx +49 -59
- package/src/components/spinner.stories.tsx +14 -8
- package/src/components/spinner.tsx +5 -3
- package/src/components/store/store_actor_header.stories.tsx +2 -11
- package/src/components/store/store_actor_header.tsx +20 -16
- package/src/components/switch/switch.stories.jsx +4 -12
- package/src/components/switch/switch.style.ts +5 -3
- package/src/components/switch/switch.tsx +3 -13
- package/src/components/table/table.stories.tsx +5 -2
- package/src/components/table/table.styled.ts +3 -3
- package/src/components/table/table_error_row.tsx +5 -1
- package/src/components/table/table_row.tsx +1 -5
- package/src/components/table/table_wrapper.tsx +12 -12
- package/src/components/tabs/tab.stories.tsx +1 -5
- package/src/components/tabs/tab.tsx +33 -13
- package/src/components/tabs/tabs.tsx +14 -18
- package/src/components/tag.stories.jsx +35 -45
- package/src/components/tag.tsx +18 -22
- package/src/components/text/heading_content.stories.tsx +13 -24
- package/src/components/text/heading_content.tsx +3 -7
- package/src/components/text/heading_marketing.stories.tsx +4 -3
- package/src/components/text/heading_marketing.tsx +12 -8
- package/src/components/text/heading_shared.stories.tsx +3 -2
- package/src/components/text/heading_shared.tsx +3 -7
- package/src/components/text/index.ts +1 -3
- package/src/components/text/text_base.tsx +29 -35
- package/src/components/text/text_content.stories.tsx +17 -13
- package/src/components/text/text_content.tsx +20 -23
- package/src/components/text/text_marketing.stories.tsx +4 -3
- package/src/components/text/text_marketing.tsx +20 -23
- package/src/components/text/text_shared.stories.tsx +4 -3
- package/src/components/text/text_shared.tsx +23 -27
- package/src/components/tile/horizontal_tile.stories.tsx +6 -2
- package/src/components/tile/horizontal_tile.tsx +5 -15
- package/src/components/tile/shared.ts +5 -5
- package/src/components/tile/vertical_tile.stories.tsx +10 -18
- package/src/components/tile/vertical_tile.tsx +4 -9
- package/src/components/to_consolidate/card.stories.tsx +3 -1
- package/src/components/to_consolidate/card.tsx +67 -58
- package/src/components/to_consolidate/markdown.tsx +76 -62
- package/src/components/to_consolidate/pagination.tsx +11 -15
- package/src/components/to_consolidate/tab_number_chip.tsx +5 -6
- package/src/design_system/colors/build_color_tokens.js +7 -15
- package/src/design_system/theme.ts +1 -8
- package/src/design_system/tokens/radiuses.stories.tsx +9 -1
- package/src/design_system/tokens/shadows.stories.tsx +3 -1
- package/src/design_system/typography_theme.ts +78 -39
- package/src/ui_dependency_provider.tsx +16 -23
|
@@ -49,9 +49,7 @@ export const Default: Story = {
|
|
|
49
49
|
children: (
|
|
50
50
|
<div>
|
|
51
51
|
<h2 style={{ margin: 0, marginBottom: '8px', color: 'white' }}>Welcome to Apify</h2>
|
|
52
|
-
<p style={{ margin: 0, color: 'rgba(255, 255, 255, 0.8)' }}>
|
|
53
|
-
Build reliable web scrapers. Fast.
|
|
54
|
-
</p>
|
|
52
|
+
<p style={{ margin: 0, color: 'rgba(255, 255, 255, 0.8)' }}>Build reliable web scrapers. Fast.</p>
|
|
55
53
|
</div>
|
|
56
54
|
),
|
|
57
55
|
},
|
|
@@ -65,9 +63,7 @@ export const WithGradientBackground: Story = {
|
|
|
65
63
|
useGradientBackground: true,
|
|
66
64
|
children: (
|
|
67
65
|
<div>
|
|
68
|
-
<h2 style={{ margin: 0, marginBottom: '8px', color: 'white' }}>
|
|
69
|
-
Gradient Background Banner
|
|
70
|
-
</h2>
|
|
66
|
+
<h2 style={{ margin: 0, marginBottom: '8px', color: 'white' }}>Gradient Background Banner</h2>
|
|
71
67
|
<p style={{ margin: 0, color: 'rgba(255, 255, 255, 0.8)' }}>
|
|
72
68
|
This banner uses the beautiful gradient background with colorful shapes.
|
|
73
69
|
</p>
|
|
@@ -102,9 +98,7 @@ export const WithCustomBackground: Story = {
|
|
|
102
98
|
useGradientBackground: false,
|
|
103
99
|
children: (
|
|
104
100
|
<div>
|
|
105
|
-
<h2 style={{ margin: 0, marginBottom: '8px', color: 'white' }}>
|
|
106
|
-
Custom Green Background
|
|
107
|
-
</h2>
|
|
101
|
+
<h2 style={{ margin: 0, marginBottom: '8px', color: 'white' }}>Custom Green Background</h2>
|
|
108
102
|
<p style={{ margin: 0, color: 'rgba(255, 255, 255, 0.9)' }}>
|
|
109
103
|
This banner has a custom green background color.
|
|
110
104
|
</p>
|
|
@@ -122,9 +116,7 @@ export const WithCustomBackgroundAndGradient: Story = {
|
|
|
122
116
|
useGradientBackground: true,
|
|
123
117
|
children: (
|
|
124
118
|
<div>
|
|
125
|
-
<h2 style={{ margin: 0, marginBottom: '8px', color: 'white' }}>
|
|
126
|
-
Blue Background with Gradient
|
|
127
|
-
</h2>
|
|
119
|
+
<h2 style={{ margin: 0, marginBottom: '8px', color: 'white' }}>Blue Background with Gradient</h2>
|
|
128
120
|
<p style={{ margin: 0, color: 'rgba(255, 255, 255, 0.9)' }}>
|
|
129
121
|
Custom blue background with gradient overlay effects.
|
|
130
122
|
</p>
|
|
@@ -141,9 +133,7 @@ export const WithCustomWidth: Story = {
|
|
|
141
133
|
width: '600px',
|
|
142
134
|
children: (
|
|
143
135
|
<div>
|
|
144
|
-
<h2 style={{ margin: 0, marginBottom: '8px', color: 'white' }}>
|
|
145
|
-
Custom Width Banner
|
|
146
|
-
</h2>
|
|
136
|
+
<h2 style={{ margin: 0, marginBottom: '8px', color: 'white' }}>Custom Width Banner</h2>
|
|
147
137
|
<p style={{ margin: 0, color: 'rgba(255, 255, 255, 0.8)' }}>
|
|
148
138
|
This banner has a fixed width of 600px instead of 100%.
|
|
149
139
|
</p>
|
|
@@ -157,11 +147,7 @@ export const WithCustomWidth: Story = {
|
|
|
157
147
|
*/
|
|
158
148
|
export const WithMinimalContent: Story = {
|
|
159
149
|
args: {
|
|
160
|
-
children:
|
|
161
|
-
<p style={{ margin: 0, color: 'white', textAlign: 'center' }}>
|
|
162
|
-
Simple announcement message
|
|
163
|
-
</p>
|
|
164
|
-
),
|
|
150
|
+
children: <p style={{ margin: 0, color: 'white', textAlign: 'center' }}>Simple announcement message</p>,
|
|
165
151
|
},
|
|
166
152
|
};
|
|
167
153
|
|
|
@@ -176,8 +162,8 @@ export const WithRichContent: Story = {
|
|
|
176
162
|
🚀 New Feature Launch
|
|
177
163
|
</h1>
|
|
178
164
|
<p style={{ margin: 0, marginBottom: '16px', color: 'rgba(255, 255, 255, 0.9)' }}>
|
|
179
|
-
We've just released our most powerful web scraping tools yet.
|
|
180
|
-
|
|
165
|
+
We've just released our most powerful web scraping tools yet. Experience faster, more reliable
|
|
166
|
+
data extraction with our enhanced platform.
|
|
181
167
|
</p>
|
|
182
168
|
<div style={{ display: 'flex', gap: '12px', alignItems: 'center' }}>
|
|
183
169
|
<button
|
|
@@ -220,9 +206,7 @@ export const WarningBanner: Story = {
|
|
|
220
206
|
<div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>
|
|
221
207
|
<span style={{ fontSize: '1.5rem' }}>⚠️</span>
|
|
222
208
|
<div>
|
|
223
|
-
<h3 style={{ margin: 0, marginBottom: '4px', color: 'white' }}>
|
|
224
|
-
Maintenance Notice
|
|
225
|
-
</h3>
|
|
209
|
+
<h3 style={{ margin: 0, marginBottom: '4px', color: 'white' }}>Maintenance Notice</h3>
|
|
226
210
|
<p style={{ margin: 0, color: 'rgba(255, 255, 255, 0.9)' }}>
|
|
227
211
|
Scheduled maintenance will occur on Sunday, 12:00-14:00 UTC.
|
|
228
212
|
</p>
|
|
@@ -243,9 +227,7 @@ export const SuccessBanner: Story = {
|
|
|
243
227
|
<div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>
|
|
244
228
|
<span style={{ fontSize: '1.5rem' }}>✅</span>
|
|
245
229
|
<div>
|
|
246
|
-
<h3 style={{ margin: 0, marginBottom: '4px', color: 'white' }}>
|
|
247
|
-
Migration Complete
|
|
248
|
-
</h3>
|
|
230
|
+
<h3 style={{ margin: 0, marginBottom: '4px', color: 'white' }}>Migration Complete</h3>
|
|
249
231
|
<p style={{ margin: 0, color: 'rgba(255, 255, 255, 0.9)' }}>
|
|
250
232
|
Your account has been successfully migrated to our new platform.
|
|
251
233
|
</p>
|
|
@@ -51,26 +51,27 @@ const BANNER_GRADIENT_BACKGROUND_SVG = `<svg width="1200" height="148" viewBox="
|
|
|
51
51
|
`;
|
|
52
52
|
|
|
53
53
|
interface BannerProps {
|
|
54
|
-
background?: string
|
|
55
|
-
useGradientBackground?: boolean
|
|
56
|
-
width?: string
|
|
57
|
-
className?: string
|
|
58
|
-
children: React.ReactNode
|
|
54
|
+
background?: string;
|
|
55
|
+
useGradientBackground?: boolean;
|
|
56
|
+
width?: string;
|
|
57
|
+
className?: string;
|
|
58
|
+
children: React.ReactNode;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
const getBannerBackground = (background?: string, useGradientBackground?: boolean) => {
|
|
62
62
|
return css`
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
background-color: ${background || theme.color.neutral.backgroundSubtle};
|
|
64
|
+
${useGradientBackground &&
|
|
65
|
+
`
|
|
65
66
|
background-image: url("data:image/svg+xml,${encodeURIComponent(BANNER_GRADIENT_BACKGROUND_SVG)}");
|
|
66
67
|
background-position: center;
|
|
67
68
|
background-repeat: no-repeat;
|
|
68
69
|
background-size: cover;
|
|
69
70
|
`}
|
|
70
|
-
|
|
71
|
+
`;
|
|
71
72
|
};
|
|
72
73
|
|
|
73
|
-
const StyledBanner = styled.div<{ $background?: string
|
|
74
|
+
const StyledBanner = styled.div<{ $background?: string; $useGradientBackground?: boolean; width?: string }>`
|
|
74
75
|
width: ${(props) => props.width || '100%'};
|
|
75
76
|
padding: ${theme.space.space40} ${theme.space.space80};
|
|
76
77
|
border-radius: ${theme.radius.radius16};
|
|
@@ -84,11 +85,7 @@ export const Banner: React.FC<BannerProps> = ({
|
|
|
84
85
|
children,
|
|
85
86
|
...otherProps
|
|
86
87
|
}) => (
|
|
87
|
-
<StyledBanner
|
|
88
|
-
$background={background}
|
|
89
|
-
$useGradientBackground={useGradientBackground}
|
|
90
|
-
{...otherProps}
|
|
91
|
-
>
|
|
88
|
+
<StyledBanner $background={background} $useGradientBackground={useGradientBackground} {...otherProps}>
|
|
92
89
|
{children}
|
|
93
90
|
</StyledBanner>
|
|
94
91
|
);
|
|
@@ -17,7 +17,7 @@ const BlogArticleWrapper = styled.div`
|
|
|
17
17
|
|
|
18
18
|
&:hover {
|
|
19
19
|
.${classNames.READ_POST} {
|
|
20
|
-
|
|
20
|
+
color: ${theme.color.primary.action};
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -57,9 +57,8 @@ const BlogArticleWrapper = styled.div`
|
|
|
57
57
|
${theme.typography.shared.desktop.titleM}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
|
|
61
60
|
svg {
|
|
62
|
-
transition: margin-right .5s;
|
|
61
|
+
transition: margin-right 0.5s;
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
&:hover svg {
|
|
@@ -79,7 +78,10 @@ export function BlogArticle({ imageNode, title, ctaTitle = 'Read more' }: BlogAr
|
|
|
79
78
|
<BlogArticleWrapper>
|
|
80
79
|
<div className={classNames.IMAGE_WRAPPER}>{imageNode}</div>
|
|
81
80
|
<div className={classNames.TEXT}>{title}</div>
|
|
82
|
-
<div className={classNames.READ_POST}>
|
|
81
|
+
<div className={classNames.READ_POST}>
|
|
82
|
+
{ctaTitle}
|
|
83
|
+
<ArrowRightIcon size="16" title="" titleId="" />
|
|
84
|
+
</div>
|
|
83
85
|
</BlogArticleWrapper>
|
|
84
86
|
);
|
|
85
87
|
}
|
package/src/components/box.tsx
CHANGED
|
@@ -9,37 +9,37 @@ import type { WithTransientProps } from '../type_utils.js';
|
|
|
9
9
|
type ExtendedSize = Size | 'none' | 'auto';
|
|
10
10
|
|
|
11
11
|
export interface MarginSpacingProps {
|
|
12
|
-
m?: ExtendedSize
|
|
13
|
-
mt?: ExtendedSize
|
|
14
|
-
mb?: ExtendedSize
|
|
15
|
-
ml?: ExtendedSize
|
|
16
|
-
mr?: ExtendedSize
|
|
17
|
-
mx?: ExtendedSize
|
|
18
|
-
my?: ExtendedSize
|
|
12
|
+
m?: ExtendedSize;
|
|
13
|
+
mt?: ExtendedSize;
|
|
14
|
+
mb?: ExtendedSize;
|
|
15
|
+
ml?: ExtendedSize;
|
|
16
|
+
mr?: ExtendedSize;
|
|
17
|
+
mx?: ExtendedSize;
|
|
18
|
+
my?: ExtendedSize;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface PaddingSpacingProps {
|
|
22
|
-
p?: ExtendedSize
|
|
23
|
-
pt?: ExtendedSize
|
|
24
|
-
pb?: ExtendedSize
|
|
25
|
-
pl?: ExtendedSize
|
|
26
|
-
pr?: ExtendedSize
|
|
27
|
-
px?: ExtendedSize
|
|
28
|
-
py?: ExtendedSize
|
|
22
|
+
p?: ExtendedSize;
|
|
23
|
+
pt?: ExtendedSize;
|
|
24
|
+
pb?: ExtendedSize;
|
|
25
|
+
pl?: ExtendedSize;
|
|
26
|
+
pr?: ExtendedSize;
|
|
27
|
+
px?: ExtendedSize;
|
|
28
|
+
py?: ExtendedSize;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
type SharedBoxProps = {
|
|
32
|
-
children?: React.ReactNode
|
|
33
|
-
className?: string
|
|
34
|
-
style?: React.CSSProperties
|
|
35
|
-
onClick?: (e: React.MouseEvent) => void
|
|
36
|
-
id?: string
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
className?: string;
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
36
|
+
id?: string;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
// This should be renamed - these props are global for any element not just Boxes
|
|
40
40
|
export type RegularBoxProps = SharedBoxProps & { as?: React.ElementType };
|
|
41
41
|
|
|
42
|
-
type OlBoxProps = SharedBoxProps & { as: 'ol'
|
|
42
|
+
type OlBoxProps = SharedBoxProps & { as: 'ol'; start?: number };
|
|
43
43
|
|
|
44
44
|
/** Combines together RegularBoxProps and props for specific elements. */
|
|
45
45
|
type AnyBoxProps = RegularBoxProps | OlBoxProps;
|
|
@@ -53,76 +53,77 @@ const getSizeValue = (token?: ExtendedSize) => {
|
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
const StyledBox = styled.div<WithTransientProps<MarginSpacingProps & PaddingSpacingProps>>`
|
|
56
|
-
${({ $mt, $my, $m }) =>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
${({ $
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
${({ $
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
56
|
+
${({ $mt, $my, $m }) =>
|
|
57
|
+
($mt || $my || $m) &&
|
|
58
|
+
css`
|
|
59
|
+
margin-top: ${getSizeValue($mt || $my || $m)};
|
|
60
|
+
`}
|
|
61
|
+
|
|
62
|
+
${({ $mb, $my, $m }) =>
|
|
63
|
+
($mb || $my || $m) &&
|
|
64
|
+
css`
|
|
65
|
+
margin-bottom: ${getSizeValue($mb || $my || $m)};
|
|
66
|
+
`}
|
|
67
|
+
|
|
68
|
+
${({ $mr, $mx, $m }) =>
|
|
69
|
+
($mr || $mx || $m) &&
|
|
70
|
+
css`
|
|
71
|
+
margin-right: ${getSizeValue($mr || $mx || $m)};
|
|
72
|
+
`}
|
|
73
|
+
|
|
74
|
+
${({ $ml, $mx, $m }) =>
|
|
75
|
+
($ml || $mx || $m) &&
|
|
76
|
+
css`
|
|
77
|
+
margin-left: ${getSizeValue($ml || $mx || $m)};
|
|
78
|
+
`}
|
|
79
|
+
|
|
80
|
+
${({ $pt, $py, $p }) =>
|
|
81
|
+
($pt || $py || $p) &&
|
|
82
|
+
css`
|
|
83
|
+
padding-top: ${getSizeValue($pt || $py || $p)};
|
|
84
|
+
`}
|
|
85
|
+
|
|
86
|
+
${({ $pb, $py, $p }) =>
|
|
87
|
+
($pb || $py || $p) &&
|
|
88
|
+
css`
|
|
89
|
+
padding-bottom: ${getSizeValue($pb || $py || $p)};
|
|
90
|
+
`}
|
|
91
|
+
|
|
92
|
+
${({ $pr, $px, $p }) =>
|
|
93
|
+
($pr || $px || $p) &&
|
|
94
|
+
css`
|
|
95
|
+
padding-right: ${getSizeValue($pr || $px || $p)};
|
|
96
|
+
`}
|
|
97
|
+
|
|
98
|
+
${({ $pl, $px, $p }) =>
|
|
99
|
+
($pl || $px || $p) &&
|
|
100
|
+
css`
|
|
101
|
+
padding-left: ${getSizeValue($pl || $px || $p)};
|
|
102
|
+
`}
|
|
87
103
|
`;
|
|
88
104
|
// This component should work as a base component for all low level components (Heading, Message, Card, ...) to make it easy to define spacing.
|
|
89
105
|
// Right now, it's quite common to define some sort of spacing on these components already using css. Card = styled.div`margin-bottom: theme.space.space8`
|
|
90
106
|
// We should get rid of it and define it using props for Box component Card = styled(Box).attrs({mb: 'space8'})
|
|
91
|
-
export const Box = forwardRef<HTMLElement, BoxProps>(
|
|
92
|
-
m,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
$mr={mr}
|
|
115
|
-
$mx={mx}
|
|
116
|
-
$my={my}
|
|
117
|
-
$p={p}
|
|
118
|
-
$pt={pt}
|
|
119
|
-
$pb={pb}
|
|
120
|
-
$pl={pl}
|
|
121
|
-
$pr={pr}
|
|
122
|
-
$px={px}
|
|
123
|
-
$py={py}
|
|
124
|
-
as={as}
|
|
125
|
-
ref={ref}
|
|
126
|
-
{...rest}
|
|
127
|
-
/>
|
|
128
|
-
));
|
|
107
|
+
export const Box = forwardRef<HTMLElement, BoxProps>(
|
|
108
|
+
({ m, mt, mb, ml, mr, mx, my, p, pt, pb, pl, pr, px, py, as, ...rest }: BoxProps, ref) => (
|
|
109
|
+
<StyledBox
|
|
110
|
+
$m={m}
|
|
111
|
+
$mt={mt}
|
|
112
|
+
$mb={mb}
|
|
113
|
+
$ml={ml}
|
|
114
|
+
$mr={mr}
|
|
115
|
+
$mx={mx}
|
|
116
|
+
$my={my}
|
|
117
|
+
$p={p}
|
|
118
|
+
$pt={pt}
|
|
119
|
+
$pb={pb}
|
|
120
|
+
$pl={pl}
|
|
121
|
+
$pr={pr}
|
|
122
|
+
$px={px}
|
|
123
|
+
$py={py}
|
|
124
|
+
as={as}
|
|
125
|
+
ref={ref}
|
|
126
|
+
{...rest}
|
|
127
|
+
/>
|
|
128
|
+
),
|
|
129
|
+
);
|
|
@@ -15,10 +15,7 @@ export default {
|
|
|
15
15
|
|
|
16
16
|
export const Default: Story = {
|
|
17
17
|
args: {
|
|
18
|
-
items: [
|
|
19
|
-
{ label: 'All Actors', url: '/actors' },
|
|
20
|
-
{ label: 'Generate leads' },
|
|
21
|
-
],
|
|
18
|
+
items: [{ label: 'All Actors', url: '/actors' }, { label: 'Generate leads' }],
|
|
22
19
|
},
|
|
23
20
|
};
|
|
24
21
|
|
|
@@ -40,10 +37,7 @@ export const SingleItem: Story = {
|
|
|
40
37
|
|
|
41
38
|
export const Hovered: Story = {
|
|
42
39
|
args: {
|
|
43
|
-
items: [
|
|
44
|
-
{ label: 'All Actors', url: '/actors' },
|
|
45
|
-
{ label: 'Generate leads' },
|
|
46
|
-
],
|
|
40
|
+
items: [{ label: 'All Actors', url: '/actors' }, { label: 'Generate leads' }],
|
|
47
41
|
},
|
|
48
42
|
play: async ({ canvasElement }) => {
|
|
49
43
|
const canvas = within(canvasElement);
|
|
@@ -57,9 +57,9 @@ export const Breadcrumbs: React.FC<BreadcrumbsProps> = ({ items, className }) =>
|
|
|
57
57
|
<React.Fragment key={item.label}>
|
|
58
58
|
{index > 0 && (
|
|
59
59
|
<Text
|
|
60
|
-
as=
|
|
61
|
-
size=
|
|
62
|
-
weight=
|
|
60
|
+
as="span"
|
|
61
|
+
size="small"
|
|
62
|
+
weight="medium"
|
|
63
63
|
color={theme.color.neutral.textSubtle}
|
|
64
64
|
className={breadcrumbClassNames.SEPARATOR}
|
|
65
65
|
>
|
|
@@ -69,11 +69,13 @@ export const Breadcrumbs: React.FC<BreadcrumbsProps> = ({ items, className }) =>
|
|
|
69
69
|
<span className={clsx(breadcrumbClassNames.ITEM, isActive && breadcrumbClassNames.ITEM_ACTIVE)}>
|
|
70
70
|
{!isActive && item.url ? (
|
|
71
71
|
<StyledBreadcrumbLink to={item.url}>
|
|
72
|
-
<Text as=
|
|
72
|
+
<Text as="span" size="small" weight="normal">
|
|
73
|
+
{item.label}
|
|
74
|
+
</Text>
|
|
73
75
|
</StyledBreadcrumbLink>
|
|
74
76
|
) : (
|
|
75
77
|
<StyledBreadcrumbItemText
|
|
76
|
-
size=
|
|
78
|
+
size="small"
|
|
77
79
|
weight={isActive ? 'bold' : 'normal'}
|
|
78
80
|
color={isActive ? theme.color.neutral.text : theme.color.neutral.textSubtle}
|
|
79
81
|
>
|
|
@@ -49,72 +49,76 @@ const ButtonSection = ({ ...rest }: Partial<ButtonProps>) => {
|
|
|
49
49
|
return (
|
|
50
50
|
<Wrapper>
|
|
51
51
|
<ButtonGrid>
|
|
52
|
-
<Button {...props} variant=
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
<Button {...props}
|
|
56
|
-
|
|
52
|
+
<Button {...props} variant="primary">
|
|
53
|
+
Primary
|
|
54
|
+
</Button>
|
|
55
|
+
<Button {...props} variant="secondary">
|
|
56
|
+
Secondary
|
|
57
|
+
</Button>
|
|
58
|
+
<Button {...props} variant="tertiary">
|
|
59
|
+
Tertiary
|
|
60
|
+
</Button>
|
|
61
|
+
<Button {...props} disabled>
|
|
62
|
+
Disabled
|
|
63
|
+
</Button>
|
|
64
|
+
<Button {...props} variant="tertiary" disabled>
|
|
65
|
+
Tertiary Disabled
|
|
66
|
+
</Button>
|
|
57
67
|
</ButtonGrid>
|
|
58
68
|
|
|
59
69
|
<h6>With leading icon</h6>
|
|
60
70
|
<ButtonGrid>
|
|
61
|
-
<Button {...props} LeftIcon={CrossIcon} variant=
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<Button {...props} LeftIcon={CrossIcon}
|
|
65
|
-
|
|
71
|
+
<Button {...props} LeftIcon={CrossIcon} variant="primary">
|
|
72
|
+
Primary
|
|
73
|
+
</Button>
|
|
74
|
+
<Button {...props} LeftIcon={CrossIcon} variant="secondary">
|
|
75
|
+
Secondary
|
|
76
|
+
</Button>
|
|
77
|
+
<Button {...props} LeftIcon={CrossIcon} variant="tertiary">
|
|
78
|
+
Tertiary
|
|
79
|
+
</Button>
|
|
80
|
+
<Button {...props} LeftIcon={CrossIcon} disabled>
|
|
81
|
+
Disabled
|
|
82
|
+
</Button>
|
|
83
|
+
<Button {...props} LeftIcon={CrossIcon} variant="tertiary" disabled>
|
|
84
|
+
Tertiary Disabled
|
|
85
|
+
</Button>
|
|
66
86
|
</ButtonGrid>
|
|
67
87
|
|
|
68
88
|
<h6>With trailing icon</h6>
|
|
69
89
|
<ButtonGrid>
|
|
70
|
-
<Button {...props} RightIcon={CrossIcon} variant=
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<Button {...props} RightIcon={CrossIcon}
|
|
74
|
-
|
|
90
|
+
<Button {...props} RightIcon={CrossIcon} variant="primary">
|
|
91
|
+
Primary
|
|
92
|
+
</Button>
|
|
93
|
+
<Button {...props} RightIcon={CrossIcon} variant="secondary">
|
|
94
|
+
Secondary
|
|
95
|
+
</Button>
|
|
96
|
+
<Button {...props} RightIcon={CrossIcon} variant="tertiary">
|
|
97
|
+
Tertiary
|
|
98
|
+
</Button>
|
|
99
|
+
<Button {...props} RightIcon={CrossIcon} disabled>
|
|
100
|
+
Disabled
|
|
101
|
+
</Button>
|
|
102
|
+
<Button {...props} RightIcon={CrossIcon} variant="tertiary" disabled>
|
|
103
|
+
Tertiary Disabled
|
|
104
|
+
</Button>
|
|
75
105
|
</ButtonGrid>
|
|
76
106
|
|
|
77
107
|
<h6>With both icons</h6>
|
|
78
108
|
<ButtonGrid>
|
|
79
|
-
<Button
|
|
80
|
-
{...props}
|
|
81
|
-
RightIcon={CrossIcon}
|
|
82
|
-
LeftIcon={CrossIcon}
|
|
83
|
-
variant='primary'
|
|
84
|
-
>
|
|
109
|
+
<Button {...props} RightIcon={CrossIcon} LeftIcon={CrossIcon} variant="primary">
|
|
85
110
|
Primary test
|
|
86
111
|
</Button>
|
|
87
|
-
<Button
|
|
88
|
-
{...props}
|
|
89
|
-
RightIcon={CrossIcon}
|
|
90
|
-
LeftIcon={CrossIcon}
|
|
91
|
-
variant='secondary'
|
|
92
|
-
>
|
|
112
|
+
<Button {...props} RightIcon={CrossIcon} LeftIcon={CrossIcon} variant="secondary">
|
|
93
113
|
Secondary
|
|
94
114
|
</Button>
|
|
95
|
-
<Button
|
|
96
|
-
{...props}
|
|
97
|
-
RightIcon={CrossIcon}
|
|
98
|
-
LeftIcon={CrossIcon}
|
|
99
|
-
variant='tertiary'
|
|
100
|
-
>
|
|
115
|
+
<Button {...props} RightIcon={CrossIcon} LeftIcon={CrossIcon} variant="tertiary">
|
|
101
116
|
Tertiary
|
|
102
117
|
</Button>
|
|
103
|
-
<Button
|
|
104
|
-
{...props}
|
|
105
|
-
RightIcon={CrossIcon}
|
|
106
|
-
LeftIcon={CrossIcon}
|
|
107
|
-
disabled
|
|
108
|
-
>
|
|
118
|
+
<Button {...props} RightIcon={CrossIcon} LeftIcon={CrossIcon} disabled>
|
|
109
119
|
Disabled
|
|
110
120
|
</Button>
|
|
111
|
-
<Button
|
|
112
|
-
{...props}
|
|
113
|
-
RightIcon={CrossIcon}
|
|
114
|
-
LeftIcon={CrossIcon}
|
|
115
|
-
variant='tertiary'
|
|
116
|
-
disabled
|
|
117
|
-
>
|
|
121
|
+
<Button {...props} RightIcon={CrossIcon} LeftIcon={CrossIcon} variant="tertiary" disabled>
|
|
118
122
|
Tertiary Disabled
|
|
119
123
|
</Button>
|
|
120
124
|
</ButtonGrid>
|
|
@@ -127,35 +131,35 @@ export const Default = () => {
|
|
|
127
131
|
<Wrapper>
|
|
128
132
|
<h4>Primary</h4>
|
|
129
133
|
<TwoColumns>
|
|
130
|
-
<ButtonSection color=
|
|
131
|
-
<ButtonSection color=
|
|
132
|
-
<ButtonSection color=
|
|
133
|
-
<ButtonSection color=
|
|
134
|
-
<ButtonSection color=
|
|
134
|
+
<ButtonSection color="default" size="extraLarge" />
|
|
135
|
+
<ButtonSection color="default" size="large" />
|
|
136
|
+
<ButtonSection color="default" size="medium" />
|
|
137
|
+
<ButtonSection color="default" size="small" />
|
|
138
|
+
<ButtonSection color="default" size="extraSmall" />
|
|
135
139
|
</TwoColumns>
|
|
136
140
|
<h4>Success</h4>
|
|
137
141
|
<TwoColumns>
|
|
138
|
-
<ButtonSection color=
|
|
139
|
-
<ButtonSection color=
|
|
140
|
-
<ButtonSection color=
|
|
141
|
-
<ButtonSection color=
|
|
142
|
-
<ButtonSection color=
|
|
142
|
+
<ButtonSection color="success" size="extraLarge" />
|
|
143
|
+
<ButtonSection color="success" size="large" />
|
|
144
|
+
<ButtonSection color="success" size="medium" />
|
|
145
|
+
<ButtonSection color="success" size="small" />
|
|
146
|
+
<ButtonSection color="success" size="extraSmall" />
|
|
143
147
|
</TwoColumns>
|
|
144
148
|
<h4>Danger</h4>
|
|
145
149
|
<TwoColumns>
|
|
146
|
-
<ButtonSection color=
|
|
147
|
-
<ButtonSection color=
|
|
148
|
-
<ButtonSection color=
|
|
149
|
-
<ButtonSection color=
|
|
150
|
-
<ButtonSection color=
|
|
150
|
+
<ButtonSection color="danger" size="extraLarge" />
|
|
151
|
+
<ButtonSection color="danger" size="large" />
|
|
152
|
+
<ButtonSection color="danger" size="medium" />
|
|
153
|
+
<ButtonSection color="danger" size="small" />
|
|
154
|
+
<ButtonSection color="danger" size="extraSmall" />
|
|
151
155
|
</TwoColumns>
|
|
152
156
|
<h4>Primary Black - WIP</h4>
|
|
153
157
|
<TwoColumns>
|
|
154
|
-
<ButtonSection color=
|
|
155
|
-
<ButtonSection color=
|
|
156
|
-
<ButtonSection color=
|
|
157
|
-
<ButtonSection color=
|
|
158
|
-
<ButtonSection color=
|
|
158
|
+
<ButtonSection color="primaryBlack" size="extraLarge" />
|
|
159
|
+
<ButtonSection color="primaryBlack" size="large" />
|
|
160
|
+
<ButtonSection color="primaryBlack" size="medium" />
|
|
161
|
+
<ButtonSection color="primaryBlack" size="small" />
|
|
162
|
+
<ButtonSection color="primaryBlack" size="extraSmall" />
|
|
159
163
|
</TwoColumns>
|
|
160
164
|
</Wrapper>
|
|
161
165
|
);
|