@magicgol/polyjuice 0.34.1 → 0.34.4

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.34.1",
3
+ "version": "0.34.4",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  class="d-inline-flex bg-white align-items-center px-3"
4
- :class="[classes, {'py-1': stretched}]"
4
+ :class="[classes, {'py-2': stretched}]"
5
5
  >
6
6
  <div><slot></slot></div>
7
7
  </div>
@@ -3,14 +3,18 @@
3
3
  :class="classes"
4
4
  >
5
5
  <div
6
- class="mg-selection-box-curtain h-50 w-100 position-fixed"
6
+ v-if="expanded"
7
+ class="mg-selection-box-curtain h-25 w-100 position-fixed"
7
8
  @click="onClickOutside"
8
9
  ></div>
9
10
  <div class="mg-selection-box-content fixed-bottom px-3 py-2">
10
11
  <div class="d-flex flex-column bg-white rounded w-100 h-100 px-3 py-2">
11
12
  <div class="mg-selection-box-title text-uppercase text-center"><slot></slot></div>
12
13
  <div><slot name="summary"></slot></div>
13
- <div class="flex-fill" v-if="expanded"><slot name="detail"></slot></div>
14
+ <div
15
+ class="flex-fill"
16
+ v-if="expanded"
17
+ ><slot name="detail"></slot></div>
14
18
  <div class="d-flex align-items-center mt-2">
15
19
  <div class="w-50 text-center">
16
20
  <slot name="cancel"></slot>
@@ -97,7 +101,7 @@ export default {
97
101
  width: 100%;
98
102
 
99
103
  .mg-selection-box-content {
100
- height: 50%;
104
+ height: 75%;
101
105
  }
102
106
  }
103
107
  }
@@ -24,5 +24,6 @@ export default {
24
24
  font-family: 'Ubuntu', sans-serif;
25
25
  font-size: 1.25rem;
26
26
  font-weight: 500;
27
+ line-height: 1.1;
27
28
  }
28
29
  </style>
@@ -19,7 +19,7 @@ export default {
19
19
  <style lang="scss">
20
20
  .mg-paragraph {
21
21
  font-family: 'Ubuntu', sans-serif;
22
- font-size: 0.75rem;
22
+ font-size: 0.8125rem;
23
23
  font-weight: 400;
24
24
  }
25
25
  </style>
@@ -4,8 +4,13 @@ import {ColorItem, ColorPalette, Meta} from '@storybook/addon-docs';
4
4
 
5
5
  <ColorPalette>
6
6
  <ColorItem
7
- title="Warning"
7
+ title="Error"
8
8
  subtitle="Used for error messages"
9
+ colors={{'Cinnabar': '#ed4949'}}
10
+ />
11
+ <ColorItem
12
+ title="Warning"
13
+ subtitle="Used for warning messages"
9
14
  colors={{'Persimmon': '#ff614c'}}
10
15
  />
11
16
  <ColorItem