bs5 0.0.18 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/bs5_manifest.js +1 -0
  3. data/app/assets/javascripts/bs5/application.js +13 -0
  4. data/app/components/bs5/accordion_component.html.erb +1 -1
  5. data/app/components/bs5/accordion_component.rb +7 -3
  6. data/app/components/bs5/alert_component.rb +5 -5
  7. data/app/components/bs5/badge_component.rb +6 -6
  8. data/app/components/bs5/breadcrumb_component.html.erb +1 -1
  9. data/app/components/bs5/breadcrumb_component.rb +6 -3
  10. data/app/components/bs5/button_tag_component.rb +8 -8
  11. data/app/components/bs5/button_to_component.rb +8 -8
  12. data/app/components/bs5/example_component.html.erb +2 -1
  13. data/app/components/bs5/list_group_component.html.erb +2 -2
  14. data/app/components/bs5/list_group_component.rb +16 -9
  15. data/app/components/bs5/spinner_component.html.erb +5 -0
  16. data/app/components/bs5/spinner_component.rb +65 -0
  17. data/app/helpers/bs5/components_helper.rb +1 -1
  18. data/app/views/bs5/examples/accordion/default/snippet.html.erb +4 -4
  19. data/app/views/bs5/examples/accordion/flush/snippet.html.erb +4 -4
  20. data/app/views/bs5/examples/alert/additional_content/snippet.html.erb +1 -1
  21. data/app/views/bs5/examples/alert/color/_example.html.erb +1 -0
  22. data/app/views/bs5/examples/alert/{style → color}/snippet.html.erb +8 -8
  23. data/app/views/bs5/examples/alert/dismissable/snippet.html.erb +1 -1
  24. data/app/views/bs5/examples/badge/color/_example.html.erb +2 -0
  25. data/app/views/bs5/examples/badge/color/snippet.html.erb +8 -0
  26. data/app/views/bs5/examples/badge/default/_example.html.erb +2 -1
  27. data/app/views/bs5/examples/badge/default/button.html.erb +3 -0
  28. data/app/views/bs5/examples/badge/pill/snippet.html.erb +8 -8
  29. data/app/views/bs5/examples/breadcrumb/default/snippet.html.erb +9 -9
  30. data/app/views/bs5/examples/button_group/button_toolbar/snippet.html.erb +4 -4
  31. data/app/views/bs5/examples/button_group/button_toolbar/snippet2.html.erb +8 -8
  32. data/app/views/bs5/examples/button_group/sizing/snippet.html.erb +9 -9
  33. data/app/views/bs5/examples/button_group/vertical/snippet.html.erb +6 -6
  34. data/app/views/bs5/examples/buttons/button_tag/outline/snippet.html.erb +9 -9
  35. data/app/views/bs5/examples/buttons/button_tag/size/large.html.erb +2 -2
  36. data/app/views/bs5/examples/buttons/button_tag/size/small.html.erb +2 -2
  37. data/app/views/bs5/examples/buttons/button_tag/style/snippet.html.erb +9 -9
  38. data/app/views/bs5/examples/buttons/button_to/default/snippet.html.erb +3 -3
  39. data/app/views/bs5/examples/list_group/actionable/button.html.erb +5 -5
  40. data/app/views/bs5/examples/list_group/actionable/snippet.html.erb +5 -5
  41. data/app/views/bs5/examples/list_group/active/snippet.html.erb +5 -5
  42. data/app/views/bs5/examples/list_group/checkboxes_and_radios/default.html.erb +5 -5
  43. data/app/views/bs5/examples/list_group/checkboxes_and_radios/with_labels.html.erb +5 -5
  44. data/app/views/bs5/examples/list_group/custom_content/default.html.erb +3 -3
  45. data/app/views/bs5/examples/list_group/default/snippet.html.erb +5 -5
  46. data/app/views/bs5/examples/list_group/disabled/snippet.html.erb +5 -5
  47. data/app/views/bs5/examples/list_group/flush/snippet.html.erb +5 -5
  48. data/app/views/bs5/examples/list_group/horizontal/snippet.html.erb +18 -18
  49. data/app/views/bs5/examples/list_group/style/actionable.html.erb +9 -9
  50. data/app/views/bs5/examples/list_group/style/default.html.erb +9 -9
  51. data/app/views/bs5/examples/list_group/with_badges/default.html.erb +6 -6
  52. data/app/views/bs5/examples/popovers/default/snippet.html.erb +1 -1
  53. data/app/views/bs5/examples/popovers/four_directions/snippet.html.erb +4 -4
  54. data/app/views/bs5/examples/spinners/border/_example.html.erb +2 -0
  55. data/app/views/bs5/examples/spinners/border/snippet.html.erb +1 -0
  56. data/app/views/bs5/examples/spinners/buttons/_example.html.erb +2 -0
  57. data/app/views/bs5/examples/spinners/buttons/snippet.html.erb +15 -0
  58. data/app/views/bs5/examples/spinners/colors/_example.html.erb +2 -0
  59. data/app/views/bs5/examples/spinners/colors/snippet.html.erb +16 -0
  60. data/app/views/bs5/examples/spinners/growing/_example.html.erb +3 -0
  61. data/app/views/bs5/examples/spinners/growing/colors.html.erb +16 -0
  62. data/app/views/bs5/examples/spinners/growing/snippet.html.erb +1 -0
  63. data/app/views/bs5/examples/spinners/options/_example.html.erb +10 -0
  64. data/app/views/bs5/examples/spinners/options/floats.html.erb +3 -0
  65. data/app/views/bs5/examples/spinners/options/margin.html.erb +1 -0
  66. data/app/views/bs5/examples/spinners/options/placement_flex1.html.erb +3 -0
  67. data/app/views/bs5/examples/spinners/options/placement_flex2.html.erb +4 -0
  68. data/app/views/bs5/examples/spinners/options/text_align.html.erb +3 -0
  69. data/app/views/bs5/examples/spinners/size/_example.html.erb +3 -0
  70. data/app/views/bs5/examples/spinners/size/size1.html.erb +7 -0
  71. data/app/views/bs5/examples/spinners/size/size2.html.erb +3 -0
  72. data/app/views/bs5/examples/tooltips/default/buttons.html.erb +5 -5
  73. data/app/views/bs5/pages/alert.html.erb +1 -1
  74. data/app/views/bs5/pages/badge.html.erb +1 -1
  75. data/app/views/bs5/pages/spinners.html.erb +7 -0
  76. data/app/views/layouts/bs5/pages.html.erb +13 -11
  77. data/lib/bs5/engine.rb +6 -0
  78. data/lib/bs5/version.rb +1 -1
  79. metadata +31 -22
  80. data/app/views/bs5/examples/alert/style/_example.html.erb +0 -2
  81. data/app/views/bs5/examples/badge/style/_example.html.erb +0 -2
  82. data/app/views/bs5/examples/badge/style/snippet.html.erb +0 -8
@@ -1,11 +1,11 @@
1
- <%= bs5_accordion do |accordion| %>
2
- <% accordion.slot(:item, title: 'Accordion Item #1', collapsed: false) do %>
1
+ <%= bs5_accordion do |a| %>
2
+ <% a.item(title: 'Accordion Item #1', collapsed: false) do %>
3
3
  <strong>This is the first item's accordion body.</strong> It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the <code>.accordion-body</code>, though the transition does limit overflow.
4
4
  <% end %>
5
- <% accordion.slot(:item, title: 'Accordion Item #2') do %>
5
+ <% a.item(title: 'Accordion Item #2') do %>
6
6
  <strong>This is the second item's accordion body.</strong> It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the <code>.accordion-body</code>, though the transition does limit overflow.
7
7
  <% end %>
8
- <% accordion.slot(:item, title: 'Accordion Item #3') do %>
8
+ <% a.item(title: 'Accordion Item #3') do %>
9
9
  <strong>This is the third item's accordion body.</strong> It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the <code>.accordion-body</code>, though the transition does limit overflow.
10
10
  <% end %>
11
11
  <%- end %>
@@ -1,11 +1,11 @@
1
- <%= bs5_accordion(flush: true) do |accordion| %>
2
- <% accordion.slot(:item, title: 'Accordion Item #1') do %>
1
+ <%= bs5_accordion(flush: true) do |a| %>
2
+ <% a.item(title: 'Accordion Item #1') do %>
3
3
  Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
4
4
  <% end %>
5
- <% accordion.slot(:item, title: 'Accordion Item #2') do %>
5
+ <% a.item(title: 'Accordion Item #2') do %>
6
6
  Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
7
7
  <% end %>
8
- <% accordion.slot(:item, title: 'Accordion Item #3') do %>
8
+ <% a.item(title: 'Accordion Item #3') do %>
9
9
  Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
10
10
  <% end %>
11
11
  <%- end %>
@@ -1,4 +1,4 @@
1
- <%= bs5_alert(style: :success) do %>
1
+ <%= bs5_alert(color: :success) do %>
2
2
  <h4 class="alert-heading">Well done!</h4>
3
3
  <p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.</p>
4
4
  <hr>
@@ -0,0 +1 @@
1
+ <%= bs5_example(snippet: 'alert/color/snippet') %>
@@ -1,31 +1,31 @@
1
- <%= bs5_alert(style: :primary) do %>
1
+ <%= bs5_alert(color: :primary) do %>
2
2
  A simple primary alert—check it out!
3
3
  <%- end %>
4
4
 
5
- <%= bs5_alert(style: :secondary) do %>
5
+ <%= bs5_alert(color: :secondary) do %>
6
6
  A simple secondary alert—check it out!
7
7
  <%- end %>
8
8
 
9
- <%= bs5_alert(style: :success) do %>
9
+ <%= bs5_alert(color: :success) do %>
10
10
  A simple success alert—check it out!
11
11
  <%- end %>
12
12
 
13
- <%= bs5_alert(style: :danger) do %>
13
+ <%= bs5_alert(color: :danger) do %>
14
14
  A simple danger alert—check it out!
15
15
  <%- end %>
16
16
 
17
- <%= bs5_alert(style: :warning) do %>
17
+ <%= bs5_alert(color: :warning) do %>
18
18
  A simple warning alert—check it out!
19
19
  <%- end %>
20
20
 
21
- <%= bs5_alert(style: :info) do %>
21
+ <%= bs5_alert(color: :info) do %>
22
22
  A simple info alert—check it out!
23
23
  <%- end %>
24
24
 
25
- <%= bs5_alert(style: :light) do %>
25
+ <%= bs5_alert(color: :light) do %>
26
26
  A simple light alert—check it out!
27
27
  <%- end %>
28
28
 
29
- <%= bs5_alert(style: :dark) do %>
29
+ <%= bs5_alert(color: :dark) do %>
30
30
  A simple dark alert—check it out!
31
31
  <%- end %>
@@ -1,3 +1,3 @@
1
- <%= bs5_alert(style: :warning, is_dismissable: true) do %>
1
+ <%= bs5_alert(color: :warning, is_dismissable: true) do %>
2
2
  <strong>Holy guacamole!</strong> You should check in on some of those fields below.
3
3
  <%- end %>
@@ -0,0 +1,2 @@
1
+ <h2>Background colors</h2>
2
+ <%= bs5_example(snippet: 'badge/color/snippet') %>
@@ -0,0 +1,8 @@
1
+ <%= bs5_badge(text: 'Primary', color: :primary) %>
2
+ <%= bs5_badge(text: 'Secondary', color: :secondary) %>
3
+ <%= bs5_badge(text: 'Success', color: :success) %>
4
+ <%= bs5_badge(text: 'Danger', color: :danger) %>
5
+ <%= bs5_badge(text: 'Warning', color: :warning) %>
6
+ <%= bs5_badge(text: 'Info', color: :info) %>
7
+ <%= bs5_badge(text: 'Light', color: :light) %>
8
+ <%= bs5_badge(text: 'Dark', color: :dark) %>
@@ -1,2 +1,3 @@
1
1
  <h2>Example</h2>
2
- <%= bs5_example(snippet: 'badge/default/snippet') %>
2
+ <%= bs5_example(snippet: 'badge/default/snippet') %>
3
+ <%= bs5_example(snippet: 'badge/default/button') %>
@@ -0,0 +1,3 @@
1
+ <%= bs5_button_tag(type: 'button') do %>
2
+ Notifications <%= bs5_badge(text: '4', color: :secondary) %>
3
+ <% end %>
@@ -1,8 +1,8 @@
1
- <%= bs5_badge(text: 'Primary', style: :primary, pill: true) %>
2
- <%= bs5_badge(text: 'Secondary', style: :secondary, pill: true) %>
3
- <%= bs5_badge(text: 'Sucess', style: :success, pill: true) %>
4
- <%= bs5_badge(text: 'Danger', style: :danger, pill: true) %>
5
- <%= bs5_badge(text: 'Warning', style: :warning, pill: true) %>
6
- <%= bs5_badge(text: 'Info', style: :info, pill: true) %>
7
- <%= bs5_badge(text: 'Light', style: :light, pill: true) %>
8
- <%= bs5_badge(text: 'Dark', style: :dark, pill: true) %>
1
+ <%= bs5_badge(text: 'Primary', color: :primary, pill: true) %>
2
+ <%= bs5_badge(text: 'Secondary', color: :secondary, pill: true) %>
3
+ <%= bs5_badge(text: 'Sucess', color: :success, pill: true) %>
4
+ <%= bs5_badge(text: 'Danger', color: :danger, pill: true) %>
5
+ <%= bs5_badge(text: 'Warning', color: :warning, pill: true) %>
6
+ <%= bs5_badge(text: 'Info', color: :info, pill: true) %>
7
+ <%= bs5_badge(text: 'Light', color: :light, pill: true) %>
8
+ <%= bs5_badge(text: 'Dark', color: :dark, pill: true) %>
@@ -1,14 +1,14 @@
1
- <%= bs5_breadcrumb do |breadcrumb| %>
2
- <% breadcrumb.slot(:item) do %>Home<% end %>
1
+ <%= bs5_breadcrumb do |b| %>
2
+ <% b.item do %>Home<% end %>
3
3
  <%- end %>
4
4
 
5
- <%= bs5_breadcrumb do |breadcrumb| %>
6
- <% breadcrumb.slot(:item) do %><a href="#">Home</a><% end %>
7
- <% breadcrumb.slot(:item) do %>Library<% end %>
5
+ <%= bs5_breadcrumb do |b| %>
6
+ <% b.item do %><a href="#">Home</a><% end %>
7
+ <% b.item do %>Library<% end %>
8
8
  <%- end %>
9
9
 
10
- <%= bs5_breadcrumb do |breadcrumb| %>
11
- <% breadcrumb.slot(:item) do %><a href="#">Home</a><% end %>
12
- <% breadcrumb.slot(:item) do %><a href="#">Library</a><% end %>
13
- <% breadcrumb.slot(:item) do %>Data<% end %>
10
+ <%= bs5_breadcrumb do |b| %>
11
+ <% b.item do %><a href="#">Home</a><% end %>
12
+ <% b.item do %><a href="#">Library</a><% end %>
13
+ <% b.item do %>Data<% end %>
14
14
  <%- end %>
@@ -7,12 +7,12 @@
7
7
  <% end %>
8
8
 
9
9
  <%= bs5_button_group(class: 'me-2', aria: { label: 'Second group' }) do %>
10
- <%= bs5_button_tag('5', type: 'button', style: :secondary) %>
11
- <%= bs5_button_tag('6', type: 'button', style: :secondary) %>
12
- <%= bs5_button_tag('7', type: 'button', style: :secondary) %>
10
+ <%= bs5_button_tag('5', type: 'button', color: :secondary) %>
11
+ <%= bs5_button_tag('6', type: 'button', color: :secondary) %>
12
+ <%= bs5_button_tag('7', type: 'button', color: :secondary) %>
13
13
  <% end %>
14
14
 
15
15
  <%= bs5_button_group(aria: { label: 'Third group' }) do %>
16
- <%= bs5_button_tag('8', type: 'button', style: :info) %>
16
+ <%= bs5_button_tag('8', type: 'button', color: :info) %>
17
17
  <% end %>
18
18
  <% end %>
@@ -1,9 +1,9 @@
1
1
  <%= bs5_button_toolbar(class: 'mb-3', aria: { label: 'Toolbar with button groups' }) do %>
2
2
  <%= bs5_button_group(class: 'me-2', aria: { label: 'First group' }) do %>
3
- <%= bs5_button_tag('1', type: 'button', outline: true, style: :secondary) %>
4
- <%= bs5_button_tag('2', type: 'button', outline: true, style: :secondary) %>
5
- <%= bs5_button_tag('3', type: 'button', outline: true, style: :secondary) %>
6
- <%= bs5_button_tag('4', type: 'button', outline: true, style: :secondary) %>
3
+ <%= bs5_button_tag('1', type: 'button', outline: true, color: :secondary) %>
4
+ <%= bs5_button_tag('2', type: 'button', outline: true, color: :secondary) %>
5
+ <%= bs5_button_tag('3', type: 'button', outline: true, color: :secondary) %>
6
+ <%= bs5_button_tag('4', type: 'button', outline: true, color: :secondary) %>
7
7
  <% end %>
8
8
 
9
9
  <div class="input-group">
@@ -14,10 +14,10 @@
14
14
 
15
15
  <%= bs5_button_toolbar(class: 'justify-content-between', aria: { label: 'Toolbar with button groups' }) do %>
16
16
  <%= bs5_button_group(aria: { label: 'First group' }) do %>
17
- <%= bs5_button_tag('1', type: 'button', outline: true, style: :secondary) %>
18
- <%= bs5_button_tag('2', type: 'button', outline: true, style: :secondary) %>
19
- <%= bs5_button_tag('3', type: 'button', outline: true, style: :secondary) %>
20
- <%= bs5_button_tag('4', type: 'button', outline: true, style: :secondary) %>
17
+ <%= bs5_button_tag('1', type: 'button', outline: true, color: :secondary) %>
18
+ <%= bs5_button_tag('2', type: 'button', outline: true, color: :secondary) %>
19
+ <%= bs5_button_tag('3', type: 'button', outline: true, color: :secondary) %>
20
+ <%= bs5_button_tag('4', type: 'button', outline: true, color: :secondary) %>
21
21
  <% end %>
22
22
 
23
23
  <div class="input-group">
@@ -1,17 +1,17 @@
1
1
  <%= bs5_button_group(size: 'large', class: 'mb-2', aria: { label: 'Large button group' }) do %>
2
- <%= bs5_button_tag('Left', type: 'button', style: :dark, outline: true) %>
3
- <%= bs5_button_tag('Middle', type: 'button', style: :dark, outline: true) %>
4
- <%= bs5_button_tag('Right', type: 'button', style: :dark, outline: true) %>
2
+ <%= bs5_button_tag('Left', type: 'button', color: :dark, outline: true) %>
3
+ <%= bs5_button_tag('Middle', type: 'button', color: :dark, outline: true) %>
4
+ <%= bs5_button_tag('Right', type: 'button', color: :dark, outline: true) %>
5
5
  <% end %>
6
6
  <br/>
7
7
  <%= bs5_button_group(class: 'mb-2', aria: { label: 'Default button group' }) do %>
8
- <%= bs5_button_tag('Left', type: 'button', style: :dark, outline: true) %>
9
- <%= bs5_button_tag('Middle', type: 'button', style: :dark, outline: true) %>
10
- <%= bs5_button_tag('Right', type: 'button', style: :dark, outline: true) %>
8
+ <%= bs5_button_tag('Left', type: 'button', color: :dark, outline: true) %>
9
+ <%= bs5_button_tag('Middle', type: 'button', color: :dark, outline: true) %>
10
+ <%= bs5_button_tag('Right', type: 'button', color: :dark, outline: true) %>
11
11
  <% end %>
12
12
  <br/>
13
13
  <%= bs5_button_group(size: :small, aria: { label: 'Small button group' }) do %>
14
- <%= bs5_button_tag('Left', type: 'button', style: :dark, outline: true) %>
15
- <%= bs5_button_tag('Middle', type: 'button', style: :dark, outline: true) %>
16
- <%= bs5_button_tag('Right', type: 'button', style: :dark, outline: true) %>
14
+ <%= bs5_button_tag('Left', type: 'button', color: :dark, outline: true) %>
15
+ <%= bs5_button_tag('Middle', type: 'button', color: :dark, outline: true) %>
16
+ <%= bs5_button_tag('Right', type: 'button', color: :dark, outline: true) %>
17
17
  <% end %>
@@ -1,8 +1,8 @@
1
1
  <%= bs5_button_group(vertical: :true, aria: { label: 'Vertical button group' }) do %>
2
- <%= bs5_button_tag('Button', type: 'button', style: :dark) %>
3
- <%= bs5_button_tag('Button', type: 'button', style: :dark) %>
4
- <%= bs5_button_tag('Button', type: 'button', style: :dark) %>
5
- <%= bs5_button_tag('Button', type: 'button', style: :dark) %>
6
- <%= bs5_button_tag('Button', type: 'button', style: :dark) %>
7
- <%= bs5_button_tag('Button', type: 'button', style: :dark) %>
2
+ <%= bs5_button_tag('Button', type: 'button', color: :dark) %>
3
+ <%= bs5_button_tag('Button', type: 'button', color: :dark) %>
4
+ <%= bs5_button_tag('Button', type: 'button', color: :dark) %>
5
+ <%= bs5_button_tag('Button', type: 'button', color: :dark) %>
6
+ <%= bs5_button_tag('Button', type: 'button', color: :dark) %>
7
+ <%= bs5_button_tag('Button', type: 'button', color: :dark) %>
8
8
  <% end %>
@@ -1,19 +1,19 @@
1
- <%= bs5_button_tag('Primary', style: :primary, outline: true) %>
1
+ <%= bs5_button_tag('Primary', color: :primary, outline: true) %>
2
2
 
3
- <%= bs5_button_tag('Secondary', style: :secondary, outline: true) %>
3
+ <%= bs5_button_tag('Secondary', color: :secondary, outline: true) %>
4
4
 
5
- <%= bs5_button_tag('Success', style: :success, outline: true) %>
5
+ <%= bs5_button_tag('Success', color: :success, outline: true) %>
6
6
 
7
- <%= bs5_button_tag('Danger', style: :danger, outline: true) %>
7
+ <%= bs5_button_tag('Danger', color: :danger, outline: true) %>
8
8
 
9
- <%= bs5_button_tag(style: :warning, outline: true, type: 'button') do %>
9
+ <%= bs5_button_tag(color: :warning, outline: true, type: 'button') do %>
10
10
  <%= tag.strong('Warning') %>
11
11
  <% end %>
12
12
 
13
- <%= bs5_button_tag('Info', style: :info, outline: true) %>
13
+ <%= bs5_button_tag('Info', color: :info, outline: true) %>
14
14
 
15
- <%= bs5_button_tag('Light', style: :light, outline: true) %>
15
+ <%= bs5_button_tag('Light', color: :light, outline: true) %>
16
16
 
17
- <%= bs5_button_tag('Dark', style: :dark, outline: true) %>
17
+ <%= bs5_button_tag('Dark', color: :dark, outline: true) %>
18
18
 
19
- <%= bs5_button_tag('Link', style: :link, outline: true) %>
19
+ <%= bs5_button_tag('Link', color: :link, outline: true) %>
@@ -1,3 +1,3 @@
1
- <%= bs5_button_tag('Large button', style: :primary, size: :large) %>
1
+ <%= bs5_button_tag('Large button', color: :primary, size: :large) %>
2
2
 
3
- <%= bs5_button_tag('Large button', style: :secondary, size: :large) %>
3
+ <%= bs5_button_tag('Large button', color: :secondary, size: :large) %>
@@ -1,3 +1,3 @@
1
- <%= bs5_button_tag('Small button', style: :primary, size: :small) %>
1
+ <%= bs5_button_tag('Small button', color: :primary, size: :small) %>
2
2
 
3
- <%= bs5_button_tag('Small button', style: :secondary, size: :small) %>
3
+ <%= bs5_button_tag('Small button', color: :secondary, size: :small) %>
@@ -1,19 +1,19 @@
1
- <%= bs5_button_tag('Primary', style: :primary) %>
1
+ <%= bs5_button_tag('Primary', color: :primary) %>
2
2
 
3
- <%= bs5_button_tag('Secondary', style: :secondary) %>
3
+ <%= bs5_button_tag('Secondary', color: :secondary) %>
4
4
 
5
- <%= bs5_button_tag('Success', style: :success) %>
5
+ <%= bs5_button_tag('Success', color: :success) %>
6
6
 
7
- <%= bs5_button_tag('Danger', style: :danger) %>
7
+ <%= bs5_button_tag('Danger', color: :danger) %>
8
8
 
9
- <%= bs5_button_tag(style: :warning, type: 'button') do %>
9
+ <%= bs5_button_tag(color: :warning, type: 'button') do %>
10
10
  <%= tag.strong('Warning') %>
11
11
  <% end %>
12
12
 
13
- <%= bs5_button_tag('Info', style: :info) %>
13
+ <%= bs5_button_tag('Info', color: :info) %>
14
14
 
15
- <%= bs5_button_tag('Light', style: :light) %>
15
+ <%= bs5_button_tag('Light', color: :light) %>
16
16
 
17
- <%= bs5_button_tag('Dark', style: :dark) %>
17
+ <%= bs5_button_tag('Dark', color: :dark) %>
18
18
 
19
- <%= bs5_button_tag('Link', style: :link) %>
19
+ <%= bs5_button_tag('Link', color: :link) %>
@@ -1,11 +1,11 @@
1
1
  <div class="d-grid gap-2 d-md-flex">
2
2
  <%= bs5_button_to('New', 'http://www.example.com') %>
3
3
 
4
- <%= bs5_button_to('http://www.example.com', style: :success) do %>
4
+ <%= bs5_button_to('http://www.example.com', color: :success) do %>
5
5
  Make happy <strong>John Doe</strong>
6
6
  <%- end %>
7
7
 
8
- <%= bs5_button_to('New', 'http://www.example.com', style: :dark, outline: true, size: :large, form_class: 'new-thing') %>
8
+ <%= bs5_button_to('New', 'http://www.example.com', color: :dark, outline: true, size: :large, form_class: 'new-thing') %>
9
9
 
10
- <%= bs5_button_to('Destroy', 'http://www.example.com', style: :danger, method: "delete", remote: true, data: { confirm: 'Are you sure?', disable_with: 'loading...' }) %>
10
+ <%= bs5_button_to('Destroy', 'http://www.example.com', color: :danger, method: "delete", remote: true, data: { confirm: 'Are you sure?', disable_with: 'loading...' }) %>
11
11
  </div>
@@ -1,7 +1,7 @@
1
1
  <%= bs5_list_group do |lg| %>
2
- <% lg.slot(:item, active: true) do %><%= button_tag 'Cras justo odio' %><% end %>
3
- <% lg.slot(:item) do %><%= button_tag 'Dapibus ac facilisis in' %><% end %>
4
- <% lg.slot(:item) do %><%= button_tag 'Morbi leo risus' %><% end %>
5
- <% lg.slot(:item) do %><%= button_tag 'Porta ac consectetur ac' %><% end %>
6
- <% lg.slot(:item, disabled: true) do %><%= button_tag 'Vestibulum at eros' %><% end %>
2
+ <% lg.item(active: true) do %><%= button_tag 'Cras justo odio' %><% end %>
3
+ <% lg.item do %><%= button_tag 'Dapibus ac facilisis in' %><% end %>
4
+ <% lg.item do %><%= button_tag 'Morbi leo risus' %><% end %>
5
+ <% lg.item do %><%= button_tag 'Porta ac consectetur ac' %><% end %>
6
+ <% lg.item(disabled: true) do %><%= button_tag 'Vestibulum at eros' %><% end %>
7
7
  <%- end %>
@@ -1,7 +1,7 @@
1
1
  <%= bs5_list_group do |lg| %>
2
- <% lg.slot(:item, active: true) do %><%= link_to 'Cras justo odio', '#' %><% end %>
3
- <% lg.slot(:item) do %><%= link_to 'Dapibus ac facilisis in', '#' %><% end %>
4
- <% lg.slot(:item) do %><%= link_to 'Morbi leo risus', '#' %><% end %>
5
- <% lg.slot(:item) do %><%= link_to 'Porta ac consectetur ac', '#' %><% end %>
6
- <% lg.slot(:item, disabled: true) do %><%= link_to 'Vestibulum at eros', '#' %><% end %>
2
+ <% lg.item(active: true) do %><%= link_to 'Cras justo odio', '#' %><% end %>
3
+ <% lg.item do %><%= link_to 'Dapibus ac facilisis in', '#' %><% end %>
4
+ <% lg.item do %><%= link_to 'Morbi leo risus', '#' %><% end %>
5
+ <% lg.item do %><%= link_to 'Porta ac consectetur ac', '#' %><% end %>
6
+ <% lg.item(disabled: true) do %><%= link_to 'Vestibulum at eros', '#' %><% end %>
7
7
  <%- end %>
@@ -1,7 +1,7 @@
1
1
  <%= bs5_list_group do |lg| %>
2
- <% lg.slot(:item, active: true) do %>Cras justo odio<% end %>
3
- <% lg.slot(:item) do %>Dapibus ac facilisis in<% end %>
4
- <% lg.slot(:item) do %>Morbi leo risus<% end %>
5
- <% lg.slot(:item) do %>Porta ac consectetur ac<% end %>
6
- <% lg.slot(:item) do %>Vestibulum at eros<% end %>
2
+ <% lg.item(active: true) do %>Cras justo odio<% end %>
3
+ <% lg.item do %>Dapibus ac facilisis in<% end %>
4
+ <% lg.item do %>Morbi leo risus<% end %>
5
+ <% lg.item do %>Porta ac consectetur ac<% end %>
6
+ <% lg.item do %>Vestibulum at eros<% end %>
7
7
  <%- end %>
@@ -1,21 +1,21 @@
1
1
  <%= bs5_list_group do |lg| %>
2
- <% lg.slot(:item) do %>
2
+ <% lg.item do %>
3
3
  <%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
4
4
  Cras justo odio
5
5
  <% end %>
6
- <% lg.slot(:item) do %>
6
+ <% lg.item do %>
7
7
  <%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
8
8
  Dapibus ac facilisis in
9
9
  <% end %>
10
- <% lg.slot(:item) do %>
10
+ <% lg.item do %>
11
11
  <%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
12
12
  Morbi leo risus
13
13
  <% end %>
14
- <% lg.slot(:item) do %>
14
+ <% lg.item do %>
15
15
  <%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
16
16
  Porta ac consectetur ac
17
17
  <% end %>
18
- <% lg.slot(:item) do %>
18
+ <% lg.item do %>
19
19
  <%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
20
20
  Vestibulum at eros
21
21
  <% end %>
@@ -1,29 +1,29 @@
1
1
  <%= bs5_list_group do |lg| %>
2
- <% lg.slot(:item) do %>
2
+ <% lg.item do %>
3
3
  <%= label_tag do %>
4
4
  <%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
5
5
  Cras justo odio
6
6
  <% end %>
7
7
  <% end %>
8
- <% lg.slot(:item) do %>
8
+ <% lg.item do %>
9
9
  <%= label_tag do %>
10
10
  <%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
11
11
  Dapibus ac facilisis in
12
12
  <% end %>
13
13
  <% end %>
14
- <% lg.slot(:item) do %>
14
+ <% lg.item do %>
15
15
  <%= label_tag do %>
16
16
  <%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
17
17
  Morbi leo risus
18
18
  <% end %>
19
19
  <% end %>
20
- <% lg.slot(:item) do %>
20
+ <% lg.item do %>
21
21
  <%= label_tag do %>
22
22
  <%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
23
23
  Porta ac consectetur ac
24
24
  <% end %>
25
25
  <% end %>
26
- <% lg.slot(:item) do %>
26
+ <% lg.item do %>
27
27
  <%= label_tag do %>
28
28
  <%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
29
29
  Vestibulum at eros
@@ -1,5 +1,5 @@
1
1
  <%= bs5_list_group do |lg| %>
2
- <% lg.slot(:item, active: true) do %>
2
+ <% lg.item(active: true) do %>
3
3
  <%= link_to '#' do %>
4
4
  <div class="d-flex w-100 justify-content-between">
5
5
  <h5 class="mb-1">List group item heading</h5>
@@ -9,7 +9,7 @@
9
9
  <small>Donec id elit non mi porta.</small>
10
10
  <% end %>
11
11
  <% end %>
12
- <% lg.slot(:item) do %>
12
+ <% lg.item do %>
13
13
  <%= link_to '#' do %>
14
14
  <div class="d-flex w-100 justify-content-between">
15
15
  <h5 class="mb-1">List group item heading</h5>
@@ -19,7 +19,7 @@
19
19
  <small class="text-muted">Donec id elit non mi porta.</small>
20
20
  <% end %>
21
21
  <% end %>
22
- <% lg.slot(:item) do %>
22
+ <% lg.item do %>
23
23
  <%= link_to '#' do %>
24
24
  <div class="d-flex w-100 justify-content-between">
25
25
  <h5 class="mb-1">List group item heading</h5>