@latte-macchiat-io/latte-vanilla-components 0.0.245 → 0.0.246
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/styles.css.ts +35 -29
- 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
@@ -53,54 +53,57 @@ const inputBase = style({
|
|
53
53
|
// },
|
54
54
|
});
|
55
55
|
|
56
|
-
export const inputRecipe = recipe(
|
57
|
-
|
56
|
+
export const inputRecipe = recipe(
|
57
|
+
{
|
58
|
+
base: inputBase,
|
58
59
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
60
|
+
variants: {
|
61
|
+
size: {
|
62
|
+
sm: {
|
63
|
+
fontSize: themeContract.fontSizes.xs,
|
64
|
+
padding: `${themeContract.space.xs} ${themeContract.space.sm}`,
|
65
|
+
},
|
66
|
+
md: {},
|
67
|
+
lg: {
|
68
|
+
fontSize: themeContract.fontSizes.md,
|
69
|
+
padding: `${themeContract.space.md} ${themeContract.space.lg}`,
|
70
|
+
},
|
64
71
|
},
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
},
|
71
|
-
variant: {
|
72
|
-
default: {},
|
73
|
-
filled: {
|
74
|
-
backgroundColor: themeContract.colors.surface,
|
75
|
-
border: 'none',
|
72
|
+
variant: {
|
73
|
+
default: {},
|
74
|
+
filled: {
|
75
|
+
backgroundColor: themeContract.colors.surface,
|
76
|
+
border: 'none',
|
76
77
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
78
|
+
// ':focus': {
|
79
|
+
// backgroundColor: themeContract.colors.background,
|
80
|
+
// border: `1px solid ${themeContract.colors.primary}`,
|
81
|
+
// },
|
82
|
+
},
|
83
|
+
outlined: {
|
84
|
+
backgroundColor: 'transparent',
|
85
|
+
},
|
86
|
+
underlined: {
|
87
|
+
backgroundColor: 'transparent',
|
88
|
+
border: 'none',
|
89
|
+
borderBottom: `1px solid ${themeContract.colors.border}`,
|
90
|
+
borderRadius: 0,
|
91
|
+
padding: `${themeContract.space.sm} 0`,
|
91
92
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
93
|
+
// ':focus': {
|
94
|
+
// borderBottom: `2px solid ${themeContract.colors.primary}`,
|
95
|
+
// outline: 'none',
|
96
|
+
// },
|
97
|
+
},
|
96
98
|
},
|
97
99
|
},
|
98
|
-
},
|
99
100
|
|
100
|
-
|
101
|
-
|
102
|
-
|
101
|
+
defaultVariants: {
|
102
|
+
size: 'md',
|
103
|
+
variant: 'default',
|
104
|
+
},
|
103
105
|
},
|
104
|
-
|
106
|
+
'input'
|
107
|
+
);
|
105
108
|
|
106
109
|
export type InputVariants = RecipeVariants<typeof inputRecipe>;
|
@@ -2,57 +2,63 @@ import { style } from '@vanilla-extract/css';
|
|
2
2
|
import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
|
3
3
|
import { themeContract } from '../../../../theme/contract.css';
|
4
4
|
|
5
|
-
const labelBase = style(
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
const labelBase = style(
|
6
|
+
{
|
7
|
+
fontFamily: themeContract.fonts.body,
|
8
|
+
fontSize: themeContract.fontSizes.sm,
|
9
|
+
fontWeight: themeContract.fontWeights.medium,
|
10
|
+
color: themeContract.colors.text,
|
11
|
+
lineHeight: themeContract.lineHeights.tight,
|
12
|
+
width: '100%',
|
13
|
+
textAlign: 'left',
|
14
|
+
paddingBottom: themeContract.space.xs,
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
}
|
16
|
+
// selectors: {
|
17
|
+
// '&[data-required="true"]': {
|
18
|
+
// selectors: {
|
19
|
+
// '&::after': {
|
20
|
+
// content: ' *',
|
21
|
+
// color: themeContract.colors.error,
|
22
|
+
// },
|
23
|
+
// },
|
24
|
+
// },
|
25
|
+
// },
|
26
|
+
},
|
27
|
+
'text-field-label-base'
|
28
|
+
);
|
26
29
|
|
27
|
-
export const labelRecipe = recipe(
|
28
|
-
|
30
|
+
export const labelRecipe = recipe(
|
31
|
+
{
|
32
|
+
base: labelBase,
|
29
33
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
34
|
+
variants: {
|
35
|
+
size: {
|
36
|
+
sm: {
|
37
|
+
fontSize: themeContract.fontSizes.xs,
|
38
|
+
paddingBottom: themeContract.space.xs,
|
39
|
+
},
|
40
|
+
md: {},
|
41
|
+
lg: {
|
42
|
+
fontSize: themeContract.fontSizes.md,
|
43
|
+
paddingBottom: themeContract.space.sm,
|
44
|
+
},
|
40
45
|
},
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
46
|
+
variant: {
|
47
|
+
default: {},
|
48
|
+
inline: {
|
49
|
+
display: 'inline-block',
|
50
|
+
marginRight: themeContract.space.sm,
|
51
|
+
paddingBottom: 0,
|
52
|
+
},
|
48
53
|
},
|
49
54
|
},
|
50
|
-
},
|
51
55
|
|
52
|
-
|
53
|
-
|
54
|
-
|
56
|
+
defaultVariants: {
|
57
|
+
size: 'md',
|
58
|
+
variant: 'default',
|
59
|
+
},
|
55
60
|
},
|
56
|
-
|
61
|
+
'text-field-label'
|
62
|
+
);
|
57
63
|
|
58
64
|
export type LabelVariants = RecipeVariants<typeof labelRecipe>;
|
@@ -95,45 +95,48 @@ const errorMessage = style({
|
|
95
95
|
fontFamily: themeContract.fonts.body,
|
96
96
|
});
|
97
97
|
|
98
|
-
export const textFieldRecipe = recipe(
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
98
|
+
export const textFieldRecipe = recipe(
|
99
|
+
{
|
100
|
+
base: textFieldBase,
|
101
|
+
|
102
|
+
variants: {
|
103
|
+
size: {
|
104
|
+
sm: {
|
105
|
+
gap: themeContract.space.xs,
|
106
|
+
|
107
|
+
// selectors: {
|
108
|
+
// [`& .${labelBase}`]: {
|
109
|
+
// fontSize: themeContract.fontSizes.xs,
|
110
|
+
// },
|
111
|
+
// [`& .${inputBase}`]: {
|
112
|
+
// fontSize: themeContract.fontSizes.xs,
|
113
|
+
// padding: `${themeContract.space.xs} ${themeContract.space.sm}`,
|
114
|
+
// },
|
115
|
+
// },
|
116
|
+
},
|
117
|
+
md: {},
|
118
|
+
lg: {
|
119
|
+
gap: themeContract.space.sm,
|
120
|
+
|
121
|
+
// selectors: {
|
122
|
+
// [`& .${labelBase}`]: {
|
123
|
+
// fontSize: themeContract.fontSizes.md,
|
124
|
+
// },
|
125
|
+
// [`& .${inputBase}`]: {
|
126
|
+
// fontSize: themeContract.fontSizes.md,
|
127
|
+
// padding: `${themeContract.space.md} ${themeContract.space.lg}`,
|
128
|
+
// },
|
129
|
+
// },
|
130
|
+
},
|
129
131
|
},
|
130
132
|
},
|
131
|
-
},
|
132
133
|
|
133
|
-
|
134
|
-
|
134
|
+
defaultVariants: {
|
135
|
+
size: 'md',
|
136
|
+
},
|
135
137
|
},
|
136
|
-
|
138
|
+
'text-field'
|
139
|
+
);
|
137
140
|
|
138
141
|
export { labelBase, inputBase, textareaBase, messageContainer, errorMessage };
|
139
142
|
export type TextFieldVariants = RecipeVariants<typeof textFieldRecipe>;
|
@@ -2,120 +2,126 @@ import { style } from '@vanilla-extract/css';
|
|
2
2
|
import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
|
3
3
|
import { themeContract } from '../../../../theme/contract.css';
|
4
4
|
|
5
|
-
const textareaBase = style(
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
'::placeholder': {
|
21
|
-
color: themeContract.colors.textSecondary,
|
22
|
-
},
|
23
|
-
|
24
|
-
':hover': {
|
25
|
-
borderColor: themeContract.colors.primary,
|
26
|
-
},
|
27
|
-
|
28
|
-
':focus': {
|
29
|
-
outline: '2px solid',
|
30
|
-
outlineColor: themeContract.colors.primary,
|
31
|
-
outlineOffset: '2px',
|
32
|
-
borderColor: themeContract.colors.primary,
|
33
|
-
},
|
5
|
+
const textareaBase = style(
|
6
|
+
{
|
7
|
+
appearance: 'none',
|
8
|
+
backgroundColor: themeContract.colors.background,
|
9
|
+
border: `1px solid ${themeContract.colors.border}`,
|
10
|
+
borderRadius: themeContract.radii.md,
|
11
|
+
color: themeContract.colors.text,
|
12
|
+
fontFamily: themeContract.fonts.body,
|
13
|
+
fontSize: themeContract.fontSizes.sm,
|
14
|
+
lineHeight: themeContract.lineHeights.normal,
|
15
|
+
padding: `${themeContract.space.sm} ${themeContract.space.md}`,
|
16
|
+
transition: 'all 0.2s ease-in-out',
|
17
|
+
width: '100%',
|
18
|
+
resize: 'vertical',
|
19
|
+
minHeight: '80px',
|
34
20
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
cursor: 'not-allowed',
|
39
|
-
opacity: '0.6',
|
40
|
-
resize: 'none',
|
41
|
-
},
|
21
|
+
'::placeholder': {
|
22
|
+
color: themeContract.colors.textSecondary,
|
23
|
+
},
|
42
24
|
|
43
|
-
|
44
|
-
|
45
|
-
borderColor: themeContract.colors.error,
|
25
|
+
':hover': {
|
26
|
+
borderColor: themeContract.colors.primary,
|
46
27
|
},
|
47
|
-
|
48
|
-
|
49
|
-
|
28
|
+
|
29
|
+
':focus': {
|
30
|
+
outline: '2px solid',
|
31
|
+
outlineColor: themeContract.colors.primary,
|
32
|
+
outlineOffset: '2px',
|
33
|
+
borderColor: themeContract.colors.primary,
|
50
34
|
},
|
51
|
-
},
|
52
|
-
});
|
53
35
|
|
54
|
-
|
55
|
-
|
36
|
+
':disabled': {
|
37
|
+
backgroundColor: themeContract.colors.surface,
|
38
|
+
color: themeContract.colors.textSecondary,
|
39
|
+
cursor: 'not-allowed',
|
40
|
+
opacity: '0.6',
|
41
|
+
resize: 'none',
|
42
|
+
},
|
56
43
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
fontSize: themeContract.fontSizes.xs,
|
61
|
-
padding: `${themeContract.space.xs} ${themeContract.space.sm}`,
|
62
|
-
minHeight: '60px',
|
44
|
+
selectors: {
|
45
|
+
'&[data-error="true"]': {
|
46
|
+
borderColor: themeContract.colors.error,
|
63
47
|
},
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
padding: `${themeContract.space.md} ${themeContract.space.lg}`,
|
68
|
-
minHeight: '100px',
|
48
|
+
'&[data-error="true"]:focus': {
|
49
|
+
outlineColor: themeContract.colors.error,
|
50
|
+
borderColor: themeContract.colors.error,
|
69
51
|
},
|
70
52
|
},
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
53
|
+
},
|
54
|
+
'text-area-base'
|
55
|
+
);
|
56
|
+
|
57
|
+
export const textareaRecipe = recipe(
|
58
|
+
{
|
59
|
+
base: textareaBase,
|
76
60
|
|
77
|
-
|
78
|
-
|
79
|
-
|
61
|
+
variants: {
|
62
|
+
size: {
|
63
|
+
sm: {
|
64
|
+
fontSize: themeContract.fontSizes.xs,
|
65
|
+
padding: `${themeContract.space.xs} ${themeContract.space.sm}`,
|
66
|
+
minHeight: '60px',
|
67
|
+
},
|
68
|
+
md: {},
|
69
|
+
lg: {
|
70
|
+
fontSize: themeContract.fontSizes.md,
|
71
|
+
padding: `${themeContract.space.md} ${themeContract.space.lg}`,
|
72
|
+
minHeight: '100px',
|
80
73
|
},
|
81
74
|
},
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
border: 'none',
|
88
|
-
borderBottom: `1px solid ${themeContract.colors.border}`,
|
89
|
-
borderRadius: 0,
|
90
|
-
padding: `${themeContract.space.sm} 0`,
|
75
|
+
variant: {
|
76
|
+
default: {},
|
77
|
+
filled: {
|
78
|
+
backgroundColor: themeContract.colors.surface,
|
79
|
+
border: 'none',
|
91
80
|
|
92
|
-
|
93
|
-
|
94
|
-
|
81
|
+
':focus': {
|
82
|
+
backgroundColor: themeContract.colors.background,
|
83
|
+
border: `1px solid ${themeContract.colors.primary}`,
|
84
|
+
},
|
85
|
+
},
|
86
|
+
outlined: {
|
87
|
+
backgroundColor: 'transparent',
|
88
|
+
},
|
89
|
+
underlined: {
|
90
|
+
backgroundColor: 'transparent',
|
91
|
+
border: 'none',
|
92
|
+
borderBottom: `1px solid ${themeContract.colors.border}`,
|
93
|
+
borderRadius: 0,
|
94
|
+
padding: `${themeContract.space.sm} 0`,
|
95
|
+
|
96
|
+
':focus': {
|
97
|
+
borderBottom: `2px solid ${themeContract.colors.primary}`,
|
98
|
+
outline: 'none',
|
99
|
+
},
|
95
100
|
},
|
96
101
|
},
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
102
|
+
resize: {
|
103
|
+
vertical: {
|
104
|
+
resize: 'vertical',
|
105
|
+
},
|
106
|
+
horizontal: {
|
107
|
+
resize: 'horizontal',
|
108
|
+
},
|
109
|
+
both: {
|
110
|
+
resize: 'both',
|
111
|
+
},
|
112
|
+
none: {
|
113
|
+
resize: 'none',
|
114
|
+
},
|
110
115
|
},
|
111
116
|
},
|
112
|
-
},
|
113
117
|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
+
defaultVariants: {
|
119
|
+
size: 'md',
|
120
|
+
variant: 'default',
|
121
|
+
resize: 'vertical',
|
122
|
+
},
|
118
123
|
},
|
119
|
-
|
124
|
+
'text-area'
|
125
|
+
);
|
120
126
|
|
121
127
|
export type TextareaVariants = RecipeVariants<typeof textareaRecipe>;
|
@@ -1,37 +1,43 @@
|
|
1
1
|
import { style } from '@vanilla-extract/css';
|
2
2
|
import { recipe } from '@vanilla-extract/recipes';
|
3
3
|
|
4
|
-
export const toggleNavButton = recipe(
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
4
|
+
export const toggleNavButton = recipe(
|
5
|
+
{
|
6
|
+
base: {
|
7
|
+
background: 'transparent',
|
8
|
+
border: 'none',
|
9
|
+
cursor: 'pointer',
|
10
|
+
display: 'flex',
|
11
|
+
flexDirection: 'column',
|
12
|
+
justifyContent: 'space-between',
|
13
|
+
width: '24px',
|
14
|
+
height: '18px',
|
15
|
+
padding: 0,
|
16
|
+
},
|
15
17
|
},
|
16
|
-
|
18
|
+
'toggle-nav-button'
|
19
|
+
);
|
17
20
|
|
18
|
-
export const bar = style(
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
export const bar = style(
|
22
|
+
{
|
23
|
+
height: '3px',
|
24
|
+
width: '100%',
|
25
|
+
display: 'block',
|
26
|
+
borderRadius: '2px',
|
27
|
+
backgroundColor: 'black',
|
28
|
+
transition: 'all 0.3s ease',
|
25
29
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
30
|
+
selectors: {
|
31
|
+
'&.open:nth-child(1)': {
|
32
|
+
transform: 'translateY(7.5px) rotate(45deg)',
|
33
|
+
},
|
34
|
+
'&.open:nth-child(2)': {
|
35
|
+
opacity: 0,
|
36
|
+
},
|
37
|
+
'&.open:nth-child(3)': {
|
38
|
+
transform: 'translateY(-7.5px) rotate(-45deg)',
|
39
|
+
},
|
35
40
|
},
|
36
41
|
},
|
37
|
-
|
42
|
+
'bar'
|
43
|
+
);
|