@eturnity/eturnity_reusable_components 1.2.19-EPDM-5262.0 → 1.2.19-EPDM-5262.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 +4 -4
- package/src/App.vue +1 -1
- package/src/components/infoText/index.vue +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eturnity/eturnity_reusable_components",
|
|
3
|
-
"version": "1.2.19-EPDM-5262.
|
|
3
|
+
"version": "1.2.19-EPDM-5262.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vue-cli-service serve",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"@vueform/slider": "1.0.5",
|
|
14
14
|
"core-js": "^3.6.5",
|
|
15
15
|
"vue": "^2.6.11",
|
|
16
|
-
"vue-styled-components": "^1.6.0"
|
|
16
|
+
"vue-styled-components": "^1.6.0",
|
|
17
|
+
"html-loader": "^0.5.5"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
20
|
"@storybook/addon-actions": "^6.2.8",
|
|
@@ -28,8 +29,7 @@
|
|
|
28
29
|
"babel-eslint": "^10.1.0",
|
|
29
30
|
"eslint": "^6.7.2",
|
|
30
31
|
"eslint-plugin-vue": "^6.2.2",
|
|
31
|
-
"vue-template-compiler": "^2.6.11"
|
|
32
|
-
"html-loader": "^0.5.5"
|
|
32
|
+
"vue-template-compiler": "^2.6.11"
|
|
33
33
|
},
|
|
34
34
|
"eslintConfig": {
|
|
35
35
|
"root": true,
|
package/src/App.vue
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
:isError="true"
|
|
21
21
|
><InputAnnexContainer>
|
|
22
22
|
<span>123m2</span>
|
|
23
|
-
<info-text size="15" text="infoText ceci est le text"></info-text>
|
|
23
|
+
<info-text size="15" text="infoText ceci est le text" openTrigger="onClick"></info-text>
|
|
24
24
|
</InputAnnexContainer>
|
|
25
25
|
</input-number>
|
|
26
26
|
<br />
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
:size="size"
|
|
7
7
|
:borderColor="borderColor"
|
|
8
8
|
@click.prevent="toggleShowInfo()"
|
|
9
|
-
@mouseenter="toggleShowInfo()"
|
|
10
|
-
@mouseleave="toggleShowInfo()"
|
|
9
|
+
@mouseenter="openTrigger == 'onHover' ? toggleShowInfo() : ''"
|
|
10
|
+
@mouseleave="openTrigger == 'onHover' ? toggleShowInfo() : ''"
|
|
11
11
|
>
|
|
12
12
|
<icon :size="size + 'px'" name="info" :color="iconColor" />
|
|
13
13
|
</icon-img>
|
|
@@ -41,6 +41,7 @@ const TextOverlay = styled('div', textAttrs)`
|
|
|
41
41
|
top: 26px;
|
|
42
42
|
right: ${(props) => (props.alignText === 'left' ? '-10px' : 'inherit')};
|
|
43
43
|
left: ${(props) => (props.alignText === 'left' ? 'inherit' : '-10px')};
|
|
44
|
+
text-align: ${(props) => props.alignText};
|
|
44
45
|
background: ${(props) => props.theme.colors.black};
|
|
45
46
|
padding: 10px;
|
|
46
47
|
width: max-content;
|
|
@@ -105,6 +106,10 @@ export default {
|
|
|
105
106
|
alignText: {
|
|
106
107
|
required: false,
|
|
107
108
|
default: 'left' // "left" or "right"
|
|
109
|
+
},
|
|
110
|
+
openTrigger:{
|
|
111
|
+
required:false,
|
|
112
|
+
default: "onHover"
|
|
108
113
|
}
|
|
109
114
|
},
|
|
110
115
|
methods: {
|