@magicgol/polyjuice 0.38.2 → 0.39.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.38.2",
3
+ "version": "0.39.0",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <div
3
- class="d-inline-flex align-items-center px-2 text-uppercase"
3
+ class="d-inline-flex align-items-center text-uppercase"
4
4
  :class="classes"
5
5
  >
6
- <div>
7
- <slot></slot>
6
+ <div class="px-2">
7
+ <span><slot></slot></span>
8
8
  </div>
9
9
  </div>
10
10
  </template>
@@ -55,12 +55,13 @@ export default {
55
55
  @import '../../../assets/palette';
56
56
 
57
57
  .mg-label {
58
- border: 2px solid;
59
58
  border-radius: 32px;
60
- padding-top: 0.0625rem;
61
- padding-bottom: 0.0625rem;
59
+ padding: 0.125rem;
62
60
 
63
61
  > div {
62
+ padding-top: 0.0625rem;
63
+ padding-bottom: 0.0625rem;
64
+ border-radius: 32px;
64
65
  font-family: 'Raleway', sans-serif;
65
66
  font-weight: 700;
66
67
  }
@@ -81,56 +82,78 @@ export default {
81
82
 
82
83
  &--theme {
83
84
  &-light {
84
- background: #f7f7f7;
85
- border-color: #f1f1f1;
85
+ background-color: #f1f1f1;
86
+ > div {
87
+ background: #f7f7f7;
88
+ }
86
89
  color: map-get($palette, 'text');
87
90
  }
88
91
 
89
92
  &-dark {
90
- background: #5b5b5b;
91
- border-color: #555555;
93
+ background-color: #555555;
94
+ > div {
95
+ background: #5b5b5b;
96
+ }
92
97
  color: #fff;
93
98
  }
94
99
 
95
100
  &-club {
96
101
  background: map-get($palette, 'club');
97
- border-color: map-get($palette, 'club');
102
+ > div {
103
+ background: map-get($palette, 'club');
104
+ }
98
105
  color: #fff;
99
106
  }
100
107
 
101
108
  &-trial {
102
- background: #fff;
103
- border-color: map-get($palette, 'club');
104
- color: map-get($palette, 'club');
109
+ background: map-get($palette, 'club');
110
+ > div {
111
+ background: #fff;
112
+ > span {
113
+ background: map-get($palette, 'club');
114
+ -webkit-background-clip: text;
115
+ -webkit-text-fill-color: transparent;
116
+ }
117
+ }
105
118
  }
106
119
 
107
120
  &-goalkeeper {
108
- background: map-get($palette, 'goalkeeper');
109
- border-color: map-get($palette, 'text');
121
+ background-color: map-get($palette, 'text');
122
+ > div {
123
+ background: map-get($palette, 'goalkeeper');
124
+ }
110
125
  color: map-get($palette, 'text');
111
126
  }
112
127
 
113
128
  &-defender {
114
- background: map-get($palette, 'defender');
115
- border-color: map-get($palette, 'text');
129
+ background-color: map-get($palette, 'text');
130
+ > div {
131
+ background: map-get($palette, 'defender');
132
+ }
116
133
  color: map-get($palette, 'text');
117
134
  }
118
135
 
119
136
  &-midfielder {
120
- background: map-get($palette, 'midfielder');
121
- border-color: map-get($palette, 'text');
137
+ background-color: map-get($palette, 'text');
138
+ > div {
139
+ background: map-get($palette, 'midfielder');
140
+ }
122
141
  color: map-get($palette, 'text');
123
142
  }
124
143
 
125
144
  &-forward {
126
- background: map-get($palette, 'forward');
127
- border-color: map-get($palette, 'text');
145
+ background-color: map-get($palette, 'text');
146
+ > div {
147
+ background: map-get($palette, 'forward');
148
+ }
128
149
  color: map-get($palette, 'text');
129
150
  }
130
151
 
131
152
  &-success {
132
- background: map-get($palette, 'success');
133
- border-color: map-get($palette, 'success');
153
+ background-color: map-get($palette, 'success');
154
+ > div {
155
+ background: map-get($palette, 'success');
156
+ }
134
157
  color: #fff;
135
158
  }
136
159
  }
@@ -39,7 +39,7 @@ export default {
39
39
  .mg-container {
40
40
  &-theme {
41
41
  &--club {
42
- background-color: map-get($palette, 'club');
42
+ background: map-get($palette, 'club');
43
43
  }
44
44
  }
45
45
  }
@@ -0,0 +1,38 @@
1
+ import MgContainer from '../../content/container/Container.vue';
2
+
3
+ // More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
4
+ export default {
5
+ title: 'Content/Container',
6
+ component: MgContainer,
7
+ // More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
8
+ argTypes: {
9
+ default: {
10
+ description: "The default Vue slot",
11
+ control: {
12
+ type: 'text',
13
+ },
14
+ table: {
15
+ category: 'Slots',
16
+ type: {
17
+ summary: 'html',
18
+ },
19
+ }
20
+ }
21
+ },
22
+ };
23
+
24
+ // More on component templates: https://storybook.js.org/docs/vue/writing-stories/introduction#using-args
25
+ const Template = (args, { argTypes }) => ({
26
+ props: Object.keys(argTypes),
27
+ components: { MgContainer },
28
+ template: `<mg-container @click="$emit('click')" v-bind="$props">
29
+ <template v-if="${'default' in args}" v-slot>${args.default}</template>
30
+ </mg-container>`,
31
+ });
32
+
33
+ export const Club = Template.bind({});
34
+ // More on args: https://storybook.js.org/docs/vue/writing-stories/args
35
+ Club.args = {
36
+ theme: 'club',
37
+ default: '<div>This is a vertical card.</div><div>What do you think about?</div>'
38
+ };