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.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_background/background.html.erb +11 -2
  3. data/app/pb_kits/playbook/pb_body/body.html.erb +6 -1
  4. data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb +6 -1
  5. data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb +6 -1
  6. data/app/pb_kits/playbook/pb_caption/caption.html.erb +6 -1
  7. data/app/pb_kits/playbook/pb_card/card.html.erb +7 -1
  8. data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +1 -1
  9. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_color.jsx +2 -2
  10. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.jsx +32 -31
  11. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_rails.html.erb +2 -3
  12. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.jsx +32 -33
  13. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.html.erb +7 -3
  14. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +0 -1
  15. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +0 -9
  16. data/app/pb_kits/playbook/pb_contact/_contact.tsx +19 -25
  17. data/app/pb_kits/playbook/pb_contact/contact.html.erb +3 -6
  18. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +64 -71
  19. data/app/pb_kits/playbook/pb_detail/detail.html.erb +6 -1
  20. data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +6 -1
  21. data/app/pb_kits/playbook/pb_dialog/dialog_body.html.erb +6 -1
  22. data/app/pb_kits/playbook/pb_dialog/dialog_footer.html.erb +5 -2
  23. data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +6 -1
  24. data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +3 -7
  25. data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +1 -1
  26. data/app/pb_kits/playbook/pb_dropdown/index.js +31 -37
  27. data/app/pb_kits/playbook/pb_flex/flex.html.erb +5 -1
  28. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +0 -4
  29. data/app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx +0 -11
  30. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +17 -52
  31. data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +1 -2
  32. data/app/pb_kits/playbook/pb_form_pill/docs/index.js +1 -1
  33. data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +9 -16
  34. data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +1 -6
  35. data/app/pb_kits/playbook/pb_hashtag/hashtag.html.erb +6 -1
  36. data/app/pb_kits/playbook/pb_highlight/highlight.html.erb +5 -1
  37. data/app/pb_kits/playbook/pb_home_address_street/home_address_street.html.erb +5 -1
  38. data/app/pb_kits/playbook/pb_icon/_icon.scss +0 -17
  39. data/app/pb_kits/playbook/pb_icon/_icon.tsx +0 -3
  40. data/app/pb_kits/playbook/pb_icon/docs/example.yml +0 -2
  41. data/app/pb_kits/playbook/pb_icon/docs/index.js +0 -1
  42. data/app/pb_kits/playbook/pb_icon/icon.rb +1 -9
  43. data/app/pb_kits/playbook/pb_icon/icon.test.js +9 -22
  44. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.scss +11 -0
  45. data/app/pb_kits/playbook/pb_star_rating/_star_rating.tsx +201 -132
  46. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx +33 -28
  47. data/app/pb_kits/playbook/pb_star_rating/docs/index.js +0 -2
  48. data/dist/playbook-rails.js +6 -6
  49. data/lib/playbook/version.rb +2 -2
  50. metadata +5 -14
  51. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_icon.html.erb +0 -5
  52. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_icon.jsx +0 -19
  53. data/app/pb_kits/playbook/pb_icon/docs/_icon_color.html.erb +0 -5
  54. data/app/pb_kits/playbook/pb_icon/docs/_icon_color.jsx +0 -34
  55. data/app/pb_kits/playbook/pb_icon/docs/_icon_color.md +0 -1
  56. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_interactive.jsx +0 -14
  57. data/app/pb_kits/playbook/pb_star_rating/stars/utils.tsx +0 -81
  58. data/app/pb_kits/playbook/pb_star_rating/subcomponents/_star_rating_display.tsx +0 -56
  59. 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: 930497ebc101aa6ef27bbc55dd868e8a23ce5bd39ecedef0737c0cd02b87cfd5
4
- data.tar.gz: 6ad3f140dd0f5f777a568de3326eedbb6e6d2e2e6e7295283a3ddb75563b4184
3
+ metadata.gz: e1c022847164064a888eae5ec0664e37bf3bfa352884159303d093fa8cfe6d5e
4
+ data.tar.gz: 04f74d04da0122d153510b4b44268be3d4c22c70a6ddb539be0ce483ba0fd4ac
5
5
  SHA512:
6
- metadata.gz: 50a63572ef9dfa42aa9e2e7de77fa7b49321752663aa9e91af996dfc3bc971f9ab2d1983637817755db9913a29ed4889b4d9c8775fd44f15aa3bffb3afe67321
7
- data.tar.gz: 1f097f1aee790e0fe3aa6c31a06d0ba969628cbe8e6b9707b32a8975fffa6cb1f758fb9e22f98a7774aa26b9db719e055147abdbf71a2818aecd2a71a7b7fb8f
6
+ metadata.gz: f65e1607e01a68c4fc7246cfd325699398931b4e6a42ac859a49a6d763f8efdd9c422e397926aac968c028f8ad77f338cb0028df2c007162d43bde076bfc6f34
7
+ data.tar.gz: 847a1fb9bccb3dbbaca66cfe8a9d5e9f40cb81b5db45b4c0a4374d5f25b52267afc5402248820ecea28775ef2e8e42bc1aa9e28bfc1497f00187af22006a2569
@@ -1,14 +1,23 @@
1
1
  <% if object.image_url.present? %>
2
- <%= pb_content_tag(object.tag,
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
- <%= pb_content_tag(object.tag,
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,3 +1,8 @@
1
- <%= pb_content_tag(object.tag) do %>
1
+ <%= content_tag(object.tag,
2
+ aria: object.aria,
3
+ id: object.id,
4
+ data: object.data,
5
+ class: object.classname,
6
+ **combined_html_options) do %>
2
7
  <%= object.content %>
3
8
  <% end %>
@@ -1,4 +1,9 @@
1
- <%= pb_content_tag do%>
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 %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag(:nav) do %>
1
+ <%= content_tag(:nav,
2
+ aria: object.aria,
3
+ id: object.id,
4
+ data: object.data,
5
+ class: object.classname,
6
+ **combined_html_options) do %>
2
7
  <%= content.presence %>
3
8
  <% end %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag(object.tag) do %>
1
+ <%= content_tag(object.tag,
2
+ aria: object.aria,
3
+ id: object.id,
4
+ data: object.data,
5
+ class: object.classname,
6
+ **combined_html_options) do %>
2
7
  <%= content.presence || object.text %>
3
8
  <% end %>
@@ -1,4 +1,10 @@
1
- <%= pb_content_tag(object.tag) do %>
1
+ <%= content_tag(object.tag,
2
+ id: object.id,
3
+ data: object.data,
4
+ class: object.classname,
5
+ aria: object.aria,
6
+ dark: object.dark,
7
+ **combined_html_options) do %>
2
8
  <%= content.presence %>
3
9
  <% end %>
4
10
 
@@ -18,7 +18,7 @@
18
18
  height: auto;
19
19
  }
20
20
  .icon_wrapper:hover {
21
- color: $primary_action_dark
21
+ color: $primary
22
22
  }
23
23
 
24
24
  .dark {
@@ -19,7 +19,7 @@ const CollapsibleColor = (props) => (
19
19
  </Collapsible.Content>
20
20
  </Collapsible>
21
21
  <Collapsible
22
- iconColor='lighter'
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='light'
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 PropTypes from 'prop-types'
3
- import { Collapsible, useCollapsible, Flex, Title, List, ListItem } from '../..'
2
+ import { Collapsible, useCollapsible, Background, Flex, Title, List, ListItem } from '../..'
4
3
 
5
- const CollapsibleCustomMain = (props) => {
4
+ const CollapsibleCustomMain = () => {
6
5
  const [isCollapsed, setIsCollapsed] = useCollapsible(true)
7
6
 
8
7
  return (
9
- <>
10
- <Collapsible collapsed={isCollapsed}>
11
- <Flex
12
- align="center"
13
- cursor="pointer"
14
- gap="sm"
15
- htmlOptions={{onClick:() => setIsCollapsed(!isCollapsed)}}
16
- justify="between"
17
- position="sticky"
18
- top="0"
19
- >
20
- <Title
21
- dark={props.dark}
22
- size={4}
23
- text="Custom Main Section" />
24
- </Flex>
25
- <Collapsible.Content
26
- padding="none">
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
- <List>
32
+ <List>
29
33
  <ListItem
30
34
  align="stretch"
31
35
  flexDirection="column"
32
36
  >
33
- {"Checklist item"}
37
+ Checklist item
34
38
  </ListItem>
35
39
  <ListItem
36
40
  align="stretch"
37
41
  flexDirection="column"
38
42
  >
39
- {"Checklist item"}
43
+ Checklist item
40
44
  </ListItem>
41
45
  <ListItem
42
46
  align="stretch"
43
47
  flexDirection="column"
44
48
  >
45
- {"Checklist item"}
49
+ Checklist item
46
50
  </ListItem>
47
51
  <ListItem
48
52
  align="stretch"
49
53
  flexDirection="column"
50
54
  >
51
- {"Checklist item"}
55
+ Checklist item
52
56
  </ListItem>
53
57
  <ListItem
54
58
  align="stretch"
55
59
  flexDirection="column"
56
60
  >
57
- {"Checklist item"}
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("flex", props: { position: "sticky", top: "0", cursor: "pointer", data: { "collapsible-main": "true", align: "center", gap: "sm", justify: "between" } }) do %>
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 PropTypes from 'prop-types'
3
- import { Collapsible, useCollapsible, Flex, Title, List, ListItem } from '../..'
2
+ import { Collapsible, useCollapsible, Background, Flex, Title, List, ListItem } from '../..'
4
3
 
5
- const CollapsibleCustomMainWithIcon = (props) => {
4
+ const CollapsibleCustomMainWithIcon = () => {
6
5
  const [isCollapsed, setIsCollapsed] = useCollapsible(true)
7
6
 
8
7
  return (
9
- <>
10
- <Collapsible collapsed={isCollapsed}>
11
- <Flex
12
- align="center"
13
- cursor="pointer"
14
- gap="sm"
15
- htmlOptions={{onClick:() => setIsCollapsed(!isCollapsed)}}
16
- justify="between"
17
- position="sticky"
18
- top="0"
19
- >
20
- <Title
21
- dark={props.dark}
22
- size={4}
23
- text="Custom Main Section"
24
- />
25
- <Collapsible.Icon collapsed={isCollapsed} />
26
- </Flex>
27
- <Collapsible.Content
28
- padding="none"
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
- {"Checklist item"}
38
+ Checklist item
37
39
  </ListItem>
38
40
  <ListItem
39
41
  align="stretch"
40
42
  flexDirection="column"
41
43
  >
42
- {"Checklist item"}
44
+ Checklist item
43
45
  </ListItem>
44
46
  <ListItem
45
47
  align="stretch"
46
48
  flexDirection="column"
47
49
  >
48
- {"Checklist item"}
50
+ Checklist item
49
51
  </ListItem>
50
52
  <ListItem
51
53
  align="stretch"
52
54
  flexDirection="column"
53
55
  >
54
- {"Checklist item"}
56
+ Checklist item
55
57
  </ListItem>
56
58
  <ListItem
57
59
  align="stretch"
58
60
  flexDirection="column"
59
61
  >
60
- {"Checklist item"}
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
@@ -1,8 +1,12 @@
1
1
  <%= pb_rails("collapsible", props: { name: "default-example" }) do %>
2
- <%= pb_rails("flex", props: { position: "sticky", top: "0", cursor: "pointer", data: { "collapsible-main": "true" }, align: "center", gap: "sm", justify: "between" }) do %>
3
- <%= pb_rails("title", props: { text: "Custom Main Section", tag: "h4", size: 4 }) %>
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
- <% end %>
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 %>
@@ -7,7 +7,6 @@ const CollapsibleIcons = (props) => {
7
7
  <>
8
8
  <Collapsible
9
9
  icon={['plus','minus']}
10
- iconColor='white'
11
10
  >
12
11
  <Collapsible.Main {...props}>
13
12
  <div>{'Main Section'}</div>
@@ -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 === 'email') return contactString
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 (contactType === 'extension') {
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?: { [key: string]: string }
54
- dark?: boolean
55
- htmlOptions?: { [key: string]: string | number | boolean | (() => void) }
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={"light"}
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
- {contactDetail && (
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 %>