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

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 (219) hide show
  1. package/package.json +9 -22
  2. package/src/assets/styles/mediaqueries.tsx +24 -0
  3. package/src/components/Actions/Actions.tsx +132 -0
  4. package/src/components/Actions/export.tsx +4 -0
  5. package/src/components/{Main/stories.ts → Actions/stories.tsx} +14 -13
  6. package/src/components/Button/Button.tsx +132 -0
  7. package/src/components/Button/export.tsx +5 -0
  8. package/src/components/Carousel/Carousel.tsx +328 -0
  9. package/src/components/Carousel/export.tsx +4 -0
  10. package/src/components/Columns/Columns.tsx +142 -0
  11. package/src/components/Columns/export.tsx +5 -0
  12. package/src/components/ConsentCookie/ConsentCookie.tsx +202 -0
  13. package/src/components/ConsentCookie/export.tsx +4 -0
  14. package/src/components/{Icon/stories.ts → ConsentCookie/stories.tsx} +7 -8
  15. package/src/components/Footer/Footer.tsx +130 -0
  16. package/src/components/Footer/export.tsx +4 -0
  17. package/src/components/Footer/stories.tsx +26 -0
  18. package/src/components/Form/Form.tsx +127 -0
  19. package/src/components/Form/Row/Row.tsx +137 -0
  20. package/src/components/Form/Row/stories.tsx +41 -0
  21. package/src/components/Form/TextField/Input/Input.tsx +139 -0
  22. package/src/components/Form/TextField/Input/export.tsx +6 -0
  23. package/src/components/Form/TextField/Label/Label.tsx +133 -0
  24. package/src/components/Form/TextField/Label/export.tsx +4 -0
  25. package/src/components/Form/TextField/TextField.tsx +200 -0
  26. package/src/components/Form/TextField/Textarea/Textarea.tsx +135 -0
  27. package/src/components/Form/TextField/Textarea/export.tsx +6 -0
  28. package/src/components/Form/TextField/Textarea/stories.tsx +44 -0
  29. package/src/components/Form/TextField/export.tsx +4 -0
  30. package/src/components/Form/export.tsx +4 -0
  31. package/src/components/Header/Header.tsx +158 -0
  32. package/src/components/Header/HeaderOverlay/index.tsx +32 -0
  33. package/src/components/Header/ToggleNav/index.tsx +32 -0
  34. package/src/components/Header/export.tsx +4 -0
  35. package/src/components/Header/stories.tsx +26 -0
  36. package/src/components/Icon/Icon.tsx +159 -0
  37. package/src/components/Icon/export.tsx +4 -0
  38. package/src/components/KeyNumber/KeyNumber.tsx +166 -0
  39. package/src/components/KeyNumber/export.tsx +4 -0
  40. package/src/components/LanguageSwitcher/LanguageSwitcher.tsx +168 -0
  41. package/src/components/LanguageSwitcher/export.tsx +4 -0
  42. package/src/components/Logo/Logo.tsx +137 -0
  43. package/src/components/Logo/export.tsx +4 -0
  44. package/src/components/Logo/stories.tsx +28 -0
  45. package/src/components/Main/Main.tsx +130 -0
  46. package/src/components/Main/export.tsx +4 -0
  47. package/src/components/Modal/Modal.tsx +194 -0
  48. package/src/components/Modal/export.tsx +4 -0
  49. package/src/components/Modal/types.tsx +5 -0
  50. package/src/components/Nav/Nav.tsx +129 -0
  51. package/src/components/Nav/export.tsx +4 -0
  52. package/src/components/Nav/stories.tsx +28 -0
  53. package/src/components/NavLegal/NavLegal.tsx +133 -0
  54. package/src/components/NavLegal/export.tsx +4 -0
  55. package/src/components/NavLegal/stories.tsx +28 -0
  56. package/src/components/NavSocial/NavSocial.tsx +169 -0
  57. package/src/components/NavSocial/export.tsx +5 -0
  58. package/src/components/{Columns/stories.ts → NavSocial/stories.tsx} +12 -14
  59. package/src/components/Section/Section.tsx +130 -0
  60. package/src/components/Section/export.tsx +6 -0
  61. package/src/components/ToRemove/ToRemove.tsx +3 -0
  62. package/src/components/Video/Video.tsx +243 -0
  63. package/src/components/Video/export.tsx +2 -0
  64. package/src/components/VideoFullWidth/VideoFullWidth.tsx +152 -0
  65. package/src/components/VideoFullWidth/export.tsx +2 -0
  66. package/dist/components/Actions/Actions.css.ts +0 -113
  67. package/dist/components/Button/Button.css.ts +0 -119
  68. package/dist/components/Carousel/Carousel.css.ts +0 -179
  69. package/dist/components/Columns/Columns.css.ts +0 -185
  70. package/dist/components/ConsentCookie/ConsentCookie.css.ts +0 -167
  71. package/dist/components/Footer/Footer.css.ts +0 -108
  72. package/dist/components/Form/Form.css.ts +0 -64
  73. package/dist/components/Form/Row/Row.css.ts +0 -70
  74. package/dist/components/Form/TextField/Input/Input.css.ts +0 -106
  75. package/dist/components/Form/TextField/Label/Label.css.ts +0 -58
  76. package/dist/components/Form/TextField/TextField.css.ts +0 -139
  77. package/dist/components/Form/TextField/Textarea/Textarea.css.ts +0 -121
  78. package/dist/components/Header/Header.css.ts +0 -111
  79. package/dist/components/Header/HeaderOverlay/styles.css.ts +0 -33
  80. package/dist/components/Header/ToggleNav/styles.css.ts +0 -40
  81. package/dist/components/Icon/Icon.css.ts +0 -102
  82. package/dist/components/KeyNumber/KeyNumber.css.ts +0 -158
  83. package/dist/components/LanguageSwitcher/LanguageSwitcher.css.ts +0 -120
  84. package/dist/components/Logo/Logo.css.ts +0 -98
  85. package/dist/components/Main/Main.css.ts +0 -62
  86. package/dist/components/Modal/Modal.css.ts +0 -203
  87. package/dist/components/Nav/Nav.css.ts +0 -123
  88. package/dist/components/NavLegal/NavLegal.css.ts +0 -121
  89. package/dist/components/NavSocial/NavSocial.css.ts +0 -121
  90. package/dist/components/Section/Section.css.ts +0 -101
  91. package/dist/components/Video/Video.css.ts +0 -210
  92. package/dist/components/VideoFullWidth/VideoFullWidth.css.ts +0 -50
  93. package/dist/css/index.cjs +0 -1
  94. package/dist/css/index.js +0 -34
  95. package/dist/index.cjs.js +0 -2
  96. package/dist/index.es.js +0 -3863
  97. package/dist/styles/sprinkles.css.ts +0 -84
  98. package/dist/theme/contract.css.ts +0 -83
  99. package/dist/theme.css-CNjMk-g_.cjs +0 -1
  100. package/dist/theme.css-Dj6kL9o0.js +0 -3020
  101. package/dist/types/components/Actions/Actions.css.d.ts +0 -74
  102. package/dist/types/components/Actions/Actions.d.ts +0 -7
  103. package/dist/types/components/Actions/stories.d.ts +0 -0
  104. package/dist/types/components/Button/Button.css.d.ts +0 -65
  105. package/dist/types/components/Button/Button.d.ts +0 -8
  106. package/dist/types/components/Button/export.d.ts +0 -0
  107. package/dist/types/components/Button/stories.d.ts +0 -0
  108. package/dist/types/components/Carousel/Carousel.css.d.ts +0 -33
  109. package/dist/types/components/Carousel/Carousel.d.ts +0 -15
  110. package/dist/types/components/Carousel/export.d.ts +0 -0
  111. package/dist/types/components/Columns/Columns.css.d.ts +0 -104
  112. package/dist/types/components/Columns/Columns.d.ts +0 -8
  113. package/dist/types/components/Columns/export.d.ts +0 -0
  114. package/dist/types/components/Columns/stories.d.ts +0 -0
  115. package/dist/types/components/ConsentCookie/ConsentCookie.css.d.ts +0 -15
  116. package/dist/types/components/ConsentCookie/ConsentCookie.d.ts +0 -17
  117. package/dist/types/components/ConsentCookie/export.d.ts +0 -0
  118. package/dist/types/components/ConsentCookie/stories.d.ts +0 -0
  119. package/dist/types/components/Footer/Footer.css.d.ts +0 -50
  120. package/dist/types/components/Footer/Footer.d.ts +0 -7
  121. package/dist/types/components/Footer/export.d.ts +0 -0
  122. package/dist/types/components/Footer/stories.d.ts +0 -6
  123. package/dist/types/components/Form/Form.css.d.ts +0 -46
  124. package/dist/types/components/Form/Form.d.ts +0 -7
  125. package/dist/types/components/Form/Row/Row.css.d.ts +0 -51
  126. package/dist/types/components/Form/Row/Row.d.ts +0 -9
  127. package/dist/types/components/Form/Row/index.d.ts +0 -0
  128. package/dist/types/components/Form/Row/stories.d.ts +0 -0
  129. package/dist/types/components/Form/TextField/Input/Input.css.d.ts +0 -32
  130. package/dist/types/components/Form/TextField/Input/Input.d.ts +0 -10
  131. package/dist/types/components/Form/TextField/Input/export.d.ts +0 -0
  132. package/dist/types/components/Form/TextField/Label/Label.css.d.ts +0 -23
  133. package/dist/types/components/Form/TextField/Label/Label.d.ts +0 -9
  134. package/dist/types/components/Form/TextField/Label/export.d.ts +0 -0
  135. package/dist/types/components/Form/TextField/TextField.css.d.ts +0 -19
  136. package/dist/types/components/Form/TextField/TextField.d.ts +0 -21
  137. package/dist/types/components/Form/TextField/Textarea/Textarea.css.d.ts +0 -56
  138. package/dist/types/components/Form/TextField/Textarea/Textarea.d.ts +0 -8
  139. package/dist/types/components/Form/TextField/Textarea/export.d.ts +0 -0
  140. package/dist/types/components/Form/TextField/Textarea/stories.d.ts +0 -0
  141. package/dist/types/components/Form/TextField/export.d.ts +0 -0
  142. package/dist/types/components/Form/export.d.ts +0 -0
  143. package/dist/types/components/Header/Header.css.d.ts +0 -36
  144. package/dist/types/components/Header/Header.d.ts +0 -11
  145. package/dist/types/components/Header/HeaderOverlay/index.d.ts +0 -7
  146. package/dist/types/components/Header/HeaderOverlay/styles.css.d.ts +0 -5
  147. package/dist/types/components/Header/ToggleNav/index.d.ts +0 -9
  148. package/dist/types/components/Header/ToggleNav/styles.css.d.ts +0 -5
  149. package/dist/types/components/Header/export.d.ts +0 -0
  150. package/dist/types/components/Header/stories.d.ts +0 -6
  151. package/dist/types/components/Icon/Icon.css.d.ts +0 -45
  152. package/dist/types/components/Icon/Icon.d.ts +0 -12
  153. package/dist/types/components/Icon/export.d.ts +0 -0
  154. package/dist/types/components/Icon/path.d.ts +0 -19
  155. package/dist/types/components/Icon/stories.d.ts +0 -0
  156. package/dist/types/components/KeyNumber/KeyNumber.css.d.ts +0 -40
  157. package/dist/types/components/KeyNumber/KeyNumber.d.ts +0 -15
  158. package/dist/types/components/KeyNumber/export.d.ts +0 -0
  159. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.css.d.ts +0 -18
  160. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.d.ts +0 -16
  161. package/dist/types/components/LanguageSwitcher/export.d.ts +0 -0
  162. package/dist/types/components/Logo/Logo.css.d.ts +0 -54
  163. package/dist/types/components/Logo/Logo.d.ts +0 -8
  164. package/dist/types/components/Logo/export.d.ts +0 -0
  165. package/dist/types/components/Logo/stories.d.ts +0 -6
  166. package/dist/types/components/Main/Main.css.d.ts +0 -32
  167. package/dist/types/components/Main/Main.d.ts +0 -7
  168. package/dist/types/components/Main/export.d.ts +0 -0
  169. package/dist/types/components/Main/stories.d.ts +0 -0
  170. package/dist/types/components/Modal/Modal.css.d.ts +0 -82
  171. package/dist/types/components/Modal/Modal.d.ts +0 -15
  172. package/dist/types/components/Modal/export.d.ts +0 -0
  173. package/dist/types/components/Modal/types.d.ts +0 -5
  174. package/dist/types/components/Nav/Nav.css.d.ts +0 -52
  175. package/dist/types/components/Nav/Nav.d.ts +0 -7
  176. package/dist/types/components/Nav/export.d.ts +0 -0
  177. package/dist/types/components/Nav/stories.d.ts +0 -6
  178. package/dist/types/components/NavLegal/NavLegal.css.d.ts +0 -57
  179. package/dist/types/components/NavLegal/NavLegal.d.ts +0 -7
  180. package/dist/types/components/NavLegal/export.d.ts +0 -0
  181. package/dist/types/components/NavLegal/stories.d.ts +0 -6
  182. package/dist/types/components/NavSocial/NavSocial.css.d.ts +0 -30
  183. package/dist/types/components/NavSocial/NavSocial.d.ts +0 -15
  184. package/dist/types/components/NavSocial/export.d.ts +0 -0
  185. package/dist/types/components/NavSocial/stories.d.ts +0 -0
  186. package/dist/types/components/Section/Section.css.d.ts +0 -60
  187. package/dist/types/components/Section/Section.d.ts +0 -7
  188. package/dist/types/components/Section/export.d.ts +0 -0
  189. package/dist/types/components/Section/stories.d.ts +0 -0
  190. package/dist/types/components/ToRemove/ToRemove.d.ts +0 -1
  191. package/dist/types/components/Video/Video.css.d.ts +0 -43
  192. package/dist/types/components/Video/Video.d.ts +0 -17
  193. package/dist/types/components/Video/export.d.ts +0 -0
  194. package/dist/types/components/VideoFullWidth/VideoFullWidth.css.d.ts +0 -18
  195. package/dist/types/components/VideoFullWidth/VideoFullWidth.d.ts +0 -14
  196. package/dist/types/components/VideoFullWidth/export.d.ts +0 -0
  197. package/dist/types/css/index.d.ts +0 -28
  198. package/dist/types/index.d.ts +0 -58
  199. package/dist/types/styles/mediaqueries.d.ts +0 -16
  200. package/dist/types/styles/sprinkles.css.d.ts +0 -3423
  201. package/dist/types/theme/baseThemeValues.d.ts +0 -158
  202. package/dist/types/theme/contract.css.d.ts +0 -79
  203. package/dist/types/theme/index.d.ts +0 -3
  204. package/dist/types/theme/utils.d.ts +0 -86
  205. package/dist/types/utils/cookie.d.ts +0 -2
  206. package/dist/types/utils/deep-merge-objects.d.ts +0 -2
  207. package/dist/types/utils/theme.css.d.ts +0 -173
  208. package/dist/types/utils/use-breakpoint-key.d.ts +0 -1
  209. package/dist/types/utils/use-window-size.d.ts +0 -5
  210. package/dist/utils/theme.css.ts +0 -129
  211. package/src/components/Button/stories.ts +0 -127
  212. package/src/components/Section/stories.ts +0 -64
  213. package/src/css/index.ts +0 -33
  214. package/src/themes/dark.ts +0 -3
  215. package/src/themes/index.ts +0 -5
  216. package/src/themes/light.ts +0 -3
  217. /package/{dist/types/components/Actions/export.d.ts → src/components/Form/Row/index.tsx} +0 -0
  218. /package/{dist/types/components/NavLegal/types.d.ts → src/components/NavLegal/types.tsx} +0 -0
  219. /package/{dist/types/components/NavSocial/types.d.ts → src/components/NavSocial/types.tsx} +0 -0
@@ -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
- };