matestack-ui-bootstrap 1.4.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +17 -5
  3. data/README.md +53 -19
  4. data/lib/matestack/ui/bootstrap.rb +97 -17
  5. data/{app/concepts → lib}/matestack/ui/bootstrap/apps/admin_template.rb +14 -7
  6. data/lib/matestack/ui/bootstrap/base_component.rb +13 -0
  7. data/lib/matestack/ui/bootstrap/base_vue_js_component.rb +13 -0
  8. data/lib/matestack/ui/bootstrap/components/accordion.rb +58 -0
  9. data/{app/concepts → lib}/matestack/ui/bootstrap/components/alert.js +12 -9
  10. data/lib/matestack/ui/bootstrap/components/alert.rb +43 -0
  11. data/lib/matestack/ui/bootstrap/components/avatar.rb +27 -0
  12. data/lib/matestack/ui/bootstrap/components/badge.rb +32 -0
  13. data/lib/matestack/ui/bootstrap/components/breadcrumb.rb +50 -0
  14. data/lib/matestack/ui/bootstrap/components/button.rb +71 -0
  15. data/lib/matestack/ui/bootstrap/components/button_group.rb +36 -0
  16. data/lib/matestack/ui/bootstrap/components/card.rb +105 -0
  17. data/{app/concepts → lib}/matestack/ui/bootstrap/components/carousel.js +21 -18
  18. data/lib/matestack/ui/bootstrap/components/carousel.rb +103 -0
  19. data/{app/concepts → lib}/matestack/ui/bootstrap/components/close.rb +10 -9
  20. data/{app/concepts → lib}/matestack/ui/bootstrap/components/collapse.js +20 -17
  21. data/lib/matestack/ui/bootstrap/components/collapse.rb +54 -0
  22. data/{app/concepts → lib}/matestack/ui/bootstrap/components/dropdown.js +5 -2
  23. data/{app/concepts → lib}/matestack/ui/bootstrap/components/dropdown.rb +31 -26
  24. data/lib/matestack/ui/bootstrap/components/icon.rb +21 -0
  25. data/lib/matestack/ui/bootstrap/components/list_group.rb +148 -0
  26. data/{app/concepts → lib}/matestack/ui/bootstrap/components/modal.js +24 -21
  27. data/lib/matestack/ui/bootstrap/components/modal.rb +121 -0
  28. data/lib/matestack/ui/bootstrap/components/navbar.rb +163 -0
  29. data/{app/concepts → lib}/matestack/ui/bootstrap/components/page_heading.rb +7 -5
  30. data/{app/concepts → lib}/matestack/ui/bootstrap/components/pagination.rb +15 -13
  31. data/{app/concepts → lib}/matestack/ui/bootstrap/components/popover.js +4 -1
  32. data/{app/concepts → lib}/matestack/ui/bootstrap/components/popover.rb +26 -22
  33. data/{app/concepts → lib}/matestack/ui/bootstrap/components/progress.rb +24 -24
  34. data/lib/matestack/ui/bootstrap/components/scrollspy.rb +50 -0
  35. data/lib/matestack/ui/bootstrap/components/section_card.rb +33 -0
  36. data/lib/matestack/ui/bootstrap/components/spinner.rb +35 -0
  37. data/lib/matestack/ui/bootstrap/components/tab_nav.rb +79 -0
  38. data/lib/matestack/ui/bootstrap/components/tab_nav_content.rb +35 -0
  39. data/{app/concepts → lib}/matestack/ui/bootstrap/components/toast.js +27 -18
  40. data/lib/matestack/ui/bootstrap/components/toast.rb +113 -0
  41. data/{app/concepts → lib}/matestack/ui/bootstrap/components/tooltip.js +4 -1
  42. data/lib/matestack/ui/bootstrap/components/tooltip.rb +66 -0
  43. data/{app/concepts → lib}/matestack/ui/bootstrap/content/figure.rb +4 -2
  44. data/lib/matestack/ui/bootstrap/content/smart_collection/collection.rb +120 -0
  45. data/{app/concepts/matestack/ui/bootstrap/content/collection → lib/matestack/ui/bootstrap/content/smart_collection}/collection.scss +0 -0
  46. data/lib/matestack/ui/bootstrap/content/smart_collection/content.rb +118 -0
  47. data/{app/concepts/matestack/ui/bootstrap/content/collection → lib/matestack/ui/bootstrap/content/smart_collection}/filter.rb +7 -3
  48. data/{app/concepts/matestack/ui/bootstrap/content/collection → lib/matestack/ui/bootstrap/content/smart_collection}/paginate.rb +19 -14
  49. data/lib/matestack/ui/bootstrap/form/checkbox.rb +90 -0
  50. data/lib/matestack/ui/bootstrap/form/input.rb +118 -0
  51. data/lib/matestack/ui/bootstrap/form/radio.rb +57 -0
  52. data/lib/matestack/ui/bootstrap/form/select.rb +63 -0
  53. data/lib/matestack/ui/bootstrap/form/submit.rb +20 -0
  54. data/lib/matestack/ui/bootstrap/form/switch.rb +32 -0
  55. data/lib/matestack/ui/bootstrap/form/textarea.rb +49 -0
  56. data/lib/matestack/ui/bootstrap/index.js +24 -0
  57. data/lib/matestack/ui/bootstrap/layout/column.rb +49 -0
  58. data/{app/concepts → lib}/matestack/ui/bootstrap/layout/container.rb +12 -9
  59. data/lib/matestack/ui/bootstrap/layout/row.rb +25 -0
  60. data/{app/concepts → lib}/matestack/ui/bootstrap/layout/sidebar.js +5 -2
  61. data/{app/concepts → lib}/matestack/ui/bootstrap/layout/sidebar.rb +10 -10
  62. data/{app/concepts → lib}/matestack/ui/bootstrap/layout/sidebar.scss +0 -0
  63. data/lib/matestack/ui/bootstrap/registry.rb +173 -0
  64. data/{app/javascript/matestack-ui-bootstrap → lib/matestack/ui/bootstrap}/stylesheets/matestack-ui-bootstrap.scss +0 -0
  65. data/lib/matestack/ui/bootstrap/version.rb +1 -1
  66. data/lib/tasks/matestack/ui/bootstrap_tasks.rake +25 -25
  67. metadata +68 -76
  68. data/app/assets/images/avatar-placeholder.png +0 -0
  69. data/app/assets/images/icons/bootstrap-icons.svg +0 -1
  70. data/app/concepts/matestack/ui/bootstrap/components/accordion.rb +0 -53
  71. data/app/concepts/matestack/ui/bootstrap/components/alert.rb +0 -34
  72. data/app/concepts/matestack/ui/bootstrap/components/avatar.rb +0 -27
  73. data/app/concepts/matestack/ui/bootstrap/components/badge.rb +0 -30
  74. data/app/concepts/matestack/ui/bootstrap/components/breadcrumb.rb +0 -46
  75. data/app/concepts/matestack/ui/bootstrap/components/button.rb +0 -54
  76. data/app/concepts/matestack/ui/bootstrap/components/button_group.rb +0 -36
  77. data/app/concepts/matestack/ui/bootstrap/components/card.rb +0 -100
  78. data/app/concepts/matestack/ui/bootstrap/components/carousel.rb +0 -85
  79. data/app/concepts/matestack/ui/bootstrap/components/chart.js +0 -232
  80. data/app/concepts/matestack/ui/bootstrap/components/chart.rb +0 -71
  81. data/app/concepts/matestack/ui/bootstrap/components/collapse.rb +0 -43
  82. data/app/concepts/matestack/ui/bootstrap/components/icon.rb +0 -19
  83. data/app/concepts/matestack/ui/bootstrap/components/list_group.rb +0 -83
  84. data/app/concepts/matestack/ui/bootstrap/components/modal.rb +0 -106
  85. data/app/concepts/matestack/ui/bootstrap/components/navbar.rb +0 -120
  86. data/app/concepts/matestack/ui/bootstrap/components/scrollspy.rb +0 -33
  87. data/app/concepts/matestack/ui/bootstrap/components/section_card.rb +0 -31
  88. data/app/concepts/matestack/ui/bootstrap/components/spinner.rb +0 -31
  89. data/app/concepts/matestack/ui/bootstrap/components/tab_nav.rb +0 -81
  90. data/app/concepts/matestack/ui/bootstrap/components/tab_nav_content.rb +0 -32
  91. data/app/concepts/matestack/ui/bootstrap/components/toast.rb +0 -99
  92. data/app/concepts/matestack/ui/bootstrap/components/tooltip.rb +0 -82
  93. data/app/concepts/matestack/ui/bootstrap/content/collection/collection.rb +0 -112
  94. data/app/concepts/matestack/ui/bootstrap/content/collection/content.rb +0 -101
  95. data/app/concepts/matestack/ui/bootstrap/form/checkbox.rb +0 -90
  96. data/app/concepts/matestack/ui/bootstrap/form/date.js +0 -38
  97. data/app/concepts/matestack/ui/bootstrap/form/date.rb +0 -98
  98. data/app/concepts/matestack/ui/bootstrap/form/input.rb +0 -123
  99. data/app/concepts/matestack/ui/bootstrap/form/radio.rb +0 -65
  100. data/app/concepts/matestack/ui/bootstrap/form/select.haml +0 -11
  101. data/app/concepts/matestack/ui/bootstrap/form/select.rb +0 -74
  102. data/app/concepts/matestack/ui/bootstrap/form/submit.rb +0 -20
  103. data/app/concepts/matestack/ui/bootstrap/form/switch.rb +0 -90
  104. data/app/concepts/matestack/ui/bootstrap/layout/column.rb +0 -47
  105. data/app/concepts/matestack/ui/bootstrap/layout/row.rb +0 -15
  106. data/app/concepts/matestack/ui/bootstrap/pages/devise/sign_in.rb +0 -40
  107. data/app/concepts/matestack/ui/bootstrap/registry.rb +0 -63
  108. data/app/helpers/matestack/ui/bootstrap/application_helper.rb +0 -13
  109. data/app/javascript/matestack-ui-bootstrap/index.js +0 -26
  110. data/app/javascript/packs/matestack-ui-bootstrap.js +0 -2
  111. data/config/routes.rb +0 -2
  112. data/lib/matestack/ui/bootstrap/engine.rb +0 -26
@@ -0,0 +1,32 @@
1
+ class Matestack::Ui::Bootstrap::Form::Switch < Matestack::Ui::Bootstrap::Form::Checkbox
2
+
3
+ include Matestack::Ui::Bootstrap::Registry
4
+
5
+ vue_name "matestack-ui-core-form-checkbox"
6
+
7
+ optional :form_text
8
+ optional :disabled
9
+ optional :variant
10
+
11
+ def response
12
+ div class: "matestack-ui-bootstrap-switch" do
13
+ label input_label, class: "form-label", ":for": id if input_label && multiple?
14
+ render_options
15
+ render_errors
16
+ plain context.form_text
17
+ render_form_text if context.form_text
18
+ end
19
+ end
20
+
21
+ private
22
+
23
+ def checkbox_wrapper(options = {}, &block)
24
+ wrapper_attributes = (options[:attributes] || {}).merge({
25
+ class: "form-check form-switch #{'form-check-inline' if context.variant == :inline}"
26
+ })
27
+ div wrapper_attributes do
28
+ yield if block_given?
29
+ end
30
+ end
31
+
32
+ end
@@ -0,0 +1,49 @@
1
+ class Matestack::Ui::Bootstrap::Form::Textarea < Matestack::Ui::VueJs::Components::Form::Textarea
2
+
3
+ include Matestack::Ui::Bootstrap::Registry
4
+
5
+ vue_name "matestack-ui-core-form-textarea"
6
+
7
+ optional :form_text
8
+ optional :disabled
9
+ optional :placeholder
10
+ optional :rows
11
+ optional :cols
12
+
13
+ def response
14
+ div class: "matestack-ui-bootstrap-textarea" do
15
+ label input_label, ":for": id, class: "form-label" if input_label
16
+ textarea options.merge(textarea_attributes).merge(bootstrap_textarea_attributes)
17
+ render_errors
18
+ render_form_text if context.form_text
19
+ end
20
+ end
21
+
22
+ def bootstrap_textarea_attributes
23
+ {
24
+ class: (options[:class] || "") << (" form-control"),
25
+ rows: context.rows,
26
+ cols: context.cols,
27
+ disabled: context.disabled
28
+ }
29
+ end
30
+
31
+ def render_errors
32
+ if display_errors?
33
+ div class: 'invalid-feedback', 'v-for': "error in #{error_key}" do
34
+ plain '{{ error }}'
35
+ end
36
+ end
37
+ end
38
+
39
+ def input_error_class
40
+ 'is-invalid'
41
+ end
42
+
43
+ def render_form_text
44
+ div class: "form-text form-text-for-#{attribute_key}" do
45
+ plain context.form_text
46
+ end
47
+ end
48
+
49
+ end
@@ -0,0 +1,24 @@
1
+ // This file is automatically compiled by Webpack, along with any other files
2
+ // present in this directory. You're encouraged to place your actual application logic in
3
+ // a relevant structure within javascript and only use these pack files to reference
4
+ // that code so it'll be compiled.
5
+
6
+ import "./stylesheets/matestack-ui-bootstrap.scss";
7
+
8
+ import './components/alert'
9
+ import './components/carousel'
10
+ import './components/collapse'
11
+ import './components/dropdown'
12
+ import './components/modal'
13
+ import './components/toast'
14
+ import './components/popover'
15
+ import './components/tooltip'
16
+ import './layout/sidebar'
17
+ import './layout/sidebar.scss'
18
+ import './content/smart_collection/collection.scss'
19
+
20
+ const MatestackUiBootstrap = {}
21
+
22
+ window.MatestackUiBootstrap = MatestackUiBootstrap
23
+
24
+ export default MatestackUiBootstrap
@@ -0,0 +1,49 @@
1
+ require_relative "../base_component"
2
+
3
+ class Matestack::Ui::Bootstrap::Layout::Column < Matestack::Ui::Bootstrap::BaseComponent
4
+
5
+ COL_ATTRIBUTES = %i[default sm md lg xl xxl]
6
+ optional *COL_ATTRIBUTES
7
+
8
+ ORDER_ATTRIBUTES = %i[order order_sm order_md order_lg order_xl order_xxl]
9
+ optional *ORDER_ATTRIBUTES
10
+
11
+ OFFSET_ATTRIBUTES = %i[offset offset_sm offset_md offset_lg offset_xl offset_xxl]
12
+ optional *OFFSET_ATTRIBUTES
13
+
14
+ optional class: { as: :bs_class }
15
+ optional :align_self
16
+
17
+ def response
18
+ div col_attributes do
19
+ yield if block_given?
20
+ end
21
+ end
22
+
23
+ protected
24
+
25
+ def col_attributes
26
+ options.merge(
27
+ class: col_classes
28
+ )
29
+ end
30
+
31
+ def col_classes
32
+ classes = []
33
+ COL_ATTRIBUTES.each do |attrs|
34
+ classes << "col-#{ context.send("#{attrs}") }" if attrs == :default and context.send("#{attrs}")
35
+ classes << "col-#{attrs}-#{ context.send("#{attrs}") }" if attrs != :default and context.send("#{attrs}")
36
+ end
37
+ ORDER_ATTRIBUTES.each do |attrs|
38
+ classes << "#{attrs}-#{ context.send("#{attrs}") }".gsub('_', '-') if context.send("#{attrs}")
39
+ end
40
+ OFFSET_ATTRIBUTES.each do |attrs|
41
+ classes << "#{attrs}-#{ context.send("#{attrs}") }".gsub('_', '-') if context.send("#{attrs}")
42
+ end
43
+ classes << "align-self-#{context.align_self}" if context.align_self.present?
44
+ classes << "col" if classes.blank?
45
+ classes << context.bs_class
46
+ classes.join(' ').strip
47
+ end
48
+
49
+ end
@@ -1,25 +1,28 @@
1
- class Matestack::Ui::Bootstrap::Layout::Container < Matestack::Ui::Component
1
+ require_relative "../base_component"
2
2
 
3
- optional :size, class: { as: :bs_class }
3
+ class Matestack::Ui::Bootstrap::Layout::Container < Matestack::Ui::Bootstrap::BaseComponent
4
4
 
5
- def response
5
+ optional :size
6
+
7
+ def response
6
8
  div container_attributes do
7
- yield_components
9
+ yield
8
10
  end
9
11
  end
10
12
 
11
13
  protected
12
-
14
+
13
15
  def container_attributes
14
- html_attributes.merge(
16
+ options.merge(
15
17
  class: container_classes
16
18
  )
17
19
  end
18
20
 
19
21
  def container_classes
20
22
  [].tap do |classes|
21
- classes << (size.present? ? "container-#{size}" : "container")
22
- classes << bs_class
23
+ classes << (context.size.present? ? "container-#{context.size}" : "container")
24
+ classes << options[:class]
23
25
  end.join(' ').strip
24
26
  end
25
- end
27
+
28
+ end
@@ -0,0 +1,25 @@
1
+ require_relative "../base_component"
2
+
3
+ class Matestack::Ui::Bootstrap::Layout::Row < Matestack::Ui::Bootstrap::BaseComponent
4
+
5
+ optional :vertical
6
+ optional :horizontal
7
+ optional class: { as: :bs_class }
8
+
9
+ def response
10
+ div options.merge(class: row_classes) do
11
+ yield if block_given?
12
+ end
13
+ end
14
+
15
+ def row_classes
16
+ classes = ["row"]
17
+
18
+ classes << "align-items-#{context.vertical}" if context.vertical.present?
19
+ classes << "justify-content-#{context.horizontal}" if context.horizontal.present?
20
+ classes << "#{context.bs_class}" if context.bs_class.present?
21
+
22
+ classes.join(' ')
23
+ end
24
+
25
+ end
@@ -1,6 +1,9 @@
1
- const bootstrap = require('bootstrap')
1
+ import * as bootstrap from 'bootstrap'
2
+ import Vue from 'vue/dist/vue.esm'
2
3
 
3
- MatestackUiCore.Vue.component('matestack-ui-bootstrap-sidebar', {
4
+ import MatestackUiCore from 'matestack-ui-core'
5
+
6
+ Vue.component('matestack-ui-bootstrap-sidebar', {
4
7
  mixins: [MatestackUiCore.componentMixin],
5
8
 
6
9
  data() {
@@ -1,20 +1,21 @@
1
- class Matestack::Ui::Bootstrap::Layout::Sidebar < Matestack::Ui::VueJsComponent
1
+ require_relative "../base_vue_js_component"
2
2
 
3
- vue_js_component_name "matestack-ui-bootstrap-sidebar"
3
+ class Matestack::Ui::Bootstrap::Layout::Sidebar < Matestack::Ui::Bootstrap::BaseVueJsComponent
4
+
5
+ vue_name "matestack-ui-bootstrap-sidebar"
4
6
 
5
- optional :slots
6
7
  optional :sidebar_navigation_items
7
8
 
8
9
  def response
9
10
  div class: "sidebar-wrapper shadow-sm bg-white", id: "sidebar" do
10
11
  nav class: 'sidebar pt-4 px-3' do
11
12
  div class: "sidebar-toggler" do
12
- bs_btn variant: :link, attributes: { "@click": "sidebarToggle" } do
13
+ bs_btn variant: :link, "@click": "sidebarToggle" do
13
14
  bs_icon name: "list", size: 25, class: "text-muted"
14
15
  end
15
16
  end
16
17
  div class: "sidebar-top mb-3" do
17
- slot slots[:sidebar_top] if slots[:sidebar_top].present?
18
+ slot :sidebar_top if slots && slots[:sidebar_top].present?
18
19
  end
19
20
  div class: "sidebar-navigation my-3" do
20
21
  sidebar_navigation_partial
@@ -25,21 +26,20 @@ class Matestack::Ui::Bootstrap::Layout::Sidebar < Matestack::Ui::VueJsComponent
25
26
 
26
27
  def sidebar_navigation_partial
27
28
  div class: "list-group" do
28
- sidebar_navigation_items.each do |item|
29
+ context.sidebar_navigation_items.each do |item|
29
30
  if item[:type] == :link
30
- link class: "list-group-item list-group-item-action border-0 rounded", path: item[:path] do
31
+ a class: "list-group-item list-group-item-action border-0 rounded", href: item[:path] do
31
32
  bs_icon name: item[:icon], size: 20 if item[:icon]
32
- span class: "ps-3", text: item[:text] if item[:text]
33
+ span item[:text], class: "ps-3" if item[:text]
33
34
  end
34
35
  else
35
36
  transition class: "list-group-item list-group-item-action border-0 rounded", path: item[:path], delay: item[:delay] || 300 do
36
37
  bs_icon name: item[:icon], size: 20 if item[:icon]
37
- span class: "ps-3", text: item[:text] if item[:text]
38
+ span item[:text], class: "ps-3" if item[:text]
38
39
  end
39
40
  end
40
41
  end
41
42
  end
42
43
  end
43
44
 
44
-
45
45
  end
@@ -0,0 +1,173 @@
1
+ module Matestack::Ui::Bootstrap::Registry
2
+
3
+ def bs_accordion(text=nil, options=nil, &block)
4
+ Matestack::Ui::Bootstrap::Components::Accordion.(text, options, &block)
5
+ end
6
+
7
+ def bs_alert(text=nil, options=nil, &block)
8
+ Matestack::Ui::Bootstrap::Components::Alert.(text, options, &block)
9
+ end
10
+
11
+ def bs_avatar(text=nil, options=nil, &block)
12
+ Matestack::Ui::Bootstrap::Components::Avatar.(text, options, &block)
13
+ end
14
+
15
+ def bs_badge(text=nil, options=nil, &block)
16
+ Matestack::Ui::Bootstrap::Components::Badge.(text, options, &block)
17
+ end
18
+
19
+ def bs_breadcrumb(text=nil, options=nil, &block)
20
+ Matestack::Ui::Bootstrap::Components::Breadcrumb.(text, options, &block)
21
+ end
22
+
23
+ def bs_btn(text=nil, options=nil, &block)
24
+ Matestack::Ui::Bootstrap::Components::Button.(text, options, &block)
25
+ end
26
+
27
+ def bs_btn_group(text=nil, options=nil, &block)
28
+ Matestack::Ui::Bootstrap::Components::ButtonGroup.(text, options, &block)
29
+ end
30
+
31
+ def bs_card(text=nil, options=nil, &block)
32
+ Matestack::Ui::Bootstrap::Components::Card.(text, options, &block)
33
+ end
34
+
35
+ def bs_carousel(text=nil, options=nil, &block)
36
+ Matestack::Ui::Bootstrap::Components::Carousel.(text, options, &block)
37
+ end
38
+
39
+ def bs_close(text=nil, options=nil, &block)
40
+ Matestack::Ui::Bootstrap::Components::Close.(text, options, &block)
41
+ end
42
+
43
+ def bs_collapse(text=nil, options=nil, &block)
44
+ Matestack::Ui::Bootstrap::Components::Collapse.(text, options, &block)
45
+ end
46
+
47
+ def bs_dropdown(text=nil, options=nil, &block)
48
+ Matestack::Ui::Bootstrap::Components::Dropdown.(text, options, &block)
49
+ end
50
+
51
+ def bs_icon(text=nil, options=nil, &block)
52
+ Matestack::Ui::Bootstrap::Components::Icon.(text, options, &block)
53
+ end
54
+
55
+ def bs_list_group(text=nil, options=nil, &block)
56
+ Matestack::Ui::Bootstrap::Components::ListGroup.(text, options, &block)
57
+ end
58
+
59
+ def bs_modal(text=nil, options=nil, &block)
60
+ Matestack::Ui::Bootstrap::Components::Modal.(text, options, &block)
61
+ end
62
+
63
+ def bs_navbar(text=nil, options=nil, &block)
64
+ Matestack::Ui::Bootstrap::Components::Navbar.(text, options, &block)
65
+ end
66
+
67
+ def bs_pagination(text=nil, options=nil, &block)
68
+ Matestack::Ui::Bootstrap::Components::Pagination.(text, options, &block)
69
+ end
70
+
71
+ def bs_page_heading(text=nil, options=nil, &block)
72
+ Matestack::Ui::Bootstrap::Components::PageHeading.(text, options, &block)
73
+ end
74
+
75
+ def bs_popover(text=nil, options=nil, &block)
76
+ Matestack::Ui::Bootstrap::Components::Popover.(text, options, &block)
77
+ end
78
+
79
+ def bs_progress(text=nil, options=nil, &block)
80
+ Matestack::Ui::Bootstrap::Components::Progress.(text, options, &block)
81
+ end
82
+
83
+ def bs_scrollspy(text=nil, options=nil, &block)
84
+ Matestack::Ui::Bootstrap::Components::Scrollspy.(text, options, &block)
85
+ end
86
+
87
+ def bs_section_card(text=nil, options=nil, &block)
88
+ Matestack::Ui::Bootstrap::Components::SectionCard.(text, options, &block)
89
+ end
90
+
91
+ def bs_spinner(text=nil, options=nil, &block)
92
+ Matestack::Ui::Bootstrap::Components::Spinner.(text, options, &block)
93
+ end
94
+
95
+ def bs_tab_nav(text=nil, options=nil, &block)
96
+ Matestack::Ui::Bootstrap::Components::TabNav.(text, options, &block)
97
+ end
98
+
99
+ def bs_tab_nav_content(text=nil, options=nil, &block)
100
+ Matestack::Ui::Bootstrap::Components::TabNavContent.(text, options, &block)
101
+ end
102
+
103
+ def bs_toast(text=nil, options=nil, &block)
104
+ Matestack::Ui::Bootstrap::Components::Toast.(text, options, &block)
105
+ end
106
+
107
+ def bs_tooltip(text=nil, options=nil, &block)
108
+ Matestack::Ui::Bootstrap::Components::Tooltip.(text, options, &block)
109
+ end
110
+
111
+
112
+
113
+ def bs_form_input(text=nil, options=nil, &block)
114
+ Matestack::Ui::Bootstrap::Form::Input.(text, options, &block)
115
+ end
116
+
117
+ def bs_form_textarea(text=nil, options=nil, &block)
118
+ Matestack::Ui::Bootstrap::Form::Textarea.(text, options, &block)
119
+ end
120
+
121
+ def bs_form_select(text=nil, options=nil, &block)
122
+ Matestack::Ui::Bootstrap::Form::Select.(text, options, &block)
123
+ end
124
+
125
+ def bs_form_checkbox(text=nil, options=nil, &block)
126
+ Matestack::Ui::Bootstrap::Form::Checkbox.(text, options, &block)
127
+ end
128
+
129
+ def bs_form_radio(text=nil, options=nil, &block)
130
+ Matestack::Ui::Bootstrap::Form::Radio.(text, options, &block)
131
+ end
132
+
133
+ def bs_form_switch(text=nil, options=nil, &block)
134
+ Matestack::Ui::Bootstrap::Form::Switch.(text, options, &block)
135
+ end
136
+
137
+ def bs_form_submit(text=nil, options=nil, &block)
138
+ Matestack::Ui::Bootstrap::Form::Submit.(text, options, &block)
139
+ end
140
+
141
+
142
+
143
+
144
+ def bs_figure(text=nil, options=nil, &block)
145
+ Matestack::Ui::Bootstrap::Content::Figure.(text, options, &block)
146
+ end
147
+
148
+ def bs_smart_collection(text=nil, options=nil, &block)
149
+ Matestack::Ui::Bootstrap::Content::SmartCollection::Collection.(text, options, &block)
150
+ end
151
+
152
+
153
+
154
+
155
+ def bs_col(text=nil, options=nil, &block)
156
+ Matestack::Ui::Bootstrap::Layout::Column.(text, options, &block)
157
+ end
158
+
159
+ def bs_container(text=nil, options=nil, &block)
160
+ Matestack::Ui::Bootstrap::Layout::Container.(text, options, &block)
161
+ end
162
+
163
+ def bs_row(text=nil, options=nil, &block)
164
+ Matestack::Ui::Bootstrap::Layout::Row.(text, options, &block)
165
+ end
166
+
167
+ def bs_sidebar(text=nil, options=nil, &block)
168
+ Matestack::Ui::Bootstrap::Layout::Sidebar.(text, options, &block)
169
+ end
170
+
171
+
172
+
173
+ end