@everchron/ec-shards 1.4.0 → 1.4.1

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.4.0",
3
+ "version": "1.4.1",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
@@ -23,7 +23,7 @@
23
23
  /** Displays a status indicator based on the passed value. */
24
24
  state: {
25
25
  type: String,
26
- validator: v => ['healthy', 'loading', 'repairing', 'corrupted'].includes(v),
26
+ validator: v => ['healthy', 'loading', 'corrupted'].includes(v),
27
27
  required: true
28
28
  },
29
29
  /** Indicates that the element is a clickable element, by adding a :hover state and showing pointer cursor. */
@@ -40,27 +40,29 @@
40
40
  @import "../mixins/svg-uri";
41
41
 
42
42
  .ecs-transcript-state{
43
- width: 30px;
44
- min-width: 30px;
45
- height: 30px;
43
+ width: 36px;
44
+ height: 36px;
46
45
  position: relative;
47
46
  cursor: help;
47
+ flex-shrink: 0;
48
48
  z-index: 1;
49
49
 
50
50
  div{
51
51
  width: 30px;
52
52
  height: 30px;
53
53
  position: absolute;
54
- top: 0;
55
- left: 0;
54
+ top: 3px;
55
+ left: 3px;
56
56
  }
57
57
 
58
- .healthy{
59
- background-image: svg-uri('<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M25.0657 13.9129L25.0304 13.9468L24.9997 13.9849L21.0235 18.9354L19.9494 18.0137C19.6108 17.7015 19.191 17.6225 18.8271 17.6695C18.4719 17.7154 18.1497 17.8792 17.9013 18.0833C17.6534 18.2869 17.4262 18.5742 17.3167 18.9238C17.2008 19.2938 17.2224 19.7327 17.4931 20.1232L17.5128 20.1515L17.535 20.1779L20.0265 23.1467L20.0335 23.1551L20.0408 23.1634C20.3616 23.5236 20.8034 23.778 21.3214 23.7476C21.8285 23.7178 22.2304 23.4249 22.5053 23.072L22.5241 23.048L22.5408 23.0224L27.4703 15.5069L27.4956 15.4683L27.516 15.4269C27.6882 15.0771 27.7869 14.697 27.7372 14.3253C27.6843 13.9289 27.4607 13.5718 27.0792 13.3823C26.3775 13.0338 25.5896 13.4113 25.0657 13.9129Z" fill="#157EFB" stroke="#FFF" stroke-width="1.5"/></svg>');
58
+ > .icon{
59
+ position: absolute;
60
+ top: 3px;
61
+ left: 3px;
60
62
  }
61
63
 
62
- .repairing{
63
- background-image: svg-uri('<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.9521 14.4266L17.7736 14.482L17.7361 14.5198C17.1102 14.8712 17.0777 15.7087 17.5312 16.1623L19.0701 17.7011L18.7011 18.0701L17.1623 16.5314C17.1623 16.5313 17.1623 16.5313 17.1622 16.5313C16.6642 16.0332 15.7033 16.1214 15.4313 16.9373L15.4288 16.9447L15.4265 16.9522C15.0087 18.2989 15.3327 19.8329 16.4026 20.9028C17.4313 21.9315 18.932 22.2733 20.2428 21.8837L23.5509 25.1917L23.551 25.1918C24.2745 25.9152 25.4664 25.9566 26.1921 25.192C26.9565 24.4663 26.9153 23.2744 26.1917 22.5509L26.189 22.5482L22.8818 19.275C23.2723 17.9426 22.938 16.4379 21.9028 15.4026C20.833 14.3328 19.2987 14.0086 17.9521 14.4266Z" fill="#202127" stroke="#FFF" stroke-width="1.5"/></svg>');
64
+ .healthy{
65
+ background-image: svg-uri('<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M25.0657 13.9129L25.0304 13.9468L24.9997 13.9849L21.0235 18.9354L19.9494 18.0137C19.6108 17.7015 19.191 17.6225 18.8271 17.6695C18.4719 17.7154 18.1497 17.8792 17.9013 18.0833C17.6534 18.2869 17.4262 18.5742 17.3167 18.9238C17.2008 19.2938 17.2224 19.7327 17.4931 20.1232L17.5128 20.1515L17.535 20.1779L20.0265 23.1467L20.0335 23.1551L20.0408 23.1634C20.3616 23.5236 20.8034 23.778 21.3214 23.7476C21.8285 23.7178 22.2304 23.4249 22.5053 23.072L22.5241 23.048L22.5408 23.0224L27.4703 15.5069L27.4956 15.4683L27.516 15.4269C27.6882 15.0771 27.7869 14.697 27.7372 14.3253C27.6843 13.9289 27.4607 13.5718 27.0792 13.3823C26.3775 13.0338 25.5896 13.4113 25.0657 13.9129Z" fill="#157EFB" stroke="#FFF" stroke-width="1.5"/></svg>');
64
66
  }
65
67
 
66
68
  .corrupted{
@@ -73,8 +75,8 @@
73
75
  width: 18px;
74
76
  height: 18px;
75
77
  position: absolute;
76
- bottom: 0;
77
- right: 0;
78
+ bottom: 3px;
79
+ right: 3px;
78
80
  display: block;
79
81
 
80
82
  .icon{
@@ -107,3 +109,17 @@
107
109
  }
108
110
  }
109
111
  </style>
112
+
113
+ <style lang="scss">
114
+ @import "../../tokens/build/scss/tokens.scss";
115
+
116
+ .popover-button.active > .ecs-transcript-state > .icon{
117
+ color: $color-blue-9;
118
+ }
119
+
120
+ .popover-button.active > .ecs-transcript-state.interactive:after{
121
+ opacity: 1;
122
+ transform: scale(1);
123
+ background: rgba($color-blue-8, .08);
124
+ }
125
+ </style>
@@ -6,6 +6,12 @@ import { Meta } from '@storybook/addon-docs/blocks';
6
6
  Changelog
7
7
  </h1>
8
8
 
9
+ ## Version 1.4.1 (7 September 2022)
10
+
11
+ ### Fixes
12
+
13
+ - Correct size for EcsTranscriptState button, added active styles and removed not needed `repair` state.
14
+
9
15
  ## Version 1.4.0 (6 September 2022)
10
16
 
11
17
  ### Features
@@ -11,7 +11,6 @@ export const statusIndicator = () => ({
11
11
  <ecs-transcript-state state="loading" />
12
12
  <ecs-transcript-state state="healthy" />
13
13
  <ecs-transcript-state state="corrupted" />
14
- <ecs-transcript-state state="repairing" />
15
14
  <ecs-transcript-state state="corrupted" interactive />
16
15
  </main>`,
17
16
  });