@latte-macchiat-io/latte-vanilla-components 0.0.421 → 0.0.422

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.421",
3
+ "version": "0.0.422",
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,33 @@
1
+ const themeConsentCookieBase = {
2
+ consentCookie: {
3
+ border: 'none',
4
+ overlayBlur: '0',
5
+ borderRadius: '30px',
6
+
7
+ closeButtonRightPosition: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
8
+ closeButtonTopPosition: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
9
+
10
+ gap: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
11
+ width: { mobile: '100%', sm: '200px', md: '600px', lg: '600px', xl: '800px', '2xl': '800px' },
12
+ paddingTop: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
13
+ paddingBottom: { mobile: '15px', sm: '15px', md: '30px', lg: '30px', xl: '50px', '2xl': '50px' },
14
+ },
15
+ };
16
+
17
+ export const themeConsentCookieLight = {
18
+ consentCookie: {
19
+ ...themeConsentCookieBase.consentCookie,
20
+ backgroundColor: '#000000',
21
+ closeButtonColor: '#000000',
22
+ overlayBackgroundColor: '#000000',
23
+ },
24
+ };
25
+
26
+ export const themeConsentCookieDark = {
27
+ consentCookie: {
28
+ ...themeConsentCookieBase.consentCookie,
29
+ backgroundColor: '#000000',
30
+ closeButtonColor: '#000000',
31
+ overlayBackgroundColor: '#000000',
32
+ },
33
+ };
@@ -2,6 +2,7 @@ import { themeActionsDark, themeActionsLight } from '../components/Actions/theme
2
2
  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
+ import { themeConsentCookieDark, themeConsentCookieLight } from '../components/ConsentCookie/theme';
5
6
  import { themeFooterDark, themeFooterLight } from '../components/Footer/theme';
6
7
  import { themeFormRowDark, themeFormRowLight } from '../components/Form/Row/theme';
7
8
  import { themeFormTextFieldDark, themeFormTextFieldLight } from '../components/Form/TextField/theme';
@@ -149,6 +150,7 @@ export const baseLightTheme = {
149
150
  ...themeVideoLight,
150
151
 
151
152
  ...themeLogoLight,
153
+ ...themeConsentCookieLight,
152
154
 
153
155
  form: {
154
156
  ...themeFormLight.form,
@@ -265,7 +267,7 @@ export const baseDarkTheme = {
265
267
  ...themeParagraphDark,
266
268
 
267
269
  ...themeActionsDark,
268
- ...themeListDark,
270
+ ...themeListDark,
269
271
  ...themeButtonDark,
270
272
  ...themeCarouselDark,
271
273
  ...themeColumnsDark,
@@ -287,6 +289,8 @@ export const baseDarkTheme = {
287
289
 
288
290
  ...themeLogoDark,
289
291
 
292
+ ...themeConsentCookieDark,
293
+
290
294
  form: {
291
295
  ...themeFormDark.form,
292
296
  ...themeFormRowDark,
@@ -17,7 +17,7 @@ export type ThemeOverrides = {
17
17
  main?: Partial<typeof baseLightTheme.main>;
18
18
  section?: Partial<typeof baseLightTheme.section>;
19
19
  actions?: Partial<typeof baseLightTheme.actions>;
20
- list?: Partial<typeof baseLightTheme.list>;
20
+ list?: Partial<typeof baseLightTheme.list>;
21
21
  button?: Partial<typeof baseLightTheme.button>;
22
22
  icon?: Partial<typeof baseLightTheme.icon>;
23
23
  columns?: Partial<typeof baseLightTheme.columns>;
@@ -34,6 +34,7 @@ export type ThemeOverrides = {
34
34
  carousel?: Partial<typeof baseLightTheme.carousel>;
35
35
  form?: Partial<typeof baseLightTheme.form>;
36
36
  logo?: Partial<typeof baseLightTheme.logo>;
37
+ consentCookie?: Partial<typeof baseLightTheme.consentCookie>;
37
38
  };
38
39
 
39
40
  // Utility to create a theme with partial overrides over light theme base
@@ -69,6 +70,7 @@ const createAppTheme = (selector: string, overrides: ThemeOverrides = {}) => {
69
70
  carousel: { ...baseLightTheme.carousel, ...overrides.carousel },
70
71
  form: { ...baseLightTheme.form, ...overrides.form },
71
72
  logo: { ...baseLightTheme.logo, ...overrides.logo },
73
+ consentCookie: { ...baseLightTheme.consentCookie, ...overrides.consentCookie },
72
74
  });
73
75
  };
74
76
 
@@ -105,6 +107,7 @@ const createAppDarkTheme = (selector: string, overrides: ThemeOverrides = {}) =>
105
107
  carousel: { ...baseDarkTheme.carousel, ...overrides.carousel },
106
108
  form: { ...baseDarkTheme.form, ...overrides.form },
107
109
  logo: { ...baseDarkTheme.logo, ...overrides.logo },
110
+ consentCookie: { ...baseDarkTheme.consentCookie, ...overrides.consentCookie },
108
111
  });
109
112
  };
110
113