ui_bibz 2.0.0.beta2.5 → 2.0.0.beta2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/app/assets/javascripts/interface.coffee +1 -1
- data/app/inputs/ui_bibz_inputs/{ui_button_choices_input.rb → ui_choice_group_input.rb} +3 -3
- data/lib/ui_bibz.rb +28 -29
- data/lib/ui_bibz/helpers/ui/core/{cards_helper.rb → boxes_helper.rb} +14 -6
- data/lib/ui_bibz/helpers/ui/core/forms_helper.rb +20 -11
- data/lib/ui_bibz/helpers/ui/core/icons_helper.rb +24 -0
- data/lib/ui_bibz/helpers/ui/core/lists_helper.rb +11 -0
- data/lib/ui_bibz/helpers/ui/core/navigations_helper.rb +64 -0
- data/lib/ui_bibz/helpers/ui/core/notifications_helper.rb +43 -0
- data/lib/ui_bibz/helpers/ui/core_helper.rb +8 -79
- data/lib/ui_bibz/ui/core/{cards → boxes}/card.rb +19 -19
- data/lib/ui_bibz/ui/core/{cards → boxes}/card_column.rb +6 -6
- data/lib/ui_bibz/ui/core/{cards → boxes}/card_deck.rb +6 -6
- data/lib/ui_bibz/ui/core/{cards → boxes}/card_group.rb +6 -6
- data/lib/ui_bibz/ui/core/{cards → boxes}/components/body/card_body_link.rb +5 -5
- data/lib/ui_bibz/ui/core/{cards → boxes}/components/body/card_body_text.rb +5 -5
- data/lib/ui_bibz/ui/core/{cards → boxes}/components/body/card_body_title.rb +5 -5
- data/lib/ui_bibz/ui/core/{cards → boxes}/components/card_body.rb +11 -11
- data/lib/ui_bibz/ui/core/{cards → boxes}/components/card_footer.rb +5 -5
- data/lib/ui_bibz/ui/core/{cards → boxes}/components/card_header.rb +5 -5
- data/lib/ui_bibz/ui/core/{cards → boxes}/components/card_image.rb +5 -5
- data/lib/ui_bibz/ui/core/{cards → boxes}/components/card_list_group.rb +5 -5
- data/lib/ui_bibz/ui/core/{jumbotron.rb → boxes/jumbotron.rb} +6 -6
- data/lib/ui_bibz/ui/core/forms/buttons/button.rb +8 -3
- data/lib/ui_bibz/ui/core/forms/buttons/button_choice.rb +3 -3
- data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +1 -6
- data/lib/ui_bibz/ui/core/forms/buttons/components/button_group_dropdown.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/choices/choice_group.rb +81 -0
- data/lib/ui_bibz/ui/core/forms/{buttons → choices}/components/choice.rb +11 -18
- data/lib/ui_bibz/ui/core/{dropdowns → forms/dropdowns}/components/dropdown_divider.rb +1 -1
- data/lib/ui_bibz/ui/core/{dropdowns → forms/dropdowns}/components/dropdown_header.rb +5 -5
- data/lib/ui_bibz/ui/core/{dropdowns → forms/dropdowns}/components/dropdown_link.rb +5 -5
- data/lib/ui_bibz/ui/core/{dropdowns → forms/dropdowns}/dropdown.rb +12 -12
- data/lib/ui_bibz/ui/core/{dropdowns → forms/dropdowns}/split_dropdown.rb +6 -6
- data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/selects/multi_select_field.rb +8 -3
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_dropdown.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +1 -1
- data/lib/ui_bibz/ui/core/{glyph.rb → icons/glyph.rb} +10 -10
- data/lib/ui_bibz/ui/core/{star.rb → icons/star.rb} +6 -6
- data/lib/ui_bibz/ui/core/lists/components/list.rb +2 -2
- data/lib/ui_bibz/ui/core/{breadcrumb.rb → navigations/breadcrumb.rb} +8 -12
- data/lib/ui_bibz/ui/core/{paths → navigations}/components/breadcrumb_link.rb +5 -5
- data/lib/ui_bibz/ui/core/{navs → navigations}/components/nav_dropdown.rb +5 -5
- data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +68 -0
- data/lib/ui_bibz/ui/core/{navs → navigations}/components/nav_link_link.rb +1 -1
- data/lib/ui_bibz/ui/core/{navs → navigations}/components/nav_link_list.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +50 -0
- data/lib/ui_bibz/ui/core/{navs → navigations}/components/navbar_brand.rb +1 -1
- data/lib/ui_bibz/ui/core/{navs → navigations}/components/navbar_form.rb +4 -4
- data/lib/ui_bibz/ui/core/{navs → navigations}/components/navbar_nav.rb +7 -7
- data/lib/ui_bibz/ui/core/{navs → navigations}/components/navbar_text.rb +5 -5
- data/lib/ui_bibz/ui/core/{navs → navigations}/components/pagination_link.rb +6 -6
- data/lib/ui_bibz/ui/core/navigations/link.rb +54 -0
- data/lib/ui_bibz/ui/core/{navs → navigations}/nav.rb +24 -13
- data/lib/ui_bibz/ui/core/{navs → navigations}/navbar.rb +9 -9
- data/lib/ui_bibz/ui/core/{navs → navigations}/pagination.rb +6 -6
- data/lib/ui_bibz/ui/core/navigations/tab_group.rb +82 -0
- data/lib/ui_bibz/ui/core/{forms/buttons/button_toolbar.rb → navigations/toolbar.rb} +12 -8
- data/lib/ui_bibz/ui/core/{badge.rb → notifications/badge.rb} +8 -9
- data/lib/ui_bibz/ui/core/{progresses → notifications}/components/bar.rb +6 -6
- data/lib/ui_bibz/ui/core/{progresses → notifications}/progress_bar.rb +11 -11
- data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +1 -1
- data/lib/ui_bibz/ui/extensions/core/component/klass_extension.rb +18 -2
- data/lib/ui_bibz/ui/ux/tables/components/actions.rb +9 -9
- data/lib/ui_bibz/ui/ux/tables/components/as.rb +2 -2
- data/lib/ui_bibz/ui/ux/tables/extensions/actionable.rb +1 -1
- data/lib/ui_bibz/ui/ux/tables/extensions/searchable.rb +1 -1
- data/lib/ui_bibz/ui/ux/tables/extensions/sortable.rb +1 -1
- data/lib/ui_bibz/ui/ux/tables/table_card.rb +3 -3
- data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +4 -4
- data/lib/ui_bibz/utils/screwdriver.rb +10 -1
- data/lib/ui_bibz/version.rb +1 -1
- data/structure.md +64 -0
- data/test/ui/core/{cards → boxes}/card_test.rb +0 -0
- data/test/ui/core/{jumbotron_test.rb → boxes/jumbotron_test.rb} +0 -0
- data/test/ui/core/forms/buttons/button_test.rb +1 -1
- data/test/ui/core/forms/choices/choice_group_test.rb +36 -0
- data/test/ui/core/{dropdowns → forms/dropdowns}/dropdown_test.rb +5 -5
- data/test/ui/core/forms/selects/multi_select_field_test.rb +2 -2
- data/test/ui/core/{glyph_test.rb → icons/glyph_test.rb} +0 -0
- data/test/ui/core/{star_test.rb → icons/star_test.rb} +0 -0
- data/test/ui/core/{paths → navigations}/breadcrumb_test.rb +0 -0
- data/test/ui/core/{navs → navigations}/nav_test.rb +0 -0
- data/test/ui/core/{navs → navigations}/navbar_test.rb +4 -4
- data/test/ui/core/navigations/pagination_test.rb +38 -0
- data/test/ui/core/navigations/tab_group_test.rb +49 -0
- data/test/ui/core/navigations/toolbar_test.rb +31 -0
- data/test/ui/core/{badge_test.rb → notifications/badge_test.rb} +0 -0
- data/test/ui/core/{progress_test.rb → notifications/progress_bar_test.rb} +1 -1
- metadata +79 -69
- data/lib/ui_bibz/helpers/ui/core/dropdowns_helper.rb +0 -21
- data/lib/ui_bibz/helpers/ui/core/navs_helper.rb +0 -27
- data/lib/ui_bibz/helpers/ui/core/paths_helper.rb +0 -16
- data/lib/ui_bibz/ui/core/navs/components/nav_link.rb +0 -60
- data/lib/ui_bibz/ui/core/paths/breadcrumb.rb +0 -109
- data/test/ui/core/forms/buttons/button_choice_test.rb +0 -36
@@ -1,9 +1,9 @@
|
|
1
|
-
require 'ui_bibz/ui/core/
|
2
|
-
require 'ui_bibz/ui/core/
|
3
|
-
require 'ui_bibz/ui/core/
|
4
|
-
require 'ui_bibz/ui/core/
|
5
|
-
require 'ui_bibz/ui/core/
|
6
|
-
module UiBibz::Ui::Core::
|
1
|
+
require 'ui_bibz/ui/core/boxes/components/card_header'
|
2
|
+
require 'ui_bibz/ui/core/boxes/components/card_footer'
|
3
|
+
require 'ui_bibz/ui/core/boxes/components/card_body'
|
4
|
+
require 'ui_bibz/ui/core/boxes/components/card_image'
|
5
|
+
require 'ui_bibz/ui/core/boxes/components/card_list_group'
|
6
|
+
module UiBibz::Ui::Core::Boxes
|
7
7
|
|
8
8
|
# Create a card
|
9
9
|
#
|
@@ -30,13 +30,13 @@ module UiBibz::Ui::Core::Cards
|
|
30
30
|
#
|
31
31
|
# ==== Signatures
|
32
32
|
#
|
33
|
-
# UiBibz::Ui::Core::
|
33
|
+
# UiBibz::Ui::Core::Boxes::Card.new(content, options = nil, html_options = nil)
|
34
34
|
#
|
35
|
-
# UiBibz::Ui::Core::
|
35
|
+
# UiBibz::Ui::Core::Boxes::Card.new(options = nil, html_options = nil) do
|
36
36
|
# content
|
37
37
|
# end
|
38
38
|
#
|
39
|
-
# UiBibz::Ui::Core::
|
39
|
+
# UiBibz::Ui::Core::Boxes::Card.new(options = nil, html_options = nil).tap do |p|
|
40
40
|
# p.header content = nil, options = nil, html_options = nil, &block
|
41
41
|
# p.block content = nil, options = nil, html_options = nil, &block
|
42
42
|
# p.footer content = nil, options = nil, html_options = nil, &block
|
@@ -44,13 +44,13 @@ module UiBibz::Ui::Core::Cards
|
|
44
44
|
#
|
45
45
|
# ==== Examples
|
46
46
|
#
|
47
|
-
# UiBibz::Ui::Core::
|
47
|
+
# UiBibz::Ui::Core::Boxes::Card('test').render
|
48
48
|
#
|
49
|
-
# UiBibz::Ui::Core::
|
49
|
+
# UiBibz::Ui::Core::Boxes::Card(status: :primary) do |d|
|
50
50
|
# 'test'
|
51
51
|
# end.render
|
52
52
|
#
|
53
|
-
# UiBibz::Ui::Core::
|
53
|
+
# UiBibz::Ui::Core::Boxes::Card.new().tap do |p|
|
54
54
|
# p.header 'header', glyph: 'eye', class: 'header-test'
|
55
55
|
# p.block do
|
56
56
|
# 'body'
|
@@ -91,39 +91,39 @@ module UiBibz::Ui::Core::Cards
|
|
91
91
|
# See UiBibz::Ui::Core::Component.initialize
|
92
92
|
def initialize content = nil, options = nil, html_options = nil, &block
|
93
93
|
super
|
94
|
-
@items = @content.nil? ? [] : [UiBibz::Ui::Core::
|
94
|
+
@items = @content.nil? ? [] : [UiBibz::Ui::Core::Boxes::Components::CardBody.new(@content).render]
|
95
95
|
end
|
96
96
|
|
97
97
|
# Add Header which is a component
|
98
98
|
def header content = nil, options = nil, html_options = nil, &block
|
99
99
|
options, content = inherit_options(content, options, block)
|
100
|
-
@header = UiBibz::Ui::Core::
|
100
|
+
@header = UiBibz::Ui::Core::Boxes::Components::CardHeader.new(content, options, html_options, &block).render
|
101
101
|
end
|
102
102
|
|
103
103
|
# Add Body div which is a component
|
104
104
|
def body content = nil, options = nil, html_options = nil, &block
|
105
105
|
options, content = inherit_options(content, options, block)
|
106
106
|
if is_tap(content, options)
|
107
|
-
@items << UiBibz::Ui::Core::
|
107
|
+
@items << UiBibz::Ui::Core::Boxes::Components::CardBody.new(content, options, html_options).tap(&block).render
|
108
108
|
else
|
109
|
-
@items << UiBibz::Ui::Core::
|
109
|
+
@items << UiBibz::Ui::Core::Boxes::Components::CardBody.new(content, options, html_options, &block).render
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
113
|
# Add Footer which is a component
|
114
114
|
def footer content = nil, options = nil, html_options = nil, &block
|
115
115
|
options, content = inherit_options(content, options, block)
|
116
|
-
@footer = UiBibz::Ui::Core::
|
116
|
+
@footer = UiBibz::Ui::Core::Boxes::Components::CardFooter.new(content, options, html_options, &block).render
|
117
117
|
end
|
118
118
|
|
119
119
|
# Add List group which is a component
|
120
120
|
def list_group content = nil, options = nil, html_options = nil, &block
|
121
|
-
@items << UiBibz::Ui::Core::
|
121
|
+
@items << UiBibz::Ui::Core::Boxes::Components::CardListGroup.new(content, options, html_options).tap(&block).render
|
122
122
|
end
|
123
123
|
|
124
124
|
# Add Image which is a component
|
125
125
|
def image content = nil, options = nil, html_options = nil, &block
|
126
|
-
@items << UiBibz::Ui::Core::
|
126
|
+
@items << UiBibz::Ui::Core::Boxes::Components::CardImage.new(content, options, html_options, &block).render
|
127
127
|
end
|
128
128
|
|
129
129
|
# Render html tag
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core::
|
1
|
+
module UiBibz::Ui::Core::Boxes
|
2
2
|
|
3
3
|
# Create a card column
|
4
4
|
#
|
@@ -15,15 +15,15 @@ module UiBibz::Ui::Core::Cards
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::
|
18
|
+
# UiBibz::Ui::Core::Boxes::CardColumn.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::
|
20
|
+
# UiBibz::Ui::Core::Boxes::CardColumn.new(options = nil, html_options = nil) do |cg|
|
21
21
|
# cg.card content, options, html_options, &block
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::
|
26
|
+
# UiBibz::Ui::Core::Boxes::CardColumn.new do |cg|
|
27
27
|
# cg.card 'Exemple 1'
|
28
28
|
# cg.card 'Exemple 2'
|
29
29
|
# cg.card 'Exemple 3'
|
@@ -44,9 +44,9 @@ module UiBibz::Ui::Core::Cards
|
|
44
44
|
|
45
45
|
def card content = nil, options = nil, html_options = nil, &block
|
46
46
|
if is_tap content, options
|
47
|
-
@items << UiBibz::Ui::Core::
|
47
|
+
@items << UiBibz::Ui::Core::Boxes::Card.new(content, options, html_options).tap(&block).render
|
48
48
|
else
|
49
|
-
@items << UiBibz::Ui::Core::
|
49
|
+
@items << UiBibz::Ui::Core::Boxes::Card.new(content, options, html_options, &block).render
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core::
|
1
|
+
module UiBibz::Ui::Core::Boxes
|
2
2
|
|
3
3
|
# Create a card deck
|
4
4
|
#
|
@@ -15,15 +15,15 @@ module UiBibz::Ui::Core::Cards
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::
|
18
|
+
# UiBibz::Ui::Core::Boxes::CardDeck.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::
|
20
|
+
# UiBibz::Ui::Core::Boxes::CardDeck.new(options = nil, html_options = nil) do
|
21
21
|
# cg.card content, options, html_options, &block
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::
|
26
|
+
# UiBibz::Ui::Core::Boxes::CardDeck.new do |cg|
|
27
27
|
# cg.card 'Exemple 1'
|
28
28
|
# cg.card 'Exemple 2'
|
29
29
|
# cg.card 'Exemple 3'
|
@@ -46,9 +46,9 @@ module UiBibz::Ui::Core::Cards
|
|
46
46
|
|
47
47
|
def card content = nil, options = nil, html_options = nil, &block
|
48
48
|
if is_tap content, options
|
49
|
-
@items << UiBibz::Ui::Core::
|
49
|
+
@items << UiBibz::Ui::Core::Boxes::Card.new(content, options, html_options).tap(&block).render
|
50
50
|
else
|
51
|
-
@items << UiBibz::Ui::Core::
|
51
|
+
@items << UiBibz::Ui::Core::Boxes::Card.new(content, options, html_options, &block).render
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core::
|
1
|
+
module UiBibz::Ui::Core::Boxes
|
2
2
|
|
3
3
|
# Create a card group
|
4
4
|
#
|
@@ -15,15 +15,15 @@ module UiBibz::Ui::Core::Cards
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::
|
18
|
+
# UiBibz::Ui::Core::Boxes::CardGroup.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::
|
20
|
+
# UiBibz::Ui::Core::Boxes::CardGroup.new(options = nil, html_options = nil) do
|
21
21
|
# cg.card content, options, html_options, &block
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::
|
26
|
+
# UiBibz::Ui::Core::Boxes::CardGroup.new do |cg|
|
27
27
|
# cg.card 'Exemple 1'
|
28
28
|
# cg.card 'Exemple 2'
|
29
29
|
# cg.card 'Exemple 3'
|
@@ -44,9 +44,9 @@ module UiBibz::Ui::Core::Cards
|
|
44
44
|
|
45
45
|
def card content = nil, options = nil, html_options = nil, &block
|
46
46
|
if is_tap content, options
|
47
|
-
@items << UiBibz::Ui::Core::
|
47
|
+
@items << UiBibz::Ui::Core::Boxes::Card.new(content, options, html_options).tap(&block).render
|
48
48
|
else
|
49
|
-
@items << UiBibz::Ui::Core::
|
49
|
+
@items << UiBibz::Ui::Core::Boxes::Card.new(content, options, html_options, &block).render
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core::
|
1
|
+
module UiBibz::Ui::Core::Boxes::Components::Body
|
2
2
|
|
3
3
|
# Create a card block title
|
4
4
|
#
|
@@ -15,17 +15,17 @@ module UiBibz::Ui::Core::Cards::Components::Body
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::
|
18
|
+
# UiBibz::Ui::Core::Boxes::CardBodyLink.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::
|
20
|
+
# UiBibz::Ui::Core::Boxes::CardBodyLink.new(options = nil, html_options = nil) do
|
21
21
|
# content
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::
|
26
|
+
# UiBibz::Ui::Core::Boxes::CardBodyLink.new.render
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::
|
28
|
+
# UiBibz::Ui::Core::Boxes::CardBodyLink.new do
|
29
29
|
# 'Exemple'
|
30
30
|
# end.render
|
31
31
|
#
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core::
|
1
|
+
module UiBibz::Ui::Core::Boxes::Components::Body
|
2
2
|
|
3
3
|
# Create a card block title
|
4
4
|
#
|
@@ -15,17 +15,17 @@ module UiBibz::Ui::Core::Cards::Components::Body
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::
|
18
|
+
# UiBibz::Ui::Core::Boxes::CardBodyText.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::
|
20
|
+
# UiBibz::Ui::Core::Boxes::CardBodyText.new(options = nil, html_options = nil) do
|
21
21
|
# content
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::
|
26
|
+
# UiBibz::Ui::Core::Boxes::CardBodyText.new.render
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::
|
28
|
+
# UiBibz::Ui::Core::Boxes::CardBodyText.new do
|
29
29
|
# 'Exemple'
|
30
30
|
# end.render
|
31
31
|
#
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core::
|
1
|
+
module UiBibz::Ui::Core::Boxes::Components::Body
|
2
2
|
|
3
3
|
# Create a card block title
|
4
4
|
#
|
@@ -15,17 +15,17 @@ module UiBibz::Ui::Core::Cards::Components::Body
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::
|
18
|
+
# UiBibz::Ui::Core::Boxes::CardBodyTitle.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::
|
20
|
+
# UiBibz::Ui::Core::Boxes::CardBodyTitle.new(options = nil, html_options = nil) do
|
21
21
|
# content
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::
|
26
|
+
# UiBibz::Ui::Core::Boxes::CardBodyTitle.new.render
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::
|
28
|
+
# UiBibz::Ui::Core::Boxes::CardBodyTitle.new do
|
29
29
|
# 'Exemple'
|
30
30
|
# end.render
|
31
31
|
#
|
@@ -1,7 +1,7 @@
|
|
1
|
-
require 'ui_bibz/ui/core/
|
2
|
-
require 'ui_bibz/ui/core/
|
3
|
-
require 'ui_bibz/ui/core/
|
4
|
-
module UiBibz::Ui::Core::
|
1
|
+
require 'ui_bibz/ui/core/boxes/components/body/card_body_text'
|
2
|
+
require 'ui_bibz/ui/core/boxes/components/body/card_body_title'
|
3
|
+
require 'ui_bibz/ui/core/boxes/components/body/card_body_link'
|
4
|
+
module UiBibz::Ui::Core::Boxes::Components
|
5
5
|
|
6
6
|
# Create a card body
|
7
7
|
#
|
@@ -18,17 +18,17 @@ module UiBibz::Ui::Core::Cards::Components
|
|
18
18
|
#
|
19
19
|
# ==== Signatures
|
20
20
|
#
|
21
|
-
# UiBibz::Ui::Core::
|
21
|
+
# UiBibz::Ui::Core::Boxes::CardBody.new(content, options = nil, html_options = nil)
|
22
22
|
#
|
23
|
-
# UiBibz::Ui::Core::
|
23
|
+
# UiBibz::Ui::Core::Boxes::CardBody.new(options = nil, html_options = nil) do
|
24
24
|
# content
|
25
25
|
# end
|
26
26
|
#
|
27
27
|
# ==== Examples
|
28
28
|
#
|
29
|
-
# UiBibz::Ui::Core::
|
29
|
+
# UiBibz::Ui::Core::Boxes::CardBody.new.render
|
30
30
|
#
|
31
|
-
# UiBibz::Ui::Core::
|
31
|
+
# UiBibz::Ui::Core::Boxes::CardBody.new do
|
32
32
|
# 'Exemple'
|
33
33
|
# end.render
|
34
34
|
#
|
@@ -46,15 +46,15 @@ module UiBibz::Ui::Core::Cards::Components
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def title content = nil, options = nil, html_options = nil, &block
|
49
|
-
@items << UiBibz::Ui::Core::
|
49
|
+
@items << UiBibz::Ui::Core::Boxes::Components::Body::CardBodyTitle.new(content, options, html_options, &block).render
|
50
50
|
end
|
51
51
|
|
52
52
|
def link content = nil, options = nil, html_options = nil, &block
|
53
|
-
@items << UiBibz::Ui::Core::
|
53
|
+
@items << UiBibz::Ui::Core::Boxes::Components::Body::CardBodyLink.new(content, options, html_options, &block).render
|
54
54
|
end
|
55
55
|
|
56
56
|
def text content = nil, options = nil, html_options = nil, &block
|
57
|
-
@items << UiBibz::Ui::Core::
|
57
|
+
@items << UiBibz::Ui::Core::Boxes::Components::Body::CardBodyText.new(content, options, html_options, &block).render
|
58
58
|
end
|
59
59
|
|
60
60
|
private
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core::
|
1
|
+
module UiBibz::Ui::Core::Boxes::Components
|
2
2
|
|
3
3
|
# Create a card footer
|
4
4
|
#
|
@@ -15,17 +15,17 @@ module UiBibz::Ui::Core::Cards::Components
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::
|
18
|
+
# UiBibz::Ui::Core::Boxes::CardFooter.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::
|
20
|
+
# UiBibz::Ui::Core::Boxes::CardFooter.new(options = nil, html_options = nil) do
|
21
21
|
# content
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::
|
26
|
+
# UiBibz::Ui::Core::Boxes::CardFooter.new.render
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::
|
28
|
+
# UiBibz::Ui::Core::Boxes::CardFooter.new do
|
29
29
|
# 'Exemple'
|
30
30
|
# end.render
|
31
31
|
#
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core::
|
1
|
+
module UiBibz::Ui::Core::Boxes::Components
|
2
2
|
|
3
3
|
# Create a card header
|
4
4
|
#
|
@@ -15,17 +15,17 @@ module UiBibz::Ui::Core::Cards::Components
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::
|
18
|
+
# UiBibz::Ui::Core::Boxes::CardHeader.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::
|
20
|
+
# UiBibz::Ui::Core::Boxes::CarHeader.new(options = nil, html_options = nil) do
|
21
21
|
# content
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::
|
26
|
+
# UiBibz::Ui::Core::Boxes::CardHeader.new.render
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::
|
28
|
+
# UiBibz::Ui::Core::Boxes::CardHeader.new do
|
29
29
|
# 'Exemple'
|
30
30
|
# end.render
|
31
31
|
#
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core::
|
1
|
+
module UiBibz::Ui::Core::Boxes::Components
|
2
2
|
|
3
3
|
# Create a card image
|
4
4
|
#
|
@@ -17,17 +17,17 @@ module UiBibz::Ui::Core::Cards::Components
|
|
17
17
|
#
|
18
18
|
# ==== Signatures
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::
|
20
|
+
# UiBibz::Ui::Core::Boxes::CardImage.new(content, options = nil, html_options = nil)
|
21
21
|
#
|
22
|
-
# UiBibz::Ui::Core::
|
22
|
+
# UiBibz::Ui::Core::Boxes::CardImage.new(options = nil, html_options = nil) do
|
23
23
|
# content
|
24
24
|
# end
|
25
25
|
#
|
26
26
|
# ==== Examples
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::
|
28
|
+
# UiBibz::Ui::Core::Boxes::CardImage.new.render
|
29
29
|
#
|
30
|
-
# UiBibz::Ui::Core::
|
30
|
+
# UiBibz::Ui::Core::Boxes::CardImage.new do
|
31
31
|
# "/assets/images/test.png"
|
32
32
|
# end.render
|
33
33
|
#
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core::
|
1
|
+
module UiBibz::Ui::Core::Boxes::Components
|
2
2
|
|
3
3
|
# Create a card list_group
|
4
4
|
#
|
@@ -15,17 +15,17 @@ module UiBibz::Ui::Core::Cards::Components
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::
|
18
|
+
# UiBibz::Ui::Core::Boxes::CardListGroup.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::
|
20
|
+
# UiBibz::Ui::Core::Boxes::CardListGroup.new(options = nil, html_options = nil) do
|
21
21
|
# content
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::
|
26
|
+
# UiBibz::Ui::Core::Boxes::CardListGroup.new.render
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::
|
28
|
+
# UiBibz::Ui::Core::Boxes::CardListGroup.new do
|
29
29
|
# 'Exemple'
|
30
30
|
# end.render
|
31
31
|
#
|