@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,167 +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/contract.css';
5
-
6
- const fadeIn = keyframes({
7
- from: { opacity: '0' },
8
- to: { opacity: '1' },
9
- });
10
-
11
- const slideUp = keyframes({
12
- from: {
13
- opacity: '0',
14
- transform: 'translateY(100%)',
15
- },
16
- to: {
17
- opacity: '1',
18
- transform: 'translateY(0)',
19
- },
20
- });
21
-
22
- const consentOverlay = style({
23
- position: 'fixed',
24
- top: 0,
25
- left: 0,
26
- right: 0,
27
- bottom: 0,
28
- zIndex: 100,
29
- animation: `${fadeIn} 0.3s ease-out`,
30
-
31
- '::before': {
32
- content: '""',
33
- position: 'fixed',
34
- top: 0,
35
- left: 0,
36
- right: 0,
37
- bottom: 0,
38
- backgroundColor: 'rgba(0, 0, 0, 0.3)',
39
- backdropFilter: 'blur(2px)',
40
- opacity: 0.8,
41
- },
42
- });
43
-
44
- const consentContent = style({
45
- // position: 'fixed',
46
- bottom: themeContract.space.md,
47
- right: themeContract.space.md,
48
- zIndex: 20,
49
- display: 'flex',
50
- flexDirection: 'column',
51
- backgroundColor: themeContract.colors.background,
52
- border: `1px solid ${themeContract.colors.border}`,
53
- borderRadius: themeContract.radii.lg,
54
- boxShadow: themeContract.shadows.xl,
55
- padding: themeContract.space.lg,
56
- width: '300px',
57
- maxWidth: 'calc(100vw - 32px)',
58
- animation: `${slideUp} 0.3s ease-out`,
59
-
60
- '@media': {
61
- [queries.sm]: {
62
- width: '400px',
63
- },
64
- [queries.md]: {
65
- width: '500px',
66
- padding: themeContract.space.xl,
67
- },
68
- },
69
- });
70
-
71
- const consentActions = style({
72
- display: 'flex',
73
- alignItems: 'center',
74
- justifyContent: 'flex-end',
75
- gap: themeContract.space.md,
76
- marginTop: themeContract.space.lg,
77
- flexWrap: 'wrap',
78
-
79
- '@media': {
80
- [queries.sm]: {
81
- flexWrap: 'nowrap',
82
- },
83
- },
84
- });
85
-
86
- export const consentRecipe = recipe({
87
- base: consentOverlay,
88
-
89
- variants: {
90
- // position: {
91
- // 'bottom-right': {},
92
- // 'bottom-left': {
93
- // // selectors: {
94
- // // '& > div': {
95
- // // left: themeContract.space.md,
96
- // // right: 'auto',
97
- // // },
98
- // // },
99
- // },
100
- // 'bottom-center': {
101
- // // selectors: {
102
- // // '& > div': {
103
- // // left: '50%',
104
- // // right: 'auto',
105
- // // transform: 'translateX(-50%)',
106
- // // },
107
- // // },
108
- // },
109
- // 'top-right': {
110
- // // selectors: {
111
- // // '& > div': {
112
- // // top: themeContract.space.md,
113
- // // bottom: 'auto',
114
- // // },
115
- // // },
116
- // },
117
- // 'top-left': {
118
- // // selectors: {
119
- // // '& > div': {
120
- // // top: themeContract.space.md,
121
- // // bottom: 'auto',
122
- // // left: themeContract.space.md,
123
- // // right: 'auto',
124
- // // },
125
- // // },
126
- // },
127
- // 'top-center': {
128
- // // selectors: {
129
- // // '& > div': {
130
- // // top: themeContract.space.md,
131
- // // bottom: 'auto',
132
- // // left: '50%',
133
- // // right: 'auto',
134
- // // transform: 'translateX(-50%)',
135
- // // },
136
- // // },
137
- // },
138
- // },
139
- variant: {
140
- modal: {},
141
- banner: {
142
- '::before': {
143
- display: 'none',
144
- },
145
-
146
- // selectors: {
147
- // '& > div': {
148
- // position: 'static',
149
- // width: '100%',
150
- // maxWidth: 'none',
151
- // borderRadius: 0,
152
- // bottom: 'auto',
153
- // right: 'auto',
154
- // },
155
- // },
156
- },
157
- },
158
- },
159
-
160
- defaultVariants: {
161
- // position: 'bottom-right',
162
- variant: 'modal',
163
- },
164
- });
165
-
166
- export { consentContent, consentActions };
167
- export type ConsentCookieVariants = RecipeVariants<typeof consentRecipe>;
@@ -1,108 +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 footerBase = style({
7
- display: 'flex',
8
- alignItems: 'center',
9
- justifyContent: 'space-between',
10
- flexDirection: 'column',
11
- backgroundColor: themeContract.colors.background,
12
- color: themeContract.colors.text,
13
- zIndex: 20,
14
- paddingLeft: themeContract.space.md,
15
- paddingRight: themeContract.space.md,
16
- paddingTop: themeContract.space.lg,
17
- paddingBottom: themeContract.space.lg,
18
- gap: themeContract.space.md,
19
- fontSize: themeContract.fontSizes.sm,
20
- borderTop: `1px solid ${themeContract.colors.border}`,
21
-
22
- '@media': {
23
- [queries.md]: {
24
- paddingLeft: themeContract.space.lg,
25
- paddingRight: themeContract.space.lg,
26
- gap: themeContract.space.lg,
27
- },
28
- [queries.lg]: {
29
- flexDirection: 'row',
30
- paddingLeft: themeContract.space.xl,
31
- paddingRight: themeContract.space.xl,
32
- gap: themeContract.space.xl,
33
- },
34
- },
35
-
36
- // selectors: {
37
- // '& a': {
38
- // transition: 'all 0.3s ease-in-out',
39
- // textDecoration: 'none',
40
- // color: 'inherit',
41
- // },
42
- // '& a:hover': {
43
- // opacity: '0.7',
44
- // transform: 'translateY(-1px)',
45
- // },
46
- // },
47
- });
48
-
49
- export const footerRecipe = recipe({
50
- base: footerBase,
51
-
52
- variants: {
53
- variant: {
54
- default: {
55
- backgroundColor: themeContract.colors.background,
56
- borderTop: `1px solid ${themeContract.colors.border}`,
57
- },
58
- dark: {
59
- backgroundColor: themeContract.colors.surface,
60
- color: themeContract.colors.textLight,
61
- borderTop: `1px solid ${themeContract.colors.border}`,
62
- },
63
- minimal: {
64
- backgroundColor: 'transparent',
65
- borderTop: 'none',
66
- },
67
- },
68
- size: {
69
- sm: {
70
- paddingTop: themeContract.space.md,
71
- paddingBottom: themeContract.space.md,
72
- fontSize: themeContract.fontSizes.xs,
73
- },
74
- md: {
75
- paddingTop: themeContract.space.lg,
76
- paddingBottom: themeContract.space.lg,
77
- fontSize: themeContract.fontSizes.sm,
78
- },
79
- lg: {
80
- paddingTop: themeContract.space.xl,
81
- paddingBottom: themeContract.space.xl,
82
- fontSize: themeContract.fontSizes.md,
83
- },
84
- },
85
- layout: {
86
- stacked: {
87
- flexDirection: 'column',
88
- textAlign: 'center',
89
- },
90
- horizontal: {
91
- '@media': {
92
- [queries.sm]: {
93
- flexDirection: 'row',
94
- textAlign: 'left',
95
- },
96
- },
97
- },
98
- },
99
- },
100
-
101
- defaultVariants: {
102
- variant: 'default',
103
- size: 'md',
104
- layout: 'horizontal',
105
- },
106
- });
107
-
108
- export type FooterVariants = RecipeVariants<typeof footerRecipe>;
@@ -1,64 +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 formBase = style({
6
- width: '100%',
7
- backgroundColor: 'transparent',
8
- });
9
-
10
- export const formRecipe = recipe({
11
- base: formBase,
12
-
13
- variants: {
14
- spacing: {
15
- none: {
16
- gap: 0,
17
- },
18
- sm: {
19
- display: 'flex',
20
- flexDirection: 'column',
21
- gap: themeContract.space.sm,
22
- },
23
- md: {
24
- display: 'flex',
25
- flexDirection: 'column',
26
- gap: themeContract.space.md,
27
- },
28
- lg: {
29
- display: 'flex',
30
- flexDirection: 'column',
31
- gap: themeContract.space.lg,
32
- },
33
- xl: {
34
- display: 'flex',
35
- flexDirection: 'column',
36
- gap: themeContract.space.xl,
37
- },
38
- },
39
- layout: {
40
- stacked: {
41
- display: 'flex',
42
- flexDirection: 'column',
43
- },
44
- inline: {
45
- display: 'flex',
46
- flexDirection: 'row',
47
- flexWrap: 'wrap',
48
- alignItems: 'flex-end',
49
- },
50
- grid: {
51
- display: 'grid',
52
- gridTemplateColumns: 'repeat(auto-fit, minmax(250px, 1fr))',
53
- gap: themeContract.space.md,
54
- },
55
- },
56
- },
57
-
58
- defaultVariants: {
59
- spacing: 'md',
60
- layout: 'stacked',
61
- },
62
- });
63
-
64
- export type FormVariants = RecipeVariants<typeof formRecipe>;
@@ -1,70 +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 rowBase = style({
6
- display: 'flex',
7
- width: '100%',
8
- });
9
-
10
- export const rowRecipe = recipe({
11
- base: rowBase,
12
-
13
- variants: {
14
- align: {
15
- left: {
16
- justifyContent: 'flex-start',
17
- textAlign: 'left',
18
- },
19
- center: {
20
- justifyContent: 'center',
21
- textAlign: 'center',
22
- },
23
- right: {
24
- justifyContent: 'flex-end',
25
- textAlign: 'right',
26
- },
27
- },
28
- variant: {
29
- default: {
30
- flexDirection: 'column',
31
- gap: themeContract.space.sm,
32
- },
33
- actions: {
34
- flexDirection: 'row',
35
- alignItems: 'center',
36
- gap: themeContract.space.md,
37
- marginTop: themeContract.space.lg,
38
- },
39
- message: {
40
- flexDirection: 'column',
41
- padding: themeContract.space.md,
42
- backgroundColor: themeContract.colors.surface,
43
- borderRadius: themeContract.radii.md,
44
- border: `1px solid ${themeContract.colors.border}`,
45
- },
46
- },
47
- spacing: {
48
- none: {
49
- gap: 0,
50
- },
51
- sm: {
52
- gap: themeContract.space.sm,
53
- },
54
- md: {
55
- gap: themeContract.space.md,
56
- },
57
- lg: {
58
- gap: themeContract.space.lg,
59
- },
60
- },
61
- },
62
-
63
- defaultVariants: {
64
- align: 'left',
65
- variant: 'default',
66
- spacing: 'sm',
67
- },
68
- });
69
-
70
- export type RowVariants = RecipeVariants<typeof rowRecipe>;
@@ -1,106 +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 inputBase = style({
6
- appearance: 'none',
7
- backgroundColor: themeContract.colors.background,
8
- border: `1px solid ${themeContract.colors.border}`,
9
- borderRadius: themeContract.radii.md,
10
- color: themeContract.colors.text,
11
- fontFamily: themeContract.fonts.body,
12
- fontSize: themeContract.fontSizes.sm,
13
- lineHeight: themeContract.lineHeights.normal,
14
- padding: `${themeContract.space.sm} ${themeContract.space.md}`,
15
- transition: 'all 0.2s ease-in-out',
16
- width: '100%',
17
-
18
- // '::placeholder': {
19
- // color: themeContract.colors.textSecondary,
20
- // },
21
-
22
- // ':hover': {
23
- // borderColor: themeContract.colors.primary,
24
- // },
25
-
26
- // ':focus': {
27
- // outline: '2px solid',
28
- // outlineColor: themeContract.colors.primary,
29
- // outlineOffset: '2px',
30
- // borderColor: themeContract.colors.primary,
31
- // },
32
-
33
- // ':disabled': {
34
- // backgroundColor: themeContract.colors.surface,
35
- // color: themeContract.colors.textSecondary,
36
- // cursor: 'not-allowed',
37
- // opacity: '0.6',
38
- // },
39
-
40
- // selectors: {
41
- // '&[data-error="true"]': {
42
- // borderColor: themeContract.colors.error,
43
- // },
44
- // '&[data-error="true"]:focus': {
45
- // outlineColor: themeContract.colors.error,
46
- // borderColor: themeContract.colors.error,
47
- // },
48
- // // WebKit autofill styles
49
- // '&:-webkit-autofill': {
50
- // WebkitTextFillColor: themeContract.colors.text,
51
- // WebkitBoxShadow: `0 0 0px 1000px ${themeContract.colors.background} inset`,
52
- // },
53
- // },
54
- });
55
-
56
- export const inputRecipe = recipe({
57
- base: inputBase,
58
-
59
- variants: {
60
- size: {
61
- sm: {
62
- fontSize: themeContract.fontSizes.xs,
63
- padding: `${themeContract.space.xs} ${themeContract.space.sm}`,
64
- },
65
- md: {},
66
- lg: {
67
- fontSize: themeContract.fontSizes.md,
68
- padding: `${themeContract.space.md} ${themeContract.space.lg}`,
69
- },
70
- },
71
- variant: {
72
- default: {},
73
- filled: {
74
- backgroundColor: themeContract.colors.surface,
75
- border: 'none',
76
-
77
- // ':focus': {
78
- // backgroundColor: themeContract.colors.background,
79
- // border: `1px solid ${themeContract.colors.primary}`,
80
- // },
81
- },
82
- outlined: {
83
- backgroundColor: 'transparent',
84
- },
85
- underlined: {
86
- backgroundColor: 'transparent',
87
- border: 'none',
88
- borderBottom: `1px solid ${themeContract.colors.border}`,
89
- borderRadius: 0,
90
- padding: `${themeContract.space.sm} 0`,
91
-
92
- // ':focus': {
93
- // borderBottom: `2px solid ${themeContract.colors.primary}`,
94
- // outline: 'none',
95
- // },
96
- },
97
- },
98
- },
99
-
100
- defaultVariants: {
101
- size: 'md',
102
- variant: 'default',
103
- },
104
- });
105
-
106
- export type InputVariants = RecipeVariants<typeof inputRecipe>;
@@ -1,58 +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 labelBase = style({
6
- fontFamily: themeContract.fonts.body,
7
- fontSize: themeContract.fontSizes.sm,
8
- fontWeight: themeContract.fontWeights.medium,
9
- color: themeContract.colors.text,
10
- lineHeight: themeContract.lineHeights.tight,
11
- width: '100%',
12
- textAlign: 'left',
13
- paddingBottom: themeContract.space.xs,
14
-
15
- // selectors: {
16
- // '&[data-required="true"]': {
17
- // selectors: {
18
- // '&::after': {
19
- // content: ' *',
20
- // color: themeContract.colors.error,
21
- // },
22
- // },
23
- // },
24
- // },
25
- });
26
-
27
- export const labelRecipe = recipe({
28
- base: labelBase,
29
-
30
- variants: {
31
- size: {
32
- sm: {
33
- fontSize: themeContract.fontSizes.xs,
34
- paddingBottom: themeContract.space.xs,
35
- },
36
- md: {},
37
- lg: {
38
- fontSize: themeContract.fontSizes.md,
39
- paddingBottom: themeContract.space.sm,
40
- },
41
- },
42
- variant: {
43
- default: {},
44
- inline: {
45
- display: 'inline-block',
46
- marginRight: themeContract.space.sm,
47
- paddingBottom: 0,
48
- },
49
- },
50
- },
51
-
52
- defaultVariants: {
53
- size: 'md',
54
- variant: 'default',
55
- },
56
- });
57
-
58
- export type LabelVariants = RecipeVariants<typeof labelRecipe>;