codengage_view_components 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10b11e8294d377dc8ce2036c02c0fe4e36be286fef928714406c6cf6fd1cb97a
4
- data.tar.gz: 82145cccea34cd4d933a21d22c884a40a242a27c4c6d5a6c01441ba6cdc8c79f
3
+ metadata.gz: cfd73793377d828c00a108614ac1f6d9e77add938707211634c94115d6a2ce11
4
+ data.tar.gz: 9603e42864d524ba3fa0cdbcb8a94cf1834e3b61b8bbbe7105fb6dbbf69478e3
5
5
  SHA512:
6
- metadata.gz: 7a2a7289fee5b358b258ec9c401e0343dbb8f078fa0b267614b45ccb6f9e2279ae001f11326d73319c78545e5bcaa5c873ad384e1c423a2082bf96e1ea1ad2a3
7
- data.tar.gz: a93cf8a53fb6b18e2fc1dc93d880850c0e87b71340f75f7eab7b5e619eb03298671494e753abca9363488aa4b644fe6b39dcf902b5558f37d535ea585b1ca0de
6
+ metadata.gz: 909c752b041b8b5832311f1df812b44fa5b4b92e165be657088f8f71d4484fa6c16c5e2caadbea3d64a0ca1329095a5a0b2265dd8cb2fbffd745f7c7cd000b49
7
+ data.tar.gz: d80cdc63d3f674f21e383785b9259bab2562ef6b27e0c9963c6f9714ea6435e5785a88f12e82c117beebebe64473e4d3c066fed8b2b20d7840e4776832589167
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CodengageViewComponents
4
4
  class DateFieldComponent < ApplicationComponent
5
- def initialize(form:, classes:, attribute:, placeholder:, **data_options)
5
+ def initialize(form:, classes: "", attribute:, placeholder: "", **data_options)
6
6
  @form = form
7
7
  @classes = classes
8
8
  @attribute = attribute
@@ -9,7 +9,7 @@ module CodengageViewComponents
9
9
  "alert" => { bg: "bg-red-700", stroke: "#DC3545", icon: "circle-alert" }
10
10
  }.freeze
11
11
 
12
- def initialize(flash:, classes:)
12
+ def initialize(flash:, classes: "")
13
13
  @classes = classes
14
14
  @messages = flash.map do |type, text|
15
15
  style = STYLES[type]
@@ -1,3 +1,4 @@
1
1
  = link_to @url, class: tab_item_class do
2
- = lucide_icon("#{@icon}", class: 'w-4 h-4')
2
+ - unless @icon.blank?
3
+ = lucide_icon("#{@icon}", class: 'w-4 h-4')
3
4
  = @text
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CodengageViewComponents
4
4
  class TabItemComponent < ApplicationComponent
5
- def initialize(url:, tab:, icon:, text:, classes:)
5
+ def initialize(url:, tab:, icon: "", text: "", classes: "")
6
6
  @url = url
7
7
  @tab = tab
8
8
  @icon = icon
@@ -1,3 +1,3 @@
1
1
  module CodengageViewComponents
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codengage_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Karlinski Baldo