@tenerife.music/ui 0.0.7 → 1.0.1

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 (231) hide show
  1. package/README.md +168 -136
  2. package/dist/ThemeProvider-CaUX_Jam.cjs +2 -0
  3. package/dist/ThemeProvider-ltuW-773.js +1227 -0
  4. package/dist/animation/index.d.ts +9 -0
  5. package/dist/animation/index.d.ts.map +1 -0
  6. package/dist/animation/presets.d.ts +304 -0
  7. package/dist/animation/presets.d.ts.map +1 -0
  8. package/dist/animation/tas.d.ts +80 -0
  9. package/dist/animation/tas.d.ts.map +1 -0
  10. package/dist/animation/types.d.ts +106 -0
  11. package/dist/animation/types.d.ts.map +1 -0
  12. package/dist/animation/utils.d.ts +7 -0
  13. package/dist/animation/utils.d.ts.map +1 -0
  14. package/dist/brand-C5R2semX.js +45 -0
  15. package/dist/brand-DQb18Frh.cjs +2 -0
  16. package/dist/components/SectionBuilder.d.ts +37 -0
  17. package/dist/components/SectionBuilder.d.ts.map +1 -0
  18. package/dist/components/SectionBuilder.presets.d.ts +229 -0
  19. package/dist/components/SectionBuilder.presets.d.ts.map +1 -0
  20. package/dist/components/SectionBuilder.types.d.ts +327 -0
  21. package/dist/components/SectionBuilder.types.d.ts.map +1 -0
  22. package/dist/components/admin/Dashboard.d.ts.map +1 -1
  23. package/dist/components/admin/UserManagement.d.ts.map +1 -1
  24. package/dist/components/auth/LoginForm.d.ts.map +1 -1
  25. package/dist/components/auth/ProfileCard.d.ts.map +1 -1
  26. package/dist/components/auth/RegisterForm.d.ts.map +1 -1
  27. package/dist/components/cards/EventCard.d.ts +32 -31
  28. package/dist/components/cards/EventCard.d.ts.map +1 -1
  29. package/dist/components/cards/VenueCard.d.ts +32 -33
  30. package/dist/components/cards/VenueCard.d.ts.map +1 -1
  31. package/dist/components/controls/LanguageSelector.d.ts.map +1 -1
  32. package/dist/components/data/List.d.ts.map +1 -1
  33. package/dist/components/data/Table.d.ts +2 -2
  34. package/dist/components/data/Table.d.ts.map +1 -1
  35. package/dist/components/data/Timeline.d.ts.map +1 -1
  36. package/dist/components/feedback/Alert.d.ts +1 -1
  37. package/dist/components/feedback/Alert.d.ts.map +1 -1
  38. package/dist/components/feedback/ConsentBanner.d.ts.map +1 -1
  39. package/dist/components/feedback/Progress.d.ts.map +1 -1
  40. package/dist/components/feedback/Skeleton.d.ts.map +1 -1
  41. package/dist/components/filters/DateRangePicker.d.ts.map +1 -1
  42. package/dist/components/filters/FilterBar.d.ts +14 -1
  43. package/dist/components/filters/FilterBar.d.ts.map +1 -1
  44. package/dist/components/filters/FilterSelect.d.ts +2 -2
  45. package/dist/components/filters/FilterSelect.d.ts.map +1 -1
  46. package/dist/components/filters/PriceRangeSlider.d.ts.map +1 -1
  47. package/dist/components/filters/SearchFilters.d.ts.map +1 -1
  48. package/dist/components/filters/SearchInput.d.ts +1 -1
  49. package/dist/components/filters/SearchInput.d.ts.map +1 -1
  50. package/dist/components/filters/types.d.ts +9 -9
  51. package/dist/components/filters/types.d.ts.map +1 -1
  52. package/dist/components/forms/FormInput.d.ts +3 -7
  53. package/dist/components/forms/FormInput.d.ts.map +1 -1
  54. package/dist/components/forms/FormSelect.d.ts.map +1 -1
  55. package/dist/components/forms/FormTextarea.d.ts +2 -6
  56. package/dist/components/forms/FormTextarea.d.ts.map +1 -1
  57. package/dist/components/icons/TrendingIcon.d.ts.map +1 -1
  58. package/dist/components/image/Image.d.ts +4 -4
  59. package/dist/components/image/Image.d.ts.map +1 -1
  60. package/dist/components/layout/Box.d.ts +90 -0
  61. package/dist/components/layout/Box.d.ts.map +1 -0
  62. package/dist/components/layout/Container.d.ts +2 -2
  63. package/dist/components/layout/Container.d.ts.map +1 -1
  64. package/dist/components/layout/Flex.d.ts +27 -6
  65. package/dist/components/layout/Flex.d.ts.map +1 -1
  66. package/dist/components/layout/Footer.d.ts.map +1 -1
  67. package/dist/components/layout/Grid.d.ts +43 -4
  68. package/dist/components/layout/Grid.d.ts.map +1 -1
  69. package/dist/components/layout/ModeHero.d.ts.map +1 -1
  70. package/dist/components/layout/Navbar.d.ts +2 -2
  71. package/dist/components/layout/Navbar.d.ts.map +1 -1
  72. package/dist/components/layout/Section.d.ts +2 -2
  73. package/dist/components/layout/Section.d.ts.map +1 -1
  74. package/dist/components/layout/Stack.d.ts +21 -4
  75. package/dist/components/layout/Stack.d.ts.map +1 -1
  76. package/dist/components/layout/index.d.ts +15 -0
  77. package/dist/components/layout/index.d.ts.map +1 -0
  78. package/dist/components/layout/layout.types.d.ts +92 -0
  79. package/dist/components/layout/layout.types.d.ts.map +1 -0
  80. package/dist/components/menus/DropdownMenu.d.ts +2 -2
  81. package/dist/components/menus/DropdownMenu.d.ts.map +1 -1
  82. package/dist/components/menus/NavigationMenu.d.ts +2 -2
  83. package/dist/components/menus/NavigationMenu.d.ts.map +1 -1
  84. package/dist/components/menus/Tabs.d.ts +2 -2
  85. package/dist/components/menus/Tabs.d.ts.map +1 -1
  86. package/dist/components/modals/ConfirmDialog.d.ts +2 -2
  87. package/dist/components/modals/ConfirmDialog.d.ts.map +1 -1
  88. package/dist/components/modals/CustomDialog.d.ts +1 -2
  89. package/dist/components/modals/CustomDialog.d.ts.map +1 -1
  90. package/dist/components/modals/Modal.d.ts +2 -2
  91. package/dist/components/modals/Modal.d.ts.map +1 -1
  92. package/dist/components/modals/ModalProvider.d.ts +2 -2
  93. package/dist/components/modals/ModalProvider.d.ts.map +1 -1
  94. package/dist/components/modals/SimpleModal.d.ts +3 -2
  95. package/dist/components/modals/SimpleModal.d.ts.map +1 -1
  96. package/dist/components/navigation/Breadcrumbs.d.ts +1 -0
  97. package/dist/components/navigation/Breadcrumbs.d.ts.map +1 -1
  98. package/dist/components/navigation/Pagination.d.ts +1 -0
  99. package/dist/components/navigation/Pagination.d.ts.map +1 -1
  100. package/dist/components/overlays/OverlayPortal.d.ts +3 -3
  101. package/dist/components/overlays/OverlayPortal.d.ts.map +1 -1
  102. package/dist/components/overlays/Popover.d.ts +11 -11
  103. package/dist/components/overlays/Popover.d.ts.map +1 -1
  104. package/dist/components/overlays/Tooltip.d.ts +9 -9
  105. package/dist/components/overlays/Tooltip.d.ts.map +1 -1
  106. package/dist/components/primitives/Badge.d.ts +1 -1
  107. package/dist/components/primitives/Badge.d.ts.map +1 -1
  108. package/dist/components/primitives/Button.d.ts +1 -1
  109. package/dist/components/primitives/Button.d.ts.map +1 -1
  110. package/dist/components/primitives/Card.d.ts +1 -1
  111. package/dist/components/primitives/Card.d.ts.map +1 -1
  112. package/dist/components/primitives/Divider.d.ts.map +1 -1
  113. package/dist/components/primitives/Link.d.ts +4 -2
  114. package/dist/components/primitives/Link.d.ts.map +1 -1
  115. package/dist/components/primitives/ThemeSwitch.d.ts +2 -2
  116. package/dist/components/primitives/ThemeSwitch.d.ts.map +1 -1
  117. package/dist/components/primitives/Typography.d.ts +4 -4
  118. package/dist/components/primitives/Typography.d.ts.map +1 -1
  119. package/dist/components/search/SearchBar.d.ts.map +1 -1
  120. package/dist/components/sections/ArticlesSection.d.ts +14 -4
  121. package/dist/components/sections/ArticlesSection.d.ts.map +1 -1
  122. package/dist/components/sections/CTASection.d.ts +38 -0
  123. package/dist/components/sections/CTASection.d.ts.map +1 -0
  124. package/dist/components/sections/FeatureSection.d.ts +34 -0
  125. package/dist/components/sections/FeatureSection.d.ts.map +1 -0
  126. package/dist/components/sections/HeroSection.d.ts +28 -0
  127. package/dist/components/sections/HeroSection.d.ts.map +1 -0
  128. package/dist/components/sections/TrendingSection.d.ts +19 -3
  129. package/dist/components/sections/TrendingSection.d.ts.map +1 -1
  130. package/dist/components/skeletons/EventCardSkeleton.d.ts.map +1 -1
  131. package/dist/components/skeletons/VenueCardSkeleton.d.ts.map +1 -1
  132. package/dist/components/toasts/Toast.d.ts +2 -2
  133. package/dist/components/toasts/Toast.d.ts.map +1 -1
  134. package/dist/components/toasts/ToastProvider.d.ts +3 -3
  135. package/dist/components/toasts/ToastProvider.d.ts.map +1 -1
  136. package/dist/components/ui/button.d.ts +4 -2
  137. package/dist/components/ui/button.d.ts.map +1 -1
  138. package/dist/components/ui/card.d.ts +1 -1
  139. package/dist/components/ui/card.d.ts.map +1 -1
  140. package/dist/components/ui/dialog.d.ts +2 -2
  141. package/dist/components/ui/dialog.d.ts.map +1 -1
  142. package/dist/components/ui/input.d.ts.map +1 -1
  143. package/dist/components/ui/label.d.ts +1 -1
  144. package/dist/components/ui/label.d.ts.map +1 -1
  145. package/dist/components/ui/toast.d.ts +3 -3
  146. package/dist/components/ui/toast.d.ts.map +1 -1
  147. package/dist/components/ui/toaster.d.ts.map +1 -1
  148. package/dist/components/ui/tooltip.d.ts +2 -2
  149. package/dist/components/ui/tooltip.d.ts.map +1 -1
  150. package/dist/dark-Cvoy1uFT.js +30 -0
  151. package/dist/dark-OOhiqt1q.cjs +2 -0
  152. package/dist/default-BKgH1D9-.js +8 -0
  153. package/dist/default-Ddg7Haf2.cjs +2 -0
  154. package/dist/hooks/use-toast.d.ts +3 -3
  155. package/dist/hooks/use-toast.d.ts.map +1 -1
  156. package/dist/hooks/useDebounce.d.ts +20 -0
  157. package/dist/hooks/useDebounce.d.ts.map +1 -0
  158. package/dist/hooks/useModal.d.ts +5 -5
  159. package/dist/hooks/useModal.d.ts.map +1 -1
  160. package/dist/hooks/useToast.d.ts +2 -2
  161. package/dist/hooks/useToast.d.ts.map +1 -1
  162. package/dist/index.cjs +1 -1
  163. package/dist/index.d.ts +41 -32
  164. package/dist/index.d.ts.map +1 -1
  165. package/dist/index.mjs +4303 -2807
  166. package/dist/lib/a11y.d.ts +16 -0
  167. package/dist/lib/a11y.d.ts.map +1 -0
  168. package/dist/lib/responsive-props.d.ts +64 -0
  169. package/dist/lib/responsive-props.d.ts.map +1 -0
  170. package/dist/motion-4SRNkZlz.cjs +2 -0
  171. package/dist/motion-CuHacXY1.js +722 -0
  172. package/dist/preset.cjs +1 -1
  173. package/dist/preset.d.ts.map +1 -1
  174. package/dist/preset.mjs +1 -1
  175. package/dist/radius-CAu4qr9R.js +185 -0
  176. package/dist/radius-Cz6tayZG.cjs +2 -0
  177. package/dist/test/animation-utils.d.ts +60 -0
  178. package/dist/test/animation-utils.d.ts.map +1 -0
  179. package/dist/theme/ThemeProvider.d.ts +56 -0
  180. package/dist/theme/ThemeProvider.d.ts.map +1 -0
  181. package/dist/theme/applyMode.d.ts +41 -1
  182. package/dist/theme/applyMode.d.ts.map +1 -1
  183. package/dist/theme/index.cjs +1 -1
  184. package/dist/theme/index.d.ts +5 -1
  185. package/dist/theme/index.d.ts.map +1 -1
  186. package/dist/theme/index.mjs +237 -97
  187. package/dist/theme/loader.d.ts +64 -0
  188. package/dist/theme/loader.d.ts.map +1 -0
  189. package/dist/theme/motion.d.ts.map +1 -1
  190. package/dist/theme/registry.d.ts +71 -0
  191. package/dist/theme/registry.d.ts.map +1 -0
  192. package/dist/theme/schema.d.ts +125 -0
  193. package/dist/theme/schema.d.ts.map +1 -0
  194. package/dist/theme/typography.d.ts.map +1 -1
  195. package/dist/themes/brand.d.ts +7 -0
  196. package/dist/themes/brand.d.ts.map +1 -0
  197. package/dist/themes/brand_engine.d.ts +102 -0
  198. package/dist/themes/brand_engine.d.ts.map +1 -0
  199. package/dist/themes/dark.d.ts +7 -0
  200. package/dist/themes/dark.d.ts.map +1 -0
  201. package/dist/themes/default.d.ts +7 -0
  202. package/dist/themes/default.d.ts.map +1 -0
  203. package/dist/themes/index.d.ts +25 -0
  204. package/dist/themes/index.d.ts.map +1 -0
  205. package/dist/themes/minimal.d.ts +7 -0
  206. package/dist/themes/minimal.d.ts.map +1 -0
  207. package/dist/themes/neon.d.ts +7 -0
  208. package/dist/themes/neon.d.ts.map +1 -0
  209. package/dist/themes/types.d.ts +279 -0
  210. package/dist/themes/types.d.ts.map +1 -0
  211. package/dist/tokens/colors.d.ts +260 -38
  212. package/dist/tokens/colors.d.ts.map +1 -1
  213. package/dist/tokens/css-variables.d.ts +271 -0
  214. package/dist/tokens/css-variables.d.ts.map +1 -0
  215. package/dist/tokens/index.cjs +4 -1
  216. package/dist/tokens/index.d.ts +4 -1
  217. package/dist/tokens/index.d.ts.map +1 -1
  218. package/dist/tokens/index.mjs +770 -168
  219. package/dist/tokens/motion.d.ts +435 -0
  220. package/dist/tokens/motion.d.ts.map +1 -0
  221. package/dist/tokens/radius.d.ts +130 -2
  222. package/dist/tokens/radius.d.ts.map +1 -1
  223. package/dist/tokens/shadows.d.ts +172 -0
  224. package/dist/tokens/shadows.d.ts.map +1 -0
  225. package/dist/tokens/spacing.d.ts +155 -1
  226. package/dist/tokens/spacing.d.ts.map +1 -1
  227. package/dist/tokens/typography.d.ts +285 -21
  228. package/dist/tokens/typography.d.ts.map +1 -1
  229. package/package.json +66 -18
  230. package/dist/radius-CuOZD6Mk.cjs +0 -2
  231. package/dist/radius-NOytgRst.js +0 -22
@@ -0,0 +1,229 @@
1
+ import { GridLayoutConfig, SectionBuilderConfig, SectionSlotValue, SplitLayoutConfig, StackedLayoutConfig } from './SectionBuilder.types';
2
+ /**
3
+ * SectionBuilder Presets
4
+ *
5
+ * Pre-configured layout patterns for common section types.
6
+ * These presets can be used directly or as starting points for customization.
7
+ */
8
+ import * as React from "react";
9
+ /**
10
+ * Split Layout Preset Props
11
+ */
12
+ export interface SplitLayoutPresetProps {
13
+ /**
14
+ * Left content area
15
+ */
16
+ left: SectionSlotValue;
17
+ /**
18
+ * Right content area (optional if media is provided)
19
+ */
20
+ right?: SectionSlotValue;
21
+ /**
22
+ * Media content (image/video)
23
+ */
24
+ media?: SectionSlotValue;
25
+ /**
26
+ * Image position
27
+ * @default "right"
28
+ */
29
+ imagePosition?: "left" | "right";
30
+ /**
31
+ * Gap between content areas
32
+ * @default "xl"
33
+ */
34
+ gap?: SplitLayoutConfig["gap"];
35
+ /**
36
+ * Alignment of items
37
+ * @default "center"
38
+ */
39
+ align?: SplitLayoutConfig["align"];
40
+ /**
41
+ * Background configuration
42
+ */
43
+ background?: SectionBuilderConfig["background"];
44
+ /**
45
+ * Spacing configuration
46
+ */
47
+ spacing?: SectionBuilderConfig["spacing"];
48
+ }
49
+ /**
50
+ * Create a split layout configuration
51
+ *
52
+ * Left/right content areas with optional image positioning.
53
+ * Responsive: stacks vertically on mobile.
54
+ *
55
+ * @example
56
+ * ```tsx
57
+ * <SectionBuilder
58
+ * config={createSplitLayoutConfig({
59
+ * left: "Left content",
60
+ * right: "Right content",
61
+ * media: <img src="..." />,
62
+ * imagePosition: "right",
63
+ * })}
64
+ * />
65
+ * ```
66
+ */
67
+ export declare function createSplitLayoutConfig(props: SplitLayoutPresetProps): SectionBuilderConfig;
68
+ /**
69
+ * Feature Item for Feature Grid
70
+ */
71
+ export interface FeatureItem {
72
+ /**
73
+ * Icon or visual element
74
+ */
75
+ icon?: React.ReactNode;
76
+ /**
77
+ * Feature title
78
+ */
79
+ title: string;
80
+ /**
81
+ * Feature description
82
+ */
83
+ description: string;
84
+ /**
85
+ * Optional custom content
86
+ */
87
+ content?: React.ReactNode;
88
+ }
89
+ /**
90
+ * Feature Grid Preset Props
91
+ */
92
+ export interface FeatureGridPresetProps {
93
+ /**
94
+ * Array of feature items
95
+ */
96
+ features: FeatureItem[];
97
+ /**
98
+ * Section title (optional)
99
+ */
100
+ title?: string;
101
+ /**
102
+ * Section description (optional)
103
+ */
104
+ description?: string;
105
+ /**
106
+ * Number of columns
107
+ * @default 3
108
+ */
109
+ columns?: 1 | 2 | 3 | 4;
110
+ /**
111
+ * Gap between grid items
112
+ * @default "lg"
113
+ */
114
+ gap?: GridLayoutConfig["gap"];
115
+ /**
116
+ * Background configuration
117
+ */
118
+ background?: SectionBuilderConfig["background"];
119
+ /**
120
+ * Spacing configuration
121
+ */
122
+ spacing?: SectionBuilderConfig["spacing"];
123
+ }
124
+ /**
125
+ * Create a feature grid configuration
126
+ *
127
+ * Grid of feature items with icons, titles, and descriptions.
128
+ * Responsive columns: 1 on mobile, 2-4 on desktop.
129
+ *
130
+ * @example
131
+ * ```tsx
132
+ * <SectionBuilder
133
+ * config={createFeatureGridConfig({
134
+ * title: "Features",
135
+ * features: [
136
+ * { icon: <Icon />, title: "Fast", description: "Lightning fast" },
137
+ * { icon: <Icon />, title: "Secure", description: "Bank-level security" },
138
+ * ],
139
+ * columns: 3,
140
+ * })}
141
+ * />
142
+ * ```
143
+ */
144
+ export declare function createFeatureGridConfig(props: FeatureGridPresetProps): SectionBuilderConfig;
145
+ /**
146
+ * Testimonial Item
147
+ */
148
+ export interface TestimonialItem {
149
+ /**
150
+ * Quote text
151
+ */
152
+ quote: string;
153
+ /**
154
+ * Author name
155
+ */
156
+ author: string;
157
+ /**
158
+ * Author role/title (optional)
159
+ */
160
+ role?: string;
161
+ /**
162
+ * Author avatar (optional)
163
+ */
164
+ avatar?: React.ReactNode;
165
+ /**
166
+ * Rating (optional)
167
+ */
168
+ rating?: number;
169
+ }
170
+ /**
171
+ * Testimonial Preset Props
172
+ */
173
+ export interface TestimonialPresetProps {
174
+ /**
175
+ * Array of testimonial items
176
+ */
177
+ testimonials: TestimonialItem[];
178
+ /**
179
+ * Section title (optional)
180
+ */
181
+ title?: string;
182
+ /**
183
+ * Section description (optional)
184
+ */
185
+ description?: string;
186
+ /**
187
+ * Stack direction
188
+ * @default "vertical"
189
+ */
190
+ direction?: "vertical" | "horizontal";
191
+ /**
192
+ * Gap between testimonials
193
+ * @default "lg"
194
+ */
195
+ gap?: StackedLayoutConfig["gap"];
196
+ /**
197
+ * Background configuration
198
+ */
199
+ background?: SectionBuilderConfig["background"];
200
+ /**
201
+ * Spacing configuration
202
+ */
203
+ spacing?: SectionBuilderConfig["spacing"];
204
+ }
205
+ /**
206
+ * Create a testimonial section configuration
207
+ *
208
+ * Stack of testimonial cards with quotes, author info, and optional avatars.
209
+ * Uses Stack primitive with spacing and typography tokens.
210
+ *
211
+ * @example
212
+ * ```tsx
213
+ * <SectionBuilder
214
+ * config={createTestimonialConfig({
215
+ * title: "What Our Customers Say",
216
+ * testimonials: [
217
+ * {
218
+ * quote: "Amazing product!",
219
+ * author: "John Doe",
220
+ * role: "CEO",
221
+ * avatar: <Avatar />,
222
+ * },
223
+ * ],
224
+ * })}
225
+ * />
226
+ * ```
227
+ */
228
+ export declare function createTestimonialConfig(props: TestimonialPresetProps): SectionBuilderConfig;
229
+ //# sourceMappingURL=SectionBuilder.presets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionBuilder.presets.d.ts","sourceRoot":"","sources":["../../src/components/SectionBuilder.presets.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC;;;OAGG;IACH,GAAG,CAAC,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC/B;;;OAGG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD;;OAEG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,sBAAsB,GAAG,oBAAoB,CAmC3F;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,KAAK,EAAE,MAAM,CA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G;IACH,GAAG,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD;;OAEG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,sBAAsB,GAAG,oBAAoB,CA6F3F"}
@@ -0,0 +1,327 @@
1
+ import { ComponentAnimationConfig } from '../animation/types';
2
+ import { ResponsiveAlignment, ResponsiveColor, ResponsiveColumns, ResponsiveJustify, ResponsiveRadius, ResponsiveRows, ResponsiveSpacing } from './layout/layout.types';
3
+ /**
4
+ * SectionBuilder Type Definitions
5
+ *
6
+ * TypeScript interfaces and types for the SectionBuilder component.
7
+ * Defines configuration schemas for layout types, content slots, backgrounds,
8
+ * and spacing using the token system.
9
+ */
10
+ import type * as React from "react";
11
+ /**
12
+ * Supported layout types for sections
13
+ */
14
+ export type SectionLayoutType = "split" | "grid" | "stacked";
15
+ /**
16
+ * Surface background variants
17
+ * Derived from surfaceColors tokens from tokens/colors.ts
18
+ */
19
+ export type SurfaceVariant = keyof typeof import("@/tokens/colors").surfaceColors.day;
20
+ /**
21
+ * Background configuration
22
+ * Supports surface variants or custom color tokens
23
+ */
24
+ export type BackgroundConfig = {
25
+ type: "surface";
26
+ variant: SurfaceVariant;
27
+ } | {
28
+ type: "color";
29
+ value: ResponsiveColor;
30
+ } | {
31
+ type: "none";
32
+ };
33
+ /**
34
+ * Content slot types
35
+ * Slots can be ReactNode, string, or structured config objects
36
+ */
37
+ export type SectionSlot = React.ReactNode | string | {
38
+ content: React.ReactNode | string;
39
+ className?: string;
40
+ style?: React.CSSProperties;
41
+ };
42
+ /**
43
+ * Typography configuration for text slots
44
+ */
45
+ export interface TypographyConfig {
46
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
47
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl";
48
+ variant?: "default" | "muted" | "primary" | "secondary" | "accent";
49
+ className?: string;
50
+ }
51
+ /**
52
+ * Text slot configuration
53
+ * Wraps string content with Typography component
54
+ */
55
+ export interface TextSlotConfig {
56
+ type: "text";
57
+ content: string;
58
+ typography?: TypographyConfig;
59
+ className?: string;
60
+ }
61
+ /**
62
+ * Media slot configuration
63
+ */
64
+ export interface MediaSlotConfig {
65
+ type: "media";
66
+ content: React.ReactNode;
67
+ position?: "left" | "right" | "top" | "bottom" | "center";
68
+ className?: string;
69
+ aspectRatio?: string;
70
+ }
71
+ /**
72
+ * Actions slot configuration
73
+ * For buttons and CTAs
74
+ */
75
+ export interface ActionsSlotConfig {
76
+ type: "actions";
77
+ content: React.ReactNode;
78
+ align?: ResponsiveAlignment;
79
+ justify?: ResponsiveJustify;
80
+ gap?: ResponsiveSpacing;
81
+ className?: string;
82
+ }
83
+ /**
84
+ * Structured slot configuration
85
+ */
86
+ export type StructuredSlot = TextSlotConfig | MediaSlotConfig | ActionsSlotConfig;
87
+ /**
88
+ * Section slot definition
89
+ * Can be simple ReactNode, string, or structured config
90
+ */
91
+ export type SectionSlotValue = SectionSlot | StructuredSlot;
92
+ /**
93
+ * Split layout configuration
94
+ * Left/right content areas with optional image positioning
95
+ */
96
+ export interface SplitLayoutConfig {
97
+ type: "split";
98
+ /**
99
+ * Image/media position
100
+ * @default "right"
101
+ */
102
+ imagePosition?: "left" | "right";
103
+ /**
104
+ * Responsive direction override
105
+ * If provided, overrides imagePosition behavior
106
+ */
107
+ direction?: {
108
+ base?: "row" | "column";
109
+ sm?: "row" | "column";
110
+ md?: "row" | "column";
111
+ lg?: "row" | "column";
112
+ xl?: "row" | "column";
113
+ };
114
+ /**
115
+ * Gap between left and right content
116
+ */
117
+ gap?: ResponsiveSpacing;
118
+ /**
119
+ * Alignment of items
120
+ */
121
+ align?: ResponsiveAlignment;
122
+ /**
123
+ * Justify content
124
+ */
125
+ justify?: ResponsiveJustify;
126
+ /**
127
+ * Left content area
128
+ */
129
+ left?: SectionSlotValue;
130
+ /**
131
+ * Right content area
132
+ */
133
+ right?: SectionSlotValue;
134
+ /**
135
+ * Media content (image/video)
136
+ */
137
+ media?: SectionSlotValue;
138
+ }
139
+ /**
140
+ * Grid layout configuration
141
+ * Grid of items with configurable columns and rows
142
+ */
143
+ export interface GridLayoutConfig {
144
+ type: "grid";
145
+ /**
146
+ * Number of columns
147
+ */
148
+ columns?: ResponsiveColumns;
149
+ /**
150
+ * Number of rows (optional, auto by default)
151
+ */
152
+ rows?: ResponsiveRows;
153
+ /**
154
+ * Gap between grid items
155
+ */
156
+ gap?: ResponsiveSpacing;
157
+ /**
158
+ * Alignment of grid items
159
+ */
160
+ align?: ResponsiveAlignment;
161
+ /**
162
+ * Justify content
163
+ */
164
+ justify?: ResponsiveJustify;
165
+ /**
166
+ * Grid items array
167
+ */
168
+ items: SectionSlotValue[];
169
+ /**
170
+ * Item renderer function (optional)
171
+ * If provided, each item will be wrapped with this renderer
172
+ */
173
+ itemRenderer?: (item: SectionSlotValue, index: number) => React.ReactNode;
174
+ }
175
+ /**
176
+ * Stacked layout configuration
177
+ * Vertical or horizontal stacking with spacing
178
+ */
179
+ export interface StackedLayoutConfig {
180
+ type: "stacked";
181
+ /**
182
+ * Stack direction
183
+ * @default "vertical"
184
+ */
185
+ direction?: "vertical" | "horizontal";
186
+ /**
187
+ * Gap between stacked items
188
+ */
189
+ gap?: ResponsiveSpacing;
190
+ /**
191
+ * Alignment of items
192
+ */
193
+ align?: ResponsiveAlignment;
194
+ /**
195
+ * Justify content
196
+ */
197
+ justify?: ResponsiveJustify;
198
+ /**
199
+ * Stacked items array
200
+ */
201
+ items: SectionSlotValue[];
202
+ }
203
+ /**
204
+ * Layout configuration union type
205
+ */
206
+ export type LayoutConfig = SplitLayoutConfig | GridLayoutConfig | StackedLayoutConfig;
207
+ /**
208
+ * Spacing configuration for section wrapper
209
+ */
210
+ export interface SpacingConfig {
211
+ /**
212
+ * Padding (all sides)
213
+ */
214
+ padding?: ResponsiveSpacing;
215
+ /**
216
+ * Padding horizontal
217
+ */
218
+ paddingX?: ResponsiveSpacing;
219
+ /**
220
+ * Padding vertical
221
+ */
222
+ paddingY?: ResponsiveSpacing;
223
+ /**
224
+ * Margin (all sides)
225
+ */
226
+ margin?: ResponsiveSpacing;
227
+ /**
228
+ * Margin horizontal
229
+ */
230
+ marginX?: ResponsiveSpacing;
231
+ /**
232
+ * Margin vertical
233
+ */
234
+ marginY?: ResponsiveSpacing;
235
+ }
236
+ /**
237
+ * Main SectionBuilder configuration
238
+ */
239
+ export interface SectionBuilderConfig {
240
+ /**
241
+ * Layout configuration
242
+ * Defines the layout type and its specific settings
243
+ */
244
+ layout: LayoutConfig;
245
+ /**
246
+ * Background configuration
247
+ * @default { type: "none" }
248
+ */
249
+ background?: BackgroundConfig;
250
+ /**
251
+ * Spacing configuration
252
+ * Applied to the section wrapper
253
+ */
254
+ spacing?: SpacingConfig;
255
+ /**
256
+ * Border radius
257
+ */
258
+ radius?: ResponsiveRadius;
259
+ /**
260
+ * Content slots
261
+ * These are rendered in addition to layout-specific content
262
+ */
263
+ slots?: {
264
+ /**
265
+ * Header slot (above main content)
266
+ */
267
+ header?: SectionSlotValue;
268
+ /**
269
+ * Body slot (main content area)
270
+ */
271
+ body?: SectionSlotValue;
272
+ /**
273
+ * Footer slot (below main content)
274
+ */
275
+ footer?: SectionSlotValue;
276
+ /**
277
+ * Overlay slot (rendered on top with absolute positioning)
278
+ */
279
+ overlay?: SectionSlotValue;
280
+ };
281
+ /**
282
+ * Custom className for section wrapper
283
+ */
284
+ className?: string;
285
+ /**
286
+ * Custom style for section wrapper
287
+ */
288
+ style?: React.CSSProperties;
289
+ /**
290
+ * HTML element to render as
291
+ * @default "section"
292
+ */
293
+ as?: keyof React.JSX.IntrinsicElements;
294
+ /**
295
+ * ARIA label for accessibility
296
+ */
297
+ "aria-label"?: string;
298
+ }
299
+ /**
300
+ * SectionBuilder component props
301
+ * Extends the config with standard React props
302
+ */
303
+ export interface SectionBuilderProps extends Omit<SectionBuilderConfig, "as" | "aria-label" | "style" | "className">, Omit<React.HTMLAttributes<HTMLElement>, "style" | "className"> {
304
+ /**
305
+ * Configuration object (alternative to individual props)
306
+ * If provided, other props are ignored
307
+ */
308
+ config?: SectionBuilderConfig;
309
+ /**
310
+ * HTML element to render as
311
+ * @default "section"
312
+ */
313
+ as?: keyof React.JSX.IntrinsicElements;
314
+ /**
315
+ * Custom className for section wrapper
316
+ */
317
+ className?: string;
318
+ /**
319
+ * Custom style for section wrapper
320
+ */
321
+ style?: React.CSSProperties;
322
+ /**
323
+ * Animation configuration for entrance and hover animations
324
+ */
325
+ animation?: ComponentAnimationConfig;
326
+ }
327
+ //# sourceMappingURL=SectionBuilder.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionBuilder.types.d.ts","sourceRoot":"","sources":["../../src/components/SectionBuilder.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAElE,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,cAAc,iBAAiB,EAAE,aAAa,CAAC,GAAG,CAAC;AAEtF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GACxB;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,cAAc,CAAC;CACzB,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,E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AAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAgB9C,CAAC"}
1
+ {"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../../../src/components/admin/Dashboard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAkB9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserManagement.d.ts","sourceRoot":"","sources":["../../../src/components/admin/UserManagement.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgBxD,CAAC"}
1
+ {"version":3,"file":"UserManagement.d.ts","sourceRoot":"","sources":["../../../src/components/admin/UserManagement.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkBxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../src/components/auth/LoginForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA+B9C,CAAC"}
1
+ {"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../src/components/auth/LoginForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA+B9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileCard.d.ts","sourceRoot":"","sources":["../../../src/components/auth/ProfileCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwBlD,CAAC"}
1
+ {"version":3,"file":"ProfileCard.d.ts","sourceRoot":"","sources":["../../../src/components/auth/ProfileCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqBlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RegisterForm.d.ts","sourceRoot":"","sources":["../../../src/components/auth/RegisterForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,iBAAiB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwCpD,CAAC"}
1
+ {"version":3,"file":"RegisterForm.d.ts","sourceRoot":"","sources":["../../../src/components/auth/RegisterForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,iBAAiB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwCpD,CAAC"}
@@ -1,37 +1,38 @@
1
1
  import { default as React } from 'react';
2
- export interface EventCardEvent {
3
- _id?: string;
4
- slug?: string;
5
- name?: {
6
- en?: string;
7
- es?: string;
8
- ru?: string;
9
- };
10
- start_date?: string;
11
- ticket_url?: string;
12
- venue_id?: {
13
- name?: {
14
- en?: string;
15
- es?: string;
16
- ru?: string;
17
- };
18
- };
19
- description?: {
20
- en?: string;
21
- es?: string;
22
- ru?: string;
23
- };
2
+ import { ComponentAnimationConfig } from '../../animation/types';
3
+ /**
4
+ * Props for EventCard component.
5
+ * All props are flat and domain-agnostic. Consumer should provide pre-localized strings.
6
+ */
7
+ export interface EventCardProps {
8
+ /** Event title (pre-localized string) */
9
+ title: string;
10
+ /** Event description (pre-localized string, optional) */
11
+ description?: string;
12
+ /** Event date/time display string (pre-formatted, optional) */
13
+ date?: string;
14
+ /** Venue name (pre-localized string, optional) */
15
+ venueName?: string;
16
+ /** Price display string with currency (e.g., "€20 - €50", optional) */
24
17
  price?: string;
25
- image?: string;
26
- }
27
- interface EventCardProps {
28
- event?: EventCardEvent;
29
- className?: string;
30
- featured: boolean;
31
- showImage: boolean;
18
+ /** Image URL (optional) */
19
+ imageUrl?: string;
20
+ /** Link URL for event details page (optional) */
21
+ href?: string;
22
+ /** External ticket purchase URL (optional) */
23
+ ticketUrl?: string;
24
+ /** Whether this is a featured event */
25
+ featured?: boolean;
26
+ /** Show image section */
27
+ showImage?: boolean;
28
+ /** Label for "Get Tickets" button (required) */
32
29
  getTicketsLabel: string;
33
- trendingBadgeText: string;
30
+ /** Badge text for featured events (optional) */
31
+ featuredBadgeText?: string;
32
+ /** Additional CSS classes */
33
+ className?: string;
34
+ /** Animation configuration for entrance and hover animations */
35
+ animation?: ComponentAnimationConfig;
34
36
  }
35
37
  export declare const EventCard: React.FC<EventCardProps>;
36
- export {};
37
38
  //# sourceMappingURL=EventCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventCard.d.ts","sourceRoot":"","sources":["../../../src/components/cards/EventCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE;YAAE,EAAE,CAAC,EAAE,MAAM,CAAC;YAAC,EAAE,CAAC,EAAE,MAAM,CAAC;YAAC,EAAE,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;IAChE,WAAW,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA+I9C,CAAC"}
1
+ {"version":3,"file":"EventCard.d.ts","sourceRoot":"","sources":["../../../src/components/cards/EventCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK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