@latte-macchiat-io/latte-vanilla-components 0.0.423 → 0.0.425
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/package.json
CHANGED
|
@@ -50,10 +50,7 @@ export const consentContent = style(
|
|
|
50
50
|
display: 'flex',
|
|
51
51
|
position: 'fixed',
|
|
52
52
|
flexDirection: 'column',
|
|
53
|
-
right: themeContract.space.md,
|
|
54
|
-
bottom: themeContract.space.md,
|
|
55
53
|
animation: `${slideUp} 0.3s ease-out`,
|
|
56
|
-
|
|
57
54
|
borderRadius: themeContract.modal.borderRadius,
|
|
58
55
|
backgroundColor: themeContract.modal.backgroundColor,
|
|
59
56
|
|
|
@@ -61,16 +58,18 @@ export const consentContent = style(
|
|
|
61
58
|
...generateResponsiveMedia({
|
|
62
59
|
width: themeContract.consentCookie.width,
|
|
63
60
|
paddingTop: themeContract.consentCookie.paddingTop,
|
|
64
|
-
paddingLeft: themeContract.
|
|
65
|
-
paddingRight: themeContract.
|
|
61
|
+
paddingLeft: themeContract.consentCookie.paddingLeft,
|
|
62
|
+
paddingRight: themeContract.consentCookie.paddingRight,
|
|
66
63
|
paddingBottom: themeContract.consentCookie.paddingBottom,
|
|
64
|
+
right: themeContract.consentCookie.modalRightPosition,
|
|
65
|
+
bottom: themeContract.consentCookie.modalBottomPosition,
|
|
67
66
|
maxWidth: {
|
|
68
|
-
mobile: `calc(100% - ${themeContract.
|
|
69
|
-
sm: `calc(100% - ${themeContract.
|
|
70
|
-
md: `calc(100% - ${themeContract.
|
|
71
|
-
lg: `calc(100% - ${themeContract.
|
|
72
|
-
xl: `calc(100% - ${themeContract.
|
|
73
|
-
'2xl': `calc(100% - ${themeContract.
|
|
67
|
+
mobile: `calc(100% - ${themeContract.consentCookie.modalRightPosition.mobile} - ${themeContract.consentCookie.modalRightPosition.mobile})`,
|
|
68
|
+
sm: `calc(100% - ${themeContract.consentCookie.modalRightPosition.sm} - ${themeContract.consentCookie.modalRightPosition.sm})`,
|
|
69
|
+
md: `calc(100% - ${themeContract.consentCookie.modalRightPosition.md} - ${themeContract.consentCookie.modalRightPosition.md})`,
|
|
70
|
+
lg: `calc(100% - ${themeContract.consentCookie.modalRightPosition.lg} - ${themeContract.consentCookie.modalRightPosition.lg})`,
|
|
71
|
+
xl: `calc(100% - ${themeContract.consentCookie.modalRightPosition.xl} - ${themeContract.consentCookie.modalRightPosition.xl})`,
|
|
72
|
+
'2xl': `calc(100% - ${themeContract.consentCookie.modalRightPosition['2xl']} - ${themeContract.consentCookie.modalRightPosition['2xl']})`,
|
|
74
73
|
},
|
|
75
74
|
}),
|
|
76
75
|
},
|
|
@@ -4,9 +4,14 @@ const themeConsentCookieBase = {
|
|
|
4
4
|
overlayBlur: '0',
|
|
5
5
|
borderRadius: '30px',
|
|
6
6
|
|
|
7
|
+
modalRightPosition: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
8
|
+
modalBottomPosition: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
9
|
+
|
|
7
10
|
gap: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
8
11
|
width: { mobile: '100%', sm: '200px', md: '600px', lg: '600px', xl: '800px', '2xl': '800px' },
|
|
9
12
|
paddingTop: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
13
|
+
paddingLeft: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
14
|
+
paddingRight: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
10
15
|
paddingBottom: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
11
16
|
},
|
|
12
17
|
};
|
|
@@ -1028,6 +1028,24 @@ export const themeContract = createGlobalThemeContract({
|
|
|
1028
1028
|
overlayBlur: 'latte-consentCookie-overlayBlur',
|
|
1029
1029
|
overlayBackgroundColor: 'latte-consentCookie-overlayBackgroundColor',
|
|
1030
1030
|
|
|
1031
|
+
modalRightPosition: {
|
|
1032
|
+
mobile: 'latte-consentCookie-modalRightPosition-mobile',
|
|
1033
|
+
sm: 'latte-consentCookie-modalRightPosition-sm',
|
|
1034
|
+
md: 'latte-consentCookie-modalRightPosition-md',
|
|
1035
|
+
lg: 'latte-consentCookie-modalRightPosition-lg',
|
|
1036
|
+
xl: 'latte-consentCookie-modalRightPosition-xl',
|
|
1037
|
+
'2xl': 'latte-consentCookie-modalRightPosition-2xl',
|
|
1038
|
+
},
|
|
1039
|
+
|
|
1040
|
+
modalBottomPosition: {
|
|
1041
|
+
mobile: 'latte-consentCookie-modalBottomPosition-mobile',
|
|
1042
|
+
sm: 'latte-consentCookie-modalBottomPosition-sm',
|
|
1043
|
+
md: 'latte-consentCookie-modalBottomPosition-md',
|
|
1044
|
+
lg: 'latte-consentCookie-modalBottomPosition-lg',
|
|
1045
|
+
xl: 'latte-consentCookie-modalBottomPosition-xl',
|
|
1046
|
+
'2xl': 'latte-consentCookie-modalBottomPosition-2xl',
|
|
1047
|
+
},
|
|
1048
|
+
|
|
1031
1049
|
gap: {
|
|
1032
1050
|
mobile: 'latte-consentCookie-gap-mobile',
|
|
1033
1051
|
sm: 'latte-consentCookie-gap-sm',
|
|
@@ -1060,5 +1078,21 @@ export const themeContract = createGlobalThemeContract({
|
|
|
1060
1078
|
xl: 'latte-consentCookie-paddingBottom-xl',
|
|
1061
1079
|
'2xl': 'latte-consentCookie-paddingBottom-2xl',
|
|
1062
1080
|
},
|
|
1081
|
+
paddingLeft: {
|
|
1082
|
+
mobile: 'latte-consentCookie-paddingLeft-mobile',
|
|
1083
|
+
sm: 'latte-consentCookie-paddingLeft-sm',
|
|
1084
|
+
md: 'latte-consentCookie-paddingLeft-md',
|
|
1085
|
+
lg: 'latte-consentCookie-paddingLeft-lg',
|
|
1086
|
+
xl: 'latte-consentCookie-paddingLeft-xl',
|
|
1087
|
+
'2xl': 'latte-consentCookie-paddingLeft-2xl',
|
|
1088
|
+
},
|
|
1089
|
+
paddingRight: {
|
|
1090
|
+
mobile: 'latte-consentCookie-paddingRight-mobile',
|
|
1091
|
+
sm: 'latte-consentCookie-paddingRight-sm',
|
|
1092
|
+
md: 'latte-consentCookie-paddingRight-md',
|
|
1093
|
+
lg: 'latte-consentCookie-paddingRight-lg',
|
|
1094
|
+
xl: 'latte-consentCookie-paddingRight-xl',
|
|
1095
|
+
'2xl': 'latte-consentCookie-paddingRight-2xl',
|
|
1096
|
+
},
|
|
1063
1097
|
},
|
|
1064
1098
|
});
|