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

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.252",
3
+ "version": "0.0.253",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -1,6 +1,7 @@
1
1
  import { clsx } from 'clsx';
2
2
 
3
3
  import { sectionContent, sectionRecipe, type SectionVariants } from './styles.css';
4
+ import { themeContract } from '../../theme/contract.css';
4
5
 
5
6
  export type SectionProps = React.HTMLAttributes<HTMLDivElement> &
6
7
  SectionVariants & {
@@ -8,7 +9,9 @@ export type SectionProps = React.HTMLAttributes<HTMLDivElement> &
8
9
  };
9
10
 
10
11
  export const Section = ({ align, isDark, variant, isFullHeight, withPaddingTop, withPaddingBottom, className, children, style }: SectionProps) => (
11
- <section style={style} className={clsx(sectionRecipe({ align, isDark, variant, isFullHeight, withPaddingTop, withPaddingBottom }), className)}>
12
+ <section
13
+ style={style}
14
+ className={clsx(sectionRecipe({ align, isDark, variant, isFullHeight, withPaddingTop, withPaddingBottom, isHeaderFixed: true }), className)}>
12
15
  <div className={sectionContent}>{children}</div>
13
16
  </section>
14
17
  );
@@ -106,7 +106,7 @@ export const sectionRecipe = recipe(
106
106
  align: 'left',
107
107
  isDark: false,
108
108
  isFullHeight: false,
109
- isHeaderFixed: themeContract.header.isFixed ? true : false,
109
+ isHeaderFixed: false,
110
110
  withPaddingTop: true,
111
111
  withPaddingBottom: true,
112
112
  variant: 'transparent',