@latte-macchiat-io/latte-vanilla-components 0.0.176 → 0.0.177

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.
Files changed (153) hide show
  1. package/package.json +7 -22
  2. package/dist/components/Actions/Actions.css.ts +0 -113
  3. package/dist/components/Button/Button.css.ts +0 -119
  4. package/dist/components/Carousel/Carousel.css.ts +0 -179
  5. package/dist/components/Columns/Columns.css.ts +0 -185
  6. package/dist/components/ConsentCookie/ConsentCookie.css.ts +0 -167
  7. package/dist/components/Footer/Footer.css.ts +0 -108
  8. package/dist/components/Form/Form.css.ts +0 -64
  9. package/dist/components/Form/Row/Row.css.ts +0 -70
  10. package/dist/components/Form/TextField/Input/Input.css.ts +0 -106
  11. package/dist/components/Form/TextField/Label/Label.css.ts +0 -58
  12. package/dist/components/Form/TextField/TextField.css.ts +0 -139
  13. package/dist/components/Form/TextField/Textarea/Textarea.css.ts +0 -121
  14. package/dist/components/Header/Header.css.ts +0 -111
  15. package/dist/components/Header/HeaderOverlay/styles.css.ts +0 -33
  16. package/dist/components/Header/ToggleNav/styles.css.ts +0 -40
  17. package/dist/components/Icon/Icon.css.ts +0 -102
  18. package/dist/components/KeyNumber/KeyNumber.css.ts +0 -158
  19. package/dist/components/LanguageSwitcher/LanguageSwitcher.css.ts +0 -120
  20. package/dist/components/Logo/Logo.css.ts +0 -98
  21. package/dist/components/Main/Main.css.ts +0 -62
  22. package/dist/components/Modal/Modal.css.ts +0 -203
  23. package/dist/components/Nav/Nav.css.ts +0 -123
  24. package/dist/components/NavLegal/NavLegal.css.ts +0 -121
  25. package/dist/components/NavSocial/NavSocial.css.ts +0 -121
  26. package/dist/components/Section/Section.css.ts +0 -101
  27. package/dist/components/Video/Video.css.ts +0 -210
  28. package/dist/components/VideoFullWidth/VideoFullWidth.css.ts +0 -50
  29. package/dist/css/index.cjs +0 -1
  30. package/dist/css/index.js +0 -34
  31. package/dist/index.cjs.js +0 -2
  32. package/dist/index.es.js +0 -3863
  33. package/dist/styles/sprinkles.css.ts +0 -84
  34. package/dist/theme/contract.css.ts +0 -83
  35. package/dist/theme.css-CNjMk-g_.cjs +0 -1
  36. package/dist/theme.css-Dj6kL9o0.js +0 -3020
  37. package/dist/types/components/Actions/Actions.css.d.ts +0 -74
  38. package/dist/types/components/Actions/Actions.d.ts +0 -7
  39. package/dist/types/components/Actions/export.d.ts +0 -0
  40. package/dist/types/components/Actions/stories.d.ts +0 -0
  41. package/dist/types/components/Button/Button.css.d.ts +0 -65
  42. package/dist/types/components/Button/Button.d.ts +0 -8
  43. package/dist/types/components/Button/export.d.ts +0 -0
  44. package/dist/types/components/Button/stories.d.ts +0 -0
  45. package/dist/types/components/Carousel/Carousel.css.d.ts +0 -33
  46. package/dist/types/components/Carousel/Carousel.d.ts +0 -15
  47. package/dist/types/components/Carousel/export.d.ts +0 -0
  48. package/dist/types/components/Columns/Columns.css.d.ts +0 -104
  49. package/dist/types/components/Columns/Columns.d.ts +0 -8
  50. package/dist/types/components/Columns/export.d.ts +0 -0
  51. package/dist/types/components/Columns/stories.d.ts +0 -0
  52. package/dist/types/components/ConsentCookie/ConsentCookie.css.d.ts +0 -15
  53. package/dist/types/components/ConsentCookie/ConsentCookie.d.ts +0 -17
  54. package/dist/types/components/ConsentCookie/export.d.ts +0 -0
  55. package/dist/types/components/ConsentCookie/stories.d.ts +0 -0
  56. package/dist/types/components/Footer/Footer.css.d.ts +0 -50
  57. package/dist/types/components/Footer/Footer.d.ts +0 -7
  58. package/dist/types/components/Footer/export.d.ts +0 -0
  59. package/dist/types/components/Footer/stories.d.ts +0 -6
  60. package/dist/types/components/Form/Form.css.d.ts +0 -46
  61. package/dist/types/components/Form/Form.d.ts +0 -7
  62. package/dist/types/components/Form/Row/Row.css.d.ts +0 -51
  63. package/dist/types/components/Form/Row/Row.d.ts +0 -9
  64. package/dist/types/components/Form/Row/index.d.ts +0 -0
  65. package/dist/types/components/Form/Row/stories.d.ts +0 -0
  66. package/dist/types/components/Form/TextField/Input/Input.css.d.ts +0 -32
  67. package/dist/types/components/Form/TextField/Input/Input.d.ts +0 -10
  68. package/dist/types/components/Form/TextField/Input/export.d.ts +0 -0
  69. package/dist/types/components/Form/TextField/Label/Label.css.d.ts +0 -23
  70. package/dist/types/components/Form/TextField/Label/Label.d.ts +0 -9
  71. package/dist/types/components/Form/TextField/Label/export.d.ts +0 -0
  72. package/dist/types/components/Form/TextField/TextField.css.d.ts +0 -19
  73. package/dist/types/components/Form/TextField/TextField.d.ts +0 -21
  74. package/dist/types/components/Form/TextField/Textarea/Textarea.css.d.ts +0 -56
  75. package/dist/types/components/Form/TextField/Textarea/Textarea.d.ts +0 -8
  76. package/dist/types/components/Form/TextField/Textarea/export.d.ts +0 -0
  77. package/dist/types/components/Form/TextField/Textarea/stories.d.ts +0 -0
  78. package/dist/types/components/Form/TextField/export.d.ts +0 -0
  79. package/dist/types/components/Form/export.d.ts +0 -0
  80. package/dist/types/components/Header/Header.css.d.ts +0 -36
  81. package/dist/types/components/Header/Header.d.ts +0 -11
  82. package/dist/types/components/Header/HeaderOverlay/index.d.ts +0 -7
  83. package/dist/types/components/Header/HeaderOverlay/styles.css.d.ts +0 -5
  84. package/dist/types/components/Header/ToggleNav/index.d.ts +0 -9
  85. package/dist/types/components/Header/ToggleNav/styles.css.d.ts +0 -5
  86. package/dist/types/components/Header/export.d.ts +0 -0
  87. package/dist/types/components/Header/stories.d.ts +0 -6
  88. package/dist/types/components/Icon/Icon.css.d.ts +0 -45
  89. package/dist/types/components/Icon/Icon.d.ts +0 -12
  90. package/dist/types/components/Icon/export.d.ts +0 -0
  91. package/dist/types/components/Icon/path.d.ts +0 -19
  92. package/dist/types/components/Icon/stories.d.ts +0 -0
  93. package/dist/types/components/KeyNumber/KeyNumber.css.d.ts +0 -40
  94. package/dist/types/components/KeyNumber/KeyNumber.d.ts +0 -15
  95. package/dist/types/components/KeyNumber/export.d.ts +0 -0
  96. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.css.d.ts +0 -18
  97. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.d.ts +0 -16
  98. package/dist/types/components/LanguageSwitcher/export.d.ts +0 -0
  99. package/dist/types/components/Logo/Logo.css.d.ts +0 -54
  100. package/dist/types/components/Logo/Logo.d.ts +0 -8
  101. package/dist/types/components/Logo/export.d.ts +0 -0
  102. package/dist/types/components/Logo/stories.d.ts +0 -6
  103. package/dist/types/components/Main/Main.css.d.ts +0 -32
  104. package/dist/types/components/Main/Main.d.ts +0 -7
  105. package/dist/types/components/Main/export.d.ts +0 -0
  106. package/dist/types/components/Main/stories.d.ts +0 -0
  107. package/dist/types/components/Modal/Modal.css.d.ts +0 -82
  108. package/dist/types/components/Modal/Modal.d.ts +0 -15
  109. package/dist/types/components/Modal/export.d.ts +0 -0
  110. package/dist/types/components/Modal/types.d.ts +0 -5
  111. package/dist/types/components/Nav/Nav.css.d.ts +0 -52
  112. package/dist/types/components/Nav/Nav.d.ts +0 -7
  113. package/dist/types/components/Nav/export.d.ts +0 -0
  114. package/dist/types/components/Nav/stories.d.ts +0 -6
  115. package/dist/types/components/NavLegal/NavLegal.css.d.ts +0 -57
  116. package/dist/types/components/NavLegal/NavLegal.d.ts +0 -7
  117. package/dist/types/components/NavLegal/export.d.ts +0 -0
  118. package/dist/types/components/NavLegal/stories.d.ts +0 -6
  119. package/dist/types/components/NavLegal/types.d.ts +0 -1
  120. package/dist/types/components/NavSocial/NavSocial.css.d.ts +0 -30
  121. package/dist/types/components/NavSocial/NavSocial.d.ts +0 -15
  122. package/dist/types/components/NavSocial/export.d.ts +0 -0
  123. package/dist/types/components/NavSocial/stories.d.ts +0 -0
  124. package/dist/types/components/NavSocial/types.d.ts +0 -1
  125. package/dist/types/components/Section/Section.css.d.ts +0 -60
  126. package/dist/types/components/Section/Section.d.ts +0 -7
  127. package/dist/types/components/Section/export.d.ts +0 -0
  128. package/dist/types/components/Section/stories.d.ts +0 -0
  129. package/dist/types/components/ToRemove/ToRemove.d.ts +0 -1
  130. package/dist/types/components/Video/Video.css.d.ts +0 -43
  131. package/dist/types/components/Video/Video.d.ts +0 -17
  132. package/dist/types/components/Video/export.d.ts +0 -0
  133. package/dist/types/components/VideoFullWidth/VideoFullWidth.css.d.ts +0 -18
  134. package/dist/types/components/VideoFullWidth/VideoFullWidth.d.ts +0 -14
  135. package/dist/types/components/VideoFullWidth/export.d.ts +0 -0
  136. package/dist/types/css/index.d.ts +0 -28
  137. package/dist/types/index.d.ts +0 -58
  138. package/dist/types/styles/mediaqueries.d.ts +0 -16
  139. package/dist/types/styles/sprinkles.css.d.ts +0 -3423
  140. package/dist/types/theme/baseThemeValues.d.ts +0 -158
  141. package/dist/types/theme/contract.css.d.ts +0 -79
  142. package/dist/types/theme/index.d.ts +0 -3
  143. package/dist/types/theme/utils.d.ts +0 -86
  144. package/dist/types/utils/cookie.d.ts +0 -2
  145. package/dist/types/utils/deep-merge-objects.d.ts +0 -2
  146. package/dist/types/utils/theme.css.d.ts +0 -173
  147. package/dist/types/utils/use-breakpoint-key.d.ts +0 -1
  148. package/dist/types/utils/use-window-size.d.ts +0 -5
  149. package/dist/utils/theme.css.ts +0 -129
  150. package/src/css/index.ts +0 -33
  151. package/src/themes/dark.ts +0 -3
  152. package/src/themes/index.ts +0 -5
  153. package/src/themes/light.ts +0 -3
@@ -1,158 +0,0 @@
1
- export declare const baseLightTheme: {
2
- colors: {
3
- primary: string;
4
- secondary: string;
5
- accent: string;
6
- background: string;
7
- surface: string;
8
- text: string;
9
- textSecondary: string;
10
- textLight: string;
11
- border: string;
12
- error: string;
13
- warning: string;
14
- success: string;
15
- info: string;
16
- };
17
- space: {
18
- none: string;
19
- xs: string;
20
- sm: string;
21
- md: string;
22
- lg: string;
23
- xl: string;
24
- '2xl': string;
25
- };
26
- radii: {
27
- none: string;
28
- sm: string;
29
- md: string;
30
- lg: string;
31
- xl: string;
32
- full: string;
33
- };
34
- fonts: {
35
- body: string;
36
- heading: string;
37
- mono: string;
38
- };
39
- fontSizes: {
40
- xs: string;
41
- sm: string;
42
- md: string;
43
- lg: string;
44
- xl: string;
45
- '2xl': string;
46
- '3xl': string;
47
- '4xl': string;
48
- };
49
- fontWeights: {
50
- light: string;
51
- normal: string;
52
- medium: string;
53
- semibold: string;
54
- bold: string;
55
- };
56
- lineHeights: {
57
- tight: string;
58
- normal: string;
59
- relaxed: string;
60
- };
61
- shadows: {
62
- none: string;
63
- sm: string;
64
- md: string;
65
- lg: string;
66
- xl: string;
67
- };
68
- maxWidth: string;
69
- section: {
70
- paddingTop: string;
71
- paddingBottom: string;
72
- };
73
- header: {
74
- height: string;
75
- };
76
- footer: {
77
- height: string;
78
- };
79
- };
80
- export declare const baseDarkTheme: {
81
- colors: {
82
- primary: string;
83
- secondary: string;
84
- accent: string;
85
- background: string;
86
- surface: string;
87
- text: string;
88
- textSecondary: string;
89
- textLight: string;
90
- border: string;
91
- error: string;
92
- warning: string;
93
- success: string;
94
- info: string;
95
- };
96
- space: {
97
- none: string;
98
- xs: string;
99
- sm: string;
100
- md: string;
101
- lg: string;
102
- xl: string;
103
- '2xl': string;
104
- };
105
- radii: {
106
- none: string;
107
- sm: string;
108
- md: string;
109
- lg: string;
110
- xl: string;
111
- full: string;
112
- };
113
- fonts: {
114
- body: string;
115
- heading: string;
116
- mono: string;
117
- };
118
- fontSizes: {
119
- xs: string;
120
- sm: string;
121
- md: string;
122
- lg: string;
123
- xl: string;
124
- '2xl': string;
125
- '3xl': string;
126
- '4xl': string;
127
- };
128
- fontWeights: {
129
- light: string;
130
- normal: string;
131
- medium: string;
132
- semibold: string;
133
- bold: string;
134
- };
135
- lineHeights: {
136
- tight: string;
137
- normal: string;
138
- relaxed: string;
139
- };
140
- shadows: {
141
- none: string;
142
- sm: string;
143
- md: string;
144
- lg: string;
145
- xl: string;
146
- };
147
- maxWidth: string;
148
- section: {
149
- paddingTop: string;
150
- paddingBottom: string;
151
- };
152
- header: {
153
- height: string;
154
- };
155
- footer: {
156
- height: string;
157
- };
158
- };
@@ -1,79 +0,0 @@
1
- export declare const themeContract: {
2
- colors: {
3
- primary: `var(--${string})`;
4
- secondary: `var(--${string})`;
5
- accent: `var(--${string})`;
6
- background: `var(--${string})`;
7
- surface: `var(--${string})`;
8
- text: `var(--${string})`;
9
- textSecondary: `var(--${string})`;
10
- textLight: `var(--${string})`;
11
- border: `var(--${string})`;
12
- error: `var(--${string})`;
13
- warning: `var(--${string})`;
14
- success: `var(--${string})`;
15
- info: `var(--${string})`;
16
- };
17
- space: {
18
- none: `var(--${string})`;
19
- xs: `var(--${string})`;
20
- sm: `var(--${string})`;
21
- md: `var(--${string})`;
22
- lg: `var(--${string})`;
23
- xl: `var(--${string})`;
24
- '2xl': `var(--${string})`;
25
- };
26
- radii: {
27
- none: `var(--${string})`;
28
- sm: `var(--${string})`;
29
- md: `var(--${string})`;
30
- lg: `var(--${string})`;
31
- xl: `var(--${string})`;
32
- full: `var(--${string})`;
33
- };
34
- fonts: {
35
- body: `var(--${string})`;
36
- heading: `var(--${string})`;
37
- mono: `var(--${string})`;
38
- };
39
- fontSizes: {
40
- xs: `var(--${string})`;
41
- sm: `var(--${string})`;
42
- md: `var(--${string})`;
43
- lg: `var(--${string})`;
44
- xl: `var(--${string})`;
45
- '2xl': `var(--${string})`;
46
- '3xl': `var(--${string})`;
47
- '4xl': `var(--${string})`;
48
- };
49
- fontWeights: {
50
- light: `var(--${string})`;
51
- normal: `var(--${string})`;
52
- medium: `var(--${string})`;
53
- semibold: `var(--${string})`;
54
- bold: `var(--${string})`;
55
- };
56
- lineHeights: {
57
- tight: `var(--${string})`;
58
- normal: `var(--${string})`;
59
- relaxed: `var(--${string})`;
60
- };
61
- shadows: {
62
- none: `var(--${string})`;
63
- sm: `var(--${string})`;
64
- md: `var(--${string})`;
65
- lg: `var(--${string})`;
66
- xl: `var(--${string})`;
67
- };
68
- maxWidth: `var(--${string})`;
69
- section: {
70
- paddingTop: `var(--${string})`;
71
- paddingBottom: `var(--${string})`;
72
- };
73
- header: {
74
- height: `var(--${string})`;
75
- };
76
- footer: {
77
- height: `var(--${string})`;
78
- };
79
- };
@@ -1,3 +0,0 @@
1
- export { themeContract } from './contract.css';
2
- export { baseLightTheme, baseDarkTheme } from './baseThemeValues';
3
- export { createThemeOverride, getThemeContract, getThemeValues, toggleTheme, setTheme, getCurrentTheme, type ThemeValues } from './utils';
@@ -1,86 +0,0 @@
1
- import { baseLightTheme } from './baseThemeValues';
2
- export type ThemeValues = typeof baseLightTheme;
3
- export declare const createThemeOverride: (overrides: Partial<ThemeValues>) => ThemeValues;
4
- export declare const getThemeContract: () => {
5
- colors: {
6
- primary: `var(--${string})`;
7
- secondary: `var(--${string})`;
8
- accent: `var(--${string})`;
9
- background: `var(--${string})`;
10
- surface: `var(--${string})`;
11
- text: `var(--${string})`;
12
- textSecondary: `var(--${string})`;
13
- textLight: `var(--${string})`;
14
- border: `var(--${string})`;
15
- error: `var(--${string})`;
16
- warning: `var(--${string})`;
17
- success: `var(--${string})`;
18
- info: `var(--${string})`;
19
- };
20
- space: {
21
- none: `var(--${string})`;
22
- xs: `var(--${string})`;
23
- sm: `var(--${string})`;
24
- md: `var(--${string})`;
25
- lg: `var(--${string})`;
26
- xl: `var(--${string})`;
27
- '2xl': `var(--${string})`;
28
- };
29
- radii: {
30
- none: `var(--${string})`;
31
- sm: `var(--${string})`;
32
- md: `var(--${string})`;
33
- lg: `var(--${string})`;
34
- xl: `var(--${string})`;
35
- full: `var(--${string})`;
36
- };
37
- fonts: {
38
- body: `var(--${string})`;
39
- heading: `var(--${string})`;
40
- mono: `var(--${string})`;
41
- };
42
- fontSizes: {
43
- xs: `var(--${string})`;
44
- sm: `var(--${string})`;
45
- md: `var(--${string})`;
46
- lg: `var(--${string})`;
47
- xl: `var(--${string})`;
48
- '2xl': `var(--${string})`;
49
- '3xl': `var(--${string})`;
50
- '4xl': `var(--${string})`;
51
- };
52
- fontWeights: {
53
- light: `var(--${string})`;
54
- normal: `var(--${string})`;
55
- medium: `var(--${string})`;
56
- semibold: `var(--${string})`;
57
- bold: `var(--${string})`;
58
- };
59
- lineHeights: {
60
- tight: `var(--${string})`;
61
- normal: `var(--${string})`;
62
- relaxed: `var(--${string})`;
63
- };
64
- shadows: {
65
- none: `var(--${string})`;
66
- sm: `var(--${string})`;
67
- md: `var(--${string})`;
68
- lg: `var(--${string})`;
69
- xl: `var(--${string})`;
70
- };
71
- maxWidth: `var(--${string})`;
72
- section: {
73
- paddingTop: `var(--${string})`;
74
- paddingBottom: `var(--${string})`;
75
- };
76
- header: {
77
- height: `var(--${string})`;
78
- };
79
- footer: {
80
- height: `var(--${string})`;
81
- };
82
- };
83
- export declare const getThemeValues: (isDark?: boolean) => ThemeValues;
84
- export declare const toggleTheme: () => boolean;
85
- export declare const setTheme: (theme: "light" | "dark") => void;
86
- export declare const getCurrentTheme: () => "light" | "dark";
@@ -1,2 +0,0 @@
1
- export declare function getCookie(name: string): string;
2
- export declare function setCookie(name: string, value: string, expirationInDays: number): void;
@@ -1,2 +0,0 @@
1
- declare const deepMergeObjects: (obj1: any, obj2: any) => any;
2
- export default deepMergeObjects;
@@ -1,173 +0,0 @@
1
- import { baseLightTheme } from '../theme/baseThemeValues';
2
- export type ThemeOverrides = {
3
- colors?: Partial<typeof baseLightTheme.colors>;
4
- space?: Partial<typeof baseLightTheme.space>;
5
- radii?: Partial<typeof baseLightTheme.radii>;
6
- fonts?: Partial<typeof baseLightTheme.fonts>;
7
- maxWidth?: string;
8
- fontSizes?: Partial<typeof baseLightTheme.fontSizes>;
9
- fontWeights?: Partial<typeof baseLightTheme.fontWeights>;
10
- lineHeights?: Partial<typeof baseLightTheme.lineHeights>;
11
- shadows?: Partial<typeof baseLightTheme.shadows>;
12
- section?: Partial<typeof baseLightTheme.section>;
13
- header?: Partial<typeof baseLightTheme.header>;
14
- footer?: Partial<typeof baseLightTheme.footer>;
15
- };
16
- export declare const createLightTheme: (overrides?: ThemeOverrides) => {
17
- colors: {
18
- primary: string;
19
- secondary: string;
20
- accent: string;
21
- background: string;
22
- surface: string;
23
- text: string;
24
- textSecondary: string;
25
- textLight: string;
26
- border: string;
27
- error: string;
28
- warning: string;
29
- success: string;
30
- info: string;
31
- };
32
- space: {
33
- none: string;
34
- xs: string;
35
- sm: string;
36
- md: string;
37
- lg: string;
38
- xl: string;
39
- '2xl': string;
40
- };
41
- radii: {
42
- none: string;
43
- sm: string;
44
- md: string;
45
- lg: string;
46
- xl: string;
47
- full: string;
48
- };
49
- fonts: {
50
- body: string;
51
- heading: string;
52
- mono: string;
53
- };
54
- maxWidth: string;
55
- fontSizes: {
56
- xs: string;
57
- sm: string;
58
- md: string;
59
- lg: string;
60
- xl: string;
61
- '2xl': string;
62
- '3xl': string;
63
- '4xl': string;
64
- };
65
- fontWeights: {
66
- light: string;
67
- normal: string;
68
- medium: string;
69
- semibold: string;
70
- bold: string;
71
- };
72
- lineHeights: {
73
- tight: string;
74
- normal: string;
75
- relaxed: string;
76
- };
77
- shadows: {
78
- none: string;
79
- sm: string;
80
- md: string;
81
- lg: string;
82
- xl: string;
83
- };
84
- section: {
85
- paddingTop: string;
86
- paddingBottom: string;
87
- };
88
- header: {
89
- height: string;
90
- };
91
- footer: {
92
- height: string;
93
- };
94
- };
95
- export declare const createDarkTheme: (overrides?: ThemeOverrides) => {
96
- colors: {
97
- primary: string;
98
- secondary: string;
99
- accent: string;
100
- background: string;
101
- surface: string;
102
- text: string;
103
- textSecondary: string;
104
- textLight: string;
105
- border: string;
106
- error: string;
107
- warning: string;
108
- success: string;
109
- info: string;
110
- };
111
- space: {
112
- none: string;
113
- xs: string;
114
- sm: string;
115
- md: string;
116
- lg: string;
117
- xl: string;
118
- '2xl': string;
119
- };
120
- radii: {
121
- none: string;
122
- sm: string;
123
- md: string;
124
- lg: string;
125
- xl: string;
126
- full: string;
127
- };
128
- fonts: {
129
- body: string;
130
- heading: string;
131
- mono: string;
132
- };
133
- maxWidth: string;
134
- fontSizes: {
135
- xs: string;
136
- sm: string;
137
- md: string;
138
- lg: string;
139
- xl: string;
140
- '2xl': string;
141
- '3xl': string;
142
- '4xl': string;
143
- };
144
- fontWeights: {
145
- light: string;
146
- normal: string;
147
- medium: string;
148
- semibold: string;
149
- bold: string;
150
- };
151
- lineHeights: {
152
- tight: string;
153
- normal: string;
154
- relaxed: string;
155
- };
156
- shadows: {
157
- none: string;
158
- sm: string;
159
- md: string;
160
- lg: string;
161
- xl: string;
162
- };
163
- section: {
164
- paddingTop: string;
165
- paddingBottom: string;
166
- };
167
- header: {
168
- height: string;
169
- };
170
- footer: {
171
- height: string;
172
- };
173
- };
@@ -1 +0,0 @@
1
- export declare function useBreakpointKey(): number;
@@ -1,5 +0,0 @@
1
- declare function useWindowSize(): {
2
- width: undefined | number;
3
- height: undefined | number;
4
- };
5
- export default useWindowSize;
@@ -1,129 +0,0 @@
1
- import { baseDarkTheme, baseLightTheme } from '../theme/baseThemeValues';
2
-
3
- // Type for partial theme overrides
4
- export type ThemeOverrides = {
5
- colors?: Partial<typeof baseLightTheme.colors>;
6
- space?: Partial<typeof baseLightTheme.space>;
7
- radii?: Partial<typeof baseLightTheme.radii>;
8
- fonts?: Partial<typeof baseLightTheme.fonts>;
9
- maxWidth?: string;
10
- fontSizes?: Partial<typeof baseLightTheme.fontSizes>;
11
- fontWeights?: Partial<typeof baseLightTheme.fontWeights>;
12
- lineHeights?: Partial<typeof baseLightTheme.lineHeights>;
13
- shadows?: Partial<typeof baseLightTheme.shadows>;
14
- section?: Partial<typeof baseLightTheme.section>;
15
- header?: Partial<typeof baseLightTheme.header>;
16
- footer?: Partial<typeof baseLightTheme.footer>;
17
- };
18
-
19
- // Utility to create a theme object with partial overrides over light theme base
20
- const createAppTheme = (overrides: ThemeOverrides = {}) => {
21
- return {
22
- colors: {
23
- ...baseLightTheme.colors,
24
- ...overrides.colors,
25
- },
26
- space: {
27
- ...baseLightTheme.space,
28
- ...overrides.space,
29
- },
30
- radii: {
31
- ...baseLightTheme.radii,
32
- ...overrides.radii,
33
- },
34
- fonts: {
35
- ...baseLightTheme.fonts,
36
- ...overrides.fonts,
37
- },
38
- maxWidth: overrides.maxWidth || `${baseLightTheme.maxWidth}px`,
39
- fontSizes: {
40
- ...baseLightTheme.fontSizes,
41
- ...overrides.fontSizes,
42
- },
43
- fontWeights: {
44
- ...baseLightTheme.fontWeights,
45
- ...overrides.fontWeights,
46
- },
47
- lineHeights: {
48
- ...baseLightTheme.lineHeights,
49
- ...overrides.lineHeights,
50
- },
51
- shadows: {
52
- ...baseLightTheme.shadows,
53
- ...overrides.shadows,
54
- },
55
- section: {
56
- ...baseLightTheme.section,
57
- ...overrides.section,
58
- },
59
- header: {
60
- ...baseLightTheme.header,
61
- ...overrides.header,
62
- },
63
- footer: {
64
- ...baseLightTheme.footer,
65
- ...overrides.footer,
66
- },
67
- };
68
- };
69
-
70
- // Utility to create a theme object with partial overrides over dark theme base
71
- const createAppDarkTheme = (overrides: ThemeOverrides = {}) => {
72
- return {
73
- colors: {
74
- ...baseDarkTheme.colors,
75
- ...overrides.colors,
76
- },
77
- space: {
78
- ...baseDarkTheme.space,
79
- ...overrides.space,
80
- },
81
- radii: {
82
- ...baseDarkTheme.radii,
83
- ...overrides.radii,
84
- },
85
- fonts: {
86
- ...baseDarkTheme.fonts,
87
- ...overrides.fonts,
88
- },
89
- maxWidth: overrides.maxWidth || `${baseDarkTheme.maxWidth}px`,
90
- fontSizes: {
91
- ...baseDarkTheme.fontSizes,
92
- ...overrides.fontSizes,
93
- },
94
- fontWeights: {
95
- ...baseDarkTheme.fontWeights,
96
- ...overrides.fontWeights,
97
- },
98
- lineHeights: {
99
- ...baseDarkTheme.lineHeights,
100
- ...overrides.lineHeights,
101
- },
102
- shadows: {
103
- ...baseDarkTheme.shadows,
104
- ...overrides.shadows,
105
- },
106
- section: {
107
- ...baseDarkTheme.section,
108
- ...overrides.section,
109
- },
110
- header: {
111
- ...baseDarkTheme.header,
112
- ...overrides.header,
113
- },
114
- footer: {
115
- ...baseDarkTheme.footer,
116
- ...overrides.footer,
117
- },
118
- };
119
- };
120
-
121
- // Returns theme object for light theme - consuming app must call createGlobalTheme
122
- export const createLightTheme = (overrides: ThemeOverrides = {}) => {
123
- return createAppTheme(overrides);
124
- };
125
-
126
- // Returns theme object for dark theme - consuming app must call createGlobalTheme
127
- export const createDarkTheme = (overrides: ThemeOverrides = {}) => {
128
- return createAppDarkTheme(overrides);
129
- };
package/src/css/index.ts DELETED
@@ -1,33 +0,0 @@
1
- // CSS-only exports for consuming applications
2
- // This enables the pattern: import { themeContract, sprinkles } from 'library/css'
3
-
4
- export { themeContract } from '../theme/contract.css';
5
- export { sprinkles, responsiveProperties, type Sprinkles } from '../styles/sprinkles.css';
6
- export { createLightTheme, createDarkTheme, type ThemeOverrides } from '../utils/theme.css';
7
-
8
- // Recipe exports from components
9
- export { actionsRecipe, type ActionsVariants } from '../components/Actions/Actions.css';
10
- export { buttonRecipe, type ButtonVariants } from '../components/Button/Button.css';
11
- export { carouselRecipe, type CarouselVariants } from '../components/Carousel/Carousel.css';
12
- export { columnsRecipe, type ColumnsVariants } from '../components/Columns/Columns.css';
13
- export { consentRecipe, type ConsentCookieVariants } from '../components/ConsentCookie/ConsentCookie.css';
14
- export { footerRecipe, type FooterVariants } from '../components/Footer/Footer.css';
15
- export { formRecipe, type FormVariants } from '../components/Form/Form.css';
16
- export { rowRecipe, type RowVariants } from '../components/Form/Row/Row.css';
17
- export { inputRecipe, type InputVariants } from '../components/Form/TextField/Input/Input.css';
18
- export { labelRecipe, type LabelVariants } from '../components/Form/TextField/Label/Label.css';
19
- export { textFieldRecipe, type TextFieldVariants } from '../components/Form/TextField/TextField.css';
20
- export { textareaRecipe, type TextareaVariants } from '../components/Form/TextField/Textarea/Textarea.css';
21
- export { headerRecipe, type HeaderVariants } from '../components/Header/Header.css';
22
- export { iconRecipe, type IconVariants } from '../components/Icon/Icon.css';
23
- export { keyNumberRecipe, type KeyNumberVariants } from '../components/KeyNumber/KeyNumber.css';
24
- export { languageSwitcherRecipe, type LanguageSwitcherVariants } from '../components/LanguageSwitcher/LanguageSwitcher.css';
25
- export { logoRecipe, type LogoVariants } from '../components/Logo/Logo.css';
26
- export { mainRecipe, type MainVariants } from '../components/Main/Main.css';
27
- export { modalRecipe, modalContentRecipe, type ModalVariants, type ModalContentVariants } from '../components/Modal/Modal.css';
28
- export { navRecipe, type NavVariants } from '../components/Nav/Nav.css';
29
- export { navLegalRecipe, type NavLegalVariants } from '../components/NavLegal/NavLegal.css';
30
- export { navSocialRecipe, type NavSocialVariants } from '../components/NavSocial/NavSocial.css';
31
- export { sectionRecipe, type SectionVariants } from '../components/Section/Section.css';
32
- export { videoRecipe, type VideoVariants } from '../components/Video/Video.css';
33
- export { videoFullWidthRecipe, type VideoFullWidthVariants } from '../components/VideoFullWidth/VideoFullWidth.css';
@@ -1,3 +0,0 @@
1
- // Pre-built dark theme export
2
- export { baseDarkTheme as darkTheme } from '../theme/baseThemeValues';
3
- export { createDarkTheme } from '../utils/theme.css';
@@ -1,5 +0,0 @@
1
- // Theme exports for consuming applications
2
- export * from './light';
3
- export * from './dark';
4
- export { themeContract } from '../theme/contract.css';
5
- export { createLightTheme, createDarkTheme, type ThemeOverrides } from '../utils/theme.css';
@@ -1,3 +0,0 @@
1
- // Pre-built light theme export
2
- export { baseLightTheme as lightTheme } from '../theme/baseThemeValues';
3
- export { createLightTheme } from '../utils/theme.css';