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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dea8b4c35e4e3d82ff2e5ca79ebf08c14287143102242c866d7abe2e7605be2d
4
- data.tar.gz: 5699c91ff79e4f88b00e684ccabc733fcf1c228e7f11691282d2a0185c4e7765
3
+ metadata.gz: dd0adc23c9a2221fbe2467b95aba935a0a5c07c3b04d9dc65c2c78704b6fa537
4
+ data.tar.gz: 896d97d0379fec8ca42417ce11d1cc2f8610f6231e38655495ccfec749e6bd19
5
5
  SHA512:
6
- metadata.gz: a2a399681f7183b69e88f5aec2c01ebf1d3b812c926966768db50c7e215426ce907d71f1ed8df7443ee0ef6c103a5673de0922ed686d338a1980bd74d1dd04fe
7
- data.tar.gz: 34b2227c54772837c2fbd08d48170b05278cb44a22861f2f7462b46ab92242f8ada20fe266ffecf000a127351e1f0c70d5fc2c5b145c6a551031b704ef84020c
6
+ metadata.gz: 55cd958b1a15530ff4f0b997ab88a741ae65aea70ee8823a6aa8559c2f2ee5c5a0f4cd1f007f6f3f406619564a8844be7ff50c207e64aec080dc93833d927ae9
7
+ data.tar.gz: 2e9e493688f80677874a763c7f730b971dd8fe2f30e021317ea2c3d97beb07ecfac7c976ee5ef77bd47a40abc932b4bed1909fe4dc1aadeba2dcbc644bbeeba3
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 2.4.0 - 2018/02/25
8
+
9
+ * features
10
+ * added `toast` component
11
+
7
12
  ### 2.3.5 - 2018/02/25
8
13
 
9
14
  * bugfixes
@@ -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('.myg-tooltip'), {} );
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
@@ -23,5 +23,8 @@ $myg-theme: (
23
23
  box-shadow: rgba(#000, .05),
24
24
  error: #f6809a,
25
25
  success: #6adb83,
26
- overlay: transparentize(#e7eCf0, 0.13)
26
+ overlay: (
27
+ light: transparentize(#e7eCf0, 0.13),
28
+ dark: transparentize(#14171A, 0.87),
29
+ )
27
30
  );
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
@@ -1,5 +1,5 @@
1
1
  module Myg
2
2
 
3
- VERSION = '2.3.5'
3
+ VERSION = '2.4.0'
4
4
 
5
5
  end
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.3.5
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