@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "1.2.19-dev03.0",
3
+ "version": "1.2.19-dev03.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
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="10" alignArrow="right" text="infoText ceci est le text"></info-text>
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="12" alignArrow="center" text="infoText ceci est le text">This is the tooltip text</info-text>
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 + 'px'" name="info" :color="iconColor" />
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:Number, borderColor: String, alignArrow:String, alignText: String, width:String,halfComputedTextInfoWidth:Number }
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) => (parseInt(props.iconSize) + 15)}px;
46
- ${(props) => (props.alignArrow === 'left' ? 'left: '+((props.iconSize/2)-18)+'px;' :
47
- props.alignArrow === 'center' ? 'left: calc((-'+props.width+' + '+props.iconSize+'px)/2 - 7px);':
48
- 'right: '+((props.iconSize/2)-17)+'px;')};
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: Number, borderColor: String }
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}px;
82
+ height: ${(props) => props.size};
81
83
  `
82
84
  const IconImg = styled('div', iconAttrs)`
83
85
  cursor: pointer;
84
- height: ${(props) => props.size}px;
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: '14'
112
+ default: '14px'
111
113
  },
112
114
  alignText: {
113
115
  required: false,
@@ -8,7 +8,7 @@
8
8
  v-if="labelInfoText"
9
9
  :text="labelInfoText"
10
10
  borderColor="#ccc"
11
- :size="14"
11
+ size="14px"
12
12
  :alignText="labelInfoAlign"
13
13
  />
14
14
  </label-wrapper>
@@ -10,7 +10,7 @@
10
10
  v-if="infoTextMessage"
11
11
  :text="infoTextMessage"
12
12
  borderColor="#ccc"
13
- :size="fontSize ? fontSize : '16'"
13
+ :size="fontSize ? fontSize : '16px'"
14
14
  :alignText="infoTextAlign"
15
15
  />
16
16
  </label-wrapper>
@@ -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="16" />
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="16"
13
+ size="16px"
14
14
  :alignText="infoTextAlign"
15
15
  />
16
16
  </label-wrapper>
@@ -10,7 +10,7 @@
10
10
  v-if="infoTextMessage"
11
11
  :text="infoTextMessage"
12
12
  borderColor="#ccc"
13
- size="14"
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="14"
49
+ size="14px"
50
50
  :alignText="infoTextAlign"
51
51
  />
52
52
  </label-container>
@@ -6,7 +6,7 @@
6
6
  <info-text
7
7
  :text="infoText"
8
8
  v-if="!!infoText"
9
- size="14"
9
+ size="14px"
10
10
  borderColor="#ccc"
11
11
  :alignText="alignInfoText"
12
12
  />