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 +4 -4
- data/CHANGELOG.md +5 -0
- data/app/views/mozaic/myg/_checkbox.html.erb +1 -1
- data/app/views/mozaic/myg/_drawer.html.erb +1 -1
- data/app/views/mozaic/myg/_form-field.html.erb +1 -1
- data/app/views/mozaic/myg/_radio.html.erb +1 -1
- data/app/views/mozaic/myg/_toolbar.html.erb +1 -1
- data/lib/generators/templates/install/javascripts/action-button.js +1 -1
- data/lib/generators/templates/install/javascripts/drawer.js +1 -1
- data/lib/generators/templates/install/javascripts/footer.js +1 -1
- data/lib/generators/templates/install/javascripts/menu.js +1 -1
- data/lib/generators/templates/install/javascripts/sidebar.js +1 -1
- data/lib/generators/templates/install/javascripts/tabs.js +1 -1
- data/lib/generators/templates/install/javascripts/theme.js +1 -1
- data/lib/generators/templates/install/javascripts/titlebar.js +1 -1
- data/lib/generators/templates/install/javascripts/toast.js +1 -1
- data/lib/generators/templates/install/javascripts/toolbar.js +1 -1
- data/lib/generators/templates/install/stylesheets/_myg.sass +2 -0
- data/lib/generators/templates/install/stylesheets/variables/_font.scss +1 -0
- data/lib/generators/templates/install/stylesheets/variables/_grid.scss +2 -2
- data/lib/generators/templates/install/stylesheets/variables/_layout.scss +1 -1
- data/lib/generators/templates/install/stylesheets/variables/_text.scss +4 -4
- data/lib/myg/railtie.rb +21 -5
- data/lib/myg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8272c6ef5c0d5156372804729efd1a7978ddfd21a614b1d5400c58073d2e304
|
4
|
+
data.tar.gz: a9ae02a1a8f1ffd675bd82074455fbe0c4a7de7efa01e70e35ab5a2c2ea386b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86a2d114ec998f3b9c4ab8c07152fe512a30c59d721eb17cad1eb6878c6f52a2b8751a466bc4d6a1cf456da60411c2feafb0fff2f497cc54505af593301d6686
|
7
|
+
data.tar.gz: c9e53eb004b67ab5220884482999d9ec28134a7de293612a229ba8b50c0874295054975d33a07a3a889c14d275d554838bb7ffd605b52badc6b4373808489e3f
|
data/CHANGELOG.md
CHANGED
@@ -1 +1 @@
|
|
1
|
-
<%= component 'mdc-checkbox',
|
1
|
+
<%= component 'mdc-checkbox', options %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= component 'mdc-radio',
|
1
|
+
<%= component 'mdc-radio', options %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import MygActionButton from 'myg-action-button';
|
2
2
|
|
3
3
|
document.addEventListener( 'turbolinks:load', () => {
|
4
|
-
const mygActionButton =
|
4
|
+
const mygActionButton = MygActionButton.init( document.querySelector('.myg-action-button'), {} );
|
5
5
|
})
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import MygTitlebar from 'myg-titlebar';
|
2
2
|
|
3
3
|
document.addEventListener( 'turbolinks:load', () => {
|
4
|
-
const mygTitlebar =
|
4
|
+
const mygTitlebar = MygTitlebar.init( document.querySelector('.myg-titlebar'), {} );
|
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;
|
@@ -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(
|
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(
|
17
|
-
h5: (sm: px(
|
18
|
-
h6: (sm: px(
|
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
|
|
data/lib/myg/railtie.rb
CHANGED
@@ -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',
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
config.define_component 'myg/
|
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
|
|
data/lib/myg/version.rb
CHANGED
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
|
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-
|
11
|
+
date: 2018-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|