@latte-macchiat-io/latte-vanilla-components 0.0.267 → 0.0.269

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.267",
3
+ "version": "0.0.269",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -0,0 +1,2 @@
1
+ export { Row, type RowProps } from './';
2
+ export { type RowVariants } from './styles.css';
@@ -12,7 +12,7 @@ export const rowRecipe = recipe(
12
12
 
13
13
  '@media': {
14
14
  ...generateResponsiveMedia({
15
- gap: themeContract.form.row.gap,
15
+ gap: themeContract.formRow.gap,
16
16
  }),
17
17
  },
18
18
  },
@@ -0,0 +1,24 @@
1
+ const themeFormRowBase = {
2
+ formRow: {
3
+ gap: {
4
+ mobile: '15px',
5
+ sm: '15px',
6
+ md: '30px',
7
+ lg: '30px',
8
+ xl: '50px',
9
+ '2xl': '50px',
10
+ },
11
+ },
12
+ };
13
+
14
+ export const themeFormRowLight = {
15
+ formRow: {
16
+ ...themeFormRowBase.formRow,
17
+ },
18
+ };
19
+
20
+ export const themeFormRowDark = {
21
+ formRow: {
22
+ ...themeFormRowBase.formRow,
23
+ },
24
+ };
@@ -1,7 +1,6 @@
1
1
  export { Form, type FormProps } from '.';
2
2
 
3
- export { Row, type RowProps } from './Row';
4
- export { type RowVariants } from './Row/styles.css';
3
+ export * from './Row/export';
5
4
 
6
5
  export { TextField, type TextFieldProps, type InputType } from '../Form/TextField/TextField';
7
6
  export { type TextFieldVariants } from '../Form/TextField/TextField.css';
@@ -1,3 +1,5 @@
1
+ import { themeFormRowDark, themeFormRowLight } from './Row/theme';
2
+
1
3
  const themeFormBase = {
2
4
  form: {
3
5
  borderRadius: '30px',
@@ -3,6 +3,7 @@ import { themeButtonDark, themeButtonLight } from '../components/Button/theme';
3
3
  import { themeCarouselDark, themeCarouselLight } from '../components/Carousel/theme';
4
4
  import { themeColumnsDark, themeColumnsLight } from '../components/Columns/theme';
5
5
  import { themeFooterDark, themeFooterLight } from '../components/Footer/theme';
6
+ import { themeFormRowDark, themeFormRowLight } from '../components/Form/Row/theme';
6
7
  import { themeFormDark, themeFormLight } from '../components/Form/theme';
7
8
  import { themeHeaderDark, themeHeaderLight } from '../components/Header/theme';
8
9
  import { themeHeadingDark, themeHeadingLight } from '../components/Heading/theme';
@@ -141,6 +142,7 @@ export const baseLightTheme = {
141
142
 
142
143
  ...themeVideoLight,
143
144
  ...themeFormLight,
145
+ ...themeFormRowLight,
144
146
  };
145
147
 
146
148
  export const baseDarkTheme = {
@@ -270,4 +272,5 @@ export const baseDarkTheme = {
270
272
  ...themeVideoDark,
271
273
 
272
274
  ...themeFormDark,
275
+ ...themeFormRowDark,
273
276
  };
@@ -906,15 +906,15 @@ export const themeContract = createGlobalThemeContract({
906
906
  xl: 'latte-form-paddingLeft-xl',
907
907
  '2xl': 'latte-form-paddingLeft-2xl',
908
908
  },
909
- row: {
910
- gap: {
911
- mobile: 'latte-form-row-gap-mobile',
912
- sm: 'latte-form-row-gap-sm',
913
- md: 'latte-form-row-gap-md',
914
- lg: 'latte-form-row-gap-lg',
915
- xl: 'latte-form-row-gap-xl',
916
- '2xl': 'latte-form-row-gap-2xl',
917
- },
909
+ },
910
+ formRow: {
911
+ gap: {
912
+ mobile: 'latte-formRow-gap-mobile',
913
+ sm: 'latte-formRow-gap-sm',
914
+ md: 'latte-formRow-gap-md',
915
+ lg: 'latte-formRow-gap-lg',
916
+ xl: 'latte-formRow-gap-xl',
917
+ '2xl': 'latte-formRow-gap-2xl',
918
918
  },
919
919
  },
920
920
  });
@@ -31,6 +31,7 @@ export type ThemeOverrides = {
31
31
  video?: Partial<typeof baseLightTheme.video>;
32
32
  carousel?: Partial<typeof baseLightTheme.carousel>;
33
33
  form?: Partial<typeof baseLightTheme.form>;
34
+ formRow?: Partial<typeof baseLightTheme.formRow>;
34
35
  };
35
36
 
36
37
  // Utility to create a theme with partial overrides over light theme base
@@ -63,6 +64,7 @@ const createAppTheme = (selector: string, overrides: ThemeOverrides = {}) => {
63
64
  video: { ...baseLightTheme.video, ...overrides.video },
64
65
  carousel: { ...baseLightTheme.carousel, ...overrides.carousel },
65
66
  form: { ...baseLightTheme.form, ...overrides.form },
67
+ formRow: { ...baseLightTheme.formRow, ...overrides.formRow },
66
68
  });
67
69
  };
68
70
 
@@ -96,6 +98,7 @@ const createAppDarkTheme = (selector: string, overrides: ThemeOverrides = {}) =>
96
98
  video: { ...baseDarkTheme.video, ...overrides.video },
97
99
  carousel: { ...baseDarkTheme.carousel, ...overrides.carousel },
98
100
  form: { ...baseDarkTheme.form, ...overrides.form },
101
+ formRow: { ...baseDarkTheme.formRow, ...overrides.formRow },
99
102
  });
100
103
  };
101
104