bs5 0.0.16 → 0.0.21
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.
- checksums.yaml +4 -4
- data/app/components/bs5/accordion_component.html.erb +1 -1
- data/app/components/bs5/accordion_component.rb +7 -3
- data/app/components/bs5/alert_component.rb +5 -5
- data/app/components/bs5/badge_component.rb +6 -6
- data/app/components/bs5/breadcrumb_component.html.erb +1 -1
- data/app/components/bs5/breadcrumb_component.rb +6 -3
- data/app/components/bs5/button_group_component.html.erb +3 -0
- data/app/components/bs5/button_group_component.rb +49 -0
- data/app/components/bs5/button_tag_component.rb +8 -8
- data/app/components/bs5/button_to_component.rb +8 -8
- data/app/components/bs5/button_toolbar_component.html.erb +3 -0
- data/app/components/bs5/button_toolbar_component.rb +21 -0
- data/app/components/bs5/list_group_component.html.erb +2 -2
- data/app/components/bs5/list_group_component.rb +16 -9
- data/app/components/bs5/spinner_component.html.erb +5 -0
- data/app/components/bs5/spinner_component.rb +65 -0
- data/app/helpers/bs5/components_helper.rb +2 -1
- data/app/views/bs5/examples/accordion/default/snippet.html.erb +4 -4
- data/app/views/bs5/examples/accordion/flush/snippet.html.erb +4 -4
- data/app/views/bs5/examples/alert/additional_content/snippet.html.erb +1 -1
- data/app/views/bs5/examples/alert/color/_example.html.erb +1 -0
- data/app/views/bs5/examples/alert/{style → color}/snippet.html.erb +8 -8
- data/app/views/bs5/examples/alert/dismissable/snippet.html.erb +1 -1
- data/app/views/bs5/examples/badge/color/_example.html.erb +2 -0
- data/app/views/bs5/examples/badge/color/snippet.html.erb +8 -0
- data/app/views/bs5/examples/badge/default/_example.html.erb +2 -1
- data/app/views/bs5/examples/badge/default/button.html.erb +3 -0
- data/app/views/bs5/examples/badge/pill/snippet.html.erb +8 -8
- data/app/views/bs5/examples/breadcrumb/default/snippet.html.erb +9 -9
- data/app/views/bs5/examples/button_group/button_toolbar/_example.html.erb +3 -0
- data/app/views/bs5/examples/button_group/button_toolbar/snippet.html.erb +18 -0
- data/app/views/bs5/examples/button_group/button_toolbar/snippet2.html.erb +27 -0
- data/app/views/bs5/examples/button_group/default/_example.html.erb +2 -0
- data/app/views/bs5/examples/button_group/default/snippet.html.erb +5 -0
- data/app/views/bs5/examples/button_group/sizing/_example.html.erb +2 -0
- data/app/views/bs5/examples/button_group/sizing/snippet.html.erb +17 -0
- data/app/views/bs5/examples/button_group/vertical/_example.html.erb +2 -0
- data/app/views/bs5/examples/button_group/vertical/snippet.html.erb +8 -0
- data/app/views/bs5/examples/buttons/button_tag/outline/snippet.html.erb +9 -9
- data/app/views/bs5/examples/buttons/button_tag/size/large.html.erb +2 -2
- data/app/views/bs5/examples/buttons/button_tag/size/small.html.erb +2 -2
- data/app/views/bs5/examples/buttons/button_tag/style/snippet.html.erb +9 -9
- data/app/views/bs5/examples/buttons/button_to/default/snippet.html.erb +3 -3
- data/app/views/bs5/examples/list_group/actionable/button.html.erb +5 -5
- data/app/views/bs5/examples/list_group/actionable/snippet.html.erb +5 -5
- data/app/views/bs5/examples/list_group/active/snippet.html.erb +5 -5
- data/app/views/bs5/examples/list_group/checkboxes_and_radios/default.html.erb +5 -5
- data/app/views/bs5/examples/list_group/checkboxes_and_radios/with_labels.html.erb +5 -5
- data/app/views/bs5/examples/list_group/custom_content/default.html.erb +3 -3
- data/app/views/bs5/examples/list_group/default/snippet.html.erb +5 -5
- data/app/views/bs5/examples/list_group/disabled/snippet.html.erb +5 -5
- data/app/views/bs5/examples/list_group/flush/snippet.html.erb +5 -5
- data/app/views/bs5/examples/list_group/horizontal/snippet.html.erb +18 -18
- data/app/views/bs5/examples/list_group/style/actionable.html.erb +9 -9
- data/app/views/bs5/examples/list_group/style/default.html.erb +9 -9
- data/app/views/bs5/examples/list_group/with_badges/default.html.erb +6 -6
- data/app/views/bs5/examples/popovers/default/snippet.html.erb +1 -1
- data/app/views/bs5/examples/popovers/four_directions/snippet.html.erb +4 -4
- data/app/views/bs5/examples/spinners/border/_example.html.erb +2 -0
- data/app/views/bs5/examples/spinners/border/snippet.html.erb +1 -0
- data/app/views/bs5/examples/spinners/buttons/_example.html.erb +2 -0
- data/app/views/bs5/examples/spinners/buttons/snippet.html.erb +15 -0
- data/app/views/bs5/examples/spinners/colors/_example.html.erb +2 -0
- data/app/views/bs5/examples/spinners/colors/snippet.html.erb +16 -0
- data/app/views/bs5/examples/spinners/growing/_example.html.erb +3 -0
- data/app/views/bs5/examples/spinners/growing/colors.html.erb +16 -0
- data/app/views/bs5/examples/spinners/growing/snippet.html.erb +1 -0
- data/app/views/bs5/examples/spinners/options/_example.html.erb +10 -0
- data/app/views/bs5/examples/spinners/options/floats.html.erb +3 -0
- data/app/views/bs5/examples/spinners/options/margin.html.erb +1 -0
- data/app/views/bs5/examples/spinners/options/placement_flex1.html.erb +3 -0
- data/app/views/bs5/examples/spinners/options/placement_flex2.html.erb +4 -0
- data/app/views/bs5/examples/spinners/options/text_align.html.erb +3 -0
- data/app/views/bs5/examples/spinners/size/_example.html.erb +3 -0
- data/app/views/bs5/examples/spinners/size/size1.html.erb +7 -0
- data/app/views/bs5/examples/spinners/size/size2.html.erb +3 -0
- data/app/views/bs5/examples/tooltips/default/buttons.html.erb +5 -5
- data/app/views/bs5/pages/alert.html.erb +1 -1
- data/app/views/bs5/pages/badge.html.erb +1 -1
- data/app/views/bs5/pages/button_group.html.erb +5 -0
- data/app/views/bs5/pages/popovers.html.erb +3 -0
- data/app/views/bs5/pages/spinners.html.erb +7 -0
- data/app/views/layouts/bs5/pages.html.erb +12 -10
- data/lib/bs5/version.rb +1 -1
- data/lib/tasks/rubocop.rake +2 -0
- metadata +55 -19
- data/app/views/bs5/examples/alert/style/_example.html.erb +0 -2
- data/app/views/bs5/examples/badge/style/_example.html.erb +0 -2
- data/app/views/bs5/examples/badge/style/snippet.html.erb +0 -8
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= bs5_list_group do |lg| %>
|
2
|
-
<% lg.
|
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.
|
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.
|
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>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= bs5_list_group do |lg| %>
|
2
|
-
<% lg.
|
3
|
-
<% lg.
|
4
|
-
<% lg.
|
5
|
-
<% lg.
|
6
|
-
<% lg.
|
2
|
+
<% lg.item 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,7 +1,7 @@
|
|
1
1
|
<%= bs5_list_group do |lg| %>
|
2
|
-
<% lg.
|
3
|
-
<% lg.
|
4
|
-
<% lg.
|
5
|
-
<% lg.
|
6
|
-
<% lg.
|
2
|
+
<% lg.item(disabled: 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,7 +1,7 @@
|
|
1
1
|
<%= bs5_list_group(flush: true) do |lg| %>
|
2
|
-
<% lg.
|
3
|
-
<% lg.
|
4
|
-
<% lg.
|
5
|
-
<% lg.
|
6
|
-
<% lg.
|
2
|
+
<% lg.item 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,30 +1,30 @@
|
|
1
1
|
<%= bs5_list_group(horizontal: true) do |lg| %>
|
2
|
-
<% lg.
|
3
|
-
<% lg.
|
4
|
-
<% lg.
|
2
|
+
<% lg.item do %>Cras justo odio<% end %>
|
3
|
+
<% lg.item do %>Dapibus ac facilisis in<% end %>
|
4
|
+
<% lg.item do %>Morbi leo risus<% end %>
|
5
5
|
<%- end %>
|
6
6
|
<%= bs5_list_group(horizontal: :sm) do |lg| %>
|
7
|
-
<% lg.
|
8
|
-
<% lg.
|
9
|
-
<% lg.
|
7
|
+
<% lg.item do %>Cras justo odio<% end %>
|
8
|
+
<% lg.item do %>Dapibus ac facilisis in<% end %>
|
9
|
+
<% lg.item do %>Morbi leo risus<% end %>
|
10
10
|
<%- end %>
|
11
11
|
<%= bs5_list_group(horizontal: :md) do |lg| %>
|
12
|
-
<% lg.
|
13
|
-
<% lg.
|
14
|
-
<% lg.
|
12
|
+
<% lg.item do %>Cras justo odio<% end %>
|
13
|
+
<% lg.item do %>Dapibus ac facilisis in<% end %>
|
14
|
+
<% lg.item do %>Morbi leo risus<% end %>
|
15
15
|
<%- end %>
|
16
16
|
<%= bs5_list_group(horizontal: :lg) do |lg| %>
|
17
|
-
<% lg.
|
18
|
-
<% lg.
|
19
|
-
<% lg.
|
17
|
+
<% lg.item do %>Cras justo odio<% end %>
|
18
|
+
<% lg.item do %>Dapibus ac facilisis in<% end %>
|
19
|
+
<% lg.item do %>Morbi leo risus<% end %>
|
20
20
|
<%- end %>
|
21
21
|
<%= bs5_list_group(horizontal: :xl) do |lg| %>
|
22
|
-
<% lg.
|
23
|
-
<% lg.
|
24
|
-
<% lg.
|
22
|
+
<% lg.item do %>Cras justo odio<% end %>
|
23
|
+
<% lg.item do %>Dapibus ac facilisis in<% end %>
|
24
|
+
<% lg.item do %>Morbi leo risus<% end %>
|
25
25
|
<%- end %>
|
26
26
|
<%= bs5_list_group(horizontal: :xxl) do |lg| %>
|
27
|
-
<% lg.
|
28
|
-
<% lg.
|
29
|
-
<% lg.
|
27
|
+
<% lg.item do %>Cras justo odio<% end %>
|
28
|
+
<% lg.item do %>Dapibus ac facilisis in<% end %>
|
29
|
+
<% lg.item do %>Morbi leo risus<% end %>
|
30
30
|
<%- end %>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<%= bs5_list_group do |lg| %>
|
2
|
-
<% lg.
|
3
|
-
<% lg.
|
4
|
-
<% lg.
|
5
|
-
<% lg.
|
6
|
-
<% lg.
|
7
|
-
<% lg.
|
8
|
-
<% lg.
|
9
|
-
<% lg.
|
10
|
-
<% lg.
|
2
|
+
<% lg.item do %><%= link_to 'Dapibus ac facilisis in', '#' %><% end %>
|
3
|
+
<% lg.item(color: :primary) do %><%= link_to 'A simple primary list group item', '#' %><% end %>
|
4
|
+
<% lg.item(color: :secondary) do %><%= link_to 'A simple secondary list group item', '#' %><% end %>
|
5
|
+
<% lg.item(color: :success) do %><%= link_to 'A simple success list group item', '#' %><% end %>
|
6
|
+
<% lg.item(color: :danger) do %><%= link_to 'A simple danger list group item', '#' %><% end %>
|
7
|
+
<% lg.item(color: :warning) do %><%= link_to 'A simple warning list group item', '#' %><% end %>
|
8
|
+
<% lg.item(color: :info) do %><%= link_to 'A simple info list group item', '#' %><% end %>
|
9
|
+
<% lg.item(color: :light) do %><%= link_to 'A simple light list group item', '#' %><% end %>
|
10
|
+
<% lg.item(color: :dark) do %><%= link_to 'A simple dark list group item', '#' %><% end %>
|
11
11
|
<%- end %>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<%= bs5_list_group do |lg| %>
|
2
|
-
<% lg.
|
3
|
-
<% lg.
|
4
|
-
<% lg.
|
5
|
-
<% lg.
|
6
|
-
<% lg.
|
7
|
-
<% lg.
|
8
|
-
<% lg.
|
9
|
-
<% lg.
|
10
|
-
<% lg.
|
2
|
+
<% lg.item do %>Dapibus ac facilisis in<% end %>
|
3
|
+
<% lg.item(color: :primary) do %>A simple primary list group item<% end %>
|
4
|
+
<% lg.item(color: :secondary) do %>A simple secondary list group item<% end %>
|
5
|
+
<% lg.item(color: :success) do %>A simple success list group item<% end %>
|
6
|
+
<% lg.item(color: :danger) do %>A simple danger list group item<% end %>
|
7
|
+
<% lg.item(color: :warning) do %>A simple warning list group item<% end %>
|
8
|
+
<% lg.item(color: :info) do %>A simple info list group item<% end %>
|
9
|
+
<% lg.item(color: :light) do %>A simple light list group item<% end %>
|
10
|
+
<% lg.item(color: :dark) do %>A simple dark list group item<% end %>
|
11
11
|
<%- end %>
|
@@ -1,14 +1,14 @@
|
|
1
1
|
<%= bs5_list_group do |lg| %>
|
2
|
-
<% lg.
|
2
|
+
<% lg.item(class: 'd-flex justify-content-between align-items-center') do %>
|
3
3
|
Cras justo odio
|
4
|
-
<%= bs5_badge(text: 14,
|
4
|
+
<%= bs5_badge(text: 14, color: :primary, pill: true) %>
|
5
5
|
<% end %>
|
6
|
-
<% lg.
|
6
|
+
<% lg.item(class: 'd-flex justify-content-between align-items-center') do %>
|
7
7
|
Dapibus ac facilisis in
|
8
|
-
<%= bs5_badge(text: 2,
|
8
|
+
<%= bs5_badge(text: 2, color: :primary, pill: true) %>
|
9
9
|
<% end %>
|
10
|
-
<% lg.
|
10
|
+
<% lg.item(class: 'd-flex justify-content-between align-items-center') do %>
|
11
11
|
Morbi leo risus
|
12
|
-
<%= bs5_badge(text: 1,
|
12
|
+
<%= bs5_badge(text: 1, color: :primary, pill: true) %>
|
13
13
|
<% end %>
|
14
14
|
<%- end %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= bs5_button_tag('Click to toggle popover', bs5_popover(title: 'Popover title', content: "And here's some amazing content. It's very engaging. Right?").merge(type: 'button',
|
1
|
+
<%= bs5_button_tag('Click to toggle popover', bs5_popover(title: 'Popover title', content: "And here's some amazing content. It's very engaging. Right?").merge(type: 'button', color: :danger, size: :large)) %>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<%= bs5_button_tag('Popover on top', bs5_popover(content: "Vivamus sagittis lacus vel augue laoreet rutrum faucibus.", container: :body, placement: :top).merge(type: 'button',
|
1
|
+
<%= bs5_button_tag('Popover on top', bs5_popover(content: "Vivamus sagittis lacus vel augue laoreet rutrum faucibus.", container: :body, placement: :top).merge(type: 'button', color: :secondary)) %>
|
2
2
|
|
3
|
-
<%= bs5_button_tag('Popover on right', bs5_popover(content: "Vivamus sagittis lacus vel augue laoreet rutrum faucibus.", container: :body, placement: :right).merge(type: 'button',
|
3
|
+
<%= bs5_button_tag('Popover on right', bs5_popover(content: "Vivamus sagittis lacus vel augue laoreet rutrum faucibus.", container: :body, placement: :right).merge(type: 'button', color: :secondary)) %>
|
4
4
|
|
5
|
-
<%= bs5_button_tag('Popover on bottom', bs5_popover(content: "Vivamus sagittis lacus vel augue laoreet rutrum faucibus.", container: :body, placement: :bottom).merge(type: 'button',
|
5
|
+
<%= bs5_button_tag('Popover on bottom', bs5_popover(content: "Vivamus sagittis lacus vel augue laoreet rutrum faucibus.", container: :body, placement: :bottom).merge(type: 'button', color: :secondary)) %>
|
6
6
|
|
7
|
-
<%= bs5_button_tag('Popover on left', bs5_popover(content: "Vivamus sagittis lacus vel augue laoreet rutrum faucibus.", container: :body, placement: :left).merge(type: 'button',
|
7
|
+
<%= bs5_button_tag('Popover on left', bs5_popover(content: "Vivamus sagittis lacus vel augue laoreet rutrum faucibus.", container: :body, placement: :left).merge(type: 'button', color: :secondary)) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= bs5_spinner(text: 'Loading...') %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= bs5_button_tag(disabled: true) do %>
|
2
|
+
<%= bs5_spinner(text: 'Loading...', size: :small) %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= bs5_button_tag(disabled: true) do %>
|
6
|
+
<%= bs5_spinner(size: :small) %> Loading...
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<%= bs5_button_tag(disabled: true) do %>
|
10
|
+
<%= bs5_spinner(text: 'Loading...', grow: true, size: :small) %>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<%= bs5_button_tag(disabled: true) do %>
|
14
|
+
<%= bs5_spinner(grow: true, size: :small) %> Loading...
|
15
|
+
<% end %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<%= bs5_spinner(text: 'Loading...', color: :primary) %>
|
2
|
+
|
3
|
+
<%= bs5_spinner(text: 'Loading...', color: :secondary) %>
|
4
|
+
|
5
|
+
<%= bs5_spinner(text: 'Loading...', color: :success) %>
|
6
|
+
|
7
|
+
<%= bs5_spinner(text: 'Loading...', color: :danger) %>
|
8
|
+
|
9
|
+
<%= bs5_spinner(text: 'Loading...', color: :warning) %>
|
10
|
+
|
11
|
+
<%= bs5_spinner(text: 'Loading...', color: :info) %>
|
12
|
+
|
13
|
+
<%= bs5_spinner(text: 'Loading...', color: :light) %>
|
14
|
+
|
15
|
+
<%= bs5_spinner(text: 'Loading...', color: :dark) %>
|
16
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<%= bs5_spinner(text: 'Loading...', color: :primary, grow: true) %>
|
2
|
+
|
3
|
+
<%= bs5_spinner(text: 'Loading...', color: :secondary, grow: true) %>
|
4
|
+
|
5
|
+
<%= bs5_spinner(text: 'Loading...', color: :success, grow: true) %>
|
6
|
+
|
7
|
+
<%= bs5_spinner(text: 'Loading...', color: :danger, grow: true) %>
|
8
|
+
|
9
|
+
<%= bs5_spinner(text: 'Loading...', color: :warning, grow: true) %>
|
10
|
+
|
11
|
+
<%= bs5_spinner(text: 'Loading...', color: :info, grow: true) %>
|
12
|
+
|
13
|
+
<%= bs5_spinner(text: 'Loading...', color: :light, grow: true) %>
|
14
|
+
|
15
|
+
<%= bs5_spinner(text: 'Loading...', color: :dark, grow: true) %>
|
16
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= bs5_spinner(text: 'Loading...', grow: true) %>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<h2>Alignment</h2>
|
2
|
+
<h3>Margin</h3>
|
3
|
+
<%= bs5_example(snippet: 'spinners/options/margin') %>
|
4
|
+
<h3>Placement</h3>
|
5
|
+
<h4>Flex</h4>
|
6
|
+
<%= bs5_example(snippet: 'spinners/options/placement_flex1') %>
|
7
|
+
<%= bs5_example(snippet: 'spinners/options/placement_flex2') %>
|
8
|
+
<h4>Floats</h4>
|
9
|
+
<%= bs5_example(snippet: 'spinners/options/floats') %>
|
10
|
+
<%= bs5_example(snippet: 'spinners/options/text_align') %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= bs5_spinner(text: 'Loading...', class: 'm-5') %>
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<%= bs5_button_tag('Tooltip on top', bs5_tooltip('Tooltip on top', placement: :top).merge(
|
1
|
+
<%= bs5_button_tag('Tooltip on top', bs5_tooltip('Tooltip on top', placement: :top).merge(color: :secondary)) %>
|
2
2
|
|
3
|
-
<%= bs5_button_tag('Tooltip on right', bs5_tooltip('Tooltip on right', placement: :right).merge(
|
3
|
+
<%= bs5_button_tag('Tooltip on right', bs5_tooltip('Tooltip on right', placement: :right).merge(color: :secondary)) %>
|
4
4
|
|
5
|
-
<%= bs5_button_tag('Tooltip on bottom', bs5_tooltip('Tooltip on bottom', placement: :bottom).merge(
|
5
|
+
<%= bs5_button_tag('Tooltip on bottom', bs5_tooltip('Tooltip on bottom', placement: :bottom).merge(color: :secondary)) %>
|
6
6
|
|
7
|
-
<%= bs5_button_tag('Tooltip on left', bs5_tooltip('Tooltip on left', placement: :left).merge(
|
7
|
+
<%= bs5_button_tag('Tooltip on left', bs5_tooltip('Tooltip on left', placement: :left).merge(color: :secondary)) %>
|
8
8
|
|
9
|
-
<%= bs5_button_tag('Tooltip with HTML', bs5_tooltip('<em>Tooltip</em> <u>with</u> <b>HTML</b>', html: :true).merge(
|
9
|
+
<%= bs5_button_tag('Tooltip with HTML', bs5_tooltip('<em>Tooltip</em> <u>with</u> <b>HTML</b>', html: :true).merge(color: :secondary)) %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<h1 id='alert'>Alert</h1>
|
2
2
|
<%= render 'bs5/examples/alert/default/example' %>
|
3
|
-
<%= render 'bs5/examples/alert/
|
3
|
+
<%= render 'bs5/examples/alert/color/example' %>
|
4
4
|
<%= render 'bs5/examples/alert/additional_content/example' %>
|
5
5
|
<%= render 'bs5/examples/alert/dismissable/example' %>
|
@@ -1,2 +1,5 @@
|
|
1
1
|
<h1>Popovers</h1>
|
2
2
|
<%= render 'bs5/examples/popovers/default/example' %>
|
3
|
+
<%= render 'bs5/examples/popovers/four_directions/example' %>
|
4
|
+
<%= render 'bs5/examples/popovers/dismissable_on_next_click/example' %>
|
5
|
+
<%= render 'bs5/examples/popovers/disabled_elements/example' %>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<h1>Spinners</h1>
|
2
|
+
<%= render 'bs5/examples/spinners/border/example' %>
|
3
|
+
<%= render 'bs5/examples/spinners/colors/example' %>
|
4
|
+
<%= render 'bs5/examples/spinners/growing/example' %>
|
5
|
+
<%= render 'bs5/examples/spinners/options/example' %>
|
6
|
+
<%= render 'bs5/examples/spinners/size/example' %>
|
7
|
+
<%= render 'bs5/examples/spinners/buttons/example' %>
|
@@ -13,16 +13,18 @@
|
|
13
13
|
<div class="col">
|
14
14
|
<div class="sticky-top">
|
15
15
|
<%= bs5_list_group(flush: true) do |lg| %>
|
16
|
-
<% lg.
|
17
|
-
<% lg.
|
18
|
-
<% lg.
|
19
|
-
<% lg.
|
20
|
-
<% lg.
|
21
|
-
<% lg.
|
22
|
-
<% lg.
|
23
|
-
<% lg.
|
24
|
-
<% lg.
|
25
|
-
<% lg.
|
16
|
+
<% lg.item(active: current_page?(pages_path('accordion'))) do %><%= link_to 'Accordion', pages_path('accordion') %><% end %>
|
17
|
+
<% lg.item(active: current_page?(pages_path('alert'))) do %><%= link_to 'Alert', pages_path('alert') %><% end %>
|
18
|
+
<% lg.item(active: current_page?(pages_path('badge'))) do %><%= link_to 'Badge', pages_path('badge') %><% end %>
|
19
|
+
<% lg.item(active: current_page?(pages_path('breadcrumb'))) do %><%= link_to 'Breadcrumb', pages_path('breadcrumb') %><% end %>
|
20
|
+
<% lg.item(active: current_page?(pages_path('buttons'))) do %><%= link_to 'Buttons', pages_path('buttons') %><% end %>
|
21
|
+
<% lg.item(active: current_page?(pages_path('button_group'))) do %><%= link_to 'Button group', pages_path('button_group') %><% end %>
|
22
|
+
<% lg.item(active: current_page?(pages_path('close_button'))) do %><%= link_to 'Close button', pages_path('close_button') %><% end %>
|
23
|
+
<% lg.item(active: current_page?(pages_path('collapse'))) do %><%= link_to 'Collapse', pages_path('collapse') %><% end %>
|
24
|
+
<% lg.item(active: current_page?(pages_path('list_group'))) do %><%= link_to 'List group', pages_path('list_group') %><% end %>
|
25
|
+
<% lg.item(active: current_page?(pages_path('popovers'))) do %><%= link_to 'Popovers', pages_path('popovers') %><% end %>
|
26
|
+
<% lg.item(active: current_page?(pages_path('spinners'))) do %><%= link_to 'Spinners', pages_path('spinners') %><% end %>
|
27
|
+
<% lg.item(active: current_page?(pages_path('tooltips'))) do %><%= link_to 'Tooltips', pages_path('tooltips') %><% end %>
|
26
28
|
<%- end %>
|
27
29
|
</div>
|
28
30
|
</div>
|
data/lib/bs5/version.rb
CHANGED
data/lib/tasks/rubocop.rake
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bs5
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Baselier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -59,61 +59,61 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: 3.25.0
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: view_component
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 2.23.0
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 2.23.0
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: capybara
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
82
|
-
type: :
|
81
|
+
version: '3.33'
|
82
|
+
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
88
|
+
version: '3.33'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
90
|
+
name: rspec-rails
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: 4.0.1
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
102
|
+
version: 4.0.1
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
104
|
+
name: rubocop-rails
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: '2.8'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
116
|
+
version: '2.8'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: sqlite3
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,14 +148,20 @@ files:
|
|
148
148
|
- app/components/bs5/badge_component.rb
|
149
149
|
- app/components/bs5/breadcrumb_component.html.erb
|
150
150
|
- app/components/bs5/breadcrumb_component.rb
|
151
|
+
- app/components/bs5/button_group_component.html.erb
|
152
|
+
- app/components/bs5/button_group_component.rb
|
151
153
|
- app/components/bs5/button_tag_component.rb
|
152
154
|
- app/components/bs5/button_to_component.rb
|
155
|
+
- app/components/bs5/button_toolbar_component.html.erb
|
156
|
+
- app/components/bs5/button_toolbar_component.rb
|
153
157
|
- app/components/bs5/close_button_component.html.erb
|
154
158
|
- app/components/bs5/close_button_component.rb
|
155
159
|
- app/components/bs5/example_component.html.erb
|
156
160
|
- app/components/bs5/example_component.rb
|
157
161
|
- app/components/bs5/list_group_component.html.erb
|
158
162
|
- app/components/bs5/list_group_component.rb
|
163
|
+
- app/components/bs5/spinner_component.html.erb
|
164
|
+
- app/components/bs5/spinner_component.rb
|
159
165
|
- app/controllers/bs5/application_controller.rb
|
160
166
|
- app/controllers/bs5/pages_controller.rb
|
161
167
|
- app/helpers/bs5/application_helper.rb
|
@@ -172,20 +178,30 @@ files:
|
|
172
178
|
- app/views/bs5/examples/accordion/flush/snippet.html.erb
|
173
179
|
- app/views/bs5/examples/alert/additional_content/_example.html.erb
|
174
180
|
- app/views/bs5/examples/alert/additional_content/snippet.html.erb
|
181
|
+
- app/views/bs5/examples/alert/color/_example.html.erb
|
182
|
+
- app/views/bs5/examples/alert/color/snippet.html.erb
|
175
183
|
- app/views/bs5/examples/alert/default/_example.html.erb
|
176
184
|
- app/views/bs5/examples/alert/default/snippet.html.erb
|
177
185
|
- app/views/bs5/examples/alert/dismissable/_example.html.erb
|
178
186
|
- app/views/bs5/examples/alert/dismissable/snippet.html.erb
|
179
|
-
- app/views/bs5/examples/
|
180
|
-
- app/views/bs5/examples/
|
187
|
+
- app/views/bs5/examples/badge/color/_example.html.erb
|
188
|
+
- app/views/bs5/examples/badge/color/snippet.html.erb
|
181
189
|
- app/views/bs5/examples/badge/default/_example.html.erb
|
190
|
+
- app/views/bs5/examples/badge/default/button.html.erb
|
182
191
|
- app/views/bs5/examples/badge/default/snippet.html.erb
|
183
192
|
- app/views/bs5/examples/badge/pill/_example.html.erb
|
184
193
|
- app/views/bs5/examples/badge/pill/snippet.html.erb
|
185
|
-
- app/views/bs5/examples/badge/style/_example.html.erb
|
186
|
-
- app/views/bs5/examples/badge/style/snippet.html.erb
|
187
194
|
- app/views/bs5/examples/breadcrumb/default/_example.html.erb
|
188
195
|
- app/views/bs5/examples/breadcrumb/default/snippet.html.erb
|
196
|
+
- app/views/bs5/examples/button_group/button_toolbar/_example.html.erb
|
197
|
+
- app/views/bs5/examples/button_group/button_toolbar/snippet.html.erb
|
198
|
+
- app/views/bs5/examples/button_group/button_toolbar/snippet2.html.erb
|
199
|
+
- app/views/bs5/examples/button_group/default/_example.html.erb
|
200
|
+
- app/views/bs5/examples/button_group/default/snippet.html.erb
|
201
|
+
- app/views/bs5/examples/button_group/sizing/_example.html.erb
|
202
|
+
- app/views/bs5/examples/button_group/sizing/snippet.html.erb
|
203
|
+
- app/views/bs5/examples/button_group/vertical/_example.html.erb
|
204
|
+
- app/views/bs5/examples/button_group/vertical/snippet.html.erb
|
189
205
|
- app/views/bs5/examples/buttons/button_tag/block_buttons/_example.html.erb
|
190
206
|
- app/views/bs5/examples/buttons/button_tag/block_buttons/block_buttons.html.erb
|
191
207
|
- app/views/bs5/examples/buttons/button_tag/block_buttons/responsive_block_buttons_1.html.erb
|
@@ -244,6 +260,24 @@ files:
|
|
244
260
|
- app/views/bs5/examples/popovers/dismissable_on_next_click/snippet.html.erb
|
245
261
|
- app/views/bs5/examples/popovers/four_directions/_example.html.erb
|
246
262
|
- app/views/bs5/examples/popovers/four_directions/snippet.html.erb
|
263
|
+
- app/views/bs5/examples/spinners/border/_example.html.erb
|
264
|
+
- app/views/bs5/examples/spinners/border/snippet.html.erb
|
265
|
+
- app/views/bs5/examples/spinners/buttons/_example.html.erb
|
266
|
+
- app/views/bs5/examples/spinners/buttons/snippet.html.erb
|
267
|
+
- app/views/bs5/examples/spinners/colors/_example.html.erb
|
268
|
+
- app/views/bs5/examples/spinners/colors/snippet.html.erb
|
269
|
+
- app/views/bs5/examples/spinners/growing/_example.html.erb
|
270
|
+
- app/views/bs5/examples/spinners/growing/colors.html.erb
|
271
|
+
- app/views/bs5/examples/spinners/growing/snippet.html.erb
|
272
|
+
- app/views/bs5/examples/spinners/options/_example.html.erb
|
273
|
+
- app/views/bs5/examples/spinners/options/floats.html.erb
|
274
|
+
- app/views/bs5/examples/spinners/options/margin.html.erb
|
275
|
+
- app/views/bs5/examples/spinners/options/placement_flex1.html.erb
|
276
|
+
- app/views/bs5/examples/spinners/options/placement_flex2.html.erb
|
277
|
+
- app/views/bs5/examples/spinners/options/text_align.html.erb
|
278
|
+
- app/views/bs5/examples/spinners/size/_example.html.erb
|
279
|
+
- app/views/bs5/examples/spinners/size/size1.html.erb
|
280
|
+
- app/views/bs5/examples/spinners/size/size2.html.erb
|
247
281
|
- app/views/bs5/examples/tooltips/default/_example.html.erb
|
248
282
|
- app/views/bs5/examples/tooltips/default/buttons.html.erb
|
249
283
|
- app/views/bs5/examples/tooltips/default/disabled_elements.html.erb
|
@@ -252,11 +286,13 @@ files:
|
|
252
286
|
- app/views/bs5/pages/alert.html.erb
|
253
287
|
- app/views/bs5/pages/badge.html.erb
|
254
288
|
- app/views/bs5/pages/breadcrumb.html.erb
|
289
|
+
- app/views/bs5/pages/button_group.html.erb
|
255
290
|
- app/views/bs5/pages/buttons.html.erb
|
256
291
|
- app/views/bs5/pages/close_button.html.erb
|
257
292
|
- app/views/bs5/pages/collapse.html.erb
|
258
293
|
- app/views/bs5/pages/list_group.html.erb
|
259
294
|
- app/views/bs5/pages/popovers.html.erb
|
295
|
+
- app/views/bs5/pages/spinners.html.erb
|
260
296
|
- app/views/bs5/pages/tooltips.html.erb
|
261
297
|
- app/views/layouts/bs5/application.html.erb
|
262
298
|
- app/views/layouts/bs5/pages.html.erb
|