@citygross/components_v2 0.0.42 → 0.0.44
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 +3 -3
- package/dist/components/BoxArrow/BoxArrow.d.ts +2 -2
- package/dist/components/BoxArrow/BoxArrow.js +1 -1
- package/dist/components/SideModal/SideModal.css.ts.vanilla.css +25 -16
- package/dist/components/SideModal/SideModal.css.vanilla.js +2 -2
- package/dist/cssUtils/typography.css.d.ts +1 -1
- package/package.json +2 -2
|
@@ -13,14 +13,14 @@ function AlertBox({
|
|
|
13
13
|
padding = "sm",
|
|
14
14
|
children
|
|
15
15
|
}) {
|
|
16
|
-
return /* @__PURE__ */ React.createElement("div", null, withArrow
|
|
16
|
+
return /* @__PURE__ */ React.createElement("div", null, withArrow ? /* @__PURE__ */ React.createElement(
|
|
17
17
|
BoxArrow,
|
|
18
18
|
{
|
|
19
19
|
arrowPlacement,
|
|
20
20
|
arrowSpacing,
|
|
21
21
|
background
|
|
22
22
|
}
|
|
23
|
-
), /* @__PURE__ */ React.createElement(
|
|
23
|
+
) : null, /* @__PURE__ */ React.createElement(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
26
|
className: alertBox({
|
|
@@ -30,7 +30,7 @@ function AlertBox({
|
|
|
30
30
|
padding
|
|
31
31
|
})
|
|
32
32
|
},
|
|
33
|
-
icon
|
|
33
|
+
icon ? /* @__PURE__ */ React.createElement("div", { className: iconContainer({ minWidth: `${iconMinWidth}` }) }, icon) : null,
|
|
34
34
|
children
|
|
35
35
|
));
|
|
36
36
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { THardSpacingKeys } from '@citygross/design-tokens_v2';
|
|
1
|
+
import { THardSpacingKeys, TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
2
2
|
|
|
3
3
|
declare type TBoxArrow = {
|
|
4
4
|
arrowPlacement?: 'left' | 'right';
|
|
5
5
|
arrowSpacing?: THardSpacingKeys;
|
|
6
|
-
background?:
|
|
6
|
+
background?: TPaletteKeys;
|
|
7
7
|
};
|
|
8
8
|
declare const BoxArrow: ({ arrowPlacement, arrowSpacing, background }: TBoxArrow) => JSX.Element;
|
|
9
9
|
|
|
@@ -38,13 +38,23 @@
|
|
|
38
38
|
opacity: 0;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
@keyframes SideModal_outOverlay__1scj0sn4 {
|
|
42
|
+
from {
|
|
43
|
+
z-index: 5;
|
|
44
|
+
opacity: 1;
|
|
45
|
+
}
|
|
46
|
+
to {
|
|
47
|
+
opacity: 0;
|
|
48
|
+
z-index: -1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.SideModal_slideVariants_left__1scj0sn5 {
|
|
42
52
|
left: -100%;
|
|
43
53
|
}
|
|
44
|
-
.
|
|
54
|
+
.SideModal_slideVariants_right__1scj0sn6 {
|
|
45
55
|
right: 100%;
|
|
46
56
|
}
|
|
47
|
-
.
|
|
57
|
+
.SideModal_sideModal__1scj0sn7 {
|
|
48
58
|
height: 100vh;
|
|
49
59
|
width: 100%;
|
|
50
60
|
position: absolute;
|
|
@@ -55,22 +65,22 @@
|
|
|
55
65
|
-ms-overflow-style: none;
|
|
56
66
|
scrollbar-width: none;
|
|
57
67
|
}
|
|
58
|
-
.
|
|
68
|
+
.SideModal_sideModal__1scj0sn7::-webkit-scrollbar {
|
|
59
69
|
display: none;
|
|
60
70
|
}
|
|
61
|
-
.
|
|
71
|
+
.SideModal_sideModal_slideIn_leftIn__1scj0sn1n {
|
|
62
72
|
animation: SideModal_slideLeft__1scj0sn0 300ms ease-out forwards;
|
|
63
73
|
}
|
|
64
|
-
.
|
|
74
|
+
.SideModal_sideModal_slideIn_rightIn__1scj0sn1o {
|
|
65
75
|
animation: SideModal_slideRight__1scj0sn1 300ms ease-out forwards;
|
|
66
76
|
}
|
|
67
|
-
.
|
|
77
|
+
.SideModal_sideModal_slideIn_leftOut__1scj0sn1p {
|
|
68
78
|
animation: SideModal_slideOutLeft__1scj0sn2 300ms ease-out forwards;
|
|
69
79
|
}
|
|
70
|
-
.
|
|
80
|
+
.SideModal_sideModal_slideIn_rightOut__1scj0sn1q {
|
|
71
81
|
animation: SideModal_slideOutRight__1scj0sn3 300ms ease-out forwards;
|
|
72
82
|
}
|
|
73
|
-
.
|
|
83
|
+
.SideModal_sideModalOverLayer__1scj0sn1r {
|
|
74
84
|
display: flex;
|
|
75
85
|
justify-content: center;
|
|
76
86
|
align-items: center;
|
|
@@ -82,23 +92,22 @@
|
|
|
82
92
|
right: 0;
|
|
83
93
|
height: 100%;
|
|
84
94
|
opacity: 0;
|
|
85
|
-
transition:
|
|
95
|
+
transition: all 300ms ease-out;
|
|
86
96
|
}
|
|
87
|
-
.
|
|
97
|
+
.SideModal_sideModalOverLayer_open_true__1scj0sn35 {
|
|
88
98
|
opacity: 1;
|
|
89
99
|
z-index: 5;
|
|
90
100
|
}
|
|
91
|
-
.
|
|
92
|
-
|
|
93
|
-
z-index: -1;
|
|
101
|
+
.SideModal_sideModalOverLayer_open_false__1scj0sn36 {
|
|
102
|
+
animation: SideModal_outOverlay__1scj0sn4 300ms ease-out forwards;
|
|
94
103
|
}
|
|
95
104
|
@media screen and (min-width: 576px) {
|
|
96
|
-
.
|
|
105
|
+
.SideModal_sideModal__1scj0sn7 {
|
|
97
106
|
max-height: unset;
|
|
98
107
|
}
|
|
99
108
|
}
|
|
100
109
|
@supports (height: 100dvh) {
|
|
101
|
-
.
|
|
110
|
+
.SideModal_sideModal__1scj0sn7 {
|
|
102
111
|
height: 100dvh;
|
|
103
112
|
}
|
|
104
113
|
}
|
|
@@ -2,7 +2,7 @@ import './../../cssUtils/color.css.ts.vanilla.css';
|
|
|
2
2
|
import './SideModal.css.ts.vanilla.css';
|
|
3
3
|
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
4
4
|
|
|
5
|
-
var sideModal = createRuntimeFn({ defaultClassName: "
|
|
6
|
-
var sideModalOverLayer = createRuntimeFn({ defaultClassName: "
|
|
5
|
+
var sideModal = createRuntimeFn({ defaultClassName: "SideModal_sideModal__1scj0sn7", variantClassNames: { backgroundColor: { primary: "color_backgroundColor_primary__13rr0b21d", secondary: "color_backgroundColor_secondary__13rr0b21e", brandYellow: "color_backgroundColor_brandYellow__13rr0b21f", brandBlue: "color_backgroundColor_brandBlue__13rr0b21g", brandPurple: "color_backgroundColor_brandPurple__13rr0b21h", brandPrio: "color_backgroundColor_brandPrio__13rr0b21i", yellowLighter: "color_backgroundColor_yellowLighter__13rr0b21j", yellowLight: "color_backgroundColor_yellowLight__13rr0b21k", blueLight: "color_backgroundColor_blueLight__13rr0b21l", blueLighter: "color_backgroundColor_blueLighter__13rr0b21m", blueMedium: "color_backgroundColor_blueMedium__13rr0b21n", greenLight: "color_backgroundColor_greenLight__13rr0b21o", greenMedium: "color_backgroundColor_greenMedium__13rr0b21p", redLight: "color_backgroundColor_redLight__13rr0b21q", recipeVego: "color_backgroundColor_recipeVego__13rr0b21r", recipeLactose: "color_backgroundColor_recipeLactose__13rr0b21s", recipeGluten: "color_backgroundColor_recipeGluten__13rr0b21t", myPrioGoldDark: "color_backgroundColor_myPrioGoldDark__13rr0b21u", myPrioGoldLight: "color_backgroundColor_myPrioGoldLight__13rr0b21v", link: "color_backgroundColor_link__13rr0b21w", white: "color_backgroundColor_white__13rr0b21x", black: "color_backgroundColor_black__13rr0b21y", lightest: "color_backgroundColor_lightest__13rr0b21z", lighter: "color_backgroundColor_lighter__13rr0b220", light: "color_backgroundColor_light__13rr0b221", medium: "color_backgroundColor_medium__13rr0b222", mediumDark: "color_backgroundColor_mediumDark__13rr0b223", dark: "color_backgroundColor_dark__13rr0b224", darker: "color_backgroundColor_darker__13rr0b225", darkest: "color_backgroundColor_darkest__13rr0b226", buttonGray: "color_backgroundColor_buttonGray__13rr0b227", disabledGray: "color_backgroundColor_disabledGray__13rr0b228", disabledDarkGray: "color_backgroundColor_disabledDarkGray__13rr0b229", placeholder: "color_backgroundColor_placeholder__13rr0b22a", border: "color_backgroundColor_border__13rr0b22b", boxShadow: "color_backgroundColor_boxShadow__13rr0b22c", boxShadowActive: "color_backgroundColor_boxShadowActive__13rr0b22d", alertRed: "color_backgroundColor_alertRed__13rr0b22e", alertBlue: "color_backgroundColor_alertBlue__13rr0b22f", alertGreen: "color_backgroundColor_alertGreen__13rr0b22g", darkOverlay: "color_backgroundColor_darkOverlay__13rr0b22h", transparent: "color_backgroundColor_transparent__13rr0b22i", brandBlueHover: "color_backgroundColor_brandBlueHover__13rr0b22j", brandYellowHover: "color_backgroundColor_brandYellowHover__13rr0b22k", brandPrioHover: "color_backgroundColor_brandPrioHover__13rr0b22l", brandBlueActive: "color_backgroundColor_brandBlueActive__13rr0b22m", brandYellowActive: "color_backgroundColor_brandYellowActive__13rr0b22n", brandPrioActive: "color_backgroundColor_brandPrioActive__13rr0b22o", none: "color_backgroundColor_none__13rr0b22p" }, slideVariants: { left: "SideModal_slideVariants_left__1scj0sn5", right: "SideModal_slideVariants_right__1scj0sn6" }, slideIn: { leftIn: "SideModal_sideModal_slideIn_leftIn__1scj0sn1n", rightIn: "SideModal_sideModal_slideIn_rightIn__1scj0sn1o", leftOut: "SideModal_sideModal_slideIn_leftOut__1scj0sn1p", rightOut: "SideModal_sideModal_slideIn_rightOut__1scj0sn1q" } }, defaultVariants: {}, compoundVariants: [] });
|
|
6
|
+
var sideModalOverLayer = createRuntimeFn({ defaultClassName: "SideModal_sideModalOverLayer__1scj0sn1r", variantClassNames: { backgroundColor: { primary: "color_backgroundColor_primary__13rr0b21d", secondary: "color_backgroundColor_secondary__13rr0b21e", brandYellow: "color_backgroundColor_brandYellow__13rr0b21f", brandBlue: "color_backgroundColor_brandBlue__13rr0b21g", brandPurple: "color_backgroundColor_brandPurple__13rr0b21h", brandPrio: "color_backgroundColor_brandPrio__13rr0b21i", yellowLighter: "color_backgroundColor_yellowLighter__13rr0b21j", yellowLight: "color_backgroundColor_yellowLight__13rr0b21k", blueLight: "color_backgroundColor_blueLight__13rr0b21l", blueLighter: "color_backgroundColor_blueLighter__13rr0b21m", blueMedium: "color_backgroundColor_blueMedium__13rr0b21n", greenLight: "color_backgroundColor_greenLight__13rr0b21o", greenMedium: "color_backgroundColor_greenMedium__13rr0b21p", redLight: "color_backgroundColor_redLight__13rr0b21q", recipeVego: "color_backgroundColor_recipeVego__13rr0b21r", recipeLactose: "color_backgroundColor_recipeLactose__13rr0b21s", recipeGluten: "color_backgroundColor_recipeGluten__13rr0b21t", myPrioGoldDark: "color_backgroundColor_myPrioGoldDark__13rr0b21u", myPrioGoldLight: "color_backgroundColor_myPrioGoldLight__13rr0b21v", link: "color_backgroundColor_link__13rr0b21w", white: "color_backgroundColor_white__13rr0b21x", black: "color_backgroundColor_black__13rr0b21y", lightest: "color_backgroundColor_lightest__13rr0b21z", lighter: "color_backgroundColor_lighter__13rr0b220", light: "color_backgroundColor_light__13rr0b221", medium: "color_backgroundColor_medium__13rr0b222", mediumDark: "color_backgroundColor_mediumDark__13rr0b223", dark: "color_backgroundColor_dark__13rr0b224", darker: "color_backgroundColor_darker__13rr0b225", darkest: "color_backgroundColor_darkest__13rr0b226", buttonGray: "color_backgroundColor_buttonGray__13rr0b227", disabledGray: "color_backgroundColor_disabledGray__13rr0b228", disabledDarkGray: "color_backgroundColor_disabledDarkGray__13rr0b229", placeholder: "color_backgroundColor_placeholder__13rr0b22a", border: "color_backgroundColor_border__13rr0b22b", boxShadow: "color_backgroundColor_boxShadow__13rr0b22c", boxShadowActive: "color_backgroundColor_boxShadowActive__13rr0b22d", alertRed: "color_backgroundColor_alertRed__13rr0b22e", alertBlue: "color_backgroundColor_alertBlue__13rr0b22f", alertGreen: "color_backgroundColor_alertGreen__13rr0b22g", darkOverlay: "color_backgroundColor_darkOverlay__13rr0b22h", transparent: "color_backgroundColor_transparent__13rr0b22i", brandBlueHover: "color_backgroundColor_brandBlueHover__13rr0b22j", brandYellowHover: "color_backgroundColor_brandYellowHover__13rr0b22k", brandPrioHover: "color_backgroundColor_brandPrioHover__13rr0b22l", brandBlueActive: "color_backgroundColor_brandBlueActive__13rr0b22m", brandYellowActive: "color_backgroundColor_brandYellowActive__13rr0b22n", brandPrioActive: "color_backgroundColor_brandPrioActive__13rr0b22o", none: "color_backgroundColor_none__13rr0b22p" }, open: { true: "SideModal_sideModalOverLayer_open_true__1scj0sn35", false: "SideModal_sideModalOverLayer_open_false__1scj0sn36" } }, defaultVariants: {}, compoundVariants: [] });
|
|
7
7
|
|
|
8
8
|
export { sideModal, sideModalOverLayer };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare type TTextDecoration = 'underline' | 'lineThrough';
|
|
2
2
|
declare type TTextAlign = 'center' | 'left' | 'right';
|
|
3
3
|
declare type TBodyTextSizeKeys = 'tiny' | 'extraSmall' | 'small' | 'default';
|
|
4
|
-
declare const fontFamily: Record<"display" | "
|
|
4
|
+
declare const fontFamily: Record<"display" | "primary" | "code", string>;
|
|
5
5
|
declare const fontSize: Record<"xs" | "code" | "s1" | "s2" | "s3" | "s4" | "m1" | "m2" | "l1", string>;
|
|
6
6
|
declare const fontWeight: Record<"bold" | "medium" | "regular" | "semiBold", string>;
|
|
7
7
|
declare const lineHeight: Record<"xs" | "s1" | "s2" | "m1" | "m2" | "l1" | "m3", string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components_v2",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.44",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"react-slick": "^0.30.1",
|
|
80
80
|
"slick-carousel": "^1.8.1"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "e4ebd12eb9db14bd79a1e2f3e08372be3022d952"
|
|
83
83
|
}
|