@everchron/ec-shards 1.3.2 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everchron/ec-shards",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
@@ -1,5 +1,10 @@
1
1
  <template>
2
- <div class="ecs-tab-content" :class="[flex ? 'ecs-tab-content-flex' : '', fill ? 'ecs-tab-content-fill' : '']">
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,6 +46,22 @@
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{
@@ -6,7 +6,13 @@ import { Meta } from '@storybook/addon-docs/blocks';
6
6
  Changelog
7
7
  </h1>
8
8
 
9
- ## Version 1.3.1 (27 August 2022)
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)
10
16
 
11
17
  ### Fixes
12
18