@everchron/ec-shards 0.7.16 → 0.7.19

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.16",
3
+ "version": "0.7.19",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
Binary file
@@ -65,15 +65,12 @@
65
65
  &-entry{
66
66
  flex: 1;
67
67
  overflow: auto;
68
- padding: 30px;
69
-
70
- &.has-sidebar{
71
- padding-right: 60px;
72
- }
73
68
  }
74
69
 
75
70
  &-directory{
76
71
  flex-shrink: 0;
72
+ width: 25%;
73
+ max-width: 440px;
77
74
  border-right: 1px solid $gray-4;
78
75
  }
79
76
 
@@ -27,5 +27,16 @@
27
27
  display: block;
28
28
  }
29
29
  }
30
+
31
+ &-flex{
32
+ > .ecs-tab-pane{
33
+ display: none;
34
+ height: 100%;
35
+
36
+ &.show{
37
+ display: flex;
38
+ }
39
+ }
40
+ }
30
41
  }
31
42
  </style>
@@ -75,7 +75,7 @@
75
75
  border-radius: 100%;
76
76
  transform: scale(0);
77
77
  opacity: 0;
78
- transition: .25s;
78
+ transition: .25s transform, .25s opacity;
79
79
  pointer-events: none;
80
80
  position: absolute;
81
81
  }
@@ -244,10 +244,14 @@
244
244
  flex: 1;
245
245
 
246
246
  &:after{
247
- position: relative;
247
+ position: absolute;
248
248
  margin: -6px 0 0 2px;
249
249
  }
250
250
 
251
+ &-badge:after{
252
+ position: relative;
253
+ }
254
+
251
255
  .icon{
252
256
  width: 20px;
253
257
  height: 20px;
@@ -1,12 +1,25 @@
1
1
  <template>
2
- <div class="ecs-tab-content">
2
+ <div class="ecs-tab-content" :class="flex ? 'ecs-tab-content-flex' : ''">
3
3
  <slot></slot>
4
4
  </div>
5
5
  </template>
6
6
 
7
+ <script>
8
+ export default {
9
+ props: {
10
+ flex: {
11
+ type: Boolean,
12
+ default: false
13
+ }
14
+ }
15
+ }
16
+ </script>
17
+
7
18
  <style lang="scss" scoped>
8
19
  @import "../tokens/tokens";
9
20
  @import "../mixins/svg-uri";
10
21
 
11
-
12
- </style>
22
+ .ecs-tab-content-flex{
23
+ height: 100%;
24
+ }
25
+ </style>
@@ -25,23 +25,23 @@ The `overlay-sidebar` attribute sets the sidebar container to be fixed and overl
25
25
 
26
26
 
27
27
  ```js
28
- <ecs-layout-index>
28
+ <ecs-layout-directory>
29
29
  <template slot="toolbar">
30
30
  <div>toolbar</div>
31
31
  </template>
32
32
  <template slot="action-toolbar">
33
33
  <div>action-toolbar</div>
34
34
  </template>
35
+ <template slot="directory">
36
+ <div>directory</div>
37
+ </template>
35
38
 
36
39
  <div>content slot</div>
37
40
 
38
- <template slot="pagination">
39
- <div>pagination</div>
40
- </template>
41
41
  <template slot="sidebar">
42
42
  <div>sidebar</div>
43
43
  </template>
44
- </ecs-layout-index>
44
+ </ecs-layout-directory>
45
45
  ```
46
46
 
47
47