@latte-macchiat-io/latte-vanilla-components 0.0.175 → 0.0.177
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 +12 -23
- package/src/assets/styles/default-theme.ts +312 -0
- package/src/components/Button/stories.ts +127 -0
- package/src/components/Columns/stories.ts +35 -0
- package/src/components/Icon/path.ts +36 -0
- package/src/components/Icon/stories.ts +29 -0
- package/src/components/Main/stories.ts +33 -0
- package/src/components/Section/stories.ts +64 -0
- package/{dist/types/index.d.ts → src/index.ts} +38 -0
- package/src/styles/mediaqueries.ts +17 -0
- package/src/theme/baseThemeValues.ts +160 -0
- package/src/theme/index.ts +6 -0
- package/src/theme/utils.ts +76 -0
- package/src/types/theme.ts +295 -0
- package/src/types/withClassName.ts +3 -0
- package/src/utils/cookie.ts +24 -0
- package/src/utils/deep-merge-objects.ts +15 -0
- package/src/utils/use-breakpoint-key.ts +30 -0
- package/src/utils/use-window-size.ts +37 -0
- package/dist/components/Actions/Actions.css.ts +0 -113
- package/dist/components/Button/Button.css.ts +0 -119
- package/dist/components/Carousel/Carousel.css.ts +0 -179
- package/dist/components/Columns/Columns.css.ts +0 -185
- package/dist/components/ConsentCookie/ConsentCookie.css.ts +0 -167
- package/dist/components/Footer/Footer.css.ts +0 -108
- package/dist/components/Form/Form.css.ts +0 -64
- package/dist/components/Form/Row/Row.css.ts +0 -70
- package/dist/components/Form/TextField/Input/Input.css.ts +0 -106
- package/dist/components/Form/TextField/Label/Label.css.ts +0 -58
- package/dist/components/Form/TextField/TextField.css.ts +0 -139
- package/dist/components/Form/TextField/Textarea/Textarea.css.ts +0 -121
- package/dist/components/Header/Header.css.ts +0 -111
- package/dist/components/Header/HeaderOverlay/styles.css.ts +0 -33
- package/dist/components/Header/ToggleNav/styles.css.ts +0 -40
- package/dist/components/Icon/Icon.css.ts +0 -102
- package/dist/components/KeyNumber/KeyNumber.css.ts +0 -158
- package/dist/components/LanguageSwitcher/LanguageSwitcher.css.ts +0 -120
- package/dist/components/Logo/Logo.css.ts +0 -98
- package/dist/components/Main/Main.css.ts +0 -62
- package/dist/components/Modal/Modal.css.ts +0 -203
- package/dist/components/Nav/Nav.css.ts +0 -123
- package/dist/components/NavLegal/NavLegal.css.ts +0 -121
- package/dist/components/NavSocial/NavSocial.css.ts +0 -121
- package/dist/components/Section/Section.css.ts +0 -101
- package/dist/components/Video/Video.css.ts +0 -210
- package/dist/components/VideoFullWidth/VideoFullWidth.css.ts +0 -50
- package/dist/index.cjs.js +0 -2
- package/dist/index.es.js +0 -6813
- package/dist/styles/sprinkles.css.ts +0 -84
- package/dist/theme/contract.css.ts +0 -83
- package/dist/types/components/Actions/Actions.css.d.ts +0 -74
- package/dist/types/components/Actions/Actions.d.ts +0 -7
- package/dist/types/components/Actions/export.d.ts +0 -0
- package/dist/types/components/Actions/stories.d.ts +0 -0
- package/dist/types/components/Button/Button.css.d.ts +0 -65
- package/dist/types/components/Button/Button.d.ts +0 -8
- package/dist/types/components/Button/export.d.ts +0 -0
- package/dist/types/components/Button/stories.d.ts +0 -0
- package/dist/types/components/Carousel/Carousel.css.d.ts +0 -33
- package/dist/types/components/Carousel/Carousel.d.ts +0 -15
- package/dist/types/components/Carousel/export.d.ts +0 -0
- package/dist/types/components/Columns/Columns.css.d.ts +0 -104
- package/dist/types/components/Columns/Columns.d.ts +0 -8
- package/dist/types/components/Columns/export.d.ts +0 -0
- package/dist/types/components/Columns/stories.d.ts +0 -0
- package/dist/types/components/ConsentCookie/ConsentCookie.css.d.ts +0 -15
- package/dist/types/components/ConsentCookie/ConsentCookie.d.ts +0 -17
- package/dist/types/components/ConsentCookie/export.d.ts +0 -0
- package/dist/types/components/ConsentCookie/stories.d.ts +0 -0
- package/dist/types/components/Footer/Footer.css.d.ts +0 -50
- package/dist/types/components/Footer/Footer.d.ts +0 -7
- package/dist/types/components/Footer/export.d.ts +0 -0
- package/dist/types/components/Footer/stories.d.ts +0 -6
- package/dist/types/components/Form/Form.css.d.ts +0 -46
- package/dist/types/components/Form/Form.d.ts +0 -7
- package/dist/types/components/Form/Row/Row.css.d.ts +0 -51
- package/dist/types/components/Form/Row/Row.d.ts +0 -9
- package/dist/types/components/Form/Row/index.d.ts +0 -0
- package/dist/types/components/Form/Row/stories.d.ts +0 -0
- package/dist/types/components/Form/TextField/Input/Input.css.d.ts +0 -32
- package/dist/types/components/Form/TextField/Input/Input.d.ts +0 -10
- package/dist/types/components/Form/TextField/Input/export.d.ts +0 -0
- package/dist/types/components/Form/TextField/Label/Label.css.d.ts +0 -23
- package/dist/types/components/Form/TextField/Label/Label.d.ts +0 -9
- package/dist/types/components/Form/TextField/Label/export.d.ts +0 -0
- package/dist/types/components/Form/TextField/TextField.css.d.ts +0 -19
- package/dist/types/components/Form/TextField/TextField.d.ts +0 -21
- package/dist/types/components/Form/TextField/Textarea/Textarea.css.d.ts +0 -56
- package/dist/types/components/Form/TextField/Textarea/Textarea.d.ts +0 -8
- package/dist/types/components/Form/TextField/Textarea/export.d.ts +0 -0
- package/dist/types/components/Form/TextField/Textarea/stories.d.ts +0 -0
- package/dist/types/components/Form/TextField/export.d.ts +0 -0
- package/dist/types/components/Form/export.d.ts +0 -0
- package/dist/types/components/Header/Header.css.d.ts +0 -36
- package/dist/types/components/Header/Header.d.ts +0 -11
- package/dist/types/components/Header/HeaderOverlay/index.d.ts +0 -7
- package/dist/types/components/Header/HeaderOverlay/styles.css.d.ts +0 -5
- package/dist/types/components/Header/ToggleNav/index.d.ts +0 -9
- package/dist/types/components/Header/ToggleNav/styles.css.d.ts +0 -5
- package/dist/types/components/Header/export.d.ts +0 -0
- package/dist/types/components/Header/stories.d.ts +0 -6
- package/dist/types/components/Icon/Icon.css.d.ts +0 -45
- package/dist/types/components/Icon/Icon.d.ts +0 -12
- package/dist/types/components/Icon/export.d.ts +0 -0
- package/dist/types/components/Icon/path.d.ts +0 -19
- package/dist/types/components/Icon/stories.d.ts +0 -0
- package/dist/types/components/KeyNumber/KeyNumber.css.d.ts +0 -40
- package/dist/types/components/KeyNumber/KeyNumber.d.ts +0 -15
- package/dist/types/components/KeyNumber/export.d.ts +0 -0
- package/dist/types/components/LanguageSwitcher/LanguageSwitcher.css.d.ts +0 -18
- package/dist/types/components/LanguageSwitcher/LanguageSwitcher.d.ts +0 -16
- package/dist/types/components/LanguageSwitcher/export.d.ts +0 -0
- package/dist/types/components/Logo/Logo.css.d.ts +0 -54
- package/dist/types/components/Logo/Logo.d.ts +0 -8
- package/dist/types/components/Logo/export.d.ts +0 -0
- package/dist/types/components/Logo/stories.d.ts +0 -6
- package/dist/types/components/Main/Main.css.d.ts +0 -32
- package/dist/types/components/Main/Main.d.ts +0 -7
- package/dist/types/components/Main/export.d.ts +0 -0
- package/dist/types/components/Main/stories.d.ts +0 -0
- package/dist/types/components/Modal/Modal.css.d.ts +0 -82
- package/dist/types/components/Modal/Modal.d.ts +0 -15
- package/dist/types/components/Modal/export.d.ts +0 -0
- package/dist/types/components/Modal/types.d.ts +0 -5
- package/dist/types/components/Nav/Nav.css.d.ts +0 -52
- package/dist/types/components/Nav/Nav.d.ts +0 -7
- package/dist/types/components/Nav/export.d.ts +0 -0
- package/dist/types/components/Nav/stories.d.ts +0 -6
- package/dist/types/components/NavLegal/NavLegal.css.d.ts +0 -57
- package/dist/types/components/NavLegal/NavLegal.d.ts +0 -7
- package/dist/types/components/NavLegal/export.d.ts +0 -0
- package/dist/types/components/NavLegal/stories.d.ts +0 -6
- package/dist/types/components/NavLegal/types.d.ts +0 -1
- package/dist/types/components/NavSocial/NavSocial.css.d.ts +0 -30
- package/dist/types/components/NavSocial/NavSocial.d.ts +0 -15
- package/dist/types/components/NavSocial/export.d.ts +0 -0
- package/dist/types/components/NavSocial/stories.d.ts +0 -0
- package/dist/types/components/NavSocial/types.d.ts +0 -1
- package/dist/types/components/Section/Section.css.d.ts +0 -60
- package/dist/types/components/Section/Section.d.ts +0 -7
- package/dist/types/components/Section/export.d.ts +0 -0
- package/dist/types/components/Section/stories.d.ts +0 -0
- package/dist/types/components/ToRemove/ToRemove.d.ts +0 -1
- package/dist/types/components/Video/Video.css.d.ts +0 -43
- package/dist/types/components/Video/Video.d.ts +0 -17
- package/dist/types/components/Video/export.d.ts +0 -0
- package/dist/types/components/VideoFullWidth/VideoFullWidth.css.d.ts +0 -18
- package/dist/types/components/VideoFullWidth/VideoFullWidth.d.ts +0 -14
- package/dist/types/components/VideoFullWidth/export.d.ts +0 -0
- package/dist/types/utils/cookie.d.ts +0 -2
- package/dist/types/utils/deep-merge-objects.d.ts +0 -2
- package/dist/types/utils/theme.css.d.ts +0 -173
- package/dist/types/utils/use-breakpoint-key.d.ts +0 -1
- package/dist/types/utils/use-window-size.d.ts +0 -5
- package/dist/utils/theme.css.ts +0 -129
@@ -1,203 +0,0 @@
|
|
1
|
-
import { keyframes, style } from '@vanilla-extract/css';
|
2
|
-
import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
|
3
|
-
import { queries } from '../../styles/mediaqueries';
|
4
|
-
import { themeContract } from '../../theme';
|
5
|
-
|
6
|
-
const fadeIn = keyframes({
|
7
|
-
from: { opacity: '0' },
|
8
|
-
to: { opacity: '1' },
|
9
|
-
});
|
10
|
-
|
11
|
-
const slideIn = keyframes({
|
12
|
-
from: {
|
13
|
-
opacity: '0',
|
14
|
-
transform: 'translate(-50%, -60%) scale(0.95)',
|
15
|
-
},
|
16
|
-
to: {
|
17
|
-
opacity: '1',
|
18
|
-
transform: 'translate(-50%, -50%) scale(1)',
|
19
|
-
},
|
20
|
-
});
|
21
|
-
|
22
|
-
const modalOverlay = style({
|
23
|
-
position: 'fixed',
|
24
|
-
top: 0,
|
25
|
-
left: 0,
|
26
|
-
right: 0,
|
27
|
-
bottom: 0,
|
28
|
-
zIndex: 50,
|
29
|
-
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
30
|
-
backdropFilter: 'blur(4px)',
|
31
|
-
animation: `${fadeIn} 0.2s ease-out`,
|
32
|
-
display: 'flex',
|
33
|
-
alignItems: 'center',
|
34
|
-
justifyContent: 'center',
|
35
|
-
padding: themeContract.space.md,
|
36
|
-
overflowY: 'auto',
|
37
|
-
});
|
38
|
-
|
39
|
-
const modalContent = style({
|
40
|
-
position: 'relative',
|
41
|
-
backgroundColor: themeContract.colors.background,
|
42
|
-
borderRadius: themeContract.radii.lg,
|
43
|
-
boxShadow: themeContract.shadows.xl,
|
44
|
-
border: `1px solid ${themeContract.colors.border}`,
|
45
|
-
maxHeight: '90vh',
|
46
|
-
maxWidth: '90vw',
|
47
|
-
width: '100%',
|
48
|
-
overflowY: 'auto',
|
49
|
-
animation: `${slideIn} 0.3s ease-out`,
|
50
|
-
|
51
|
-
'@media': {
|
52
|
-
[queries.sm]: {
|
53
|
-
maxWidth: '500px',
|
54
|
-
},
|
55
|
-
[queries.md]: {
|
56
|
-
maxWidth: '600px',
|
57
|
-
},
|
58
|
-
[queries.lg]: {
|
59
|
-
maxWidth: '800px',
|
60
|
-
},
|
61
|
-
},
|
62
|
-
});
|
63
|
-
|
64
|
-
const modalCloseButton = style({
|
65
|
-
position: 'absolute',
|
66
|
-
top: themeContract.space.md,
|
67
|
-
right: themeContract.space.md,
|
68
|
-
zIndex: 10,
|
69
|
-
display: 'flex',
|
70
|
-
alignItems: 'center',
|
71
|
-
justifyContent: 'center',
|
72
|
-
width: '32px',
|
73
|
-
height: '32px',
|
74
|
-
border: 'none',
|
75
|
-
borderRadius: themeContract.radii.full,
|
76
|
-
backgroundColor: themeContract.colors.surface,
|
77
|
-
color: themeContract.colors.text,
|
78
|
-
cursor: 'pointer',
|
79
|
-
transition: 'all 0.2s ease-in-out',
|
80
|
-
|
81
|
-
// ':hover': {
|
82
|
-
// backgroundColor: themeContract.colors.error,
|
83
|
-
// color: themeContract.colors.background,
|
84
|
-
// transform: 'scale(1.1)',
|
85
|
-
// },
|
86
|
-
|
87
|
-
// ':focus': {
|
88
|
-
// outline: '2px solid',
|
89
|
-
// outlineColor: themeContract.colors.primary,
|
90
|
-
// outlineOffset: '2px',
|
91
|
-
// },
|
92
|
-
});
|
93
|
-
|
94
|
-
export const modalRecipe = recipe({
|
95
|
-
base: modalOverlay,
|
96
|
-
|
97
|
-
variants: {
|
98
|
-
size: {
|
99
|
-
sm: {},
|
100
|
-
md: {},
|
101
|
-
lg: {},
|
102
|
-
xl: {},
|
103
|
-
full: {
|
104
|
-
padding: 0,
|
105
|
-
|
106
|
-
// selectors: {
|
107
|
-
// '& > div': {
|
108
|
-
// width: '100vw',
|
109
|
-
// height: '100vh',
|
110
|
-
// maxWidth: 'none',
|
111
|
-
// maxHeight: 'none',
|
112
|
-
// borderRadius: 0,
|
113
|
-
// },
|
114
|
-
// },
|
115
|
-
},
|
116
|
-
},
|
117
|
-
centered: {
|
118
|
-
true: {
|
119
|
-
alignItems: 'center',
|
120
|
-
justifyContent: 'center',
|
121
|
-
},
|
122
|
-
false: {
|
123
|
-
alignItems: 'flex-start',
|
124
|
-
justifyContent: 'center',
|
125
|
-
paddingTop: '5vh',
|
126
|
-
},
|
127
|
-
},
|
128
|
-
},
|
129
|
-
|
130
|
-
defaultVariants: {
|
131
|
-
size: 'md',
|
132
|
-
centered: true,
|
133
|
-
},
|
134
|
-
});
|
135
|
-
|
136
|
-
export const modalContentRecipe = recipe({
|
137
|
-
base: modalContent,
|
138
|
-
|
139
|
-
variants: {
|
140
|
-
size: {
|
141
|
-
sm: {
|
142
|
-
padding: themeContract.space.md,
|
143
|
-
'@media': {
|
144
|
-
[queries.sm]: {
|
145
|
-
maxWidth: '400px',
|
146
|
-
},
|
147
|
-
},
|
148
|
-
},
|
149
|
-
md: {
|
150
|
-
padding: themeContract.space.lg,
|
151
|
-
'@media': {
|
152
|
-
[queries.sm]: {
|
153
|
-
maxWidth: '500px',
|
154
|
-
},
|
155
|
-
},
|
156
|
-
},
|
157
|
-
lg: {
|
158
|
-
padding: themeContract.space.xl,
|
159
|
-
'@media': {
|
160
|
-
[queries.md]: {
|
161
|
-
maxWidth: '700px',
|
162
|
-
},
|
163
|
-
},
|
164
|
-
},
|
165
|
-
xl: {
|
166
|
-
padding: themeContract.space.xl,
|
167
|
-
'@media': {
|
168
|
-
[queries.lg]: {
|
169
|
-
maxWidth: '900px',
|
170
|
-
},
|
171
|
-
},
|
172
|
-
},
|
173
|
-
full: {
|
174
|
-
width: '100vw',
|
175
|
-
height: '100vh',
|
176
|
-
maxWidth: 'none',
|
177
|
-
maxHeight: 'none',
|
178
|
-
borderRadius: 0,
|
179
|
-
padding: themeContract.space.xl,
|
180
|
-
},
|
181
|
-
},
|
182
|
-
align: {
|
183
|
-
left: {
|
184
|
-
textAlign: 'left',
|
185
|
-
},
|
186
|
-
center: {
|
187
|
-
textAlign: 'center',
|
188
|
-
},
|
189
|
-
right: {
|
190
|
-
textAlign: 'right',
|
191
|
-
},
|
192
|
-
},
|
193
|
-
},
|
194
|
-
|
195
|
-
defaultVariants: {
|
196
|
-
size: 'md',
|
197
|
-
align: 'left',
|
198
|
-
},
|
199
|
-
});
|
200
|
-
|
201
|
-
export { modalCloseButton };
|
202
|
-
export type ModalVariants = RecipeVariants<typeof modalRecipe>;
|
203
|
-
export type ModalContentVariants = RecipeVariants<typeof modalContentRecipe>;
|
@@ -1,123 +0,0 @@
|
|
1
|
-
import { style } from '@vanilla-extract/css';
|
2
|
-
import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
|
3
|
-
import { queries } from '../../styles/mediaqueries';
|
4
|
-
import { themeContract } from '../../theme';
|
5
|
-
|
6
|
-
const navBase = style({
|
7
|
-
display: 'flex',
|
8
|
-
alignItems: 'center',
|
9
|
-
gap: themeContract.space.md,
|
10
|
-
flexDirection: 'column',
|
11
|
-
|
12
|
-
'@media': {
|
13
|
-
[queries.md]: {
|
14
|
-
flexDirection: 'row',
|
15
|
-
gap: themeContract.space.lg,
|
16
|
-
},
|
17
|
-
[queries.lg]: {
|
18
|
-
gap: themeContract.space.xl,
|
19
|
-
},
|
20
|
-
},
|
21
|
-
|
22
|
-
// selectors: {
|
23
|
-
// '& a': {
|
24
|
-
// textDecoration: 'none',
|
25
|
-
// color: 'inherit',
|
26
|
-
// transition: 'all 0.3s ease-in-out',
|
27
|
-
// display: 'block',
|
28
|
-
// padding: `${themeContract.space.xs} ${themeContract.space.sm}`,
|
29
|
-
// borderRadius: themeContract.radii.sm,
|
30
|
-
// },
|
31
|
-
// '& a:hover': {
|
32
|
-
// backgroundColor: themeContract.colors.surface,
|
33
|
-
// transform: 'translateY(-1px)',
|
34
|
-
// },
|
35
|
-
// '& a:focus': {
|
36
|
-
// outline: '2px solid',
|
37
|
-
// outlineColor: themeContract.colors.primary,
|
38
|
-
// outlineOffset: '2px',
|
39
|
-
// },
|
40
|
-
// '& a[aria-current="page"]': {
|
41
|
-
// backgroundColor: themeContract.colors.primary,
|
42
|
-
// color: themeContract.colors.background,
|
43
|
-
// },
|
44
|
-
// },
|
45
|
-
});
|
46
|
-
|
47
|
-
export const navRecipe = recipe({
|
48
|
-
base: navBase,
|
49
|
-
|
50
|
-
variants: {
|
51
|
-
orientation: {
|
52
|
-
horizontal: {
|
53
|
-
flexDirection: 'row',
|
54
|
-
alignItems: 'center',
|
55
|
-
},
|
56
|
-
vertical: {
|
57
|
-
flexDirection: 'column',
|
58
|
-
alignItems: 'flex-start',
|
59
|
-
},
|
60
|
-
responsive: {
|
61
|
-
flexDirection: 'column',
|
62
|
-
alignItems: 'flex-start',
|
63
|
-
|
64
|
-
'@media': {
|
65
|
-
[queries.md]: {
|
66
|
-
flexDirection: 'row',
|
67
|
-
alignItems: 'center',
|
68
|
-
},
|
69
|
-
},
|
70
|
-
},
|
71
|
-
},
|
72
|
-
variant: {
|
73
|
-
default: {
|
74
|
-
gap: themeContract.space.md,
|
75
|
-
},
|
76
|
-
compact: {
|
77
|
-
gap: themeContract.space.sm,
|
78
|
-
|
79
|
-
// selectors: {
|
80
|
-
// '& a': {
|
81
|
-
// padding: `${themeContract.space.xs} ${themeContract.space.xs}`,
|
82
|
-
// fontSize: themeContract.fontSizes.sm,
|
83
|
-
// },
|
84
|
-
// },
|
85
|
-
},
|
86
|
-
spacious: {
|
87
|
-
gap: themeContract.space.lg,
|
88
|
-
|
89
|
-
// selectors: {
|
90
|
-
// '& a': {
|
91
|
-
// padding: `${themeContract.space.sm} ${themeContract.space.md}`,
|
92
|
-
// fontSize: themeContract.fontSizes.lg,
|
93
|
-
// },
|
94
|
-
// },
|
95
|
-
},
|
96
|
-
},
|
97
|
-
justify: {
|
98
|
-
start: {
|
99
|
-
justifyContent: 'flex-start',
|
100
|
-
},
|
101
|
-
center: {
|
102
|
-
justifyContent: 'center',
|
103
|
-
},
|
104
|
-
end: {
|
105
|
-
justifyContent: 'flex-end',
|
106
|
-
},
|
107
|
-
between: {
|
108
|
-
justifyContent: 'space-between',
|
109
|
-
},
|
110
|
-
around: {
|
111
|
-
justifyContent: 'space-around',
|
112
|
-
},
|
113
|
-
},
|
114
|
-
},
|
115
|
-
|
116
|
-
defaultVariants: {
|
117
|
-
orientation: 'responsive',
|
118
|
-
variant: 'default',
|
119
|
-
justify: 'start',
|
120
|
-
},
|
121
|
-
});
|
122
|
-
|
123
|
-
export type NavVariants = RecipeVariants<typeof navRecipe>;
|
@@ -1,121 +0,0 @@
|
|
1
|
-
import { style } from '@vanilla-extract/css';
|
2
|
-
import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
|
3
|
-
import { queries } from '../../styles/mediaqueries';
|
4
|
-
import { themeContract } from '../../theme';
|
5
|
-
|
6
|
-
const navLegalBase = style({
|
7
|
-
display: 'flex',
|
8
|
-
alignItems: 'center',
|
9
|
-
gap: themeContract.space.md,
|
10
|
-
fontSize: themeContract.fontSizes.sm,
|
11
|
-
color: themeContract.colors.textSecondary,
|
12
|
-
flexDirection: 'column',
|
13
|
-
|
14
|
-
'@media': {
|
15
|
-
[queries.md]: {
|
16
|
-
flexDirection: 'row',
|
17
|
-
gap: themeContract.space.lg,
|
18
|
-
},
|
19
|
-
},
|
20
|
-
|
21
|
-
// selectors: {
|
22
|
-
// '& a': {
|
23
|
-
// color: 'inherit',
|
24
|
-
// textDecoration: 'none',
|
25
|
-
// transition: 'all 0.3s ease-in-out',
|
26
|
-
// borderRadius: themeContract.radii.sm,
|
27
|
-
// padding: `${themeContract.space.xs} ${themeContract.space.sm}`,
|
28
|
-
// },
|
29
|
-
// '& a:hover': {
|
30
|
-
// color: themeContract.colors.primary,
|
31
|
-
// backgroundColor: themeContract.colors.surface,
|
32
|
-
// },
|
33
|
-
// '& a:focus': {
|
34
|
-
// outline: '2px solid',
|
35
|
-
// outlineColor: themeContract.colors.primary,
|
36
|
-
// outlineOffset: '2px',
|
37
|
-
// },
|
38
|
-
// },
|
39
|
-
});
|
40
|
-
|
41
|
-
export const navLegalRecipe = recipe({
|
42
|
-
base: navLegalBase,
|
43
|
-
|
44
|
-
variants: {
|
45
|
-
orientation: {
|
46
|
-
horizontal: {
|
47
|
-
flexDirection: 'row',
|
48
|
-
},
|
49
|
-
vertical: {
|
50
|
-
flexDirection: 'column',
|
51
|
-
alignItems: 'flex-start',
|
52
|
-
},
|
53
|
-
responsive: {
|
54
|
-
flexDirection: 'column',
|
55
|
-
alignItems: 'flex-start',
|
56
|
-
|
57
|
-
'@media': {
|
58
|
-
[queries.md]: {
|
59
|
-
flexDirection: 'row',
|
60
|
-
alignItems: 'center',
|
61
|
-
},
|
62
|
-
},
|
63
|
-
},
|
64
|
-
},
|
65
|
-
size: {
|
66
|
-
sm: {
|
67
|
-
fontSize: themeContract.fontSizes.xs,
|
68
|
-
gap: themeContract.space.sm,
|
69
|
-
},
|
70
|
-
md: {
|
71
|
-
fontSize: themeContract.fontSizes.sm,
|
72
|
-
gap: themeContract.space.md,
|
73
|
-
},
|
74
|
-
lg: {
|
75
|
-
fontSize: themeContract.fontSizes.md,
|
76
|
-
gap: themeContract.space.lg,
|
77
|
-
},
|
78
|
-
},
|
79
|
-
variant: {
|
80
|
-
default: {},
|
81
|
-
compact: {
|
82
|
-
gap: themeContract.space.sm,
|
83
|
-
|
84
|
-
// selectors: {
|
85
|
-
// '& a': {
|
86
|
-
// padding: `${themeContract.space.xs} ${themeContract.space.xs}`,
|
87
|
-
// },
|
88
|
-
// },
|
89
|
-
},
|
90
|
-
spacious: {
|
91
|
-
gap: themeContract.space.xl,
|
92
|
-
|
93
|
-
// selectors: {
|
94
|
-
// '& a': {
|
95
|
-
// padding: `${themeContract.space.sm} ${themeContract.space.md}`,
|
96
|
-
// },
|
97
|
-
// },
|
98
|
-
},
|
99
|
-
},
|
100
|
-
align: {
|
101
|
-
left: {
|
102
|
-
justifyContent: 'flex-start',
|
103
|
-
},
|
104
|
-
center: {
|
105
|
-
justifyContent: 'center',
|
106
|
-
},
|
107
|
-
right: {
|
108
|
-
justifyContent: 'flex-end',
|
109
|
-
},
|
110
|
-
},
|
111
|
-
},
|
112
|
-
|
113
|
-
defaultVariants: {
|
114
|
-
orientation: 'responsive',
|
115
|
-
size: 'md',
|
116
|
-
variant: 'default',
|
117
|
-
align: 'left',
|
118
|
-
},
|
119
|
-
});
|
120
|
-
|
121
|
-
export type NavLegalVariants = RecipeVariants<typeof navLegalRecipe>;
|
@@ -1,121 +0,0 @@
|
|
1
|
-
import { style } from '@vanilla-extract/css';
|
2
|
-
import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
|
3
|
-
import { queries } from '../../styles/mediaqueries';
|
4
|
-
import { themeContract } from '../../theme/contract.css';
|
5
|
-
|
6
|
-
const navSocialBase = style({
|
7
|
-
display: 'flex',
|
8
|
-
alignItems: 'center',
|
9
|
-
gap: themeContract.space.md,
|
10
|
-
|
11
|
-
'@media': {
|
12
|
-
[queries.md]: {
|
13
|
-
gap: themeContract.space.lg,
|
14
|
-
},
|
15
|
-
},
|
16
|
-
});
|
17
|
-
|
18
|
-
const navSocialLink = style({
|
19
|
-
display: 'flex',
|
20
|
-
alignItems: 'center',
|
21
|
-
justifyContent: 'center',
|
22
|
-
textDecoration: 'none',
|
23
|
-
color: 'inherit',
|
24
|
-
transition: 'all 0.3s ease-in-out',
|
25
|
-
borderRadius: themeContract.radii.full,
|
26
|
-
padding: themeContract.space.xs,
|
27
|
-
|
28
|
-
// ':hover': {
|
29
|
-
// transform: 'translateY(-2px) scale(1.1)',
|
30
|
-
// color: themeContract.colors.primary,
|
31
|
-
// },
|
32
|
-
|
33
|
-
// ':focus': {
|
34
|
-
// outline: '2px solid',
|
35
|
-
// outlineColor: themeContract.colors.primary,
|
36
|
-
// outlineOffset: '2px',
|
37
|
-
// },
|
38
|
-
|
39
|
-
// ':active': {
|
40
|
-
// transform: 'translateY(0) scale(1.05)',
|
41
|
-
// },
|
42
|
-
});
|
43
|
-
|
44
|
-
export const navSocialRecipe = recipe({
|
45
|
-
base: navSocialBase,
|
46
|
-
|
47
|
-
variants: {
|
48
|
-
orientation: {
|
49
|
-
horizontal: {
|
50
|
-
flexDirection: 'row',
|
51
|
-
},
|
52
|
-
vertical: {
|
53
|
-
flexDirection: 'column',
|
54
|
-
},
|
55
|
-
},
|
56
|
-
size: {
|
57
|
-
sm: {
|
58
|
-
gap: themeContract.space.sm,
|
59
|
-
|
60
|
-
// selectors: {
|
61
|
-
// [`& .${navSocialLink}`]: {
|
62
|
-
// padding: themeContract.space.xs,
|
63
|
-
// },
|
64
|
-
// },
|
65
|
-
},
|
66
|
-
md: {
|
67
|
-
gap: themeContract.space.md,
|
68
|
-
},
|
69
|
-
lg: {
|
70
|
-
gap: themeContract.space.lg,
|
71
|
-
|
72
|
-
// selectors: {
|
73
|
-
// [`& .${navSocialLink}`]: {
|
74
|
-
// padding: themeContract.space.sm,
|
75
|
-
// },
|
76
|
-
// },
|
77
|
-
},
|
78
|
-
},
|
79
|
-
variant: {
|
80
|
-
default: {},
|
81
|
-
rounded: {
|
82
|
-
// selectors: {
|
83
|
-
// [`& .${navSocialLink}`]: {
|
84
|
-
// backgroundColor: themeContract.colors.surface,
|
85
|
-
// borderRadius: themeContract.radii.full,
|
86
|
-
// width: '40px',
|
87
|
-
// height: '40px',
|
88
|
-
// },
|
89
|
-
// [`& .${navSocialLink}:hover`]: {
|
90
|
-
// backgroundColor: themeContract.colors.primary,
|
91
|
-
// color: themeContract.colors.background,
|
92
|
-
// },
|
93
|
-
// },
|
94
|
-
},
|
95
|
-
outlined: {
|
96
|
-
// selectors: {
|
97
|
-
// [`& .${navSocialLink}`]: {
|
98
|
-
// border: `1px solid ${themeContract.colors.border}`,
|
99
|
-
// borderRadius: themeContract.radii.md,
|
100
|
-
// width: '40px',
|
101
|
-
// height: '40px',
|
102
|
-
// },
|
103
|
-
// [`& .${navSocialLink}:hover`]: {
|
104
|
-
// borderColor: themeContract.colors.primary,
|
105
|
-
// backgroundColor: themeContract.colors.primary,
|
106
|
-
// color: themeContract.colors.background,
|
107
|
-
// },
|
108
|
-
// },
|
109
|
-
},
|
110
|
-
},
|
111
|
-
},
|
112
|
-
|
113
|
-
defaultVariants: {
|
114
|
-
orientation: 'horizontal',
|
115
|
-
size: 'md',
|
116
|
-
variant: 'default',
|
117
|
-
},
|
118
|
-
});
|
119
|
-
|
120
|
-
export { navSocialLink };
|
121
|
-
export type NavSocialVariants = RecipeVariants<typeof navSocialRecipe>;
|
@@ -1,101 +0,0 @@
|
|
1
|
-
import { style } from '@vanilla-extract/css';
|
2
|
-
import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
|
3
|
-
import { themeContract } from '../../theme';
|
4
|
-
|
5
|
-
const sectionBase = style({
|
6
|
-
width: '100%',
|
7
|
-
display: 'flex',
|
8
|
-
flexDirection: 'column',
|
9
|
-
alignItems: 'center',
|
10
|
-
justifyContent: 'flex-start',
|
11
|
-
paddingTop: themeContract.section.paddingTop,
|
12
|
-
paddingBottom: themeContract.section.paddingBottom,
|
13
|
-
paddingLeft: themeContract.space.md,
|
14
|
-
paddingRight: themeContract.space.md,
|
15
|
-
maxWidth: themeContract.maxWidth,
|
16
|
-
margin: '0 auto',
|
17
|
-
position: 'relative',
|
18
|
-
|
19
|
-
'@media': {
|
20
|
-
'screen and (min-width: 768px)': {
|
21
|
-
paddingLeft: themeContract.space.lg,
|
22
|
-
paddingRight: themeContract.space.lg,
|
23
|
-
},
|
24
|
-
'screen and (min-width: 1024px)': {
|
25
|
-
paddingLeft: themeContract.space.xl,
|
26
|
-
paddingRight: themeContract.space.xl,
|
27
|
-
},
|
28
|
-
},
|
29
|
-
});
|
30
|
-
|
31
|
-
export const sectionRecipe = recipe({
|
32
|
-
base: sectionBase,
|
33
|
-
|
34
|
-
variants: {
|
35
|
-
align: {
|
36
|
-
left: {
|
37
|
-
textAlign: 'left',
|
38
|
-
alignItems: 'flex-start',
|
39
|
-
},
|
40
|
-
center: {
|
41
|
-
textAlign: 'center',
|
42
|
-
alignItems: 'center',
|
43
|
-
},
|
44
|
-
right: {
|
45
|
-
textAlign: 'right',
|
46
|
-
alignItems: 'flex-end',
|
47
|
-
},
|
48
|
-
},
|
49
|
-
isDark: {
|
50
|
-
true: {
|
51
|
-
backgroundColor: themeContract.colors.surface,
|
52
|
-
color: themeContract.colors.textLight,
|
53
|
-
},
|
54
|
-
false: {
|
55
|
-
backgroundColor: themeContract.colors.background,
|
56
|
-
color: themeContract.colors.text,
|
57
|
-
},
|
58
|
-
},
|
59
|
-
isFullHeight: {
|
60
|
-
true: {
|
61
|
-
minHeight: '100vh',
|
62
|
-
justifyContent: 'center',
|
63
|
-
},
|
64
|
-
false: {
|
65
|
-
minHeight: 'auto',
|
66
|
-
justifyContent: 'flex-start',
|
67
|
-
},
|
68
|
-
},
|
69
|
-
spacing: {
|
70
|
-
none: {
|
71
|
-
paddingTop: '0',
|
72
|
-
paddingBottom: '0',
|
73
|
-
},
|
74
|
-
sm: {
|
75
|
-
paddingTop: themeContract.space.md,
|
76
|
-
paddingBottom: themeContract.space.md,
|
77
|
-
},
|
78
|
-
md: {
|
79
|
-
paddingTop: themeContract.section.paddingTop,
|
80
|
-
paddingBottom: themeContract.section.paddingBottom,
|
81
|
-
},
|
82
|
-
lg: {
|
83
|
-
paddingTop: themeContract.space.xl,
|
84
|
-
paddingBottom: themeContract.space.xl,
|
85
|
-
},
|
86
|
-
xl: {
|
87
|
-
paddingTop: themeContract.space['2xl'],
|
88
|
-
paddingBottom: themeContract.space['2xl'],
|
89
|
-
},
|
90
|
-
},
|
91
|
-
},
|
92
|
-
|
93
|
-
defaultVariants: {
|
94
|
-
align: 'left',
|
95
|
-
isDark: false,
|
96
|
-
isFullHeight: false,
|
97
|
-
spacing: 'md',
|
98
|
-
},
|
99
|
-
});
|
100
|
-
|
101
|
-
export type SectionVariants = RecipeVariants<typeof sectionRecipe>;
|