@latte-macchiat-io/latte-vanilla-components 0.0.245 → 0.0.247
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 +1 -1
- package/src/components/Actions/styles.css.ts +42 -39
- package/src/components/Button/styles.css.ts +106 -103
- package/src/components/Carousel/styles.css.ts +140 -116
- package/src/components/Columns/styles.css.ts +32 -29
- package/src/components/ConsentCookie/styles.css.ts +134 -123
- package/src/components/Form/Form.css.ts +50 -47
- package/src/components/Form/Row/Row.css.ts +55 -52
- package/src/components/Form/TextField/Input/Input.css.ts +44 -41
- package/src/components/Form/TextField/Label/Label.css.ts +50 -44
- package/src/components/Form/TextField/TextField.css.ts +38 -35
- package/src/components/Form/TextField/Textarea/Textarea.css.ts +102 -96
- package/src/components/Header/HeaderToggleNav/index.tsx +10 -4
- package/src/components/Header/HeaderToggleNav/styles.css.ts +35 -29
- package/src/components/Header/index.tsx +1 -1
- package/src/components/Header/styles.css.ts +88 -76
- package/src/components/Heading/styles.css.ts +94 -91
- package/src/components/KeyNumber/styles.css.ts +60 -54
- package/src/components/LanguageSwitcher/styles.css.ts +112 -100
- package/src/components/Modal/styles.css.ts +77 -68
- package/src/components/Nav/styles.css.ts +22 -19
- package/src/components/NavLegal/styles.css.ts +16 -13
- package/src/components/NavSocial/styles.css.ts +21 -15
- package/src/components/Section/styles.css.ts +105 -99
- package/src/components/ThemeToggle/styles.css.ts +11 -8
- package/src/components/Video/styles.css.ts +163 -139
package/package.json
CHANGED
@@ -3,53 +3,56 @@ import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
|
|
3
3
|
import { themeContract } from '../../theme/contract.css';
|
4
4
|
import { generateResponsiveMedia } from '../../utils/generateResponsiveMedia';
|
5
5
|
|
6
|
-
export const actionsRecipe = recipe(
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
export const actionsRecipe = recipe(
|
7
|
+
{
|
8
|
+
base: [
|
9
|
+
{
|
10
|
+
width: '100%',
|
11
|
+
display: 'flex',
|
12
|
+
flexWrap: 'wrap',
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
'@media': {
|
15
|
+
...generateResponsiveMedia({
|
16
|
+
gap: themeContract.actions.gap,
|
17
|
+
paddingTop: themeContract.actions.paddingBottom,
|
18
|
+
paddingBottom: themeContract.actions.paddingBottom,
|
19
|
+
}),
|
20
|
+
},
|
19
21
|
},
|
20
|
-
|
21
|
-
],
|
22
|
+
],
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
24
|
+
variants: {
|
25
|
+
align: {
|
26
|
+
left: {
|
27
|
+
alignItems: 'flex-start',
|
28
|
+
justifyContent: 'flex-start',
|
29
|
+
},
|
30
|
+
center: {
|
31
|
+
alignItems: 'center',
|
32
|
+
justifyContent: 'center',
|
33
|
+
},
|
34
|
+
right: {
|
35
|
+
alignItems: 'flex-end',
|
36
|
+
justifyContent: 'flex-end',
|
37
|
+
},
|
32
38
|
},
|
33
|
-
right: {
|
34
|
-
alignItems: 'flex-end',
|
35
|
-
justifyContent: 'flex-end',
|
36
|
-
},
|
37
|
-
},
|
38
39
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
40
|
+
direction: {
|
41
|
+
row: {
|
42
|
+
flexDirection: 'row',
|
43
|
+
},
|
44
|
+
column: {
|
45
|
+
flexDirection: 'column',
|
46
|
+
},
|
45
47
|
},
|
46
48
|
},
|
47
|
-
},
|
48
49
|
|
49
|
-
|
50
|
-
|
51
|
-
|
50
|
+
defaultVariants: {
|
51
|
+
align: 'left',
|
52
|
+
direction: 'row',
|
53
|
+
},
|
52
54
|
},
|
53
|
-
|
55
|
+
'actions'
|
56
|
+
);
|
54
57
|
|
55
58
|
export type ActionsVariants = RecipeVariants<typeof actionsRecipe>;
|
@@ -3,129 +3,132 @@ import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
|
|
3
3
|
import { themeContract } from '../../theme/contract.css';
|
4
4
|
import { generateResponsiveMedia } from '../../utils/generateResponsiveMedia';
|
5
5
|
|
6
|
-
export const buttonRecipe = recipe(
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
6
|
+
export const buttonRecipe = recipe(
|
7
|
+
{
|
8
|
+
base: {
|
9
|
+
border: 'none',
|
10
|
+
outline: 'none',
|
11
|
+
cursor: 'pointer',
|
12
|
+
alignItems: 'center',
|
13
|
+
textDecoration: 'none',
|
14
|
+
display: 'inline-flex',
|
15
|
+
justifyContent: 'center',
|
16
|
+
|
17
|
+
minWidth: themeContract.button.minWidth,
|
18
|
+
fontWeight: themeContract.button.fontWeight,
|
19
|
+
transition: themeContract.button.transition,
|
20
|
+
fontFamily: themeContract.button.fontFamily,
|
21
|
+
borderRadius: themeContract.button.borderRadius,
|
22
|
+
letterSpacing: themeContract.button.letterSpacing,
|
23
|
+
|
24
|
+
':hover': {
|
25
|
+
opacity: '0.8',
|
26
|
+
},
|
26
27
|
|
27
|
-
|
28
|
+
':active': {},
|
28
29
|
|
29
|
-
|
30
|
+
':focus-visible': {},
|
30
31
|
|
31
|
-
|
32
|
-
|
33
|
-
|
32
|
+
':disabled': {
|
33
|
+
opacity: '0.5',
|
34
|
+
pointerEvents: 'none',
|
35
|
+
},
|
34
36
|
},
|
35
|
-
},
|
36
37
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
38
|
+
variants: {
|
39
|
+
variant: {
|
40
|
+
primary: {
|
41
|
+
color: themeContract.button.variant.primary.color,
|
42
|
+
backgroundColor: themeContract.button.variant.primary.backgroundColor,
|
43
|
+
},
|
43
44
|
|
44
|
-
|
45
|
-
|
46
|
-
|
45
|
+
secondary: {
|
46
|
+
color: themeContract.button.variant.secondary.color,
|
47
|
+
backgroundColor: themeContract.button.variant.secondary.backgroundColor,
|
48
|
+
},
|
47
49
|
},
|
48
|
-
},
|
49
50
|
|
50
|
-
|
51
|
-
|
52
|
-
|
51
|
+
style: {
|
52
|
+
outline: {
|
53
|
+
backgroundColor: 'transparent',
|
54
|
+
},
|
53
55
|
},
|
54
|
-
},
|
55
56
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
57
|
+
size: {
|
58
|
+
sm: [
|
59
|
+
{
|
60
|
+
fontSize: themeContract.fontSizes.sm,
|
61
|
+
|
62
|
+
'@media': {
|
63
|
+
...generateResponsiveMedia({
|
64
|
+
paddingTop: themeContract.button.size.small.paddingTop,
|
65
|
+
paddingLeft: themeContract.button.size.small.paddingLeft,
|
66
|
+
paddingRight: themeContract.button.size.small.paddingRight,
|
67
|
+
paddingBottom: themeContract.button.size.small.paddingBottom,
|
68
|
+
}),
|
69
|
+
},
|
68
70
|
},
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
}
|
71
|
+
],
|
72
|
+
md: [
|
73
|
+
{
|
74
|
+
fontSize: themeContract.fontSizes.md,
|
75
|
+
|
76
|
+
'@media': {
|
77
|
+
...generateResponsiveMedia({
|
78
|
+
paddingTop: themeContract.button.size.medium.paddingTop,
|
79
|
+
paddingLeft: themeContract.button.size.medium.paddingLeft,
|
80
|
+
paddingRight: themeContract.button.size.medium.paddingRight,
|
81
|
+
paddingBottom: themeContract.button.size.medium.paddingBottom,
|
82
|
+
}),
|
83
|
+
},
|
82
84
|
},
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
}
|
85
|
+
],
|
86
|
+
lg: [
|
87
|
+
{
|
88
|
+
fontSize: themeContract.fontSizes.lg,
|
89
|
+
|
90
|
+
'@media': {
|
91
|
+
...generateResponsiveMedia({
|
92
|
+
paddingTop: themeContract.button.size.large.paddingTop,
|
93
|
+
paddingLeft: themeContract.button.size.large.paddingLeft,
|
94
|
+
paddingRight: themeContract.button.size.large.paddingRight,
|
95
|
+
paddingBottom: themeContract.button.size.large.paddingBottom,
|
96
|
+
}),
|
97
|
+
},
|
96
98
|
},
|
97
|
-
|
98
|
-
|
99
|
-
},
|
99
|
+
],
|
100
|
+
},
|
100
101
|
|
101
|
-
|
102
|
-
|
103
|
-
|
102
|
+
fullWidth: {
|
103
|
+
true: {
|
104
|
+
width: '100%',
|
105
|
+
},
|
104
106
|
},
|
105
107
|
},
|
106
|
-
},
|
107
108
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
109
|
+
compoundVariants: [
|
110
|
+
{
|
111
|
+
variants: { variant: 'primary', style: 'outline' },
|
112
|
+
style: {
|
113
|
+
color: themeContract.button.variant.primary.backgroundColor,
|
114
|
+
border: `1px solid ${themeContract.button.variant.primary.backgroundColor}`,
|
115
|
+
},
|
114
116
|
},
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
117
|
+
{
|
118
|
+
variants: { variant: 'secondary', style: 'outline' },
|
119
|
+
style: {
|
120
|
+
color: themeContract.button.variant.secondary.backgroundColor,
|
121
|
+
border: `1px solid ${themeContract.button.variant.secondary.backgroundColor}`,
|
122
|
+
},
|
121
123
|
},
|
122
|
-
|
123
|
-
],
|
124
|
+
],
|
124
125
|
|
125
|
-
|
126
|
-
|
127
|
-
|
126
|
+
defaultVariants: {
|
127
|
+
size: 'md',
|
128
|
+
variant: 'primary',
|
129
|
+
},
|
128
130
|
},
|
129
|
-
|
131
|
+
'button'
|
132
|
+
);
|
130
133
|
|
131
134
|
export type ButtonVariants = RecipeVariants<typeof buttonRecipe>;
|
@@ -8,71 +8,83 @@ import { themeContract } from '../../theme/contract.css';
|
|
8
8
|
import { combineResponsive } from '../../utils/combineResponsive';
|
9
9
|
import { generateResponsiveMedia } from '../../utils/generateResponsiveMedia';
|
10
10
|
|
11
|
-
export const carouselRecipe = recipe(
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
variants: {
|
19
|
-
isFullWidth: {
|
20
|
-
true: {
|
21
|
-
width: '100vw',
|
22
|
-
|
23
|
-
marginLeft: calc(themeContract.global.paddingLeft.mobile).negate().toString(),
|
24
|
-
marginRight: calc(themeContract.global.paddingRight.mobile).negate().toString(),
|
11
|
+
export const carouselRecipe = recipe(
|
12
|
+
{
|
13
|
+
base: {
|
14
|
+
width: '100%',
|
15
|
+
overflow: 'hidden',
|
16
|
+
position: 'relative',
|
17
|
+
},
|
25
18
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
19
|
+
variants: {
|
20
|
+
isFullWidth: {
|
21
|
+
true: {
|
22
|
+
width: '100vw',
|
23
|
+
|
24
|
+
marginLeft: calc(themeContract.global.paddingLeft.mobile).negate().toString(),
|
25
|
+
marginRight: calc(themeContract.global.paddingRight.mobile).negate().toString(),
|
26
|
+
|
27
|
+
'@media': {
|
28
|
+
[queries.sm]: {
|
29
|
+
marginLeft: calc(themeContract.global.paddingLeft.sm).negate().toString(),
|
30
|
+
marginRight: calc(themeContract.global.paddingRight.sm).negate().toString(),
|
31
|
+
},
|
32
|
+
[queries.md]: {
|
33
|
+
marginLeft: calc(themeContract.global.paddingLeft.md).negate().toString(),
|
34
|
+
marginRight: calc(themeContract.global.paddingRight.md).negate().toString(),
|
35
|
+
},
|
36
|
+
[queries.lg]: {
|
37
|
+
marginLeft: calc(themeContract.global.paddingLeft.lg).negate().toString(),
|
38
|
+
marginRight: calc(themeContract.global.paddingRight.lg).negate().toString(),
|
39
|
+
},
|
40
|
+
[queries.xl]: {
|
41
|
+
marginLeft: calc(themeContract.global.paddingLeft.xl).negate().toString(),
|
42
|
+
marginRight: calc(themeContract.global.paddingRight.xl).negate().toString(),
|
43
|
+
},
|
44
|
+
[queries['2xl']]: {
|
45
|
+
marginLeft: `calc((100vw - ${themeContract.maxWidth}) / -2)`,
|
46
|
+
marginRight: `calc((100vw - ${themeContract.maxWidth}) / -2)`,
|
47
|
+
},
|
46
48
|
},
|
47
49
|
},
|
48
50
|
},
|
49
51
|
},
|
50
|
-
},
|
51
52
|
|
52
|
-
|
53
|
-
|
53
|
+
defaultVariants: {
|
54
|
+
isFullWidth: false,
|
55
|
+
},
|
54
56
|
},
|
55
|
-
|
57
|
+
'carousel'
|
58
|
+
);
|
56
59
|
|
57
|
-
export const carouselContent = style(
|
58
|
-
|
59
|
-
|
60
|
-
|
60
|
+
export const carouselContent = style(
|
61
|
+
{
|
62
|
+
width: '100%',
|
63
|
+
position: 'relative',
|
64
|
+
},
|
65
|
+
'carousel-content'
|
66
|
+
);
|
61
67
|
|
62
|
-
export const carouselSlide = style(
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
+
export const carouselSlide = style(
|
69
|
+
{
|
70
|
+
display: 'flex',
|
71
|
+
position: 'relative',
|
72
|
+
willChange: 'transform',
|
73
|
+
transition: 'transform 0.3s ease-in-out',
|
74
|
+
},
|
75
|
+
'carousel-slide'
|
76
|
+
);
|
68
77
|
|
69
|
-
export const carouselItem = style(
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
78
|
+
export const carouselItem = style(
|
79
|
+
{
|
80
|
+
width: '100%',
|
81
|
+
flexShrink: 0,
|
82
|
+
display: 'flex',
|
83
|
+
position: 'relative',
|
84
|
+
alignItems: 'stretch',
|
85
|
+
},
|
86
|
+
'carousel-item'
|
87
|
+
);
|
76
88
|
|
77
89
|
globalStyle(`${carouselItem} > div`, {
|
78
90
|
'@media': {
|
@@ -82,53 +94,59 @@ globalStyle(`${carouselItem} > div`, {
|
|
82
94
|
},
|
83
95
|
});
|
84
96
|
|
85
|
-
export const carouselNav = style(
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
gap: themeContract.space.sm,
|
97
|
-
padding: themeContract.space.md,
|
98
|
-
maxWidth: themeContract.maxWidth,
|
99
|
-
});
|
100
|
-
|
101
|
-
export const carouselNavButton = style({
|
102
|
-
border: 'none',
|
103
|
-
display: 'flex',
|
104
|
-
cursor: 'pointer',
|
105
|
-
alignItems: 'center',
|
106
|
-
pointerEvents: 'auto',
|
107
|
-
justifyContent: 'center',
|
108
|
-
transition: 'all 0.3s ease-in-out',
|
109
|
-
|
110
|
-
borderRadius: themeContract.carousel.nav.borderRadius,
|
111
|
-
backgroundColor: themeContract.carousel.nav.backgroundColor,
|
97
|
+
export const carouselNav = style(
|
98
|
+
{
|
99
|
+
left: 0,
|
100
|
+
right: 0,
|
101
|
+
bottom: 0,
|
102
|
+
zIndex: 30,
|
103
|
+
width: '100%',
|
104
|
+
display: 'flex',
|
105
|
+
position: 'absolute',
|
106
|
+
pointerEvents: 'none',
|
107
|
+
justifyContent: 'flex-end',
|
112
108
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
backgroundColor: themeContract.colors.primary,
|
109
|
+
gap: themeContract.space.sm,
|
110
|
+
padding: themeContract.space.md,
|
111
|
+
maxWidth: themeContract.maxWidth,
|
117
112
|
},
|
113
|
+
'carousel-nav'
|
114
|
+
);
|
115
|
+
|
116
|
+
export const carouselNavButton = style(
|
117
|
+
{
|
118
|
+
border: 'none',
|
119
|
+
display: 'flex',
|
120
|
+
cursor: 'pointer',
|
121
|
+
alignItems: 'center',
|
122
|
+
pointerEvents: 'auto',
|
123
|
+
justifyContent: 'center',
|
124
|
+
transition: 'all 0.3s ease-in-out',
|
125
|
+
|
126
|
+
borderRadius: themeContract.carousel.nav.borderRadius,
|
127
|
+
backgroundColor: themeContract.carousel.nav.backgroundColor,
|
128
|
+
|
129
|
+
':hover': {
|
130
|
+
transform: 'scale(1.1)',
|
131
|
+
color: themeContract.colors.background,
|
132
|
+
backgroundColor: themeContract.colors.primary,
|
133
|
+
},
|
118
134
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
135
|
+
':disabled': {
|
136
|
+
opacity: '0.5',
|
137
|
+
transform: 'none',
|
138
|
+
pointerEvents: 'none',
|
139
|
+
},
|
124
140
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
141
|
+
'@media': {
|
142
|
+
...generateResponsiveMedia({
|
143
|
+
width: themeContract.carousel.nav.width,
|
144
|
+
height: themeContract.carousel.nav.height,
|
145
|
+
}),
|
146
|
+
},
|
130
147
|
},
|
131
|
-
|
148
|
+
'carousel-nav-button'
|
149
|
+
);
|
132
150
|
|
133
151
|
export const carouselBullets = style({
|
134
152
|
left: 0,
|
@@ -148,29 +166,35 @@ export const carouselBullets = style({
|
|
148
166
|
},
|
149
167
|
});
|
150
168
|
|
151
|
-
export const carouselBullet = style(
|
152
|
-
|
153
|
-
|
154
|
-
|
169
|
+
export const carouselBullet = style(
|
170
|
+
{
|
171
|
+
border: 'none',
|
172
|
+
cursor: 'pointer',
|
173
|
+
transition: 'all 0.3s ease-in-out',
|
155
174
|
|
156
|
-
|
157
|
-
|
175
|
+
borderRadius: themeContract.carousel.bullet.borderRadius,
|
176
|
+
backgroundColor: themeContract.carousel.bullet.backgroundColor,
|
158
177
|
|
159
|
-
|
160
|
-
|
161
|
-
|
178
|
+
':hover': {
|
179
|
+
transform: 'scale(1.2)',
|
180
|
+
},
|
162
181
|
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
182
|
+
'@media': {
|
183
|
+
...generateResponsiveMedia({
|
184
|
+
width: themeContract.carousel.bullet.width,
|
185
|
+
height: themeContract.carousel.bullet.height,
|
186
|
+
}),
|
187
|
+
},
|
168
188
|
},
|
169
|
-
|
189
|
+
'carousel-bullet'
|
190
|
+
);
|
170
191
|
|
171
|
-
export const carouselBulletActive = style(
|
172
|
-
|
173
|
-
|
174
|
-
|
192
|
+
export const carouselBulletActive = style(
|
193
|
+
{
|
194
|
+
pointerEvents: 'none',
|
195
|
+
backgroundColor: themeContract.carousel.bullet.activeBackgroundColor,
|
196
|
+
},
|
197
|
+
'carousel-bullet-active'
|
198
|
+
);
|
175
199
|
|
176
200
|
export type CarouselVariants = RecipeVariants<typeof carouselRecipe>;
|