@eturnity/eturnity_reusable_components 8.10.1-EPDM-13568.1 → 8.10.1-EPDM-13568.3
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
@@ -158,8 +158,7 @@
|
|
158
158
|
color && `${fillType}: ${theme.colors[color] || color};`}
|
159
159
|
}
|
160
160
|
&:hover svg path:not(.fix) {
|
161
|
-
${({ theme
|
162
|
-
hoveredColor && `fill: ${theme.colors[hoveredColor] || hoveredColor};`}
|
161
|
+
${({ theme }) => `fill: ${theme.semanticColors.purple[500]};`}
|
163
162
|
}
|
164
163
|
&:hover + div {
|
165
164
|
background-color: ${(props) => props.hoveredColor};
|
@@ -8,11 +8,12 @@
|
|
8
8
|
>
|
9
9
|
<ModalContainer
|
10
10
|
v-if="isOpen"
|
11
|
+
:is-loading="isLoading"
|
11
12
|
:overflow="overflowRule"
|
12
13
|
@click="onClickModalContainer"
|
13
14
|
>
|
14
15
|
<Spinner v-if="isLoading" :limited-to-modal="true" size="50px" />
|
15
|
-
<ContentContainer
|
16
|
+
<ContentContainer v-if="!isLoading">
|
16
17
|
<slot></slot>
|
17
18
|
</ContentContainer>
|
18
19
|
<CloseButton v-if="!hideClose" class="close" @click="onCloseModal()" />
|
@@ -62,7 +63,7 @@
|
|
62
63
|
}
|
63
64
|
`
|
64
65
|
|
65
|
-
const modalContainerAttrs = { overflow: String }
|
66
|
+
const modalContainerAttrs = { overflow: String, isLoading: Boolean }
|
66
67
|
const ModalContainer = styled('div', modalContainerAttrs)`
|
67
68
|
align-self: center;
|
68
69
|
justify-self: center;
|
@@ -74,8 +75,8 @@
|
|
74
75
|
overflow: ${(props) => props.overflow};
|
75
76
|
max-width: 95%;
|
76
77
|
max-height: 95%;
|
77
|
-
min-width: 100px;
|
78
|
-
min-height: 100px;
|
78
|
+
min-width: ${(props) => (props.isLoading ? '400px' : '100px')};
|
79
|
+
min-height: ${(props) => (props.isLoading ? '500px' : '100px')};
|
79
80
|
|
80
81
|
::-webkit-scrollbar {
|
81
82
|
width: 0.3em;
|
@@ -9,6 +9,7 @@
|
|
9
9
|
v-if="!item.children"
|
10
10
|
:key="idx"
|
11
11
|
:data-id="`sub_menu_settings_${item.key}`"
|
12
|
+
:fill-type="item.icon === 'free_technology' ? 'stroke' : 'fill'"
|
12
13
|
:is-active="activeTab === item.key || activeParentTab === item.key"
|
13
14
|
@click="$emit('tab-click', { activeKey: item.key })"
|
14
15
|
>
|
@@ -87,7 +88,7 @@
|
|
87
88
|
@click="$emit('on-logout')"
|
88
89
|
>
|
89
90
|
<RotateIcon
|
90
|
-
:color="theme.
|
91
|
+
:color="theme.semanticColors.teal[800]"
|
91
92
|
cursor="pointer"
|
92
93
|
name="initial_situation"
|
93
94
|
size="18px"
|
@@ -119,7 +120,7 @@
|
|
119
120
|
grid-gap: 6px;
|
120
121
|
`
|
121
122
|
|
122
|
-
const IconAttrs = { isActive: Boolean, isButton: Boolean }
|
123
|
+
const IconAttrs = { isActive: Boolean, isButton: Boolean, fillType: String }
|
123
124
|
|
124
125
|
const ListItem = styled('div', IconAttrs)`
|
125
126
|
display: grid;
|
@@ -131,9 +132,18 @@
|
|
131
132
|
border-radius: 4px;
|
132
133
|
background-color: ${(props) =>
|
133
134
|
props.isActive ? props.theme.semanticColors.purple[50] : ''};
|
135
|
+
color: ${(props) =>
|
136
|
+
props.isActive
|
137
|
+
? props.theme.semanticColors.purple[500]
|
138
|
+
: props.theme.semanticColors.teal[800]};
|
134
139
|
|
135
140
|
:hover {
|
136
|
-
background-color: ${(props) => props.theme.semanticColors.purple[
|
141
|
+
background-color: ${(props) => props.theme.semanticColors.purple[100]};
|
142
|
+
color: ${(props) => props.theme.semanticColors.purple[500]};
|
143
|
+
svg path:not(.fix) {
|
144
|
+
${(props) => props.fillType}: ${(props) =>
|
145
|
+
props.theme.semanticColors.purple[500]};
|
146
|
+
}
|
137
147
|
}
|
138
148
|
`
|
139
149
|
|
@@ -141,10 +151,6 @@
|
|
141
151
|
const ListText = styled('div', ListTextAttrs)`
|
142
152
|
font-size: 14px;
|
143
153
|
font-weight: 400;
|
144
|
-
color: ${(props) =>
|
145
|
-
props.isActive
|
146
|
-
? props.theme.semanticColors.purple[500]
|
147
|
-
: props.theme.semanticColors.teal[800]};
|
148
154
|
`
|
149
155
|
|
150
156
|
const IconContainer = styled('div', IconAttrs)`
|
@@ -160,8 +166,8 @@
|
|
160
166
|
`
|
161
167
|
cursor: pointer;
|
162
168
|
&:hover {
|
163
|
-
background-color: ${(props) =>
|
164
|
-
|
169
|
+
background-color: ${(props) =>
|
170
|
+
props.theme.semanticColors.purple[100]};
|
165
171
|
`}
|
166
172
|
`
|
167
173
|
|
@@ -182,7 +188,7 @@
|
|
182
188
|
const AppVersion = styled.p`
|
183
189
|
font-size: 11px;
|
184
190
|
line-height: 13px;
|
185
|
-
color: ${(props) => props.theme.
|
191
|
+
color: ${(props) => props.theme.semanticColors.teal[800]};
|
186
192
|
margin-right: 6px;
|
187
193
|
`
|
188
194
|
|
@@ -206,7 +212,8 @@
|
|
206
212
|
props.isActive ? props.theme.semanticColors.purple[50] : ''};
|
207
213
|
|
208
214
|
&:hover {
|
209
|
-
background: ${(props) => props.theme.semanticColors.purple[
|
215
|
+
background: ${(props) => props.theme.semanticColors.purple[100]};
|
216
|
+
color: ${(props) => props.theme.semanticColors.purple[500]} !important;
|
210
217
|
}
|
211
218
|
`
|
212
219
|
|
@@ -222,14 +229,18 @@
|
|
222
229
|
background: ${(props) =>
|
223
230
|
props.isActive ? props.theme.semanticColors.purple[50] : ''};
|
224
231
|
|
225
|
-
&:hover {
|
226
|
-
background: ${(props) => props.theme.semanticColors.purple[50]};
|
227
|
-
}
|
228
|
-
|
229
232
|
div {
|
230
233
|
color: ${(props) =>
|
231
234
|
props.isActive ? props.theme.semanticColors.purple[500] : ''};
|
232
235
|
}
|
236
|
+
|
237
|
+
&:hover {
|
238
|
+
background: ${(props) => props.theme.semanticColors.purple[100]};
|
239
|
+
color: ${(props) => props.theme.semanticColors.purple[500]};
|
240
|
+
svg path:not(.fix) {
|
241
|
+
fill: ${(props) => props.theme.semanticColors.purple[500]};
|
242
|
+
}
|
243
|
+
}
|
233
244
|
`
|
234
245
|
|
235
246
|
const CollapseWrapper = styled.div`
|