playbook_ui 13.33.1.pre.alpha.play1407statvaluekitinconsistencies3352 → 13.33.1
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_background/background.html.erb +11 -2
- data/app/pb_kits/playbook/pb_body/body.html.erb +6 -1
- data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb +6 -1
- data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb +6 -1
- data/app/pb_kits/playbook/pb_caption/caption.html.erb +6 -1
- data/app/pb_kits/playbook/pb_card/card.html.erb +7 -1
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +1 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_color.jsx +2 -2
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.jsx +32 -31
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_rails.html.erb +2 -3
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.jsx +32 -33
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.html.erb +7 -3
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +0 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +0 -9
- data/app/pb_kits/playbook/pb_contact/_contact.tsx +19 -25
- data/app/pb_kits/playbook/pb_contact/contact.html.erb +3 -6
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +64 -71
- data/app/pb_kits/playbook/pb_detail/detail.html.erb +6 -1
- data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +6 -1
- data/app/pb_kits/playbook/pb_dialog/dialog_body.html.erb +6 -1
- data/app/pb_kits/playbook/pb_dialog/dialog_footer.html.erb +5 -2
- data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +6 -1
- data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +3 -7
- data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +1 -1
- data/app/pb_kits/playbook/pb_dropdown/index.js +31 -37
- data/app/pb_kits/playbook/pb_flex/flex.html.erb +5 -1
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +0 -4
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx +0 -11
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +17 -52
- data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_form_pill/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +9 -16
- data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +1 -6
- data/app/pb_kits/playbook/pb_hashtag/hashtag.html.erb +6 -1
- data/app/pb_kits/playbook/pb_highlight/highlight.html.erb +5 -1
- data/app/pb_kits/playbook/pb_home_address_street/home_address_street.html.erb +5 -1
- data/app/pb_kits/playbook/pb_icon/_icon.scss +0 -17
- data/app/pb_kits/playbook/pb_icon/_icon.tsx +0 -3
- data/app/pb_kits/playbook/pb_icon/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_icon/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_icon/icon.rb +1 -9
- data/app/pb_kits/playbook/pb_icon/icon.test.js +9 -22
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.scss +11 -0
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.tsx +201 -132
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx +33 -28
- data/app/pb_kits/playbook/pb_star_rating/docs/index.js +0 -2
- data/dist/playbook-rails.js +6 -6
- data/lib/playbook/version.rb +2 -2
- metadata +5 -14
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_icon.html.erb +0 -5
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_icon.jsx +0 -19
- data/app/pb_kits/playbook/pb_icon/docs/_icon_color.html.erb +0 -5
- data/app/pb_kits/playbook/pb_icon/docs/_icon_color.jsx +0 -34
- data/app/pb_kits/playbook/pb_icon/docs/_icon_color.md +0 -1
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_interactive.jsx +0 -14
- data/app/pb_kits/playbook/pb_star_rating/stars/utils.tsx +0 -81
- data/app/pb_kits/playbook/pb_star_rating/subcomponents/_star_rating_display.tsx +0 -56
- data/app/pb_kits/playbook/pb_star_rating/subcomponents/_star_rating_interactive.tsx +0 -64
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1c022847164064a888eae5ec0664e37bf3bfa352884159303d093fa8cfe6d5e
|
4
|
+
data.tar.gz: 04f74d04da0122d153510b4b44268be3d4c22c70a6ddb539be0ce483ba0fd4ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f65e1607e01a68c4fc7246cfd325699398931b4e6a42ac859a49a6d763f8efdd9c422e397926aac968c028f8ad77f338cb0028df2c007162d43bde076bfc6f34
|
7
|
+
data.tar.gz: 847a1fb9bccb3dbbaca66cfe8a9d5e9f40cb81b5db45b4c0a4374d5f25b52267afc5402248820ecea28775ef2e8e42bc1aa9e28bfc1497f00187af22006a2569
|
@@ -1,14 +1,23 @@
|
|
1
1
|
<% if object.image_url.present? %>
|
2
|
-
<%=
|
2
|
+
<%= content_tag(object.tag,
|
3
|
+
aria: object.aria,
|
4
|
+
data: object.data,
|
5
|
+
id: object.id,
|
6
|
+
class: object.classname,
|
3
7
|
style: "background-image: url('#{object.image_url}');
|
4
8
|
background-repeat: #{object.background_repeat};
|
5
9
|
background-size: #{object.background_size};
|
6
10
|
background-position: #{object.background_position};",
|
11
|
+
**combined_html_options
|
7
12
|
) do %>
|
8
13
|
<%= content.presence %>
|
9
14
|
<% end %>
|
10
15
|
<% else %>
|
11
|
-
<%=
|
16
|
+
<%= content_tag(object.tag,
|
17
|
+
aria: object.aria,
|
18
|
+
data: object.data,
|
19
|
+
id: object.id,
|
20
|
+
class: object.classname,
|
12
21
|
style: object.custom_background_color
|
13
22
|
) do %>
|
14
23
|
<%= content.presence %>
|
@@ -1,4 +1,9 @@
|
|
1
|
-
<%=
|
1
|
+
<%= content_tag(:div,
|
2
|
+
id: object.id,
|
3
|
+
data: object.data,
|
4
|
+
class: object.classname,
|
5
|
+
aria: object.aria,
|
6
|
+
**combined_html_options) do%>
|
2
7
|
<%= content_tag(object.link ? 'a' : 'span', class: 'bread_crumb_item', href: object.link) do %>
|
3
8
|
<%= content.presence %>
|
4
9
|
<% end %>
|
@@ -19,7 +19,7 @@ const CollapsibleColor = (props) => (
|
|
19
19
|
</Collapsible.Content>
|
20
20
|
</Collapsible>
|
21
21
|
<Collapsible
|
22
|
-
iconColor='
|
22
|
+
iconColor='light'
|
23
23
|
marginBottom="xs"
|
24
24
|
>
|
25
25
|
<Collapsible.Main>
|
@@ -34,7 +34,7 @@ const CollapsibleColor = (props) => (
|
|
34
34
|
</Collapsible.Content>
|
35
35
|
</Collapsible>
|
36
36
|
<Collapsible
|
37
|
-
iconColor='
|
37
|
+
iconColor='lighter'
|
38
38
|
marginBottom="xs"
|
39
39
|
>
|
40
40
|
<Collapsible.Main>
|
@@ -1,71 +1,72 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
import
|
3
|
-
import { Collapsible, useCollapsible, Flex, Title, List, ListItem } from '../..'
|
2
|
+
import { Collapsible, useCollapsible, Background, Flex, Title, List, ListItem } from '../..'
|
4
3
|
|
5
|
-
const CollapsibleCustomMain = (
|
4
|
+
const CollapsibleCustomMain = () => {
|
6
5
|
const [isCollapsed, setIsCollapsed] = useCollapsible(true)
|
7
6
|
|
8
7
|
return (
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
8
|
+
<>
|
9
|
+
<Collapsible
|
10
|
+
collapsed={isCollapsed}
|
11
|
+
>
|
12
|
+
<Background
|
13
|
+
backgroundColor="white"
|
14
|
+
cursor="pointer"
|
15
|
+
htmlOptions={{onClick:() => setIsCollapsed(!isCollapsed)}}
|
16
|
+
position="sticky"
|
17
|
+
top="0"
|
18
|
+
>
|
19
|
+
<Flex
|
20
|
+
align="center"
|
21
|
+
gap="sm"
|
22
|
+
justify="between"
|
23
|
+
>
|
24
|
+
<Title
|
25
|
+
size={4}
|
26
|
+
text="Custom Main Section"
|
27
|
+
/>
|
28
|
+
</Flex>
|
29
|
+
</Background>
|
30
|
+
<Collapsible.Content padding="none">
|
27
31
|
<div>
|
28
|
-
|
32
|
+
<List>
|
29
33
|
<ListItem
|
30
34
|
align="stretch"
|
31
35
|
flexDirection="column"
|
32
36
|
>
|
33
|
-
|
37
|
+
Checklist item
|
34
38
|
</ListItem>
|
35
39
|
<ListItem
|
36
40
|
align="stretch"
|
37
41
|
flexDirection="column"
|
38
42
|
>
|
39
|
-
|
43
|
+
Checklist item
|
40
44
|
</ListItem>
|
41
45
|
<ListItem
|
42
46
|
align="stretch"
|
43
47
|
flexDirection="column"
|
44
48
|
>
|
45
|
-
|
49
|
+
Checklist item
|
46
50
|
</ListItem>
|
47
51
|
<ListItem
|
48
52
|
align="stretch"
|
49
53
|
flexDirection="column"
|
50
54
|
>
|
51
|
-
|
55
|
+
Checklist item
|
52
56
|
</ListItem>
|
53
57
|
<ListItem
|
54
58
|
align="stretch"
|
55
59
|
flexDirection="column"
|
56
60
|
>
|
57
|
-
|
61
|
+
Checklist item
|
58
62
|
</ListItem>
|
59
63
|
</List>
|
60
64
|
</div>
|
61
65
|
</Collapsible.Content>
|
62
66
|
</Collapsible>
|
67
|
+
|
63
68
|
</>
|
64
69
|
)
|
65
70
|
}
|
66
71
|
|
67
|
-
CollapsibleCustomMain.propTypes = {
|
68
|
-
dark: PropTypes.bool,
|
69
|
-
}
|
70
|
-
|
71
72
|
export default CollapsibleCustomMain
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= pb_rails("collapsible", props: { name: "default-example" }) do %>
|
2
|
-
<%= pb_rails("
|
2
|
+
<%= pb_rails("background", props: { background_color: "white", position: "sticky", top: "0", cursor:"pointer", data: {"collapsible-main": "true"} }) do %>
|
3
3
|
<%= pb_rails("flex", props: {align:"center", gap:"sm", justify:"between"}) do %>
|
4
4
|
<%= pb_rails("title", props: { text: "Custom Main Section", tag: "h4", size: 4 }) %>
|
5
5
|
<% end %>
|
@@ -16,5 +16,4 @@
|
|
16
16
|
<% end %>
|
17
17
|
<% end %>
|
18
18
|
<% end %>
|
19
|
-
|
20
|
-
|
19
|
+
|
@@ -1,74 +1,73 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
import
|
3
|
-
import { Collapsible, useCollapsible, Flex, Title, List, ListItem } from '../..'
|
2
|
+
import { Collapsible, useCollapsible, Background, Flex, Title, List, ListItem } from '../..'
|
4
3
|
|
5
|
-
const CollapsibleCustomMainWithIcon = (
|
4
|
+
const CollapsibleCustomMainWithIcon = () => {
|
6
5
|
const [isCollapsed, setIsCollapsed] = useCollapsible(true)
|
7
6
|
|
8
7
|
return (
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
8
|
+
<>
|
9
|
+
<Collapsible
|
10
|
+
collapsed={isCollapsed}
|
11
|
+
>
|
12
|
+
<Background
|
13
|
+
backgroundColor="white"
|
14
|
+
cursor="pointer"
|
15
|
+
htmlOptions={{onClick:() => setIsCollapsed(!isCollapsed)}}
|
16
|
+
position="sticky"
|
17
|
+
top="0"
|
18
|
+
>
|
19
|
+
<Flex
|
20
|
+
align="center"
|
21
|
+
gap="sm"
|
22
|
+
justify="between"
|
23
|
+
>
|
24
|
+
<Title
|
25
|
+
size={4}
|
26
|
+
text="Custom Main Section"
|
27
|
+
/>
|
28
|
+
<Collapsible.Icon collapsed={isCollapsed}/>
|
29
|
+
</Flex>
|
30
|
+
</Background>
|
31
|
+
<Collapsible.Content padding="none">
|
30
32
|
<div>
|
31
33
|
<List>
|
32
34
|
<ListItem
|
33
35
|
align="stretch"
|
34
36
|
flexDirection="column"
|
35
37
|
>
|
36
|
-
|
38
|
+
Checklist item
|
37
39
|
</ListItem>
|
38
40
|
<ListItem
|
39
41
|
align="stretch"
|
40
42
|
flexDirection="column"
|
41
43
|
>
|
42
|
-
|
44
|
+
Checklist item
|
43
45
|
</ListItem>
|
44
46
|
<ListItem
|
45
47
|
align="stretch"
|
46
48
|
flexDirection="column"
|
47
49
|
>
|
48
|
-
|
50
|
+
Checklist item
|
49
51
|
</ListItem>
|
50
52
|
<ListItem
|
51
53
|
align="stretch"
|
52
54
|
flexDirection="column"
|
53
55
|
>
|
54
|
-
|
56
|
+
Checklist item
|
55
57
|
</ListItem>
|
56
58
|
<ListItem
|
57
59
|
align="stretch"
|
58
60
|
flexDirection="column"
|
59
61
|
>
|
60
|
-
|
62
|
+
Checklist item
|
61
63
|
</ListItem>
|
62
64
|
</List>
|
63
65
|
</div>
|
64
66
|
</Collapsible.Content>
|
65
67
|
</Collapsible>
|
68
|
+
|
66
69
|
</>
|
67
70
|
)
|
68
71
|
}
|
69
72
|
|
70
|
-
CollapsibleCustomMainWithIcon.propTypes = {
|
71
|
-
dark: PropTypes.bool,
|
72
|
-
}
|
73
|
-
|
74
73
|
export default CollapsibleCustomMainWithIcon
|
data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.html.erb
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
<%= pb_rails("collapsible", props: { name: "default-example" }) do %>
|
2
|
-
|
3
|
-
|
2
|
+
<%= pb_rails("background", props: { background_color: "white", position: "sticky", top: "0", cursor:"pointer", data: {"collapsible-main": "true"} }) do %>
|
3
|
+
<%= pb_rails("flex", props: {align:"center", gap:"sm", justify:"between"}) do %>
|
4
|
+
<%= pb_rails("title", props: { text: "Custom Main Section", tag: "h4", size: 4 }) %>
|
4
5
|
<%= pb_rails("collapsible/collapsible_icon") %>
|
5
|
-
|
6
|
+
<% end %>
|
7
|
+
<% end %>
|
8
|
+
<%= pb_rails("flex", props: { align: "center", justify: "between" }) do %>
|
9
|
+
<% end %>
|
6
10
|
<%= pb_rails("collapsible/collapsible_content", props: { padding: "none" }) do %>
|
7
11
|
<%= pb_rails("list", props: {ordered: false, dark: false, borderless: false}) do %>
|
8
12
|
<%= pb_rails("list/item") do %> Checklist Item <% end %>
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { Collapsible, useCollapsible, Button } from '../..'
|
4
3
|
|
5
4
|
const CollapsibleState = (props) => {
|
@@ -8,7 +7,6 @@ const CollapsibleState = (props) => {
|
|
8
7
|
return (
|
9
8
|
<>
|
10
9
|
<Button
|
11
|
-
dark={props.dark}
|
12
10
|
onClick={() => setIsCollapsed(!isCollapsed)}
|
13
11
|
padding="none"
|
14
12
|
variant="link"
|
@@ -19,7 +17,6 @@ const CollapsibleState = (props) => {
|
|
19
17
|
<Collapsible
|
20
18
|
collapsed={isCollapsed}
|
21
19
|
icon={["plus", "minus"]}
|
22
|
-
iconColor='white'
|
23
20
|
padding="none"
|
24
21
|
>
|
25
22
|
<Collapsible.Main padding="sm"
|
@@ -38,7 +35,6 @@ const CollapsibleState = (props) => {
|
|
38
35
|
<Collapsible
|
39
36
|
collapsed={isCollapsed}
|
40
37
|
icon={["plus", "minus"]}
|
41
|
-
iconColor='white'
|
42
38
|
padding="none"
|
43
39
|
>
|
44
40
|
<Collapsible.Main padding="sm"
|
@@ -57,7 +53,6 @@ const CollapsibleState = (props) => {
|
|
57
53
|
<Collapsible
|
58
54
|
collapsed={isCollapsed}
|
59
55
|
icon={["plus", "minus"]}
|
60
|
-
iconColor='white'
|
61
56
|
padding="none"
|
62
57
|
>
|
63
58
|
<Collapsible.Main padding="sm"
|
@@ -77,8 +72,4 @@ const CollapsibleState = (props) => {
|
|
77
72
|
)
|
78
73
|
}
|
79
74
|
|
80
|
-
CollapsibleState.propTypes = {
|
81
|
-
dark: PropTypes.bool,
|
82
|
-
}
|
83
|
-
|
84
75
|
export default CollapsibleState
|
@@ -8,23 +8,23 @@ import Body from '../pb_body/_body'
|
|
8
8
|
import Caption from '../pb_caption/_caption'
|
9
9
|
import Icon from '../pb_icon/_icon'
|
10
10
|
|
11
|
-
const contactTypeMap: { [key: string]: string } = {
|
11
|
+
const contactTypeMap: { [key: string]: string; } = {
|
12
12
|
'cell': 'mobile',
|
13
13
|
'email': 'envelope',
|
14
|
-
'extension': 'phone-plus',
|
15
14
|
'home': 'phone',
|
16
15
|
'work': 'phone-office',
|
17
16
|
'work-cell': 'phone-laptop',
|
18
17
|
'wrong-phone': 'phone-slash',
|
18
|
+
'extension': 'phone-plus',
|
19
19
|
}
|
20
20
|
|
21
21
|
const formatContact = (contactString: string, contactType: string) => {
|
22
|
-
if (contactType
|
22
|
+
if (contactType == 'email') return contactString
|
23
23
|
|
24
24
|
const cleaned = contactString.replace(/\D/g, '')
|
25
25
|
const phoneNumber = cleaned.match(/^(1|)?(\d{3})(\d{3})(\d{4})$/)
|
26
26
|
|
27
|
-
if
|
27
|
+
if(contactType == 'extension') {
|
28
28
|
return cleaned.match(/^\d{4}$/)
|
29
29
|
}
|
30
30
|
|
@@ -40,20 +40,19 @@ const formatContact = (contactString: string, contactType: string) => {
|
|
40
40
|
phoneNumber[4],
|
41
41
|
].join('')
|
42
42
|
}
|
43
|
-
|
43
|
+
|
44
44
|
return null
|
45
45
|
}
|
46
46
|
|
47
47
|
type ContactProps = {
|
48
|
-
aria?: { [key: string]: string }
|
49
|
-
className?: string | string[]
|
50
|
-
contactDetail?: string
|
51
|
-
contactType?: string
|
52
|
-
contactValue: string
|
53
|
-
data?: {
|
54
|
-
|
55
|
-
|
56
|
-
id?: string
|
48
|
+
aria?: { [key: string]: string; },
|
49
|
+
className?: string | string[],
|
50
|
+
contactDetail?: string,
|
51
|
+
contactType?: string,
|
52
|
+
contactValue: string,
|
53
|
+
data?: {[key: string]: string},
|
54
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
55
|
+
id?: string,
|
57
56
|
}
|
58
57
|
|
59
58
|
const Contact = (props: ContactProps): React.ReactElement => {
|
@@ -64,10 +63,8 @@ const Contact = (props: ContactProps): React.ReactElement => {
|
|
64
63
|
contactType,
|
65
64
|
contactValue,
|
66
65
|
data = {},
|
67
|
-
dark = false,
|
68
66
|
htmlOptions = {},
|
69
|
-
id
|
70
|
-
} = props
|
67
|
+
id } = props
|
71
68
|
const ariaProps = buildAriaProps(aria)
|
72
69
|
const dataProps = buildDataProps(data)
|
73
70
|
const htmlProps = buildHtmlProps(htmlOptions)
|
@@ -76,7 +73,6 @@ const Contact = (props: ContactProps): React.ReactElement => {
|
|
76
73
|
globalProps(props),
|
77
74
|
className
|
78
75
|
)
|
79
|
-
|
80
76
|
return (
|
81
77
|
<div
|
82
78
|
{...ariaProps}
|
@@ -87,27 +83,25 @@ const Contact = (props: ContactProps): React.ReactElement => {
|
|
87
83
|
>
|
88
84
|
<Body
|
89
85
|
className="pb_contact_kit"
|
90
|
-
color=
|
91
|
-
dark={dark}
|
86
|
+
color="light"
|
92
87
|
tag="span"
|
93
88
|
>
|
94
89
|
<Icon
|
95
|
-
dark={dark}
|
96
90
|
fixedWidth
|
97
91
|
icon={contactTypeMap[contactType] || 'phone'}
|
98
92
|
/>
|
99
93
|
{` ${formatContact(contactValue, contactType)} `}
|
100
|
-
{
|
94
|
+
{
|
95
|
+
contactDetail &&
|
101
96
|
<Caption
|
102
|
-
dark={dark}
|
103
97
|
size="xs"
|
104
98
|
tag="span"
|
105
99
|
text={contactDetail}
|
106
100
|
/>
|
107
|
-
|
101
|
+
}
|
108
102
|
</Body>
|
109
103
|
</div>
|
110
104
|
)
|
111
105
|
}
|
112
106
|
|
113
|
-
export default Contact
|
107
|
+
export default Contact
|
@@ -2,21 +2,18 @@
|
|
2
2
|
<%= pb_rails("body", props: {
|
3
3
|
tag: "span",
|
4
4
|
classname: "pb_contact_kit",
|
5
|
-
color: "light"
|
6
|
-
dark: object.dark
|
5
|
+
color: "light"
|
7
6
|
}) do %>
|
8
7
|
<%= pb_rails("icon", props: {
|
9
8
|
icon: object.contact_icon,
|
10
|
-
fixed_width: true
|
11
|
-
dark: object.dark
|
9
|
+
fixed_width: true
|
12
10
|
}) %>
|
13
11
|
<%= object.formatted_contact_value if object.contact_value %>
|
14
12
|
|
15
13
|
<%= pb_rails("caption", props: {
|
16
14
|
text: object.contact_detail,
|
17
15
|
tag: 'span',
|
18
|
-
size: 'xs'
|
19
|
-
dark: object.dark
|
16
|
+
size: 'xs'
|
20
17
|
}) if object.contact_detail %>
|
21
18
|
<% end %>
|
22
19
|
<% end %>
|