@latte-macchiat-io/latte-vanilla-components 0.0.318 → 0.0.320
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
@@ -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,26 @@ export const carouselNav = recipe(
|
|
119
120
|
|
120
121
|
navPositionVertical: {
|
121
122
|
top: {
|
122
|
-
|
123
|
+
'@media': {
|
124
|
+
[queries.mobile]: {
|
125
|
+
top: `calc(100% + ${themeContract.carousel.nav.positionVerticalOffset.mobile}px)`,
|
126
|
+
},
|
127
|
+
[queries.sm]: {
|
128
|
+
top: `calc(100% + ${themeContract.carousel.nav.positionVerticalOffset.sm}px)`,
|
129
|
+
},
|
130
|
+
[queries.md]: {
|
131
|
+
top: `calc(100% + ${themeContract.carousel.nav.positionVerticalOffset.md}px)`,
|
132
|
+
},
|
133
|
+
[queries.lg]: {
|
134
|
+
top: `calc(100% + ${themeContract.carousel.nav.positionVerticalOffset.lg}px)`,
|
135
|
+
},
|
136
|
+
[queries.xl]: {
|
137
|
+
top: `calc(100% + ${themeContract.carousel.nav.positionVerticalOffset.xl}px)`,
|
138
|
+
},
|
139
|
+
[queries['2xl']]: {
|
140
|
+
top: `calc(100% + ${themeContract.carousel.nav.positionVerticalOffset['2xl']}px)`,
|
141
|
+
},
|
142
|
+
},
|
123
143
|
},
|
124
144
|
center: {
|
125
145
|
top: '50%',
|
@@ -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',
|