@eturnity/eturnity_reusable_components 8.16.9-SLD.4 → 8.16.9-SLD.5
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
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path class='isStrokePath' d="M2.1068 13.2607L2.95525 10.7154C2.97979 10.6418 3.02115 10.5748 3.07603 10.52L11.5353 2.06066C11.7306 1.8654 12.0472 1.8654 12.2424 2.06066L13.9393 3.75756C14.1346 3.95282 14.1346 4.2694 13.9393 4.46466L5.48004 12.924C5.42515 12.9789 5.35824 13.0202 5.2846 13.0448L2.73925 13.8932C2.34837 14.0235 1.9765 13.6516 2.1068 13.2607Z" stroke="lime"/>
|
3
|
+
</svg>
|
@@ -4,6 +4,7 @@
|
|
4
4
|
:app-theme="appTheme"
|
5
5
|
:button-size="buttonSize"
|
6
6
|
:custom-color="customColor"
|
7
|
+
:height="height"
|
7
8
|
:is-active="isActive"
|
8
9
|
:is-disabled="isDisabled"
|
9
10
|
:min-width="minWidth"
|
@@ -13,6 +14,7 @@
|
|
13
14
|
<IconContainer
|
14
15
|
:app-theme="appTheme"
|
15
16
|
:button-size="buttonSize"
|
17
|
+
:height="height"
|
16
18
|
:type="type"
|
17
19
|
:variant="variant"
|
18
20
|
>
|
@@ -30,7 +32,7 @@
|
|
30
32
|
size="14px"
|
31
33
|
/>
|
32
34
|
</IconContainer>
|
33
|
-
<ButtonContainer :button-size="buttonSize">
|
35
|
+
<ButtonContainer :button-size="buttonSize" :height="height">
|
34
36
|
{{ text }}
|
35
37
|
</ButtonContainer>
|
36
38
|
</ButtonWrapper>
|
@@ -64,9 +66,11 @@
|
|
64
66
|
variant: String,
|
65
67
|
appTheme: String,
|
66
68
|
isActive: Boolean,
|
69
|
+
height: String,
|
67
70
|
}
|
68
71
|
const ButtonWrapper = styled('div', ButtonAttrs)`
|
69
72
|
display: grid;
|
73
|
+
height: ${({ height }) => height};
|
70
74
|
grid-template-columns: auto 1fr;
|
71
75
|
font-size: ${(props) =>
|
72
76
|
props.theme?.mainButton?.size?.[props.buttonSize]?.fontSize};
|
@@ -128,9 +132,11 @@
|
|
128
132
|
|
129
133
|
const ButtonContainerAttrs = {
|
130
134
|
buttonSize: String,
|
135
|
+
height: String,
|
131
136
|
}
|
132
137
|
const ButtonContainer = styled('div', ButtonContainerAttrs)`
|
133
138
|
display: flex;
|
139
|
+
height: ${({ height }) => height};
|
134
140
|
align-items: center;
|
135
141
|
justify-content: center;
|
136
142
|
padding: ${(props) =>
|
@@ -143,9 +149,11 @@
|
|
143
149
|
appTheme: String,
|
144
150
|
type: String,
|
145
151
|
variant: String,
|
152
|
+
height: String,
|
146
153
|
}
|
147
154
|
const IconContainer = styled('div', IconContainerAttrs)`
|
148
155
|
display: grid;
|
156
|
+
height: ${({ height }) => height};
|
149
157
|
align-items: center;
|
150
158
|
justify-items: center;
|
151
159
|
width: ${(props) =>
|
@@ -236,6 +244,10 @@
|
|
236
244
|
type: Boolean,
|
237
245
|
default: false,
|
238
246
|
},
|
247
|
+
height: {
|
248
|
+
type: String,
|
249
|
+
default: 'auto',
|
250
|
+
},
|
239
251
|
},
|
240
252
|
data() {
|
241
253
|
return {
|
@@ -84,7 +84,6 @@
|
|
84
84
|
const OptionIconContainer = styled.div`
|
85
85
|
display: flex;
|
86
86
|
align-items: center;
|
87
|
-
margin-right: 5px;
|
88
87
|
`
|
89
88
|
const Container = styled.div``
|
90
89
|
|
@@ -156,6 +155,7 @@
|
|
156
155
|
margin-right: -1px;
|
157
156
|
transition: all 0.1s ease-in-out;
|
158
157
|
overflow: hidden;
|
158
|
+
gap: 5px;
|
159
159
|
& :hover {
|
160
160
|
cursor: pointer;
|
161
161
|
}
|