playbook_ui 13.21.0.pre.alpha.PLAY12582474 → 13.21.0.pre.alpha.PLAY12582514

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +1 -1
  3. data/app/pb_kits/playbook/pb_avatar/avatar.rb +1 -1
  4. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +9 -9
  5. data/app/pb_kits/playbook/pb_button/button.rb +5 -5
  6. data/app/pb_kits/playbook/pb_circle_chart/circle_chart.rb +10 -10
  7. data/app/pb_kits/playbook/pb_currency/currency.rb +4 -4
  8. data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +1 -2
  9. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +3 -0
  10. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +2 -1
  11. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +8 -7
  12. data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +1 -1
  13. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.html.erb +7 -0
  14. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.jsx +41 -0
  15. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +2 -0
  16. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -0
  17. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +1 -2
  18. data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +3 -3
  19. data/app/pb_kits/playbook/pb_docs/kit_example.rb +1 -1
  20. data/app/pb_kits/playbook/pb_form/form.rb +4 -4
  21. data/app/pb_kits/playbook/pb_gauge/gauge.rb +9 -9
  22. data/app/pb_kits/playbook/pb_home_address_street/home_address_street.rb +17 -17
  23. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb +0 -2
  24. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +9 -9
  25. data/app/pb_kits/playbook/pb_list/list.rb +0 -2
  26. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +4 -4
  27. data/app/pb_kits/playbook/pb_passphrase/passphrase.rb +6 -6
  28. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +8 -8
  29. data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb +8 -8
  30. data/app/pb_kits/playbook/pb_select/select.rb +6 -6
  31. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +1 -1
  32. data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +1 -1
  33. data/app/pb_kits/playbook/pb_stat_value/stat_value.rb +1 -1
  34. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +0 -1
  35. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +5 -1
  36. data/app/pb_kits/playbook/pb_text_input/text_input.rb +9 -8
  37. data/app/pb_kits/playbook/pb_text_input/text_input.test.js +1 -1
  38. data/app/pb_kits/playbook/pb_treemap_chart/treemap_chart.rb +6 -6
  39. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +8 -8
  40. data/dist/playbook-rails.js +1 -1
  41. data/lib/playbook/forms/builder/action_area.rb +2 -2
  42. data/lib/playbook/forms/builder/checkbox_field.rb +2 -2
  43. data/lib/playbook/forms/builder/collection_select_field.rb +1 -1
  44. data/lib/playbook/forms/builder/date_picker_field.rb +1 -1
  45. data/lib/playbook/forms/builder/form_field_builder.rb +1 -1
  46. data/lib/playbook/forms/builder/intl_telephone_field.rb +1 -1
  47. data/lib/playbook/forms/builder/multi_level_select_field.rb +1 -1
  48. data/lib/playbook/forms/builder/select_field.rb +1 -1
  49. data/lib/playbook/forms/builder/typeahead_field.rb +1 -1
  50. data/lib/playbook/kit_base.rb +2 -2
  51. data/lib/playbook/pb_doc_helper.rb +5 -5
  52. data/lib/playbook/pb_forms_helper.rb +1 -1
  53. data/lib/playbook/props/percentage.rb +2 -2
  54. data/lib/playbook/props.rb +1 -1
  55. data/lib/playbook/version.rb +1 -1
  56. metadata +16 -42
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cac7b0753d888ee1b718932bbbb638ebad8f37d7e3b30dfb683dd0a575cbcad
4
- data.tar.gz: d9e47ec1c043e9358f3618c0510484ebfce1d346743377228ca016336072dd3f
3
+ metadata.gz: b0dd38dd97e8c632b8821888bfd3e15a2d357c941f76cb1e7672ad60450903f7
4
+ data.tar.gz: b8d9ead67a51d3d96dd50c71ee8a5f5e33f4be1112df425ca1ea9e7a1a3307c8
5
5
  SHA512:
6
- metadata.gz: f07bcb349a1e387b6497cbc75fdc31fb39ee33c259515670723642d7484d8da526f20f6484c5beda1086e7d8aa36ecc0b25f0e1b6aa3e021095571949a839e07
7
- data.tar.gz: b6c92cff8163105411b1d21bb9b065b725f775af4fea9f760ba945a04437e0f00da16b80cf346a37f5e681da3884f97c30cfa373621ab7409c277704daf2016a
6
+ metadata.gz: 654314ebddb64ce6547c51c51c434296381b9f70f3101610b5f8fd70712c2ecf1236c37e528d3a52828c2de237413106b039570ec051ce4fc115e5a4b6d12f60
7
+ data.tar.gz: 846774c0f9715ff7fbdad5a017e0308a921b62256db62e06fe6213cee136431b3cbab70fccb8ac99b283c064776b2ece40c0c1f1b8683a9243e56fde9053cb1d
@@ -11,7 +11,7 @@ module Playbook
11
11
  def render_row_and_children(row, column_definitions, current_depth = 0)
12
12
  output = ActiveSupport::SafeBuffer.new
13
13
 
14
- output << pb_rails("advanced_table/table_row", props: { row: row, column_definitions: column_definitions, depth: current_depth })
14
+ output << pb_rails("advanced_table/table_row", props: { row:, column_definitions:, depth: current_depth })
15
15
 
16
16
  if row[:children].present?
17
17
  row[:children].each do |child_row|
@@ -22,7 +22,7 @@ module Playbook
22
22
  end
23
23
 
24
24
  def online_status_props
25
- { status: status, classname: "size_#{size}" }
25
+ { status:, classname: "size_#{size}" }
26
26
  end
27
27
 
28
28
  def alt_text
@@ -42,27 +42,27 @@ module Playbook
42
42
 
43
43
  def standard_options
44
44
  {
45
- align: align,
46
- id: id,
45
+ align:,
46
+ id:,
47
47
  className: classname,
48
48
  chartData: chart_data,
49
49
  dark: dark ? "dark" : "",
50
50
  type: chart_type,
51
- title: title,
51
+ title:,
52
52
  subTitle: subtitle,
53
53
  axisTitle: axis_title,
54
54
  pointStart: point_start,
55
55
  xAxisCategories: x_axis_categories,
56
56
  yAxisMin: y_axis_min,
57
57
  yAxisMax: y_axis_max,
58
- legend: legend,
58
+ legend:,
59
59
  toggleLegendClick: toggle_legend_click,
60
- height: height,
61
- colors: colors,
62
- layout: layout,
60
+ height:,
61
+ colors:,
62
+ layout:,
63
63
  verticalAlign: vertical_align,
64
- x: x,
65
- y: y,
64
+ x:,
65
+ y:,
66
66
  }
67
67
  end
68
68
 
@@ -36,13 +36,13 @@ module Playbook
36
36
  def options
37
37
  options = {
38
38
  class: classname,
39
- disabled: disabled,
40
- id: id,
39
+ disabled:,
40
+ id:,
41
41
  role: "button",
42
42
  tabindex: 0,
43
- type: type,
44
- value: value,
45
- form: form,
43
+ type:,
44
+ value:,
45
+ form:,
46
46
  }.compact
47
47
  combined_html_options.merge!(options) if combined_html_options.present?
48
48
  end
@@ -42,15 +42,15 @@ module Playbook
42
42
 
43
43
  def chart_options
44
44
  {
45
- align: align,
46
- id: id,
47
- colors: colors,
45
+ align:,
46
+ id:,
47
+ colors:,
48
48
  chartData: chart_data,
49
49
  dark: dark ? "dark" : "",
50
- title: title,
51
- height: height,
50
+ title:,
51
+ height:,
52
52
  type: style,
53
- legend: legend,
53
+ legend:,
54
54
  dataLabelHtml: data_label_html,
55
55
  dataLabels: data_labels,
56
56
  tooltipHtml: tooltip_html,
@@ -60,11 +60,11 @@ module Playbook
60
60
  innerSize: inner_size,
61
61
  zMin: z_min,
62
62
  startAngle: start_angle,
63
- rounded: rounded,
64
- layout: layout,
63
+ rounded:,
64
+ layout:,
65
65
  verticalAlign: vertical_align,
66
- x: x,
67
- y: y,
66
+ x:,
67
+ y:,
68
68
  }
69
69
  end
70
70
 
@@ -51,14 +51,14 @@ module Playbook
51
51
  {
52
52
  classname: "dollar_sign",
53
53
  color: "light",
54
- dark: dark,
54
+ dark:,
55
55
  }
56
56
  end
57
57
 
58
58
  def caption_props
59
59
  {
60
60
  text: label,
61
- dark: dark,
61
+ dark:,
62
62
  }
63
63
  end
64
64
 
@@ -67,7 +67,7 @@ module Playbook
67
67
  size: size_value,
68
68
  text: abbreviate ? abbreviated_value : whole_value,
69
69
  classname: "pb_currency_value",
70
- dark: dark,
70
+ dark:,
71
71
  }
72
72
  end
73
73
 
@@ -76,7 +76,7 @@ module Playbook
76
76
  text: units_element,
77
77
  color: "light",
78
78
  classname: "unit",
79
- dark: dark,
79
+ dark:,
80
80
  }
81
81
  end
82
82
 
@@ -10,7 +10,6 @@
10
10
 
11
11
  [class^=pb_date_picker_kit] {
12
12
  .input_wrapper {
13
- margin-bottom: $space_sm;
14
13
  position: relative;
15
14
 
16
15
  .flatpickr-wrapper {
@@ -76,4 +75,4 @@
76
75
  &:after {
77
76
  content: none;
78
77
  }
79
- }
78
+ }
@@ -135,6 +135,9 @@ useEffect(() => {
135
135
  }, scrollContainer)
136
136
  })
137
137
  const filteredProps = {...props}
138
+ if (filteredProps.marginBottom === undefined) {
139
+ filteredProps.marginBottom = "sm"
140
+ }
138
141
  delete filteredProps?.position
139
142
 
140
143
  const classes = classnames(
@@ -17,6 +17,7 @@
17
17
  error: object.error,
18
18
  id: object.picker_id,
19
19
  label: object.hide_label ? nil : object.label,
20
+ margin_bottom: "none",
20
21
  name: object.name,
21
22
  placeholder: object.placeholder,
22
23
  required: object.required,
@@ -81,4 +82,4 @@
81
82
  }
82
83
  })
83
84
  <% end %>
84
- <% end %>
85
+ <% end %>
@@ -75,7 +75,8 @@ module Playbook
75
75
  default: [1900, 2100]
76
76
 
77
77
  def classname
78
- generate_classname("pb_date_picker_kit")
78
+ default_margin_bottom = margin_bottom.present? ? "" : " mb_sm"
79
+ generate_classname("pb_date_picker_kit") + default_margin_bottom
79
80
  end
80
81
 
81
82
  def date_picker_config
@@ -87,17 +88,17 @@ module Playbook
87
88
  disableRange: disable_range,
88
89
  disableWeekdays: disable_weekdays,
89
90
  enableTime: enable_time,
90
- format: format,
91
+ format:,
91
92
  hideIcon: hide_icon,
92
- inline: inline,
93
+ inline:,
93
94
  maxDate: max_date,
94
95
  minDate: min_date,
95
- mode: mode,
96
+ mode:,
96
97
  pickerId: picker_id,
97
- plugins: plugins,
98
- position: position,
98
+ plugins:,
99
+ position:,
99
100
  positionElement: position_element,
100
- required: required,
101
+ required:,
101
102
  selectionType: selection_type,
102
103
  showTimezone: show_timezone,
103
104
  staticPosition: static_position,
@@ -37,7 +37,7 @@ describe('DatePicker Kit', () => {
37
37
  )
38
38
 
39
39
  const kit = screen.getByTestId(testId)
40
- expect(kit).toHaveClass('pb_date_picker_kit')
40
+ expect(kit).toHaveClass('pb_date_picker_kit mb_sm')
41
41
  })
42
42
 
43
43
  test('shows DatePicker date format m/d/Y', async () => {
@@ -0,0 +1,7 @@
1
+
2
+ <%= pb_rails("date_picker", props: { picker_id: "date-picker-none", margin_bottom: "none"}) %>
3
+ <%= pb_rails("date_picker", props: { picker_id: "date-picker-xs", margin_bottom: "xs"}) %>
4
+ <%= pb_rails("date_picker", props: { picker_id: "date-picker-sm", margin_bottom: "sm"}) %>
5
+ <%= pb_rails("date_picker", props: { picker_id: "date-picker-md", margin_bottom: "md"}) %>
6
+ <%= pb_rails("date_picker", props: { picker_id: "date-picker-lg", margin_bottom: "lg"}) %>
7
+ <%= pb_rails("date_picker", props: { picker_id: "date-picker-xl", margin_bottom: "xl"}) %>
@@ -0,0 +1,41 @@
1
+
2
+ import React from 'react'
3
+
4
+ import DatePicker from '../_date_picker'
5
+
6
+ const DatePickerMarginBottom = (props) => (
7
+ <div>
8
+ <DatePicker
9
+ marginBottom="none"
10
+ pickerId="date-picker-none"
11
+ {...props}
12
+ />
13
+ <DatePicker
14
+ marginBottom="xs"
15
+ pickerId="date-picker-xs"
16
+ {...props}
17
+ />
18
+ <DatePicker
19
+ marginBottom="sm"
20
+ pickerId="date-picker-sm"
21
+ {...props}
22
+ />
23
+ <DatePicker
24
+ marginBottom="md"
25
+ pickerId="date-picker-md"
26
+ {...props}
27
+ />
28
+ <DatePicker
29
+ marginBottom="lg"
30
+ pickerId="date-picker-lg"
31
+ {...props}
32
+ />
33
+ <DatePicker
34
+ marginBottom="xl"
35
+ pickerId="date-picker-xl"
36
+ {...props}
37
+ />
38
+ </div>
39
+ )
40
+
41
+ export default DatePickerMarginBottom
@@ -20,6 +20,7 @@ examples:
20
20
  - date_picker_hooks: Hooks
21
21
  - date_picker_year_range: Year Range
22
22
  - date_picker_anti_patterns: Anti-Patterns
23
+ - date_picker_margin_bottom: Margin Bottom
23
24
  - date_picker_inline: Inline
24
25
  - date_picker_month_and_year: Month & Year Only
25
26
  - date_picker_week: Week
@@ -48,6 +49,7 @@ examples:
48
49
  - date_picker_flatpickr_methods: Flatpickr Methods
49
50
  - date_picker_hooks: Hooks
50
51
  - date_picker_year_range: Year Range
52
+ - date_picker_margin_bottom: Margin Bottom
51
53
  - date_picker_inline: Inline
52
54
  - date_picker_month_and_year: Month & Year Only
53
55
  - date_picker_week: Week
@@ -19,6 +19,7 @@ export { default as DatePickerWeek } from './_date_picker_week.jsx'
19
19
  export { default as DatePickerPositions } from './_date_picker_positions.jsx'
20
20
  export { default as DatePickerPositionsElement } from './_date_picker_positions_element.jsx'
21
21
  export { default as DatePickerAllowInput } from './_date_picker_allow_input'
22
+ export { default as DatePickerMarginBottom} from './_date_picker_margin_bottom'
22
23
  export { default as DatePickerQuickPickReact } from './_date_picker_quick_pick_react'
23
24
  export { default as DatePickerQuickPickRangeLimit } from './_date_picker_quick_pick_range_limit'
24
25
  export { default as DatePickerOnClose } from './_date_picker_on_close.jsx'
@@ -1,7 +1,6 @@
1
1
  @import "../../pb_textarea/textarea_mixin";
2
2
 
3
3
  [class^=pb_date_picker_kit] {
4
- margin-bottom: $space_sm;
5
4
 
6
5
  .pb_date_picker_kit_label {
7
6
  margin-bottom: $space_xs;
@@ -65,4 +64,4 @@
65
64
  }
66
65
  }
67
66
  }
68
- }
67
+ }
@@ -23,9 +23,9 @@ module Playbook
23
23
 
24
24
  def chart_options
25
25
  {
26
- size: size,
27
- widths: widths,
28
- colors: colors,
26
+ size:,
27
+ widths:,
28
+ colors:,
29
29
  }
30
30
  end
31
31
  end
@@ -16,7 +16,7 @@ module Playbook
16
16
  if type == "rails"
17
17
  render inline: source
18
18
  elsif type == "react"
19
- react_component example_key.camelize, { dark: dark }
19
+ react_component example_key.camelize, { dark: }
20
20
  elsif type == "swift"
21
21
  ## render the markdown file
22
22
  render inline: source
@@ -18,11 +18,11 @@ module Playbook
18
18
 
19
19
  def form_options
20
20
  {
21
- id: id,
22
- aria: aria,
21
+ id:,
22
+ aria:,
23
23
  class: classname,
24
- data: data,
25
- validate: validate,
24
+ data:,
25
+ validate:,
26
26
  }.merge(prop(:options) || prop(:form_system_options) || {})
27
27
  end
28
28
  end
@@ -24,22 +24,22 @@ module Playbook
24
24
 
25
25
  def chart_options
26
26
  {
27
- id: id,
27
+ id:,
28
28
  chartData: chart_data,
29
29
  circumference: full_circle ? [0, 360] : [-100, 100],
30
30
  dark: dark ? "dark" : "",
31
31
  disableAnimation: disable_animation,
32
- height: height,
33
- min: min,
34
- max: max,
35
- title: title,
36
- suffix: suffix,
37
- prefix: prefix,
32
+ height:,
33
+ min:,
34
+ max:,
35
+ title:,
36
+ suffix:,
37
+ prefix:,
38
38
  showLabels: show_labels,
39
- style: style,
39
+ style:,
40
40
  tooltipHtml: tooltip_html,
41
41
  type: style,
42
- colors: colors,
42
+ colors:,
43
43
  }
44
44
  end
45
45
 
@@ -49,28 +49,28 @@ module Playbook
49
49
 
50
50
  def city_emphasis_props
51
51
  {
52
- address_house_style: address_house_style,
53
- address_house_style2: address_house_style2,
54
- city_state: city_state,
55
- dark: dark,
56
- home_id: home_id,
57
- home_url: home_url,
58
- new_window: new_window,
59
- territory: territory,
60
- zip: zip,
52
+ address_house_style:,
53
+ address_house_style2:,
54
+ city_state:,
55
+ dark:,
56
+ home_id:,
57
+ home_url:,
58
+ new_window:,
59
+ territory:,
60
+ zip:,
61
61
  }
62
62
  end
63
63
 
64
64
  def street_emphasis_props
65
65
  {
66
- address_house_style: address_house_style,
67
- address_house_style2: address_house_style2,
68
- city_state_zip: city_state_zip,
69
- dark: dark,
70
- home_id: home_id,
71
- home_url: home_url,
72
- new_window: new_window,
73
- territory: territory,
66
+ address_house_style:,
67
+ address_house_style2:,
68
+ city_state_zip:,
69
+ dark:,
70
+ home_id:,
71
+ home_url:,
72
+ new_window:,
73
+ territory:,
74
74
  }
75
75
  end
76
76
 
@@ -33,7 +33,6 @@ module Playbook
33
33
  end
34
34
 
35
35
  def title_size
36
- # rubocop:disable Style/CaseLikeIf
37
36
  if size == "lg"
38
37
  1
39
38
  elsif size == "md"
@@ -41,7 +40,6 @@ module Playbook
41
40
  else
42
41
  3
43
42
  end
44
- # rubocop:enable Style/CaseLikeIf
45
43
  end
46
44
  end
47
45
  end
@@ -40,27 +40,27 @@ module Playbook
40
40
 
41
41
  def chart_options
42
42
  {
43
- align: align,
44
- id: id,
43
+ align:,
44
+ id:,
45
45
  className: classname,
46
46
  chartData: chart_data,
47
47
  dark: dark ? "dark" : "",
48
48
  type: chart_type,
49
- title: title,
49
+ title:,
50
50
  subTitle: subtitle,
51
51
  axisTitle: axis_title,
52
52
  pointStart: point_start,
53
53
  xAxisCategories: x_axis_categories,
54
54
  yAxisMin: y_axis_min,
55
55
  yAxisMax: y_axis_max,
56
- legend: legend,
56
+ legend:,
57
57
  toggleLegendClick: toggle_legend_click,
58
- height: height,
59
- colors: colors,
60
- layout: layout,
58
+ height:,
59
+ colors:,
60
+ layout:,
61
61
  verticalAlign: vertical_align,
62
- x: x,
63
- y: y,
62
+ x:,
63
+ y:,
64
64
  }
65
65
  end
66
66
 
@@ -41,7 +41,6 @@ module Playbook
41
41
  dark ? "dark" : nil
42
42
  end
43
43
 
44
- # rubocop:disable Style/CaseLikeIf
45
44
  def layout_class
46
45
  if layout == "right"
47
46
  "layout_right"
@@ -51,7 +50,6 @@ module Playbook
51
50
  ""
52
51
  end
53
52
  end
54
- # rubocop:enable Style/CaseLikeIf
55
53
 
56
54
  def size_class
57
55
  size ? "large" : nil
@@ -26,14 +26,14 @@ module Playbook
26
26
 
27
27
  def multi_level_select_options
28
28
  {
29
- id: id,
29
+ id:,
30
30
  inputDisplay: input_display,
31
- name: name,
31
+ name:,
32
32
  treeData: tree_data,
33
33
  returnAllSelected: return_all_selected,
34
34
  selectedIds: selected_ids,
35
- input_name: input_name,
36
- variant: variant,
35
+ input_name:,
36
+ variant:,
37
37
  }
38
38
  end
39
39
  end
@@ -18,15 +18,15 @@ module Playbook
18
18
 
19
19
  def passphrase_options
20
20
  {
21
- dark: dark,
22
- id: id,
23
- confirmation: confirmation,
21
+ dark:,
22
+ id:,
23
+ confirmation:,
24
24
  inputProps: input_props,
25
- label: label,
25
+ label:,
26
26
  showTipsBelow: show_tips_below,
27
- tips: tips,
27
+ tips:,
28
28
  uncontrolled: true,
29
- value: value,
29
+ value:,
30
30
  }.compact
31
31
  end
32
32
  end
@@ -28,17 +28,17 @@ module Playbook
28
28
 
29
29
  def phone_number_input_options
30
30
  {
31
- id: id,
32
- dark: dark,
33
- disabled: disabled,
34
- error: error,
31
+ id:,
32
+ dark:,
33
+ disabled:,
34
+ error:,
35
35
  initialCountry: initial_country,
36
- label: label,
37
- name: name,
36
+ label:,
37
+ name:,
38
38
  onlyCountries: only_countries,
39
39
  preferredCountries: preferred_countries,
40
- required: required,
41
- value: value,
40
+ required:,
41
+ value:,
42
42
  }
43
43
  end
44
44
  end
@@ -39,16 +39,16 @@ module Playbook
39
39
 
40
40
  def rich_text_options
41
41
  {
42
- id: id,
43
- inline: inline,
42
+ id:,
43
+ inline:,
44
44
  className: classname,
45
- focus: focus,
46
- simple: simple,
47
- sticky: sticky,
45
+ focus:,
46
+ simple:,
47
+ sticky:,
48
48
  toolbarBottom: toolbar_bottom,
49
- value: value,
50
- template: template,
51
- placeholder: placeholder,
49
+ value:,
50
+ template:,
51
+ placeholder:,
52
52
  }
53
53
  end
54
54
  end
@@ -28,13 +28,13 @@ module Playbook
28
28
 
29
29
  def all_attributes
30
30
  {
31
- id: id,
31
+ id:,
32
32
  prompt: blank_selection,
33
- disabled: disabled,
34
- required: required,
35
- multiple: multiple,
36
- onchange: onchange,
37
- include_blank: include_blank,
33
+ disabled:,
34
+ required:,
35
+ multiple:,
36
+ onchange:,
37
+ include_blank:,
38
38
  }.merge(attributes)
39
39
  end
40
40
 
@@ -42,7 +42,7 @@ module Playbook
42
42
  def additional_input_options
43
43
  input_options.merge(
44
44
  id: input_id_present,
45
- disabled: disabled
45
+ disabled:
46
46
  )
47
47
  end
48
48