@getmicdrop/venue-calendar 3.4.2 → 3.4.3

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 (35) hide show
  1. package/dist/CarouselView.legacy-DdcBQB8k.js +65 -0
  2. package/dist/CarouselView.legacy-DdcBQB8k.js.map +1 -0
  3. package/dist/Checkout.legacy-ColJbEgW.js +1147 -0
  4. package/dist/Checkout.legacy-ColJbEgW.js.map +1 -0
  5. package/dist/FeaturedView.legacy-CtZabSNQ.js +128 -0
  6. package/dist/FeaturedView.legacy-CtZabSNQ.js.map +1 -0
  7. package/dist/GalleryCard-Ch072lif.js +84 -0
  8. package/dist/GalleryCard-Ch072lif.js.map +1 -0
  9. package/dist/GalleryView.legacy-CQOF_kYd.js +52 -0
  10. package/dist/GalleryView.legacy-CQOF_kYd.js.map +1 -0
  11. package/dist/GroupedListView.legacy-BWqs_hha.js +148 -0
  12. package/dist/GroupedListView.legacy-BWqs_hha.js.map +1 -0
  13. package/dist/Success.legacy-BcuRT_6P.js +191 -0
  14. package/dist/Success.legacy-BcuRT_6P.js.map +1 -0
  15. package/dist/VenueCalendar-DXZ34Hv2.js +26492 -0
  16. package/dist/VenueCalendar-DXZ34Hv2.js.map +1 -0
  17. package/dist/api/api.cjs +1 -1
  18. package/dist/api/api.cjs.map +1 -1
  19. package/dist/api/api.mjs +198 -163
  20. package/dist/api/api.mjs.map +1 -1
  21. package/dist/api/events.d.ts +31 -1
  22. package/dist/api/index.d.ts +2 -2
  23. package/dist/api/types.d.ts +61 -0
  24. package/dist/colors-BZoMuXdh.js +62 -0
  25. package/dist/colors-BZoMuXdh.js.map +1 -0
  26. package/dist/types/index.d.ts +24 -32
  27. package/dist/venue-calendar.css +1 -1
  28. package/dist/venue-calendar.es.js +21 -25502
  29. package/dist/venue-calendar.es.js.map +1 -1
  30. package/dist/venue-calendar.iife.js +50 -24
  31. package/dist/venue-calendar.iife.js.map +1 -1
  32. package/dist/venue-calendar.umd.js +50 -24
  33. package/dist/venue-calendar.umd.js.map +1 -1
  34. package/package.json +2 -1
  35. package/src/lib/theme.js +18 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getmicdrop/venue-calendar",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "description": "A customizable Svelte calendar component for displaying comedy events",
5
5
  "type": "module",
6
6
  "types": "./dist/types/index.d.ts",
@@ -95,6 +95,7 @@
95
95
  "@getmicdrop/svelte-components": "^5.17.1",
96
96
  "@stripe/stripe-js": "^8.0.0",
97
97
  "carbon-icons-svelte": "^13.7.0",
98
+ "date-fns": "^4.1.0",
98
99
  "esbuild": "^0.27.2",
99
100
  "js-cookie": "^3.0.5",
100
101
  "svelte-stripe": "^2.0.0"
package/src/lib/theme.js CHANGED
@@ -134,7 +134,7 @@ export function applyTheme(theme, container = document.documentElement) {
134
134
  brandPrimary: '--Brand-Primary',
135
135
  textPrimary: '--Text-Primary',
136
136
  textSecondary: '--Text-Secondary',
137
- textTertiary: '--Text-Tartiary', // Note: keeping original typo for compatibility
137
+ textTertiary: '--Text-Tertiary',
138
138
  bgPrimary: '--BG-Primary',
139
139
  bgSecondary: '--BG-Secondary',
140
140
  bgQuaternary: '--BG-Quaternary',
@@ -156,6 +156,10 @@ export function applyTheme(theme, container = document.documentElement) {
156
156
  const cssVar = cssVarMap[key];
157
157
  if (cssVar) {
158
158
  container.style.setProperty(cssVar, value);
159
+ // Backwards compat: also set the typo'd variable name
160
+ if (key === 'textTertiary') {
161
+ container.style.setProperty('--Text-Tartiary', value);
162
+ }
159
163
  }
160
164
  });
161
165
  }
@@ -170,7 +174,7 @@ export function generateThemeCSS(theme) {
170
174
  brandPrimary: '--Brand-Primary',
171
175
  textPrimary: '--Text-Primary',
172
176
  textSecondary: '--Text-Secondary',
173
- textTertiary: '--Text-Tartiary',
177
+ textTertiary: '--Text-Tertiary',
174
178
  bgPrimary: '--BG-Primary',
175
179
  bgSecondary: '--BG-Secondary',
176
180
  bgQuaternary: '--BG-Quaternary',
@@ -188,15 +192,19 @@ export function generateThemeCSS(theme) {
188
192
  focusRing: '--Focus-Ring',
189
193
  };
190
194
 
191
- const vars = Object.entries(theme)
192
- .map(([key, value]) => {
193
- const cssVar = cssVarMap[key];
194
- return cssVar ? ` ${cssVar}: ${value};` : null;
195
- })
196
- .filter(Boolean)
197
- .join('\n');
195
+ const lines = [];
196
+ Object.entries(theme).forEach(([key, value]) => {
197
+ const cssVar = cssVarMap[key];
198
+ if (cssVar) {
199
+ lines.push(` ${cssVar}: ${value};`);
200
+ // Backwards compat: also emit the typo'd variable name
201
+ if (key === 'textTertiary') {
202
+ lines.push(` --Text-Tartiary: ${value};`);
203
+ }
204
+ }
205
+ });
198
206
 
199
- return `:root {\n${vars}\n}`;
207
+ return `:root {\n${lines.join('\n')}\n}`;
200
208
  }
201
209
 
202
210
  export default {