imbric-theme 0.7.3 → 0.7.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.
@@ -78,12 +78,12 @@ export const DynamicSelect = ({
|
|
78
78
|
whiteSpace: "nowrap",
|
79
79
|
overflow: "hidden",
|
80
80
|
// display: "inline-grid"
|
81
|
-
maxHeight: "38px",
|
81
|
+
// maxHeight: "38px",
|
82
82
|
}),
|
83
83
|
|
84
84
|
container: (base) => ({
|
85
85
|
...base,
|
86
|
-
width: "max-content",
|
86
|
+
// width: "max-content",
|
87
87
|
minWidth: "100%",
|
88
88
|
}),
|
89
89
|
|
@@ -7,7 +7,7 @@ import withStyles from '../../hocs/withStyles'
|
|
7
7
|
import DynamicSelect from '../../molecules/DynamicSelect'
|
8
8
|
|
9
9
|
|
10
|
-
export const FooterTable = ({ getStyles, range, setPage, setDataPage, page, slice, placeholderDinamicSelect, handleResultsForPage }) => {
|
10
|
+
export const FooterTable = ({ getStyles, range, setPage, setDataPage, page, slice, placeholderDinamicSelect, handleResultsForPage, defaultValueSelect }) => {
|
11
11
|
useEffect(() => {
|
12
12
|
if (slice.length < 1 && page !== 1) {
|
13
13
|
setPage(page - 1);
|
@@ -22,32 +22,32 @@ export const FooterTable = ({ getStyles, range, setPage, setDataPage, page, slic
|
|
22
22
|
{range.map((el, index) => (
|
23
23
|
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
25
|
+
<button
|
26
|
+
key={'footer' + index}
|
27
|
+
className={`${styles.button} ${page === el ? styles.activeButton : styles.inactiveButton
|
28
|
+
}`}
|
29
|
+
onClick={() => { setPage(el); setDataPage(el) }}
|
30
30
|
|
31
|
-
|
31
|
+
onChange={item => { handleSelectRange(item); onChangeRange(item); }}
|
32
|
+
|
33
|
+
>
|
34
|
+
{el}
|
35
|
+
</button>
|
32
36
|
|
33
|
-
>
|
34
|
-
{el}
|
35
|
-
</button>
|
36
37
|
|
37
38
|
|
38
|
-
|
39
39
|
|
40
40
|
))}
|
41
41
|
</div>
|
42
42
|
|
43
43
|
<DynamicSelect
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
44
|
+
isInline
|
45
|
+
onChange={handleResultsForPage}
|
46
|
+
optionsSelect={options.opResultsForPage}
|
47
|
+
placeholder={placeholderDinamicSelect}
|
48
|
+
isClearable={false}
|
49
|
+
defaultValue={defaultValueSelect}
|
50
|
+
/>
|
51
51
|
|
52
52
|
</div>
|
53
53
|
|
@@ -60,7 +60,8 @@ FooterTable.propTypes = {
|
|
60
60
|
getStyles: PropTypes.func.isRequired,
|
61
61
|
setDataPage: PropTypes.func,
|
62
62
|
placeholderDinamicSelect: PropTypes.string,
|
63
|
-
handleResultsForPage: PropTypes.func
|
63
|
+
handleResultsForPage: PropTypes.func,
|
64
|
+
defaultValueSelect: PropTypes.any
|
64
65
|
// type: PropTypes.oneOf(options.types),
|
65
66
|
}
|
66
67
|
|
@@ -68,7 +69,8 @@ FooterTable.defaultProps = {
|
|
68
69
|
getStyles: () => { },
|
69
70
|
setDataPage: () => { },
|
70
71
|
handleResultsForPage: () => { },
|
71
|
-
placeholderDinamicSelect: 'resultados por pagina'
|
72
|
+
placeholderDinamicSelect: 'resultados por pagina',
|
73
|
+
defaultValueSelect: { value: 10, label: '10' }
|
72
74
|
}
|
73
75
|
|
74
76
|
export default withStyles(styles)(FooterTable)
|
@@ -103,7 +103,7 @@ export const RowTable = ({
|
|
103
103
|
<tbody>
|
104
104
|
{slice.map((item, index) => (
|
105
105
|
|
106
|
-
<tr style={{ background: item.colorRow }} className={getStyles({ 'tr-content': isClickRow })} onClick={(e) => { onClickRow(e, item) }} key={index}>
|
106
|
+
<tr style={{ background: item.colorRow }} className={getStyles({ 'tr-content': isClickRow }, 'tr')} onClick={(e) => { onClickRow(e, item) }} key={index}>
|
107
107
|
|
108
108
|
{columnsData.map((itemTd, indexTd) => (
|
109
109
|
itemTd.activeView ?
|
@@ -4,6 +4,11 @@
|
|
4
4
|
|
5
5
|
}
|
6
6
|
|
7
|
+
.tr {
|
8
|
+
/* border: 1px solid rgba(0, 0, 0, 0.1); */
|
9
|
+
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
|
10
|
+
}
|
11
|
+
|
7
12
|
.tbl-content {
|
8
13
|
height: max-content;
|
9
14
|
overflow-x: auto;
|
@@ -18,7 +23,7 @@
|
|
18
23
|
font-weight: 300;
|
19
24
|
font-size: 12px;
|
20
25
|
color: var(--color-font-base);
|
21
|
-
border-bottom: solid 1px rgba(0, 0, 0, 0.1);
|
26
|
+
/* border-bottom: solid 1px rgba(0, 0, 0, 0.1); */
|
22
27
|
overflow: hidden;
|
23
28
|
text-overflow: ellipsis;
|
24
29
|
/* white-space: nowrap; */
|