@everchron/ec-shards 0.7.2 → 0.7.5

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.2",
3
+ "version": "0.7.5",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
@@ -26,6 +26,7 @@
26
26
  height: $toolbar_sub_height;
27
27
  background: #FFF;
28
28
  box-shadow: 0 1px 0 rgba($gray-10, .2);
29
+ position: relative;
29
30
  }
30
31
 
31
32
  .action-bar-enter-active {
@@ -6,6 +6,7 @@
6
6
  hasLabel,
7
7
  subtle ? 'subtle' : '',
8
8
  pale ? 'pale' : '',
9
+ unreactive ? 'unreactive' : '',
9
10
  sizeClass
10
11
  ]"
11
12
  :disabled="disabled"
@@ -55,6 +56,10 @@
55
56
  chevron: {
56
57
  type: Boolean,
57
58
  default: false
59
+ },
60
+ unreactive: {
61
+ type: Boolean,
62
+ default: false
58
63
  }
59
64
  },
60
65
 
@@ -160,7 +165,7 @@
160
165
  pointer-events: none;
161
166
  }
162
167
 
163
- &:hover{
168
+ &:not(.unreactive):hover{
164
169
  background: transparent;
165
170
 
166
171
  &:after{
@@ -170,7 +175,7 @@
170
175
  }
171
176
  }
172
177
 
173
- &:hover{
178
+ &:not(.unreactive):hover{
174
179
  background: rgba($gray-8, .2);
175
180
 
176
181
  .icon{
@@ -194,7 +199,7 @@
194
199
  color: $gray-6;
195
200
  }
196
201
 
197
- &:hover{
202
+ &:not(.unreactive):hover{
198
203
  color: $gray-11;
199
204
  background: rgba($gray-7, .14);
200
205
 
@@ -213,6 +218,10 @@
213
218
  }
214
219
  }
215
220
 
221
+ &.unreactive{
222
+ cursor: default;
223
+ }
224
+
216
225
  &:disabled{
217
226
  opacity: .5;
218
227
  cursor: default;
@@ -1,6 +1,9 @@
1
1
  <template>
2
- <div class="ecs-sidebar-footer">
2
+ <div class="ecs-sidebar-footer" :class="[$slots.extension ? 'has-extension' : '']">
3
3
  <slot name="alert"></slot>
4
+ <div v-if="$slots.extension" class="ecs-sidebar-footer-extension" :class="[condensed ? 'condensed' : '']">
5
+ <slot name="extension"></slot>
6
+ </div>
4
7
  <div class="ecs-sidebar-footer-inner" :class="[condensed ? 'ecs-sidebar-footer-inner-condensed' : '']">
5
8
  <slot></slot>
6
9
  </div>
@@ -24,7 +27,7 @@ export default {
24
27
 
25
28
  .ecs-sidebar-footer{
26
29
  background: #FFF;
27
- border-top: 1px solid #E7E8EC;
30
+ border-top: 1px solid $gray-3;
28
31
 
29
32
  &-inner{
30
33
  padding: 20px;
@@ -36,5 +39,18 @@ export default {
36
39
  padding: 7px 15px;
37
40
  }
38
41
  }
42
+
43
+ &.has-extension{
44
+ border-top: 1px solid $gray-4;
45
+ }
46
+
47
+ &-extension{
48
+ padding: 0 20px;
49
+ border-bottom: 1px solid $gray-3;
50
+
51
+ &.condensed{
52
+ padding: 0 15px;
53
+ }
54
+ }
39
55
  }
40
56
  </style>
@@ -8,6 +8,7 @@ export default {
8
8
  export const text = () => ({
9
9
  components: { EcsButtonTable },
10
10
  template: `<main>
11
+ <ecs-button-table size="md" icon="parties" label="5" />
11
12
  <ecs-button-table size="md" icon="parties" label="5" />
12
13
  <ecs-button-table size="sml" icon="parties" label="5" />
13
14
  <ecs-button-table size="md" chevron pale icon="parties" label="5" />
@@ -15,6 +15,17 @@ export const footer = () => ({
15
15
  </ecs-sidebar-footer>`
16
16
  });
17
17
 
18
+ export const footerWithExtension = () => ({
19
+ components: { EcsSidebarFooter, EcsButton, EcsAlert },
20
+ template: `<ecs-sidebar-footer condensed>
21
+ <template slot="extension">
22
+ This is an extension row.
23
+ </template>
24
+ <ecs-button type="secondary">Cancel</ecs-button>
25
+ <ecs-button type="primary" icon="add-plus">Add Version</ecs-button>
26
+ </ecs-sidebar-footer>`
27
+ });
28
+
18
29
  export const footerWithAlert = () => ({
19
30
  components: { EcsSidebarFooter, EcsButton, EcsAlert },
20
31
  template: `<ecs-sidebar-footer>
@@ -23,6 +23,27 @@ The Sidebar Footer is a sub component that should only be used within the EcsSid
23
23
  </ecs-sidebar-footer>
24
24
  ```
25
25
 
26
+ ### With Extension Row
27
+
28
+ <Canvas withSource="none" withToolbar={true}>
29
+ <Story name="Footer With Extension" height="100px">
30
+ {stories.footerWithExtension()}
31
+ </Story>
32
+ </Canvas>
33
+
34
+ ```js
35
+ <ecs-sidebar-footer condensed>
36
+ <template slot="extension">
37
+ This is an extension row.
38
+ </template>
39
+ <ecs-button type="secondary">Cancel</ecs-button>
40
+ <ecs-button type="primary" icon="add-plus">Add Version</ecs-button>
41
+ </ecs-sidebar-footer>
42
+ ```
43
+
44
+
45
+ ### With Alert Row
46
+
26
47
  <Canvas withSource="none" withToolbar={true}>
27
48
  <Story name="Footer With Alert" height="100px">
28
49
  {stories.footerWithAlert()}
@@ -41,4 +62,4 @@ The Sidebar Footer is a sub component that should only be used within the EcsSid
41
62
 
42
63
  ## Props and Slots
43
64
 
44
- <ArgsTable of={EcsSidebarFooter} />
65
+ <ArgsTable of={EcsSidebarFooter} />