@eturnity/eturnity_reusable_components 7.35.2-EPDM-11386.1 → 7.35.2-EPDM-11386.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": "7.35.2-EPDM-11386.1",
3
+ "version": "7.35.2-EPDM-11386.2",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -18,6 +18,7 @@
18
18
  :align-arrow="alignArrow"
19
19
  :half-computed-text-info-width="halfComputedTextInfoWidth"
20
20
  :icon-size="size"
21
+ :info-position="infoPosition"
21
22
  :max-width="maxWidth"
22
23
  :width="width"
23
24
  ><slot></slot>
@@ -44,10 +45,14 @@
44
45
  alignArrow: String,
45
46
  width: String,
46
47
  halfComputedTextInfoWidth: Number,
48
+ infoPosition: String,
47
49
  }
48
50
  const TextOverlay = styled('div', textAttrs)`
49
51
  position: absolute;
50
- top: ${(props) => 'calc(' + props.iconSize + ' + 15px)'};
52
+ ${(props) =>
53
+ props.infoPosition == 'top'
54
+ ? 'bottom : calc(' + props.iconSize + ' + 15px)'
55
+ : 'top : calc(' + props.iconSize + ' + 15px)'};
51
56
  ${(props) =>
52
57
  props.alignArrow === 'left'
53
58
  ? 'left: calc(' + props.iconSize + ' /2 - 18px)'
@@ -63,14 +68,17 @@
63
68
  font-weight: 400;
64
69
  line-height: normal;
65
70
  border-radius: 4px;
66
- z-index: 99;
71
+ z-index: 999;
67
72
  color: ${(props) => props.theme.colors.white};
68
73
 
69
74
  :before {
70
75
  content: '';
71
76
  background-color: ${(props) => props.theme.colors.black};
72
77
  position: absolute;
73
- top: 2px;
78
+
79
+ ${(props) =>
80
+ props.infoPosition == 'top' ? 'bottom : -10px' : 'top: 2px'};
81
+
74
82
  ${(props) =>
75
83
  props.alignArrow === 'left'
76
84
  ? 'left:40px;'
@@ -119,6 +127,10 @@
119
127
  required: false,
120
128
  default: '14px',
121
129
  },
130
+ infoPosition: {
131
+ required: false,
132
+ default: 'bottom',
133
+ },
122
134
  alignArrow: {
123
135
  required: false,
124
136
  default: 'center',