playbook_ui 12.14.0 → 12.16.0.pre.alpha.tiptaptestingpart1528
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_avatar/_avatar.tsx +1 -1
- data/app/pb_kits/playbook/pb_avatar/avatar.html.erb +1 -1
- data/app/pb_kits/playbook/pb_avatar/avatar.rb +4 -0
- data/app/pb_kits/playbook/pb_avatar/avatar.test.js +14 -0
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_background/_background.tsx +1 -1
- data/app/pb_kits/playbook/pb_background/background.rb +1 -1
- data/app/pb_kits/playbook/pb_badge/_badge.scss +1 -0
- data/app/pb_kits/playbook/pb_badge/_badge.tsx +1 -1
- data/app/pb_kits/playbook/pb_badge/badge.rb +5 -1
- data/app/pb_kits/playbook/pb_badge/badge.test.js +16 -1
- data/app/pb_kits/playbook/pb_body/_body_mixins.scss +3 -3
- data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +2 -2
- data/app/pb_kits/playbook/pb_card/_card.scss +13 -0
- data/app/pb_kits/playbook/pb_card/_card.tsx +3 -2
- data/app/pb_kits/playbook/pb_card/card_header.rb +9 -1
- data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +11 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +169 -139
- data/app/pb_kits/playbook/pb_enhanced_element/index.ts +1 -1
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.tsx +5 -5
- data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.html.erb +1 -1
- data/app/pb_kits/playbook/pb_nav/_item.tsx +6 -6
- data/app/pb_kits/playbook/pb_nav/_nav.tsx +2 -2
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +0 -5
- data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +0 -4
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx +49 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorTypes.ts +9 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.tsx +62 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.tsx +128 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarHistory.tsx +45 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarNodes.tsx +59 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +23 -9
- data/app/pb_kits/playbook/pb_rich_text_editor/_tiptap_styles.scss +192 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.jsx +36 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_star_rating/{_star_rating.jsx → _star_rating.tsx} +18 -22
- data/app/pb_kits/playbook/pb_star_rating/star_rating.test.js +71 -0
- data/app/pb_kits/playbook/pb_table/{_table.jsx → _table.tsx} +9 -11
- data/app/pb_kits/playbook/pb_table/{_table_row.jsx → _table_row.tsx} +7 -8
- data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb +41 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx +62 -0
- data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_table/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_table/{index.js → index.ts} +4 -4
- data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +129 -0
- data/app/pb_kits/playbook/pb_textarea/{index.js → index.tsx} +2 -0
- data/app/pb_kits/playbook/pb_textarea/textarea.test.js +213 -0
- data/app/pb_kits/playbook/tokens/_colors.scss +16 -1
- data/app/pb_kits/playbook/utilities/_cursor.scss +141 -1
- data/app/pb_kits/playbook/utilities/globalProps.ts +5 -2
- data/lib/playbook/cursor.rb +2 -2
- data/lib/playbook/version.rb +2 -2
- metadata +25 -14
- data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +0 -41
- data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +0 -135
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4341c04235a54ee87163dc70611a3316292d39b9b1fdfbd18f2071918b5b52ba
|
4
|
+
data.tar.gz: 43730de1e579c36b56dd7d18683a22143170392ea4901b424d064333af087814
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eefd540b9b47832aaaef279e5b6b30557d9bd3dcad56f0f0bba654d10916bfde828daa12a9b24ce41bfa9ff4678fc0bf6484491999b5997e98e98e0edbaa152
|
7
|
+
data.tar.gz: 0521a6ececeaf575787632b452b9b0ea8041d176be10dcb21c1e52868115fa1c7d8bc0e3f3137f958c73600aaef3bfc34ce932b7b80b408300ab51063079791f
|
@@ -4,7 +4,7 @@
|
|
4
4
|
class: object.classname,
|
5
5
|
aria: object.aria) do %>
|
6
6
|
<%= content_tag(:div, data: { initials: object.initials }, class: "avatar_wrapper") do %>
|
7
|
-
<%= pb_rails("image", props: { alt: object.
|
7
|
+
<%= pb_rails("image", props: { alt: object.alt_text, url: object.image_url, on_error: object.handle_img_error }) if object.image_url.present? %>
|
8
8
|
<% end %>
|
9
9
|
<%= pb_rails("online_status", props: object.online_status_props) if object.status %>
|
10
10
|
<% end %>
|
@@ -28,3 +28,17 @@ test('loads the given image url and name', () => {
|
|
28
28
|
expect(image).toHaveAttribute('src', imageUrl)
|
29
29
|
expect(image).toHaveAttribute('alt', imageAlt)
|
30
30
|
})
|
31
|
+
|
32
|
+
test('uses the name prop as the alt property if no imageAlt prop is passed in', () => {
|
33
|
+
render(
|
34
|
+
<Avatar
|
35
|
+
data={{ testid: testId }}
|
36
|
+
imageUrl={imageUrl}
|
37
|
+
name={name}
|
38
|
+
/>
|
39
|
+
)
|
40
|
+
|
41
|
+
const image = screen.getByAltText(name)
|
42
|
+
|
43
|
+
expect(image).toHaveAttribute('alt', name)
|
44
|
+
})
|
@@ -24,7 +24,7 @@ type BackgroundProps = {
|
|
24
24
|
id?: string,
|
25
25
|
imageUrl?: string,
|
26
26
|
padding?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl',
|
27
|
-
tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div',
|
27
|
+
tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'tr' | 'th' | 'td',
|
28
28
|
transition?: 'fade' | 'blur' | 'scale',
|
29
29
|
} & GlobalProps
|
30
30
|
|
@@ -42,7 +42,7 @@ const Badge = (props: BadgeProps) => {
|
|
42
42
|
const ariaProps = buildAriaProps(aria)
|
43
43
|
const dataProps = buildDataProps(data)
|
44
44
|
const css = classnames(
|
45
|
-
buildCss('pb_badge_kit', variant, rounded ? 'rounded' : null),
|
45
|
+
buildCss('pb_badge_kit', variant === "success" ? "success_sm" : variant, rounded ? 'rounded' : null),
|
46
46
|
globalProps(props),
|
47
47
|
className
|
48
48
|
)
|
@@ -10,11 +10,15 @@ module Playbook
|
|
10
10
|
default: "neutral"
|
11
11
|
|
12
12
|
def classname
|
13
|
-
generate_classname("pb_badge_kit",
|
13
|
+
generate_classname("pb_badge_kit", variant_class, rounded_class)
|
14
14
|
end
|
15
15
|
|
16
16
|
private
|
17
17
|
|
18
|
+
def variant_class
|
19
|
+
variant === "success" ? "success_sm" : variant
|
20
|
+
end
|
21
|
+
|
18
22
|
def rounded_class
|
19
23
|
rounded ? "rounded" : nil
|
20
24
|
end
|
@@ -60,7 +60,6 @@ test('displays rounded corners', () => {
|
|
60
60
|
|
61
61
|
test('displays color variants', () => {
|
62
62
|
[
|
63
|
-
"success",
|
64
63
|
"warning",
|
65
64
|
"error",
|
66
65
|
"info"
|
@@ -78,3 +77,19 @@ test('displays color variants', () => {
|
|
78
77
|
cleanup()
|
79
78
|
})
|
80
79
|
})
|
80
|
+
|
81
|
+
test('displays success variant', () => {
|
82
|
+
render(
|
83
|
+
<Badge
|
84
|
+
data={{ testid: testId }}
|
85
|
+
text={"success"}
|
86
|
+
variant={"success"}
|
87
|
+
/>
|
88
|
+
)
|
89
|
+
const kit = screen.getByTestId(testId)
|
90
|
+
expect(kit).toHaveClass(`pb_badge_kit_success_sm
|
91
|
+
`)
|
92
|
+
|
93
|
+
cleanup()
|
94
|
+
|
95
|
+
})
|
@@ -8,7 +8,7 @@ $pb_body_colors: (
|
|
8
8
|
lighter: $text_lt_lighter,
|
9
9
|
link: $primary,
|
10
10
|
error: $error,
|
11
|
-
success: $
|
11
|
+
success: $text_lt_success_sm,
|
12
12
|
);
|
13
13
|
|
14
14
|
$pb_dark_body_colors: (
|
@@ -16,7 +16,7 @@ $pb_dark_body_colors: (
|
|
16
16
|
light: $text_dk_light,
|
17
17
|
lighter: $text_dk_lighter,
|
18
18
|
error: $error,
|
19
|
-
success: $
|
19
|
+
success: $text_dk_success_sm,
|
20
20
|
);
|
21
21
|
|
22
22
|
// Order is important here!
|
@@ -24,7 +24,7 @@ $pb_body_status: (
|
|
24
24
|
default: $text_lt_default,
|
25
25
|
negative: $error,
|
26
26
|
dark_error: $error_dark_body,
|
27
|
-
positive: $
|
27
|
+
positive: $text_lt_success_sm,
|
28
28
|
);
|
29
29
|
|
30
30
|
@mixin pb_body($color: $text_lt_default) {
|
@@ -6,7 +6,7 @@ $pb_caption_colors: (
|
|
6
6
|
light: $text_lt_light,
|
7
7
|
link: $primary,
|
8
8
|
lighter: $text_lt_lighter,
|
9
|
-
success: $
|
9
|
+
success: $text_lt_success_sm,
|
10
10
|
error: $error,
|
11
11
|
);
|
12
12
|
|
@@ -14,7 +14,7 @@ $pb_dark_caption_colors: (
|
|
14
14
|
default: $text_dk_default,
|
15
15
|
light: $text_dk_light,
|
16
16
|
link: $primary,
|
17
|
-
success: $
|
17
|
+
success: $text_dk_success_sm,
|
18
18
|
error: $error,
|
19
19
|
);
|
20
20
|
|
@@ -33,6 +33,19 @@
|
|
33
33
|
color: lightenText($color_value);
|
34
34
|
}
|
35
35
|
}
|
36
|
+
@each $color_name, $color_value in $pb_card_header_colors {
|
37
|
+
&[class*=_#{$color_name}_striped] {
|
38
|
+
@if ((type-of($color_value) == color)) {
|
39
|
+
background: repeating-linear-gradient(
|
40
|
+
45deg,
|
41
|
+
$color_value,
|
42
|
+
$color_value 10px,
|
43
|
+
lighten( $color_value, 5% ) 10px,
|
44
|
+
lighten( $color_value, 5% ) 20px
|
45
|
+
);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
36
49
|
&[class*=_white] {
|
37
50
|
border-bottom: 1px solid $border_light;
|
38
51
|
}
|
@@ -28,6 +28,7 @@ type CardPropTypes = {
|
|
28
28
|
|
29
29
|
type CardHeaderProps = {
|
30
30
|
headerColor?: BackgroundColors | ProductColors | CategoryColors | "none",
|
31
|
+
headerColorStriped?: boolean,
|
31
32
|
children: React.ReactChild[] | React.ReactChild,
|
32
33
|
className?: string,
|
33
34
|
padding?: string,
|
@@ -41,8 +42,8 @@ type CardBodyProps = {
|
|
41
42
|
|
42
43
|
// Header component
|
43
44
|
const Header = (props: CardHeaderProps) => {
|
44
|
-
const { children, className, headerColor = 'category_1', padding = 'sm' } = props
|
45
|
-
const headerCSS = buildCss('pb_card_header_kit', `${headerColor}
|
45
|
+
const { children, className, headerColor = 'category_1', headerColorStriped = false, padding = 'sm' } = props
|
46
|
+
const headerCSS = buildCss('pb_card_header_kit', `${headerColor}`, headerColorStriped ? 'striped' : '')
|
46
47
|
|
47
48
|
const headerSpacing = globalProps(props, { padding })
|
48
49
|
|
@@ -5,9 +5,17 @@ module Playbook
|
|
5
5
|
class CardHeader < Playbook::KitBase
|
6
6
|
prop :header_color, type: Playbook::Props::String,
|
7
7
|
default: "category_1"
|
8
|
+
prop :header_color_striped, type: Playbook::Props::Boolean,
|
9
|
+
default: false
|
8
10
|
|
9
11
|
def classname
|
10
|
-
generate_classname("pb_card_header_kit", header_color)
|
12
|
+
generate_classname("pb_card_header_kit", header_color, color_striped_classname)
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def color_striped_classname
|
18
|
+
header_color_striped ? "striped" : nil
|
11
19
|
end
|
12
20
|
end
|
13
21
|
end
|
@@ -57,3 +57,14 @@
|
|
57
57
|
Body
|
58
58
|
<% end %>
|
59
59
|
<% end %>
|
60
|
+
|
61
|
+
<%= pb_rails("title", props: { text: "Striped Colors", tag: "h4", size: 4, margin_bottom: "sm" }) %>
|
62
|
+
|
63
|
+
<%= pb_rails("card", props: { padding: "none", header: true, margin_bottom: "sm"}) do %>
|
64
|
+
<%= pb_rails("card/card_header", props: { padding: "sm", header_color: "category_1", header_color_striped: true }) do %>
|
65
|
+
<%= pb_rails("body", props: { text: "Striped Category 1", dark: true }) %>
|
66
|
+
<% end %>
|
67
|
+
<%= pb_rails("card/card_body", props: { padding: "md", }) do %>
|
68
|
+
Body
|
69
|
+
<% end %>
|
70
|
+
<% end %>
|
@@ -1,158 +1,188 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
2
|
import Card from '../_card'
|
4
3
|
import Title from '../../pb_title/_title'
|
5
4
|
import Body from '../../pb_body/_body'
|
6
5
|
|
7
6
|
const CardHeader = (props) => {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
7
|
+
return (
|
8
|
+
<>
|
9
|
+
<Title
|
10
|
+
{...props}
|
11
|
+
marginBottom='sm'
|
12
|
+
size={4}
|
13
|
+
tag="h4"
|
14
|
+
text="Category Colors"
|
15
|
+
/>
|
16
|
+
|
17
|
+
<Card
|
18
|
+
{...props}
|
19
|
+
marginBottom='sm'
|
20
|
+
padding="none"
|
21
|
+
>
|
22
|
+
<Card.Header headerColor="category_1" >
|
23
|
+
<Body
|
24
|
+
dark
|
25
|
+
text="Category 1"
|
26
|
+
/>
|
27
|
+
</Card.Header>
|
28
|
+
<Card.Body>
|
29
|
+
<Body
|
30
|
+
{...props}
|
31
|
+
text="Body"
|
32
|
+
/>
|
33
|
+
</Card.Body>
|
34
|
+
</Card>
|
35
|
+
|
36
|
+
<Card
|
37
|
+
{...props}
|
38
|
+
marginBottom='sm'
|
39
|
+
padding="none"
|
40
|
+
>
|
41
|
+
<Card.Header
|
42
|
+
headerColor="category_3"
|
43
|
+
>
|
44
|
+
<Body text="Category 3" />
|
45
|
+
</Card.Header>
|
46
|
+
<Card.Body
|
47
|
+
padding="md"
|
48
|
+
>
|
49
|
+
<Body
|
50
|
+
{...props}
|
51
|
+
text="Body"
|
52
|
+
/>
|
53
|
+
</Card.Body>
|
54
|
+
</Card>
|
17
55
|
|
18
|
-
<Card
|
19
|
-
{...props}
|
20
|
-
marginBottom='sm'
|
21
|
-
padding="none"
|
22
|
-
>
|
23
|
-
<Card.Header headerColor="category_1" >
|
24
|
-
<Body
|
25
|
-
dark
|
26
|
-
text="Category 1"
|
27
|
-
/>
|
28
|
-
</Card.Header>
|
29
|
-
<Card.Body>
|
30
|
-
<Body
|
31
|
-
{...props}
|
32
|
-
text="Body"
|
33
|
-
/>
|
34
|
-
</Card.Body>
|
35
|
-
</Card>
|
36
56
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
>
|
45
|
-
<Body text="Category 3" />
|
46
|
-
</Card.Header>
|
47
|
-
<Card.Body
|
48
|
-
padding="md"
|
49
|
-
>
|
50
|
-
<Body
|
51
|
-
{...props}
|
52
|
-
text="Body"
|
53
|
-
/>
|
54
|
-
</Card.Body>
|
55
|
-
</Card>
|
57
|
+
<Title
|
58
|
+
{...props}
|
59
|
+
marginBottom='sm'
|
60
|
+
size={4}
|
61
|
+
tag="h4"
|
62
|
+
text="Product Colors"
|
63
|
+
/>
|
56
64
|
|
65
|
+
<Card
|
66
|
+
{...props}
|
67
|
+
marginBottom='sm'
|
68
|
+
padding="none"
|
69
|
+
>
|
70
|
+
<Card.Header
|
71
|
+
headerColor="product_2_background"
|
72
|
+
>
|
73
|
+
<Body
|
74
|
+
{...props}
|
75
|
+
dark
|
76
|
+
text="Product 2 Background"
|
77
|
+
/>
|
78
|
+
</Card.Header>
|
79
|
+
<Card.Body>
|
80
|
+
<Body
|
81
|
+
{...props}
|
82
|
+
text="Body"
|
83
|
+
/>
|
84
|
+
</Card.Body>
|
85
|
+
</Card>
|
57
86
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
87
|
+
<Card
|
88
|
+
{...props}
|
89
|
+
marginBottom='sm'
|
90
|
+
padding="none"
|
91
|
+
>
|
92
|
+
<Card.Header headerColor="product_6_background" >
|
93
|
+
<Body
|
94
|
+
{...props}
|
95
|
+
dark
|
96
|
+
text="Product 6 Background"
|
97
|
+
/>
|
98
|
+
</Card.Header>
|
99
|
+
<Card.Body>
|
100
|
+
<Body
|
101
|
+
{...props}
|
102
|
+
text="Body"
|
103
|
+
/>
|
104
|
+
</Card.Body>
|
105
|
+
</Card>
|
65
106
|
|
66
|
-
<Card
|
67
|
-
{...props}
|
68
|
-
marginBottom='sm'
|
69
|
-
padding="none"
|
70
|
-
>
|
71
|
-
<Card.Header
|
72
|
-
headerColor="product_2_background"
|
73
|
-
>
|
74
|
-
<Body
|
75
|
-
{...props}
|
76
|
-
dark
|
77
|
-
text="Product 2 Background"
|
78
|
-
/>
|
79
|
-
</Card.Header>
|
80
|
-
<Card.Body>
|
81
|
-
<Body
|
82
|
-
{...props}
|
83
|
-
text="Body"
|
84
|
-
/>
|
85
|
-
</Card.Body>
|
86
|
-
</Card>
|
87
107
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
{...props}
|
96
|
-
dark
|
97
|
-
text="Product 6 Background"
|
98
|
-
/>
|
99
|
-
</Card.Header>
|
100
|
-
<Card.Body>
|
101
|
-
<Body
|
102
|
-
{...props}
|
103
|
-
text="Body"
|
104
|
-
/>
|
105
|
-
</Card.Body>
|
106
|
-
</Card>
|
108
|
+
<Title
|
109
|
+
{...props}
|
110
|
+
marginBottom='sm'
|
111
|
+
size={4}
|
112
|
+
tag="h4"
|
113
|
+
text="Background Colors"
|
114
|
+
/>
|
107
115
|
|
116
|
+
<Card
|
117
|
+
{...props}
|
118
|
+
marginBottom='sm'
|
119
|
+
padding="none"
|
120
|
+
>
|
121
|
+
<Card.Header
|
122
|
+
headerColor="white"
|
123
|
+
>
|
124
|
+
<Body text="White" />
|
125
|
+
</Card.Header>
|
126
|
+
<Card.Body>
|
127
|
+
<Body
|
128
|
+
{...props}
|
129
|
+
text="Body"
|
130
|
+
/>
|
131
|
+
</Card.Body>
|
132
|
+
</Card>
|
108
133
|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
134
|
+
<Card
|
135
|
+
{...props}
|
136
|
+
marginBottom='sm'
|
137
|
+
padding="none"
|
138
|
+
>
|
139
|
+
<Card.Header
|
140
|
+
headerColor="dark"
|
141
|
+
>
|
142
|
+
<Body
|
143
|
+
dark
|
144
|
+
text="Dark"
|
145
|
+
/>
|
146
|
+
</Card.Header>
|
147
|
+
<Card.Body>
|
148
|
+
<Body
|
149
|
+
{...props}
|
150
|
+
text="Body"
|
151
|
+
/>
|
152
|
+
</Card.Body>
|
153
|
+
</Card>
|
116
154
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
>
|
125
|
-
<Body text="White" />
|
126
|
-
</Card.Header>
|
127
|
-
<Card.Body>
|
128
|
-
<Body
|
129
|
-
{...props}
|
130
|
-
text="Body"
|
131
|
-
/>
|
132
|
-
</Card.Body>
|
133
|
-
</Card>
|
155
|
+
<Title
|
156
|
+
{...props}
|
157
|
+
marginBottom='sm'
|
158
|
+
size={4}
|
159
|
+
tag="h4"
|
160
|
+
text="Striped Colors"
|
161
|
+
/>
|
134
162
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
163
|
+
<Card
|
164
|
+
{...props}
|
165
|
+
marginBottom='sm'
|
166
|
+
padding="none"
|
167
|
+
>
|
168
|
+
<Card.Header
|
169
|
+
headerColor="category_1"
|
170
|
+
headerColorStriped
|
171
|
+
>
|
172
|
+
<Body
|
173
|
+
dark
|
174
|
+
text="Striped Category 1"
|
175
|
+
/>
|
176
|
+
</Card.Header>
|
177
|
+
<Card.Body>
|
178
|
+
<Body
|
179
|
+
{...props}
|
180
|
+
text="Body"
|
181
|
+
/>
|
182
|
+
</Card.Body>
|
183
|
+
</Card>
|
184
|
+
</>
|
185
|
+
)
|
156
186
|
}
|
157
187
|
|
158
188
|
export default CardHeader
|
@@ -94,13 +94,13 @@ const IconStatValue = (props: IconStatValueProps) => {
|
|
94
94
|
|
95
95
|
<div>
|
96
96
|
<Flex
|
97
|
-
|
97
|
+
align="baseline"
|
98
98
|
>
|
99
|
-
|
99
|
+
{titleSize(size)}
|
100
100
|
|
101
|
-
|
102
|
-
|
103
|
-
|
101
|
+
<Body
|
102
|
+
text={unit}
|
103
|
+
/>
|
104
104
|
</Flex>
|
105
105
|
<Caption text={text} />
|
106
106
|
</div>
|