@eturnity/eturnity_reusable_components 1.2.30 → 1.2.31-EPDM-6097.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": "@eturnity/eturnity_reusable_components",
3
- "version": "1.2.30",
3
+ "version": "1.2.31-EPDM-6097.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -2,19 +2,15 @@
2
2
  <component-wrapper>
3
3
  <icon-wrapper :size="size">
4
4
  <icon-img
5
- :isActive="showInfo"
6
- :size="size"
7
- :borderColor="borderColor"
8
5
  @click.prevent="toggleShowInfo()"
9
6
  @mouseenter="openTrigger == 'onHover' ? toggleShowInfo() : ''"
10
7
  @mouseleave="openTrigger == 'onHover' ? toggleShowInfo() : ''"
11
8
  >
12
- <icon :size="size" name="info" :color="iconColor" />
9
+ <icon :size="size" name="info" :color="iconColor" cursor="pointer" />
13
10
  </icon-img>
14
11
  <text-overlay
15
12
  v-if="showInfo"
16
13
  :borderColor="borderColor"
17
- :alignText="alignText"
18
14
  :width="width"
19
15
  :halfComputedTextInfoWidth="halfComputedTextInfoWidth"
20
16
  :alignArrow="alignArrow"
@@ -33,7 +29,7 @@
33
29
  // text="Veritatis et quasi architecto beatae vitae"
34
30
  // borderColor="#ccc"
35
31
  // size="20"
36
- // alignText="right" // default is left
32
+ // alignArrow="right" // which side the arrow should be on
37
33
  // />
38
34
  import theme from '../../assets/theme.js'
39
35
  import styled from 'vue-styled-components'
@@ -43,7 +39,6 @@ const textAttrs = {
43
39
  iconSize: String,
44
40
  borderColor: String,
45
41
  alignArrow: String,
46
- alignText: String,
47
42
  width: String,
48
43
  halfComputedTextInfoWidth: Number
49
44
  }
@@ -56,7 +51,7 @@ const TextOverlay = styled('div', textAttrs)`
56
51
  : props.alignArrow === 'center'
57
52
  ? 'left: calc((-' + props.width + ' + ' + props.iconSize + ') /2 + 2px)'
58
53
  : 'right: calc(' + props.iconSize + ' /2 - 17px)'};
59
- text-align: ${(props) => props.alignText};
54
+ text-align: left;
60
55
  background: ${(props) => props.theme.colors.black};
61
56
  padding: 10px;
62
57
  width: ${(props) => props.width};
@@ -89,16 +84,14 @@ const TextOverlay = styled('div', textAttrs)`
89
84
  }
90
85
  `
91
86
 
92
- const iconAttrs = { isActive: Boolean, size: String, borderColor: String }
93
-
87
+ const iconAttrs = { size: String }
94
88
  const IconWrapper = styled('div', iconAttrs)`
95
89
  position: relative;
96
- top: 1px;
97
90
  height: ${(props) => props.size};
98
91
  `
92
+
99
93
  const IconImg = styled('div', iconAttrs)`
100
- cursor: pointer;
101
- height: ${(props) => props.size};
94
+ line-height: 0;
102
95
  `
103
96
 
104
97
  const ComponentWrapper = styled.div`
@@ -126,17 +119,13 @@ export default {
126
119
  required: false,
127
120
  default: '14px'
128
121
  },
129
- alignText: {
130
- required: false,
131
- default: 'left' // "left" or "right"
132
- },
133
122
  alignArrow: {
134
123
  required: false,
135
124
  default: 'center'
136
125
  },
137
126
  openTrigger: {
138
127
  required: false,
139
- default: 'onClick'
128
+ default: 'onHover' // onHover, onClick
140
129
  },
141
130
  width: {
142
131
  required: false,