@eturnity/eturnity_reusable_components 7.20.0-EPDM-10528.0 → 7.20.0-EPDM-10528.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
@@ -9,6 +9,7 @@
|
|
9
9
|
:hoveredBackgroundColor="hoveredBackgroundColor"
|
10
10
|
:isHovered="isHovered"
|
11
11
|
:data-id="dataId"
|
12
|
+
:noCursor="noCursor"
|
12
13
|
>
|
13
14
|
<icon
|
14
15
|
:disabled="disabled"
|
@@ -29,6 +30,9 @@
|
|
29
30
|
borderRadius="1px"
|
30
31
|
/>
|
31
32
|
</caret>
|
33
|
+
<lockContainer v-if="hasLock">
|
34
|
+
<icon size="9px" name="lock" color="yellow" />
|
35
|
+
</lockContainer>
|
32
36
|
</Wrapper>
|
33
37
|
</template>
|
34
38
|
|
@@ -52,8 +56,14 @@ const wrapperAttrs = {
|
|
52
56
|
size: String,
|
53
57
|
backgroundColor: String,
|
54
58
|
hoveredBackgroundColor: String,
|
55
|
-
hasBorder: Boolean
|
59
|
+
hasBorder: Boolean,
|
60
|
+
noCursor: Boolean
|
56
61
|
}
|
62
|
+
const lockContainer = styled.div`
|
63
|
+
position: absolute;
|
64
|
+
bottom: 6px;
|
65
|
+
right: 6px;
|
66
|
+
`
|
57
67
|
const Wrapper = styled('div', wrapperAttrs)`
|
58
68
|
position: relative;
|
59
69
|
display: inline-flex;
|
@@ -65,7 +75,8 @@ const Wrapper = styled('div', wrapperAttrs)`
|
|
65
75
|
: ''};
|
66
76
|
justify-content: center;
|
67
77
|
align-items: center;
|
68
|
-
cursor: ${(props) =>
|
78
|
+
cursor: ${(props) =>
|
79
|
+
props.noCursor ? 'auto' : props.disabled ? 'not-allowed' : 'pointer'};
|
69
80
|
background-color: ${(props) =>
|
70
81
|
props.theme.colors[props.backgroundColor] || props.backgroundColor};
|
71
82
|
border-radius: ${(props) => props.borderRadius};
|
@@ -93,7 +104,8 @@ export default {
|
|
93
104
|
components: {
|
94
105
|
Wrapper,
|
95
106
|
icon,
|
96
|
-
caret
|
107
|
+
caret,
|
108
|
+
lockContainer
|
97
109
|
},
|
98
110
|
props: {
|
99
111
|
disabled: {
|
@@ -147,6 +159,14 @@ export default {
|
|
147
159
|
isStriked: {
|
148
160
|
required: false,
|
149
161
|
default: false
|
162
|
+
},
|
163
|
+
noCursor: {
|
164
|
+
required: false,
|
165
|
+
default: false
|
166
|
+
},
|
167
|
+
hasLock: {
|
168
|
+
required: false,
|
169
|
+
default: false
|
150
170
|
}
|
151
171
|
}
|
152
172
|
}
|