@latte-macchiat-io/latte-vanilla-components 0.0.176 → 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 +7 -22
- 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/css/index.cjs +0 -1
- package/dist/css/index.js +0 -34
- package/dist/index.cjs.js +0 -2
- package/dist/index.es.js +0 -3863
- package/dist/styles/sprinkles.css.ts +0 -84
- package/dist/theme/contract.css.ts +0 -83
- package/dist/theme.css-CNjMk-g_.cjs +0 -1
- package/dist/theme.css-Dj6kL9o0.js +0 -3020
- 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/css/index.d.ts +0 -28
- package/dist/types/index.d.ts +0 -58
- package/dist/types/styles/mediaqueries.d.ts +0 -16
- package/dist/types/styles/sprinkles.css.d.ts +0 -3423
- package/dist/types/theme/baseThemeValues.d.ts +0 -158
- package/dist/types/theme/contract.css.d.ts +0 -79
- package/dist/types/theme/index.d.ts +0 -3
- package/dist/types/theme/utils.d.ts +0 -86
- 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
- package/src/css/index.ts +0 -33
- package/src/themes/dark.ts +0 -3
- package/src/themes/index.ts +0 -5
- package/src/themes/light.ts +0 -3
@@ -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>;
|
@@ -1,210 +0,0 @@
|
|
1
|
-
import { style } from '@vanilla-extract/css';
|
2
|
-
import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
|
3
|
-
import { themeContract } from '../../theme/contract.css';
|
4
|
-
|
5
|
-
const videoBase = style({
|
6
|
-
position: 'relative',
|
7
|
-
overflow: 'hidden',
|
8
|
-
backgroundColor: themeContract.colors.background,
|
9
|
-
});
|
10
|
-
|
11
|
-
const videoElement = style({
|
12
|
-
top: '50%',
|
13
|
-
left: '50%',
|
14
|
-
width: 'auto',
|
15
|
-
minWidth: '100%',
|
16
|
-
minHeight: '100%',
|
17
|
-
position: 'absolute',
|
18
|
-
transform: 'translate(-50%, -50%)',
|
19
|
-
});
|
20
|
-
|
21
|
-
const videoPoster = style({
|
22
|
-
top: 0,
|
23
|
-
left: 0,
|
24
|
-
width: '100%',
|
25
|
-
height: '100%',
|
26
|
-
position: 'absolute',
|
27
|
-
opacity: 1,
|
28
|
-
transition: 'opacity 0.3s ease-in-out',
|
29
|
-
pointerEvents: 'auto',
|
30
|
-
|
31
|
-
// selectors: {
|
32
|
-
// '&[data-playing="true"]': {
|
33
|
-
// opacity: 0,
|
34
|
-
// pointerEvents: 'none',
|
35
|
-
// },
|
36
|
-
// },
|
37
|
-
});
|
38
|
-
|
39
|
-
const posterImage = style({
|
40
|
-
width: '100%',
|
41
|
-
height: '100%',
|
42
|
-
minWidth: '100%',
|
43
|
-
minHeight: '100%',
|
44
|
-
objectFit: 'cover',
|
45
|
-
});
|
46
|
-
|
47
|
-
const playButton = style({
|
48
|
-
position: 'absolute',
|
49
|
-
top: '50%',
|
50
|
-
left: '50%',
|
51
|
-
transform: 'translate(-50%, -50%)',
|
52
|
-
border: 'none',
|
53
|
-
borderRadius: themeContract.radii.full,
|
54
|
-
backgroundColor: 'rgba(0, 0, 0, 0.7)',
|
55
|
-
color: themeContract.colors.background,
|
56
|
-
cursor: 'pointer',
|
57
|
-
transition: 'all 0.3s ease-in-out',
|
58
|
-
display: 'flex',
|
59
|
-
alignItems: 'center',
|
60
|
-
justifyContent: 'center',
|
61
|
-
opacity: 1,
|
62
|
-
pointerEvents: 'auto',
|
63
|
-
|
64
|
-
':hover': {
|
65
|
-
backgroundColor: 'rgba(0, 0, 0, 0.9)',
|
66
|
-
transform: 'translate(-50%, -50%) scale(1.1)',
|
67
|
-
},
|
68
|
-
|
69
|
-
':focus': {
|
70
|
-
outline: '2px solid',
|
71
|
-
outlineColor: themeContract.colors.primary,
|
72
|
-
outlineOffset: '2px',
|
73
|
-
},
|
74
|
-
|
75
|
-
// selectors: {
|
76
|
-
// '&[data-playing="true"]': {
|
77
|
-
// opacity: 0,
|
78
|
-
// pointerEvents: 'none',
|
79
|
-
// },
|
80
|
-
// '&[data-hidden="true"]': {
|
81
|
-
// display: 'none',
|
82
|
-
// },
|
83
|
-
// },
|
84
|
-
});
|
85
|
-
|
86
|
-
const controlButton = style({
|
87
|
-
position: 'absolute',
|
88
|
-
border: 'none',
|
89
|
-
borderRadius: themeContract.radii.md,
|
90
|
-
backgroundColor: 'rgba(0, 0, 0, 0.7)',
|
91
|
-
color: themeContract.colors.background,
|
92
|
-
cursor: 'pointer',
|
93
|
-
transition: 'all 0.3s ease-in-out',
|
94
|
-
display: 'flex',
|
95
|
-
alignItems: 'center',
|
96
|
-
justifyContent: 'center',
|
97
|
-
|
98
|
-
// ':hover': {
|
99
|
-
// backgroundColor: 'rgba(0, 0, 0, 0.9)',
|
100
|
-
// },
|
101
|
-
|
102
|
-
// ':focus': {
|
103
|
-
// outline: '2px solid',
|
104
|
-
// outlineColor: themeContract.colors.primary,
|
105
|
-
// outlineOffset: '2px',
|
106
|
-
// },
|
107
|
-
});
|
108
|
-
|
109
|
-
const closeButton = style([
|
110
|
-
controlButton,
|
111
|
-
{
|
112
|
-
top: themeContract.space.md,
|
113
|
-
right: themeContract.space.md,
|
114
|
-
width: '40px',
|
115
|
-
height: '40px',
|
116
|
-
|
117
|
-
'@media': {
|
118
|
-
'screen and (min-width: 768px)': {
|
119
|
-
width: '48px',
|
120
|
-
height: '48px',
|
121
|
-
top: themeContract.space.lg,
|
122
|
-
right: themeContract.space.lg,
|
123
|
-
},
|
124
|
-
},
|
125
|
-
},
|
126
|
-
]);
|
127
|
-
|
128
|
-
const pauseButton = style([
|
129
|
-
controlButton,
|
130
|
-
{
|
131
|
-
bottom: themeContract.space.md,
|
132
|
-
right: '80px',
|
133
|
-
width: '40px',
|
134
|
-
height: '40px',
|
135
|
-
|
136
|
-
'@media': {
|
137
|
-
'screen and (min-width: 768px)': {
|
138
|
-
width: '48px',
|
139
|
-
height: '48px',
|
140
|
-
bottom: themeContract.space.lg,
|
141
|
-
right: '100px',
|
142
|
-
},
|
143
|
-
},
|
144
|
-
},
|
145
|
-
]);
|
146
|
-
|
147
|
-
const soundButton = style([
|
148
|
-
controlButton,
|
149
|
-
{
|
150
|
-
bottom: themeContract.space.md,
|
151
|
-
right: themeContract.space.md,
|
152
|
-
width: '40px',
|
153
|
-
height: '40px',
|
154
|
-
|
155
|
-
'@media': {
|
156
|
-
'screen and (min-width: 768px)': {
|
157
|
-
width: '48px',
|
158
|
-
height: '48px',
|
159
|
-
bottom: themeContract.space.lg,
|
160
|
-
right: themeContract.space.lg,
|
161
|
-
},
|
162
|
-
},
|
163
|
-
},
|
164
|
-
]);
|
165
|
-
|
166
|
-
export const videoRecipe = recipe({
|
167
|
-
base: videoBase,
|
168
|
-
|
169
|
-
variants: {
|
170
|
-
size: {
|
171
|
-
sm: {
|
172
|
-
width: '300px',
|
173
|
-
height: '200px',
|
174
|
-
},
|
175
|
-
md: {
|
176
|
-
width: '500px',
|
177
|
-
height: '300px',
|
178
|
-
},
|
179
|
-
lg: {
|
180
|
-
width: '800px',
|
181
|
-
height: '450px',
|
182
|
-
},
|
183
|
-
fullWidth: {
|
184
|
-
width: '100vw',
|
185
|
-
height: 0,
|
186
|
-
paddingBottom: '56.25%', // 16:9 aspect ratio
|
187
|
-
position: 'relative',
|
188
|
-
},
|
189
|
-
},
|
190
|
-
aspectRatio: {
|
191
|
-
'16:9': {
|
192
|
-
aspectRatio: '16/9',
|
193
|
-
},
|
194
|
-
'4:3': {
|
195
|
-
aspectRatio: '4/3',
|
196
|
-
},
|
197
|
-
'1:1': {
|
198
|
-
aspectRatio: '1/1',
|
199
|
-
},
|
200
|
-
},
|
201
|
-
},
|
202
|
-
|
203
|
-
defaultVariants: {
|
204
|
-
size: 'md',
|
205
|
-
aspectRatio: '16:9',
|
206
|
-
},
|
207
|
-
});
|
208
|
-
|
209
|
-
export { videoElement, videoPoster, posterImage, playButton, closeButton, pauseButton, soundButton };
|
210
|
-
export type VideoVariants = RecipeVariants<typeof videoRecipe>;
|
@@ -1,50 +0,0 @@
|
|
1
|
-
import { style } from '@vanilla-extract/css';
|
2
|
-
import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
|
3
|
-
import { themeContract } from '../../theme/contract.css';
|
4
|
-
|
5
|
-
const videoFullWidthBase = style({
|
6
|
-
height: 0,
|
7
|
-
width: '100vw',
|
8
|
-
overflow: 'hidden',
|
9
|
-
position: 'relative',
|
10
|
-
paddingBottom: '56.25%', // 16:9 aspect ratio
|
11
|
-
backgroundColor: themeContract.colors.background,
|
12
|
-
|
13
|
-
// Break out of container padding
|
14
|
-
marginLeft: `calc(-50vw + 50%)`,
|
15
|
-
marginRight: `calc(-50vw + 50%)`,
|
16
|
-
|
17
|
-
'@media': {
|
18
|
-
'screen and (min-width: 768px)': {
|
19
|
-
marginLeft: `calc(-50vw + 50%)`,
|
20
|
-
marginRight: `calc(-50vw + 50%)`,
|
21
|
-
},
|
22
|
-
},
|
23
|
-
});
|
24
|
-
|
25
|
-
export const videoFullWidthRecipe = recipe({
|
26
|
-
base: videoFullWidthBase,
|
27
|
-
|
28
|
-
variants: {
|
29
|
-
aspectRatio: {
|
30
|
-
'16:9': {
|
31
|
-
paddingBottom: '56.25%',
|
32
|
-
},
|
33
|
-
'4:3': {
|
34
|
-
paddingBottom: '75%',
|
35
|
-
},
|
36
|
-
'1:1': {
|
37
|
-
paddingBottom: '100%',
|
38
|
-
},
|
39
|
-
'21:9': {
|
40
|
-
paddingBottom: '42.86%',
|
41
|
-
},
|
42
|
-
},
|
43
|
-
},
|
44
|
-
|
45
|
-
defaultVariants: {
|
46
|
-
aspectRatio: '16:9',
|
47
|
-
},
|
48
|
-
});
|
49
|
-
|
50
|
-
export type VideoFullWidthVariants = RecipeVariants<typeof videoFullWidthRecipe>;
|
package/dist/css/index.cjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../theme.css-CNjMk-g_.cjs");exports.actionsRecipe=e.actionsRecipe;exports.buttonRecipe=e.buttonRecipe;exports.carouselRecipe=e.carouselRecipe;exports.columnsRecipe=e.columnsRecipe;exports.consentRecipe=e.consentRecipe;exports.createDarkTheme=e.createDarkTheme;exports.createLightTheme=e.createLightTheme;exports.footerRecipe=e.footerRecipe;exports.formRecipe=e.formRecipe;exports.headerRecipe=e.headerRecipe;exports.iconRecipe=e.iconRecipe;exports.inputRecipe=e.inputRecipe;exports.keyNumberRecipe=e.keyNumberRecipe;exports.labelRecipe=e.labelRecipe;exports.languageSwitcherRecipe=e.languageSwitcherRecipe;exports.logoRecipe=e.logoRecipe;exports.mainRecipe=e.mainRecipe;exports.modalContentRecipe=e.modalContentRecipe;exports.modalRecipe=e.modalRecipe;exports.navLegalRecipe=e.navLegalRecipe;exports.navRecipe=e.navRecipe;exports.navSocialRecipe=e.navSocialRecipe;exports.responsiveProperties=e.responsiveProperties;exports.rowRecipe=e.rowRecipe;exports.sectionRecipe=e.sectionRecipe;exports.sprinkles=e.sprinkles;exports.textFieldRecipe=e.textFieldRecipe;exports.textareaRecipe=e.textareaRecipe;exports.themeContract=e.themeContract;exports.videoFullWidthRecipe=e.videoFullWidthRecipe;exports.videoRecipe=e.videoRecipe;
|
package/dist/css/index.js
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
import { b as i, d as s, e as c, f as p, g as R, a as o, c as t, h as n, i as r, o as l, p as m, k as d, q as h, l as u, u as v, v as g, w as b, y as f, x as k, A as x, z as w, B as C, r as y, j as D, C as F, s as L, m as S, n as T, t as j, E as q, D as z } from "../theme.css-Dj6kL9o0.js";
|
2
|
-
export {
|
3
|
-
i as actionsRecipe,
|
4
|
-
s as buttonRecipe,
|
5
|
-
c as carouselRecipe,
|
6
|
-
p as columnsRecipe,
|
7
|
-
R as consentRecipe,
|
8
|
-
o as createDarkTheme,
|
9
|
-
t as createLightTheme,
|
10
|
-
n as footerRecipe,
|
11
|
-
r as formRecipe,
|
12
|
-
l as headerRecipe,
|
13
|
-
m as iconRecipe,
|
14
|
-
d as inputRecipe,
|
15
|
-
h as keyNumberRecipe,
|
16
|
-
u as labelRecipe,
|
17
|
-
v as languageSwitcherRecipe,
|
18
|
-
g as logoRecipe,
|
19
|
-
b as mainRecipe,
|
20
|
-
f as modalContentRecipe,
|
21
|
-
k as modalRecipe,
|
22
|
-
x as navLegalRecipe,
|
23
|
-
w as navRecipe,
|
24
|
-
C as navSocialRecipe,
|
25
|
-
y as responsiveProperties,
|
26
|
-
D as rowRecipe,
|
27
|
-
F as sectionRecipe,
|
28
|
-
L as sprinkles,
|
29
|
-
S as textFieldRecipe,
|
30
|
-
T as textareaRecipe,
|
31
|
-
j as themeContract,
|
32
|
-
q as videoFullWidthRecipe,
|
33
|
-
z as videoRecipe
|
34
|
-
};
|