@latte-macchiat-io/latte-vanilla-components 0.0.318 → 0.0.319

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.318",
3
+ "version": "0.0.319",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -5,6 +5,7 @@ import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
5
5
  import { queries } from '../../styles/mediaqueries';
6
6
  import { themeContract } from '../../theme/contract.css';
7
7
 
8
+ import { combineResponsive } from '../../utils/combineResponsive';
8
9
  import { generateResponsiveMedia } from '../../utils/generateResponsiveMedia';
9
10
 
10
11
  export const carouselRecipe = recipe(
@@ -119,7 +120,24 @@ export const carouselNav = recipe(
119
120
 
120
121
  navPositionVertical: {
121
122
  top: {
122
- bottom: '100%',
123
+ [queries.mobile]: {
124
+ top: `calc(100% + ${themeContract.carousel.nav.positionVerticalOffset.mobile}px)`,
125
+ },
126
+ [queries.sm]: {
127
+ top: `calc(100% + ${themeContract.carousel.nav.positionVerticalOffset.sm}px)`,
128
+ },
129
+ [queries.md]: {
130
+ top: `calc(100% + ${themeContract.carousel.nav.positionVerticalOffset.md}px)`,
131
+ },
132
+ [queries.lg]: {
133
+ top: `calc(100% + ${themeContract.carousel.nav.positionVerticalOffset.lg}px)`,
134
+ },
135
+ [queries.xl]: {
136
+ top: `calc(100% + ${themeContract.carousel.nav.positionVerticalOffset.xl}px)`,
137
+ },
138
+ [queries['2xl']]: {
139
+ top: `calc(100% + ${themeContract.carousel.nav.positionVerticalOffset['2xl']}px)`,
140
+ },
123
141
  },
124
142
  center: {
125
143
  top: '50%',
@@ -26,6 +26,14 @@ const themeCarouselBase = {
26
26
  xl: '50',
27
27
  '2xl': '50',
28
28
  },
29
+ positionVerticalOffset: {
30
+ mobile: '15',
31
+ sm: '15',
32
+ md: '30',
33
+ lg: '30',
34
+ xl: '50',
35
+ '2xl': '50',
36
+ },
29
37
  },
30
38
  bullet: {
31
39
  borderRadius: '1000px',
@@ -813,6 +813,14 @@ export const themeContract = createGlobalThemeContract({
813
813
  border: 'latte-carousel-nav-border',
814
814
  borderRadius: 'latte-carousel-nav-borderRadius',
815
815
  backgroundColor: 'latte-carousel-nav-backgroundColor',
816
+ positionVerticalOffset: {
817
+ mobile: 'latte-carousel-nav-positionVerticalOffset-mobile',
818
+ sm: 'latte-carousel-nav-positionVerticalOffset-sm',
819
+ md: 'latte-carousel-nav-positionVerticalOffset-md',
820
+ lg: 'latte-carousel-nav-positionVerticalOffset-lg',
821
+ xl: 'latte-carousel-nav-positionVerticalOffset-xl',
822
+ '2xl': 'latte-carousel-nav-positionVerticalOffset-2xl',
823
+ },
816
824
  gap: {
817
825
  mobile: 'latte-carousel-nav-gap-mobile',
818
826
  sm: 'latte-carousel-nav-gap-sm',