@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
|
@@ -9,8 +9,9 @@ export default {
|
|
|
9
9
|
parameters: {
|
|
10
10
|
docs: {
|
|
11
11
|
description: {
|
|
12
|
-
component:
|
|
13
|
-
|
|
12
|
+
component:
|
|
13
|
+
'Shared headings are the standard typography component used throughout the console and shared components. ' +
|
|
14
|
+
"This is the default choice for most heading needs. **If you're unsure which heading component to use, choose this one.**",
|
|
14
15
|
},
|
|
15
16
|
},
|
|
16
17
|
},
|
|
@@ -9,7 +9,7 @@ import { TextBaseComponent } from './text_base.js';
|
|
|
9
9
|
type HeadingSharedType = 'titleXs' | 'titleS' | 'titleM' | 'titleL' | 'titleXl' | 'title2xl' | 'title3xl';
|
|
10
10
|
|
|
11
11
|
interface HeadingSharedTransientProps {
|
|
12
|
-
type?: HeadingSharedType
|
|
12
|
+
type?: HeadingSharedType;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
type StyledHeadingSharedProps = WithTransientProps<HeadingSharedTransientProps>;
|
|
@@ -39,16 +39,12 @@ const StyledHeadingShared = styled(TextBaseComponent)<StyledHeadingSharedProps>`
|
|
|
39
39
|
`}
|
|
40
40
|
`;
|
|
41
41
|
|
|
42
|
-
export const HeadingShared: React.FC<HeadingSharedProps> = ({
|
|
43
|
-
type,
|
|
44
|
-
as,
|
|
45
|
-
...rest
|
|
46
|
-
}) => {
|
|
42
|
+
export const HeadingShared: React.FC<HeadingSharedProps> = ({ type, as, ...rest }) => {
|
|
47
43
|
return (
|
|
48
44
|
<StyledHeadingShared
|
|
49
45
|
$type={type}
|
|
50
46
|
forwardedAs={as || HEADING_SHARED_DEFAULT_ELEMENTS[type || 'titleL']}
|
|
51
|
-
m=
|
|
47
|
+
m="none"
|
|
52
48
|
{...rest}
|
|
53
49
|
/>
|
|
54
50
|
);
|
|
@@ -6,47 +6,41 @@ import type { BoxProps } from '../box.js';
|
|
|
6
6
|
import { Box } from '../box.js';
|
|
7
7
|
|
|
8
8
|
export interface TransientTextBaseProps {
|
|
9
|
-
italic?: boolean
|
|
10
|
-
uppercase?: boolean
|
|
11
|
-
align?: 'left' | 'right' | 'center'
|
|
12
|
-
color?: string
|
|
9
|
+
italic?: boolean;
|
|
10
|
+
uppercase?: boolean;
|
|
11
|
+
align?: 'left' | 'right' | 'center';
|
|
12
|
+
color?: string;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export type StyledTextBaseProps = WithTransientProps<TransientTextBaseProps>;
|
|
16
16
|
export type TextBaseProps = TransientTextBaseProps & BoxProps;
|
|
17
17
|
|
|
18
18
|
const StyledText = styled(Box)<StyledTextBaseProps>`
|
|
19
|
-
${(props) =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
${(props) =>
|
|
32
|
-
|
|
33
|
-
|
|
19
|
+
${(props) =>
|
|
20
|
+
props.$italic &&
|
|
21
|
+
css`
|
|
22
|
+
font-style: italic;
|
|
23
|
+
`}
|
|
24
|
+
|
|
25
|
+
${(props) =>
|
|
26
|
+
props.$uppercase &&
|
|
27
|
+
css`
|
|
28
|
+
text-transform: uppercase;
|
|
29
|
+
`}
|
|
30
|
+
|
|
31
|
+
${(props) =>
|
|
32
|
+
props.$align &&
|
|
33
|
+
css`
|
|
34
|
+
text-align: ${props.$align};
|
|
35
|
+
`}
|
|
36
|
+
|
|
37
|
+
${(props) =>
|
|
38
|
+
props.$color &&
|
|
39
|
+
css`
|
|
40
|
+
color: ${props.$color};
|
|
41
|
+
`}
|
|
34
42
|
`;
|
|
35
43
|
|
|
36
|
-
export const TextBaseComponent: React.FC<TextBaseProps> = ({
|
|
37
|
-
italic
|
|
38
|
-
align,
|
|
39
|
-
color,
|
|
40
|
-
uppercase,
|
|
41
|
-
as,
|
|
42
|
-
...rest
|
|
43
|
-
}) => (
|
|
44
|
-
<StyledText
|
|
45
|
-
$italic={italic}
|
|
46
|
-
$align={align}
|
|
47
|
-
$color={color}
|
|
48
|
-
$uppercase={uppercase}
|
|
49
|
-
forwardedAs={as}
|
|
50
|
-
{...rest}
|
|
51
|
-
/>
|
|
44
|
+
export const TextBaseComponent: React.FC<TextBaseProps> = ({ italic, align, color, uppercase, as, ...rest }) => (
|
|
45
|
+
<StyledText $italic={italic} $align={align} $color={color} $uppercase={uppercase} forwardedAs={as} {...rest} />
|
|
52
46
|
);
|
|
@@ -10,9 +10,10 @@ export default {
|
|
|
10
10
|
parameters: {
|
|
11
11
|
docs: {
|
|
12
12
|
description: {
|
|
13
|
-
component:
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
component:
|
|
14
|
+
'⚠️ **Internal Component**: This component is specifically designed for use within the SimpleMarkdown component.' +
|
|
15
|
+
' It provides content-specific text styles for markdown rendering (paragraphs and code snippets).' +
|
|
16
|
+
' For general text usage, use TextShared or TextMarketing instead.',
|
|
16
17
|
},
|
|
17
18
|
},
|
|
18
19
|
},
|
|
@@ -124,9 +125,9 @@ export const AllVariants: Story = {
|
|
|
124
125
|
<WarningBanner>
|
|
125
126
|
<strong>⚠️ Internal Component</strong>
|
|
126
127
|
<p>
|
|
127
|
-
TextContent is used exclusively by the SimpleMarkdown component for rendering
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
TextContent is used exclusively by the SimpleMarkdown component for rendering markdown paragraphs
|
|
129
|
+
and inline code snippets. For general text usage in your application, use TextShared or
|
|
130
|
+
TextMarketing components instead.
|
|
130
131
|
</p>
|
|
131
132
|
</WarningBanner>
|
|
132
133
|
|
|
@@ -139,16 +140,16 @@ export const AllVariants: Story = {
|
|
|
139
140
|
<TextShowcase>
|
|
140
141
|
<small>type=paragraph, weight=normal</small>
|
|
141
142
|
<TextContent type="paragraph" weight="normal">
|
|
142
|
-
This is a paragraph with normal weight, used for standard markdown text content.
|
|
143
|
-
|
|
143
|
+
This is a paragraph with normal weight, used for standard markdown text content. It provides
|
|
144
|
+
optimal readability for documentation and readme files.
|
|
144
145
|
</TextContent>
|
|
145
146
|
</TextShowcase>
|
|
146
147
|
|
|
147
148
|
<TextShowcase>
|
|
148
149
|
<small>type=paragraph, weight=bold</small>
|
|
149
150
|
<TextContent type="paragraph" weight="bold">
|
|
150
|
-
This is a paragraph with bold weight, used for **strong text** in markdown.
|
|
151
|
-
|
|
151
|
+
This is a paragraph with bold weight, used for **strong text** in markdown. It creates emphasis
|
|
152
|
+
for important information within the content.
|
|
152
153
|
</TextContent>
|
|
153
154
|
</TextShowcase>
|
|
154
155
|
</div>
|
|
@@ -177,9 +178,12 @@ export const AllVariants: Story = {
|
|
|
177
178
|
<div style={{ marginTop: '2rem', padding: '1.5rem', border: '1px solid #e0e0e0', borderRadius: '4px' }}>
|
|
178
179
|
<h4 style={{ marginTop: 0 }}>Example in Markdown Context</h4>
|
|
179
180
|
<TextContent type="paragraph" weight="normal" mb="space8">
|
|
180
|
-
The SimpleMarkdown component uses these styles to render markdown. For example,
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
The SimpleMarkdown component uses these styles to render markdown. For example, when you write code
|
|
182
|
+
like{' '}
|
|
183
|
+
<TextContent type="snippet" weight="normal" as="span">
|
|
184
|
+
npm install
|
|
185
|
+
</TextContent>{' '}
|
|
186
|
+
inline, it uses the snippet type.
|
|
183
187
|
</TextContent>
|
|
184
188
|
<TextContent type="paragraph" weight="bold">
|
|
185
189
|
Bold text in markdown is rendered using paragraph with bold weight.
|
|
@@ -11,8 +11,8 @@ export type ContentTextType = 'paragraph' | 'snippet';
|
|
|
11
11
|
export type ContentTextWeight = 'normal' | 'bold';
|
|
12
12
|
|
|
13
13
|
export interface TransientContentTextProps {
|
|
14
|
-
type?: ContentTextType
|
|
15
|
-
weight?: ContentTextWeight
|
|
14
|
+
type?: ContentTextType;
|
|
15
|
+
weight?: ContentTextWeight;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
type StyledContentTextProps = WithTransientProps<TransientContentTextProps>;
|
|
@@ -82,26 +82,23 @@ const StyledTextContent = styled(TextBaseComponent)<StyledContentTextProps>`
|
|
|
82
82
|
/**
|
|
83
83
|
* @deprecated Use Text or TextMarketing from ui-library
|
|
84
84
|
*/
|
|
85
|
-
export const TextContent = forwardRef<HTMLElement | undefined, ContentTextProps>(
|
|
86
|
-
type,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
/>
|
|
104
|
-
);
|
|
105
|
-
});
|
|
85
|
+
export const TextContent = forwardRef<HTMLElement | undefined, ContentTextProps>(
|
|
86
|
+
({ type, weight, as, ...rest }, ref) => {
|
|
87
|
+
return (
|
|
88
|
+
<StyledTextContent
|
|
89
|
+
$type={type}
|
|
90
|
+
$weight={weight}
|
|
91
|
+
forwardedAs={as || 'p'}
|
|
92
|
+
ref={ref}
|
|
93
|
+
// We have global CSS file that defines margins for p and h to some 'normalized' value
|
|
94
|
+
// But at the same time we want to have default margin set to 0 for Text and Headings
|
|
95
|
+
// In perfect world, all texts would be rendered using Text/Heading components and we could have 0 margin set globally
|
|
96
|
+
// Until then we have to set default 0 margin here
|
|
97
|
+
m="none"
|
|
98
|
+
{...rest}
|
|
99
|
+
/>
|
|
100
|
+
);
|
|
101
|
+
},
|
|
102
|
+
);
|
|
106
103
|
|
|
107
104
|
TextContent.displayName = 'TextContent';
|
|
@@ -9,9 +9,10 @@ export default {
|
|
|
9
9
|
parameters: {
|
|
10
10
|
docs: {
|
|
11
11
|
description: {
|
|
12
|
-
component:
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
component:
|
|
13
|
+
'Marketing text is designed for promotional and web-facing content.' +
|
|
14
|
+
' These typography elements are primarily used for marketing pages, landing pages,' +
|
|
15
|
+
' and other web components where engaging, conversion-focused text is needed.',
|
|
15
16
|
},
|
|
16
17
|
},
|
|
17
18
|
},
|
|
@@ -11,8 +11,8 @@ export type MarketingTextSize = 'large' | 'regular' | 'small' | 'extraSmall';
|
|
|
11
11
|
export type MarketingTextWeight = 'normal' | 'medium' | 'bold';
|
|
12
12
|
|
|
13
13
|
export interface TransientMarketingTextProps {
|
|
14
|
-
size?: MarketingTextSize
|
|
15
|
-
weight?: MarketingTextWeight
|
|
14
|
+
size?: MarketingTextSize;
|
|
15
|
+
weight?: MarketingTextWeight;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
type StyledMarketingTextProps = WithTransientProps<TransientMarketingTextProps>;
|
|
@@ -171,26 +171,23 @@ const StyledTextMarketing = styled(TextBaseComponent)<StyledMarketingTextProps>`
|
|
|
171
171
|
${(props) => TEXT_MARKETING_VARIANTS_CSS[props.$size || 'regular'][props.$weight || 'normal']}
|
|
172
172
|
`;
|
|
173
173
|
|
|
174
|
-
export const TextMarketing = forwardRef<HTMLElement | undefined, MarketingTextProps>(
|
|
175
|
-
weight,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
/>
|
|
193
|
-
);
|
|
194
|
-
});
|
|
174
|
+
export const TextMarketing = forwardRef<HTMLElement | undefined, MarketingTextProps>(
|
|
175
|
+
({ weight, size, as, ...rest }, ref) => {
|
|
176
|
+
return (
|
|
177
|
+
<StyledTextMarketing
|
|
178
|
+
$weight={weight}
|
|
179
|
+
$size={size}
|
|
180
|
+
forwardedAs={as || 'p'}
|
|
181
|
+
ref={ref}
|
|
182
|
+
// We have global CSS file that defines margins for p and h to some 'normalized' value
|
|
183
|
+
// But at the same time we want to have default margin set to 0 for Text and Headings
|
|
184
|
+
// In perfect world, all texts would be rendered using Text/Heading components and we could have 0 margin set globally
|
|
185
|
+
// Until then we have to set default 0 margin here
|
|
186
|
+
m="none"
|
|
187
|
+
{...rest}
|
|
188
|
+
/>
|
|
189
|
+
);
|
|
190
|
+
},
|
|
191
|
+
);
|
|
195
192
|
|
|
196
193
|
TextMarketing.displayName = 'TextMarketing';
|
|
@@ -9,9 +9,10 @@ export default {
|
|
|
9
9
|
parameters: {
|
|
10
10
|
docs: {
|
|
11
11
|
description: {
|
|
12
|
-
component:
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
component:
|
|
13
|
+
'Shared text is the standard typography component used throughout the console and shared components.' +
|
|
14
|
+
' This is the default choice for most text needs across the application.' +
|
|
15
|
+
" **If you're unsure which text component to use, choose this one.**",
|
|
15
16
|
},
|
|
16
17
|
},
|
|
17
18
|
},
|
|
@@ -7,15 +7,15 @@ import type { TextBaseProps } from './text_base.js';
|
|
|
7
7
|
import { TextBaseComponent } from './text_base.js';
|
|
8
8
|
|
|
9
9
|
export const SHARED_TEXT_TYPES = ['body', 'code'] as const;
|
|
10
|
-
export type SharedTextType = typeof SHARED_TEXT_TYPES[number];
|
|
10
|
+
export type SharedTextType = (typeof SHARED_TEXT_TYPES)[number];
|
|
11
11
|
|
|
12
12
|
export type SharedTextSize = 'regular' | 'small' | 'big';
|
|
13
13
|
export type SharedTextWeight = 'normal' | 'medium' | 'bold';
|
|
14
14
|
|
|
15
15
|
export interface TransientSharedTextProps {
|
|
16
|
-
type?: SharedTextType
|
|
17
|
-
size?: SharedTextSize
|
|
18
|
-
weight?: SharedTextWeight
|
|
16
|
+
type?: SharedTextType;
|
|
17
|
+
size?: SharedTextSize;
|
|
18
|
+
weight?: SharedTextWeight;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
type StyledSharedTextProps = WithTransientProps<TransientSharedTextProps>;
|
|
@@ -70,26 +70,22 @@ const StyledTextShared = styled(TextBaseComponent)<StyledSharedTextProps>`
|
|
|
70
70
|
${(props) => TEXT_SHARED_VARIANTS_CSS[props.$type || 'body'][props.$size || 'regular'][props.$weight || 'normal']}
|
|
71
71
|
`;
|
|
72
72
|
|
|
73
|
-
export const TextShared = forwardRef<HTMLElement | undefined, SharedTextProps>(
|
|
74
|
-
type,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
{...rest}
|
|
93
|
-
/>
|
|
94
|
-
);
|
|
95
|
-
});
|
|
73
|
+
export const TextShared = forwardRef<HTMLElement | undefined, SharedTextProps>(
|
|
74
|
+
({ type, size, weight, as, ...rest }, ref) => {
|
|
75
|
+
return (
|
|
76
|
+
<StyledTextShared
|
|
77
|
+
$type={type}
|
|
78
|
+
$size={size}
|
|
79
|
+
$weight={weight}
|
|
80
|
+
forwardedAs={as || 'p'}
|
|
81
|
+
ref={ref}
|
|
82
|
+
// We have global CSS file that defines margins for p and h to some 'normalized' value
|
|
83
|
+
// But at the same time we want to have default margin set to 0 for Text and Headings
|
|
84
|
+
// In perfect world, all texts would be rendered using Text/Heading components and we could have 0 margin set globally
|
|
85
|
+
// Until then we have to set default 0 margin here
|
|
86
|
+
m="none"
|
|
87
|
+
{...rest}
|
|
88
|
+
/>
|
|
89
|
+
);
|
|
90
|
+
},
|
|
91
|
+
);
|
|
@@ -86,7 +86,9 @@ export const SizeComparison: Story = {
|
|
|
86
86
|
render: () => (
|
|
87
87
|
<StoryWrapper>
|
|
88
88
|
<div>
|
|
89
|
-
<TextShared size="small" weight="bold" mb="space8">
|
|
89
|
+
<TextShared size="small" weight="bold" mb="space8">
|
|
90
|
+
Small Size
|
|
91
|
+
</TextShared>
|
|
90
92
|
<HorizontalTile
|
|
91
93
|
icon={<StarFullIcon size="24" />}
|
|
92
94
|
content="Small tile with padding of 16px"
|
|
@@ -95,7 +97,9 @@ export const SizeComparison: Story = {
|
|
|
95
97
|
/>
|
|
96
98
|
</div>
|
|
97
99
|
<div>
|
|
98
|
-
<TextShared size="small" weight="bold" mb="space8">
|
|
100
|
+
<TextShared size="small" weight="bold" mb="space8">
|
|
101
|
+
Large Size
|
|
102
|
+
</TextShared>
|
|
99
103
|
<HorizontalTile
|
|
100
104
|
icon={<StarFullIcon size="24" />}
|
|
101
105
|
content="Large tile with padding of 24px"
|
|
@@ -2,14 +2,8 @@ import type React from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
4
|
import { theme } from '../../design_system/theme.js';
|
|
5
|
-
import type {
|
|
6
|
-
|
|
7
|
-
TileSizesType,
|
|
8
|
-
} from './shared.js';
|
|
9
|
-
import {
|
|
10
|
-
TILE_SIZES,
|
|
11
|
-
tileStyle,
|
|
12
|
-
} from './shared.js';
|
|
5
|
+
import type { TileSharedProps, TileSizesType } from './shared.js';
|
|
6
|
+
import { TILE_SIZES, tileStyle } from './shared.js';
|
|
13
7
|
|
|
14
8
|
interface HorizontalTileProps extends TileSharedProps {
|
|
15
9
|
icon?: React.ReactNode;
|
|
@@ -33,7 +27,8 @@ const StyledTileWrapper = styled.div<StyledTileWrapperProps>`
|
|
|
33
27
|
align-items: center;
|
|
34
28
|
|
|
35
29
|
cursor: pointer;
|
|
36
|
-
transition:
|
|
30
|
+
transition:
|
|
31
|
+
box-shadow ${theme.transition.smoothEaseOut},
|
|
37
32
|
background-color ${theme.transition.smoothEaseOut},
|
|
38
33
|
border-color ${theme.transition.smoothEaseOut};
|
|
39
34
|
|
|
@@ -63,12 +58,7 @@ export const HorizontalTile: React.FC<HorizontalTileProps> = ({
|
|
|
63
58
|
...otherProps
|
|
64
59
|
}) => {
|
|
65
60
|
return (
|
|
66
|
-
<StyledTileWrapper
|
|
67
|
-
$hasIcon={!!icon}
|
|
68
|
-
$size={size}
|
|
69
|
-
onClick={onClick}
|
|
70
|
-
{...otherProps}
|
|
71
|
-
>
|
|
61
|
+
<StyledTileWrapper $hasIcon={!!icon} $size={size} onClick={onClick} {...otherProps}>
|
|
72
62
|
<div>{icon}</div>
|
|
73
63
|
<div className={WrapperClasses.TILE_CONTENT}>{content}</div>
|
|
74
64
|
<div>{action}</div>
|
|
@@ -7,7 +7,7 @@ export const TILE_SIZES = {
|
|
|
7
7
|
LARGE: 'L',
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
export type TileSizesType = typeof TILE_SIZES[keyof typeof TILE_SIZES];
|
|
10
|
+
export type TileSizesType = (typeof TILE_SIZES)[keyof typeof TILE_SIZES];
|
|
11
11
|
|
|
12
12
|
export const tileStyle = css`
|
|
13
13
|
background-color: ${theme.color.neutral.background};
|
|
@@ -16,10 +16,10 @@ export const tileStyle = css`
|
|
|
16
16
|
`;
|
|
17
17
|
|
|
18
18
|
export type TileSharedProps = {
|
|
19
|
-
content: React.ReactNode
|
|
20
|
-
size?: TileSizesType
|
|
21
|
-
isClickable?: boolean
|
|
22
|
-
onClick?: () => void
|
|
19
|
+
content: React.ReactNode;
|
|
20
|
+
size?: TileSizesType;
|
|
21
|
+
isClickable?: boolean;
|
|
22
|
+
onClick?: () => void;
|
|
23
23
|
id?: string;
|
|
24
24
|
className?: string;
|
|
25
25
|
style?: React.CSSProperties;
|
|
@@ -40,22 +40,10 @@ const StoryWrapper = styled.div`
|
|
|
40
40
|
export const Default: Story = {
|
|
41
41
|
render: () => (
|
|
42
42
|
<StoryWrapper>
|
|
43
|
-
<VerticalTile
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/>
|
|
47
|
-
<VerticalTile
|
|
48
|
-
content={<TextShared>Option 2</TextShared>}
|
|
49
|
-
size={TILE_SIZES.SMALL}
|
|
50
|
-
/>
|
|
51
|
-
<VerticalTile
|
|
52
|
-
content={<TextShared>Option 3</TextShared>}
|
|
53
|
-
size={TILE_SIZES.SMALL}
|
|
54
|
-
/>
|
|
55
|
-
<VerticalTile
|
|
56
|
-
content={<TextShared>Option 4</TextShared>}
|
|
57
|
-
size={TILE_SIZES.SMALL}
|
|
58
|
-
/>
|
|
43
|
+
<VerticalTile content={<TextShared>Option 1</TextShared>} size={TILE_SIZES.SMALL} />
|
|
44
|
+
<VerticalTile content={<TextShared>Option 2</TextShared>} size={TILE_SIZES.SMALL} />
|
|
45
|
+
<VerticalTile content={<TextShared>Option 3</TextShared>} size={TILE_SIZES.SMALL} />
|
|
46
|
+
<VerticalTile content={<TextShared>Option 4</TextShared>} size={TILE_SIZES.SMALL} />
|
|
59
47
|
</StoryWrapper>
|
|
60
48
|
),
|
|
61
49
|
};
|
|
@@ -134,7 +122,9 @@ export const SizeComparison: Story = {
|
|
|
134
122
|
render: () => (
|
|
135
123
|
<StoryWrapper>
|
|
136
124
|
<div>
|
|
137
|
-
<TextShared size="small" weight="bold" mb="space8">
|
|
125
|
+
<TextShared size="small" weight="bold" mb="space8">
|
|
126
|
+
Small Size
|
|
127
|
+
</TextShared>
|
|
138
128
|
<VerticalTile
|
|
139
129
|
content={
|
|
140
130
|
<div>
|
|
@@ -150,7 +140,9 @@ export const SizeComparison: Story = {
|
|
|
150
140
|
/>
|
|
151
141
|
</div>
|
|
152
142
|
<div>
|
|
153
|
-
<TextShared size="small" weight="bold" mb="space8">
|
|
143
|
+
<TextShared size="small" weight="bold" mb="space8">
|
|
144
|
+
Large Size
|
|
145
|
+
</TextShared>
|
|
154
146
|
<VerticalTile
|
|
155
147
|
content={
|
|
156
148
|
<div>
|
|
@@ -2,14 +2,8 @@ import type React from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
4
|
import { theme } from '../../design_system/theme.js';
|
|
5
|
-
import type {
|
|
6
|
-
|
|
7
|
-
TileSizesType,
|
|
8
|
-
} from './shared.js';
|
|
9
|
-
import {
|
|
10
|
-
TILE_SIZES,
|
|
11
|
-
tileStyle,
|
|
12
|
-
} from './shared.js';
|
|
5
|
+
import type { TileSharedProps, TileSizesType } from './shared.js';
|
|
6
|
+
import { TILE_SIZES, tileStyle } from './shared.js';
|
|
13
7
|
|
|
14
8
|
interface VerticalTileProps extends TileSharedProps {
|
|
15
9
|
content: React.ReactNode;
|
|
@@ -30,7 +24,8 @@ const StyledTileWrapper = styled.div<StyledTileWrapperProps>`
|
|
|
30
24
|
padding: ${({ $size }) => ($size === TILE_SIZES.SMALL ? theme.space.space16 : theme.space.space24)};
|
|
31
25
|
width: 100%;
|
|
32
26
|
cursor: pointer;
|
|
33
|
-
transition:
|
|
27
|
+
transition:
|
|
28
|
+
box-shadow ${theme.transition.smoothEaseOut},
|
|
34
29
|
background-color ${theme.transition.smoothEaseOut},
|
|
35
30
|
border-color ${theme.transition.smoothEaseOut};
|
|
36
31
|
|
|
@@ -70,7 +70,9 @@ export const WithActions: Story = {
|
|
|
70
70
|
caption: 'Card with Actions',
|
|
71
71
|
actions: (
|
|
72
72
|
<>
|
|
73
|
-
<Button size="small" variant="tertiary">
|
|
73
|
+
<Button size="small" variant="tertiary">
|
|
74
|
+
Cancel
|
|
75
|
+
</Button>
|
|
74
76
|
<Button size="small">Save</Button>
|
|
75
77
|
</>
|
|
76
78
|
),
|