playbook_ui 14.9.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5121 → 14.9.0.pre.alpha.PLAY1660reactdropzone5020

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/CollapsibleTrail.tsx +6 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +3 -11
  4. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +1 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +2 -2
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +2 -4
  8. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +0 -8
  9. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +0 -2
  10. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb +0 -8
  11. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb +0 -2
  12. data/app/pb_kits/playbook/pb_card/_card.tsx +7 -7
  13. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +1 -1
  14. data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +1 -21
  15. data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +0 -50
  16. data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
  17. data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +24 -15
  18. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_accept.jsx +3 -1
  19. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_description.jsx +4 -1
  20. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_max_size.jsx +1 -1
  21. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +2 -11
  22. data/app/pb_kits/playbook/pb_gauge/_gauge.scss +1 -31
  23. data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +3 -3
  24. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +5 -25
  25. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +1 -17
  26. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.html.erb +1 -17
  27. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx +0 -15
  28. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.md +1 -2
  29. data/app/pb_kits/playbook/pb_home_address_street/home_address_street.rb +1 -15
  30. data/app/pb_kits/playbook/pb_table/_table.tsx +6 -6
  31. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb +48 -30
  32. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  33. data/app/pb_kits/playbook/pb_table/index.ts +3 -5
  34. data/app/pb_kits/playbook/pb_table/styles/_scroll.scss +3 -28
  35. data/app/pb_kits/playbook/pb_table/styles/_sticky_columns.scss +1 -0
  36. data/app/pb_kits/playbook/pb_table/table.html.erb +1 -7
  37. data/app/pb_kits/playbook/pb_table/table.rb +0 -4
  38. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +1 -8
  39. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +46 -115
  40. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +2 -9
  41. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +2 -3
  42. data/dist/chunks/_typeahead-CZ_5SxHq.js +36 -0
  43. data/dist/chunks/_weekday_stacked-D345GDEZ.js +45 -0
  44. data/dist/chunks/{lib-sMFo2JZy.js → lib-CuCy3_xO.js} +1 -1
  45. data/dist/chunks/{pb_form_validation-CgvjWbOK.js → pb_form_validation-D37k10a0.js} +1 -1
  46. data/dist/chunks/vendor.js +1 -1
  47. data/dist/playbook-doc.js +1 -1
  48. data/dist/playbook-rails-react-bindings.js +1 -1
  49. data/dist/playbook-rails.js +1 -1
  50. data/dist/playbook.css +1 -1
  51. data/lib/playbook/version.rb +1 -1
  52. metadata +6 -12
  53. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb +0 -36
  54. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.md +0 -1
  55. data/app/pb_kits/playbook/pb_form_group/_error_state_mixin.scss +0 -57
  56. data/app/pb_kits/playbook/pb_home_address_street/none_emphasis.html.erb +0 -32
  57. data/app/pb_kits/playbook/pb_home_address_street/none_emphasis.rb +0 -29
  58. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md +0 -1
  59. data/dist/chunks/_typeahead-DWFImMpi.js +0 -22
  60. data/dist/chunks/_weekday_stacked-UtPiOqYV.js +0 -45
@@ -17,60 +17,47 @@ const GaugeComplex = (props) => (
17
17
  gap="sm"
18
18
  padding="xl"
19
19
  wrap
20
- {...props}
21
20
  >
22
21
  <FlexItem
23
22
  flex={1}
24
23
  grow
25
- {...props}
26
24
  >
27
25
  <Card
28
26
  maxWidth="xs"
29
27
  padding="md"
30
- {...props}
31
28
  >
32
29
  <Title
33
30
  paddingBottom="sm"
34
31
  size={4}
35
32
  text="Abandoned Calls"
36
- {...props}
37
33
  />
38
- <Flex
39
- align="stretch"
40
- {...props}
41
- >
34
+ <Flex align="stretch">
42
35
  <Flex
43
36
  marginRight="sm"
44
37
  orientation="column"
45
- {...props}
46
38
  >
47
39
  <Body
48
40
  color="light"
49
41
  paddingBottom="sm"
50
42
  text="Total Abandoned"
51
- {...props}
52
43
  />
53
44
  <Flex
54
45
  align="baseline"
55
46
  paddingBottom="xs"
56
- {...props}
57
47
  >
58
48
  <Title
59
49
  size={1}
60
50
  text="39"
61
- {...props}
62
51
  />
63
52
  <Title
64
53
  color="light"
65
54
  size={3}
66
55
  text="calls"
67
- {...props}
68
56
  />
69
57
  </Flex>
70
58
  <Caption
71
59
  size="xs"
72
60
  text="of 390"
73
- {...props}
74
61
  />
75
62
  </Flex>
76
63
 
@@ -78,29 +65,22 @@ const GaugeComplex = (props) => (
78
65
  alignSelf="stretch"
79
66
  marginRight="sm"
80
67
  orientation="vertical"
81
- {...props}
82
68
  />
83
69
 
84
70
  <Flex
85
71
  orientation="column"
86
72
  wrap
87
- {...props}
88
73
  >
89
74
  <Body
90
75
  color="light"
91
76
  text="% Abandoned"
92
- {...props}
93
- />
94
- <Flex
95
- wrap
96
- {...props}
97
- >
77
+ />
78
+ <Flex wrap>
98
79
  <FlexItem
99
80
  fixedSize="150px"
100
81
  overflow="hidden"
101
82
  shrink
102
- {...props}
103
- >
83
+ >
104
84
  <Gauge
105
85
  chartData={data}
106
86
  disableAnimation
@@ -110,7 +90,7 @@ const GaugeComplex = (props) => (
110
90
  {...props}
111
91
  />
112
92
  </FlexItem>
113
- </Flex>
93
+ </Flex>
114
94
  </Flex>
115
95
  </Flex>
116
96
  </Card>
@@ -18,7 +18,7 @@ type HomeAddressStreetProps = {
18
18
  className?: string,
19
19
  data?: { [key: string]: string },
20
20
  dark?: boolean,
21
- emphasis: "street" | "city" | "none",
21
+ emphasis: "street" | "city",
22
22
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
23
23
  homeId: string,
24
24
  houseStyle: string,
@@ -129,22 +129,6 @@ const HomeAddressStreet = (props: HomeAddressStreetProps): React.ReactElement =>
129
129
  </div>
130
130
  </div>
131
131
  }
132
- {emphasis == 'none' &&
133
- <div>
134
- <Body dark={dark}>
135
- {joinPresent([titleize(address), houseStyle], ' · ')}
136
- </Body>
137
- <Body dark={dark}>{titleize(addressCont)}</Body>
138
- <div>
139
- <Body
140
- color="light"
141
- dark={dark}
142
- >
143
- {`${titleize(city)}, ${state} ${zipcode}`}
144
- </Body>
145
- </div>
146
- </div>
147
- }
148
132
  {homeId &&
149
133
  <Hashtag
150
134
  classname="home-hashtag"
@@ -24,20 +24,4 @@
24
24
  state: "PA",
25
25
  zipcode: "19382",
26
26
  territory: "PHL",
27
- }) %>
28
-
29
- <br>
30
- <br>
31
-
32
- <%= pb_rails("home_address_street", props: {
33
- address: "70 Prospect Ave",
34
- address_cont: "Apt M18",
35
- city: "West Chester",
36
- emphasis: "none",
37
- home_id: 8250263,
38
- home_url: "https://powerhrg.com/",
39
- house_style: "Colonial",
40
- state: "PA",
41
- zipcode: "19382",
42
- territory: "PHL",
43
- }) %>
27
+ }) %>
@@ -32,21 +32,6 @@ const HomeAddressStreetEmphasis = (props) => {
32
32
  zipcode="19382"
33
33
  {...props}
34
34
  />
35
- <br />
36
- <br />
37
- <HomeAddressStreet
38
- address="70 Prospect Ave"
39
- addressCont="Apt M18"
40
- city="West Chester"
41
- emphasis="none"
42
- homeId="8250263"
43
- homeUrl="https://powerhrg.com/"
44
- houseStyle="Colonial"
45
- state="PA"
46
- territory="PHL"
47
- zipcode="19382"
48
- {...props}
49
- />
50
35
  </div>
51
36
  )
52
37
  }
@@ -1,3 +1,2 @@
1
1
  Emphasis on street happens by default. (no prop needed)
2
- Emphasis on "city" makes the city emphasized, rather than the street.
3
- Adding "none" to emphasis prop will provide no emphasis.
2
+ Emphasis on "city" makes the city emphasized, rather than the street.
@@ -7,7 +7,7 @@ module Playbook
7
7
  prop :address_cont
8
8
  prop :city
9
9
  prop :emphasis, type: Playbook::Props::Enum,
10
- values: %w[street city none],
10
+ values: %w[street city],
11
11
  default: "street"
12
12
  prop :home_id, type: Playbook::Props::Number
13
13
  prop :home_url
@@ -77,20 +77,6 @@ module Playbook
77
77
  }
78
78
  end
79
79
 
80
- def none_emphasis_props
81
- {
82
- address_house_style: address_house_style,
83
- address_house_style2: address_house_style2,
84
- city_state_zip: city_state_zip,
85
- dark: dark,
86
- home_id: home_id,
87
- home_url: home_url,
88
- target: target_option,
89
- new_window: new_window,
90
- territory: territory,
91
- }
92
- end
93
-
94
80
  def target_option
95
81
  if target && home_url
96
82
  target
@@ -92,16 +92,16 @@ const Table = (props: TableProps): React.ReactElement => {
92
92
  useEffect(() => {
93
93
  const handleStickyColumns = () => {
94
94
  let accumulatedWidth = 0;
95
-
95
+
96
96
  stickyLeftcolumn.forEach((colId, index) => {
97
97
  const isLastColumn = index === stickyLeftcolumn.length - 1;
98
98
  const header = document.querySelector(`th[id="${colId}"]`);
99
99
  const cells = document.querySelectorAll(`td[id="${colId}"]`);
100
-
100
+
101
101
  if (header) {
102
102
  header.classList.add('sticky');
103
103
  (header as HTMLElement).style.left = `${accumulatedWidth}px`;
104
-
104
+
105
105
  if (!isLastColumn) {
106
106
  header.classList.add('with-border');
107
107
  header.classList.remove('sticky-shadow');
@@ -109,14 +109,14 @@ const Table = (props: TableProps): React.ReactElement => {
109
109
  header.classList.remove('with-border');
110
110
  header.classList.add('sticky-shadow');
111
111
  }
112
-
112
+
113
113
  accumulatedWidth += (header as HTMLElement).offsetWidth;
114
114
  }
115
-
115
+
116
116
  cells.forEach((cell) => {
117
117
  cell.classList.add('sticky');
118
118
  (cell as HTMLElement).style.left = `${accumulatedWidth - (header as HTMLElement).offsetWidth}px`;
119
-
119
+
120
120
  if (!isLastColumn) {
121
121
  cell.classList.add('with-border');
122
122
  cell.classList.remove('sticky-shadow');
@@ -25,16 +25,16 @@
25
25
  <td id="3">Value 3</td>
26
26
  <td>Value 4</td>
27
27
  <td>Value 5</td>
28
- <td>Value 6</td>
29
- <td>Value 7</td>
30
- <td>Value 8</td>
31
- <td>Value 9</td>
32
- <td>Value 10</td>
33
- <td>Value 11</td>
34
- <td>Value 12</td>
35
- <td>Value 13</td>
36
- <td>Value 14</td>
37
- <td>Value 15</td>
28
+ <td>Column 6</td>
29
+ <td>Column 7</td>
30
+ <td>Column 8</td>
31
+ <td>Column 9</td>
32
+ <td>Column 10</td>
33
+ <td>Column 11</td>
34
+ <td>Column 12</td>
35
+ <td>Column 13</td>
36
+ <td>Column 14</td>
37
+ <td>Column 15</td>
38
38
 
39
39
  </tr>
40
40
  <tr>
@@ -43,16 +43,16 @@
43
43
  <td id="3">Value 3</td>
44
44
  <td>Value 4</td>
45
45
  <td>Value 5</td>
46
- <td>Value 6</td>
47
- <td>Value 7</td>
48
- <td>Value 8</td>
49
- <td>Value 9</td>
50
- <td>Value 10</td>
51
- <td>Value 11</td>
52
- <td>Value 12</td>
53
- <td>Value 13</td>
54
- <td>Value 14</td>
55
- <td>Value 15</td>
46
+ <td>Column 6</td>
47
+ <td>Column 7</td>
48
+ <td>Column 8</td>
49
+ <td>Column 9</td>
50
+ <td>Column 10</td>
51
+ <td>Column 11</td>
52
+ <td>Column 12</td>
53
+ <td>Column 13</td>
54
+ <td>Column 14</td>
55
+ <td>Column 15</td>
56
56
 
57
57
  </tr>
58
58
  <tr>
@@ -61,16 +61,34 @@
61
61
  <td id="3">Value 3</td>
62
62
  <td>Value 4</td>
63
63
  <td>Value 5</td>
64
- <td>Value 6</td>
65
- <td>Value 7</td>
66
- <td>Value 8</td>
67
- <td>Value 9</td>
68
- <td>Value 10</td>
69
- <td>Value 11</td>
70
- <td>Value 12</td>
71
- <td>Value 13</td>
72
- <td>Value 14</td>
73
- <td>Value 15</td>
64
+ <td>Column 6</td>
65
+ <td>Column 7</td>
66
+ <td>Column 8</td>
67
+ <td>Column 9</td>
68
+ <td>Column 10</td>
69
+ <td>Column 11</td>
70
+ <td>Column 12</td>
71
+ <td>Column 13</td>
72
+ <td>Column 14</td>
73
+ <td>Column 15</td>
74
+
75
+ </tr>
76
+ <tr>
77
+ <td id="1">Value 1</td>
78
+ <td id="2">Value 2</td>
79
+ <td id="3">Value 3</td>
80
+ <td>Value 4</td>
81
+ <td>Value 5</td>
82
+ <td>Column 6</td>
83
+ <td>Column 7</td>
84
+ <td>Column 8</td>
85
+ <td>Column 9</td>
86
+ <td>Column 10</td>
87
+ <td>Column 11</td>
88
+ <td>Column 12</td>
89
+ <td>Column 13</td>
90
+ <td>Column 14</td>
91
+ <td>Column 15</td>
74
92
 
75
93
  </tr>
76
94
  </tbody>
@@ -4,7 +4,6 @@ examples:
4
4
  - table_md: Medium
5
5
  - table_lg: Large
6
6
  - table_sticky: Sticky Header
7
- - table_sticky_left_columns: Sticky Left Column
8
7
  - table_header: Table Header
9
8
  - table_alignment_row_rails: Row Alignment
10
9
  - table_alignment_column_rails: Cell Alignment
@@ -34,7 +33,6 @@ examples:
34
33
  - table_md: Medium
35
34
  - table_lg: Large
36
35
  - table_sticky: Sticky Header
37
- - table_sticky_left_columns: Sticky Left Column
38
36
  - table_alignment_row: Row Alignment
39
37
  - table_alignment_column: Cell Alignment
40
38
  - table_alignment_shift_row: Row Shift
@@ -51,11 +51,9 @@ export default class PbTable extends PbEnhancedElement {
51
51
  .split('-');
52
52
 
53
53
  if (this.stickyLeftColumns.length > 0) {
54
- setTimeout(() => {
55
- this.handleStickyColumnsRef = this.handleStickyColumns.bind(this);
56
- this.handleStickyColumns();
57
- window.addEventListener('resize', this.handleStickyColumnsRef);
58
- }, 10);
54
+ this.handleStickyColumnsRef = this.handleStickyColumns.bind(this);
55
+ this.handleStickyColumns();
56
+ window.addEventListener('resize', this.handleStickyColumnsRef);
59
57
  }
60
58
  }
61
59
  });
@@ -1,29 +1,4 @@
1
- @import "../../tokens/screen_sizes";
2
-
3
- .table-responsive-scroll {
4
- display: block;
5
- overflow-x: scroll;
6
-
7
- // Responsive Styles
8
- @media (max-width: 1600px) {
9
- &[class*="table-responsive-scroll"] {
10
- border-radius: 4px;
11
- box-shadow: 1px 0 0 0px $border_light
12
- }
13
-
14
- &[class^=pb_table].table-sm.table-card thead tr th:last-child,
15
- &[class^=pb_table].table-sm:not(.no-hover).table-card tbody tr td:last-child {
16
- border-right-width: 0px;
17
- }
18
-
19
- &[class^=pb_table].table-md.table-card thead tr th:last-child,
20
- &[class^=pb_table].table-md:not(.no-hover).table-card tbody tr td:last-child {
21
- border-right-width: 0px;
22
- }
23
-
24
- &[class^=pb_table].table-lg.table-card thead tr th:last-child,
25
- &[class^=pb_table].table-lg:not(.no-hover).table-card tbody tr td:last-child {
26
- border-right-width: 0px;
27
- }
1
+ .table-responsive-scroll {
2
+ display: block;
3
+ overflow-x: auto;
28
4
  }
29
- }
@@ -3,6 +3,7 @@
3
3
  [class^="pb_table"] {
4
4
  .sticky {
5
5
  position: sticky !important;
6
+ left: 0;
6
7
  z-index: 1;
7
8
  background-color: white;
8
9
  }
@@ -1,10 +1,4 @@
1
- <% if object.responsive_classname %>
2
- <% responsive_class = object.responsive_classname %>
3
- <% else %>
4
- <% responsive_class = nil %>
5
- <% end %>
6
-
7
- <%= content_tag(:div, class: responsive_class) do %>
1
+ <%= content_tag(:div) do %>
8
2
  <% if object.tag == "table" %>
9
3
  <%= content_tag(:table,
10
4
  aria: object.aria,
@@ -45,10 +45,6 @@ module Playbook
45
45
  )
46
46
  end
47
47
 
48
- def responsive_classname
49
- responsive ? "table-responsive-#{responsive}" : nil
50
- end
51
-
52
48
  private
53
49
 
54
50
  def dark_class
@@ -123,13 +123,6 @@ const TextInput = (props: TextInputProps, ref: React.LegacyRef<HTMLInputElement>
123
123
 
124
124
  const childInput = children ? children.type === "input" : undefined
125
125
 
126
- let formattedValue;
127
- if (isMaskedInput) {
128
- formattedValue = INPUTMASKS[mask].format(value.toString())
129
- } else {
130
- formattedValue = value
131
- }
132
-
133
126
  const textInput = (
134
127
  childInput ? React.cloneElement(children, { className: "text_input" }) :
135
128
  (<input
@@ -145,7 +138,7 @@ const TextInput = (props: TextInputProps, ref: React.LegacyRef<HTMLInputElement>
145
138
  ref={ref}
146
139
  required={required}
147
140
  type={type}
148
- value={formattedValue}
141
+ value={value}
149
142
  />)
150
143
  )
151
144
 
@@ -90,7 +90,50 @@
90
90
  }
91
91
  }
92
92
  }
93
-
93
+ &[class*=dark] {
94
+ .pb_typeahead_wrapper .pb_typeahead_loading_indicator {
95
+ color: $text_dk_light;
96
+ }
97
+ [class^=pb_text_input_kit].dark .text_input_wrapper .text_input {
98
+ display: inherit !important;
99
+ }
100
+ .typeahead-kit-select__menu {
101
+ background-color: $bg_dark;
102
+ color: $white;
103
+ z-index: $z_1;
104
+ }
105
+ .typeahead-kit-select__option:hover {
106
+ background-color: $active_dark;
107
+ }
108
+ .typeahead-kit-select__indicator:hover {
109
+ color: $white;
110
+ }
111
+ .typeahead-kit-select__input {
112
+ color: white;
113
+ input:focus {
114
+ box-shadow: none;
115
+ }
116
+ }
117
+ .typeahead-kit-select__single-value {
118
+ color: white;
119
+ }
120
+ .typeahead-kit-select__option--is-focused {
121
+ background-color: $active_dark;
122
+ }
123
+ [class^=pb_list_kit] {
124
+ background-color: $bg_dark;
125
+ }
126
+ .pb_item_kit {
127
+ button {
128
+ color: white !important;
129
+ }
130
+ @media (hover:hover) {
131
+ &:hover {
132
+ background-color: rgba($white,.1);
133
+ }
134
+ }
135
+ }
136
+ }
94
137
  &.react-select, &.react-select .dark {
95
138
  .text_input {
96
139
  display: inherit;
@@ -139,7 +182,7 @@
139
182
  }
140
183
  }
141
184
  }
142
-
185
+
143
186
  .typeahead-kit-select__menu {
144
187
  z-index: $z_1;
145
188
  .typeahead-kit-select__menu-list {
@@ -172,117 +215,5 @@
172
215
  }
173
216
  }
174
217
  }
175
-
176
- &[class*=dark] {
177
- .pb_typeahead_wrapper .pb_typeahead_loading_indicator {
178
- color: $text_dk_light;
179
- }
180
- .pb_text_input_kit_label {
181
- color: $text_dk_light;
182
- }
183
- [class^=pb_text_input_kit].dark .text_input_wrapper .text_input {
184
- display: inherit !important;
185
- }
186
- .typeahead-kit-select__menu {
187
- background-color: $bg_dark;
188
- color: $white;
189
- z-index: $z_1;
190
- .typeahead-kit-select__menu-list {
191
- padding: 0;
192
- }
193
- .typeahead-kit-select__single-value {
194
- color: white;
195
- }
196
-
197
- .typeahead-kit-select__option {
198
- &.typeahead-kit-select__option--is-focused {
199
- background-color: $hover_dark;
200
- }
201
- &.typeahead-kit-select__option--is-selected {
202
- background-color: $active_dark;
203
- }
204
- }
205
- }
206
- .text_input_wrapper{
207
- color: text_dk_default;
208
- }
209
- .typeahead-kit-select__option:hover {
210
- background-color: $active_dark;
211
- }
212
- .typeahead-kit-select__indicator {
213
- color: $text_dk_default;
214
- }
215
- .typeahead-kit-select__indicator:hover {
216
- color: $text_dk_lighter;
217
- }
218
- .typeahead-kit-select__input {
219
- color: white;
220
- input:focus {
221
- box-shadow: none;
222
- }
223
- }
224
- .typeahead-kit-select__option--is-focused {
225
- background-color: $active_dark;
226
- }
227
- [class^=pb_list_kit] {
228
- background-color: $bg_dark;
229
- }
230
- .pb_item_kit {
231
- button {
232
- color: white !important;
233
- }
234
- @media (hover:hover) {
235
- &:hover {
236
- background-color: $hover_dark;
237
- }
238
- }
239
- }
240
-
241
- .text_input {
242
- .typeahead-kit-select__input-container{
243
- color: $text_dk_default
244
- }
245
- .typeahead-kit-select {
246
- &__single-value{
247
- color: $text_dk_default;
248
- }
249
- }
250
- &.typeahead-kit-select {
251
- &__single-value{
252
- color: $text_dk_default;
253
- }
254
- &__control {
255
- &--is-focused {
256
- @include pb_textarea_focus;
257
- @include transition_default;
258
- border-color: $active_dark;
259
- background-color: rgba($focus_input_dark,$opacity_5);
260
- box-shadow: none;
261
- .typeahead-plus-icon {
262
- display: none;
263
- }
264
- }
265
- }
266
- }
267
- }
268
-
269
- &.inline {
270
- &:not(:hover) {
271
- .text_input {
272
- background-color: transparent;
273
- border-color: transparent;
274
- }
275
- .typeahead-kit-select__indicator {
276
- color: transparent;
277
- }
278
- }
279
-
280
- &:hover {
281
- .text_input {
282
- background-color: $hover_dark;
283
- }
284
- }
285
- }
286
-
287
- }
288
218
  }
219
+
@@ -55,18 +55,11 @@ const TypeaheadWithHighlight = (props) => {
55
55
  marginRight="sm"
56
56
  name={name}
57
57
  size="sm"
58
- {...props}
59
58
  />
60
59
  </FlexItem>
61
60
  <FlexItem>
62
- <Title
63
- size={4}
64
- {...props}
65
- >
66
- <span dangerouslySetInnerHTML={{ __html: highlighted(name) }} /></Title>
67
- <Body color="light"
68
- {...props}
69
- >
61
+ <Title size={4}><span dangerouslySetInnerHTML={{ __html: highlighted(name) }} /></Title>
62
+ <Body color="light">
70
63
  <span dangerouslySetInnerHTML={{ __html: highlighted(title) }} />{" • "}
71
64
  {territory}
72
65
  </Body>