@everchron/ec-shards 0.7.73 → 0.7.76

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": "@everchron/ec-shards",
3
- "version": "0.7.73",
3
+ "version": "0.7.76",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
package/src/.DS_Store ADDED
Binary file
Binary file
Binary file
@@ -5,7 +5,7 @@
5
5
  </button>
6
6
  <div class="ecs-alert-inner">
7
7
  <h4 v-if="headline" class="ecs-alert-headline">
8
- <ecs-icon :type="icon" width="20" height="20" />
8
+ <ecs-icon v-if="icon" :type="icon" width="20" height="20" />
9
9
  {{ headline }}
10
10
  </h4>
11
11
  <div v-if="$slots.default" class="ecs-alert-content">
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <button class="ecs-dialog-footer-button" :class="[typeClass, loading ? `loading` : '']" @click="$emit('click', $event)">
2
+ <button class="ecs-dialog-footer-button" :id="id" :class="[typeClass, loading ? `loading` : '']" @click="$emit('click', $event)">
3
3
  <ecs-icon v-if="icon || loading" :type="iconType" />
4
4
  <slot></slot>
5
5
  </button>
@@ -14,6 +14,7 @@
14
14
  },
15
15
 
16
16
  props: {
17
+ id: String,
17
18
  icon: {
18
19
  type: String,
19
20
  default: null
@@ -1,6 +1,11 @@
1
1
  <template>
2
2
  <div class="ecs-modal-footer">
3
- <slot></slot>
3
+ <div v-if="$slots.secondary" class="ecs-modal-footer-secondary">
4
+ <slot name="secondary"></slot>
5
+ </div>
6
+ <div class="ecs-modal-footer-main">
7
+ <slot></slot>
8
+ </div>
4
9
  </div>
5
10
  </template>
6
11
 
@@ -9,13 +14,21 @@
9
14
  @import "../mixins/svg-uri";
10
15
 
11
16
  .ecs-modal-footer{
12
- display: flex;
13
- align-items: center;
14
- justify-content: space-between;
15
17
  background: #FFF;
16
- box-shadow: 0 -1px 0 rgba(#5a6166, .15);
17
- min-height: 62px;
18
- padding: 10px;
18
+ box-shadow: 0 -1px 0 rgba(#858E9E, .35);
19
19
  border-radius: 0 0 4px 4px;
20
+
21
+ &-main{
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: space-between;
25
+ min-height: 62px;
26
+ padding: 10px;
27
+ }
28
+
29
+ &-secondary{
30
+ border-bottom: 1px solid #ECEDF2;
31
+ padding: 8px 10px;
32
+ }
20
33
  }
21
34
  </style>
@@ -119,7 +119,10 @@ export const footer = () => ({
119
119
  <p>Modal Content Slot</p>
120
120
  <template slot="footer">
121
121
  <ecs-modal-footer>
122
- Footer Content
122
+ <template slot="secondary">
123
+ Secondary Footer
124
+ </template>
125
+ Primary Footer Content
123
126
  </ecs-modal-footer>
124
127
  </template>
125
128
  </ecs-modal>