@citygross/components_v2 0.0.17 → 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.
- package/dist/components/Header/Header.css.ts.vanilla.css +5 -1
- package/dist/components/Header/Header.js +10 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +3 -3
- package/dist/typography/Paragraph/Paragraph.css.vanilla.js +0 -8
- package/dist/typography/Paragraph/Paragraph.d.ts +0 -16
- package/dist/typography/Paragraph/Paragraph.js +0 -28
|
@@ -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/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export { Spacer, TSpacer } from './components/Spacer/Spacer.js';
|
|
|
20
20
|
export { Spinner, TSpinner } from './components/Spinner/Spinner.js';
|
|
21
21
|
export { TTimeline, TTimelineItem, Timeline } from './components/TimeLine/TimeLine.js';
|
|
22
22
|
export { BodyText, TBodyText } from './typography/BodyText/BodyText.js';
|
|
23
|
-
export { Paragraph, TParagraph } from './typography/Paragraph/Paragraph.js';
|
|
24
23
|
export { H1, TH1 } from './typography/H1/H1.js';
|
|
25
24
|
export { H2, TH2 } from './typography/H2/H2.js';
|
|
26
25
|
export { H3, TH3 } from './typography/H3/H3.js';
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,6 @@ export { Spacer } from './components/Spacer/Spacer.js';
|
|
|
20
20
|
export { Spinner } from './components/Spinner/Spinner.js';
|
|
21
21
|
export { Timeline } from './components/TimeLine/TimeLine.js';
|
|
22
22
|
export { BodyText } from './typography/BodyText/BodyText.js';
|
|
23
|
-
export { Paragraph } from './typography/Paragraph/Paragraph.js';
|
|
24
23
|
export { H1 } from './typography/H1/H1.js';
|
|
25
24
|
export { H2 } from './typography/H2/H2.js';
|
|
26
25
|
export { H3 } from './typography/H3/H3.js';
|
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
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import './../../cssUtils/typography.css.ts.vanilla.css';
|
|
2
|
-
import './../../cssUtils/color.css.ts.vanilla.css';
|
|
3
|
-
import 'src/typography/Paragraph/Paragraph.css.ts.vanilla.css';
|
|
4
|
-
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
5
|
-
|
|
6
|
-
var paragraphtStyle = createRuntimeFn({ defaultClassName: "Paragraph__1xnbf7t0", variantClassNames: { fontWeight: { regular: "typography_fontWeight_regular__xithytc", medium: "typography_fontWeight_medium__xithytd", semiBold: "typography_fontWeight_semiBold__xithyte", bold: "typography_fontWeight_bold__xithytf" }, textDecoration: { lineThrough: "typography_textDecoration_lineThrough__xithytq", underline: "typography_textDecoration_underline__xithytr" }, bodyTextSize: { tiny: "typography_bodyTextSize_tiny__xithyts", extraSmall: "typography_bodyTextSize_extraSmall__xithytt", small: "typography_bodyTextSize_small__xithytu", "default": "typography_bodyTextSize_default__xithytv" }, textAlign: { left: "typography_textAlign_left__xithytn", right: "typography_textAlign_right__xithyto", center: "typography_textAlign_center__xithytp" }, color: { primary: "color_color_primary__13rr0b20", secondary: "color_color_secondary__13rr0b21", brandYellow: "color_color_brandYellow__13rr0b22", brandBlue: "color_color_brandBlue__13rr0b23", brandPurple: "color_color_brandPurple__13rr0b24", brandPrio: "color_color_brandPrio__13rr0b25", yellowLighter: "color_color_yellowLighter__13rr0b26", yellowLight: "color_color_yellowLight__13rr0b27", blueLight: "color_color_blueLight__13rr0b28", blueLighter: "color_color_blueLighter__13rr0b29", blueMedium: "color_color_blueMedium__13rr0b2a", greenLight: "color_color_greenLight__13rr0b2b", greenMedium: "color_color_greenMedium__13rr0b2c", redLight: "color_color_redLight__13rr0b2d", recipeVego: "color_color_recipeVego__13rr0b2e", recipeLactose: "color_color_recipeLactose__13rr0b2f", recipeGluten: "color_color_recipeGluten__13rr0b2g", link: "color_color_link__13rr0b2h", white: "color_color_white__13rr0b2i", black: "color_color_black__13rr0b2j", lightest: "color_color_lightest__13rr0b2k", lighter: "color_color_lighter__13rr0b2l", light: "color_color_light__13rr0b2m", medium: "color_color_medium__13rr0b2n", mediumDark: "color_color_mediumDark__13rr0b2o", dark: "color_color_dark__13rr0b2p", darker: "color_color_darker__13rr0b2q", darkest: "color_color_darkest__13rr0b2r", buttonGray: "color_color_buttonGray__13rr0b2s", disabledGray: "color_color_disabledGray__13rr0b2t", disabledDarkGray: "color_color_disabledDarkGray__13rr0b2u", placeholder: "color_color_placeholder__13rr0b2v", border: "color_color_border__13rr0b2w", boxShadow: "color_color_boxShadow__13rr0b2x", boxShadowActive: "color_color_boxShadowActive__13rr0b2y", alertRed: "color_color_alertRed__13rr0b2z", alertBlue: "color_color_alertBlue__13rr0b210", alertGreen: "color_color_alertGreen__13rr0b211", darkOverlay: "color_color_darkOverlay__13rr0b212", transparent: "color_color_transparent__13rr0b213", brandBlueHover: "color_color_brandBlueHover__13rr0b214", brandYellowHover: "color_color_brandYellowHover__13rr0b215", brandPrioHover: "color_color_brandPrioHover__13rr0b216", brandBlueActive: "color_color_brandBlueActive__13rr0b217", brandYellowActive: "color_color_brandYellowActive__13rr0b218", brandPrioActive: "color_color_brandPrioActive__13rr0b219", none: "color_color_none__13rr0b21a" } }, defaultVariants: { color: "darkest", fontWeight: "regular", bodyTextSize: "default", textAlign: "left" }, compoundVariants: [] });
|
|
7
|
-
|
|
8
|
-
export { paragraphtStyle };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TPaletteKeys, TFontWeightKeys } from '@citygross/design-tokens_v2';
|
|
3
|
-
import { TBodyTextSizeKeys, TTextDecoration, TTextAlign } from '../../cssUtils/typography.css.js';
|
|
4
|
-
|
|
5
|
-
declare type TParagraph = {
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
size?: TBodyTextSizeKeys;
|
|
8
|
-
color?: TPaletteKeys;
|
|
9
|
-
textDecoration?: TTextDecoration;
|
|
10
|
-
fontWeight?: TFontWeightKeys;
|
|
11
|
-
textAlign?: TTextAlign;
|
|
12
|
-
className?: string;
|
|
13
|
-
};
|
|
14
|
-
declare const Paragraph: ({ children, color, fontWeight, textDecoration, size, textAlign, className }: TParagraph) => JSX.Element;
|
|
15
|
-
|
|
16
|
-
export { Paragraph, TParagraph };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { paragraphtStyle } from './Paragraph.css.vanilla.js';
|
|
3
|
-
|
|
4
|
-
const Paragraph = ({
|
|
5
|
-
children,
|
|
6
|
-
color,
|
|
7
|
-
fontWeight,
|
|
8
|
-
textDecoration,
|
|
9
|
-
size,
|
|
10
|
-
textAlign,
|
|
11
|
-
className
|
|
12
|
-
}) => {
|
|
13
|
-
return /* @__PURE__ */ React.createElement(
|
|
14
|
-
"p",
|
|
15
|
-
{
|
|
16
|
-
className: `${paragraphtStyle({
|
|
17
|
-
bodyTextSize: size,
|
|
18
|
-
color,
|
|
19
|
-
textDecoration,
|
|
20
|
-
textAlign,
|
|
21
|
-
fontWeight
|
|
22
|
-
})} ${className}`
|
|
23
|
-
},
|
|
24
|
-
children
|
|
25
|
-
);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export { Paragraph };
|