@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
package/package.json CHANGED
@@ -1,29 +1,17 @@
1
1
  {
2
2
  "name": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.176",
3
+ "version": "0.0.177",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
- "main": "./dist/index.cjs.js",
7
- "module": "./dist/index.es.js",
8
- "types": "./dist/types/index.d.ts",
6
+ "main": "./src/index.ts",
7
+ "types": "./src/index.ts",
9
8
  "sideEffects": false,
10
9
  "exports": {
11
- ".": {
12
- "types": "./dist/types/index.d.ts",
13
- "import": "./dist/index.es.js",
14
- "require": "./dist/index.cjs.js"
15
- },
16
- "./css": {
17
- "types": "./dist/types/css/index.d.ts",
18
- "import": "./dist/css/index.js",
19
- "require": "./dist/css/index.cjs"
20
- },
10
+ ".": "./src/index.ts",
21
11
  "./*.css.ts": "./src/*.css.ts",
22
- "./src/*": "./src/*",
23
- "./dist/*": "./dist/*"
12
+ "./src/*": "./src/*"
24
13
  },
25
14
  "files": [
26
- "dist",
27
15
  "src/**/*.css.ts",
28
16
  "src/**/*.ts",
29
17
  "!src/**/*.stories.ts",
@@ -57,7 +45,6 @@
57
45
  "@vanilla-extract/dynamic": "^2.1.5",
58
46
  "@vanilla-extract/recipes": "^0.5.7",
59
47
  "@vanilla-extract/sprinkles": "^1.6.5",
60
- "@vitejs/plugin-react": "^5.0.2",
61
48
  "clsx": "^2.1.1",
62
49
  "eslint": "^9.15.0",
63
50
  "eslint-config-prettier": "^10.0.1",
@@ -67,9 +54,7 @@
67
54
  "prettier": "^3.4.2",
68
55
  "storybook": "^8.5.2",
69
56
  "typescript": "5.6.3",
70
- "typescript-eslint": "^8.21.0",
71
- "vite": "^7.1.4",
72
- "vite-plugin-dts": "^4.5.4"
57
+ "typescript-eslint": "^8.21.0"
73
58
  },
74
59
  "engines": {
75
60
  "node": ">=20.9.0",
@@ -81,7 +66,7 @@
81
66
  ]
82
67
  },
83
68
  "scripts": {
84
- "build": "vite build",
69
+ "build": "echo \"Source-only distribution - no build needed\"",
85
70
  "test": "echo \"Error: no test specified\" && exit 1",
86
71
  "storybook": "storybook dev -p 6006",
87
72
  "build-storybook": "storybook build",
@@ -1,113 +0,0 @@
1
- import { style } from '@vanilla-extract/css';
2
- import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
3
- import { themeContract } from '../../theme';
4
- import { queries } from '../../styles/mediaqueries';
5
-
6
- const actionsBase = style({
7
- display: 'flex',
8
- flexWrap: 'wrap',
9
-
10
- gap: themeContract.space.sm,
11
- paddingTop: themeContract.space.sm,
12
- width: '100%',
13
-
14
- '@media': {
15
- [queries.lg]: {
16
- gap: themeContract.space.md,
17
- paddingTop: themeContract.space.md,
18
- },
19
- },
20
- });
21
-
22
- export const actionsRecipe = recipe({
23
- base: actionsBase,
24
-
25
- variants: {
26
- align: {
27
- left: {
28
- justifyContent: 'flex-start',
29
- alignItems: 'flex-start',
30
- },
31
- center: {
32
- justifyContent: 'center',
33
- alignItems: 'center',
34
- },
35
- right: {
36
- justifyContent: 'flex-end',
37
- alignItems: 'flex-end',
38
- },
39
- },
40
- direction: {
41
- row: {
42
- flexDirection: 'row',
43
- },
44
- column: {
45
- flexDirection: 'column',
46
- },
47
- 'row-reverse': {
48
- flexDirection: 'row-reverse',
49
- },
50
- 'column-reverse': {
51
- flexDirection: 'column-reverse',
52
- },
53
- },
54
- spacing: {
55
- none: {
56
- gap: '0',
57
- paddingTop: '0',
58
- },
59
- xs: {
60
- gap: themeContract.space.xs,
61
- paddingTop: themeContract.space.xs,
62
- },
63
- sm: {
64
- gap: themeContract.space.sm,
65
- paddingTop: themeContract.space.sm,
66
- },
67
- md: {
68
- gap: themeContract.space.md,
69
- paddingTop: themeContract.space.md,
70
- },
71
- lg: {
72
- gap: themeContract.space.lg,
73
- paddingTop: themeContract.space.lg,
74
- },
75
- xl: {
76
- gap: themeContract.space.xl,
77
- paddingTop: themeContract.space.xl,
78
- },
79
- },
80
- wrap: {
81
- true: {
82
- flexWrap: 'wrap',
83
- },
84
- false: {
85
- flexWrap: 'nowrap',
86
- },
87
- },
88
- fullWidth: {
89
- true: {
90
- width: '100%',
91
-
92
- // selectors: {
93
- // '& > *': {
94
- // flex: '1',
95
- // },
96
- // },
97
- },
98
- false: {
99
- width: 'auto',
100
- },
101
- },
102
- },
103
-
104
- defaultVariants: {
105
- align: 'left',
106
- direction: 'row',
107
- spacing: 'sm',
108
- wrap: true,
109
- fullWidth: false,
110
- },
111
- });
112
-
113
- export type ActionsVariants = RecipeVariants<typeof actionsRecipe>;
@@ -1,119 +0,0 @@
1
- import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
2
- import { themeContract } from '../../theme';
3
-
4
- export const buttonRecipe = recipe({
5
- base: {
6
- display: 'inline-flex',
7
- alignItems: 'center',
8
- justifyContent: 'center',
9
- padding: themeContract.space.md,
10
- borderRadius: themeContract.radii.md,
11
- border: 'none',
12
- cursor: 'pointer',
13
- fontFamily: themeContract.fonts.body,
14
- fontSize: themeContract.fontSizes.md,
15
- fontWeight: '500',
16
- lineHeight: themeContract.lineHeights.tight,
17
- textDecoration: 'none',
18
- transition: 'all 0.2s ease-in-out',
19
- outline: 'none',
20
-
21
- ':hover': {
22
- transform: 'translateY(-1px)',
23
- boxShadow: themeContract.shadows.md,
24
- },
25
-
26
- ':active': {
27
- transform: 'translateY(0)',
28
- },
29
-
30
- ':focus-visible': {
31
- outline: '2px solid',
32
- outlineColor: themeContract.colors.primary,
33
- outlineOffset: '2px',
34
- },
35
-
36
- ':disabled': {
37
- opacity: '0.5',
38
- cursor: 'not-allowed',
39
- transform: 'none',
40
- boxShadow: 'none',
41
- },
42
- },
43
-
44
- variants: {
45
- variant: {
46
- primary: {
47
- backgroundColor: themeContract.colors.primary,
48
- color: themeContract.colors.background,
49
-
50
- ':hover': {
51
- backgroundColor: themeContract.colors.accent,
52
- },
53
- },
54
- secondary: {
55
- backgroundColor: themeContract.colors.secondary,
56
- color: themeContract.colors.text,
57
-
58
- ':hover': {
59
- backgroundColor: themeContract.colors.surface,
60
- },
61
- },
62
- outline: {
63
- backgroundColor: 'transparent',
64
- color: themeContract.colors.text,
65
- border: `1px solid ${themeContract.colors.border}`,
66
-
67
- ':hover': {
68
- backgroundColor: themeContract.colors.surface,
69
- borderColor: themeContract.colors.primary,
70
- },
71
- },
72
- ghost: {
73
- backgroundColor: 'transparent',
74
- color: themeContract.colors.text,
75
-
76
- ':hover': {
77
- backgroundColor: themeContract.colors.surface,
78
- },
79
- },
80
- danger: {
81
- backgroundColor: themeContract.colors.error,
82
- color: themeContract.colors.background,
83
-
84
- ':hover': {
85
- opacity: '0.9',
86
- },
87
- },
88
- },
89
- size: {
90
- sm: {
91
- padding: `${themeContract.space.xs} ${themeContract.space.sm}`,
92
- fontSize: themeContract.fontSizes.sm,
93
- borderRadius: themeContract.radii.sm,
94
- },
95
- md: {
96
- padding: `${themeContract.space.sm} ${themeContract.space.md}`,
97
- fontSize: themeContract.fontSizes.md,
98
- borderRadius: themeContract.radii.md,
99
- },
100
- lg: {
101
- padding: `${themeContract.space.md} ${themeContract.space.lg}`,
102
- fontSize: themeContract.fontSizes.lg,
103
- borderRadius: themeContract.radii.lg,
104
- },
105
- },
106
- fullWidth: {
107
- true: {
108
- width: '100%',
109
- },
110
- },
111
- },
112
-
113
- defaultVariants: {
114
- variant: 'primary',
115
- size: 'md',
116
- },
117
- });
118
-
119
- export type ButtonVariants = RecipeVariants<typeof buttonRecipe>;
@@ -1,179 +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
- keyframes({
6
- '0%': { transform: 'translateX(0)' },
7
- '100%': { transform: 'translateX(var(--slide-offset))' },
8
- });
9
-
10
- const carouselBase = style({
11
- position: 'relative',
12
- overflow: 'hidden',
13
- width: '100%',
14
- });
15
-
16
- const carouselContent = style({
17
- width: '100%',
18
- position: 'relative',
19
- });
20
-
21
- const carouselSlide = style({
22
- display: 'flex',
23
- position: 'relative',
24
- transition: 'transform 0.3s ease-in-out',
25
- willChange: 'transform',
26
- });
27
-
28
- const carouselItem = style({
29
- width: '100%',
30
- display: 'flex',
31
- position: 'relative',
32
- alignItems: 'stretch',
33
- flexShrink: 0,
34
- });
35
-
36
- const carouselNav = style({
37
- position: 'absolute',
38
- bottom: 0,
39
- left: 0,
40
- right: 0,
41
- zIndex: 30,
42
- width: '100%',
43
- maxWidth: themeContract.maxWidth,
44
- display: 'flex',
45
- justifyContent: 'flex-end',
46
- pointerEvents: 'none',
47
- gap: themeContract.space.sm,
48
- padding: themeContract.space.md,
49
- });
50
-
51
- const carouselNavButton = style({
52
- border: 'none',
53
- borderRadius: themeContract.radii.full,
54
- backgroundColor: themeContract.colors.background,
55
- color: themeContract.colors.text,
56
- padding: themeContract.space.sm,
57
- cursor: 'pointer',
58
- pointerEvents: 'auto',
59
- transition: 'all 0.3s ease-in-out',
60
- boxShadow: themeContract.shadows.md,
61
- display: 'flex',
62
- alignItems: 'center',
63
- justifyContent: 'center',
64
- width: '48px',
65
- height: '48px',
66
-
67
- // ':hover': {
68
- // transform: 'scale(1.1)',
69
- // backgroundColor: themeContract.colors.primary,
70
- // color: themeContract.colors.background,
71
- // },
72
-
73
- // ':focus': {
74
- // outline: '2px solid',
75
- // outlineColor: themeContract.colors.primary,
76
- // outlineOffset: '2px',
77
- // },
78
-
79
- // ':disabled': {
80
- // opacity: '0.5',
81
- // cursor: 'not-allowed',
82
- // transform: 'none',
83
- // },
84
- // selectors: {
85
- // ':disabled:hover': {
86
- // transform: 'none',
87
- // backgroundColor: themeContract.colors.background,
88
- // color: themeContract.colors.text,
89
- // },
90
- // },
91
- });
92
-
93
- const carouselBullets = style({
94
- display: 'flex',
95
- alignItems: 'center',
96
- justifyContent: 'center',
97
- gap: themeContract.space.md,
98
- marginTop: themeContract.space.lg,
99
-
100
- '@media': {
101
- [queries.lg]: {
102
- marginTop: themeContract.space.xl,
103
- },
104
- },
105
- });
106
-
107
- const carouselBullet = style({
108
- width: '12px',
109
- height: '12px',
110
- borderRadius: themeContract.radii.full,
111
- backgroundColor: themeContract.colors.border,
112
- cursor: 'pointer',
113
- transition: 'all 0.3s ease-in-out',
114
- border: 'none',
115
-
116
- ':hover': {
117
- transform: 'scale(1.2)',
118
- backgroundColor: themeContract.colors.primary,
119
- },
120
-
121
- ':focus': {
122
- outline: '2px solid',
123
- outlineColor: themeContract.colors.primary,
124
- outlineOffset: '2px',
125
- },
126
-
127
- '@media': {
128
- [queries.md]: {
129
- width: '16px',
130
- height: '16px',
131
- },
132
- },
133
- });
134
-
135
- export const carouselRecipe = recipe({
136
- base: carouselBase,
137
-
138
- variants: {
139
- fullWidth: {
140
- true: {
141
- width: '100vw',
142
- marginLeft: `calc((100vw - ${themeContract.maxWidth}) / -2)`,
143
- marginRight: `calc((100vw - ${themeContract.maxWidth}) / -2)`,
144
-
145
- '@media': {
146
- 'screen and (max-width: 1500px)': {
147
- marginLeft: `calc(-1 * ${themeContract.space.md})`,
148
- marginRight: `calc(-1 * ${themeContract.space.md})`,
149
- },
150
- [queries.md]: {
151
- marginLeft: `calc(-1 * ${themeContract.space.lg})`,
152
- marginRight: `calc(-1 * ${themeContract.space.lg})`,
153
- },
154
- [queries.lg]: {
155
- marginLeft: `calc(-1 * ${themeContract.space.xl})`,
156
- marginRight: `calc(-1 * ${themeContract.space.xl})`,
157
- },
158
- },
159
- },
160
- false: {
161
- width: '100%',
162
- },
163
- },
164
- },
165
-
166
- defaultVariants: {
167
- fullWidth: false,
168
- },
169
- });
170
-
171
- const carouselBulletActive = style({
172
- backgroundColor: themeContract.colors.primary,
173
- pointerEvents: 'none',
174
- opacity: 1,
175
- });
176
-
177
- export { carouselContent, carouselSlide, carouselItem, carouselNav, carouselNavButton, carouselBullets, carouselBullet, carouselBulletActive };
178
-
179
- export type CarouselVariants = RecipeVariants<typeof carouselRecipe>;
@@ -1,185 +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 columnsBase = style({
7
- display: 'flex',
8
- flexDirection: 'column',
9
- alignItems: 'flex-start',
10
- justifyContent: 'flex-start',
11
- width: '100%',
12
- gap: themeContract.space.md,
13
-
14
- '@media': {
15
- [queries.md]: {
16
- flexDirection: 'row',
17
- alignItems: 'stretch',
18
- gap: themeContract.space.lg,
19
- },
20
- [queries.lg]: {
21
- gap: themeContract.space.xl,
22
- },
23
- },
24
- });
25
-
26
- // Generate column width utilities
27
- const columnWidths = {
28
- 1: style({
29
- '@media': {
30
- [queries.md]: {
31
- flex: '0 0 100%',
32
- maxWidth: '100%',
33
- },
34
- },
35
- }),
36
- 2: style({
37
- '@media': {
38
- [queries.md]: {
39
- flex: '0 0 50%',
40
- maxWidth: '50%',
41
- },
42
- },
43
- }),
44
- 3: style({
45
- '@media': {
46
- [queries.md]: {
47
- flex: '0 0 33.333333%',
48
- maxWidth: '33.333333%',
49
- },
50
- },
51
- }),
52
- 4: style({
53
- '@media': {
54
- [queries.md]: {
55
- flex: '0 0 25%',
56
- maxWidth: '25%',
57
- },
58
- },
59
- }),
60
- 6: style({
61
- '@media': {
62
- [queries.md]: {
63
- flex: '0 0 16.666667%',
64
- maxWidth: '16.666667%',
65
- },
66
- },
67
- }),
68
- 12: style({
69
- '@media': {
70
- [queries.md]: {
71
- flex: '0 0 8.333333%',
72
- maxWidth: '8.333333%',
73
- },
74
- },
75
- }),
76
- };
77
-
78
- export const columnsRecipe = recipe({
79
- base: columnsBase,
80
-
81
- variants: {
82
- align: {
83
- left: {
84
- textAlign: 'left',
85
- justifyContent: 'flex-start',
86
- },
87
- center: {
88
- textAlign: 'center',
89
- justifyContent: 'center',
90
- },
91
- right: {
92
- textAlign: 'right',
93
- justifyContent: 'flex-end',
94
- },
95
- },
96
- spacing: {
97
- none: {
98
- gap: '0',
99
- },
100
- sm: {
101
- gap: themeContract.space.sm,
102
- '@media': {
103
- [queries.md]: {
104
- gap: themeContract.space.md,
105
- },
106
- },
107
- },
108
- md: {
109
- gap: themeContract.space.md,
110
- '@media': {
111
- [queries.md]: {
112
- gap: themeContract.space.lg,
113
- },
114
- },
115
- },
116
- lg: {
117
- gap: themeContract.space.lg,
118
- '@media': {
119
- [queries.md]: {
120
- gap: themeContract.space.xl,
121
- },
122
- },
123
- },
124
- },
125
- wrap: {
126
- true: {
127
- flexWrap: 'wrap',
128
- },
129
- false: {
130
- flexWrap: 'nowrap',
131
- },
132
- },
133
- reverse: {
134
- true: {
135
- '@media': {
136
- [queries.md]: {
137
- flexDirection: 'row-reverse',
138
- },
139
- },
140
- },
141
- false: {},
142
- },
143
- alignItems: {
144
- start: {
145
- '@media': {
146
- [queries.md]: {
147
- alignItems: 'flex-start',
148
- },
149
- },
150
- },
151
- center: {
152
- '@media': {
153
- [queries.md]: {
154
- alignItems: 'center',
155
- },
156
- },
157
- },
158
- end: {
159
- '@media': {
160
- [queries.md]: {
161
- alignItems: 'flex-end',
162
- },
163
- },
164
- },
165
- stretch: {
166
- '@media': {
167
- [queries.md]: {
168
- alignItems: 'stretch',
169
- },
170
- },
171
- },
172
- },
173
- },
174
-
175
- defaultVariants: {
176
- align: 'left',
177
- spacing: 'md',
178
- wrap: true,
179
- reverse: false,
180
- alignItems: 'stretch',
181
- },
182
- });
183
-
184
- export { columnWidths };
185
- export type ColumnsVariants = RecipeVariants<typeof columnsRecipe>;