@magicgol/polyjuice 0.1.0 → 0.2.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicgol/polyjuice",
3
- "version": "0.1.0",
3
+ "version": "0.2.2",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -30,7 +30,6 @@
30
30
  "css-loader": "^5.2.7",
31
31
  "eslint": "^6.7.2",
32
32
  "eslint-plugin-vue": "^6.2.2",
33
- "lerna": "^4.0.0",
34
33
  "sass": "^1.50.0",
35
34
  "sass-loader": "^10.1.1",
36
35
  "style-loader": "^2.0.0",
@@ -0,0 +1 @@
1
+ module.exports = {}
@@ -9,8 +9,6 @@
9
9
  </template>
10
10
 
11
11
  <script>
12
- import './primary-button.scss';
13
-
14
12
  export default {
15
13
  name: 'mg-primary-button',
16
14
 
@@ -48,8 +46,38 @@ export default {
48
46
 
49
47
  methods: {
50
48
  onClick() {
51
- this.$emit('onClick');
49
+ this.$emit('click');
52
50
  },
53
51
  },
54
52
  };
55
53
  </script>
54
+
55
+ <style lang="scss">
56
+ @import '../../../assets/palette';
57
+
58
+ .mg-primary-button {
59
+ appearance: none;
60
+ background-color: map-get($palette, 'brand');
61
+ border: 1px solid map-get($palette, 'brand');
62
+ cursor: pointer;
63
+ font-family: 'Ubuntu', sans-serif;
64
+ font-weight: 500;
65
+
66
+ &-size {
67
+ &-normal {
68
+ font-size: 0.8215rem;
69
+ padding: 0.5rem;
70
+ }
71
+ &-large {
72
+ box-shadow: 0 8px 22px 0 rgba(0, 0, 0, 0.3);
73
+ font-size: 1rem;
74
+ padding: 1rem;
75
+ }
76
+ }
77
+
78
+ &--disabled {
79
+ opacity: 0.6 !important;
80
+ cursor: not-allowed !important;
81
+ }
82
+ }
83
+ </style>
@@ -8,8 +8,6 @@
8
8
  </template>
9
9
 
10
10
  <script>
11
- import './secondary-button.scss';
12
-
13
11
  export default {
14
12
  name: 'mg-secondary-button',
15
13
 
@@ -31,8 +29,27 @@ export default {
31
29
 
32
30
  methods: {
33
31
  onClick() {
34
- this.$emit('onClick');
32
+ this.$emit('click');
35
33
  },
36
34
  },
37
35
  };
38
36
  </script>
37
+
38
+ <style lang="scss">
39
+ @import '../../../assets/palette';
40
+
41
+ .mg-secondary-button {
42
+ appearance: none;
43
+ border: 1px solid map-get($palette, 'brand');
44
+ color: map-get($palette, 'brand');
45
+ cursor: pointer;
46
+ font-family: 'Ubuntu', sans-serif;
47
+ font-size: 0.8215rem;
48
+ font-weight: 500;
49
+
50
+ &--disabled {
51
+ opacity: 0.6 !important;
52
+ cursor: not-allowed !important;
53
+ }
54
+ }
55
+ </style>
@@ -8,8 +8,6 @@
8
8
  </template>
9
9
 
10
10
  <script>
11
- import './tertiary-button.scss';
12
-
13
11
  export default {
14
12
  name: 'mg-tertiary-button',
15
13
 
@@ -31,8 +29,25 @@ export default {
31
29
 
32
30
  methods: {
33
31
  onClick() {
34
- this.$emit('onClick');
32
+ this.$emit('click');
35
33
  },
36
34
  },
37
35
  };
38
36
  </script>
37
+
38
+ <style lang="scss">
39
+ @import '../../../assets/palette';
40
+
41
+ .mg-tertiary-button {
42
+ color: map-get($palette, 'brand');
43
+ cursor: pointer;
44
+ font-family: 'Ubuntu', sans-serif;
45
+ font-size: 0.75rem;
46
+ font-weight: 500;
47
+
48
+ &--disabled {
49
+ opacity: 0.6 !important;
50
+ cursor: not-allowed !important;
51
+ }
52
+ }
53
+ </style>
package/src/main.js CHANGED
@@ -6,3 +6,7 @@ Vue.config.productionTip = false
6
6
  new Vue({
7
7
  render: h => h(App),
8
8
  }).$mount('#app')
9
+
10
+ export PrimaryButton from './components/form/primary-button/PrimaryButton';
11
+ export PrimaryButton from './components/form/secondary-button/SecondaryButton';
12
+ export PrimaryButton from './components/form/tertiary-button/TertiaryButton';
package/lerna.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "packages": [
3
- "src/components/*"
4
- ],
5
- "version": "independent"
6
- }
@@ -1,27 +0,0 @@
1
- @import '../../../assets/palette';
2
-
3
- .mg-primary-button {
4
- appearance: none;
5
- background-color: map-get($palette, 'brand');
6
- border: 1px solid map-get($palette, 'brand');
7
- cursor: pointer;
8
- font-family: 'Ubuntu', sans-serif;
9
- font-weight: 500;
10
-
11
- &-size {
12
- &-normal {
13
- font-size: 0.8215rem;
14
- padding: 0.5rem;
15
- }
16
- &-large {
17
- box-shadow: 0 8px 22px 0 rgba(0, 0, 0, 0.3);
18
- font-size: 1rem;
19
- padding: 1rem;
20
- }
21
- }
22
-
23
- &--disabled {
24
- opacity: 0.6 !important;
25
- cursor: not-allowed !important;
26
- }
27
- }
@@ -1,16 +0,0 @@
1
- @import '../../../assets/palette';
2
-
3
- .mg-secondary-button {
4
- appearance: none;
5
- border: 1px solid map-get($palette, 'brand');
6
- color: map-get($palette, 'brand');
7
- cursor: pointer;
8
- font-family: 'Ubuntu', sans-serif;
9
- font-size: 0.8215rem;
10
- font-weight: 500;
11
-
12
- &--disabled {
13
- opacity: 0.6 !important;
14
- cursor: not-allowed !important;
15
- }
16
- }
@@ -1,14 +0,0 @@
1
- @import '../../../assets/palette';
2
-
3
- .mg-tertiary-button {
4
- color: map-get($palette, 'brand');
5
- cursor: pointer;
6
- font-family: 'Ubuntu', sans-serif;
7
- font-size: 0.75rem;
8
- font-weight: 500;
9
-
10
- &--disabled {
11
- opacity: 0.6 !important;
12
- cursor: not-allowed !important;
13
- }
14
- }