@latte-macchiat-io/latte-vanilla-components 0.0.268 → 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,30 +1,24 @@
|
|
1
1
|
const themeFormRowBase = {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
'2xl': '50px',
|
11
|
-
},
|
2
|
+
formRow: {
|
3
|
+
gap: {
|
4
|
+
mobile: '15px',
|
5
|
+
sm: '15px',
|
6
|
+
md: '30px',
|
7
|
+
lg: '30px',
|
8
|
+
xl: '50px',
|
9
|
+
'2xl': '50px',
|
12
10
|
},
|
13
11
|
},
|
14
12
|
};
|
15
13
|
|
16
14
|
export const themeFormRowLight = {
|
17
|
-
|
18
|
-
|
19
|
-
...themeFormRowBase.form.row,
|
20
|
-
},
|
15
|
+
formRow: {
|
16
|
+
...themeFormRowBase.formRow,
|
21
17
|
},
|
22
18
|
};
|
23
19
|
|
24
20
|
export const themeFormRowDark = {
|
25
|
-
|
26
|
-
|
27
|
-
...themeFormRowBase.form.row,
|
28
|
-
},
|
21
|
+
formRow: {
|
22
|
+
...themeFormRowBase.formRow,
|
29
23
|
},
|
30
24
|
};
|
@@ -57,7 +57,6 @@ const themeFormBase = {
|
|
57
57
|
export const themeFormLight = {
|
58
58
|
form: {
|
59
59
|
...themeFormBase.form,
|
60
|
-
...themeFormRowLight.form,
|
61
60
|
backgroundColor: '#000000',
|
62
61
|
},
|
63
62
|
};
|
@@ -65,7 +64,6 @@ export const themeFormLight = {
|
|
65
64
|
export const themeFormDark = {
|
66
65
|
form: {
|
67
66
|
...themeFormBase.form,
|
68
|
-
...themeFormRowDark.form,
|
69
67
|
backgroundColor: '#000000',
|
70
68
|
},
|
71
69
|
};
|
@@ -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
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
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
|
});
|
package/src/theme/createTheme.ts
CHANGED
@@ -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
|
|