@eturnity/eturnity_reusable_components 1.2.30 → 1.2.31

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",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -14,7 +14,6 @@
14
14
  <text-overlay
15
15
  v-if="showInfo"
16
16
  :borderColor="borderColor"
17
- :alignText="alignText"
18
17
  :width="width"
19
18
  :halfComputedTextInfoWidth="halfComputedTextInfoWidth"
20
19
  :alignArrow="alignArrow"
@@ -33,7 +32,7 @@
33
32
  // text="Veritatis et quasi architecto beatae vitae"
34
33
  // borderColor="#ccc"
35
34
  // size="20"
36
- // alignText="right" // default is left
35
+ // alignArrow="right" // which side the arrow should be on
37
36
  // />
38
37
  import theme from '../../assets/theme.js'
39
38
  import styled from 'vue-styled-components'
@@ -43,7 +42,6 @@ const textAttrs = {
43
42
  iconSize: String,
44
43
  borderColor: String,
45
44
  alignArrow: String,
46
- alignText: String,
47
45
  width: String,
48
46
  halfComputedTextInfoWidth: Number
49
47
  }
@@ -56,7 +54,7 @@ const TextOverlay = styled('div', textAttrs)`
56
54
  : props.alignArrow === 'center'
57
55
  ? 'left: calc((-' + props.width + ' + ' + props.iconSize + ') /2 + 2px)'
58
56
  : 'right: calc(' + props.iconSize + ' /2 - 17px)'};
59
- text-align: ${(props) => props.alignText};
57
+ text-align: 'left';
60
58
  background: ${(props) => props.theme.colors.black};
61
59
  padding: 10px;
62
60
  width: ${(props) => props.width};
@@ -126,17 +124,13 @@ export default {
126
124
  required: false,
127
125
  default: '14px'
128
126
  },
129
- alignText: {
130
- required: false,
131
- default: 'left' // "left" or "right"
132
- },
133
127
  alignArrow: {
134
128
  required: false,
135
129
  default: 'center'
136
130
  },
137
131
  openTrigger: {
138
132
  required: false,
139
- default: 'onClick'
133
+ default: 'onHover' // onHover, onClick
140
134
  },
141
135
  width: {
142
136
  required: false,