myg 2.0.2 → 2.1.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: c2ec96872a4f28b12144efddf43507736ac84ccafedd4447119a237ea0cd1822
4
- data.tar.gz: 223af43b3039fb7dfb7b63ae258b30f7b769ed8398bd1b39240ad262e3a9bdaf
3
+ metadata.gz: c8272c6ef5c0d5156372804729efd1a7978ddfd21a614b1d5400c58073d2e304
4
+ data.tar.gz: a9ae02a1a8f1ffd675bd82074455fbe0c4a7de7efa01e70e35ab5a2c2ea386b7
5
5
  SHA512:
6
- metadata.gz: 152dae267e0c7d2bac752e54ee613faaac2fbfe0050023074c3451750fa16174670f2c3298bf5e37571871212bb3f3ce9f0baf1892792234ab93625eeef2c714
7
- data.tar.gz: ab3ec9c583ff8a96718588493a5425a24053a919b65fb1fa3687abab88289dd4c8354503214577dc1d4caaed79f9e394143991cff29777cd7246ddf8cb4679ee
6
+ metadata.gz: 86a2d114ec998f3b9c4ab8c07152fe512a30c59d721eb17cad1eb6878c6f52a2b8751a466bc4d6a1cf456da60411c2feafb0fff2f497cc54505af593301d6686
7
+ data.tar.gz: c9e53eb004b67ab5220884482999d9ec28134a7de293612a229ba8b50c0874295054975d33a07a3a889c14d275d554838bb7ffd605b52badc6b4373808489e3f
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 2.1.0 - 2018/02/18
8
+
9
+ * enhancements
10
+ * allow passing of various additional options to components
11
+
7
12
  ### 2.0.2 - 2018/02/17
8
13
 
9
14
  * bugfixes
@@ -1 +1 @@
1
- <%= component 'mdc-checkbox', class: 'myg-checkbox', label: options[:label], checked: options[:checked], disabled: options[:disabled] %>
1
+ <%= component 'mdc-checkbox', options %>
@@ -1,3 +1,3 @@
1
- <%= component 'mdc-drawer', type: 'temporary', class: 'myg-drawer' do %>
1
+ <%= component 'mdc-drawer', options do %>
2
2
  <%= block %>
3
3
  <% end %>
@@ -1,3 +1,3 @@
1
- <%= component 'mdc-form-field', class: 'myg-form-field' do %>
1
+ <%= component 'mdc-form-field', options do %>
2
2
  <%= block %>
3
3
  <% end %>
@@ -1 +1 @@
1
- <%= component 'mdc-radio', class: 'myg-radio', label: options[:label], checked: options[:checked], disabled: options[:disabled] %>
1
+ <%= component 'mdc-radio', options %>
@@ -1,3 +1,3 @@
1
- <%= component 'mdc-toolbar', class: 'myg-toolbar' do %>
1
+ <%= component 'mdc-toolbar', options do %>
2
2
  <%= block %>
3
3
  <% end %>
@@ -1,5 +1,5 @@
1
1
  import MygActionButton from 'myg-action-button';
2
2
 
3
3
  document.addEventListener( 'turbolinks:load', () => {
4
- const mygActionButton = new MygActionButton( document.querySelector('.myg-action-button'), {} );
4
+ const mygActionButton = MygActionButton.init( document.querySelector('.myg-action-button'), {} );
5
5
  })
@@ -1,5 +1,5 @@
1
1
  import MygDrawer from 'myg-drawer';
2
2
 
3
3
  document.addEventListener( 'turbolinks:load', () => {
4
- const mygDrawer = new MygDrawer( document.querySelector('.myg-drawer'), {} );
4
+ const mygDrawer = MygDrawer.init( document.querySelector('.myg-drawer'), {} );
5
5
  })
@@ -1,5 +1,5 @@
1
1
  import MygFooter from 'myg-footer';
2
2
 
3
3
  document.addEventListener( 'turbolinks:load', () => {
4
- const mygFooter = new MygFooter( document.querySelector('.myg-footer'), {} );
4
+ const mygFooter = MygFooter.init( document.querySelector('.myg-footer'), {} );
5
5
  })
@@ -1,5 +1,5 @@
1
1
  import MygMenu from 'myg-menu';
2
2
 
3
3
  document.addEventListener( 'turbolinks:load', () => {
4
- const mygMenu = new MygMenu( document.querySelector('.myg-menu'), {} );
4
+ const mygMenu = MygMenu.init( document.querySelector('.myg-menu'), {} );
5
5
  })
@@ -1,5 +1,5 @@
1
1
  import MygSidebar from 'myg-sidebar';
2
2
 
3
3
  document.addEventListener( 'turbolinks:load', () => {
4
- const mygSidebar = new MygSidebar( document.querySelector('.myg-sidebar'), {} );
4
+ const mygSidebar = MygSidebar.init( document.querySelector('.myg-sidebar'), {} );
5
5
  })
@@ -1,5 +1,5 @@
1
1
  import MygTabs from 'myg-tabs';
2
2
 
3
3
  document.addEventListener( 'turbolinks:load', () => {
4
- const mygTabs = new MygTabs( document.querySelector('.myg-tabs'), {} );
4
+ const mygTabs = MygTabs.init( document.querySelector('.myg-tabs'), {} );
5
5
  })
@@ -1,5 +1,5 @@
1
1
  import MygTheme from 'myg-theme';
2
2
 
3
3
  document.addEventListener( 'turbolinks:load', () => {
4
- const mygTheme = new MygTheme( document.querySelector('html'), {} );
4
+ const mygTheme = MygTheme.init( document.querySelector('html'), {} );
5
5
  })
@@ -1,5 +1,5 @@
1
1
  import MygTitlebar from 'myg-titlebar';
2
2
 
3
3
  document.addEventListener( 'turbolinks:load', () => {
4
- const mygTitlebar = new MygTitlebar( document.querySelector('.myg-titlebar'), {} );
4
+ const mygTitlebar = MygTitlebar.init( document.querySelector('.myg-titlebar'), {} );
5
5
  })
@@ -1,5 +1,5 @@
1
1
  import MygToast from 'myg-toast';
2
2
 
3
3
  document.addEventListener( 'turbolinks:load', () => {
4
- const mygToast = new MygToast( document.querySelector('.myg-toast'), {} );
4
+ const mygToast = MygToast.init( document.querySelector('.myg-toast'), {} );
5
5
  })
@@ -1,5 +1,5 @@
1
1
  import MygToolbar from 'myg-toolbar';
2
2
 
3
3
  document.addEventListener( 'turbolinks:load', () => {
4
- const mygToolbar = new MygToolbar( document.querySelector('.myg-toolbar'), {} );
4
+ const mygToolbar = MygToolbar.init( document.querySelector('.myg-toolbar'), {} );
5
5
  })
@@ -8,6 +8,7 @@
8
8
  //
9
9
  // @import "myg-action-button/action-button"
10
10
  // @import "myg-animate/animate"
11
+ // @import "myg-badge/badge"
11
12
  // @import "myg-button/button"
12
13
  // @import "myg-card/card"
13
14
  // @import "myg-checkbox/checkbox"
@@ -42,6 +43,7 @@
42
43
  //
43
44
  // +myg-animate--classes
44
45
  // +myg-base--classes
46
+ // +myg-badge--classes
45
47
  // +myg-button--classes
46
48
  // +myg-card--classes
47
49
  // +myg-checkbox--classes
@@ -2,5 +2,6 @@
2
2
  $myg-font: (
3
3
  default: (-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"),
4
4
  sans-serif: ("Inter UI", "Helvetica Neue", sans-serif),
5
+ serif: ("Freight Text Pro", "Georgia", serif),
5
6
  monospace: ("Inconsolata", "Roboto Mono", "Courier New", monospace)
6
7
  ) !default;
@@ -8,8 +8,8 @@ $myg-grid--breakpoints: (
8
8
  ) !default;
9
9
  $myg-grid--columns: (
10
10
  phone: 4,
11
- tablet: 8,
12
- laptop: 12,
11
+ tablet: 4,
12
+ laptop: 8,
13
13
  large: 12,
14
14
  desktop: 12
15
15
  ) !default;
@@ -1,5 +1,5 @@
1
1
  // Layout
2
2
  $myg-layout: (
3
- toolbar-height: px(50),
3
+ toolbar-height: px(55),
4
4
  sidebar-width: minmax(33%, px(400))
5
5
  ) !default;
@@ -9,13 +9,13 @@ $myg-text--size: (
9
9
  h6: (sm: px(13), base: px(14), lg: px(16))
10
10
  ) !default;
11
11
  $myg-text--size-mobile: (
12
- p: (sm: px(13), base: px(14), lg: px(16)),
12
+ p: (sm: px(14), base: px(16), lg: px(18)),
13
13
  h1: (sm: px(30), base: px(36), lg: px(48)),
14
14
  h2: (sm: px(18), base: px(21), lg: px(24)),
15
15
  h3: (sm: px(16), base: px(18), lg: px(21)),
16
- h4: (sm: px(14), base: px(16), lg: px(18)),
17
- h5: (sm: px(13), base: px(14), lg: px(16)),
18
- h6: (sm: px(12), base: px(13), lg: px(14))
16
+ h4: (sm: px(16), base: px(17), lg: px(18)),
17
+ h5: (sm: px(15), base: px(16), lg: px(17)),
18
+ h6: (sm: px(13), base: px(14), lg: px(15))
19
19
  ) !default;
20
20
 
21
21
 
@@ -5,11 +5,27 @@ module Myg
5
5
 
6
6
  initializer 'myg.mozaic' do
7
7
  Mozaic.configure do |config|
8
- config.define_component 'myg/checkbox', class_name: false, label: false, checked: false, disabled: false
9
- config.define_component 'myg/drawer'
10
- config.define_component 'myg/form-field'
11
- config.define_component 'myg/radio', class_name: false, label: false, checked: false, disabled: false
12
- config.define_component 'myg/toolbar'
8
+ config.define_component 'myg/checkbox', class: '', label: false, checked: false, disabled: false do |options|
9
+ options[:class] << ' myg-checkbox'
10
+ options
11
+ end
12
+ config.define_component 'myg/drawer', class: '' do |options|
13
+ options[:type] = 'temporary'
14
+ options[:class] << ' myg-drawer'
15
+ options
16
+ end
17
+ config.define_component 'myg/form-field', class: '' do |options|
18
+ options[:class] << ' myg-form-field'
19
+ options
20
+ end
21
+ config.define_component 'myg/radio', class: '', label: false, checked: false, disabled: false do |options|
22
+ options[:class] << ' myg-radio'
23
+ options
24
+ end
25
+ config.define_component 'myg/toolbar', class: '' do |options|
26
+ options[:class] << ' myg-toolbar'
27
+ options
28
+ end
13
29
  end
14
30
  end
15
31
 
@@ -1,5 +1,5 @@
1
1
  module Myg
2
2
 
3
- VERSION = '2.0.2'
3
+ VERSION = '2.1.0'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-17 00:00:00.000000000 Z
11
+ date: 2018-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties