myg 2.3.5 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/views/mozaic/myg/_toast.html.erb +15 -0
- data/lib/generators/templates/install/javascripts/tooltip.js +1 -1
- data/lib/generators/templates/install/stylesheets/_myg.sass +2 -0
- data/lib/generators/templates/install/stylesheets/theme/_default.scss +4 -1
- data/lib/myg/railtie.rb +1 -0
- data/lib/myg/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd0adc23c9a2221fbe2467b95aba935a0a5c07c3b04d9dc65c2c78704b6fa537
|
4
|
+
data.tar.gz: 896d97d0379fec8ca42417ce11d1cc2f8610f6231e38655495ccfec749e6bd19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55cd958b1a15530ff4f0b997ab88a741ae65aea70ee8823a6aa8559c2f2ee5c5a0f4cd1f007f6f3f406619564a8844be7ff50c207e64aec080dc93833d927ae9
|
7
|
+
data.tar.gz: 2e9e493688f80677874a763c7f730b971dd8fe2f30e021317ea2c3d97beb07ecfac7c976ee5ef77bd47a40abc932b4bed1909fe4dc1aadeba2dcbc644bbeeba3
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
<% html = {
|
2
|
+
class: ['myg-toast mdc-snackbar', options[:class]].join(' '),
|
3
|
+
aria: {
|
4
|
+
live: 'assertive',
|
5
|
+
atomic: true,
|
6
|
+
hidden: true
|
7
|
+
}
|
8
|
+
} %>
|
9
|
+
|
10
|
+
<%= content_tag 'div', options.merge(html) do %>
|
11
|
+
<div class="mdc-snackbar__text"></div>
|
12
|
+
<div class="mdc-snackbar__action-wrapper">
|
13
|
+
<button type="button" class="mdc-snackbar__action-button"></button>
|
14
|
+
</div>
|
15
|
+
<% end %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import MygTooltip from 'myg-tooltip';
|
2
2
|
|
3
3
|
document.addEventListener( 'turbolinks:load', () => {
|
4
|
-
const mygTooltips = MygTooltip.initAll( document.querySelectorAll('
|
4
|
+
const mygTooltips = MygTooltip.initAll( document.querySelectorAll('[data-myg-tooltip]'), {} );
|
5
5
|
})
|
@@ -50,6 +50,7 @@
|
|
50
50
|
// +myg-card--classes
|
51
51
|
// +myg-checkbox--classes
|
52
52
|
// +myg-drawer--classes
|
53
|
+
// +myg-dropdown--classes
|
53
54
|
// +myg-elevation--classes
|
54
55
|
// +myg-font--classes
|
55
56
|
// +myg-footer--classes
|
@@ -64,3 +65,4 @@
|
|
64
65
|
// +myg-theme--classes
|
65
66
|
// +myg-toast--classes
|
66
67
|
// +myg-toolbar--classes
|
68
|
+
// +myg-tooltip--classes
|
data/lib/myg/railtie.rb
CHANGED
@@ -14,6 +14,7 @@ module Myg
|
|
14
14
|
config.define_component 'myg/radio'
|
15
15
|
config.define_component 'myg/slider', discrete: false, disabled: false, value: 0, min: 0, max: 50, label: 'Select value'
|
16
16
|
config.define_component 'myg/switch'
|
17
|
+
config.define_component 'myg/toast'
|
17
18
|
config.define_component 'myg/toolbar'
|
18
19
|
end
|
19
20
|
end
|
data/lib/myg/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Hübotter
|
@@ -114,6 +114,7 @@ files:
|
|
114
114
|
- app/views/mozaic/myg/_radio.html.erb
|
115
115
|
- app/views/mozaic/myg/_slider.html.erb
|
116
116
|
- app/views/mozaic/myg/_switch.html.erb
|
117
|
+
- app/views/mozaic/myg/_toast.html.erb
|
117
118
|
- app/views/mozaic/myg/_toolbar.html.erb
|
118
119
|
- lib/generators/myg/install_generator.rb
|
119
120
|
- lib/generators/myg/theme_generator.rb
|