imbric-theme 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,10 +25,11 @@ export const Button = ({
25
25
  onClick,
26
26
  id,
27
27
  getStyles,
28
+ typeButton,
28
29
  }) => (
29
30
  <button
30
- id={id}
31
- type="submit"
31
+ id={id}
32
+ type={typeButton}
32
33
  disabled={isMuted}
33
34
  className={getStyles('button', ['type'], {
34
35
  'is-inline': isInline || type === 'tertiary',
@@ -68,6 +69,7 @@ Button.propTypes = {
68
69
  isFloatRight: PropTypes.bool,
69
70
  isFloatLeft: PropTypes.bool,
70
71
  id: PropTypes.string,
72
+ typeButton: PropTypes.string,
71
73
  }
72
74
 
73
75
  Button.defaultProps = {
@@ -78,6 +80,7 @@ Button.defaultProps = {
78
80
  isFloatRight: false,
79
81
  isFloatLeft: false,
80
82
  id: '',
83
+ typeButton: 'submit'
81
84
  }
82
85
 
83
86
  export default withStyles(styles)(Button)
@@ -5,10 +5,10 @@ import styles from './Label.module.css'
5
5
  import { options } from './constants'
6
6
  import withStyles from '../../hocs/withStyles'
7
7
 
8
- export const Label = ({ children, getStyles, isHint }) => {
8
+ export const Label = ({ children, getStyles, isHint, isPointer, onClick }) => {
9
9
  return (
10
10
 
11
- <label className={getStyles('label', ['color'], { 'is-hint': isHint })}>{children}</label>
11
+ <label onClick={onClick} className={getStyles('label', ['color'], { 'is-hint': isHint, 'is-pointer': isPointer })}>{children}</label>
12
12
 
13
13
  )
14
14
  }
@@ -26,6 +26,7 @@ Label.defaultProps = {
26
26
  children: ' ',
27
27
  isHint: false,
28
28
  color: 'label',
29
+ onClick: () => { },
29
30
  }
30
31
 
31
32
  export default withStyles(styles)(Label)
@@ -13,6 +13,10 @@
13
13
  font-size: 11px;
14
14
  }
15
15
 
16
+ .is-pointer {
17
+ cursor: pointer;
18
+ }
19
+
16
20
  .color-label {
17
21
  color: var(--color-brand-eastern-blue);
18
22
  }
@@ -106,6 +106,7 @@
106
106
  max-height: 700px;
107
107
  overflow: auto;
108
108
  min-width: 100%;
109
+ padding: 0px 3px;
109
110
  }
110
111
 
111
112
  .container-full {
@@ -155,7 +155,7 @@ export const DynamicTable = ({
155
155
 
156
156
  <>
157
157
 
158
- <Horizontal size="sm" />
158
+
159
159
  <div className={getStyles('opFunctionBox3')}>
160
160
 
161
161
  <Button
@@ -176,7 +176,6 @@ export const DynamicTable = ({
176
176
  {isViewLeftBtnSecondary ? (
177
177
 
178
178
  <>
179
-
180
179
  <div className={getStyles('opFunctionBox3')}>
181
180
 
182
181
  <Button
@@ -188,6 +187,9 @@ export const DynamicTable = ({
188
187
  </Button>
189
188
 
190
189
  </div>
190
+
191
+ <Horizontal size="sm" />
192
+
191
193
  </>
192
194
  ) : null}
193
195
 
@@ -195,6 +197,8 @@ export const DynamicTable = ({
195
197
 
196
198
  <>
197
199
 
200
+ <Horizontal size="sm" />
201
+
198
202
  <div className={getStyles('opFunctionBox3')}>
199
203
 
200
204
  <Button
@@ -48,5 +48,5 @@
48
48
  max-width: 80px;
49
49
  min-width: 80px;
50
50
  width: 80px;
51
- display: inline-table;
51
+ /* display: inline-table; */
52
52
  }
@@ -44,6 +44,7 @@ export const RowTable = ({
44
44
  txtTootipIconLink,
45
45
  txtTootipIconClone,
46
46
  txtTootipIconCheckbox,
47
+ onClickCheckboxRow
47
48
  }) => {
48
49
 
49
50
 
@@ -201,8 +202,8 @@ export const RowTable = ({
201
202
  id={'idToggle' + item.id}
202
203
  checked={item.isSelected}
203
204
  label=""
204
- disabled={[itemTd.disabled]}
205
- onChangeCheckbox={(e) => { handleClickCheckbox(e, item) }}
205
+ disabled={itemTd.disabled}
206
+ onChangeCheckbox={(e) => { handleClickCheckbox(e, item), onClickCheckboxRow(e, item) }}
206
207
  />
207
208
 
208
209
  </td>
@@ -553,68 +554,6 @@ export const RowTable = ({
553
554
 
554
555
  : null}
555
556
 
556
- {itemTd.viewTrash ?
557
-
558
- item.viewTrash === undefined ?
559
-
560
- <>
561
- <span
562
- data-tip
563
- data-for='trash'
564
- onMouseEnter={handleMouseEnter}
565
- onMouseLeave={handleMouseLeave}
566
- >
567
- <>
568
- <Icon
569
- background="base"
570
- name="trash"
571
- onClick={e => { onClickActionDelete(e, item) }}
572
- />
573
- <Horizontal size="xs" />
574
- </>
575
-
576
- </span>
577
-
578
- {isToolTipMounted ? (
579
- <ReactTooltip id='trash' type='error'>
580
- <span>{txtTootipIconDelete}</span>
581
- </ReactTooltip>
582
- ) : null}
583
- </>
584
-
585
- :
586
-
587
- item.viewTrash ?
588
-
589
- <>
590
- <span
591
- data-tip
592
- data-for='trash'
593
- onMouseEnter={handleMouseEnter}
594
- onMouseLeave={handleMouseLeave}
595
- >
596
- <>
597
- <Icon
598
- background="base"
599
- name="trash"
600
- onClick={e => { onClickActionDelete(e, item) }}
601
- />
602
- <Horizontal size="xs" />
603
- </>
604
-
605
- </span>
606
-
607
- {isToolTipMounted ? (
608
- <ReactTooltip id='trash' type='error'>
609
- <span>{txtTootipIconDelete}</span>
610
- </ReactTooltip>
611
- ) : null}
612
- </>
613
-
614
- : null
615
-
616
- : null}
617
-
618
557
 
619
558
  {itemTd.viewLink ?
620
559
 
@@ -944,7 +883,67 @@ export const RowTable = ({
944
883
  : null}
945
884
 
946
885
 
886
+ {itemTd.viewTrash ?
887
+
888
+ item.viewTrash === undefined ?
889
+
890
+ <>
891
+ <span
892
+ data-tip
893
+ data-for='trash'
894
+ onMouseEnter={handleMouseEnter}
895
+ onMouseLeave={handleMouseLeave}
896
+ >
897
+ <>
898
+ <Icon
899
+ background="base"
900
+ name="trash"
901
+ onClick={e => { onClickActionDelete(e, item) }}
902
+ />
903
+ <Horizontal size="xs" />
904
+ </>
905
+
906
+ </span>
907
+
908
+ {isToolTipMounted ? (
909
+ <ReactTooltip id='trash' type='error'>
910
+ <span>{txtTootipIconDelete}</span>
911
+ </ReactTooltip>
912
+ ) : null}
913
+ </>
914
+
915
+ :
947
916
 
917
+ item.viewTrash ?
918
+
919
+ <>
920
+ <span
921
+ data-tip
922
+ data-for='trash'
923
+ onMouseEnter={handleMouseEnter}
924
+ onMouseLeave={handleMouseLeave}
925
+ >
926
+ <>
927
+ <Icon
928
+ background="base"
929
+ name="trash"
930
+ onClick={e => { onClickActionDelete(e, item) }}
931
+ />
932
+ <Horizontal size="xs" />
933
+ </>
934
+
935
+ </span>
936
+
937
+ {isToolTipMounted ? (
938
+ <ReactTooltip id='trash' type='error'>
939
+ <span>{txtTootipIconDelete}</span>
940
+ </ReactTooltip>
941
+ ) : null}
942
+ </>
943
+
944
+ : null
945
+
946
+ : null}
948
947
 
949
948
 
950
949
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imbric-theme",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Components library IMBRIC",
5
5
  "private": false,
6
6
  "main": "index.js",