@magicgol/polyjuice 0.51.3 → 0.52.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicgol/polyjuice",
3
- "version": "0.51.3",
3
+ "version": "0.52.0",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -11,9 +11,9 @@ export default {
11
11
  options: ['normal', 'large'],
12
12
  defaultValue: 'normal'
13
13
  },
14
- context: {
14
+ theme: {
15
15
  control: { type: 'select' },
16
- options: ['normal', 'light', 'club', 'success', 'failure'],
16
+ options: ['normal', 'light', 'dark', 'club', 'success', 'failure'],
17
17
  defaultValue: 'normal'
18
18
  },
19
19
  },
@@ -30,7 +30,7 @@ export const Default = Template.bind({});
30
30
  // More on args: https://storybook.js.org/docs/vue/writing-stories/args
31
31
  Default.args = {
32
32
  icon: 'message',
33
- context: 'normal',
33
+ theme: 'normal',
34
34
  size: 'normal',
35
35
  active: false
36
36
  };
@@ -25,11 +25,11 @@ export default {
25
25
  return ['normal', 'large'].indexOf(value) !== -1;
26
26
  },
27
27
  },
28
- context: {
28
+ theme: {
29
29
  type: String,
30
30
  default: 'normal',
31
31
  validator: function (value) {
32
- return ['normal', 'light', 'club', 'success', 'failure'].indexOf(value) !== -1;
32
+ return ['normal', 'light', 'dark', 'club', 'success', 'failure'].indexOf(value) !== -1;
33
33
  },
34
34
  },
35
35
  active: {
@@ -45,11 +45,12 @@ export default {
45
45
  'mg-icon-badge--active': this.active === true,
46
46
  'mg-icon-badge--size-normal': this.size === 'normal',
47
47
  'mg-icon-badge--size-large': this.size === 'large',
48
- 'mg-icon-badge--context-club': this.context === 'club',
49
- 'mg-icon-badge--context-light': this.context === 'light',
50
- 'mg-icon-badge--context-normal': this.context === 'normal',
51
- 'mg-icon-badge--context-success': this.context === 'success',
52
- 'mg-icon-badge--context-failure': this.context === 'failure',
48
+ 'mg-icon-badge--theme-club': this.theme === 'club',
49
+ 'mg-icon-badge--theme-light': this.theme === 'light',
50
+ 'mg-icon-badge--theme-dark': this.theme === 'dark',
51
+ 'mg-icon-badge--theme-normal': this.theme === 'normal',
52
+ 'mg-icon-badge--theme-success': this.theme === 'success',
53
+ 'mg-icon-badge--theme-failure': this.theme === 'failure',
53
54
  };
54
55
  },
55
56
  },
@@ -94,7 +95,7 @@ export default {
94
95
  }
95
96
  }
96
97
 
97
- &--context {
98
+ &--theme {
98
99
  &-normal {
99
100
  background-color: #f5f5f5;
100
101
 
@@ -103,6 +104,14 @@ export default {
103
104
  }
104
105
  }
105
106
 
107
+ &-dark {
108
+ background-color: #f5f5f5;
109
+
110
+ svg {
111
+ fill: #fff;
112
+ }
113
+ }
114
+
106
115
  &-light {
107
116
  background-color: #fff;
108
117
 
@@ -138,7 +147,7 @@ export default {
138
147
 
139
148
  &--active {
140
149
  &.mg-icon-badge {
141
- &--context {
150
+ &--theme {
142
151
  &-normal {
143
152
  background-color: map-get($palette, 'brand');
144
153
 
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <button
3
3
  type="button"
4
- class="w-100 rounded justify-content-center align-items-center px-2 border-0 text-white text-uppercase d-flex"
4
+ class="w-100 justify-content-center align-items-center px-2 border-0 text-white text-uppercase d-flex"
5
5
  :class="classes"
6
6
  :disabled="disabled"
7
7
  @click="onClick"
@@ -63,6 +63,7 @@ export default {
63
63
  .mg-primary-club-button {
64
64
  appearance: none;
65
65
  background: map-get($palette, 'club');
66
+ border-radius: 15px;
66
67
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.3);
67
68
  cursor: pointer;
68
69
  font-family: 'Ubuntu', sans-serif;
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <button
3
- class="d-block w-100 rounded text-uppercase text-center text-decoration-none"
3
+ class="d-block w-100 text-uppercase text-center text-decoration-none"
4
4
  type="button"
5
5
  :class="classes"
6
6
  :disabled="disabled"
@@ -60,6 +60,7 @@ export default {
60
60
  .mg-secondary-club-button {
61
61
  appearance: none;
62
62
  background: map-get($palette, 'club');
63
+ border-radius: 15px;
63
64
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.3);
64
65
  box-sizing: border-box;
65
66
  border: 0;
@@ -41,7 +41,6 @@ export default {
41
41
  .mg-link {
42
42
  color: map-get($palette, 'brand');
43
43
  cursor: pointer;
44
- font-weight: 400;
45
44
 
46
45
  &--disabled {
47
46
  opacity: 0.6 !important;