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 +4 -4
- data/lib/nfg_ui.rb +3 -0
- data/lib/nfg_ui/components/traits/alert.rb +2 -20
- data/lib/nfg_ui/components/traits/icon.rb +2 -2
- data/lib/nfg_ui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec294fd688c9cf411f54cd86e724115835731825da30cb3302b578e2bb985d76
|
4
|
+
data.tar.gz: 1fd68bf3db3a621473e1439eaf22f997d3454596405ef549f0debfb7dc37e040
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60e177088301a6a6b70c581baca04642637c6e30854eea1b0b84a40fe37fc74e477de1d97b821eb6aa33d17bbb3dbb2a9afbf24c024384af38d60d40b8227a1c
|
7
|
+
data.tar.gz: 66eb3d56f5d9e1e4766518e702f1da9297981299b9ec667f27742443ab131eb7230f7dbe68373616789312c5d241a66194a405f2fab0b2e93b17544bc60c612f
|
data/lib/nfg_ui.rb
CHANGED
@@ -8,28 +8,10 @@ module NfgUi
|
|
8
8
|
TRAITS = %i[tip].freeze
|
9
9
|
|
10
10
|
def tip_trait
|
11
|
-
options[:icon] =
|
12
|
-
options[:theme] =
|
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] =
|
19
|
-
options[:theme] =
|
18
|
+
options[:icon] = NfgUi::DEFAULT_TIP_ICON
|
19
|
+
options[:theme] = NfgUi::DEFAULT_TIP_THEME
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
data/lib/nfg_ui/version.rb
CHANGED
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-
|
12
|
+
date: 2019-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|