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.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/app/assets/javascripts/interface.coffee +1 -1
  4. data/app/inputs/ui_bibz_inputs/{ui_button_choices_input.rb → ui_choice_group_input.rb} +3 -3
  5. data/lib/ui_bibz.rb +28 -29
  6. data/lib/ui_bibz/helpers/ui/core/{cards_helper.rb → boxes_helper.rb} +14 -6
  7. data/lib/ui_bibz/helpers/ui/core/forms_helper.rb +20 -11
  8. data/lib/ui_bibz/helpers/ui/core/icons_helper.rb +24 -0
  9. data/lib/ui_bibz/helpers/ui/core/lists_helper.rb +11 -0
  10. data/lib/ui_bibz/helpers/ui/core/navigations_helper.rb +64 -0
  11. data/lib/ui_bibz/helpers/ui/core/notifications_helper.rb +43 -0
  12. data/lib/ui_bibz/helpers/ui/core_helper.rb +8 -79
  13. data/lib/ui_bibz/ui/core/{cards → boxes}/card.rb +19 -19
  14. data/lib/ui_bibz/ui/core/{cards → boxes}/card_column.rb +6 -6
  15. data/lib/ui_bibz/ui/core/{cards → boxes}/card_deck.rb +6 -6
  16. data/lib/ui_bibz/ui/core/{cards → boxes}/card_group.rb +6 -6
  17. data/lib/ui_bibz/ui/core/{cards → boxes}/components/body/card_body_link.rb +5 -5
  18. data/lib/ui_bibz/ui/core/{cards → boxes}/components/body/card_body_text.rb +5 -5
  19. data/lib/ui_bibz/ui/core/{cards → boxes}/components/body/card_body_title.rb +5 -5
  20. data/lib/ui_bibz/ui/core/{cards → boxes}/components/card_body.rb +11 -11
  21. data/lib/ui_bibz/ui/core/{cards → boxes}/components/card_footer.rb +5 -5
  22. data/lib/ui_bibz/ui/core/{cards → boxes}/components/card_header.rb +5 -5
  23. data/lib/ui_bibz/ui/core/{cards → boxes}/components/card_image.rb +5 -5
  24. data/lib/ui_bibz/ui/core/{cards → boxes}/components/card_list_group.rb +5 -5
  25. data/lib/ui_bibz/ui/core/{jumbotron.rb → boxes/jumbotron.rb} +6 -6
  26. data/lib/ui_bibz/ui/core/forms/buttons/button.rb +8 -3
  27. data/lib/ui_bibz/ui/core/forms/buttons/button_choice.rb +3 -3
  28. data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +1 -6
  29. data/lib/ui_bibz/ui/core/forms/buttons/components/button_group_dropdown.rb +1 -1
  30. data/lib/ui_bibz/ui/core/forms/choices/choice_group.rb +81 -0
  31. data/lib/ui_bibz/ui/core/forms/{buttons → choices}/components/choice.rb +11 -18
  32. data/lib/ui_bibz/ui/core/{dropdowns → forms/dropdowns}/components/dropdown_divider.rb +1 -1
  33. data/lib/ui_bibz/ui/core/{dropdowns → forms/dropdowns}/components/dropdown_header.rb +5 -5
  34. data/lib/ui_bibz/ui/core/{dropdowns → forms/dropdowns}/components/dropdown_link.rb +5 -5
  35. data/lib/ui_bibz/ui/core/{dropdowns → forms/dropdowns}/dropdown.rb +12 -12
  36. data/lib/ui_bibz/ui/core/{dropdowns → forms/dropdowns}/split_dropdown.rb +6 -6
  37. data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +1 -1
  38. data/lib/ui_bibz/ui/core/forms/selects/multi_select_field.rb +8 -3
  39. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_dropdown.rb +1 -1
  40. data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +1 -1
  41. data/lib/ui_bibz/ui/core/{glyph.rb → icons/glyph.rb} +10 -10
  42. data/lib/ui_bibz/ui/core/{star.rb → icons/star.rb} +6 -6
  43. data/lib/ui_bibz/ui/core/lists/components/list.rb +2 -2
  44. data/lib/ui_bibz/ui/core/{breadcrumb.rb → navigations/breadcrumb.rb} +8 -12
  45. data/lib/ui_bibz/ui/core/{paths → navigations}/components/breadcrumb_link.rb +5 -5
  46. data/lib/ui_bibz/ui/core/{navs → navigations}/components/nav_dropdown.rb +5 -5
  47. data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +68 -0
  48. data/lib/ui_bibz/ui/core/{navs → navigations}/components/nav_link_link.rb +1 -1
  49. data/lib/ui_bibz/ui/core/{navs → navigations}/components/nav_link_list.rb +1 -1
  50. data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +50 -0
  51. data/lib/ui_bibz/ui/core/{navs → navigations}/components/navbar_brand.rb +1 -1
  52. data/lib/ui_bibz/ui/core/{navs → navigations}/components/navbar_form.rb +4 -4
  53. data/lib/ui_bibz/ui/core/{navs → navigations}/components/navbar_nav.rb +7 -7
  54. data/lib/ui_bibz/ui/core/{navs → navigations}/components/navbar_text.rb +5 -5
  55. data/lib/ui_bibz/ui/core/{navs → navigations}/components/pagination_link.rb +6 -6
  56. data/lib/ui_bibz/ui/core/navigations/link.rb +54 -0
  57. data/lib/ui_bibz/ui/core/{navs → navigations}/nav.rb +24 -13
  58. data/lib/ui_bibz/ui/core/{navs → navigations}/navbar.rb +9 -9
  59. data/lib/ui_bibz/ui/core/{navs → navigations}/pagination.rb +6 -6
  60. data/lib/ui_bibz/ui/core/navigations/tab_group.rb +82 -0
  61. data/lib/ui_bibz/ui/core/{forms/buttons/button_toolbar.rb → navigations/toolbar.rb} +12 -8
  62. data/lib/ui_bibz/ui/core/{badge.rb → notifications/badge.rb} +8 -9
  63. data/lib/ui_bibz/ui/core/{progresses → notifications}/components/bar.rb +6 -6
  64. data/lib/ui_bibz/ui/core/{progresses → notifications}/progress_bar.rb +11 -11
  65. data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +1 -1
  66. data/lib/ui_bibz/ui/extensions/core/component/klass_extension.rb +18 -2
  67. data/lib/ui_bibz/ui/ux/tables/components/actions.rb +9 -9
  68. data/lib/ui_bibz/ui/ux/tables/components/as.rb +2 -2
  69. data/lib/ui_bibz/ui/ux/tables/extensions/actionable.rb +1 -1
  70. data/lib/ui_bibz/ui/ux/tables/extensions/searchable.rb +1 -1
  71. data/lib/ui_bibz/ui/ux/tables/extensions/sortable.rb +1 -1
  72. data/lib/ui_bibz/ui/ux/tables/table_card.rb +3 -3
  73. data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +4 -4
  74. data/lib/ui_bibz/utils/screwdriver.rb +10 -1
  75. data/lib/ui_bibz/version.rb +1 -1
  76. data/structure.md +64 -0
  77. data/test/ui/core/{cards → boxes}/card_test.rb +0 -0
  78. data/test/ui/core/{jumbotron_test.rb → boxes/jumbotron_test.rb} +0 -0
  79. data/test/ui/core/forms/buttons/button_test.rb +1 -1
  80. data/test/ui/core/forms/choices/choice_group_test.rb +36 -0
  81. data/test/ui/core/{dropdowns → forms/dropdowns}/dropdown_test.rb +5 -5
  82. data/test/ui/core/forms/selects/multi_select_field_test.rb +2 -2
  83. data/test/ui/core/{glyph_test.rb → icons/glyph_test.rb} +0 -0
  84. data/test/ui/core/{star_test.rb → icons/star_test.rb} +0 -0
  85. data/test/ui/core/{paths → navigations}/breadcrumb_test.rb +0 -0
  86. data/test/ui/core/{navs → navigations}/nav_test.rb +0 -0
  87. data/test/ui/core/{navs → navigations}/navbar_test.rb +4 -4
  88. data/test/ui/core/navigations/pagination_test.rb +38 -0
  89. data/test/ui/core/navigations/tab_group_test.rb +49 -0
  90. data/test/ui/core/navigations/toolbar_test.rb +31 -0
  91. data/test/ui/core/{badge_test.rb → notifications/badge_test.rb} +0 -0
  92. data/test/ui/core/{progress_test.rb → notifications/progress_bar_test.rb} +1 -1
  93. metadata +79 -69
  94. data/lib/ui_bibz/helpers/ui/core/dropdowns_helper.rb +0 -21
  95. data/lib/ui_bibz/helpers/ui/core/navs_helper.rb +0 -27
  96. data/lib/ui_bibz/helpers/ui/core/paths_helper.rb +0 -16
  97. data/lib/ui_bibz/ui/core/navs/components/nav_link.rb +0 -60
  98. data/lib/ui_bibz/ui/core/paths/breadcrumb.rb +0 -109
  99. data/test/ui/core/forms/buttons/button_choice_test.rb +0 -36
@@ -1,9 +1,9 @@
1
- require 'ui_bibz/ui/core/cards/components/card_header'
2
- require 'ui_bibz/ui/core/cards/components/card_footer'
3
- require 'ui_bibz/ui/core/cards/components/card_body'
4
- require 'ui_bibz/ui/core/cards/components/card_image'
5
- require 'ui_bibz/ui/core/cards/components/card_list_group'
6
- module UiBibz::Ui::Core::Cards
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::Cards::Card.new(content, options = nil, html_options = nil)
33
+ # UiBibz::Ui::Core::Boxes::Card.new(content, options = nil, html_options = nil)
34
34
  #
35
- # UiBibz::Ui::Core::Cards::Card.new(options = nil, html_options = nil) do
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::Cards::Card.new(options = nil, html_options = nil).tap do |p|
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::Cards::Card('test').render
47
+ # UiBibz::Ui::Core::Boxes::Card('test').render
48
48
  #
49
- # UiBibz::Ui::Core::Cards::Card(status: :primary) do |d|
49
+ # UiBibz::Ui::Core::Boxes::Card(status: :primary) do |d|
50
50
  # 'test'
51
51
  # end.render
52
52
  #
53
- # UiBibz::Ui::Core::Cards::Card.new().tap do |p|
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::Cards::Components::CardBody.new(@content).render]
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::Cards::Components::CardHeader.new(content, options, html_options, &block).render
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::Cards::Components::CardBody.new(content, options, html_options).tap(&block).render
107
+ @items << UiBibz::Ui::Core::Boxes::Components::CardBody.new(content, options, html_options).tap(&block).render
108
108
  else
109
- @items << UiBibz::Ui::Core::Cards::Components::CardBody.new(content, options, html_options, &block).render
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::Cards::Components::CardFooter.new(content, options, html_options, &block).render
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::Cards::Components::CardListGroup.new(content, options, html_options).tap(&block).render
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::Cards::Components::CardImage.new(content, options, html_options, &block).render
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::Cards
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::Cards::CardColumn.new(content, options = nil, html_options = nil)
18
+ # UiBibz::Ui::Core::Boxes::CardColumn.new(content, options = nil, html_options = nil)
19
19
  #
20
- # UiBibz::Ui::Core::Cards::CardColumn.new(options = nil, html_options = nil) do |cg|
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::Cards::CardColumn.new do |cg|
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::Cards::Card.new(content, options, html_options).tap(&block).render
47
+ @items << UiBibz::Ui::Core::Boxes::Card.new(content, options, html_options).tap(&block).render
48
48
  else
49
- @items << UiBibz::Ui::Core::Cards::Card.new(content, options, html_options, &block).render
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::Cards
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::Cards::CardDeck.new(content, options = nil, html_options = nil)
18
+ # UiBibz::Ui::Core::Boxes::CardDeck.new(content, options = nil, html_options = nil)
19
19
  #
20
- # UiBibz::Ui::Core::Cards::CardDeck.new(options = nil, html_options = nil) do
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::Cards::CardDeck.new do |cg|
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::Cards::Card.new(content, options, html_options).tap(&block).render
49
+ @items << UiBibz::Ui::Core::Boxes::Card.new(content, options, html_options).tap(&block).render
50
50
  else
51
- @items << UiBibz::Ui::Core::Cards::Card.new(content, options, html_options, &block).render
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::Cards
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::Cards::CardGroup.new(content, options = nil, html_options = nil)
18
+ # UiBibz::Ui::Core::Boxes::CardGroup.new(content, options = nil, html_options = nil)
19
19
  #
20
- # UiBibz::Ui::Core::Cards::CardGroup.new(options = nil, html_options = nil) do
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::Cards::CardGroup.new do |cg|
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::Cards::Card.new(content, options, html_options).tap(&block).render
47
+ @items << UiBibz::Ui::Core::Boxes::Card.new(content, options, html_options).tap(&block).render
48
48
  else
49
- @items << UiBibz::Ui::Core::Cards::Card.new(content, options, html_options, &block).render
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::Cards::Components::Body
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::Cards::CardBodyLink.new(content, options = nil, html_options = nil)
18
+ # UiBibz::Ui::Core::Boxes::CardBodyLink.new(content, options = nil, html_options = nil)
19
19
  #
20
- # UiBibz::Ui::Core::Cards::CardBodyLink.new(options = nil, html_options = nil) do
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::Cards::CardBodyLink.new.render
26
+ # UiBibz::Ui::Core::Boxes::CardBodyLink.new.render
27
27
  #
28
- # UiBibz::Ui::Core::Cards::CardBodyLink.new do
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::Cards::Components::Body
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::Cards::CardBodyText.new(content, options = nil, html_options = nil)
18
+ # UiBibz::Ui::Core::Boxes::CardBodyText.new(content, options = nil, html_options = nil)
19
19
  #
20
- # UiBibz::Ui::Core::Cards::CardBodyText.new(options = nil, html_options = nil) do
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::Cards::CardBodyText.new.render
26
+ # UiBibz::Ui::Core::Boxes::CardBodyText.new.render
27
27
  #
28
- # UiBibz::Ui::Core::Cards::CardBodyText.new do
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::Cards::Components::Body
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::Cards::CardBodyTitle.new(content, options = nil, html_options = nil)
18
+ # UiBibz::Ui::Core::Boxes::CardBodyTitle.new(content, options = nil, html_options = nil)
19
19
  #
20
- # UiBibz::Ui::Core::Cards::CardBodyTitle.new(options = nil, html_options = nil) do
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::Cards::CardBodyTitle.new.render
26
+ # UiBibz::Ui::Core::Boxes::CardBodyTitle.new.render
27
27
  #
28
- # UiBibz::Ui::Core::Cards::CardBodyTitle.new do
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/cards/components/body/card_body_text'
2
- require 'ui_bibz/ui/core/cards/components/body/card_body_title'
3
- require 'ui_bibz/ui/core/cards/components/body/card_body_link'
4
- module UiBibz::Ui::Core::Cards::Components
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::Cards::CardBody.new(content, options = nil, html_options = nil)
21
+ # UiBibz::Ui::Core::Boxes::CardBody.new(content, options = nil, html_options = nil)
22
22
  #
23
- # UiBibz::Ui::Core::Cards::CardBody.new(options = nil, html_options = nil) do
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::Cards::CardBody.new.render
29
+ # UiBibz::Ui::Core::Boxes::CardBody.new.render
30
30
  #
31
- # UiBibz::Ui::Core::Cards::CardBody.new do
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::Cards::Components::Body::CardBodyTitle.new(content, options, html_options, &block).render
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::Cards::Components::Body::CardBodyLink.new(content, options, html_options, &block).render
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::Cards::Components::Body::CardBodyText.new(content, options, html_options, &block).render
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::Cards::Components
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::Cards::CardFooter.new(content, options = nil, html_options = nil)
18
+ # UiBibz::Ui::Core::Boxes::CardFooter.new(content, options = nil, html_options = nil)
19
19
  #
20
- # UiBibz::Ui::Core::Cards::CardFooter.new(options = nil, html_options = nil) do
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::Cards::CardFooter.new.render
26
+ # UiBibz::Ui::Core::Boxes::CardFooter.new.render
27
27
  #
28
- # UiBibz::Ui::Core::Cards::CardFooter.new do
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::Cards::Components
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::Cards::CardHeader.new(content, options = nil, html_options = nil)
18
+ # UiBibz::Ui::Core::Boxes::CardHeader.new(content, options = nil, html_options = nil)
19
19
  #
20
- # UiBibz::Ui::Core::Cards::CarHeader.new(options = nil, html_options = nil) do
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::Cards::CardHeader.new.render
26
+ # UiBibz::Ui::Core::Boxes::CardHeader.new.render
27
27
  #
28
- # UiBibz::Ui::Core::Cards::CardHeader.new do
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::Cards::Components
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::Cards::CardImage.new(content, options = nil, html_options = nil)
20
+ # UiBibz::Ui::Core::Boxes::CardImage.new(content, options = nil, html_options = nil)
21
21
  #
22
- # UiBibz::Ui::Core::Cards::CardImage.new(options = nil, html_options = nil) do
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::Cards::CardImage.new.render
28
+ # UiBibz::Ui::Core::Boxes::CardImage.new.render
29
29
  #
30
- # UiBibz::Ui::Core::Cards::CardImage.new do
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::Cards::Components
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::Cards::CardListGroup.new(content, options = nil, html_options = nil)
18
+ # UiBibz::Ui::Core::Boxes::CardListGroup.new(content, options = nil, html_options = nil)
19
19
  #
20
- # UiBibz::Ui::Core::Cards::CardListGroup.new(options = nil, html_options = nil) do
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::Cards::CardListGroup.new.render
26
+ # UiBibz::Ui::Core::Boxes::CardListGroup.new.render
27
27
  #
28
- # UiBibz::Ui::Core::Cards::CardListGroup.new do
28
+ # UiBibz::Ui::Core::Boxes::CardListGroup.new do
29
29
  # 'Exemple'
30
30
  # end.render
31
31
  #