imbric-theme 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- package/atoms/LinkItem/LinkItem.js +1 -1
- package/atoms/Modal/Modal.js +1 -1
- package/atoms/Modal/Modal.module.css +8 -0
- package/molecules/DynamicSelect/DynamicSelect.js +1 -2
- package/molecules/DynamicSelect/DynamicSelect.stories.js +1 -1
- package/molecules/RowTable/RowTable.js +25 -3
- package/package.json +1 -1
@@ -10,7 +10,7 @@ import Paragraph from '../Paragraph'
|
|
10
10
|
export const LinkItem = ({ children, size, color, getStyles, isHref }) => {
|
11
11
|
return (
|
12
12
|
<Link href={isHref} passHref>
|
13
|
-
<a className={getStyles('link', ['color'])}>
|
13
|
+
<a target="_blank" className={getStyles('link', ['color'])}>
|
14
14
|
<Paragraph size={size} color={color} weight="semibold" isInline>
|
15
15
|
{children}
|
16
16
|
</Paragraph>
|
package/atoms/Modal/Modal.js
CHANGED
@@ -57,11 +57,19 @@
|
|
57
57
|
max-width: 465px;
|
58
58
|
height: auto;
|
59
59
|
border-radius: var(--border-radius-sm);
|
60
|
+
/* max-height: 100%;
|
61
|
+
overflow: auto; */
|
60
62
|
}
|
61
63
|
|
62
64
|
.heading {
|
63
65
|
flex-direction: row-reverse;
|
64
66
|
}
|
67
|
+
|
68
|
+
.container {
|
69
|
+
max-height: 600px;
|
70
|
+
overflow: auto;
|
71
|
+
min-width: 100%;
|
72
|
+
}
|
65
73
|
}
|
66
74
|
|
67
75
|
@keyframes fadeInModal {
|
@@ -89,7 +89,7 @@ export const DynamicSelect = ({ getStyles, optionsSelect, defaultValue, placehol
|
|
89
89
|
|
90
90
|
DynamicSelect.propTypes = {
|
91
91
|
getStyles: PropTypes.func.isRequired,
|
92
|
-
defaultValue: PropTypes.
|
92
|
+
defaultValue: PropTypes.object,
|
93
93
|
placeholder: PropTypes.string,
|
94
94
|
isMulti: PropTypes.bool,
|
95
95
|
isClearable: PropTypes.bool,
|
@@ -103,7 +103,6 @@ DynamicSelect.propTypes = {
|
|
103
103
|
|
104
104
|
DynamicSelect.defaultProps = {
|
105
105
|
getStyles: () => { },
|
106
|
-
defaultValue: '',
|
107
106
|
placeholder: 'seleccionar',
|
108
107
|
isMulti: false,
|
109
108
|
isClearable: true,
|
@@ -9,7 +9,17 @@ import Moment from 'react-moment'
|
|
9
9
|
import Icon from '../../atoms/Icon'
|
10
10
|
import { Horizontal, Vertical } from '../../layout/Spacer/components'
|
11
11
|
|
12
|
-
export const RowTable = ({ getStyles, slice, columnsData }) => {
|
12
|
+
export const RowTable = ({ getStyles, slice, columnsData, onClickActionEdit, onClickActionSendEmail, onClickActionDelete }) => {
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
// const handleEditStaff = (e, item) => {
|
18
|
+
// console.log(item)
|
19
|
+
// console.log(e)
|
20
|
+
// }
|
21
|
+
|
22
|
+
|
13
23
|
return (
|
14
24
|
<div className={getStyles('tbl-content')}>
|
15
25
|
<table className={getStyles('table')} cellPadding="0" cellSpacing="0" border="0">
|
@@ -29,13 +39,21 @@ export const RowTable = ({ getStyles, slice, columnsData }) => {
|
|
29
39
|
<Icon
|
30
40
|
background="base"
|
31
41
|
name="settings"
|
32
|
-
onClick={
|
42
|
+
onClick={(e) => { onClickActionEdit(e, item) }}
|
43
|
+
/>
|
44
|
+
<Horizontal size="xs" />
|
45
|
+
<Icon
|
46
|
+
background="base"
|
47
|
+
name="arrowUp"
|
48
|
+
// onClick={(e) => onClickEdit(e, item)}
|
49
|
+
onClick={e => { onClickActionSendEmail(e, item) }}
|
33
50
|
/>
|
34
51
|
<Horizontal size="xs" />
|
35
52
|
<Icon
|
36
53
|
background="base"
|
37
54
|
name="trash"
|
38
|
-
onClick={
|
55
|
+
// onClick={(e) => onClickEdit(e, item)}
|
56
|
+
onClick={e => { onClickActionDelete(e, item) }}
|
39
57
|
/>
|
40
58
|
</td> :
|
41
59
|
|
@@ -79,10 +97,14 @@ export const RowTable = ({ getStyles, slice, columnsData }) => {
|
|
79
97
|
RowTable.propTypes = {
|
80
98
|
getStyles: PropTypes.func.isRequired,
|
81
99
|
type: PropTypes.oneOf(options.types),
|
100
|
+
onClickActionEdit: PropTypes.func,
|
101
|
+
onClickActionSendEmail: PropTypes.func,
|
102
|
+
onClickActionDelete: PropTypes.func
|
82
103
|
}
|
83
104
|
|
84
105
|
RowTable.defaultProps = {
|
85
106
|
getStyles: () => { },
|
107
|
+
onClickActionEdit: () => { },
|
86
108
|
}
|
87
109
|
|
88
110
|
export default withStyles(styles)(RowTable)
|