imbric-theme 0.3.8 → 0.3.9

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.
@@ -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>
@@ -78,7 +78,7 @@ export const Modal = ({
78
78
  {titleModal}
79
79
  </Heading>
80
80
  </div>
81
- <Container>{children}</Container>
81
+ <Container><div className={getStyles('container')}>{children}</div></Container>
82
82
  </div>
83
83
  </div>
84
84
  )
@@ -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.string,
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,
@@ -14,7 +14,7 @@ export default {
14
14
  component: DynamicSelect,
15
15
  args: {
16
16
  optionsSelect: options.optionsSelect,
17
- defaultValue: '',
17
+ defaultValue: options.optionsSelect[0],
18
18
  placeholder: 'seleccionar',
19
19
  isMulti: false,
20
20
  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={function noRefCheck() { }}
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={function noRefCheck() { }}
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imbric-theme",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Components library IMBRIC",
5
5
  "private": false,
6
6
  "main": "index.js",