@everchron/ec-shards 1.3.0 → 1.3.3
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/dist/ec-shards.common.js +127 -81
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +127 -81
- package/dist/ec-shards.umd.js.map +1 -1
- package/dist/ec-shards.umd.min.js +1 -1
- package/dist/ec-shards.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/dropzone/dropzone.vue +11 -0
- package/src/components/tab-button/tab-button.vue +4 -3
- package/src/components/tabs/tabs.vue +36 -2
- package/src/stories/Changelog.stories.mdx +13 -0
package/package.json
CHANGED
|
@@ -162,6 +162,16 @@
|
|
|
162
162
|
}
|
|
163
163
|
</script>
|
|
164
164
|
|
|
165
|
+
<style lang="scss">
|
|
166
|
+
@import "../../tokens/build/scss/tokens.scss";
|
|
167
|
+
|
|
168
|
+
.ecs-dropzone .ecs-empty-state{
|
|
169
|
+
a{
|
|
170
|
+
color: $color-blue-10;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
</style>
|
|
174
|
+
|
|
165
175
|
<style lang="scss" scoped>
|
|
166
176
|
@import "../../tokens/build/scss/tokens.scss";
|
|
167
177
|
@import "../mixins/svg-uri";
|
|
@@ -176,6 +186,7 @@
|
|
|
176
186
|
border: 1px dashed $color-gray-4;
|
|
177
187
|
position: relative;
|
|
178
188
|
transition: .2s;
|
|
189
|
+
padding: $spacing-40;
|
|
179
190
|
|
|
180
191
|
input[type=file]{
|
|
181
192
|
display: none;
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
|
|
201
201
|
&.ecs-tab-bar-column{
|
|
202
202
|
.ecs-tab-button{
|
|
203
|
-
padding:
|
|
203
|
+
padding: 5px $spacing-5 5px $spacing-25;
|
|
204
204
|
|
|
205
205
|
&:after{
|
|
206
206
|
position: relative;
|
|
@@ -212,6 +212,7 @@
|
|
|
212
212
|
width: 3px;
|
|
213
213
|
left: 0;
|
|
214
214
|
top: 0;
|
|
215
|
+
border-radius: 0 2px 2px 0;
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
.icon:not(.sticker){
|
|
@@ -219,12 +220,12 @@
|
|
|
219
220
|
}
|
|
220
221
|
|
|
221
222
|
.sticker{
|
|
222
|
-
top:
|
|
223
|
+
top: 20px;
|
|
223
224
|
left: 29px;
|
|
224
225
|
}
|
|
225
226
|
|
|
226
227
|
.hover{
|
|
227
|
-
inset:
|
|
228
|
+
inset: 0 $spacing-10;
|
|
228
229
|
transform-origin: left;
|
|
229
230
|
}
|
|
230
231
|
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="ecs-tab-content"
|
|
2
|
+
<div class="ecs-tab-content"
|
|
3
|
+
:class="[
|
|
4
|
+
flex ? 'ecs-tab-content-flex' : '',
|
|
5
|
+
fill ? 'ecs-tab-content-fill' : '',
|
|
6
|
+
directionClass
|
|
7
|
+
]">
|
|
3
8
|
<slot></slot>
|
|
4
9
|
</div>
|
|
5
10
|
</template>
|
|
@@ -12,11 +17,24 @@
|
|
|
12
17
|
type: Boolean,
|
|
13
18
|
default: false
|
|
14
19
|
},
|
|
20
|
+
/** Determines the flex direction, if the flex prop has been set. */
|
|
21
|
+
flexDirection: {
|
|
22
|
+
type: String,
|
|
23
|
+
validator: v => ['row', 'row-reverse', 'column', 'column-reverse'].includes(v),
|
|
24
|
+
default: "row"
|
|
25
|
+
},
|
|
15
26
|
/** Sets the height of the tabs area to 100%. Also sets the inner tab height to 100%. */
|
|
16
27
|
fill: {
|
|
17
28
|
type: Boolean,
|
|
18
29
|
default: false
|
|
19
30
|
}
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
computed: {
|
|
34
|
+
directionClass() {
|
|
35
|
+
if (this.flex)
|
|
36
|
+
return `ecs-tab-content-flex-${this.flexDirection}`
|
|
37
|
+
},
|
|
20
38
|
}
|
|
21
39
|
}
|
|
22
40
|
</script>
|
|
@@ -28,10 +46,26 @@
|
|
|
28
46
|
.ecs-tab-content-flex{
|
|
29
47
|
height: 100%;
|
|
30
48
|
min-height: 0;
|
|
49
|
+
|
|
50
|
+
&-row{
|
|
51
|
+
flex-direction: row;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-row-reverse{
|
|
55
|
+
flex-direction: row-reverse;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&-column{
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&-column-reverse{
|
|
63
|
+
flex-direction: column-reverse;
|
|
64
|
+
}
|
|
31
65
|
}
|
|
32
66
|
|
|
33
67
|
.ecs-tab-content-fill{
|
|
34
|
-
|
|
68
|
+
height: 100%;
|
|
35
69
|
|
|
36
70
|
.ecs-tab-pane{
|
|
37
71
|
min-height: 100%;
|
|
@@ -6,6 +6,19 @@ import { Meta } from '@storybook/addon-docs/blocks';
|
|
|
6
6
|
Changelog
|
|
7
7
|
</h1>
|
|
8
8
|
|
|
9
|
+
## Version 1.3.3 (27 August 2022)
|
|
10
|
+
|
|
11
|
+
### Changes
|
|
12
|
+
|
|
13
|
+
- Added flexDirection prop to EcsTabs component.
|
|
14
|
+
|
|
15
|
+
## Version 1.3.2 (27 August 2022)
|
|
16
|
+
|
|
17
|
+
### Fixes
|
|
18
|
+
|
|
19
|
+
- Fix height and padding of column tab buttons.
|
|
20
|
+
- Set height and max-height to fill variant of EcsTab.
|
|
21
|
+
|
|
9
22
|
## Version 1.3.0 (26 August 2022)
|
|
10
23
|
|
|
11
24
|
### Features
|