@citygross/components_v2 0.0.57 → 0.0.59
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.
|
@@ -17,16 +17,21 @@
|
|
|
17
17
|
justify-content: space-between;
|
|
18
18
|
align-items: center;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.Header_headerButtonContainer__11gdejs3 {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 12px;
|
|
24
|
+
}
|
|
25
|
+
.Header_menuIconContainer__11gdejs4 {
|
|
21
26
|
cursor: pointer;
|
|
22
27
|
display: flex;
|
|
23
28
|
align-self: center;
|
|
24
29
|
}
|
|
25
|
-
.
|
|
30
|
+
.Header_desktopLogo__11gdejs5 {
|
|
26
31
|
display: none;
|
|
27
32
|
visibility: hidden;
|
|
28
33
|
}
|
|
29
|
-
.
|
|
34
|
+
.Header_mobileLogo__11gdejs6 {
|
|
30
35
|
display: flex;
|
|
31
36
|
visibility: visible;
|
|
32
37
|
}
|
|
@@ -34,15 +39,15 @@
|
|
|
34
39
|
.Header_headerWrapper__11gdejs1 {
|
|
35
40
|
padding: 20px 24px;
|
|
36
41
|
}
|
|
37
|
-
.
|
|
42
|
+
.Header_menuIconContainer__11gdejs4 {
|
|
38
43
|
display: none;
|
|
39
44
|
visibility: visible;
|
|
40
45
|
}
|
|
41
|
-
.
|
|
46
|
+
.Header_desktopLogo__11gdejs5 {
|
|
42
47
|
display: flex;
|
|
43
48
|
visibility: visible;
|
|
44
49
|
}
|
|
45
|
-
.
|
|
50
|
+
.Header_mobileLogo__11gdejs6 {
|
|
46
51
|
display: none;
|
|
47
52
|
visibility: hidden;
|
|
48
53
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import './Header.css.ts.vanilla.css';
|
|
2
2
|
|
|
3
|
-
var desktopLogo = "
|
|
3
|
+
var desktopLogo = "Header_desktopLogo__11gdejs5";
|
|
4
|
+
var headerButtonContainer = "Header_headerButtonContainer__11gdejs3";
|
|
4
5
|
var headerContainer = "Header_headerContainer__11gdejs2";
|
|
5
6
|
var headerWrapper = "Header_headerWrapper__11gdejs1";
|
|
6
|
-
var menuIconContainer = "
|
|
7
|
-
var mobileLogo = "
|
|
7
|
+
var menuIconContainer = "Header_menuIconContainer__11gdejs4";
|
|
8
|
+
var mobileLogo = "Header_mobileLogo__11gdejs6";
|
|
8
9
|
var wrapper = "Header_wrapper__11gdejs0";
|
|
9
10
|
|
|
10
|
-
export { desktopLogo, headerContainer, headerWrapper, menuIconContainer, mobileLogo, wrapper };
|
|
11
|
+
export { desktopLogo, headerButtonContainer, headerContainer, headerWrapper, menuIconContainer, mobileLogo, wrapper };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button } from '../Button/Button.js';
|
|
3
3
|
import { Icons } from '@citygross/icons_v2';
|
|
4
|
-
import { wrapper, headerWrapper, headerContainer, mobileLogo, desktopLogo, menuIconContainer } from './Header.css.vanilla.js';
|
|
4
|
+
import { wrapper, headerWrapper, headerContainer, mobileLogo, desktopLogo, headerButtonContainer, menuIconContainer } from './Header.css.vanilla.js';
|
|
5
5
|
|
|
6
6
|
const Header = ({
|
|
7
7
|
btnLabel,
|
|
@@ -9,21 +9,20 @@ const Header = ({
|
|
|
9
9
|
onMenuClick,
|
|
10
10
|
sideModal,
|
|
11
11
|
headerLink
|
|
12
|
-
}) => /* @__PURE__ */ React.createElement("div", { className: wrapper }, headerLink && headerLink, /* @__PURE__ */ React.createElement("div", { className: headerWrapper }, /* @__PURE__ */ React.createElement("div", { className: headerContainer }, /* @__PURE__ */ React.createElement("span", { className: mobileLogo }, /* @__PURE__ */ React.createElement(Icons.LogoFlat, { small: true })), /* @__PURE__ */ React.createElement("span", { className: desktopLogo }, /* @__PURE__ */ React.createElement(Icons.Logo, null)), /* @__PURE__ */ React.createElement(
|
|
13
|
-
"div",
|
|
14
|
-
{
|
|
15
|
-
className: menuIconContainer,
|
|
16
|
-
onClick: () => onMenuClick && onMenuClick()
|
|
17
|
-
},
|
|
18
|
-
/* @__PURE__ */ React.createElement(Icons.Menu, null)
|
|
19
|
-
), btnLabel && /* @__PURE__ */ React.createElement(
|
|
12
|
+
}) => /* @__PURE__ */ React.createElement("div", { className: wrapper }, headerLink && headerLink, /* @__PURE__ */ React.createElement("div", { className: headerWrapper }, /* @__PURE__ */ React.createElement("div", { className: headerContainer }, /* @__PURE__ */ React.createElement("span", { className: mobileLogo }, /* @__PURE__ */ React.createElement(Icons.LogoFlat, { small: true })), /* @__PURE__ */ React.createElement("span", { className: desktopLogo }, /* @__PURE__ */ React.createElement(Icons.Logo, null)), /* @__PURE__ */ React.createElement("div", { className: headerButtonContainer }, btnLabel && /* @__PURE__ */ React.createElement(
|
|
20
13
|
Button,
|
|
21
14
|
{
|
|
22
|
-
className: desktopLogo,
|
|
23
15
|
onClick: btnOnClick,
|
|
24
16
|
variant: "secondary"
|
|
25
17
|
},
|
|
26
18
|
btnLabel
|
|
27
|
-
)
|
|
19
|
+
), /* @__PURE__ */ React.createElement(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: menuIconContainer,
|
|
23
|
+
onClick: () => onMenuClick && onMenuClick()
|
|
24
|
+
},
|
|
25
|
+
/* @__PURE__ */ React.createElement(Icons.Menu, null)
|
|
26
|
+
)))), sideModal);
|
|
28
27
|
|
|
29
28
|
export { Header };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components_v2",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.59",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"@types/jest": "^26.0.0",
|
|
46
46
|
"@types/react": "^17.0.0",
|
|
47
47
|
"@types/react-dom": "^17.0.0",
|
|
48
|
-
"@types/react-router-dom": "^5.1.7",
|
|
49
48
|
"@types/react-slick": "^0.23.13",
|
|
50
49
|
"@vanilla-extract/rollup-plugin": "1.3.10",
|
|
51
50
|
"@vanilla-extract/webpack-plugin": "2.3.14",
|
|
@@ -55,7 +54,6 @@
|
|
|
55
54
|
"react": "^17.0.1",
|
|
56
55
|
"react-docgen-typescript-loader": "^3.7.2",
|
|
57
56
|
"react-dom": "^17.0.1",
|
|
58
|
-
"react-router-dom": "^5.2.0",
|
|
59
57
|
"ts-jest": "^27.0.3",
|
|
60
58
|
"ts-loader": "^9.2.3",
|
|
61
59
|
"webpack-merge": "6.0.1"
|
|
@@ -69,7 +67,7 @@
|
|
|
69
67
|
"@citygross/icons_v2": "^0.0.5",
|
|
70
68
|
"@citygross/react-use-bg-wizard": "^0.0.8",
|
|
71
69
|
"@citygross/typography": "^0.0.89",
|
|
72
|
-
"@citygross/utils": "^0.0.
|
|
70
|
+
"@citygross/utils": "^0.0.43",
|
|
73
71
|
"@vanilla-extract/css": "^1.14.1",
|
|
74
72
|
"@vanilla-extract/css-utils": "^0.1.3",
|
|
75
73
|
"@vanilla-extract/recipes": "^0.5.1",
|
|
@@ -79,5 +77,5 @@
|
|
|
79
77
|
"react-slick": "^0.30.1",
|
|
80
78
|
"slick-carousel": "^1.8.1"
|
|
81
79
|
},
|
|
82
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "5bccf66077fdf46f129a7a419f1e1447f650cdf0"
|
|
83
81
|
}
|