@everchron/ec-shards 1.2.1 → 1.2.2

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.2.1",
3
+ "version": "1.2.2",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="ecs-tab-content" :class="flex ? 'ecs-tab-content-flex' : ''">
2
+ <div class="ecs-tab-content" :class="[flex ? 'ecs-tab-content-flex' : '', fill ? 'ecs-tab-content-fill' : '']">
3
3
  <slot></slot>
4
4
  </div>
5
5
  </template>
@@ -11,6 +11,11 @@
11
11
  flex: {
12
12
  type: Boolean,
13
13
  default: false
14
+ },
15
+ /** Sets the height of the tabs area to 100%. Also sets the inner tab height to 100%. */
16
+ fill: {
17
+ type: Boolean,
18
+ default: false
14
19
  }
15
20
  }
16
21
  }
@@ -24,4 +29,12 @@
24
29
  height: 100%;
25
30
  min-height: 0;
26
31
  }
32
+
33
+ .ecs-tab-content-fill{
34
+ height: 100%;
35
+
36
+ .ecs-tab-pane{
37
+ height: 100%;
38
+ }
39
+ }
27
40
  </style>
@@ -6,6 +6,12 @@ import { Meta } from '@storybook/addon-docs/blocks';
6
6
  Changelog
7
7
  </h1>
8
8
 
9
+ ## Version 1.2.2 (25 August 2022)
10
+
11
+ ### Features
12
+
13
+ - Added `fill` prop to EcsTabs component.
14
+
9
15
  ## Version 1.2.1 (25 August 2022)
10
16
 
11
17
  ### Features
@@ -28,7 +28,7 @@ export const tabs = () => ({
28
28
  <ecs-tab-button @click="tabIndex = 2" :show="tabIndex == 2">Calendar</ecs-tab-button>
29
29
  <ecs-tab-button @click="tabIndex = 3" :show="tabIndex == 3">Versions</ecs-tab-button>
30
30
  </ecs-tab-bar>
31
- <ecs-tabs>
31
+ <ecs-tabs fill>
32
32
  <ecs-tab :show="tabIndex == 1">First Tab</ecs-tab>
33
33
  <ecs-tab :show="tabIndex == 2">Second Tab</ecs-tab>
34
34
  <ecs-tab :show="tabIndex == 3">Third Tab</ecs-tab>