@eturnity/eturnity_reusable_components 1.2.24 → 1.2.25
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
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
<spinner-wrapper v-if="isLoading">
|
|
9
9
|
<spinner />
|
|
10
10
|
</spinner-wrapper>
|
|
11
|
-
<table-container
|
|
11
|
+
<table-container
|
|
12
|
+
v-else
|
|
13
|
+
:cellPaddings="cellPaddings"
|
|
14
|
+
:tableCursor="tableCursor"
|
|
15
|
+
>
|
|
12
16
|
<slot />
|
|
13
17
|
</table-container>
|
|
14
18
|
</table-wrapper>
|
|
@@ -63,7 +67,7 @@ const SpinnerWrapper = styled.div`
|
|
|
63
67
|
justify-items: center;
|
|
64
68
|
`
|
|
65
69
|
|
|
66
|
-
const containerAttrs = { cellPaddings: String }
|
|
70
|
+
const containerAttrs = { cellPaddings: String, tableCursor: String }
|
|
67
71
|
const TableContainer = styled('table', containerAttrs)`
|
|
68
72
|
width: 100%;
|
|
69
73
|
border-collapse: collapse;
|
|
@@ -82,7 +86,7 @@ const TableContainer = styled('table', containerAttrs)`
|
|
|
82
86
|
tr {
|
|
83
87
|
&:hover {
|
|
84
88
|
background-color: ${(props) => props.theme.colors.white};
|
|
85
|
-
cursor: auto;
|
|
89
|
+
cursor: ${(props) => (props.tableCursor ? props.tableCursor : 'auto')};
|
|
86
90
|
|
|
87
91
|
.arrow-container,
|
|
88
92
|
.input-placeholder,
|
|
@@ -208,7 +212,7 @@ const TableContainer = styled('table', containerAttrs)`
|
|
|
208
212
|
.text {
|
|
209
213
|
padding: 10px 15px 10px 15px;
|
|
210
214
|
color: ${(props) => props.theme.colors.black};
|
|
211
|
-
cursor: auto;
|
|
215
|
+
cursor: ${(props) => (props.tableCursor ? props.tableCursor : 'auto')};
|
|
212
216
|
}
|
|
213
217
|
|
|
214
218
|
.bold {
|
|
@@ -365,6 +369,10 @@ export default {
|
|
|
365
369
|
titleText: {
|
|
366
370
|
required: false,
|
|
367
371
|
default: null
|
|
372
|
+
},
|
|
373
|
+
tableCursor: {
|
|
374
|
+
required: false,
|
|
375
|
+
default: 'auto'
|
|
368
376
|
}
|
|
369
377
|
}
|
|
370
378
|
}
|