tungsten 0.1.45 → 0.1.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/tungsten/components/_progress-bar.scss +0 -1
- data/app/helpers/tungsten/progress_bar_helper.rb +3 -1
- data/lib/tungsten/version.rb +1 -1
- data/public/code-0.1.45.js +17886 -52
- data/public/code-0.1.46.js +93 -0
- data/public/{code-0.1.45.js.gz → code-0.1.46.js.gz} +0 -0
- data/public/{code-0.1.45.map.json → code-0.1.46.map.json} +0 -0
- data/public/tungsten-0.1.45.js +6596 -88
- data/public/{tungsten-0.1.45.css → tungsten-0.1.46.css} +0 -2
- data/public/tungsten-0.1.46.css.gz +0 -0
- data/public/tungsten-0.1.46.js +101 -0
- data/public/{tungsten-0.1.45.js.gz → tungsten-0.1.46.js.gz} +0 -0
- data/public/{tungsten-0.1.45.map.json → tungsten-0.1.46.map.json} +0 -0
- metadata +10 -8
- data/public/tungsten-0.1.45.css.gz +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1741cb58666c941ea9a9baf7e95e22b61bdc8fb
|
4
|
+
data.tar.gz: 75b2ad918b839d5589ffcbf7751d495b2b9eb7b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d315dc704543316ccc715ec8359e0c92275249e992bd1436ba3e0c70ba33d336d489bb5b5454a1765d6b54dedf87c765d774086dfc77e4eb17551f8f7d403cf
|
7
|
+
data.tar.gz: 7d9a92fcc9709c25529dba33ba63e61831495dd351b9498d39e3b38ca0ba50300526fe5d31c3205c05f5459040d9582803e52eb527dbe72d24f553dc4578bf34
|
@@ -11,6 +11,8 @@ module Tungsten
|
|
11
11
|
options[:class] = "progress-bar #{options[:class]}".strip
|
12
12
|
|
13
13
|
label = block_given? ? capture(&block) : options.delete(:label)
|
14
|
+
|
15
|
+
color = options.delete(:color)
|
14
16
|
|
15
17
|
set_aria! options, {
|
16
18
|
role: 'progressbar',
|
@@ -26,7 +28,7 @@ module Tungsten
|
|
26
28
|
}
|
27
29
|
concat content_tag( :div, options ) {
|
28
30
|
concat content_tag( :div, class: "progress-bar-outline" ) {
|
29
|
-
tag.div class: "progress-bar-fill", style: "width: #{completion}%"
|
31
|
+
tag.div class: "progress-bar-fill #{color}".strip, style: "width: #{completion}%"
|
30
32
|
}
|
31
33
|
concat content_tag( :div, class: 'progress-bar-percentage') { "#{completion}%" } if options[:show_percentage]
|
32
34
|
}
|
data/lib/tungsten/version.rb
CHANGED