@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,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>;
@@ -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>;