@omniumretail/shared-resources 0.3.81 → 0.3.82
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.
- package/dist/constants/Icons.d.ts +15 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/shared-resources.umd.js +611 -27
- package/dist/shared-resources.umd.js.map +1 -1
- package/package.json +5 -1
- package/src/components/Header/index.tsx +7 -6
- package/src/constants/Icons.ts +21 -0
- package/src/constants/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omniumretail/shared-resources",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.82",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared Components and services or utils to the frontend versions",
|
|
6
6
|
"main": "dist/shared-resources.umd.js",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/react": "^18.0.21",
|
|
19
19
|
"@vitejs/plugin-react": "^5.0.0",
|
|
20
|
+
"rollup-plugin-visualizer": "^6.0.0",
|
|
20
21
|
"sass": "^1.55.0",
|
|
21
22
|
"tsconfig-paths": "^4.2.0",
|
|
22
23
|
"typescript": "^4.8.3",
|
|
@@ -24,6 +25,9 @@
|
|
|
24
25
|
"vite-plugin-dts": "^4.5.4"
|
|
25
26
|
},
|
|
26
27
|
"dependencies": {
|
|
28
|
+
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
|
29
|
+
"@fortawesome/free-solid-svg-icons": "^6.2.0",
|
|
30
|
+
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
27
31
|
"@tanstack/react-query": "^4.29.19",
|
|
28
32
|
"antd": "^4.23.4",
|
|
29
33
|
"classnames": "^2.3.2",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
|
2
|
+
import { icons, } from '../../constants/Icons';
|
|
2
3
|
import sitooIcon from '../../assets/sitoo.svg';
|
|
3
4
|
import styles from './styles.module.scss';
|
|
4
5
|
|
|
@@ -7,13 +8,13 @@ export interface HeaderProps {
|
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export const Header = ({ onOpenMenu }: HeaderProps) => (
|
|
10
|
-
<div className={styles.header}>
|
|
11
|
-
<
|
|
11
|
+
<div className={ styles.header }>
|
|
12
|
+
<FontAwesomeIcon icon={ icons.faBars } onClick={ onOpenMenu } />
|
|
12
13
|
|
|
13
|
-
<div className={styles.logoContainer}>
|
|
14
|
-
<img src={sitooIcon}
|
|
14
|
+
<div className={ styles.logoContainer }>
|
|
15
|
+
<img src={ sitooIcon } />
|
|
15
16
|
</div>
|
|
16
17
|
|
|
17
|
-
<
|
|
18
|
+
<FontAwesomeIcon icon={ icons.faUserTie } />
|
|
18
19
|
</div>
|
|
19
20
|
);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
import {
|
|
3
|
+
faBars, faUserTie, faPlus, faXmark, faUser, faUserPlus,
|
|
4
|
+
faCartShopping, faChevronDown, faFilter, faSearch, faQrcode, faCheck, faTrashAlt
|
|
5
|
+
} from '@fortawesome/free-solid-svg-icons'
|
|
6
|
+
|
|
7
|
+
export const icons = {
|
|
8
|
+
faBars,
|
|
9
|
+
faUser,
|
|
10
|
+
faUserTie,
|
|
11
|
+
faPlus,
|
|
12
|
+
faUserPlus,
|
|
13
|
+
faXmark,
|
|
14
|
+
faCartShopping,
|
|
15
|
+
faChevronDown,
|
|
16
|
+
faFilter,
|
|
17
|
+
faSearch,
|
|
18
|
+
faQrcode,
|
|
19
|
+
faCheck,
|
|
20
|
+
faTrashAlt
|
|
21
|
+
};
|
package/src/constants/index.ts
CHANGED