playbook_ui 13.27.0.pre.alpha.dropdowncustomoptionfix2924 → 13.27.0.pre.alpha.powercentrainplaybookpt22905

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_button/_button.scss +3 -3
  3. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +3 -3
  4. data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +1 -1
  5. data/app/pb_kits/playbook/pb_dashboard/commonSettings.js +1 -1
  6. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +1 -1
  7. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +1 -1
  8. data/app/pb_kits/playbook/pb_date_range_inline/docs/example.yml +1 -4
  9. data/app/pb_kits/playbook/pb_date_stacked/docs/example.yml +0 -7
  10. data/app/pb_kits/playbook/pb_date_time/docs/example.yml +0 -6
  11. data/app/pb_kits/playbook/pb_date_year_stacked/docs/example.yml +0 -4
  12. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +0 -4
  13. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +4 -1
  14. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +3 -6
  15. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +6 -11
  16. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +2 -5
  17. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options_rails.html.erb +8 -13
  18. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.md +1 -1
  19. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +2 -5
  20. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.html.erb +8 -13
  21. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +1 -1
  22. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb +8 -2
  23. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.rb +5 -1
  24. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +12 -2
  25. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +0 -9
  26. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -1
  27. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
  28. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +1 -1
  29. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +0 -19
  30. data/app/pb_kits/playbook/tokens/_titles.scss +4 -4
  31. data/app/pb_kits/playbook/tokens/_typography.scss +10 -10
  32. data/dist/playbook-rails.js +4 -4
  33. data/dist/reset.css +1 -1
  34. data/lib/playbook/forms/builder.rb +0 -1
  35. data/lib/playbook/version.rb +1 -1
  36. metadata +2 -23
  37. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default_swift.md +0 -61
  38. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_props_swift.md +0 -11
  39. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold_swift.md +0 -32
  40. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default_swift.md +0 -17
  41. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year_swift.md +0 -19
  42. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_props_swift.md +0 -10
  43. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reversed_swift.md +0 -17
  44. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_alignment_swift.md +0 -39
  45. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_default_swift.md +0 -39
  46. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_props_swift.md +0 -15
  47. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_size_swift.md +0 -78
  48. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default_swift.md +0 -20
  49. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_props_swift.md +0 -6
  50. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children_swift.md +0 -23
  51. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close_swift.md +0 -7
  52. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default_swift.md +0 -9
  53. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_dismiss_with_timer_swift.md +0 -22
  54. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_swift.md +0 -9
  55. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions_swift.md +0 -62
  56. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_props_swift.md +0 -8
  57. data/lib/playbook/forms/builder/phone_number_field.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d07ba5dc94705836ad486e9606acd32e8013bb0cae7fea0ed4ae16fbc5b3de60
4
- data.tar.gz: b9d4645dc7a4b61263b23913b621a3fa3ce62ba147c46cc1e3d663d0afd13624
3
+ metadata.gz: 74d7359c8120c5c70d7f9921d02699ff6f9cf3f0c937af7a1f8b7470413d3ec9
4
+ data.tar.gz: 109783b9b43e8a3fd37d20394c1c492f1ab048ffc5f7e88dbcf44b85aa0a2cb1
5
5
  SHA512:
6
- metadata.gz: 7d5ec21ddff322928deb63fd1358d8a46be01ff05b42ad8faeeeb9c0cdef6c866942d1c7a9a9fe3d64246c1af1f8d4ca4a8333f01911a84e404151dcee03c8ca
7
- data.tar.gz: 274bc67acfa12de1ebef9b992ac73939d0b5b7cd1d7681bc6f6ace3fdaa392706bf85dd8fd2030dc72fb6c1b70cd8e687e289330993e4e19bcbf1a927713ad5d
6
+ metadata.gz: 2e13c1b3ddf3053fbb089f1aa974501f91cc30217d511ddb8138e83304542b3e8a2e81d4cbbfa88de95d132f2c327f94f6552cf139e5ef3f53fb665d79b37a0b
7
+ data.tar.gz: 0f12b7619fcff70e4f499b0e05532497abda01537861143f9d3320d0ce51be870009b150f5ddedd304ab0d30993f0cf4ee6de4252f784c821baf6cefa1a18c04
@@ -6,9 +6,9 @@
6
6
  @import "../tokens/typography";
7
7
 
8
8
  $pb_button_sizes: (
9
- "sm": 0.75rem,
10
- "md": 0.875rem,
11
- "lg": 1.125rem,
9
+ "sm": $font_smaller,
10
+ "md": $font_small,
11
+ "lg": ($font_large - 2px),
12
12
  );
13
13
 
14
14
  [class*=pb_button_kit]{
@@ -9,7 +9,7 @@
9
9
 
10
10
  $pb_button_size: 40px;
11
11
  $pb_button_v_padding: 7px;
12
- $pb_button_h_padding: 34px;
12
+ $pb_button_h_padding: 28px;
13
13
  $pb_button_hover_darken: 4%;
14
14
  $pb_button_border_width: 0px;
15
15
 
@@ -27,13 +27,13 @@ $pb_button_border_width: 0px;
27
27
  text-rendering: optimizeLegibility;
28
28
  font-size: $font_small;
29
29
  font-weight: $bold;
30
+ letter-spacing: $lspace_loose;
30
31
  text-align: center;
31
- text-decoration: none;
32
32
  vertical-align: middle;
33
33
  text-transform: none;
34
34
  border-width: $pb_button_border_width;
35
35
  border-style: solid;
36
- border-radius: $border_rad_light;
36
+ border-radius: $border_rad_heavy;
37
37
  min-height: $pb_button_size;
38
38
  line-height: 1.5;
39
39
  padding: $pb_button_v_padding $pb_button_h_padding;
@@ -24,7 +24,7 @@ $pb_dark_caption_colors: (
24
24
  color: $text_lt_light;
25
25
  text-transform: uppercase;
26
26
  font-size: $font_size;
27
- letter-spacing: $lspace_looser;
27
+ letter-spacing: $lspace_loosest;
28
28
  }
29
29
 
30
30
  @mixin caption_color($color: $text_lt_light) {
@@ -53,7 +53,7 @@ const adjustAxisStyle = (axis) => {
53
53
  /* Change axis label styles */
54
54
  axis.labels.style.fontFamily = typography.font_family_base
55
55
  axis.labels.style.color = colors.charcoal
56
- axis.labels.style.fontWeight = typography.light
56
+ axis.labels.style.fontWeight = typography.regular
57
57
  axis.labels.style.fontSize = typography.font_small
58
58
  }
59
59
 
@@ -27,7 +27,7 @@ const highchartsDarkTheme: ThemeProps = {
27
27
  style: {
28
28
  color: colors.text_dk_default,
29
29
  fontFamily: typography.font_family_base,
30
- fontWeight: typography.regular,
30
+ fontWeight: typography.bold,
31
31
  fontSize: typography.heading_3,
32
32
  },
33
33
  },
@@ -27,7 +27,7 @@ const highchartsTheme: ThemeProps = {
27
27
  style: {
28
28
  color: colors.text_lt_default,
29
29
  fontFamily: typography.font_family_base,
30
- fontWeight: typography.regular,
30
+ fontWeight: typography.bold,
31
31
  fontSize: typography.heading_3,
32
32
  },
33
33
  },
@@ -6,7 +6,4 @@ examples:
6
6
 
7
7
  react:
8
8
  - date_range_inline_default: Default
9
-
10
- swift:
11
- - date_range_inline_default_swift: Default
12
- - date_range_inline_props_swift: ""
9
+
@@ -15,10 +15,3 @@ examples:
15
15
  - date_stacked_reverse: Day & Month Reverse
16
16
  - date_stacked_sizes: Sizes
17
17
  - date_stacked_bold: Bold
18
-
19
- swift:
20
- - date_stacked_default_swift: Default
21
- - date_stacked_not_current_year_swift: Not Current Year
22
- - date_stacked_reversed_swift: Day & Month Reverse
23
- - date_stacked_bold_swift: Bold
24
- - date_stacked_props_swift: ""
@@ -9,9 +9,3 @@ examples:
9
9
  - date_time_default: Default
10
10
  - date_time_align: Alignment
11
11
  - date_time_size: Size
12
-
13
- swift:
14
- - date_time_default_swift: Default
15
- - date_time_alignment_swift: Alignment
16
- - date_time_size_swift: Size
17
- - date_time_props_swift: ""
@@ -5,7 +5,3 @@ examples:
5
5
 
6
6
  react:
7
7
  - date_year_stacked_default: Default
8
-
9
- swift:
10
- - date_year_stacked_default_swift: Default
11
- - date_year_stacked_props_swift: ""
@@ -63,10 +63,6 @@
63
63
  width: 100%;
64
64
 
65
65
  [class*="pb_dropdown_option"] {
66
- padding-left: $space_sm;
67
- padding-right: $space_sm;
68
- padding-top: $space_xs;
69
- padding-bottom: $space_xs;
70
66
  cursor: pointer;
71
67
  &:hover {
72
68
  background-color: $border_light;
@@ -4,6 +4,7 @@ import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from "../uti
4
4
  import { globalProps } from "../utilities/globalProps";
5
5
  import { GenericObject } from "../types";
6
6
 
7
+ import Body from "../pb_body/_body";
7
8
  import Caption from "../pb_caption/_caption";
8
9
 
9
10
  import DropdownContainer from "./subcomponents/DropdownContainer";
@@ -234,7 +235,9 @@ const Dropdown = (props: DropdownProps) => {
234
235
  options?.map((option: GenericObject) => (
235
236
  <Dropdown.Option key={option.id}
236
237
  option={option}
237
- />
238
+ >
239
+ <Body text={option.label} />
240
+ </Dropdown.Option>
238
241
  ))}
239
242
  </DropdownContainer>
240
243
  </>
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react'
2
- import { Dropdown, User, Flex, FlexItem, Badge, Avatar } from '../../'
2
+ import { Dropdown, User, FlexItem, Badge, Avatar } from '../../'
3
3
 
4
4
  const DropdownWithCustomDisplay = (props) => {
5
5
  const [selectedOption, setSelectedOption] = useState();
@@ -69,10 +69,7 @@ const DropdownWithCustomDisplay = (props) => {
69
69
  <Dropdown.Option key={option.id}
70
70
  option={option}
71
71
  >
72
- <Flex
73
- align="center"
74
- justify="between"
75
- >
72
+ <>
76
73
  <FlexItem>
77
74
  <User
78
75
  align="left"
@@ -96,7 +93,7 @@ const DropdownWithCustomDisplay = (props) => {
96
93
  }`}
97
94
  />
98
95
  </FlexItem>
99
- </Flex>
96
+ </>
100
97
  </Dropdown.Option>
101
98
  ))}
102
99
  </Dropdown>
@@ -48,17 +48,12 @@
48
48
  <%= pb_rails("dropdown/dropdown_container") do %>
49
49
  <% options.each do |option| %>
50
50
  <%= pb_rails("dropdown/dropdown_option", props: {option: option}) do %>
51
- <%= pb_rails("flex", props: {
52
- align: "center",
53
- justify: "between",
54
- }) do %>
55
- <%= pb_rails("flex/flex_item") do %>
56
- <%= pb_rails("user", props: {name: option[:label], align:"left", avatar: true, orientation:"horizontal", territory:option[:territory], title: option[:title]}) %>
57
- <% end %>
58
- <%= pb_rails("flex/flex_item") do %>
59
- <%= pb_rails("badge", props: {rounded: true, dark: true, text: option[:status], variant: option[:status] == "Offline" ? "neutral" : option[:status] == "Online" ? "success" : "warning" }) %>
60
- <% end %>
61
- <% end %>
51
+ <%= pb_rails("flex/flex_item") do %>
52
+ <%= pb_rails("user", props: {name: option[:label], align:"left", avatar: true, orientation:"horizontal", territory:option[:territory], title: option[:title]}) %>
53
+ <% end %>
54
+ <%= pb_rails("flex/flex_item") do %>
55
+ <%= pb_rails("badge", props: {rounded: true, dark: true, text: option[:status], variant: option[:status] == "Offline" ? "neutral" : option[:status] == "Online" ? "success" : "warning" }) %>
56
+ <% end %>
62
57
  <% end %>
63
58
  <% end %>
64
59
  <% end %>
@@ -38,10 +38,7 @@ const DropdownWithCustomOptions = (props) => {
38
38
  <Dropdown.Option key={option.id}
39
39
  option={option}
40
40
  >
41
- <Flex
42
- align="center"
43
- justify="between"
44
- >
41
+ <>
45
42
  <FlexItem>
46
43
  <Flex>
47
44
  <Icon icon={option.icon}
@@ -55,7 +52,7 @@ const DropdownWithCustomOptions = (props) => {
55
52
  text={option.areaCode}
56
53
  />
57
54
  </FlexItem>
58
- </Flex>
55
+ </>
59
56
  </Dropdown.Option>
60
57
  ))}
61
58
  </Dropdown>
@@ -30,19 +30,14 @@
30
30
  <%= pb_rails("dropdown/dropdown_container") do %>
31
31
  <% options.each do |option| %>
32
32
  <%= pb_rails("dropdown/dropdown_option", props: {option: option}) do %>
33
- <%= pb_rails("flex", props: {
34
- align: "center",
35
- justify: "between",
36
- }) do %>
37
- <%= pb_rails("flex/flex_item") do %>
38
- <%= pb_rails("flex") do %>
39
- <%= pb_rails("icon", props: {icon: option[:icon]}) %>
40
- <%= pb_rails("body", props: {text: option[:label], padding_left:"xs"}) %>
41
- <% end %>
42
- <% end %>
43
- <%= pb_rails("flex/flex_item") do %>
44
- <%= pb_rails("body", props: {color:"light", text: option[:areaCode]}) %>
45
- <% end %>
33
+ <%= pb_rails("flex/flex_item") do %>
34
+ <%= pb_rails("flex") do %>
35
+ <%= pb_rails("icon", props: {icon: option[:icon]}) %>
36
+ <%= pb_rails("body", props: {text: option[:label], padding_left:"xs"}) %>
37
+ <% end %>
38
+ <% end %>
39
+ <%= pb_rails("flex/flex_item") do %>
40
+ <%= pb_rails("body", props: {color:"light", text: option[:areaCode]}) %>
46
41
  <% end %>
47
42
  <% end %>
48
43
  <% end %>
@@ -1 +1 @@
1
- By default, dropdown option paddingX is set to `sm` and paddingY is set to `xs`, but this padding can be overridden using our global padding props. In this example we are setting the option padding to `sm` all around.
1
+ By default, dropdown option padding is set to `xs`, but this padding can be overridden using our global prop spacing token. In this example we are increasing the option padding to `sm`.
@@ -51,10 +51,7 @@ const [selectedOption, setSelectedOption] = useState();
51
51
  <Dropdown.Option key={option.id}
52
52
  option={option}
53
53
  >
54
- <Flex
55
- align="center"
56
- justify="between"
57
- >
54
+ <>
58
55
  <FlexItem>
59
56
  <Flex>
60
57
  <Icon icon={option.icon}
@@ -68,7 +65,7 @@ const [selectedOption, setSelectedOption] = useState();
68
65
  text={option.areaCode}
69
66
  />
70
67
  </FlexItem>
71
- </Flex>
68
+ </>
72
69
  </Dropdown.Option>
73
70
  ))}
74
71
  </Dropdown.Container>
@@ -32,20 +32,15 @@
32
32
  <%= pb_rails("dropdown/dropdown_container", props:{max_width:"xs"}) do %>
33
33
  <% options.each do |option| %>
34
34
  <%= pb_rails("dropdown/dropdown_option", props: {option: option}) do %>
35
- <%= pb_rails("flex", props: {
36
- align: "center",
37
- justify: "between",
38
- }) do %>
39
35
  <%= pb_rails("flex/flex_item") do %>
40
- <%= pb_rails("flex") do %>
41
- <%= pb_rails("icon", props: {icon: option[:icon]}) %>
42
- <%= pb_rails("body", props: {text: option[:label], padding_left:"xs"}) %>
43
- <% end %>
44
- <% end %>
45
- <%= pb_rails("flex/flex_item") do %>
46
- <%= pb_rails("body", props: {color:"light", text: option[:areaCode]}) %>
47
- <% end %>
48
- <% end %>
36
+ <%= pb_rails("flex") do %>
37
+ <%= pb_rails("icon", props: {icon: option[:icon]}) %>
38
+ <%= pb_rails("body", props: {text: option[:label], padding_left:"xs"}) %>
39
+ <% end %>
40
+ <% end %>
41
+ <%= pb_rails("flex/flex_item") do %>
42
+ <%= pb_rails("body", props: {color:"light", text: option[:areaCode]}) %>
43
+ <% end %>
49
44
  <% end %>
50
45
  <% end %>
51
46
  <% end %>
@@ -203,5 +203,5 @@ test('selected option on click', () => {
203
203
  const kit = screen.getByTestId(testId)
204
204
  const option = kit.querySelector('.pb_dropdown_option_list')
205
205
  option.click()
206
- expect(option).toHaveClass('pb_dropdown_option_selected')
206
+ expect(option).toHaveClass('pb_dropdown_option_selected p_xs')
207
207
  })
@@ -10,12 +10,18 @@
10
10
  padding:"none",
11
11
  cursor: "pointer"
12
12
  }) do %>
13
- <div class="dropdown_option_wrapper">
13
+ <%= pb_rails("flex", props: {
14
+ align: "center",
15
+ classname:"dropdown_option_wrapper",
16
+ justify: "between",
17
+ padding_x:"sm",
18
+ padding_y:"xxs",
19
+ }) do %>
14
20
  <% if content.present? %>
15
21
  <%= content.presence %>
16
22
  <% else %>
17
23
  <%= pb_rails("body", props: {text: object.option[:label]}) %>
18
24
  <% end %>
19
- </div>
25
+ <% end %>
20
26
  <% end %>
21
27
  <% end %>
@@ -10,8 +10,12 @@ module Playbook
10
10
  Hash(prop(:data)).merge("dropdown_option_label": option)
11
11
  end
12
12
 
13
+ def padding_helper
14
+ " p_xs"
15
+ end
16
+
13
17
  def classname
14
- generate_classname("pb_dropdown_option", "list")
18
+ generate_classname("pb_dropdown_option", "list") + padding_helper
15
19
  end
16
20
  end
17
21
  end
@@ -10,6 +10,7 @@ import { globalProps, GlobalProps } from "../../utilities/globalProps";
10
10
 
11
11
  import DropdownContext from "../context";
12
12
 
13
+ import Flex from "../../pb_flex/_flex";
13
14
  import Body from "../../pb_body/_body";
14
15
  import ListItem from "../../pb_list/_list_item";
15
16
  import { GenericObject } from "../../types";
@@ -38,6 +39,7 @@ const DropdownOption = (props: DropdownOptionProps) => {
38
39
  id,
39
40
  key,
40
41
  option,
42
+ padding = "xs",
41
43
  } = props;
42
44
 
43
45
  const {
@@ -75,7 +77,7 @@ const DropdownOption = (props: DropdownOptionProps) => {
75
77
  selectedClass,
76
78
  focusedClass,
77
79
  ),
78
- globalProps(props),
80
+ globalProps(props, {padding}),
79
81
  className
80
82
  );
81
83
 
@@ -96,12 +98,20 @@ const DropdownOption = (props: DropdownOptionProps) => {
96
98
  key={option.label}
97
99
  padding="none"
98
100
  >
101
+ <Flex
102
+ align="center"
103
+ className="dropdown_option_wrapper"
104
+ justify="between"
105
+ paddingX="sm"
106
+ paddingY="xxs"
107
+ >
99
108
  {children ?
100
- <div className="dropdown_option_wrapper">{children}</div> :
109
+ children :
101
110
  <Body dark={dark}
102
111
  text={option.label}
103
112
  />
104
113
  }
114
+ </Flex>
105
115
  </ListItem>
106
116
  </div>
107
117
  );
@@ -14,12 +14,3 @@ examples:
14
14
  - fixed_confirmation_toast_positions: Click to Show Positions
15
15
  - fixed_confirmation_toast_auto_close: Click to Show Auto Close
16
16
  - fixed_confirmation_toast_children: Children
17
-
18
- swift:
19
- - fixed_confirmation_toast_default_swift: Default
20
- - fixed_confirmation_toast_multi_line_swift: Multi Line
21
- #- fixed_confirmation_toast_close_swift: Click to Close
22
- #- fixed_confirmation_toast_positions_swift: Click to Show Positions
23
- - fixed_confirmation_toast_children_swift: Children
24
- #- fixed_confirmation_toast_dismiss_with_timer_swift: Timer
25
- - fixed_confirmation_toast_props_swift: ""
@@ -16,7 +16,7 @@
16
16
  <%= pb_form_with(scope: :example, url: "", method: :get) do |form| %>
17
17
  <%= form.typeahead :example_user, props: { data: { typeahead_example1: true, user: {} }, placeholder: "Search for a user" } %>
18
18
  <%= form.text_field :example_text_field, props: { label: true } %>
19
- <%= form.phone_number_field :example_phone_number_field, props: { label: "Example phone field" } %>
19
+ <%= form.telephone_field :example_phone_field, props: { label: true } %>
20
20
  <%= form.email_field :example_email_field, props: { label: true } %>
21
21
  <%= form.number_field :example_number_field, props: { label: true } %>
22
22
  <%= form.search_field :example_search_field, props: { label: true } %>
@@ -15,7 +15,7 @@
15
15
 
16
16
  <%= pb_form_with(scope: :example, method: :get, url: "", validate: true) do |form| %>
17
17
  <%= form.text_field :example_text_field, props: { label: true, required: true } %>
18
- <%= form.phone_number_field :example_phone_number_field, props: { label: "Example phone field" } %>
18
+ <%= form.telephone_field :example_phone_field, props: { label: true, required: true, validation: { pattern: "[0-9]{3}-[0-9]{3}-[0-9]{4}", message: "Please enter a valid phone number (example: 888-888-8888)." } } %>
19
19
  <%= form.email_field :example_email_field, props: { label: true, required: true } %>
20
20
  <%= form.number_field :example_number_field, props: { label: true, required: true } %>
21
21
  <%= form.search_field :example_project_number, props: { label: true, required: true, validation: { pattern: "[0-9]{2}-[0-9]{5}", message: "Please enter a valid project number (example: 33-12345)." } } %>
@@ -55,7 +55,7 @@ $form_pill_colors: (
55
55
  height: fit-content;
56
56
  height: -moz-fit-content;
57
57
  .pb_form_pill_text, .pb_form_pill_close, .pb_form_pill_tag {
58
- font-size: 16px;
58
+ font-size: $font_base;
59
59
  font-weight: $regular;
60
60
  }
61
61
  .pb_form_pill_text, .pb_form_pill_tag {
@@ -76,25 +76,6 @@
76
76
  .text_input {
77
77
  border-color: $error_dark;
78
78
  }
79
- [class*=pb_body_kit_negative] {
80
- color: $error_dark;
81
- }
82
- }
83
- .text_input_wrapper_add_on {
84
- .add-on {
85
- &-right {
86
- .add-on-card {
87
- border: 1px solid $error_dark;
88
- border-left: 0;
89
- }
90
- }
91
- &-left {
92
- .add-on-card {
93
- border: 1px solid $error_dark;
94
- border-right: 0;
95
- }
96
- }
97
- }
98
79
  }
99
80
  }
100
81
  }
@@ -5,10 +5,11 @@
5
5
  @mixin pb_title(
6
6
  $fontSize: $heading_1,
7
7
  $fontWeight: $lighter,
8
- $lineHeight: $lh_tighter
8
+ $lineHeight: $lh_tighter,
9
+ $letterSpacing: $lspace_tight
9
10
  ){
10
11
  font-size: $fontSize;
11
- letter-spacing: $lspace_tight;
12
+ letter-spacing: $letterSpacing;
12
13
  font-weight: $fontWeight;
13
14
  color: $text_lt_default;
14
15
  margin: 0;
@@ -29,8 +30,7 @@
29
30
  }
30
31
 
31
32
  @mixin pb_title_4 {
32
- @include pb_title($heading_4, $bolder);
33
- letter-spacing: -0.03em;
33
+ @include pb_title($heading_4, $bolder, $letterSpacing: $lspace_normal);
34
34
  }
35
35
 
36
36
  @mixin pb_title_dark {
@@ -1,11 +1,11 @@
1
- $font_family_base: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans_serif !default;
1
+ $font_family_base: "Power Centra", "Helvetica Neue", Helvetica, Arial, sans_serif !default;
2
2
 
3
3
  /* CLEAN UP AND REMOVE */
4
4
  $font_jumbo: 36px !default;
5
5
  $font_largest: 32px !default;
6
- $font_larger: 28px !default;
6
+ $font_larger: 27px !default;
7
7
  $font_large: 20px !default;
8
- $font_base: 16px !default;
8
+ $font_base: 15.5px !default;
9
9
  $font_default: $font_base !default;
10
10
  $font_normal: $font_base !default;
11
11
  $font_medium: $font_base !default;
@@ -26,8 +26,8 @@ $text_smaller: $font_smaller !default;
26
26
  $text_smallest: $font_smallest !default;
27
27
 
28
28
  /* Headings */
29
- $heading_1: 46px !default;
30
- $heading_2: 34px !default;
29
+ $heading_1: 44px !default;
30
+ $heading_2: 32px !default;
31
31
  $heading_3: $font_larger !default;
32
32
  $heading_4: $font_base !default;
33
33
 
@@ -35,19 +35,19 @@ $heading_4: $font_base !default;
35
35
  $lspace_tightest: -.1em !default;
36
36
  $lspace_tighter: -.07em !default;
37
37
  $lspace_tight: -.01em !default;
38
- $lspace_normal: 0 !default;
38
+ $lspace_normal: .003em !default;
39
39
  $lspace_loose: .03em !default;
40
40
  $lspace_looser: .07em !default;
41
41
  $lspace_loosest: .1em !default;
42
42
  $lspace_super_loosest: .2em !default;
43
43
 
44
44
  /* Standard Font Weights */
45
- $bold: 600 !default;
45
+ $bold: 700 !default;
46
46
  $regular: 400 !default;
47
47
 
48
48
  /* Non_Standard Font Weights */
49
- $extrabold: 900 !default;
50
- $boldest: 800 !default;
49
+ $extrabold: 700 !default;
50
+ $boldest: 700 !default;
51
51
  $bolder: 700 !default;
52
52
  $light: 300 !default;
53
- $lighter: 100 !default;
53
+ $lighter: 300 !default;