@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.
Files changed (153) hide show
  1. package/package.json +7 -22
  2. package/dist/components/Actions/Actions.css.ts +0 -113
  3. package/dist/components/Button/Button.css.ts +0 -119
  4. package/dist/components/Carousel/Carousel.css.ts +0 -179
  5. package/dist/components/Columns/Columns.css.ts +0 -185
  6. package/dist/components/ConsentCookie/ConsentCookie.css.ts +0 -167
  7. package/dist/components/Footer/Footer.css.ts +0 -108
  8. package/dist/components/Form/Form.css.ts +0 -64
  9. package/dist/components/Form/Row/Row.css.ts +0 -70
  10. package/dist/components/Form/TextField/Input/Input.css.ts +0 -106
  11. package/dist/components/Form/TextField/Label/Label.css.ts +0 -58
  12. package/dist/components/Form/TextField/TextField.css.ts +0 -139
  13. package/dist/components/Form/TextField/Textarea/Textarea.css.ts +0 -121
  14. package/dist/components/Header/Header.css.ts +0 -111
  15. package/dist/components/Header/HeaderOverlay/styles.css.ts +0 -33
  16. package/dist/components/Header/ToggleNav/styles.css.ts +0 -40
  17. package/dist/components/Icon/Icon.css.ts +0 -102
  18. package/dist/components/KeyNumber/KeyNumber.css.ts +0 -158
  19. package/dist/components/LanguageSwitcher/LanguageSwitcher.css.ts +0 -120
  20. package/dist/components/Logo/Logo.css.ts +0 -98
  21. package/dist/components/Main/Main.css.ts +0 -62
  22. package/dist/components/Modal/Modal.css.ts +0 -203
  23. package/dist/components/Nav/Nav.css.ts +0 -123
  24. package/dist/components/NavLegal/NavLegal.css.ts +0 -121
  25. package/dist/components/NavSocial/NavSocial.css.ts +0 -121
  26. package/dist/components/Section/Section.css.ts +0 -101
  27. package/dist/components/Video/Video.css.ts +0 -210
  28. package/dist/components/VideoFullWidth/VideoFullWidth.css.ts +0 -50
  29. package/dist/css/index.cjs +0 -1
  30. package/dist/css/index.js +0 -34
  31. package/dist/index.cjs.js +0 -2
  32. package/dist/index.es.js +0 -3863
  33. package/dist/styles/sprinkles.css.ts +0 -84
  34. package/dist/theme/contract.css.ts +0 -83
  35. package/dist/theme.css-CNjMk-g_.cjs +0 -1
  36. package/dist/theme.css-Dj6kL9o0.js +0 -3020
  37. package/dist/types/components/Actions/Actions.css.d.ts +0 -74
  38. package/dist/types/components/Actions/Actions.d.ts +0 -7
  39. package/dist/types/components/Actions/export.d.ts +0 -0
  40. package/dist/types/components/Actions/stories.d.ts +0 -0
  41. package/dist/types/components/Button/Button.css.d.ts +0 -65
  42. package/dist/types/components/Button/Button.d.ts +0 -8
  43. package/dist/types/components/Button/export.d.ts +0 -0
  44. package/dist/types/components/Button/stories.d.ts +0 -0
  45. package/dist/types/components/Carousel/Carousel.css.d.ts +0 -33
  46. package/dist/types/components/Carousel/Carousel.d.ts +0 -15
  47. package/dist/types/components/Carousel/export.d.ts +0 -0
  48. package/dist/types/components/Columns/Columns.css.d.ts +0 -104
  49. package/dist/types/components/Columns/Columns.d.ts +0 -8
  50. package/dist/types/components/Columns/export.d.ts +0 -0
  51. package/dist/types/components/Columns/stories.d.ts +0 -0
  52. package/dist/types/components/ConsentCookie/ConsentCookie.css.d.ts +0 -15
  53. package/dist/types/components/ConsentCookie/ConsentCookie.d.ts +0 -17
  54. package/dist/types/components/ConsentCookie/export.d.ts +0 -0
  55. package/dist/types/components/ConsentCookie/stories.d.ts +0 -0
  56. package/dist/types/components/Footer/Footer.css.d.ts +0 -50
  57. package/dist/types/components/Footer/Footer.d.ts +0 -7
  58. package/dist/types/components/Footer/export.d.ts +0 -0
  59. package/dist/types/components/Footer/stories.d.ts +0 -6
  60. package/dist/types/components/Form/Form.css.d.ts +0 -46
  61. package/dist/types/components/Form/Form.d.ts +0 -7
  62. package/dist/types/components/Form/Row/Row.css.d.ts +0 -51
  63. package/dist/types/components/Form/Row/Row.d.ts +0 -9
  64. package/dist/types/components/Form/Row/index.d.ts +0 -0
  65. package/dist/types/components/Form/Row/stories.d.ts +0 -0
  66. package/dist/types/components/Form/TextField/Input/Input.css.d.ts +0 -32
  67. package/dist/types/components/Form/TextField/Input/Input.d.ts +0 -10
  68. package/dist/types/components/Form/TextField/Input/export.d.ts +0 -0
  69. package/dist/types/components/Form/TextField/Label/Label.css.d.ts +0 -23
  70. package/dist/types/components/Form/TextField/Label/Label.d.ts +0 -9
  71. package/dist/types/components/Form/TextField/Label/export.d.ts +0 -0
  72. package/dist/types/components/Form/TextField/TextField.css.d.ts +0 -19
  73. package/dist/types/components/Form/TextField/TextField.d.ts +0 -21
  74. package/dist/types/components/Form/TextField/Textarea/Textarea.css.d.ts +0 -56
  75. package/dist/types/components/Form/TextField/Textarea/Textarea.d.ts +0 -8
  76. package/dist/types/components/Form/TextField/Textarea/export.d.ts +0 -0
  77. package/dist/types/components/Form/TextField/Textarea/stories.d.ts +0 -0
  78. package/dist/types/components/Form/TextField/export.d.ts +0 -0
  79. package/dist/types/components/Form/export.d.ts +0 -0
  80. package/dist/types/components/Header/Header.css.d.ts +0 -36
  81. package/dist/types/components/Header/Header.d.ts +0 -11
  82. package/dist/types/components/Header/HeaderOverlay/index.d.ts +0 -7
  83. package/dist/types/components/Header/HeaderOverlay/styles.css.d.ts +0 -5
  84. package/dist/types/components/Header/ToggleNav/index.d.ts +0 -9
  85. package/dist/types/components/Header/ToggleNav/styles.css.d.ts +0 -5
  86. package/dist/types/components/Header/export.d.ts +0 -0
  87. package/dist/types/components/Header/stories.d.ts +0 -6
  88. package/dist/types/components/Icon/Icon.css.d.ts +0 -45
  89. package/dist/types/components/Icon/Icon.d.ts +0 -12
  90. package/dist/types/components/Icon/export.d.ts +0 -0
  91. package/dist/types/components/Icon/path.d.ts +0 -19
  92. package/dist/types/components/Icon/stories.d.ts +0 -0
  93. package/dist/types/components/KeyNumber/KeyNumber.css.d.ts +0 -40
  94. package/dist/types/components/KeyNumber/KeyNumber.d.ts +0 -15
  95. package/dist/types/components/KeyNumber/export.d.ts +0 -0
  96. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.css.d.ts +0 -18
  97. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.d.ts +0 -16
  98. package/dist/types/components/LanguageSwitcher/export.d.ts +0 -0
  99. package/dist/types/components/Logo/Logo.css.d.ts +0 -54
  100. package/dist/types/components/Logo/Logo.d.ts +0 -8
  101. package/dist/types/components/Logo/export.d.ts +0 -0
  102. package/dist/types/components/Logo/stories.d.ts +0 -6
  103. package/dist/types/components/Main/Main.css.d.ts +0 -32
  104. package/dist/types/components/Main/Main.d.ts +0 -7
  105. package/dist/types/components/Main/export.d.ts +0 -0
  106. package/dist/types/components/Main/stories.d.ts +0 -0
  107. package/dist/types/components/Modal/Modal.css.d.ts +0 -82
  108. package/dist/types/components/Modal/Modal.d.ts +0 -15
  109. package/dist/types/components/Modal/export.d.ts +0 -0
  110. package/dist/types/components/Modal/types.d.ts +0 -5
  111. package/dist/types/components/Nav/Nav.css.d.ts +0 -52
  112. package/dist/types/components/Nav/Nav.d.ts +0 -7
  113. package/dist/types/components/Nav/export.d.ts +0 -0
  114. package/dist/types/components/Nav/stories.d.ts +0 -6
  115. package/dist/types/components/NavLegal/NavLegal.css.d.ts +0 -57
  116. package/dist/types/components/NavLegal/NavLegal.d.ts +0 -7
  117. package/dist/types/components/NavLegal/export.d.ts +0 -0
  118. package/dist/types/components/NavLegal/stories.d.ts +0 -6
  119. package/dist/types/components/NavLegal/types.d.ts +0 -1
  120. package/dist/types/components/NavSocial/NavSocial.css.d.ts +0 -30
  121. package/dist/types/components/NavSocial/NavSocial.d.ts +0 -15
  122. package/dist/types/components/NavSocial/export.d.ts +0 -0
  123. package/dist/types/components/NavSocial/stories.d.ts +0 -0
  124. package/dist/types/components/NavSocial/types.d.ts +0 -1
  125. package/dist/types/components/Section/Section.css.d.ts +0 -60
  126. package/dist/types/components/Section/Section.d.ts +0 -7
  127. package/dist/types/components/Section/export.d.ts +0 -0
  128. package/dist/types/components/Section/stories.d.ts +0 -0
  129. package/dist/types/components/ToRemove/ToRemove.d.ts +0 -1
  130. package/dist/types/components/Video/Video.css.d.ts +0 -43
  131. package/dist/types/components/Video/Video.d.ts +0 -17
  132. package/dist/types/components/Video/export.d.ts +0 -0
  133. package/dist/types/components/VideoFullWidth/VideoFullWidth.css.d.ts +0 -18
  134. package/dist/types/components/VideoFullWidth/VideoFullWidth.d.ts +0 -14
  135. package/dist/types/components/VideoFullWidth/export.d.ts +0 -0
  136. package/dist/types/css/index.d.ts +0 -28
  137. package/dist/types/index.d.ts +0 -58
  138. package/dist/types/styles/mediaqueries.d.ts +0 -16
  139. package/dist/types/styles/sprinkles.css.d.ts +0 -3423
  140. package/dist/types/theme/baseThemeValues.d.ts +0 -158
  141. package/dist/types/theme/contract.css.d.ts +0 -79
  142. package/dist/types/theme/index.d.ts +0 -3
  143. package/dist/types/theme/utils.d.ts +0 -86
  144. package/dist/types/utils/cookie.d.ts +0 -2
  145. package/dist/types/utils/deep-merge-objects.d.ts +0 -2
  146. package/dist/types/utils/theme.css.d.ts +0 -173
  147. package/dist/types/utils/use-breakpoint-key.d.ts +0 -1
  148. package/dist/types/utils/use-window-size.d.ts +0 -5
  149. package/dist/utils/theme.css.ts +0 -129
  150. package/src/css/index.ts +0 -33
  151. package/src/themes/dark.ts +0 -3
  152. package/src/themes/index.ts +0 -5
  153. 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>;
@@ -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
- };