imbric-theme 0.6.4 → 0.6.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.
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
+ import Link from 'next/link'
3
4
 
4
5
  import styles from './Picture.module.css'
5
6
  import withStyles from '../../hocs/withStyles'
@@ -11,6 +12,7 @@ export const Picture = ({
11
12
  height,
12
13
  isRounded,
13
14
  withBorder,
15
+ isHref,
14
16
  }) => (
15
17
  <picture
16
18
  className={getStyles('picture', {
@@ -18,7 +20,10 @@ export const Picture = ({
18
20
  'with-border': withBorder,
19
21
  })}
20
22
  >
21
- <img src={src} style={{ height, maxWidth: width }} />
23
+ <Link href={isHref} passHref>
24
+ <img src={src} style={{ height, maxWidth: width }} />
25
+ </Link>
26
+
22
27
  </picture>
23
28
  )
24
29
 
@@ -29,12 +34,14 @@ Picture.propTypes = {
29
34
  height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
30
35
  isRounded: PropTypes.bool,
31
36
  withBorder: PropTypes.bool,
37
+ isHref: PropTypes.any
32
38
  }
33
39
 
34
40
  Picture.defaultProps = {
35
41
  height: 'auto',
36
42
  withBorder: false,
37
- getStyles: () => {},
43
+ getStyles: () => { },
44
+ isHref: ''
38
45
  }
39
46
 
40
47
  export default withStyles(styles)(Picture)
@@ -11,7 +11,7 @@ import Icon from '../../atoms/Icon'
11
11
  import Divider from '../../atoms/Divider'
12
12
  import ItemMenu from '../../molecules/ItemMenu/ItemMenu'
13
13
 
14
- export const Sidebar = ({ getStyles, menuCollapseView, options }) => {
14
+ export const Sidebar = ({ getStyles, menuCollapseView, options, isHrefLogo }) => {
15
15
 
16
16
 
17
17
  return (
@@ -30,7 +30,7 @@ export const Sidebar = ({ getStyles, menuCollapseView, options }) => {
30
30
 
31
31
  <div className={getStyles('logotext')}>
32
32
  {/* small and big change using menuCollapseView state */}
33
- {menuCollapseView ? <Picture src="/static/logotipoS.svg" width={19}></Picture> : <Picture src="/static/logotipo.svg" width={100}></Picture>}
33
+ {menuCollapseView ? <Picture isHref={isHrefLogo} src="./static/logotipoS.svg" width={19}></Picture> : <Picture isHref={isHrefLogo} src="./static/logotipo.svg" width={100}></Picture>}
34
34
  </div>
35
35
  {/* <div className={getStyles('closemenu')}>
36
36
 
@@ -69,7 +69,7 @@ export const Sidebar = ({ getStyles, menuCollapseView, options }) => {
69
69
  >
70
70
  {item.text}
71
71
  </ItemMenu>
72
-
72
+
73
73
  : null
74
74
 
75
75
  ))}
@@ -93,6 +93,7 @@ export const Sidebar = ({ getStyles, menuCollapseView, options }) => {
93
93
 
94
94
  Sidebar.propTypes = {
95
95
  getStyles: PropTypes.func.isRequired,
96
+ isHrefLogo: PropTypes.any
96
97
  // options: PropTypes.arrayOf(
97
98
  // PropTypes.shape({
98
99
  // text: PropTypes.string,
@@ -104,6 +105,7 @@ Sidebar.propTypes = {
104
105
  Sidebar.defaultProps = {
105
106
  getStyles: () => { },
106
107
  menuCollapseView: false,
108
+ isHrefLogo: ''
107
109
  }
108
110
 
109
111
  export default withStyles(styles)(Sidebar)
@@ -1,5 +1,5 @@
1
1
  .column-table {
2
- padding: 12px 15px;
2
+ padding: 12px 12px;
3
3
  text-align: left;
4
4
  color: var(--color-font-base);
5
5
  display: table-cell;
@@ -728,7 +728,32 @@ export const RowTable = ({
728
728
  ?
729
729
  <td className={getStyles('td')} key={[itemTd.accessor]}>{Number(item[itemTd.accessor]).toFixed(2).toString().replace(/\./g, ',')} {itemTd.characterExtra}</td>
730
730
  :
731
- <td className={getStyles('td')} key={[itemTd.accessor]}>{item[itemTd.accessor]}</td>
731
+
732
+ <>
733
+
734
+ <td
735
+ data-tip
736
+ data-for={'td' + [itemTd.accessor] + index}
737
+ onMouseEnter={handleMouseEnter}
738
+ onMouseLeave={handleMouseLeave}
739
+ className={getStyles('td')}
740
+ key={[itemTd.accessor]}
741
+ >
742
+ {item[itemTd.accessor]}
743
+
744
+
745
+ {isToolTipMounted ? (
746
+ <ReactTooltip id={'td' + [itemTd.accessor] + index} type='info'>
747
+ <span>{item[itemTd.accessor]}</span>
748
+ </ReactTooltip>
749
+ ) : null}
750
+
751
+ </td>
752
+
753
+ </>
754
+
755
+
756
+
732
757
 
733
758
  ) : null
734
759
  ))}
@@ -12,13 +12,16 @@
12
12
  }
13
13
 
14
14
  .td {
15
- padding: 15px;
15
+ padding: 6px 0px 6px 15px;
16
16
  text-align: left;
17
17
  vertical-align: middle;
18
18
  font-weight: 300;
19
19
  font-size: 12px;
20
20
  color: var(--color-font-base);
21
21
  border-bottom: solid 1px rgba(0, 0, 0, 0.1);
22
+ overflow: hidden;
23
+ text-overflow: ellipsis;
24
+ /* white-space: nowrap; */
22
25
  }
23
26
 
24
27
  .tdacction {
@@ -29,6 +32,13 @@
29
32
 
30
33
  .tdacctionIcons {
31
34
  text-align: right;
35
+ width: max-content;
36
+ inline-size: max-content;
37
+ height: max-content;
38
+ block-size: max-content;
39
+ display: block;
40
+ float: right;
41
+ min-width: 100%
32
42
  }
33
43
 
34
44
  .tr-content:hover {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imbric-theme",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Components library IMBRIC",
5
5
  "private": false,
6
6
  "main": "index.js",