@latte-macchiat-io/latte-vanilla-components 0.0.176 → 0.0.178

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 (219) hide show
  1. package/package.json +9 -22
  2. package/src/assets/styles/mediaqueries.tsx +24 -0
  3. package/src/components/Actions/Actions.tsx +132 -0
  4. package/src/components/Actions/export.tsx +4 -0
  5. package/src/components/{Main/stories.ts → Actions/stories.tsx} +14 -13
  6. package/src/components/Button/Button.tsx +132 -0
  7. package/src/components/Button/export.tsx +5 -0
  8. package/src/components/Carousel/Carousel.tsx +328 -0
  9. package/src/components/Carousel/export.tsx +4 -0
  10. package/src/components/Columns/Columns.tsx +142 -0
  11. package/src/components/Columns/export.tsx +5 -0
  12. package/src/components/ConsentCookie/ConsentCookie.tsx +202 -0
  13. package/src/components/ConsentCookie/export.tsx +4 -0
  14. package/src/components/{Icon/stories.ts → ConsentCookie/stories.tsx} +7 -8
  15. package/src/components/Footer/Footer.tsx +130 -0
  16. package/src/components/Footer/export.tsx +4 -0
  17. package/src/components/Footer/stories.tsx +26 -0
  18. package/src/components/Form/Form.tsx +127 -0
  19. package/src/components/Form/Row/Row.tsx +137 -0
  20. package/src/components/Form/Row/stories.tsx +41 -0
  21. package/src/components/Form/TextField/Input/Input.tsx +139 -0
  22. package/src/components/Form/TextField/Input/export.tsx +6 -0
  23. package/src/components/Form/TextField/Label/Label.tsx +133 -0
  24. package/src/components/Form/TextField/Label/export.tsx +4 -0
  25. package/src/components/Form/TextField/TextField.tsx +200 -0
  26. package/src/components/Form/TextField/Textarea/Textarea.tsx +135 -0
  27. package/src/components/Form/TextField/Textarea/export.tsx +6 -0
  28. package/src/components/Form/TextField/Textarea/stories.tsx +44 -0
  29. package/src/components/Form/TextField/export.tsx +4 -0
  30. package/src/components/Form/export.tsx +4 -0
  31. package/src/components/Header/Header.tsx +158 -0
  32. package/src/components/Header/HeaderOverlay/index.tsx +32 -0
  33. package/src/components/Header/ToggleNav/index.tsx +32 -0
  34. package/src/components/Header/export.tsx +4 -0
  35. package/src/components/Header/stories.tsx +26 -0
  36. package/src/components/Icon/Icon.tsx +159 -0
  37. package/src/components/Icon/export.tsx +4 -0
  38. package/src/components/KeyNumber/KeyNumber.tsx +166 -0
  39. package/src/components/KeyNumber/export.tsx +4 -0
  40. package/src/components/LanguageSwitcher/LanguageSwitcher.tsx +168 -0
  41. package/src/components/LanguageSwitcher/export.tsx +4 -0
  42. package/src/components/Logo/Logo.tsx +137 -0
  43. package/src/components/Logo/export.tsx +4 -0
  44. package/src/components/Logo/stories.tsx +28 -0
  45. package/src/components/Main/Main.tsx +130 -0
  46. package/src/components/Main/export.tsx +4 -0
  47. package/src/components/Modal/Modal.tsx +194 -0
  48. package/src/components/Modal/export.tsx +4 -0
  49. package/src/components/Modal/types.tsx +5 -0
  50. package/src/components/Nav/Nav.tsx +129 -0
  51. package/src/components/Nav/export.tsx +4 -0
  52. package/src/components/Nav/stories.tsx +28 -0
  53. package/src/components/NavLegal/NavLegal.tsx +133 -0
  54. package/src/components/NavLegal/export.tsx +4 -0
  55. package/src/components/NavLegal/stories.tsx +28 -0
  56. package/src/components/NavSocial/NavSocial.tsx +169 -0
  57. package/src/components/NavSocial/export.tsx +5 -0
  58. package/src/components/{Columns/stories.ts → NavSocial/stories.tsx} +12 -14
  59. package/src/components/Section/Section.tsx +130 -0
  60. package/src/components/Section/export.tsx +6 -0
  61. package/src/components/ToRemove/ToRemove.tsx +3 -0
  62. package/src/components/Video/Video.tsx +243 -0
  63. package/src/components/Video/export.tsx +2 -0
  64. package/src/components/VideoFullWidth/VideoFullWidth.tsx +152 -0
  65. package/src/components/VideoFullWidth/export.tsx +2 -0
  66. package/dist/components/Actions/Actions.css.ts +0 -113
  67. package/dist/components/Button/Button.css.ts +0 -119
  68. package/dist/components/Carousel/Carousel.css.ts +0 -179
  69. package/dist/components/Columns/Columns.css.ts +0 -185
  70. package/dist/components/ConsentCookie/ConsentCookie.css.ts +0 -167
  71. package/dist/components/Footer/Footer.css.ts +0 -108
  72. package/dist/components/Form/Form.css.ts +0 -64
  73. package/dist/components/Form/Row/Row.css.ts +0 -70
  74. package/dist/components/Form/TextField/Input/Input.css.ts +0 -106
  75. package/dist/components/Form/TextField/Label/Label.css.ts +0 -58
  76. package/dist/components/Form/TextField/TextField.css.ts +0 -139
  77. package/dist/components/Form/TextField/Textarea/Textarea.css.ts +0 -121
  78. package/dist/components/Header/Header.css.ts +0 -111
  79. package/dist/components/Header/HeaderOverlay/styles.css.ts +0 -33
  80. package/dist/components/Header/ToggleNav/styles.css.ts +0 -40
  81. package/dist/components/Icon/Icon.css.ts +0 -102
  82. package/dist/components/KeyNumber/KeyNumber.css.ts +0 -158
  83. package/dist/components/LanguageSwitcher/LanguageSwitcher.css.ts +0 -120
  84. package/dist/components/Logo/Logo.css.ts +0 -98
  85. package/dist/components/Main/Main.css.ts +0 -62
  86. package/dist/components/Modal/Modal.css.ts +0 -203
  87. package/dist/components/Nav/Nav.css.ts +0 -123
  88. package/dist/components/NavLegal/NavLegal.css.ts +0 -121
  89. package/dist/components/NavSocial/NavSocial.css.ts +0 -121
  90. package/dist/components/Section/Section.css.ts +0 -101
  91. package/dist/components/Video/Video.css.ts +0 -210
  92. package/dist/components/VideoFullWidth/VideoFullWidth.css.ts +0 -50
  93. package/dist/css/index.cjs +0 -1
  94. package/dist/css/index.js +0 -34
  95. package/dist/index.cjs.js +0 -2
  96. package/dist/index.es.js +0 -3863
  97. package/dist/styles/sprinkles.css.ts +0 -84
  98. package/dist/theme/contract.css.ts +0 -83
  99. package/dist/theme.css-CNjMk-g_.cjs +0 -1
  100. package/dist/theme.css-Dj6kL9o0.js +0 -3020
  101. package/dist/types/components/Actions/Actions.css.d.ts +0 -74
  102. package/dist/types/components/Actions/Actions.d.ts +0 -7
  103. package/dist/types/components/Actions/stories.d.ts +0 -0
  104. package/dist/types/components/Button/Button.css.d.ts +0 -65
  105. package/dist/types/components/Button/Button.d.ts +0 -8
  106. package/dist/types/components/Button/export.d.ts +0 -0
  107. package/dist/types/components/Button/stories.d.ts +0 -0
  108. package/dist/types/components/Carousel/Carousel.css.d.ts +0 -33
  109. package/dist/types/components/Carousel/Carousel.d.ts +0 -15
  110. package/dist/types/components/Carousel/export.d.ts +0 -0
  111. package/dist/types/components/Columns/Columns.css.d.ts +0 -104
  112. package/dist/types/components/Columns/Columns.d.ts +0 -8
  113. package/dist/types/components/Columns/export.d.ts +0 -0
  114. package/dist/types/components/Columns/stories.d.ts +0 -0
  115. package/dist/types/components/ConsentCookie/ConsentCookie.css.d.ts +0 -15
  116. package/dist/types/components/ConsentCookie/ConsentCookie.d.ts +0 -17
  117. package/dist/types/components/ConsentCookie/export.d.ts +0 -0
  118. package/dist/types/components/ConsentCookie/stories.d.ts +0 -0
  119. package/dist/types/components/Footer/Footer.css.d.ts +0 -50
  120. package/dist/types/components/Footer/Footer.d.ts +0 -7
  121. package/dist/types/components/Footer/export.d.ts +0 -0
  122. package/dist/types/components/Footer/stories.d.ts +0 -6
  123. package/dist/types/components/Form/Form.css.d.ts +0 -46
  124. package/dist/types/components/Form/Form.d.ts +0 -7
  125. package/dist/types/components/Form/Row/Row.css.d.ts +0 -51
  126. package/dist/types/components/Form/Row/Row.d.ts +0 -9
  127. package/dist/types/components/Form/Row/index.d.ts +0 -0
  128. package/dist/types/components/Form/Row/stories.d.ts +0 -0
  129. package/dist/types/components/Form/TextField/Input/Input.css.d.ts +0 -32
  130. package/dist/types/components/Form/TextField/Input/Input.d.ts +0 -10
  131. package/dist/types/components/Form/TextField/Input/export.d.ts +0 -0
  132. package/dist/types/components/Form/TextField/Label/Label.css.d.ts +0 -23
  133. package/dist/types/components/Form/TextField/Label/Label.d.ts +0 -9
  134. package/dist/types/components/Form/TextField/Label/export.d.ts +0 -0
  135. package/dist/types/components/Form/TextField/TextField.css.d.ts +0 -19
  136. package/dist/types/components/Form/TextField/TextField.d.ts +0 -21
  137. package/dist/types/components/Form/TextField/Textarea/Textarea.css.d.ts +0 -56
  138. package/dist/types/components/Form/TextField/Textarea/Textarea.d.ts +0 -8
  139. package/dist/types/components/Form/TextField/Textarea/export.d.ts +0 -0
  140. package/dist/types/components/Form/TextField/Textarea/stories.d.ts +0 -0
  141. package/dist/types/components/Form/TextField/export.d.ts +0 -0
  142. package/dist/types/components/Form/export.d.ts +0 -0
  143. package/dist/types/components/Header/Header.css.d.ts +0 -36
  144. package/dist/types/components/Header/Header.d.ts +0 -11
  145. package/dist/types/components/Header/HeaderOverlay/index.d.ts +0 -7
  146. package/dist/types/components/Header/HeaderOverlay/styles.css.d.ts +0 -5
  147. package/dist/types/components/Header/ToggleNav/index.d.ts +0 -9
  148. package/dist/types/components/Header/ToggleNav/styles.css.d.ts +0 -5
  149. package/dist/types/components/Header/export.d.ts +0 -0
  150. package/dist/types/components/Header/stories.d.ts +0 -6
  151. package/dist/types/components/Icon/Icon.css.d.ts +0 -45
  152. package/dist/types/components/Icon/Icon.d.ts +0 -12
  153. package/dist/types/components/Icon/export.d.ts +0 -0
  154. package/dist/types/components/Icon/path.d.ts +0 -19
  155. package/dist/types/components/Icon/stories.d.ts +0 -0
  156. package/dist/types/components/KeyNumber/KeyNumber.css.d.ts +0 -40
  157. package/dist/types/components/KeyNumber/KeyNumber.d.ts +0 -15
  158. package/dist/types/components/KeyNumber/export.d.ts +0 -0
  159. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.css.d.ts +0 -18
  160. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.d.ts +0 -16
  161. package/dist/types/components/LanguageSwitcher/export.d.ts +0 -0
  162. package/dist/types/components/Logo/Logo.css.d.ts +0 -54
  163. package/dist/types/components/Logo/Logo.d.ts +0 -8
  164. package/dist/types/components/Logo/export.d.ts +0 -0
  165. package/dist/types/components/Logo/stories.d.ts +0 -6
  166. package/dist/types/components/Main/Main.css.d.ts +0 -32
  167. package/dist/types/components/Main/Main.d.ts +0 -7
  168. package/dist/types/components/Main/export.d.ts +0 -0
  169. package/dist/types/components/Main/stories.d.ts +0 -0
  170. package/dist/types/components/Modal/Modal.css.d.ts +0 -82
  171. package/dist/types/components/Modal/Modal.d.ts +0 -15
  172. package/dist/types/components/Modal/export.d.ts +0 -0
  173. package/dist/types/components/Modal/types.d.ts +0 -5
  174. package/dist/types/components/Nav/Nav.css.d.ts +0 -52
  175. package/dist/types/components/Nav/Nav.d.ts +0 -7
  176. package/dist/types/components/Nav/export.d.ts +0 -0
  177. package/dist/types/components/Nav/stories.d.ts +0 -6
  178. package/dist/types/components/NavLegal/NavLegal.css.d.ts +0 -57
  179. package/dist/types/components/NavLegal/NavLegal.d.ts +0 -7
  180. package/dist/types/components/NavLegal/export.d.ts +0 -0
  181. package/dist/types/components/NavLegal/stories.d.ts +0 -6
  182. package/dist/types/components/NavSocial/NavSocial.css.d.ts +0 -30
  183. package/dist/types/components/NavSocial/NavSocial.d.ts +0 -15
  184. package/dist/types/components/NavSocial/export.d.ts +0 -0
  185. package/dist/types/components/NavSocial/stories.d.ts +0 -0
  186. package/dist/types/components/Section/Section.css.d.ts +0 -60
  187. package/dist/types/components/Section/Section.d.ts +0 -7
  188. package/dist/types/components/Section/export.d.ts +0 -0
  189. package/dist/types/components/Section/stories.d.ts +0 -0
  190. package/dist/types/components/ToRemove/ToRemove.d.ts +0 -1
  191. package/dist/types/components/Video/Video.css.d.ts +0 -43
  192. package/dist/types/components/Video/Video.d.ts +0 -17
  193. package/dist/types/components/Video/export.d.ts +0 -0
  194. package/dist/types/components/VideoFullWidth/VideoFullWidth.css.d.ts +0 -18
  195. package/dist/types/components/VideoFullWidth/VideoFullWidth.d.ts +0 -14
  196. package/dist/types/components/VideoFullWidth/export.d.ts +0 -0
  197. package/dist/types/css/index.d.ts +0 -28
  198. package/dist/types/index.d.ts +0 -58
  199. package/dist/types/styles/mediaqueries.d.ts +0 -16
  200. package/dist/types/styles/sprinkles.css.d.ts +0 -3423
  201. package/dist/types/theme/baseThemeValues.d.ts +0 -158
  202. package/dist/types/theme/contract.css.d.ts +0 -79
  203. package/dist/types/theme/index.d.ts +0 -3
  204. package/dist/types/theme/utils.d.ts +0 -86
  205. package/dist/types/utils/cookie.d.ts +0 -2
  206. package/dist/types/utils/deep-merge-objects.d.ts +0 -2
  207. package/dist/types/utils/theme.css.d.ts +0 -173
  208. package/dist/types/utils/use-breakpoint-key.d.ts +0 -1
  209. package/dist/types/utils/use-window-size.d.ts +0 -5
  210. package/dist/utils/theme.css.ts +0 -129
  211. package/src/components/Button/stories.ts +0 -127
  212. package/src/components/Section/stories.ts +0 -64
  213. package/src/css/index.ts +0 -33
  214. package/src/themes/dark.ts +0 -3
  215. package/src/themes/index.ts +0 -5
  216. package/src/themes/light.ts +0 -3
  217. /package/{dist/types/components/Actions/export.d.ts → src/components/Form/Row/index.tsx} +0 -0
  218. /package/{dist/types/components/NavLegal/types.d.ts → src/components/NavLegal/types.tsx} +0 -0
  219. /package/{dist/types/components/NavSocial/types.d.ts → src/components/NavSocial/types.tsx} +0 -0
@@ -1,102 +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 iconBase = style({
6
- display: 'inline-block',
7
- verticalAlign: 'middle',
8
- fill: 'currentColor',
9
- flexShrink: 0,
10
- transition: 'all 0.3s ease-in-out',
11
- });
12
-
13
- const iconPath = style({
14
- transition: 'fill 0.3s ease-in-out',
15
- });
16
-
17
- export const iconRecipe = recipe({
18
- base: iconBase,
19
-
20
- variants: {
21
- size: {
22
- xs: {
23
- width: '12px',
24
- height: '12px',
25
- },
26
- sm: {
27
- width: '16px',
28
- height: '16px',
29
- },
30
- md: {
31
- width: '24px',
32
- height: '24px',
33
- },
34
- lg: {
35
- width: '32px',
36
- height: '32px',
37
- },
38
- xl: {
39
- width: '48px',
40
- height: '48px',
41
- },
42
- '2xl': {
43
- width: '64px',
44
- height: '64px',
45
- },
46
- },
47
- // color: {
48
- // current: {
49
- // fill: 'currentColor',
50
- // },
51
- // primary: {
52
- // fill: themeContract.colors.primary,
53
- // },
54
- // secondary: {
55
- // fill: themeContract.colors.secondary,
56
- // },
57
- // accent: {
58
- // fill: themeContract.colors.accent,
59
- // },
60
- // text: {
61
- // fill: themeContract.colors.text,
62
- // },
63
- // textSecondary: {
64
- // fill: themeContract.colors.textSecondary,
65
- // },
66
- // error: {
67
- // fill: themeContract.colors.error,
68
- // },
69
- // success: {
70
- // fill: themeContract.colors.success,
71
- // },
72
- // warning: {
73
- // fill: themeContract.colors.warning,
74
- // },
75
- // info: {
76
- // fill: themeContract.colors.info,
77
- // },
78
- // },
79
- interactive: {
80
- true: {
81
- cursor: 'pointer',
82
- ':hover': {
83
- transform: 'scale(1.1)',
84
- opacity: 0.8,
85
- },
86
- ':active': {
87
- transform: 'scale(0.95)',
88
- },
89
- },
90
- false: {},
91
- },
92
- },
93
-
94
- defaultVariants: {
95
- size: 'md',
96
- // color: 'current',
97
- interactive: false,
98
- },
99
- });
100
-
101
- export { iconPath };
102
- export type IconVariants = RecipeVariants<typeof iconRecipe>;
@@ -1,158 +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 keyNumberBase = style({
7
- display: 'flex',
8
- flexDirection: 'column',
9
- alignItems: 'center',
10
- textAlign: 'center',
11
- color: themeContract.colors.text,
12
- });
13
-
14
- const keyNumberValue = style({
15
- fontSize: themeContract.fontSizes.lg,
16
- paddingBottom: themeContract.space.md,
17
- fontWeight: '400',
18
-
19
- '@media': {
20
- [queries.lg]: {
21
- paddingBottom: themeContract.space.lg,
22
- },
23
- },
24
-
25
- // selectors: {
26
- // '& span': {
27
- // fontSize: themeContract.fontSizes['4xl'],
28
- // lineHeight: themeContract.lineHeights.tight,
29
- // fontWeight: 'bold',
30
- // display: 'inline-block',
31
-
32
- // '@media': {
33
- // [queries.md]: {
34
- // fontSize: '3rem',
35
- // },
36
- // [queries.lg]: {
37
- // fontSize: '4rem',
38
- // },
39
- // },
40
- // },
41
- // },
42
- });
43
-
44
- const keyNumberLabel = style({
45
- fontSize: themeContract.fontSizes.md,
46
- color: themeContract.colors.textSecondary,
47
- lineHeight: themeContract.lineHeights.normal,
48
- margin: 0,
49
-
50
- '@media': {
51
- [queries.md]: {
52
- fontSize: themeContract.fontSizes.lg,
53
- },
54
- },
55
- });
56
-
57
- export const keyNumberRecipe = recipe({
58
- base: keyNumberBase,
59
-
60
- variants: {
61
- size: {
62
- sm: {
63
- // selectors: {
64
- // [`& .${keyNumberValue}`]: {
65
- // fontSize: themeContract.fontSizes.md,
66
- // },
67
- // [`& .${keyNumberValue} span`]: {
68
- // fontSize: themeContract.fontSizes['2xl'],
69
- // },
70
- // [`& .${keyNumberLabel}`]: {
71
- // fontSize: themeContract.fontSizes.sm,
72
- // },
73
- // },
74
- },
75
- md: {},
76
- lg: {
77
- // selectors: {
78
- // [`& .${keyNumberValue}`]: {
79
- // fontSize: themeContract.fontSizes.xl,
80
- // },
81
- // [`& .${keyNumberValue} span`]: {
82
- // fontSize: '5rem',
83
- // '@media': {
84
- // [queries.lg]: {
85
- // fontSize: '6rem',
86
- // },
87
- // },
88
- // },
89
- // [`& .${keyNumberLabel}`]: {
90
- // fontSize: themeContract.fontSizes.xl,
91
- // },
92
- // },
93
- },
94
- },
95
- variant: {
96
- default: {},
97
- highlighted: {
98
- padding: themeContract.space.lg,
99
- backgroundColor: themeContract.colors.surface,
100
- borderRadius: themeContract.radii.lg,
101
- boxShadow: themeContract.shadows.md,
102
- },
103
- outlined: {
104
- padding: themeContract.space.lg,
105
- border: `2px solid ${themeContract.colors.border}`,
106
- borderRadius: themeContract.radii.lg,
107
- },
108
- },
109
- align: {
110
- left: {
111
- alignItems: 'flex-start',
112
- textAlign: 'left',
113
- },
114
- center: {
115
- alignItems: 'center',
116
- textAlign: 'center',
117
- },
118
- right: {
119
- alignItems: 'flex-end',
120
- textAlign: 'right',
121
- },
122
- },
123
- // color: {
124
- // default: {},
125
- // primary: {
126
- // // selectors: {
127
- // // [`& .${keyNumberValue} span`]: {
128
- // // color: themeContract.colors.primary,
129
- // // },
130
- // // },
131
- // },
132
- // accent: {
133
- // // selectors: {
134
- // // [`& .${keyNumberValue} span`]: {
135
- // // color: themeContract.colors.accent,
136
- // // },
137
- // // },
138
- // },
139
- // success: {
140
- // // selectors: {
141
- // // [`& .${keyNumberValue} span`]: {
142
- // // color: themeContract.colors.success,
143
- // // },
144
- // // },
145
- // },
146
- // },
147
- },
148
-
149
- defaultVariants: {
150
- size: 'md',
151
- variant: 'default',
152
- align: 'center',
153
- // color: 'default',
154
- },
155
- });
156
-
157
- export { keyNumberValue, keyNumberLabel };
158
- export type KeyNumberVariants = RecipeVariants<typeof keyNumberRecipe>;
@@ -1,120 +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 languageSwitcherBase = style({
6
- position: 'relative',
7
- display: 'inline-flex',
8
- alignItems: 'center',
9
- });
10
-
11
- const languageSwitcherSelect = style({
12
- appearance: 'none',
13
- background: 'transparent',
14
- border: `1px solid ${themeContract.colors.border}`,
15
- borderRadius: themeContract.radii.md,
16
- padding: `${themeContract.space.sm} ${themeContract.space.md}`,
17
- paddingRight: themeContract.space.xl,
18
- fontSize: themeContract.fontSizes.sm,
19
- fontFamily: themeContract.fonts.body,
20
- color: themeContract.colors.text,
21
- cursor: 'pointer',
22
- transition: 'all 0.3s ease-in-out',
23
- minWidth: '120px',
24
-
25
- // ':hover': {
26
- // borderColor: themeContract.colors.primary,
27
- // backgroundColor: themeContract.colors.surface,
28
- // },
29
-
30
- // ':focus': {
31
- // outline: '2px solid',
32
- // outlineColor: themeContract.colors.primary,
33
- // outlineOffset: '2px',
34
- // borderColor: themeContract.colors.primary,
35
- // },
36
-
37
- // ':disabled': {
38
- // opacity: '0.5',
39
- // cursor: 'not-allowed',
40
- // },
41
- });
42
-
43
- const languageSwitcherIcon = style({
44
- position: 'absolute',
45
- right: themeContract.space.sm,
46
- top: '50%',
47
- transform: 'translateY(-50%)',
48
- pointerEvents: 'none',
49
- color: themeContract.colors.textSecondary,
50
- transition: 'transform 0.2s ease-in-out',
51
-
52
- // selectors: {
53
- // [`${languageSwitcherSelect}:focus + &`]: {
54
- // color: themeContract.colors.primary,
55
- // transform: 'translateY(-50%) rotate(180deg)',
56
- // },
57
- // },
58
- });
59
-
60
- export const languageSwitcherRecipe = recipe({
61
- base: languageSwitcherBase,
62
-
63
- variants: {
64
- variant: {
65
- default: {},
66
- minimal: {
67
- // selectors: {
68
- // [`& .${languageSwitcherSelect}`]: {
69
- // border: 'none',
70
- // borderRadius: 0,
71
- // borderBottom: `1px solid ${themeContract.colors.border}`,
72
- // paddingLeft: 0,
73
- // paddingRight: themeContract.space.lg,
74
- // backgroundColor: 'transparent',
75
- // },
76
- // },
77
- },
78
- outlined: {},
79
- filled: {
80
- // selectors: {
81
- // [`& .${languageSwitcherSelect}`]: {
82
- // backgroundColor: themeContract.colors.surface,
83
- // border: 'none',
84
- // },
85
- // },
86
- },
87
- },
88
- size: {
89
- sm: {
90
- // selectors: {
91
- // [`& .${languageSwitcherSelect}`]: {
92
- // padding: `${themeContract.space.xs} ${themeContract.space.sm}`,
93
- // paddingRight: themeContract.space.lg,
94
- // fontSize: themeContract.fontSizes.xs,
95
- // minWidth: '100px',
96
- // },
97
- // },
98
- },
99
- md: {},
100
- lg: {
101
- // selectors: {
102
- // [`& .${languageSwitcherSelect}`]: {
103
- // padding: `${themeContract.space.md} ${themeContract.space.lg}`,
104
- // paddingRight: '48px',
105
- // fontSize: themeContract.fontSizes.md,
106
- // minWidth: '140px',
107
- // },
108
- // },
109
- },
110
- },
111
- },
112
-
113
- defaultVariants: {
114
- variant: 'default',
115
- size: 'md',
116
- },
117
- });
118
-
119
- export { languageSwitcherSelect, languageSwitcherIcon };
120
- export type LanguageSwitcherVariants = RecipeVariants<typeof languageSwitcherRecipe>;
@@ -1,98 +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 logoBase = style({
6
- display: 'inline-block',
7
-
8
- // selectors: {
9
- // '& img': {
10
- // width: '100%',
11
- // height: 'auto',
12
- // maxWidth: '100%',
13
- // display: 'block',
14
- // },
15
- // '& svg': {
16
- // width: '100%',
17
- // height: 'auto',
18
- // maxWidth: '100%',
19
- // display: 'block',
20
- // fill: 'currentColor',
21
- // },
22
- // },
23
- });
24
-
25
- export const logoRecipe = recipe({
26
- base: logoBase,
27
-
28
- variants: {
29
- size: {
30
- xs: {
31
- width: '80px',
32
- height: 'auto',
33
- },
34
- sm: {
35
- width: '120px',
36
- height: 'auto',
37
- },
38
- md: {
39
- width: '160px',
40
- height: 'auto',
41
- },
42
- lg: {
43
- width: '200px',
44
- height: 'auto',
45
- },
46
- xl: {
47
- width: '240px',
48
- height: 'auto',
49
- },
50
- auto: {
51
- width: 'auto',
52
- height: 'auto',
53
- },
54
- },
55
- variant: {
56
- default: {},
57
- link: {
58
- cursor: 'pointer',
59
- transition: 'all 0.3s ease-in-out',
60
-
61
- ':hover': {
62
- opacity: '0.8',
63
- transform: 'scale(1.05)',
64
- },
65
-
66
- ':focus': {
67
- outline: '2px solid',
68
- outlineColor: themeContract.colors.primary,
69
- outlineOffset: '2px',
70
- borderRadius: themeContract.radii.sm,
71
- },
72
- },
73
- },
74
- responsive: {
75
- true: {
76
- maxWidth: '100%',
77
- height: 'auto',
78
-
79
- // selectors: {
80
- // '& img, & svg': {
81
- // width: '100%',
82
- // height: 'auto',
83
- // maxWidth: '100%',
84
- // },
85
- // },
86
- },
87
- false: {},
88
- },
89
- },
90
-
91
- defaultVariants: {
92
- size: 'md',
93
- variant: 'default',
94
- responsive: true,
95
- },
96
- });
97
-
98
- export type LogoVariants = RecipeVariants<typeof logoRecipe>;
@@ -1,62 +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 mainBase = style({
6
- display: 'flex',
7
- flexDirection: 'column',
8
- alignItems: 'center',
9
- justifyContent: 'flex-start',
10
- width: '100%',
11
- minHeight: '100vh',
12
- maxWidth: themeContract.maxWidth,
13
- margin: '0 auto',
14
- paddingTop: themeContract.header.height,
15
- paddingBottom: themeContract.footer.height,
16
- backgroundColor: themeContract.colors.background,
17
- color: themeContract.colors.text,
18
- fontFamily: themeContract.fonts.body,
19
- });
20
-
21
- export const mainRecipe = recipe({
22
- base: mainBase,
23
-
24
- variants: {
25
- centered: {
26
- true: {
27
- justifyContent: 'center',
28
- alignItems: 'center',
29
- },
30
- false: {
31
- justifyContent: 'flex-start',
32
- alignItems: 'stretch',
33
- },
34
- },
35
- fullWidth: {
36
- true: {
37
- maxWidth: '100%',
38
- },
39
- false: {
40
- maxWidth: themeContract.maxWidth,
41
- },
42
- },
43
- noPadding: {
44
- true: {
45
- paddingTop: '0',
46
- paddingBottom: '0',
47
- },
48
- false: {
49
- paddingTop: themeContract.header.height,
50
- paddingBottom: themeContract.footer.height,
51
- },
52
- },
53
- },
54
-
55
- defaultVariants: {
56
- centered: false,
57
- fullWidth: false,
58
- noPadding: false,
59
- },
60
- });
61
-
62
- export type MainVariants = RecipeVariants<typeof mainRecipe>;