@eturnity/eturnity_reusable_components 1.2.19-EPDM-5262.2 → 1.2.19-EPDM-5262.4

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.19-EPDM-5262.2",
3
+ "version": "1.2.19-EPDM-5262.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -15,6 +15,7 @@
15
15
  v-if="showInfo"
16
16
  :borderColor="borderColor"
17
17
  :alignText="alignText"
18
+ :width="width"
18
19
  >
19
20
  {{ text }}
20
21
  </text-overlay>
@@ -35,7 +36,7 @@ import theme from '@/assets/theme.js'
35
36
  import styled from 'vue-styled-components'
36
37
  import icon from '../icon'
37
38
 
38
- const textAttrs = { borderColor: String, alignText: String }
39
+ const textAttrs = { borderColor: String, alignText: String, width:String }
39
40
  const TextOverlay = styled('div', textAttrs)`
40
41
  position: absolute;
41
42
  top: 26px;
@@ -44,7 +45,7 @@ const TextOverlay = styled('div', textAttrs)`
44
45
  text-align: ${(props) => props.alignText};
45
46
  background: ${(props) => props.theme.colors.black};
46
47
  padding: 10px;
47
- width: max-content;
48
+ width: ${(props) => props.width ? props.width : "max-content"};
48
49
  max-width: 400px;
49
50
  font-size: 13px;
50
51
  font-weight: 400;
@@ -57,7 +58,7 @@ const TextOverlay = styled('div', textAttrs)`
57
58
  background-color: ${(props) => props.theme.colors.black};
58
59
  position: absolute;
59
60
  top: 2px;
60
- right: ${(props) => (props.alignText === 'left' ? '-12px' : 'inherit')};
61
+ right: ${(props) => (props.alignText === 'left' ? '-14px' : 'inherit')};
61
62
  left: ${(props) => (props.alignText === 'left' ? 'inherit' : '40px')};
62
63
  height: 8px;
63
64
  width: 8px;
@@ -109,8 +110,9 @@ export default {
109
110
  },
110
111
  openTrigger:{
111
112
  required:false,
112
- default: "onHover"
113
- }
113
+ default: "onClick"
114
+ },
115
+ width:{required:false}
114
116
  },
115
117
  methods: {
116
118
  toggleShowInfo() {