imbric-theme 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- package/atoms/LinkItem/LinkItem.js +3 -3
- package/layout/Navbar/Navbar.js +8 -4
- package/layout/Sidebar/Sidebar.js +1 -1
- package/molecules/DynamicSelect/DynamicSelect.js +1 -1
- package/molecules/FooterTable/FooterTable.js +3 -3
- package/molecules/InputAutocomplete/InputAutocomplete.js +3 -3
- package/molecules/RowTable/RowTable.js +1 -1
- package/package.json +1 -1
@@ -5,15 +5,15 @@ import Link from 'next/link'
|
|
5
5
|
import styles from './LinkItem.module.css'
|
6
6
|
import { options } from './constants'
|
7
7
|
import withStyles from '../../hocs/withStyles'
|
8
|
-
import Paragraph from '../Paragraph'
|
8
|
+
// import Paragraph from '../Paragraph'
|
9
9
|
|
10
10
|
export const LinkItem = ({ children, size, color, getStyles, isHref }) => {
|
11
11
|
return (
|
12
12
|
<Link href={isHref} passHref>
|
13
13
|
<a target="_blank" className={getStyles('link', ['color'])}>
|
14
|
-
<Paragraph size={size} color={color} weight="semibold" isInline>
|
14
|
+
{/* <Paragraph size={size} color={color} weight="semibold" isInline> */}
|
15
15
|
{children}
|
16
|
-
</Paragraph>
|
16
|
+
{/* </Paragraph> */}
|
17
17
|
</a>
|
18
18
|
</Link>
|
19
19
|
)
|
package/layout/Navbar/Navbar.js
CHANGED
@@ -11,7 +11,7 @@ import Tabs from '../../molecules/Tabs/Tabs'
|
|
11
11
|
import Icon from '../../atoms/Icon'
|
12
12
|
import { options } from './constants'
|
13
13
|
|
14
|
-
export const Navbar = ({ getStyles, viewTabsNav, viewOptionsNav, children, linkLogout, defaultValueLanguage, optionsSelectLanguage, handleChangeLanguage }) => {
|
14
|
+
export const Navbar = ({ getStyles, viewTabsNav, viewOptionsNav, children, linkLogout, defaultValueLanguage, optionsSelectLanguage, handleChangeLanguage, languageSwitchLink }) => {
|
15
15
|
|
16
16
|
|
17
17
|
const router = useRouter();
|
@@ -36,7 +36,6 @@ export const Navbar = ({ getStyles, viewTabsNav, viewOptionsNav, children, linkL
|
|
36
36
|
color="base"
|
37
37
|
size="xs"
|
38
38
|
weight="light"
|
39
|
-
isInline
|
40
39
|
>
|
41
40
|
{children}
|
42
41
|
</Heading>
|
@@ -89,7 +88,7 @@ export const Navbar = ({ getStyles, viewTabsNav, viewOptionsNav, children, linkL
|
|
89
88
|
/>
|
90
89
|
))}
|
91
90
|
|
92
|
-
<DynamicSelect
|
91
|
+
{/* <DynamicSelect
|
93
92
|
isClearable={false}
|
94
93
|
// defaultValue={{
|
95
94
|
// label: 'ES',
|
@@ -108,7 +107,9 @@ export const Navbar = ({ getStyles, viewTabsNav, viewOptionsNav, children, linkL
|
|
108
107
|
// value: 'en'
|
109
108
|
// }
|
110
109
|
// ]}
|
111
|
-
/>
|
110
|
+
/> */}
|
111
|
+
|
112
|
+
{languageSwitchLink}
|
112
113
|
|
113
114
|
<Icon
|
114
115
|
size='lg'
|
@@ -118,6 +119,8 @@ export const Navbar = ({ getStyles, viewTabsNav, viewOptionsNav, children, linkL
|
|
118
119
|
onClick={linkLogout}
|
119
120
|
/>
|
120
121
|
|
122
|
+
|
123
|
+
|
121
124
|
</div>
|
122
125
|
|
123
126
|
) : null}
|
@@ -143,6 +146,7 @@ Navbar.propTypes = {
|
|
143
146
|
viewOptionsNav: PropTypes.bool,
|
144
147
|
linkLogout: PropTypes.func,
|
145
148
|
handleChange: PropTypes.func,
|
149
|
+
languageSwitchLink: PropTypes.any.isRequired,
|
146
150
|
}
|
147
151
|
|
148
152
|
Navbar.defaultProps = {
|
@@ -91,7 +91,7 @@ export const DynamicSelect = ({ getStyles, optionsSelect, defaultValue, placehol
|
|
91
91
|
|
92
92
|
DynamicSelect.propTypes = {
|
93
93
|
getStyles: PropTypes.func.isRequired,
|
94
|
-
defaultValue: PropTypes.
|
94
|
+
defaultValue: PropTypes.any,
|
95
95
|
placeholder: PropTypes.string,
|
96
96
|
isMulti: PropTypes.bool,
|
97
97
|
isClearable: PropTypes.bool,
|
@@ -21,9 +21,9 @@ export const FooterTable = ({ getStyles, range, setPage, setDataPage, page, slic
|
|
21
21
|
<div className={styles.tableFooter}>
|
22
22
|
{range.map((el, index) => (
|
23
23
|
|
24
|
-
|
24
|
+
|
25
25
|
<button
|
26
|
-
key={index}
|
26
|
+
key={'footer' + index}
|
27
27
|
className={`${styles.button} ${page === el ? styles.activeButton : styles.inactiveButton
|
28
28
|
}`}
|
29
29
|
onClick={() => { setPage(el); setDataPage(el) }}
|
@@ -35,7 +35,7 @@ export const FooterTable = ({ getStyles, range, setPage, setDataPage, page, slic
|
|
35
35
|
</button>
|
36
36
|
|
37
37
|
|
38
|
-
|
38
|
+
|
39
39
|
|
40
40
|
))}
|
41
41
|
</div>
|
@@ -91,7 +91,7 @@ export const InputAutocomplete = ({
|
|
91
91
|
<Horizontal size="xs" />
|
92
92
|
|
93
93
|
<Input
|
94
|
-
|
94
|
+
autoComplete={'off'}
|
95
95
|
id={idOnInput}
|
96
96
|
type='text'
|
97
97
|
name={idOnInput}
|
@@ -108,7 +108,7 @@ export const InputAutocomplete = ({
|
|
108
108
|
:
|
109
109
|
|
110
110
|
<Input
|
111
|
-
|
111
|
+
autoComplete={'off'}
|
112
112
|
id={idOnInput}
|
113
113
|
type='text'
|
114
114
|
name={idOnInput}
|
@@ -172,7 +172,7 @@ InputAutocomplete.propTypes = {
|
|
172
172
|
getStyles: PropTypes.func.isRequired,
|
173
173
|
placeholderOnInput: PropTypes.string,
|
174
174
|
idOnInput: PropTypes.string,
|
175
|
-
suggestedAddresses: PropTypes.
|
175
|
+
suggestedAddresses: PropTypes.array,
|
176
176
|
handleOnInputChange: PropTypes.func,
|
177
177
|
handleOnFocus: PropTypes.func,
|
178
178
|
handleOnBlur: PropTypes.func,
|
@@ -102,7 +102,7 @@ export const RowTable = ({
|
|
102
102
|
{/* <Check id={item[itemTd.accessor]} isChecked={item.isSelected} /> */}
|
103
103
|
|
104
104
|
<Toggle
|
105
|
-
id={item
|
105
|
+
id={'idToggle' + item.id}
|
106
106
|
checked={item.isSelected}
|
107
107
|
label=""
|
108
108
|
onChangeCheckbox={(e) => { handleClickCheckbox(e, item) }}
|