nfg_ui 0.9.18 → 0.9.18.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: 55cbb21a1840083ecb35ef107fe61fbb98c89975cee73b51252772b8f73d8f80
4
- data.tar.gz: 9064214361078d0faceb38795a62d08b2cf8812b21129838d8a561426d1602ce
3
+ metadata.gz: ec294fd688c9cf411f54cd86e724115835731825da30cb3302b578e2bb985d76
4
+ data.tar.gz: 1fd68bf3db3a621473e1439eaf22f997d3454596405ef549f0debfb7dc37e040
5
5
  SHA512:
6
- metadata.gz: c1c2774f650a8c4570f9173e5d20c9e6aadb57f07654e4e2809bfa582c89aa892e88053f03077305c597737ff98a34bb6fdb2abf0ad1ac2d392a0f1004d9ec3d
7
- data.tar.gz: a166a12fd10e92785230fba27e017ede80d8f7f99ac1c130fea8d401ec7c6955c8148b18680b416f5ed6d6bdfcc5219ce15400dd8097cd56783517fcd2d55d7a
6
+ metadata.gz: 60e177088301a6a6b70c581baca04642637c6e30854eea1b0b84a40fe37fc74e477de1d97b821eb6aa33d17bbb3dbb2a9afbf24c024384af38d60d40b8227a1c
7
+ data.tar.gz: 66eb3d56f5d9e1e4766518e702f1da9297981299b9ec667f27742443ab131eb7230f7dbe68373616789312c5d241a66194a405f2fab0b2e93b17544bc60c612f
data/lib/nfg_ui.rb CHANGED
@@ -12,6 +12,9 @@ require 'inky'
12
12
  require 'momentjs-rails'
13
13
 
14
14
  module NfgUi
15
+ DEFAULT_TIP_ICON = 'question-circle-o'
16
+ DEFAULT_TIP_THEME = :info
17
+
15
18
  DEFAULT_BOOTSTRAP_THEME = :primary
16
19
 
17
20
  BOOTSTRAP_THEMES = %i[primary
@@ -8,28 +8,10 @@ module NfgUi
8
8
  TRAITS = %i[tip].freeze
9
9
 
10
10
  def tip_trait
11
- options[:icon] = 'lightbulb-o'
12
- options[:theme] = :info
11
+ options[:icon] = NfgUi::DEFAULT_TIP_ICON
12
+ options[:theme] = NfgUi::DEFAULT_TIP_THEME
13
13
  options[:dismissible] = false
14
14
  end
15
- # include NfgUi::Components::Traits
16
- # include NfgUi::Components::Traits::Theme
17
-
18
- # private
19
-
20
- # def error_trait
21
- # @theme = :danger
22
- # @heading = 'Oops!'
23
- # @body = 'There was an error! Please review this submission and try again'
24
- # end
25
-
26
- # def allowed_traits
27
- # super.push(:dismissible, :error)
28
- # end
29
-
30
- # def skipped_traits
31
- # super.push(:dismissible)
32
- # end
33
15
  end
34
16
  end
35
17
  end
@@ -15,8 +15,8 @@ module NfgUi
15
15
  # Usage:
16
16
  # ui.nfg :icon, :tip, tooltip: 'The tip'
17
17
  def tip_trait
18
- options[:icon] = 'question-circle-o'
19
- options[:theme] = :info
18
+ options[:icon] = NfgUi::DEFAULT_TIP_ICON
19
+ options[:theme] = NfgUi::DEFAULT_TIP_THEME
20
20
  end
21
21
  end
22
22
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NfgUi
4
- VERSION = '0.9.18'
4
+ VERSION = '0.9.18.1'
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.18
4
+ version: 0.9.18.1
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-09-09 00:00:00.000000000 Z
12
+ date: 2019-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap