@latte-macchiat-io/latte-vanilla-components 0.0.251 → 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.251",
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',
@@ -97,12 +97,12 @@ export const themeContract = createGlobalThemeContract({
97
97
  '2xl': 'latte-global-paddingLeft-2xl',
98
98
  },
99
99
  paddingLeftNeg: {
100
- mobile: 'latte-global-paddingLefttNeg-mobile',
101
- sm: 'latte-global-paddingLefttNeg-sm',
102
- md: 'latte-global-paddingLefttNeg-md',
103
- lg: 'latte-global-paddingLefttNeg-lg',
104
- xl: 'latte-global-paddingLefttNeg-xl',
105
- '2xl': 'latte-global-paddingLefttNeg-2xl',
100
+ mobile: 'latte-global-paddingLeftNeg-mobile',
101
+ sm: 'latte-global-paddingLeftNeg-sm',
102
+ md: 'latte-global-paddingLeftNeg-md',
103
+ lg: 'latte-global-paddingLeftNeg-lg',
104
+ xl: 'latte-global-paddingLeftNeg-xl',
105
+ '2xl': 'latte-global-paddingLeftNeg-2xl',
106
106
  },
107
107
  },
108
108
 
@@ -581,7 +581,7 @@ export const themeContract = createGlobalThemeContract({
581
581
  },
582
582
  paddingTop: {
583
583
  mobile: 'latte-modal-paddingTop-mobile',
584
- sm: 'latte-modal-gpaddingTopap-sm',
584
+ sm: 'latte-modal-paddingTopap-sm',
585
585
  md: 'latte-modal-paddingTop-md',
586
586
  lg: 'latte-modal-paddingTop-lg',
587
587
  xl: 'latte-modal-paddingTop-xl',
@@ -733,12 +733,12 @@ export const themeContract = createGlobalThemeContract({
733
733
  '2xl': 'latte-video-soundButton-width-2xl',
734
734
  },
735
735
  height: {
736
- mobile: 'latte-video-closeButton-height-mobile',
737
- sm: 'latte-video-closeButton-height-sm',
738
- md: 'latte-video-closeButton-height-md',
739
- lg: 'latte-video-closeButton-height-lg',
740
- xl: 'latte-video-closeButton-height-xl',
741
- '2xl': 'latte-video-closeButton-height-2xl',
736
+ mobile: 'latte-video-soundButton-height-mobile',
737
+ sm: 'latte-video-soundButton-height-sm',
738
+ md: 'latte-video-soundButton-height-md',
739
+ lg: 'latte-video-soundButton-height-lg',
740
+ xl: 'latte-video-soundButton-height-xl',
741
+ '2xl': 'latte-video-soundButton-height-2xl',
742
742
  },
743
743
  iconSize: {
744
744
  mobile: 'latte-video-soundButton-iconSize-mobile',
@@ -83,7 +83,7 @@ const createAppDarkTheme = (selector: string, overrides: ThemeOverrides = {}) =>
83
83
  button: { ...baseDarkTheme.button, ...overrides.button },
84
84
  icon: { ...baseDarkTheme.icon, ...overrides.icon },
85
85
  columns: { ...baseDarkTheme.columns, ...overrides.columns },
86
- heading: { ...baseLightTheme.heading, ...overrides.heading },
86
+ heading: { ...baseDarkTheme.heading, ...overrides.heading },
87
87
  modal: { ...baseDarkTheme.modal, ...overrides.modal },
88
88
  keyNumber: { ...baseDarkTheme.keyNumber, ...overrides.keyNumber },
89
89
  header: { ...baseDarkTheme.header, ...overrides.header },