@citygross/components_v2 0.0.16 → 0.0.17
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/AlertBox/AlertBox.js +1 -1
- package/dist/components/BoxArrow/BoxArrow.d.ts +10 -0
- package/dist/components/BoxArrow/BoxArrow.js +6 -2
- package/dist/components/Button/Button.d.ts +19 -0
- package/dist/components/CartItemSummary/CartItemSummary.js +1 -1
- package/dist/components/FormControl/FormControl.js +1 -1
- package/dist/components/Header/Header.css.vanilla.js +1 -2
- package/dist/components/Header/Header.d.ts +5 -3
- package/dist/components/Header/Header.js +6 -32
- package/dist/components/ListItem/ListItem.js +1 -1
- package/dist/components/OrderTable/OrderTable.css.d.ts +44 -0
- package/dist/components/OrderTable/OrderTable.css.ts.vanilla.css +57 -0
- package/dist/components/OrderTable/OrderTable.css.vanilla.js +12 -0
- package/dist/components/OrderTableMobile/OrderTableMobile.css.ts.vanilla.css +17 -0
- package/dist/components/OrderTableMobile/OrderTableMobile.css.vanilla.js +7 -0
- package/dist/components/OrderTableMobile/OrderTableMobile.d.ts +12 -0
- package/dist/components/OrderTableMobile/OrderTableMobile.js +40 -0
- package/dist/components/Pagination/Pagination.css.ts.vanilla.css +16 -0
- package/dist/components/Pagination/Pagination.css.vanilla.js +8 -0
- package/dist/components/Pagination/Pagination.d.ts +15 -0
- package/dist/components/Pagination/Pagination.js +82 -0
- package/dist/components/RippleContainer/RippleContainer.css.ts.vanilla.css +168 -0
- package/dist/components/RippleContainer/RippleContainer.css.vanilla.js +6 -0
- package/dist/components/RippleContainer/RippleContainer.d.ts +10 -0
- package/dist/components/RippleContainer/RippleContainer.js +16 -0
- package/dist/components/SideModal/SideModal.css.ts.vanilla.css +104 -0
- package/dist/components/SideModal/SideModal.css.vanilla.js +8 -0
- package/dist/components/SideModal/SideModal.d.ts +19 -0
- package/dist/components/SideModal/SideModal.js +50 -0
- package/dist/components/Skeleton/Skeleton.d.ts +3 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/cssUtils/border.css.d.ts +2 -2
- package/dist/cssUtils/color.css.d.ts +4 -4
- package/dist/cssUtils/spacings.css.d.ts +7 -7
- package/dist/index.d.ts +15 -4
- package/dist/index.js +15 -7
- package/dist/typography/BodyText/BodyText.css.ts.vanilla.css +3 -0
- package/dist/typography/BodyText/BodyText.css.vanilla.js +3 -3
- package/dist/typography/BodyText/BodyText.js +2 -2
- package/dist/typography/H1/H1.css.ts.vanilla.css +10 -0
- package/dist/typography/H1/H1.css.vanilla.js +8 -0
- package/dist/typography/H1/H1.d.ts +13 -0
- package/dist/typography/H1/H1.js +24 -0
- package/dist/typography/H2/H2.css.ts.vanilla.css +10 -0
- package/dist/typography/H2/H2.css.vanilla.js +8 -0
- package/dist/typography/H2/H2.d.ts +13 -0
- package/dist/typography/H2/H2.js +24 -0
- package/dist/typography/H3/H3.d.ts +13 -0
- package/dist/typography/Paragraph/Paragraph.css.vanilla.js +8 -0
- package/dist/typography/Paragraph/Paragraph.d.ts +16 -0
- package/dist/typography/Paragraph/Paragraph.js +28 -0
- package/package.json +3 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './RippleContainer.css.ts.vanilla.css';
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
|
+
|
|
4
|
+
var rippleContainer = createRuntimeFn({ defaultClassName: "RippleContainer_rippleContainer__r9yswj1c", variantClassNames: { afterBackground: { primary: "RippleContainer_afterBackground_primary__r9yswj1", secondary: "RippleContainer_afterBackground_secondary__r9yswj2", brandYellow: "RippleContainer_afterBackground_brandYellow__r9yswj3", brandBlue: "RippleContainer_afterBackground_brandBlue__r9yswj4", brandPurple: "RippleContainer_afterBackground_brandPurple__r9yswj5", brandPrio: "RippleContainer_afterBackground_brandPrio__r9yswj6", yellowLighter: "RippleContainer_afterBackground_yellowLighter__r9yswj7", yellowLight: "RippleContainer_afterBackground_yellowLight__r9yswj8", blueLight: "RippleContainer_afterBackground_blueLight__r9yswj9", blueLighter: "RippleContainer_afterBackground_blueLighter__r9yswja", blueMedium: "RippleContainer_afterBackground_blueMedium__r9yswjb", greenLight: "RippleContainer_afterBackground_greenLight__r9yswjc", greenMedium: "RippleContainer_afterBackground_greenMedium__r9yswjd", redLight: "RippleContainer_afterBackground_redLight__r9yswje", recipeVego: "RippleContainer_afterBackground_recipeVego__r9yswjf", recipeLactose: "RippleContainer_afterBackground_recipeLactose__r9yswjg", recipeGluten: "RippleContainer_afterBackground_recipeGluten__r9yswjh", link: "RippleContainer_afterBackground_link__r9yswji", white: "RippleContainer_afterBackground_white__r9yswjj", black: "RippleContainer_afterBackground_black__r9yswjk", lightest: "RippleContainer_afterBackground_lightest__r9yswjl", lighter: "RippleContainer_afterBackground_lighter__r9yswjm", light: "RippleContainer_afterBackground_light__r9yswjn", medium: "RippleContainer_afterBackground_medium__r9yswjo", mediumDark: "RippleContainer_afterBackground_mediumDark__r9yswjp", dark: "RippleContainer_afterBackground_dark__r9yswjq", darker: "RippleContainer_afterBackground_darker__r9yswjr", darkest: "RippleContainer_afterBackground_darkest__r9yswjs", buttonGray: "RippleContainer_afterBackground_buttonGray__r9yswjt", disabledGray: "RippleContainer_afterBackground_disabledGray__r9yswju", disabledDarkGray: "RippleContainer_afterBackground_disabledDarkGray__r9yswjv", placeholder: "RippleContainer_afterBackground_placeholder__r9yswjw", border: "RippleContainer_afterBackground_border__r9yswjx", boxShadow: "RippleContainer_afterBackground_boxShadow__r9yswjy", boxShadowActive: "RippleContainer_afterBackground_boxShadowActive__r9yswjz", alertRed: "RippleContainer_afterBackground_alertRed__r9yswj10", alertBlue: "RippleContainer_afterBackground_alertBlue__r9yswj11", alertGreen: "RippleContainer_afterBackground_alertGreen__r9yswj12", darkOverlay: "RippleContainer_afterBackground_darkOverlay__r9yswj13", transparent: "RippleContainer_afterBackground_transparent__r9yswj14", brandBlueHover: "RippleContainer_afterBackground_brandBlueHover__r9yswj15", brandYellowHover: "RippleContainer_afterBackground_brandYellowHover__r9yswj16", brandPrioHover: "RippleContainer_afterBackground_brandPrioHover__r9yswj17", brandBlueActive: "RippleContainer_afterBackground_brandBlueActive__r9yswj18", brandYellowActive: "RippleContainer_afterBackground_brandYellowActive__r9yswj19", brandPrioActive: "RippleContainer_afterBackground_brandPrioActive__r9yswj1a", none: "RippleContainer_afterBackground_none__r9yswj1b" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5
|
+
|
|
6
|
+
export { rippleContainer };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
3
|
+
|
|
4
|
+
declare type TRippleContainer = {
|
|
5
|
+
color?: TPaletteKeys;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
declare function RippleContainer({ color, children }: TRippleContainer): JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { RippleContainer, TRippleContainer };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { rippleContainer } from './RippleContainer.css.vanilla.js';
|
|
3
|
+
|
|
4
|
+
function RippleContainer({ color, children }) {
|
|
5
|
+
return /* @__PURE__ */ React.createElement(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
className: rippleContainer({
|
|
9
|
+
afterBackground: color
|
|
10
|
+
})
|
|
11
|
+
},
|
|
12
|
+
children
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { RippleContainer };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
@keyframes SideModal_slideLeft__1scj0sn0 {
|
|
2
|
+
from {
|
|
3
|
+
left: -100%;
|
|
4
|
+
opacity: 0;
|
|
5
|
+
}
|
|
6
|
+
to {
|
|
7
|
+
left: 0;
|
|
8
|
+
opacity: 1;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
@keyframes SideModal_slideRight__1scj0sn1 {
|
|
12
|
+
from {
|
|
13
|
+
right: -100%;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
}
|
|
16
|
+
to {
|
|
17
|
+
right: 0;
|
|
18
|
+
opacity: 1;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
@keyframes SideModal_slideOutLeft__1scj0sn2 {
|
|
22
|
+
from {
|
|
23
|
+
left: 0;
|
|
24
|
+
opacity: 1;
|
|
25
|
+
}
|
|
26
|
+
to {
|
|
27
|
+
left: -100%;
|
|
28
|
+
opacity: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
@keyframes SideModal_slideOutRight__1scj0sn3 {
|
|
32
|
+
from {
|
|
33
|
+
right: 0;
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
|
36
|
+
to {
|
|
37
|
+
right: -100%;
|
|
38
|
+
opacity: 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.SideModal_slideVariants_left__1scj0sn4 {
|
|
42
|
+
left: -100%;
|
|
43
|
+
}
|
|
44
|
+
.SideModal_slideVariants_right__1scj0sn5 {
|
|
45
|
+
right: 100%;
|
|
46
|
+
}
|
|
47
|
+
.SideModal_sideModal__1scj0sn6 {
|
|
48
|
+
height: 100vh;
|
|
49
|
+
width: 100%;
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 0;
|
|
52
|
+
overscroll-behavior: none;
|
|
53
|
+
z-index: 5;
|
|
54
|
+
overflow: auto;
|
|
55
|
+
-ms-overflow-style: none;
|
|
56
|
+
scrollbar-width: none;
|
|
57
|
+
}
|
|
58
|
+
.SideModal_sideModal__1scj0sn6::-webkit-scrollbar {
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
.SideModal_sideModal_slideIn_leftIn__1scj0sn1k {
|
|
62
|
+
animation: SideModal_slideLeft__1scj0sn0 300ms ease-out forwards;
|
|
63
|
+
}
|
|
64
|
+
.SideModal_sideModal_slideIn_rightIn__1scj0sn1l {
|
|
65
|
+
animation: SideModal_slideRight__1scj0sn1 300ms ease-out forwards;
|
|
66
|
+
}
|
|
67
|
+
.SideModal_sideModal_slideIn_leftOut__1scj0sn1m {
|
|
68
|
+
animation: SideModal_slideOutLeft__1scj0sn2 300ms ease-out forwards;
|
|
69
|
+
}
|
|
70
|
+
.SideModal_sideModal_slideIn_rightOut__1scj0sn1n {
|
|
71
|
+
animation: SideModal_slideOutRight__1scj0sn3 300ms ease-out forwards;
|
|
72
|
+
}
|
|
73
|
+
.SideModal_sideModalOverLayer__1scj0sn1o {
|
|
74
|
+
display: flex;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
align-items: center;
|
|
77
|
+
overscroll-behavior: none;
|
|
78
|
+
position: fixed;
|
|
79
|
+
top: 0;
|
|
80
|
+
bottom: 0;
|
|
81
|
+
left: 0;
|
|
82
|
+
right: 0;
|
|
83
|
+
height: 100%;
|
|
84
|
+
opacity: 0;
|
|
85
|
+
transition: opacity 300ms ease-out;
|
|
86
|
+
}
|
|
87
|
+
.SideModal_sideModalOverLayer_open_true__1scj0sn30 {
|
|
88
|
+
opacity: 1;
|
|
89
|
+
z-index: 5;
|
|
90
|
+
}
|
|
91
|
+
.SideModal_sideModalOverLayer_open_false__1scj0sn31 {
|
|
92
|
+
opacity: 0;
|
|
93
|
+
z-index: -1;
|
|
94
|
+
}
|
|
95
|
+
@media screen and (min-width: 576px) {
|
|
96
|
+
.SideModal_sideModal__1scj0sn6 {
|
|
97
|
+
max-height: unset;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
@supports (height: 100dvh) {
|
|
101
|
+
.SideModal_sideModal__1scj0sn6 {
|
|
102
|
+
height: 100dvh;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './../../cssUtils/color.css.ts.vanilla.css';
|
|
2
|
+
import './SideModal.css.ts.vanilla.css';
|
|
3
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
4
|
+
|
|
5
|
+
var sideModal = createRuntimeFn({ defaultClassName: "SideModal_sideModal__1scj0sn6", variantClassNames: { backgroundColor: { primary: "color_backgroundColor_primary__13rr0b21b", secondary: "color_backgroundColor_secondary__13rr0b21c", brandYellow: "color_backgroundColor_brandYellow__13rr0b21d", brandBlue: "color_backgroundColor_brandBlue__13rr0b21e", brandPurple: "color_backgroundColor_brandPurple__13rr0b21f", brandPrio: "color_backgroundColor_brandPrio__13rr0b21g", yellowLighter: "color_backgroundColor_yellowLighter__13rr0b21h", yellowLight: "color_backgroundColor_yellowLight__13rr0b21i", blueLight: "color_backgroundColor_blueLight__13rr0b21j", blueLighter: "color_backgroundColor_blueLighter__13rr0b21k", blueMedium: "color_backgroundColor_blueMedium__13rr0b21l", greenLight: "color_backgroundColor_greenLight__13rr0b21m", greenMedium: "color_backgroundColor_greenMedium__13rr0b21n", redLight: "color_backgroundColor_redLight__13rr0b21o", recipeVego: "color_backgroundColor_recipeVego__13rr0b21p", recipeLactose: "color_backgroundColor_recipeLactose__13rr0b21q", recipeGluten: "color_backgroundColor_recipeGluten__13rr0b21r", link: "color_backgroundColor_link__13rr0b21s", white: "color_backgroundColor_white__13rr0b21t", black: "color_backgroundColor_black__13rr0b21u", lightest: "color_backgroundColor_lightest__13rr0b21v", lighter: "color_backgroundColor_lighter__13rr0b21w", light: "color_backgroundColor_light__13rr0b21x", medium: "color_backgroundColor_medium__13rr0b21y", mediumDark: "color_backgroundColor_mediumDark__13rr0b21z", dark: "color_backgroundColor_dark__13rr0b220", darker: "color_backgroundColor_darker__13rr0b221", darkest: "color_backgroundColor_darkest__13rr0b222", buttonGray: "color_backgroundColor_buttonGray__13rr0b223", disabledGray: "color_backgroundColor_disabledGray__13rr0b224", disabledDarkGray: "color_backgroundColor_disabledDarkGray__13rr0b225", placeholder: "color_backgroundColor_placeholder__13rr0b226", border: "color_backgroundColor_border__13rr0b227", boxShadow: "color_backgroundColor_boxShadow__13rr0b228", boxShadowActive: "color_backgroundColor_boxShadowActive__13rr0b229", alertRed: "color_backgroundColor_alertRed__13rr0b22a", alertBlue: "color_backgroundColor_alertBlue__13rr0b22b", alertGreen: "color_backgroundColor_alertGreen__13rr0b22c", darkOverlay: "color_backgroundColor_darkOverlay__13rr0b22d", transparent: "color_backgroundColor_transparent__13rr0b22e", brandBlueHover: "color_backgroundColor_brandBlueHover__13rr0b22f", brandYellowHover: "color_backgroundColor_brandYellowHover__13rr0b22g", brandPrioHover: "color_backgroundColor_brandPrioHover__13rr0b22h", brandBlueActive: "color_backgroundColor_brandBlueActive__13rr0b22i", brandYellowActive: "color_backgroundColor_brandYellowActive__13rr0b22j", brandPrioActive: "color_backgroundColor_brandPrioActive__13rr0b22k", none: "color_backgroundColor_none__13rr0b22l" }, slideVariants: { left: "SideModal_slideVariants_left__1scj0sn4", right: "SideModal_slideVariants_right__1scj0sn5" }, slideIn: { leftIn: "SideModal_sideModal_slideIn_leftIn__1scj0sn1k", rightIn: "SideModal_sideModal_slideIn_rightIn__1scj0sn1l", leftOut: "SideModal_sideModal_slideIn_leftOut__1scj0sn1m", rightOut: "SideModal_sideModal_slideIn_rightOut__1scj0sn1n" } }, defaultVariants: {}, compoundVariants: [] });
|
|
6
|
+
var sideModalOverLayer = createRuntimeFn({ defaultClassName: "SideModal_sideModalOverLayer__1scj0sn1o", variantClassNames: { backgroundColor: { primary: "color_backgroundColor_primary__13rr0b21b", secondary: "color_backgroundColor_secondary__13rr0b21c", brandYellow: "color_backgroundColor_brandYellow__13rr0b21d", brandBlue: "color_backgroundColor_brandBlue__13rr0b21e", brandPurple: "color_backgroundColor_brandPurple__13rr0b21f", brandPrio: "color_backgroundColor_brandPrio__13rr0b21g", yellowLighter: "color_backgroundColor_yellowLighter__13rr0b21h", yellowLight: "color_backgroundColor_yellowLight__13rr0b21i", blueLight: "color_backgroundColor_blueLight__13rr0b21j", blueLighter: "color_backgroundColor_blueLighter__13rr0b21k", blueMedium: "color_backgroundColor_blueMedium__13rr0b21l", greenLight: "color_backgroundColor_greenLight__13rr0b21m", greenMedium: "color_backgroundColor_greenMedium__13rr0b21n", redLight: "color_backgroundColor_redLight__13rr0b21o", recipeVego: "color_backgroundColor_recipeVego__13rr0b21p", recipeLactose: "color_backgroundColor_recipeLactose__13rr0b21q", recipeGluten: "color_backgroundColor_recipeGluten__13rr0b21r", link: "color_backgroundColor_link__13rr0b21s", white: "color_backgroundColor_white__13rr0b21t", black: "color_backgroundColor_black__13rr0b21u", lightest: "color_backgroundColor_lightest__13rr0b21v", lighter: "color_backgroundColor_lighter__13rr0b21w", light: "color_backgroundColor_light__13rr0b21x", medium: "color_backgroundColor_medium__13rr0b21y", mediumDark: "color_backgroundColor_mediumDark__13rr0b21z", dark: "color_backgroundColor_dark__13rr0b220", darker: "color_backgroundColor_darker__13rr0b221", darkest: "color_backgroundColor_darkest__13rr0b222", buttonGray: "color_backgroundColor_buttonGray__13rr0b223", disabledGray: "color_backgroundColor_disabledGray__13rr0b224", disabledDarkGray: "color_backgroundColor_disabledDarkGray__13rr0b225", placeholder: "color_backgroundColor_placeholder__13rr0b226", border: "color_backgroundColor_border__13rr0b227", boxShadow: "color_backgroundColor_boxShadow__13rr0b228", boxShadowActive: "color_backgroundColor_boxShadowActive__13rr0b229", alertRed: "color_backgroundColor_alertRed__13rr0b22a", alertBlue: "color_backgroundColor_alertBlue__13rr0b22b", alertGreen: "color_backgroundColor_alertGreen__13rr0b22c", darkOverlay: "color_backgroundColor_darkOverlay__13rr0b22d", transparent: "color_backgroundColor_transparent__13rr0b22e", brandBlueHover: "color_backgroundColor_brandBlueHover__13rr0b22f", brandYellowHover: "color_backgroundColor_brandYellowHover__13rr0b22g", brandPrioHover: "color_backgroundColor_brandPrioHover__13rr0b22h", brandBlueActive: "color_backgroundColor_brandBlueActive__13rr0b22i", brandYellowActive: "color_backgroundColor_brandYellowActive__13rr0b22j", brandPrioActive: "color_backgroundColor_brandPrioActive__13rr0b22k", none: "color_backgroundColor_none__13rr0b22l" }, open: { true: "SideModal_sideModalOverLayer_open_true__1scj0sn30", false: "SideModal_sideModalOverLayer_open_false__1scj0sn31" } }, defaultVariants: {}, compoundVariants: [] });
|
|
7
|
+
|
|
8
|
+
export { sideModal, sideModalOverLayer };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
3
|
+
|
|
4
|
+
declare type TSideModal = {
|
|
5
|
+
onBackdropClick: () => void;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
width?: string;
|
|
8
|
+
background?: TPaletteKeys;
|
|
9
|
+
isVisible?: boolean;
|
|
10
|
+
querySelector?: string;
|
|
11
|
+
slideFrom?: 'left' | 'right';
|
|
12
|
+
overlayBackground?: TPaletteKeys;
|
|
13
|
+
maxWidth?: string;
|
|
14
|
+
maxHeight?: string;
|
|
15
|
+
fullViewportHeight?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare const SideModal: ({ onBackdropClick, background, overlayBackground, width, isVisible, slideFrom, querySelector, maxWidth, children }: TSideModal) => React.ReactPortal;
|
|
18
|
+
|
|
19
|
+
export { SideModal, TSideModal };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
|
+
import { sideModalOverLayer, sideModal } from './SideModal.css.vanilla.js';
|
|
4
|
+
|
|
5
|
+
const SideModal = ({
|
|
6
|
+
onBackdropClick,
|
|
7
|
+
background = "white",
|
|
8
|
+
overlayBackground = "darkOverlay",
|
|
9
|
+
width = "375px",
|
|
10
|
+
isVisible,
|
|
11
|
+
slideFrom,
|
|
12
|
+
querySelector = "#root",
|
|
13
|
+
maxWidth,
|
|
14
|
+
children
|
|
15
|
+
}) => {
|
|
16
|
+
const ref = useRef(null);
|
|
17
|
+
const domSafe = typeof document !== "undefined";
|
|
18
|
+
return domSafe ? createPortal(
|
|
19
|
+
/* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: sideModalOverLayer({
|
|
23
|
+
backgroundColor: overlayBackground,
|
|
24
|
+
open: isVisible
|
|
25
|
+
}),
|
|
26
|
+
ref,
|
|
27
|
+
onMouseDown: (e) => {
|
|
28
|
+
if (ref && e.target === ref?.current) {
|
|
29
|
+
onBackdropClick();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
/* @__PURE__ */ React.createElement(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
className: sideModal({
|
|
37
|
+
backgroundColor: background,
|
|
38
|
+
slideVariants: slideFrom,
|
|
39
|
+
slideIn: slideFrom === "left" ? isVisible ? "leftIn" : "leftOut" : isVisible ? "rightIn" : "rightOut"
|
|
40
|
+
}),
|
|
41
|
+
style: { maxWidth, width }
|
|
42
|
+
},
|
|
43
|
+
children
|
|
44
|
+
)
|
|
45
|
+
)),
|
|
46
|
+
document.querySelector(querySelector) || document.body
|
|
47
|
+
) : null;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { SideModal };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { THardSpacingKeys, TBorderRadiusKeys } from '@citygross/design-tokens_v2';
|
|
2
3
|
|
|
3
4
|
declare type TSkeleton = {
|
|
@@ -6,5 +7,6 @@ declare type TSkeleton = {
|
|
|
6
7
|
borderRadius?: TBorderRadiusKeys;
|
|
7
8
|
className?: string;
|
|
8
9
|
};
|
|
10
|
+
declare const Skeleton: React.FC<TSkeleton>;
|
|
9
11
|
|
|
10
|
-
export { TSkeleton };
|
|
12
|
+
export { Skeleton, TSkeleton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const borderColor: Record<"
|
|
2
|
-
declare const borderRadius: Record<"
|
|
1
|
+
declare const borderColor: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
2
|
+
declare const borderRadius: Record<"none" | "big" | "small" | "round" | "default" | "large" | "extraSmall" | "bigger", string>;
|
|
3
3
|
|
|
4
4
|
export { borderColor, borderRadius };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const color: Record<"
|
|
2
|
-
declare const backgroundColor: Record<"
|
|
3
|
-
declare const hoverColor: Record<"
|
|
4
|
-
declare const hoverBackgroundColor: Record<"
|
|
1
|
+
declare const color: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
2
|
+
declare const backgroundColor: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
3
|
+
declare const hoverColor: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
4
|
+
declare const hoverBackgroundColor: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
5
5
|
|
|
6
6
|
export { backgroundColor, color, hoverBackgroundColor, hoverColor };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare const margin: Record<"
|
|
2
|
-
declare const marginHorizontal: Record<"
|
|
3
|
-
declare const marginVertical: Record<"
|
|
4
|
-
declare const marginBottomDynamic: Record<"
|
|
5
|
-
declare const padding: Record<"
|
|
6
|
-
declare const paddingHorizontal: Record<"
|
|
7
|
-
declare const paddingVertical: Record<"
|
|
1
|
+
declare const margin: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
2
|
+
declare const marginHorizontal: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
3
|
+
declare const marginVertical: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
4
|
+
declare const marginBottomDynamic: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
5
|
+
declare const padding: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
6
|
+
declare const paddingHorizontal: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
7
|
+
declare const paddingVertical: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
8
8
|
|
|
9
9
|
export { margin, marginBottomDynamic, marginHorizontal, marginVertical, padding, paddingHorizontal, paddingVertical };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,29 @@
|
|
|
1
|
-
export { Box, TBox } from './components/Box/Box.js';
|
|
2
1
|
export { AlertBox, TAlertBox } from './components/AlertBox/AlertBox.js';
|
|
3
|
-
export {
|
|
2
|
+
export { Box, TBox } from './components/Box/Box.js';
|
|
3
|
+
export { BoxArrow, TBoxArrow } from './components/BoxArrow/BoxArrow.js';
|
|
4
|
+
export { Button, TCgButton } from './components/Button/Button.js';
|
|
4
5
|
export { CartItemSummary, TCartItemSummary, TSummaryItem } from './components/CartItemSummary/CartItemSummary.js';
|
|
6
|
+
export { CartSummary, TCartSummary } from './components/CartSummary/CartSummary.js';
|
|
5
7
|
export { Divider, TDivider } from './components/Divider/Divider.js';
|
|
6
8
|
export { Dot, TDot } from './components/Dot/Dot.js';
|
|
7
9
|
export { FormControl, TFormControl, TScreenWidth } from './components/FormControl/FormControl.js';
|
|
10
|
+
export { Header, THeader } from './components/Header/Header.js';
|
|
8
11
|
export { Input, TInput } from './components/Input/Input.js';
|
|
9
12
|
export { EListItemAlignment, ListItem, TItem, TListItem } from './components/ListItem/ListItem.js';
|
|
10
|
-
export {
|
|
13
|
+
export { BorderPosition, borderStyle, orderTable, orderTd, orderTh, orderThead, orderTr } from './components/OrderTable/OrderTable.css.js';
|
|
14
|
+
export { MobileOrderLine } from './components/OrderTableMobile/OrderTableMobile.js';
|
|
15
|
+
export { Pagination, TPagination } from './components/Pagination/Pagination.js';
|
|
16
|
+
export { RippleContainer, TRippleContainer } from './components/RippleContainer/RippleContainer.js';
|
|
17
|
+
export { SideModal, TSideModal } from './components/SideModal/SideModal.js';
|
|
18
|
+
export { Skeleton, TSkeleton } from './components/Skeleton/Skeleton.js';
|
|
11
19
|
export { Spacer, TSpacer } from './components/Spacer/Spacer.js';
|
|
12
20
|
export { Spinner, TSpinner } from './components/Spinner/Spinner.js';
|
|
13
21
|
export { TTimeline, TTimelineItem, Timeline } from './components/TimeLine/TimeLine.js';
|
|
14
22
|
export { BodyText, TBodyText } from './typography/BodyText/BodyText.js';
|
|
23
|
+
export { Paragraph, TParagraph } from './typography/Paragraph/Paragraph.js';
|
|
24
|
+
export { H1, TH1 } from './typography/H1/H1.js';
|
|
25
|
+
export { H2, TH2 } from './typography/H2/H2.js';
|
|
26
|
+
export { H3, TH3 } from './typography/H3/H3.js';
|
|
15
27
|
export { borderColor, borderRadius } from './cssUtils/border.css.js';
|
|
16
28
|
export { backgroundColor, color, hoverBackgroundColor, hoverColor } from './cssUtils/color.css.js';
|
|
17
29
|
export { margin, marginBottomDynamic, marginHorizontal, marginVertical, padding, paddingHorizontal, paddingVertical } from './cssUtils/spacings.css.js';
|
|
18
|
-
export { CartSummary, TCartSummary } from './components/CartSummary/CartSummary.js';
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
export { Box } from './components/Box/Box.js';
|
|
2
1
|
export { AlertBox } from './components/AlertBox/AlertBox.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { Header } from './components/Header/Header.js';
|
|
2
|
+
export { Box } from './components/Box/Box.js';
|
|
3
|
+
export { BoxArrow } from './components/BoxArrow/BoxArrow.js';
|
|
4
|
+
export { Button } from './components/Button/Button.js';
|
|
7
5
|
export { CartItemSummary } from './components/CartItemSummary/CartItemSummary.js';
|
|
6
|
+
export { CartSummary } from './components/CartSummary/CartSummary.js';
|
|
8
7
|
export { Divider } from './components/Divider/Divider.js';
|
|
9
8
|
export { Dot } from './components/Dot/Dot.js';
|
|
10
9
|
export { FormControl, TScreenWidth } from './components/FormControl/FormControl.js';
|
|
10
|
+
export { Header } from './components/Header/Header.js';
|
|
11
11
|
export { Input } from './components/Input/Input.js';
|
|
12
12
|
export { EListItemAlignment, ListItem } from './components/ListItem/ListItem.js';
|
|
13
|
-
|
|
13
|
+
export { BorderPosition, borderStyle, orderTable, orderTd, orderTh, orderThead, orderTr } from './components/OrderTable/OrderTable.css.vanilla.js';
|
|
14
|
+
export { MobileOrderLine } from './components/OrderTableMobile/OrderTableMobile.js';
|
|
15
|
+
export { Pagination } from './components/Pagination/Pagination.js';
|
|
16
|
+
export { RippleContainer } from './components/RippleContainer/RippleContainer.js';
|
|
17
|
+
export { SideModal } from './components/SideModal/SideModal.js';
|
|
18
|
+
export { Skeleton } from './components/Skeleton/Skeleton.js';
|
|
14
19
|
export { Spacer } from './components/Spacer/Spacer.js';
|
|
15
20
|
export { Spinner } from './components/Spinner/Spinner.js';
|
|
16
21
|
export { Timeline } from './components/TimeLine/TimeLine.js';
|
|
17
22
|
export { BodyText } from './typography/BodyText/BodyText.js';
|
|
23
|
+
export { Paragraph } from './typography/Paragraph/Paragraph.js';
|
|
24
|
+
export { H1 } from './typography/H1/H1.js';
|
|
25
|
+
export { H2 } from './typography/H2/H2.js';
|
|
26
|
+
export { H3 } from './typography/H3/H3.js';
|
|
18
27
|
export { borderColor, borderRadius } from './cssUtils/border.css.vanilla.js';
|
|
19
28
|
export { backgroundColor, color, hoverBackgroundColor, hoverColor } from './cssUtils/color.css.vanilla.js';
|
|
20
29
|
export { margin, marginBottomDynamic, marginHorizontal, marginVertical, padding, paddingHorizontal, paddingVertical } from './cssUtils/spacings.css.vanilla.js';
|
|
21
|
-
export { CartSummary } from './components/CartSummary/CartSummary.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './../../cssUtils/typography.css.ts.vanilla.css';
|
|
2
2
|
import './../../cssUtils/color.css.ts.vanilla.css';
|
|
3
|
-
import '
|
|
3
|
+
import './BodyText.css.ts.vanilla.css';
|
|
4
4
|
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var bodyText = createRuntimeFn({ defaultClassName: "BodyText_bodyText__1lpefp40", 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
7
|
|
|
8
|
-
export {
|
|
8
|
+
export { bodyText };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { bodyText } from './BodyText.css.vanilla.js';
|
|
3
3
|
|
|
4
4
|
const BodyText = ({
|
|
5
5
|
children,
|
|
@@ -13,7 +13,7 @@ const BodyText = ({
|
|
|
13
13
|
return /* @__PURE__ */ React.createElement(
|
|
14
14
|
"p",
|
|
15
15
|
{
|
|
16
|
-
className: `${
|
|
16
|
+
className: `${bodyText({
|
|
17
17
|
bodyTextSize: size,
|
|
18
18
|
color,
|
|
19
19
|
textDecoration,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './../../cssUtils/typography.css.ts.vanilla.css';
|
|
2
|
+
import './../../cssUtils/color.css.ts.vanilla.css';
|
|
3
|
+
import './H1.css.ts.vanilla.css';
|
|
4
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
5
|
+
|
|
6
|
+
var H1Styles = createRuntimeFn({ defaultClassName: "H1_H1Styles__1u2ghpy0", variantClassNames: { 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" }, textDecoration: { lineThrough: "typography_textDecoration_lineThrough__xithytq", underline: "typography_textDecoration_underline__xithytr" }, fontWeight: { regular: "typography_fontWeight_regular__xithytc", medium: "typography_fontWeight_medium__xithytd", semiBold: "typography_fontWeight_semiBold__xithyte", bold: "typography_fontWeight_bold__xithytf" } }, defaultVariants: { color: "darkest", fontWeight: "bold" }, compoundVariants: [] });
|
|
7
|
+
|
|
8
|
+
export { H1Styles };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TPaletteKeys, TFontWeightKeys } from '@citygross/design-tokens_v2';
|
|
3
|
+
|
|
4
|
+
declare type TH1 = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
lineThrough?: boolean;
|
|
7
|
+
color?: TPaletteKeys;
|
|
8
|
+
fontWeight?: TFontWeightKeys;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const H1: ({ children, color, fontWeight, lineThrough, className }: TH1) => JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { H1, TH1 };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { H1Styles } from './H1.css.vanilla.js';
|
|
3
|
+
|
|
4
|
+
const H1 = ({
|
|
5
|
+
children,
|
|
6
|
+
color,
|
|
7
|
+
fontWeight,
|
|
8
|
+
lineThrough,
|
|
9
|
+
className
|
|
10
|
+
}) => {
|
|
11
|
+
return /* @__PURE__ */ React.createElement(
|
|
12
|
+
"h1",
|
|
13
|
+
{
|
|
14
|
+
className: `${H1Styles({
|
|
15
|
+
color,
|
|
16
|
+
textDecoration: lineThrough ? "lineThrough" : null,
|
|
17
|
+
fontWeight
|
|
18
|
+
})} ${className}`
|
|
19
|
+
},
|
|
20
|
+
children
|
|
21
|
+
);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { H1 };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './../../cssUtils/typography.css.ts.vanilla.css';
|
|
2
|
+
import './../../cssUtils/color.css.ts.vanilla.css';
|
|
3
|
+
import './H2.css.ts.vanilla.css';
|
|
4
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
5
|
+
|
|
6
|
+
var H2Styles = createRuntimeFn({ defaultClassName: "H2_H2Styles__1w776ou0", variantClassNames: { 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" }, textDecoration: { lineThrough: "typography_textDecoration_lineThrough__xithytq", underline: "typography_textDecoration_underline__xithytr" }, fontWeight: { regular: "typography_fontWeight_regular__xithytc", medium: "typography_fontWeight_medium__xithytd", semiBold: "typography_fontWeight_semiBold__xithyte", bold: "typography_fontWeight_bold__xithytf" } }, defaultVariants: { color: "darkest", fontWeight: "semiBold" }, compoundVariants: [] });
|
|
7
|
+
|
|
8
|
+
export { H2Styles };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TPaletteKeys, TFontWeightKeys } from '@citygross/design-tokens_v2';
|
|
3
|
+
|
|
4
|
+
declare type TH2 = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
lineThrough?: boolean;
|
|
7
|
+
color?: TPaletteKeys;
|
|
8
|
+
fontWeight?: TFontWeightKeys;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const H2: ({ children, color, fontWeight, lineThrough, className }: TH2) => JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { H2, TH2 };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { H2Styles } from './H2.css.vanilla.js';
|
|
3
|
+
|
|
4
|
+
const H2 = ({
|
|
5
|
+
children,
|
|
6
|
+
color,
|
|
7
|
+
fontWeight,
|
|
8
|
+
lineThrough,
|
|
9
|
+
className
|
|
10
|
+
}) => {
|
|
11
|
+
return /* @__PURE__ */ React.createElement(
|
|
12
|
+
"h2",
|
|
13
|
+
{
|
|
14
|
+
className: `${H2Styles({
|
|
15
|
+
color,
|
|
16
|
+
textDecoration: lineThrough ? "lineThrough" : null,
|
|
17
|
+
fontWeight
|
|
18
|
+
})} ${className}`
|
|
19
|
+
},
|
|
20
|
+
children
|
|
21
|
+
);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { H2 };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TPaletteKeys, TFontWeightKeys } from '@citygross/design-tokens_v2';
|
|
3
|
+
|
|
4
|
+
declare type TH3 = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
lineThrough?: boolean;
|
|
7
|
+
color?: TPaletteKeys;
|
|
8
|
+
fontWeight?: TFontWeightKeys;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const H3: ({ children, className, color, fontWeight, lineThrough }: TH3) => JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { H3, TH3 };
|
|
@@ -0,0 +1,8 @@
|
|
|
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 };
|