@citygross/components_v2 0.0.18 → 0.0.19
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,15 +1,19 @@
|
|
|
1
1
|
.Header_wrapper__11gdejs0 {
|
|
2
2
|
position: relative;
|
|
3
3
|
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.07);
|
|
4
|
+
background: #FFFFFF;
|
|
4
5
|
}
|
|
5
6
|
.Header_headerWrapper__11gdejs1 {
|
|
6
7
|
background-color: #FFFFFF;
|
|
7
8
|
margin: 0 auto;
|
|
8
|
-
max-width: 1232px;
|
|
9
9
|
padding: 12px;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
10
12
|
}
|
|
11
13
|
.Header_headerContainer__11gdejs2 {
|
|
12
14
|
display: flex;
|
|
15
|
+
max-width: 1656px;
|
|
16
|
+
width: 100%;
|
|
13
17
|
justify-content: space-between;
|
|
14
18
|
align-items: center;
|
|
15
19
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button } from '../Button/Button.js';
|
|
3
3
|
import { Icons } from '@citygross/icons_v2';
|
|
4
|
-
import { theme } from '@citygross/design-tokens';
|
|
5
4
|
import { wrapper, headerWrapper, headerContainer, menuIconContainer } from './Header.css.vanilla.js';
|
|
5
|
+
import { breakpoints } from '@citygross/design-tokens_v2';
|
|
6
6
|
|
|
7
7
|
const Header = ({
|
|
8
8
|
btnLabel,
|
|
@@ -11,8 +11,15 @@ const Header = ({
|
|
|
11
11
|
sideModal,
|
|
12
12
|
headerLink
|
|
13
13
|
}) => {
|
|
14
|
-
const isMobile = window.innerWidth < (
|
|
15
|
-
return /* @__PURE__ */ React.createElement("div", { className: wrapper }, headerLink && headerLink, /* @__PURE__ */ React.createElement("div", { className: headerWrapper }, /* @__PURE__ */ React.createElement("div", { className: headerContainer }, isMobile ? /* @__PURE__ */ React.createElement(Icons.LogoFlat, null) : /* @__PURE__ */ React.createElement(Icons.Logo, null), isMobile ? /* @__PURE__ */ React.createElement(
|
|
14
|
+
const isMobile = window.innerWidth < (breakpoints?.lg ?? 960);
|
|
15
|
+
return /* @__PURE__ */ React.createElement("div", { className: wrapper }, headerLink && headerLink, /* @__PURE__ */ React.createElement("div", { className: headerWrapper }, /* @__PURE__ */ React.createElement("div", { className: headerContainer }, isMobile ? /* @__PURE__ */ React.createElement(Icons.LogoFlat, null) : /* @__PURE__ */ React.createElement(Icons.Logo, null), isMobile ? /* @__PURE__ */ React.createElement(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
className: menuIconContainer,
|
|
19
|
+
onClick: () => onMenuClick && onMenuClick()
|
|
20
|
+
},
|
|
21
|
+
/* @__PURE__ */ React.createElement(Icons.Menu, null)
|
|
22
|
+
) : btnLabel && /* @__PURE__ */ React.createElement(Button, { onClick: btnOnClick, variant: "secondary" }, btnLabel))), sideModal);
|
|
16
23
|
};
|
|
17
24
|
|
|
18
25
|
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.19",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"react-dom": "^17.0.1"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@citygross/design-tokens_v2": "^0.0.
|
|
68
|
+
"@citygross/design-tokens_v2": "^0.0.4",
|
|
69
69
|
"@citygross/icons_v2": "^0.0.1",
|
|
70
70
|
"@citygross/react-use-bg-wizard": "^0.0.8",
|
|
71
71
|
"@citygross/typography": "^0.0.89",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"react-slick": "^0.30.1",
|
|
80
80
|
"slick-carousel": "^1.8.1"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "566d7b7b19a74421ca9d193c087ae5b8c529bec1"
|
|
83
83
|
}
|