@latte-macchiat-io/latte-vanilla-components 0.0.424 → 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
|
|
|
@@ -64,13 +61,15 @@ export const consentContent = style(
|
|
|
64
61
|
paddingLeft: themeContract.consentCookie.paddingLeft,
|
|
65
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.consentCookie.
|
|
69
|
-
sm: `calc(100% - ${themeContract.consentCookie.
|
|
70
|
-
md: `calc(100% - ${themeContract.consentCookie.
|
|
71
|
-
lg: `calc(100% - ${themeContract.consentCookie.
|
|
72
|
-
xl: `calc(100% - ${themeContract.consentCookie.
|
|
73
|
-
'2xl': `calc(100% - ${themeContract.consentCookie.
|
|
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,6 +4,9 @@ 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' },
|
|
@@ -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',
|