@eturnity/eturnity_reusable_components 1.2.19-dev03.0 → 1.2.19-dev03.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 +1 -1
- package/src/App.vue +2 -2
- package/src/components/infoText/index.vue +12 -10
- package/src/components/inputs/inputNumber/index.vue +1 -1
- package/src/components/inputs/inputText/index.vue +1 -1
- package/src/components/inputs/radioButton/index.vue +1 -1
- package/src/components/inputs/textAreaInput/index.vue +1 -1
- package/src/components/inputs/toggle/index.vue +2 -2
- package/src/components/pageSubtitle/index.vue +1 -1
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
slotSize="50%"
|
|
54
54
|
><InputAnnexContainer>
|
|
55
55
|
<span>123m2</span>
|
|
56
|
-
<info-text size="
|
|
56
|
+
<info-text size="10px" alignArrow="right" text="infoText ceci est le text"></info-text>
|
|
57
57
|
</InputAnnexContainer>
|
|
58
58
|
</input-number>
|
|
59
59
|
<input-number
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
:isError="true"
|
|
65
65
|
><InputAnnexContainer>
|
|
66
66
|
<span>123m2</span>
|
|
67
|
-
<info-text :style="{'justify-self': 'end'}" size="
|
|
67
|
+
<info-text :style="{'justify-self': 'end'}" size="12px" alignArrow="center" text="infoText ceci est le text">This is the tooltip text</info-text>
|
|
68
68
|
</InputAnnexContainer>
|
|
69
69
|
</input-number>
|
|
70
70
|
<br />
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
@mouseenter="openTrigger == 'onHover' ? toggleShowInfo() : ''"
|
|
10
10
|
@mouseleave="openTrigger == 'onHover' ? toggleShowInfo() : ''"
|
|
11
11
|
>
|
|
12
|
-
<icon :size="size
|
|
12
|
+
<icon :size="size" name="info" :color="iconColor" />
|
|
13
13
|
</icon-img>
|
|
14
14
|
<text-overlay
|
|
15
15
|
v-if="showInfo"
|
|
@@ -39,13 +39,15 @@ import theme from '@/assets/theme.js'
|
|
|
39
39
|
import styled from 'vue-styled-components'
|
|
40
40
|
import icon from '../icon'
|
|
41
41
|
|
|
42
|
-
const textAttrs = { iconSize:
|
|
42
|
+
const textAttrs = { iconSize:String, borderColor: String, alignArrow:String, alignText: String, width:String,halfComputedTextInfoWidth:Number }
|
|
43
43
|
const TextOverlay = styled('div', textAttrs)`
|
|
44
44
|
position: absolute;
|
|
45
|
-
top: ${(props) => (
|
|
46
|
-
${(props) => (props.alignArrow === 'left'
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
top: ${(props) => 'calc('+props.iconSize+' + 15px)'};
|
|
46
|
+
${(props) => (props.alignArrow === 'left'
|
|
47
|
+
? 'left: calc('+props.iconSize+' /2 - 18px)'
|
|
48
|
+
: props.alignArrow === 'center'
|
|
49
|
+
? 'left: calc((-'+props.width+' + '+props.iconSize+') /2 + 2px)'
|
|
50
|
+
: 'right: calc('+props.iconSize+' /2 - 17px)')};
|
|
49
51
|
text-align: ${(props) => props.alignText};
|
|
50
52
|
background: ${(props) => props.theme.colors.black};
|
|
51
53
|
padding: 10px;
|
|
@@ -72,16 +74,16 @@ const TextOverlay = styled('div', textAttrs)`
|
|
|
72
74
|
}
|
|
73
75
|
`
|
|
74
76
|
|
|
75
|
-
const iconAttrs = { isActive: Boolean, size:
|
|
77
|
+
const iconAttrs = { isActive: Boolean, size: String, borderColor: String }
|
|
76
78
|
|
|
77
79
|
const IconWrapper = styled('div', iconAttrs)`
|
|
78
80
|
position: relative;
|
|
79
81
|
top: 1px;
|
|
80
|
-
height: ${(props) => props.size}
|
|
82
|
+
height: ${(props) => props.size};
|
|
81
83
|
`
|
|
82
84
|
const IconImg = styled('div', iconAttrs)`
|
|
83
85
|
cursor: pointer;
|
|
84
|
-
height: ${(props) => props.size}
|
|
86
|
+
height: ${(props) => props.size};
|
|
85
87
|
`
|
|
86
88
|
|
|
87
89
|
const ComponentWrapper = styled.div`
|
|
@@ -107,7 +109,7 @@ export default {
|
|
|
107
109
|
},
|
|
108
110
|
size: {
|
|
109
111
|
required: false,
|
|
110
|
-
default: '
|
|
112
|
+
default: '14px'
|
|
111
113
|
},
|
|
112
114
|
alignText: {
|
|
113
115
|
required: false,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
/>
|
|
13
13
|
<span class="checkmark"></span>
|
|
14
14
|
<label-text :isDisabled="item.disabled">{{ item.label }}</label-text>
|
|
15
|
-
<info-text v-if="item.infoText" :text="item.infoText" size="
|
|
15
|
+
<info-text v-if="item.infoText" :text="item.infoText" size="16px" />
|
|
16
16
|
</label-container>
|
|
17
17
|
<image-container v-if="item.img">
|
|
18
18
|
<radio-image :src="item.img" />
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
v-if="infoTextMessage"
|
|
11
11
|
:text="infoTextMessage"
|
|
12
12
|
borderColor="#ccc"
|
|
13
|
-
size="
|
|
13
|
+
size="14px"
|
|
14
14
|
:alignText="infoTextAlign"
|
|
15
15
|
/>
|
|
16
16
|
</label-container>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
v-if="infoTextMessage"
|
|
47
47
|
:text="infoTextMessage"
|
|
48
48
|
borderColor="#ccc"
|
|
49
|
-
size="
|
|
49
|
+
size="14px"
|
|
50
50
|
:alignText="infoTextAlign"
|
|
51
51
|
/>
|
|
52
52
|
</label-container>
|