@latte-macchiat-io/latte-vanilla-components 0.0.253 → 0.0.254

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.253",
3
+ "version": "0.0.254",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -69,16 +69,8 @@ export const sectionRecipe = recipe(
69
69
  },
70
70
  },
71
71
  isHeaderFixed: {
72
- true: {
73
- '@media': {
74
- ...generateResponsiveMedia({
75
- minHeight: calcResponsiveSubtract('100vh', themeContract.header.height),
76
- }),
77
- },
78
- },
79
- false: {
80
- minHeight: '100vh',
81
- },
72
+ true: {},
73
+ false: {},
82
74
  },
83
75
  withPaddingTop: {
84
76
  true: {
@@ -102,6 +94,19 @@ export const sectionRecipe = recipe(
102
94
  },
103
95
  },
104
96
 
97
+ compoundVariants: [
98
+ {
99
+ variants: { isFullHeight: true, isHeaderFixed: true },
100
+ style: {
101
+ '@media': {
102
+ ...generateResponsiveMedia({
103
+ minHeight: calcResponsiveSubtract('100vh', themeContract.header.height),
104
+ }),
105
+ },
106
+ },
107
+ },
108
+ ],
109
+
105
110
  defaultVariants: {
106
111
  align: 'left',
107
112
  isDark: false,