@latte-macchiat-io/latte-vanilla-components 0.0.288 → 0.0.289

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.288",
3
+ "version": "0.0.289",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -1,35 +1,36 @@
1
1
  import { globalStyle, style } from '@vanilla-extract/css';
2
2
  import { recipe } from '@vanilla-extract/recipes';
3
+
3
4
  import { queries, themeContract } from '../..';
4
5
  import { generateResponsiveMedia } from '../../utils/generateResponsiveMedia';
5
6
 
7
+ export const headerBase = style({
8
+ zIndex: 30,
9
+ width: '100%',
10
+ display: 'flex',
11
+ flexDirection: 'row',
12
+ alignItems: 'center',
13
+ position: 'relative',
14
+ justifyContent: 'space-between',
15
+
16
+ fontSize: themeContract.header.fontSize,
17
+ backgroundColor: themeContract.header.backgroundColor,
18
+
19
+ '@media': {
20
+ ...generateResponsiveMedia({
21
+ gap: themeContract.header.gap,
22
+ height: themeContract.header.height,
23
+ paddingTop: themeContract.header.paddingTop,
24
+ paddingLeft: themeContract.global.paddingLeft,
25
+ paddingRight: themeContract.global.paddingRight,
26
+ paddingBottom: themeContract.header.paddingBottom,
27
+ }),
28
+ },
29
+ });
30
+
6
31
  export const headerRecipe = recipe(
7
32
  {
8
- base: [
9
- {
10
- zIndex: 30,
11
- width: '100%',
12
- display: 'flex',
13
- flexDirection: 'row',
14
- alignItems: 'center',
15
- position: 'relative',
16
- justifyContent: 'space-between',
17
-
18
- fontSize: themeContract.header.fontSize,
19
- backgroundColor: themeContract.header.backgroundColor,
20
-
21
- '@media': {
22
- ...generateResponsiveMedia({
23
- gap: themeContract.header.gap,
24
- height: themeContract.header.height,
25
- paddingTop: themeContract.header.paddingTop,
26
- paddingLeft: themeContract.global.paddingLeft,
27
- paddingRight: themeContract.global.paddingRight,
28
- paddingBottom: themeContract.header.paddingBottom,
29
- }),
30
- },
31
- },
32
- ],
33
+ base: [headerBase],
33
34
 
34
35
  variants: {
35
36
  isFixed: {
@@ -123,7 +124,7 @@ export const headerToggleNav = recipe(
123
124
  'header-toggle-nav'
124
125
  );
125
126
 
126
- globalStyle(`${headerRecipe} a `, {
127
+ globalStyle(`${headerBase} a`, {
127
128
  color: themeContract.header.linkColor,
128
129
  });
129
130