nfg_ui 0.9.8.18 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f540ed4257fe4de0037fc5de979e560d0b5625687de36ed13a43bf9ae2bfe01
4
- data.tar.gz: e718cb003e1ffcdd1db29dcfa93515dc07099843b369c60c6ef89f5c366c30dd
3
+ metadata.gz: e929dc744ed1f19b18929848cdb4d01746d23cad7c72a79a9dfb9c3295f2ee8b
4
+ data.tar.gz: 7760d51a76d7ec5c639a7baf1277bdde9e4c459e63257d2748747b9a9dc6842e
5
5
  SHA512:
6
- metadata.gz: 2131c8f600c03eac815811d706e4be84be703f331ebab52d1727c8e7af55e969b0ba88c324ad3cdfa272f9c43b4e9f5c80b376537c211797ea94a32c79394063
7
- data.tar.gz: 0a04d17b0116d9ab759ef03ff0452221e5171d5d291500b2adce2e64b37c9d5424ef9c39c86fdb9e8199986e48288570f1e7f098c48f2f5ad3e46f121a9ac9ed
6
+ metadata.gz: fd11a1b6c33e5c98d3654006f3da19a7bec77921e41fd0406ea83de3d31d08dc3c7b3cce4416b7eddad970341139562a41802b66902f5e42686b7bbff2105dda
7
+ data.tar.gz: 6c304b8e6b4aef3ac831c1d772c5f512f2d702fbe7f3d3f966d0f3b6f9ed942bb6d5f4cb4624e73516dbd8c885229667cddaeb671bf88ce9411063e1c8c9e73c
@@ -84,6 +84,7 @@ module NfgUi
84
84
  options.fetch(:remote, nil)
85
85
  end
86
86
 
87
+ # Render the component!
87
88
  def render_integrated_slat_action
88
89
  button ? render_button : render_link
89
90
  end
@@ -97,16 +98,6 @@ module NfgUi
97
98
  # The default `:secondary` theme can be manually overridden by passing in a
98
99
  # `:theme` trait or `:theme` option to the parent SlatActions component.
99
100
  def theme
100
- # Note: this needs to be solved / addressed
101
- # For whatever reason, the traits are not being picked up by the
102
- # button version of the slat action.
103
- # This ensures that any theme traits get applied here.
104
- # calculated_theme = (traits & NfgUi::Components::Traits::Theme::COLOR_TRAITS)
105
-
106
- # calculated_theme.any? ? calculated_theme.first : options[:theme]
107
- # raise options.inspect
108
- # options[:theme]
109
- # options.fetch(:theme, super)
110
101
  options.fetch(:theme, nil)
111
102
  end
112
103
 
@@ -141,12 +132,7 @@ module NfgUi
141
132
  # and what is not allowed to pass into the
142
133
  # integrated component.
143
134
  def integrated_slat_action_button_component_options
144
- # Do not set theme to nil (so theme defaults will run)
145
- # Instead, do not pass in a theme at all.
146
- # theme_options_hash = theme ? { theme: theme } : {}
147
-
148
135
  { theme: (theme || :secondary),
149
- # **theme_options_hash,
150
136
  traits: traits,
151
137
  as: :a,
152
138
  confirm: confirm,
@@ -155,7 +141,7 @@ module NfgUi
155
141
  method: send(:method),
156
142
  remote: remote,
157
143
  outlined: outlined,
158
- icon: icon }
144
+ left_icon: icon }
159
145
  end
160
146
 
161
147
  # Given the complexity of the data-attributes,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NfgUi
4
- VERSION = '0.9.8.18'
4
+ VERSION = '0.9.9'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nfg_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8.18
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Roehm
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-06-04 00:00:00.000000000 Z
12
+ date: 2019-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap