@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,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
|
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:
|
109
|
+
isHeaderFixed: false,
|
110
110
|
withPaddingTop: true,
|
111
111
|
withPaddingBottom: true,
|
112
112
|
variant: 'transparent',
|