@latte-macchiat-io/latte-vanilla-components 0.0.427 → 0.0.428
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
|
@@ -91,8 +91,9 @@ export const ConsentCookie = ({
|
|
|
91
91
|
<div className={cn(consentOverlay, className)} role="dialog" aria-modal="true" aria-labelledby="consent-title">
|
|
92
92
|
<div className={consentContent}>
|
|
93
93
|
{children}
|
|
94
|
+
|
|
94
95
|
<div className={consentActions}>
|
|
95
|
-
<Button size="sm" variant="secondary" onClick={handleReject}>
|
|
96
|
+
<Button size="sm" variant="secondary" style="outline" onClick={handleReject}>
|
|
96
97
|
{translations?.actions.reject || 'Reject'}
|
|
97
98
|
</Button>
|
|
98
99
|
<Button variant="primary" size="sm" onClick={handleAccept}>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { keyframes, style } from '@vanilla-extract/css';
|
|
2
|
-
import { queries } from '../../styles/mediaqueries';
|
|
3
2
|
import { themeContract } from '../../theme/contract.css';
|
|
4
3
|
import { generateResponsiveMedia } from '../../utils/generateResponsiveMedia';
|
|
5
4
|
|
|
@@ -79,16 +78,15 @@ export const consentContent = style(
|
|
|
79
78
|
export const consentActions = style(
|
|
80
79
|
{
|
|
81
80
|
display: 'flex',
|
|
81
|
+
flexWrap: 'wrap',
|
|
82
82
|
alignItems: 'center',
|
|
83
83
|
justifyContent: 'flex-end',
|
|
84
|
-
gap: themeContract.space.md,
|
|
85
|
-
marginTop: themeContract.space.lg,
|
|
86
|
-
flexWrap: 'wrap',
|
|
87
84
|
|
|
88
85
|
'@media': {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
...generateResponsiveMedia({
|
|
87
|
+
gap: themeContract.consentCookie.actionsGap,
|
|
88
|
+
marginTop: themeContract.consentCookie.actionsMarginTop,
|
|
89
|
+
}),
|
|
92
90
|
},
|
|
93
91
|
},
|
|
94
92
|
'consent-actions'
|
|
@@ -7,12 +7,14 @@ const themeConsentCookieBase = {
|
|
|
7
7
|
modalRightPosition: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
8
8
|
modalBottomPosition: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
9
9
|
|
|
10
|
-
gap: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
11
10
|
width: { mobile: '100%', sm: '200px', md: '600px', lg: '600px', xl: '800px', '2xl': '800px' },
|
|
12
11
|
paddingTop: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
13
12
|
paddingLeft: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
14
13
|
paddingRight: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
15
14
|
paddingBottom: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
15
|
+
|
|
16
|
+
actionsGap: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
17
|
+
actionsMarginTop: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
|
|
16
18
|
},
|
|
17
19
|
};
|
|
18
20
|
|
|
@@ -1046,13 +1046,22 @@ export const themeContract = createGlobalThemeContract({
|
|
|
1046
1046
|
'2xl': 'latte-consentCookie-modalBottomPosition-2xl',
|
|
1047
1047
|
},
|
|
1048
1048
|
|
|
1049
|
-
|
|
1050
|
-
mobile: 'latte-consentCookie-
|
|
1051
|
-
sm: 'latte-consentCookie-
|
|
1052
|
-
md: 'latte-consentCookie-
|
|
1053
|
-
lg: 'latte-consentCookie-
|
|
1054
|
-
xl: 'latte-consentCookie-
|
|
1055
|
-
'2xl': 'latte-consentCookie-
|
|
1049
|
+
actionsMarginTop: {
|
|
1050
|
+
mobile: 'latte-consentCookie-actionsMarginTop-mobile',
|
|
1051
|
+
sm: 'latte-consentCookie-actionsMarginTop-sm',
|
|
1052
|
+
md: 'latte-consentCookie-actionsMarginTop-md',
|
|
1053
|
+
lg: 'latte-consentCookie-actionsMarginTop-lg',
|
|
1054
|
+
xl: 'latte-consentCookie-actionsMarginTop-xl',
|
|
1055
|
+
'2xl': 'latte-consentCookie-actionsMarginTop-2xl',
|
|
1056
|
+
},
|
|
1057
|
+
|
|
1058
|
+
actionsGap: {
|
|
1059
|
+
mobile: 'latte-consentCookie-actionsGap-mobile',
|
|
1060
|
+
sm: 'latte-consentCookie-actionsGap-sm',
|
|
1061
|
+
md: 'latte-consentCookie-actionsGap-md',
|
|
1062
|
+
lg: 'latte-consentCookie-actionsGap-lg',
|
|
1063
|
+
xl: 'latte-consentCookie-actionsGap-xl',
|
|
1064
|
+
'2xl': 'latte-consentCookie-actionsGap-2xl',
|
|
1056
1065
|
},
|
|
1057
1066
|
width: {
|
|
1058
1067
|
mobile: 'latte-consentCookie-width-mobile',
|