imbric-theme 1.1.7 → 1.1.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.
@@ -74,13 +74,13 @@ Button.propTypes = {
74
74
 
75
75
  Button.defaultProps = {
76
76
  type: 'primary',
77
- getStyles: () => { },
78
- onClick: () => { },
77
+ getStyles: () => {},
78
+ onClick: () => {},
79
79
  isInline: false,
80
80
  isFloatRight: false,
81
81
  isFloatLeft: false,
82
82
  id: '',
83
- typeButton: 'submit'
83
+ typeButton: 'submit',
84
84
  }
85
85
 
86
86
  export default withStyles(styles)(Button)
@@ -74,6 +74,9 @@ export const DynamicTable = ({
74
74
  handleChangeCheckboxDate,
75
75
  isMultiSelectFilter,
76
76
  dateRangeDefault,
77
+ linkReloadData,
78
+ isViewReload = false,
79
+ txtTootipIconReload,
77
80
  }) => {
78
81
  const [tableData, setTableData] = useState(optionsData)
79
82
  const [columnsData, setColumnsData] = useState(opColumns)
@@ -132,6 +135,32 @@ export const DynamicTable = ({
132
135
 
133
136
  return (
134
137
  <div className={getStyles('opFunction')}>
138
+ {isViewReload ? (
139
+ <>
140
+ <span
141
+ data-tip
142
+ data-for="iconReload"
143
+ onMouseEnter={handleMouseEnter}
144
+ onMouseLeave={handleMouseLeave}
145
+ >
146
+ <Icon
147
+ size="lg"
148
+ name="iconReload"
149
+ color="highlight"
150
+ background="transparent"
151
+ onClick={linkReloadData}
152
+ id="idIconReload"
153
+ />
154
+ </span>
155
+
156
+ {isToolTipMounted ? (
157
+ <ReactTooltip id="iconReload" type="error">
158
+ <span>{txtTootipIconReload}</span>
159
+ </ReactTooltip>
160
+ ) : null}
161
+ </>
162
+ ) : null}
163
+
135
164
  <div className={getStyles('opFunctionBoxTotal2')}>
136
165
  {isViewTitleTable ? (
137
166
  <>
@@ -487,6 +516,9 @@ DynamicTable.defaultProps = {
487
516
  titleHeadingTableSecundary: '',
488
517
  isMultiSelectFilter: false,
489
518
  dateRangeDefault: 'quarter',
519
+ linkReloadData: () => {},
520
+ isViewReload: false,
521
+ txtTootipIconReload: '',
490
522
  }
491
523
 
492
524
  export default withStyles(styles)(DynamicTable)
@@ -166,6 +166,7 @@ export const CardServiceDetail = ({
166
166
  <div className={getStyles('card-subcontent-inLine')}>
167
167
  <Button
168
168
  type="primary"
169
+ typeButton="button"
169
170
  onClick={onClickBtnCanRequestCallFromDriver}
170
171
  >
171
172
  Solicitar que el conductor me llame
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imbric-theme",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Components library IMBRIC",
5
5
  "private": false,
6
6
  "main": "index.js",