@latte-macchiat-io/latte-vanilla-components 0.0.281 → 0.0.283

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.281",
3
+ "version": "0.0.283",
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,5 @@
1
1
  const themeHeaderBase = {
2
2
  header: {
3
- isFixed: 'true',
4
3
  fontSize: '1.2em',
5
4
  overlayBackgroundTransition: 'opacity 0.3s ease-in-out, visibility 0.3s ease-in-out',
6
5
 
@@ -1,17 +1,27 @@
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';
5
4
 
6
5
  export type SectionProps = React.HTMLAttributes<HTMLDivElement> &
7
6
  SectionVariants & {
8
7
  children: React.ReactNode;
9
8
  };
10
9
 
11
- export const Section = ({ align, isDark, variant, isFullHeight, withPaddingTop, withPaddingBottom, className, children, style }: SectionProps) => (
10
+ export const Section = ({
11
+ align,
12
+ isDark,
13
+ isHeaderFixed,
14
+ variant,
15
+ isFullHeight,
16
+ withPaddingTop,
17
+ withPaddingBottom,
18
+ className,
19
+ children,
20
+ style,
21
+ }: SectionProps) => (
12
22
  <section
13
23
  style={style}
14
- className={clsx(sectionRecipe({ align, isDark, variant, isFullHeight, withPaddingTop, withPaddingBottom, isHeaderFixed: true }), className)}>
24
+ className={clsx(sectionRecipe({ align, isDark, variant, isFullHeight, withPaddingTop, withPaddingBottom, isHeaderFixed }), className)}>
15
25
  <div className={sectionContent}>{children}</div>
16
26
  </section>
17
27
  );
@@ -149,7 +149,6 @@ export const themeContract = createGlobalThemeContract({
149
149
  },
150
150
  },
151
151
  header: {
152
- isFixed: 'latte-header-isFixed',
153
152
  fontSize: 'latte-header-fontSize',
154
153
  backgroundColor: 'latte-header-backgroundColor',
155
154
  overlayBackgroundColor: 'latte-header-overlayBackgroundColor',