@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.
- package/dist/CarouselView.legacy-DdcBQB8k.js +65 -0
- package/dist/CarouselView.legacy-DdcBQB8k.js.map +1 -0
- package/dist/Checkout.legacy-ColJbEgW.js +1147 -0
- package/dist/Checkout.legacy-ColJbEgW.js.map +1 -0
- package/dist/FeaturedView.legacy-CtZabSNQ.js +128 -0
- package/dist/FeaturedView.legacy-CtZabSNQ.js.map +1 -0
- package/dist/GalleryCard-Ch072lif.js +84 -0
- package/dist/GalleryCard-Ch072lif.js.map +1 -0
- package/dist/GalleryView.legacy-CQOF_kYd.js +52 -0
- package/dist/GalleryView.legacy-CQOF_kYd.js.map +1 -0
- package/dist/GroupedListView.legacy-BWqs_hha.js +148 -0
- package/dist/GroupedListView.legacy-BWqs_hha.js.map +1 -0
- package/dist/Success.legacy-BcuRT_6P.js +191 -0
- package/dist/Success.legacy-BcuRT_6P.js.map +1 -0
- package/dist/VenueCalendar-DXZ34Hv2.js +26492 -0
- package/dist/VenueCalendar-DXZ34Hv2.js.map +1 -0
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +198 -163
- package/dist/api/api.mjs.map +1 -1
- package/dist/api/events.d.ts +31 -1
- package/dist/api/index.d.ts +2 -2
- package/dist/api/types.d.ts +61 -0
- package/dist/colors-BZoMuXdh.js +62 -0
- package/dist/colors-BZoMuXdh.js.map +1 -0
- package/dist/types/index.d.ts +24 -32
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +21 -25502
- package/dist/venue-calendar.es.js.map +1 -1
- package/dist/venue-calendar.iife.js +50 -24
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +50 -24
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +2 -1
- 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.
|
|
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-
|
|
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-
|
|
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
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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${
|
|
207
|
+
return `:root {\n${lines.join('\n')}\n}`;
|
|
200
208
|
}
|
|
201
209
|
|
|
202
210
|
export default {
|