nfg_ui 0.9.16 → 0.9.17
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/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_button-group.scss +14 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/application.scss +1 -1
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_button-group.scss +22 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/plugins/_datetimepicker.scss +6 -0
- data/lib/nfg_ui/bootstrap/components/button_group.rb +10 -8
- data/lib/nfg_ui/components/patterns/button_group.rb +0 -7
- data/lib/nfg_ui/version.rb +1 -1
- metadata +20 -6
- data/lib/nfg_ui/version.rb.orig +0 -9
- /data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/{_custom_forms.scss → _custom-forms.scss} +0 -0
- /data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/{_custom_forms.scss → _custom-forms.scss} +0 -0
- /data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/{_custom_forms.scss → _custom-forms.scss} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 226f29c2a1065ad0d56011c58f459afea23f1039769e747f7be41815971504f7
|
4
|
+
data.tar.gz: 313e502c3d37a856fd78a692fd87058e0143a49ab95240f5dd258cf05cafc051
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59b163a6c1c1bc685b762228b10ad0b8a42c31dff585941140c128976c6c938480e25c7eccc9a93eef9c8951a8f3f61c99e5cd36b8e3564012ce8de8c6be2026
|
7
|
+
data.tar.gz: 271933966dda44648ded11f1ca90c8c2a41d6184248d790a5ee2ed82376f82f549a045e48a0a3cbd9e57fa289ebe8cd968f3f21eca4a58f4e9e291fca516d092
|
@@ -6,3 +6,17 @@
|
|
6
6
|
border-left-color: rgba(0,0,0,.15);
|
7
7
|
}
|
8
8
|
}
|
9
|
+
|
10
|
+
.btn-group-vertical {
|
11
|
+
> .btn { width: auto; }
|
12
|
+
|
13
|
+
> .btn:not(:first-child),
|
14
|
+
> .btn-group:not(:first-child) { margin-top: 0; }
|
15
|
+
|
16
|
+
// Reset rounded corners
|
17
|
+
> .btn:not(:last-child):not(.dropdown-toggle),
|
18
|
+
> .btn-group:not(:last-child) > .btn { @include border-bottom-radius($btn-border-radius); }
|
19
|
+
|
20
|
+
> .btn:not(:first-child),
|
21
|
+
> .btn-group:not(:first-child) > .btn { @include border-top-radius($btn-border-radius); }
|
22
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
// Add visual separator for btn-primary buttons that are in a button group
|
2
|
+
.btn-group {
|
3
|
+
> .btn-primary:not(:first-child),
|
4
|
+
> .btn-group:not(:first-child) > .btn-primary {
|
5
|
+
margin-left: 0;
|
6
|
+
border-left-color: rgba(0,0,0,.15);
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
.btn-group-vertical {
|
11
|
+
> .btn { width: auto; }
|
12
|
+
|
13
|
+
> .btn:not(:first-child),
|
14
|
+
> .btn-group:not(:first-child) { margin-top: 0; }
|
15
|
+
|
16
|
+
// Reset rounded corners
|
17
|
+
> .btn:not(:last-child):not(.dropdown-toggle),
|
18
|
+
> .btn-group:not(:last-child) > .btn { @include border-bottom-radius($btn-border-radius); }
|
19
|
+
|
20
|
+
> .btn:not(:first-child),
|
21
|
+
> .btn-group:not(:first-child) > .btn { @include border-top-radius($btn-border-radius); }
|
22
|
+
}
|
@@ -4,6 +4,12 @@
|
|
4
4
|
// DATEPICKER -- based on http://eonasdan.github.io/bootstrap-daetetimepicker/
|
5
5
|
//*****************************//
|
6
6
|
|
7
|
+
//** form style that clears out readonly styles
|
8
|
+
.form-control[data-datetimepicker] {
|
9
|
+
background-color: $input-bg;
|
10
|
+
cursor: pointer;
|
11
|
+
}
|
12
|
+
|
7
13
|
//** Base styles
|
8
14
|
.bootstrap-datetimepicker-widget {
|
9
15
|
display: block;
|
@@ -5,7 +5,6 @@ module NfgUi
|
|
5
5
|
module Components
|
6
6
|
# Bootstrap Button Group Component
|
7
7
|
# An optional parent of the Button component
|
8
|
-
# https://getbootstrap.com/docs/4.1/components/breadcrumb/
|
9
8
|
class ButtonGroup < NfgUi::Bootstrap::Components::Base
|
10
9
|
include Bootstrap::Utilities::DropdownDirectionable
|
11
10
|
include Bootstrap::Utilities::Sizable
|
@@ -17,18 +16,21 @@ module NfgUi
|
|
17
16
|
private
|
18
17
|
|
19
18
|
def assistive_html_attributes
|
20
|
-
|
19
|
+
# Prevent overwriting supplied aria attributes in the component's :options
|
20
|
+
aria = options[:aria].present? ? options[:aria] : {}
|
21
|
+
aria.merge!(label: 'action buttons')
|
22
|
+
|
23
|
+
super.merge!(role: 'group', aria: aria)
|
21
24
|
end
|
22
25
|
|
26
|
+
# Bootstrap does not stack btn-group and btn-group-vertical together
|
27
|
+
# When a button group is set as vertical, it is only `btn-group-vertical`
|
23
28
|
def component_css_class
|
24
|
-
|
29
|
+
"btn-group#{'-vertical' if vertical}"
|
25
30
|
end
|
26
31
|
|
27
|
-
def
|
28
|
-
|
29
|
-
super,
|
30
|
-
("#{component_css_class}-vertical" if vertical)
|
31
|
-
].join(' ').squish
|
32
|
+
def non_html_attribute_options
|
33
|
+
super.push(:vertical)
|
32
34
|
end
|
33
35
|
end
|
34
36
|
end
|
@@ -3,9 +3,6 @@
|
|
3
3
|
module NfgUi
|
4
4
|
module Components
|
5
5
|
module Patterns
|
6
|
-
# Button Group doesn't have any customizations unique to the design system yet
|
7
|
-
# As such, the NFG UI button group is simply a bootstrap button group behind the scenes.
|
8
|
-
# Traits will eventually be connected here.
|
9
6
|
class ButtonGroup < NfgUi::Bootstrap::Components::ButtonGroup
|
10
7
|
include NfgUi::Components::Utilities::Traitable
|
11
8
|
include NfgUi::Components::Utilities::Describable
|
@@ -13,10 +10,6 @@ module NfgUi
|
|
13
10
|
|
14
11
|
include NfgUi::Components::Traits::Size
|
15
12
|
include NfgUi::Components::Traits::Vertical
|
16
|
-
|
17
|
-
# TODO It's not clear to me whether the traits listed above actually do anything
|
18
|
-
# I think the note above implies that they don't, but then why include them? If they don't
|
19
|
-
# actually do anything yet, they should be removed, or at least commented out
|
20
13
|
end
|
21
14
|
end
|
22
15
|
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.
|
4
|
+
version: 0.9.17
|
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-
|
12
|
+
date: 2019-09-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|
@@ -143,6 +143,20 @@ dependencies:
|
|
143
143
|
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: 2.11.1
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: nokogiri
|
148
|
+
requirement: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.10.4
|
153
|
+
type: :runtime
|
154
|
+
prerelease: false
|
155
|
+
version_requirements: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 1.10.4
|
146
160
|
- !ruby/object:Gem::Dependency
|
147
161
|
name: browser
|
148
162
|
requirement: !ruby/object:Gem::Requirement
|
@@ -375,8 +389,8 @@ files:
|
|
375
389
|
- app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_button-group.scss
|
376
390
|
- app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_buttons.scss
|
377
391
|
- app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_card.scss
|
392
|
+
- app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_custom-forms.scss
|
378
393
|
- app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_custom.scss
|
379
|
-
- app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_custom_forms.scss
|
380
394
|
- app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_dropdown.scss
|
381
395
|
- app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_forms.scss
|
382
396
|
- app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_media.scss
|
@@ -421,8 +435,8 @@ files:
|
|
421
435
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/application.scss
|
422
436
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_badge.scss
|
423
437
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_buttons.scss
|
438
|
+
- app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_custom-forms.scss
|
424
439
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_custom.scss
|
425
|
-
- app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_custom_forms.scss
|
426
440
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_forms.scss
|
427
441
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_functions.scss
|
428
442
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_navbar.scss
|
@@ -463,11 +477,12 @@ files:
|
|
463
477
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/utilities/_flex.scss
|
464
478
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/plugins/_sticky_div.scss
|
465
479
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_alert.scss
|
480
|
+
- app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_button-group.scss
|
466
481
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_buttons.scss
|
467
482
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_card.scss
|
468
483
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_carousel.scss
|
484
|
+
- app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_custom-forms.scss
|
469
485
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_custom.scss
|
470
|
-
- app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_custom_forms.scss
|
471
486
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_dropdown.scss
|
472
487
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_event.scss
|
473
488
|
- app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_forms.scss
|
@@ -733,7 +748,6 @@ files:
|
|
733
748
|
- lib/nfg_ui/ui/utilities.rb
|
734
749
|
- lib/nfg_ui/ui/utilities/initializer.rb
|
735
750
|
- lib/nfg_ui/version.rb
|
736
|
-
- lib/nfg_ui/version.rb.orig
|
737
751
|
- lib/tasks/nfg_ui_tasks.rake
|
738
752
|
homepage: https://github.com/network-for-good/nfg_ui
|
739
753
|
licenses:
|
data/lib/nfg_ui/version.rb.orig
DELETED
File without changes
|
File without changes
|
File without changes
|