playbook_ui 14.9.0.pre.alpha.PLAY16264818 → 14.9.0.pre.alpha.play1703errorstatealignment4889

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +5 -3
  3. data/app/pb_kits/playbook/pb_avatar/_avatar.scss +0 -2
  4. data/app/pb_kits/playbook/pb_body/_body.scss +14 -13
  5. data/app/pb_kits/playbook/pb_body/_body_mixins.scss +22 -16
  6. data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.jsx +6 -0
  7. data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +2 -1
  8. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +1 -1
  9. data/app/pb_kits/playbook/pb_file_upload/_file_upload.scss +5 -0
  10. data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +7 -2
  11. data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +8 -2
  12. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +15 -3
  13. data/app/pb_kits/playbook/pb_nav/_bold_mixin.scss +11 -1
  14. data/app/pb_kits/playbook/pb_nav/_collapsible_nav.scss +16 -2
  15. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +1 -1
  16. data/app/pb_kits/playbook/pb_select/_select.tsx +14 -19
  17. data/app/pb_kits/playbook/pb_select/docs/example.yml +0 -1
  18. data/app/pb_kits/playbook/pb_select/docs/index.js +0 -1
  19. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +4 -4
  20. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.html.erb +1 -1
  21. data/app/pb_kits/playbook/pb_stat_change/_stat_change.tsx +44 -36
  22. data/app/pb_kits/playbook/pb_stat_change/stat_change.html.erb +4 -4
  23. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb +95 -0
  24. data/app/pb_kits/playbook/pb_table/index.ts +100 -26
  25. data/app/pb_kits/playbook/pb_table/table.html.erb +1 -1
  26. data/app/pb_kits/playbook/pb_table/table.rb +17 -2
  27. data/app/pb_kits/playbook/pb_title/_title.scss +6 -5
  28. data/app/pb_kits/playbook/pb_title/_title_mixin.scss +13 -0
  29. data/app/pb_kits/playbook/tokens/_titles.scss +0 -8
  30. data/app/pb_kits/playbook/utilities/_hover.scss +11 -2
  31. data/app/pb_kits/playbook/utilities/globalProps.ts +2 -0
  32. data/app/pb_kits/playbook/utilities/test/globalProps/hover.test.js +15 -0
  33. data/dist/chunks/{_typeahead-B8fkIeXA.js → _typeahead-4sdDeM4X.js} +2 -2
  34. data/dist/chunks/_weekday_stacked-CblTZ9cd.js +45 -0
  35. data/dist/chunks/{lib-SyD3buPZ.js → lib-CVPInSs5.js} +1 -1
  36. data/dist/chunks/{pb_form_validation-Dt8UJgrJ.js → pb_form_validation-CDLJ5eAG.js} +1 -1
  37. data/dist/chunks/vendor.js +1 -1
  38. data/dist/playbook-doc.js +1 -1
  39. data/dist/playbook-rails-react-bindings.js +1 -1
  40. data/dist/playbook-rails.js +1 -1
  41. data/dist/playbook.css +1 -1
  42. data/lib/playbook/hover.rb +7 -1
  43. data/lib/playbook/version.rb +1 -1
  44. metadata +7 -8
  45. data/app/pb_kits/playbook/pb_select/docs/_select_form.jsx +0 -108
  46. data/app/pb_kits/playbook/utilities/hookFormProps.ts +0 -16
  47. data/dist/chunks/_weekday_stacked-DxlPBh55.js +0 -45
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd75b9e4b0f7ce117dbd06fd2a726c2c365b6e5bf64cb203f030ba83659ae448
4
- data.tar.gz: 4973b4425fac4133d09a37743f38638af91d63ac3a720555846ca286b0358635
3
+ metadata.gz: c76303a7544e38deef03a9ac8c3e287b6013cf828a750766ec788f66e706bbc4
4
+ data.tar.gz: 98da736fc4c77104393be8ab4f11379e52113aecdc16fcb2ccdb954e4aecc97b
5
5
  SHA512:
6
- metadata.gz: cdd757f0e267dede1c878c35a04a53cc26fb39568a802ae979477d938c6fc3e23f4e48150ec4d549717febb1daf69ae8d60285582c1ef58cd539b819ac47ab08
7
- data.tar.gz: 9a2776ad808a0e04c2f152e64975d48b02911c3edd4cda0be6d317571fd92553d29cd6e8159444d392d2a48815e4ee1318b4eaabaf5c17bdba9c9c89ff22538b
6
+ metadata.gz: bbf0e95a2e97295650df84cdd1c87dfdd713eaaf68a6fb21c540dac59fa8084239c288becf3aa0eecb84f0dd6855e6e5440c37e748d0524560a4699f497c20f1
7
+ data.tar.gz: 49a7797ec7401bd8e09a81b696cc652c1557dda1a514116cd7263842629fc845ff2f8eb19c30c95566eb8838ca1b64be94182491c8e487cb76034e38459554c7
@@ -4,8 +4,10 @@
4
4
  <%= pb_rails("table/table_header", props: { tag: "div", id: item[:accessor], classname: object.th_classname, sort_menu: item[:sort_menu] }) do %>
5
5
  <%= pb_rails("flex", props:{ align: "center", justify: index.zero? ? "start" : "end", text_align: "end" }) do %>
6
6
  <% if index.zero? && (object.enable_toggle_expansion == "header" || object.enable_toggle_expansion == "all") %>
7
- <button class="gray-icon toggle-all-icon" onclick="expandAllRows(this)">
8
- <%= pb_rails("icon", props: { icon: "arrows-from-line", cursor: "pointer", fixed_width: true, padding_right: "xs" }) %>
7
+ <button
8
+ class="gray-icon toggle-all-icon"
9
+ onclick="expandAllRows(this); event.preventDefault();">
10
+ <%= pb_rails("icon", props: { icon: "arrows-from-line", cursor: "pointer", fixed_width: true, padding_right: "xs" }) %>
9
11
  </button>
10
12
  <% end %>
11
13
  <%= item[:label] %>
@@ -13,4 +15,4 @@
13
15
  <% end %>
14
16
  <% end %>
15
17
  <% end %>
16
- <% end %>
18
+ <% end %>
@@ -31,14 +31,12 @@ $avatar-sizes: (
31
31
  [class^=pb_card_kit].overlay_top_center {
32
32
  left: 50%;
33
33
  transform: translateX(-50%);
34
- padding: 2px !important;
35
34
  }
36
35
 
37
36
  [class^=pb_card_kit].overlay_left_center,
38
37
  [class^=pb_card_kit].overlay_right_center {
39
38
  top: 50%;
40
39
  transform: translateY(-50%);
41
- padding: 2px !important;
42
40
  }
43
41
  }
44
42
 
@@ -1,24 +1,25 @@
1
1
  @import "./body_mixins";
2
2
  @import "../tokens/titles";
3
3
 
4
- [class^=pb_body_kit]{
4
+ [class^="pb_body_kit"] {
5
5
  @include pb_body($text_lt_default);
6
6
  @each $color_name, $color_value in $pb_body_colors {
7
7
  &[class*=_#{"" + $color_name}] {
8
8
  @include pb_body($color_value);
9
9
  }
10
10
  @each $status_name, $status_value in $pb_body_status {
11
- &[class*=_default_#{$status_name}] {
11
+ &[class*="_default_#{$status_name}"] {
12
12
  @include pb_body($status_value);
13
13
  }
14
14
  }
15
15
  }
16
- @each $dark_color_name, $dark_color_value in $pb_dark_body_colors{
17
- &[class*=_#{$dark_color_name}][class*=dark]{
16
+ @each $dark_color_name, $dark_color_value in $pb_dark_body_colors {
17
+ &[class*="_#{$dark_color_name}"][class*="dark"] {
18
18
  @include pb_body($dark_color_value);
19
19
  }
20
20
  }
21
- b, strong {
21
+ b,
22
+ strong {
22
23
  font-weight: $bold;
23
24
  }
24
25
 
@@ -29,7 +30,8 @@
29
30
  }
30
31
  }
31
32
 
32
- em, i {
33
+ em,
34
+ i {
33
35
  font-style: italic;
34
36
  }
35
37
 
@@ -39,26 +41,25 @@
39
41
  }
40
42
 
41
43
  @each $status_name, $status_value in $pb_body_status {
42
- &[class*=#{$status_name}] {
44
+ &[class*="#{$status_name}"] {
43
45
  @include pb_body($status_value);
44
46
  }
45
47
  }
46
48
 
47
- &[class*=dark] {
49
+ &[class*="dark"] {
48
50
  a {
49
51
  color: $active_dark;
50
52
  }
51
53
  @include pb_body_dark();
52
- @each $dark_color_name, $dark_color_value in $pb_dark_body_colors{
53
- &[class*=_#{$dark_color_name}][class*=dark]{
54
+ @each $dark_color_name, $dark_color_value in $pb_dark_body_colors {
55
+ &[class*="_#{$dark_color_name}"][class*="dark"] {
54
56
  @include pb_body($dark_color_value);
55
57
  }
56
58
  }
57
- @each $status_name, $status_value in $pb_body_status {
58
- &[class*=_#{$status_name}] {
59
+ @each $status_name, $status_value in $pb_dark_body_status {
60
+ &[class*="_#{$status_name}"] {
59
61
  @include pb_body($status_value);
60
62
  }
61
63
  }
62
64
  }
63
-
64
65
  }
@@ -3,29 +3,35 @@
3
3
  @import "../tokens/typography";
4
4
 
5
5
  $pb_body_colors: (
6
- default: $text_lt_default,
7
- light: $text_lt_light,
8
- lighter: $text_lt_lighter,
9
- link: $primary,
10
- error: $error,
11
- success: $text_lt_success_sm,
6
+ default: $text_lt_default,
7
+ light: $text_lt_light,
8
+ lighter: $text_lt_lighter,
9
+ link: $primary,
10
+ error: $error,
11
+ success: $text_lt_success_sm,
12
12
  );
13
13
 
14
14
  $pb_dark_body_colors: (
15
- default: $text_dk_default,
16
- light: $text_dk_light,
17
- lighter: $text_dk_lighter,
18
- link: $active_dark,
19
- error: $error,
20
- success: $text_dk_success_sm,
15
+ default: $text_dk_default,
16
+ light: $text_dk_light,
17
+ lighter: $text_dk_lighter,
18
+ link: $active_dark,
19
+ error: $error,
20
+ success: $text_dk_success_sm,
21
21
  );
22
22
 
23
23
  // Order is important here!
24
24
  $pb_body_status: (
25
- default: $text_lt_default,
26
- negative: $error,
27
- dark_error: $error_dark_body,
28
- positive: $text_lt_success_sm,
25
+ default: $text_lt_default,
26
+ negative: $error,
27
+ dark_error: $error_dark_body,
28
+ positive: $text_lt_success_sm,
29
+ );
30
+
31
+ $pb_dark_body_status: (
32
+ default: $text_dk_default,
33
+ negative: $error_dark,
34
+ positive: $text_dk_success_sm,
29
35
  );
30
36
 
31
37
  @mixin pb_body($color: $text_lt_default) {
@@ -13,6 +13,7 @@ const BreadCrumbsDefault = (props) => {
13
13
  <Icon
14
14
  icon="home"
15
15
  size="1x"
16
+ {...props}
16
17
  />
17
18
  <BreadCrumbItem
18
19
  {...props}
@@ -22,11 +23,13 @@ const BreadCrumbsDefault = (props) => {
22
23
  size="4"
23
24
  tag="span"
24
25
  text="Home"
26
+ {...props}
25
27
  />
26
28
  </BreadCrumbItem>
27
29
  <Icon
28
30
  icon="users"
29
31
  size="1x"
32
+ {...props}
30
33
  />
31
34
  <Link
32
35
  {...props}
@@ -36,17 +39,20 @@ const BreadCrumbsDefault = (props) => {
36
39
  size="4"
37
40
  tag="span"
38
41
  text="Users"
42
+ {...props}
39
43
  />
40
44
  </Link>
41
45
  <Icon
42
46
  icon="user"
43
47
  size="1x"
48
+ {...props}
44
49
  />
45
50
  <Link {...props}>
46
51
  <Title
47
52
  size="4"
48
53
  tag="span"
49
54
  text="User"
55
+ {...props}
50
56
  />
51
57
  </Link>
52
58
  </BreadCrumbs>
@@ -13,9 +13,10 @@ $pb_caption_colors: (
13
13
  $pb_dark_caption_colors: (
14
14
  default: $text_dk_default,
15
15
  light: $text_dk_light,
16
+ lighter: $text_dk_lighter,
16
17
  link: $active_dark,
17
18
  success: $text_dk_success_sm,
18
- error: $error,
19
+ error: $error_dark,
19
20
  );
20
21
 
21
22
 
@@ -32,7 +32,7 @@ $pb_card_header_colors: map-merge(map-merge($product_colors, $additional_colors)
32
32
  }
33
33
 
34
34
  @mixin pb_card_selected_dark {
35
- @include pb_card_selected($primary_action);
35
+ @include pb_card_selected($primary_action_dark);
36
36
  }
37
37
 
38
38
  @mixin pb_card($background: $card_light, $border_color: $border_light) {
@@ -11,3 +11,8 @@
11
11
  }
12
12
  }
13
13
 
14
+ .dark [class*='pb_file_upload_kit'] {
15
+ [class*='pb_card_kit'] {
16
+ border: 1px $text_dk_lighter dashed;
17
+ }
18
+ }
@@ -13,6 +13,7 @@ type FileUploadProps = {
13
13
  accept?: string[],
14
14
  className?: string,
15
15
  customMessage?: string,
16
+ dark?: boolean,
16
17
  data?: {[key: string]: string | number},
17
18
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
18
19
  acceptedFilesDescription?: string,
@@ -31,6 +32,7 @@ const FileUpload = (props: FileUploadProps): React.ReactElement => {
31
32
  acceptedFilesDescription = '',
32
33
  className,
33
34
  customMessage,
35
+ dark = false,
34
36
  data = {},
35
37
  htmlOptions = {},
36
38
  maxSize,
@@ -94,9 +96,12 @@ const FileUpload = (props: FileUploadProps): React.ReactElement => {
94
96
  {...htmlProps}
95
97
  {...getRootProps()}
96
98
  >
97
- <Card>
99
+ <Card dark={dark}>
98
100
  <input {...getInputProps()} />
99
- <Body color="light">
101
+ <Body
102
+ color="light"
103
+ dark={dark}
104
+ >
100
105
  {isDragActive ?
101
106
  <p>{'Drop the files here ...'}</p>
102
107
  :
@@ -5,11 +5,17 @@
5
5
  id: object.id,
6
6
  **combined_html_options) do %>
7
7
  <%= pb_rails("form_group", props: {cursor: "pointer", full_width: object.full_width}) do %>
8
- <label for="upload-<%= object.id %>" class="pb_button_kit_secondary_inline_enabled"><%= "#{object.label}" %></label>
8
+ <label
9
+ for="upload-<%= object.id %>"
10
+ class="pb_button_kit_secondary_inline_enabled <%= 'dark' if object.dark %>"
11
+ >
12
+ <%= "#{object.label}" %>
13
+ </label>
9
14
  <%= pb_rails("text_input", props: {
10
15
  type: "file",
16
+ dark: object.dark,
11
17
  input_options: {
12
- id: "upload-#{object.id}",
18
+ id: "upload-#{object.id}",
13
19
  classname: "cursor_pointer",
14
20
  }.merge(object.input_options)
15
21
  }) %>
@@ -1,7 +1,7 @@
1
1
  [class^=pb_form_group_kit] {
2
2
  display: inline-flex;
3
3
  flex-direction: row;
4
- align-items: flex-end;
4
+ align-items: flex-start;
5
5
  justify-content: flex-start;
6
6
 
7
7
  &[class*=_full] {
@@ -12,6 +12,18 @@
12
12
  }
13
13
  }
14
14
 
15
+ &:has(.pb_text_input_kit):has(.pb_text_input_kit_label){
16
+ align-items: flex-end;
17
+ }
18
+
19
+ &:has(.pb_text_input_kit.error):has(.pb_text_input_kit_label){
20
+ align-items: center;
21
+ }
22
+
23
+ &:has(.pb_phone_number_input):has(.pb_text_input_kit.error):has(.pb_text_input_kit_label){
24
+ align-items: center;
25
+ }
26
+
15
27
  & [class^=pb_text_input_kit] .text_input_wrapper,
16
28
  & [class^=pb_date_picker_kit] .input_wrapper,
17
29
  & [class^=pb_select] {
@@ -27,7 +39,7 @@
27
39
  border-bottom-right-radius: 0;
28
40
  border-top-right-radius: 0;
29
41
  border-right-width: 0;
30
-
42
+
31
43
  &:focus {
32
44
  outline: $primary solid 1px;
33
45
  outline-offset: -1px;
@@ -150,7 +162,7 @@
150
162
  & > [class^=pb_selectable_card_kit] input[type="checkbox"]:not(:checked) ~ label, [class^=pb_selectable_card_kit] input[type="radio"]:not(:checked) ~ label {
151
163
  &:hover {
152
164
  border-right-color: $slate;
153
- }
165
+ }
154
166
  }
155
167
 
156
168
  & > [class^=pb_selectable_card_kit]:not(:first-child) label {
@@ -19,6 +19,16 @@
19
19
  font-weight: $bolder;
20
20
  }
21
21
  }
22
- }
22
+ }
23
+ }
24
+
25
+ .dark & {
26
+ [class*=pb_nav_list_kit_item][class*=pb_nav_list_item] {
27
+ &[class*=_link] {
28
+ &[class*=_active] {
29
+ box-shadow: 0 2px 10px 0 $shadow_dark;
30
+ }
31
+ }
32
+ }
23
33
  }
24
34
  }
@@ -223,6 +223,7 @@
223
223
  }
224
224
  }
225
225
  [class*="pb_collapsible_nav_item"][class*="pb_nav_list_item_link_collapsible"][class*="pb_nav_list_kit_item"] {
226
+ box-shadow: unset !important;
226
227
  .pb_nav_list_item_text_collapsible {
227
228
  color: $white !important;
228
229
  }
@@ -240,11 +241,17 @@
240
241
 
241
242
  .pb_collapsible_main_kit:hover {
242
243
  background-color: mix($white, $card_dark, 20%);
243
- .pb_nav_list_item_text_collapsible,
244
- svg {
244
+ .pb_nav_list_item_text_collapsible {
245
245
  color: $white !important;
246
246
  }
247
247
  }
248
+
249
+ .pb_collapsible_main_kit {
250
+ svg {
251
+ color: $text_dk_default !important;
252
+ }
253
+ }
254
+
248
255
  .icon_wrapper:hover {
249
256
  background-color: mix($white, $card_dark, 40%);
250
257
  }
@@ -256,6 +263,13 @@
256
263
  }
257
264
  }
258
265
  }
266
+
267
+ &[class*="_active"] {
268
+ > .pb_collapsible_main_kit {
269
+ background-color: $primary;
270
+ box-shadow: 0 2px 10px 0 $shadow_dark;
271
+ }
272
+ }
259
273
  }
260
274
  }
261
275
  }
@@ -115,7 +115,7 @@ $selector: ".pb_nav_list";
115
115
  }
116
116
  [class*="_item_text"],
117
117
  [class*="_item_icon"] {
118
- color: $text_dk_lighter !important;
118
+ color: $text_dk_light !important;
119
119
  }
120
120
  &[class*="_link"] {
121
121
  &:hover {
@@ -1,10 +1,8 @@
1
1
  import React, { forwardRef } from 'react'
2
2
  import classnames from 'classnames'
3
- import { FieldValues } from 'react-hook-form'
4
3
 
5
4
  import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
6
5
  import { globalProps, GlobalProps, domSafeProps } from '../utilities/globalProps'
7
- import { HookFormProps, withHookForm } from '../utilities/hookFormProps'
8
6
  import type { InputCallback } from '../types'
9
7
  import { getAllIcons } from "../utilities/icons/allicons"
10
8
 
@@ -18,7 +16,7 @@ type SelectOption = {
18
16
  disabled?: boolean,
19
17
  }
20
18
 
21
- type SelectProps<T extends FieldValues = FieldValues> = {
19
+ type SelectProps = {
22
20
  aria?: { [key: string]: string },
23
21
  blankSelection?: string,
24
22
  children?: Node,
@@ -32,17 +30,16 @@ type SelectProps<T extends FieldValues = FieldValues> = {
32
30
  includeBlank?: string,
33
31
  inline?: boolean,
34
32
  label?: string,
35
- margin?: string,
33
+ margin: string,
36
34
  marginBottom: string,
37
- marginTop: string,
38
35
  multiple?: boolean,
39
36
  name?: string,
40
- onChange?: InputCallback<HTMLSelectElement>,
37
+ onChange: InputCallback<HTMLSelectElement>,
41
38
  options: SelectOption[],
42
39
  required?: boolean,
43
40
  showArrow?: boolean,
44
41
  value?: string,
45
- } & GlobalProps & Partial<HookFormProps<T>>
42
+ } & GlobalProps
46
43
 
47
44
  const createOptions = (options: SelectOption[]) => options.map((option, index) => (
48
45
  <option
@@ -54,7 +51,7 @@ const createOptions = (options: SelectOption[]) => options.map((option, index) =
54
51
  </option>
55
52
  ))
56
53
 
57
- const Select = <T extends FieldValues = FieldValues>({
54
+ const Select = ({
58
55
  aria = {},
59
56
  blankSelection,
60
57
  children,
@@ -68,20 +65,17 @@ const Select = <T extends FieldValues = FieldValues>({
68
65
  inline = false,
69
66
  multiple = false,
70
67
  name,
71
- onChange,
68
+ onChange = () => undefined,
72
69
  options = [],
73
- register,
74
70
  required = false,
75
- rules,
76
71
  showArrow = false,
77
72
  value,
78
73
  ...props
79
- }: SelectProps<T>, ref: React.LegacyRef<HTMLSelectElement>) => {
74
+ }: SelectProps, ref: React.LegacyRef<HTMLSelectElement>) => {
80
75
  const ariaProps = buildAriaProps(aria)
81
76
  const dataProps = buildDataProps(data)
82
77
  const htmlProps = buildHtmlProps(htmlOptions)
83
78
  const optionsList = createOptions(options)
84
- const hookFormProps = name ? withHookForm({ register, name, rules }) : {}
85
79
 
86
80
  const inlineClass = inline ? 'inline' : null
87
81
  const compactClass = compact ? 'compact' : null
@@ -97,22 +91,21 @@ const Select = <T extends FieldValues = FieldValues>({
97
91
  compactClass
98
92
  );
99
93
 
100
- const icons = getAllIcons()
101
- const angleDown = icons?.angleDown?.icon as { [key: string]: SVGElement }
94
+ const angleDown = getAllIcons()["angleDown"].icon as unknown as { [key: string]: SVGElement }
102
95
 
103
96
  const selectWrapperClass = classnames(buildCss('pb_select_kit_wrapper'), { error }, className)
104
97
  const selectBody =(() =>{
105
98
  if (children) return children
106
99
  return (
107
100
  <select
101
+ {...htmlOptions}
108
102
  {...domSafeProps(props)}
109
- {...hookFormProps}
110
103
  disabled={disabled}
111
104
  id={name}
112
105
  multiple={multiple}
113
106
  name={name}
114
- onChange={onChange || hookFormProps.onChange}
115
- ref={ref || hookFormProps.ref}
107
+ onChange={onChange}
108
+ ref={ref}
116
109
  required={required}
117
110
  value={value}
118
111
  >
@@ -142,12 +135,14 @@ const Select = <T extends FieldValues = FieldValues>({
142
135
  htmlFor={name}
143
136
  >
144
137
  {selectBody}
145
- { multiple !== true && angleDown &&
138
+ { multiple !== true ?
146
139
  <Icon
147
140
  className="pb_select_kit_caret svg-inline--fa"
148
141
  customIcon={angleDown}
149
142
  fixedWidth
150
143
  />
144
+ :
145
+ null
151
146
  }
152
147
  {error &&
153
148
  <Body
@@ -30,7 +30,6 @@ examples:
30
30
  - select_inline_show_arrow: Select Inline (Always Show Arrow)
31
31
  - select_inline_compact: Select Inline Compact
32
32
  - select_multiple: Select Multiple
33
- - select_form: Form
34
33
 
35
34
  swift:
36
35
  - select_default_swift: Default
@@ -10,4 +10,3 @@ export { default as SelectInline } from './_select_inline.jsx'
10
10
  export { default as SelectInlineShowArrow } from './_select_inline_show_arrow.jsx'
11
11
  export { default as SelectInlineCompact } from './_select_inline_compact.jsx'
12
12
  export { default as SelectMultiple } from './_select_multiple.jsx'
13
- export { default as SelectForm } from './_select_form.jsx'
@@ -151,7 +151,7 @@ $pb_selectable_paddings: (
151
151
  input[type="radio"] {
152
152
  &:checked ~ label {
153
153
  border-width: $pb_card_border_width;
154
- outline: 1px solid $primary;
154
+ outline: 1px solid $primary_action_dark;
155
155
  }
156
156
  }
157
157
  }
@@ -161,11 +161,11 @@ $pb_selectable_paddings: (
161
161
  color: $white;
162
162
  > label {
163
163
  @include pb_card_dark;
164
- background: transparent;
164
+ background: $bg_dark_card;
165
165
 
166
166
  .pb_selectable_card_circle {
167
167
  border-color: $bg_dark;
168
- background: $primary-action;
168
+ background: $primary_action_dark;
169
169
  }
170
170
  }
171
171
 
@@ -173,7 +173,7 @@ $pb_selectable_paddings: (
173
173
  input[type="radio"] {
174
174
  &:checked ~ label {
175
175
  @include pb_card_selected_dark;
176
- background: transparent;
176
+ background: $bg_dark_card;
177
177
  }
178
178
  }
179
179
 
@@ -35,7 +35,7 @@
35
35
  <% end %>
36
36
  <% else %>
37
37
  <% if content.nil? %>
38
- <%= pb_rails("body", props: { text: object.text }) %>
38
+ <%= pb_rails("body", props: { text: object.text, dark: object.dark }) %>
39
39
  <% else %>
40
40
  <%= content %>
41
41
  <% end %>