@fluid-app/portal-sdk 0.1.199 → 0.1.200

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 (62) hide show
  1. package/dist/{ContactsScreen-Cheiwaxn.cjs → ContactsScreen-BOMxeTG8.cjs} +2 -2
  2. package/dist/{ContactsScreen-BtBNMZzG.mjs → ContactsScreen-Bm9SlMY3.mjs} +17 -7
  3. package/dist/ContactsScreen-Bm9SlMY3.mjs.map +1 -0
  4. package/dist/{ContactsScreen-DvohvoOE.cjs → ContactsScreen-DflUjayA.cjs} +291 -281
  5. package/dist/ContactsScreen-DflUjayA.cjs.map +1 -0
  6. package/dist/{FluidProvider-D177ez3m.cjs → FluidProvider-ByBDIQeW.cjs} +6 -986
  7. package/dist/FluidProvider-ByBDIQeW.cjs.map +1 -0
  8. package/dist/{FluidProvider-DiJy4Zve.mjs → FluidProvider-DFZiXiqm.mjs} +3 -814
  9. package/dist/FluidProvider-DFZiXiqm.mjs.map +1 -0
  10. package/dist/{MessagingScreen-Cu3tcpPs.mjs → MessagingScreen-D6d83q2n.mjs} +2 -2
  11. package/dist/{MessagingScreen-Cu3tcpPs.mjs.map → MessagingScreen-D6d83q2n.mjs.map} +1 -1
  12. package/dist/{MessagingScreen-Ysi48svi.cjs → MessagingScreen-HT_HSiNW.cjs} +3 -3
  13. package/dist/{MessagingScreen-gKidMcrr.cjs → MessagingScreen-shEWzTmQ.cjs} +2 -2
  14. package/dist/{MessagingScreen-gKidMcrr.cjs.map → MessagingScreen-shEWzTmQ.cjs.map} +1 -1
  15. package/dist/{PortalContentApiProvider-CWRAw9kL.mjs → PortalContentApiProvider-CNYq1_OD.mjs} +114 -88
  16. package/dist/PortalContentApiProvider-CNYq1_OD.mjs.map +1 -0
  17. package/dist/{PortalContentApiProvider-CPnqELEX.cjs → PortalContentApiProvider-ChmcXmbv.cjs} +113 -87
  18. package/dist/PortalContentApiProvider-ChmcXmbv.cjs.map +1 -0
  19. package/dist/{ProductsScreen-Al6H4ujs.mjs → ProductsScreen-CDjpHF49.mjs} +2 -2
  20. package/dist/{ProductsScreen-Al6H4ujs.mjs.map → ProductsScreen-CDjpHF49.mjs.map} +1 -1
  21. package/dist/{ProductsScreen-CQ5-A8AL.cjs → ProductsScreen-CzfDX0xx.cjs} +2 -2
  22. package/dist/{ProductsScreen-CQ5-A8AL.cjs.map → ProductsScreen-CzfDX0xx.cjs.map} +1 -1
  23. package/dist/{ProductsScreen-CexZ0gx9.mjs → ProductsScreen-D6-ehQjh.mjs} +2 -2
  24. package/dist/{ProductsScreen-BnwMOZ4-.cjs → ProductsScreen-fN3fh3PB.cjs} +2 -2
  25. package/dist/{ProfileScreen-DJZoMzE6.cjs → ProfileScreen-B0EU-TLa.cjs} +101 -101
  26. package/dist/{ProfileScreen-DJZoMzE6.cjs.map → ProfileScreen-B0EU-TLa.cjs.map} +1 -1
  27. package/dist/{ProfileScreen-hE1S_99P.mjs → ProfileScreen-BIs70k9W.mjs} +3 -3
  28. package/dist/{ProfileScreen-hE1S_99P.mjs.map → ProfileScreen-BIs70k9W.mjs.map} +1 -1
  29. package/dist/{ProfileScreen-CGS7YkcT.cjs → ProfileScreen-Dqu2nK_2.cjs} +3 -3
  30. package/dist/{ShareablesScreen-CzTU7e0l.mjs → ShareablesScreen-B8rPq-_7.mjs} +2 -2
  31. package/dist/{ShareablesScreen-CzTU7e0l.mjs.map → ShareablesScreen-B8rPq-_7.mjs.map} +1 -1
  32. package/dist/{ShareablesScreen-DujtMoAi.cjs → ShareablesScreen-DFLAJxjs.cjs} +2 -2
  33. package/dist/{ShareablesScreen-CmZ5CX99.cjs → ShareablesScreen-DLXK1PAg.cjs} +2 -2
  34. package/dist/{ShareablesScreen-CmZ5CX99.cjs.map → ShareablesScreen-DLXK1PAg.cjs.map} +1 -1
  35. package/dist/{ShareablesScreen-yscAsNpq.mjs → ShareablesScreen-Dc57L9m8.mjs} +2 -2
  36. package/dist/{ShopScreen-Bdo59te-.mjs → ShopScreen-2yMsyFwk.mjs} +2 -2
  37. package/dist/{ShopScreen-Bdo59te-.mjs.map → ShopScreen-2yMsyFwk.mjs.map} +1 -1
  38. package/dist/{ShopScreen-DKlDKNom.cjs → ShopScreen-BmHSLZ7H.cjs} +2 -2
  39. package/dist/{ShopScreen-DKlDKNom.cjs.map → ShopScreen-BmHSLZ7H.cjs.map} +1 -1
  40. package/dist/{ShopScreen-R9zk7d5d.cjs → ShopScreen-kk4yLzrW.cjs} +3 -3
  41. package/dist/index.cjs +67 -67
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.d.cts +132 -128
  44. package/dist/index.d.cts.map +1 -1
  45. package/dist/index.d.mts +132 -128
  46. package/dist/index.d.mts.map +1 -1
  47. package/dist/index.mjs +21 -21
  48. package/dist/src-BRTXunU1.mjs +851 -0
  49. package/dist/src-BRTXunU1.mjs.map +1 -0
  50. package/dist/src-DvVPCD01.cjs +1038 -0
  51. package/dist/src-DvVPCD01.cjs.map +1 -0
  52. package/package.json +16 -16
  53. package/dist/ContactsScreen-BtBNMZzG.mjs.map +0 -1
  54. package/dist/ContactsScreen-DvohvoOE.cjs.map +0 -1
  55. package/dist/FluidProvider-D177ez3m.cjs.map +0 -1
  56. package/dist/FluidProvider-DiJy4Zve.mjs.map +0 -1
  57. package/dist/PortalContentApiProvider-CPnqELEX.cjs.map +0 -1
  58. package/dist/PortalContentApiProvider-CWRAw9kL.mjs.map +0 -1
  59. package/dist/countries-api-context-Dob_AzPO.mjs +0 -13
  60. package/dist/countries-api-context-Dob_AzPO.mjs.map +0 -1
  61. package/dist/countries-api-context-G-NW4BoH.cjs +0 -25
  62. package/dist/countries-api-context-G-NW4BoH.cjs.map +0 -1
@@ -0,0 +1,1038 @@
1
+ const require_chunk = require("./chunk-9hOWP6kD.cjs");
2
+ let react = require("react");
3
+ let colorjs_io = require("colorjs.io");
4
+ colorjs_io = require_chunk.__toESM(colorjs_io);
5
+ //#region ../../store/core/src/countries-api-context.ts
6
+ const CountriesApiContext = (0, react.createContext)(null);
7
+ const CountriesApiProvider = CountriesApiContext.Provider;
8
+ function useCountriesApi() {
9
+ const api = (0, react.useContext)(CountriesApiContext);
10
+ if (!api) throw new Error("useCountriesApi must be used within a CountriesApiProvider");
11
+ return api;
12
+ }
13
+ //#endregion
14
+ //#region ../../platform/theme-engine/src/types.ts
15
+ const SEMANTIC_COLOR_NAMES = [
16
+ "background",
17
+ "foreground",
18
+ "primary",
19
+ "secondary",
20
+ "accent",
21
+ "muted",
22
+ "destructive"
23
+ ];
24
+ const SHADE_STEPS = [
25
+ 100,
26
+ 200,
27
+ 300,
28
+ 400,
29
+ 500,
30
+ 600,
31
+ 700,
32
+ 800,
33
+ 900
34
+ ];
35
+ const FONT_SIZE_KEYS = [
36
+ "extraSmall",
37
+ "small",
38
+ "regular",
39
+ "large",
40
+ "extraLarge",
41
+ "giant"
42
+ ];
43
+ const FONT_FAMILY_KEYS = ["header", "body"];
44
+ const RADIUS_KEYS = [
45
+ "small",
46
+ "medium",
47
+ "large",
48
+ "extraLarge"
49
+ ];
50
+ //#endregion
51
+ //#region ../../platform/theme-engine/src/color-engine.ts
52
+ const BARE_HEX_RE = /^[0-9a-fA-F]{6}$/;
53
+ /**
54
+ * Attempt to convert any string into a Color using colorjs.io.
55
+ * If the string is exactly 6 hex digits it is assumed to be a bare hex value
56
+ * (e.g. "3b82f6") and a "#" prefix is added before parsing. Six-letter
57
+ * named colours like "orange" or "maroon" are left untouched.
58
+ *
59
+ * @returns the parsed Color, or a neutral gray (`oklch(0.5 0 0)`) on failure
60
+ */
61
+ function parseColor(value) {
62
+ if (BARE_HEX_RE.test(value)) value = `#${value}`;
63
+ try {
64
+ return new colorjs_io.default(value);
65
+ } catch (error) {
66
+ console.warn("[theme] Failed to parse color:", value, error);
67
+ return new colorjs_io.default("oklch", [
68
+ .5,
69
+ 0,
70
+ 0
71
+ ]);
72
+ }
73
+ }
74
+ /**
75
+ * Returns either the original foreground or a corrected lightness variant,
76
+ * whichever provides better contrast against `color`.
77
+ * Inversion triggers when the |APCA contrast| is below 50 — APCA is signed
78
+ * (negative for dark-on-light, positive for light-on-dark), so comparing the
79
+ * absolute value avoids flipping dark text that already contrasts well on a
80
+ * medium background.
81
+ */
82
+ function getForegroundColor(foreground, color) {
83
+ if (foreground.oklch.l == null || color.oklch.l == null) return foreground;
84
+ const contrast = color.contrastAPCA(foreground);
85
+ if (Math.abs(contrast) < 50) return new colorjs_io.default("oklch", [
86
+ color.oklch.l < .7 ? .95 : .15,
87
+ foreground.oklch.c || 0,
88
+ foreground.oklch.h || 0
89
+ ]);
90
+ return foreground;
91
+ }
92
+ /**
93
+ * Convenience helper: given a background color string, return a CSS color
94
+ * string for text overlaid on it. Uses APCA contrast to pick between
95
+ * near-black and near-white. Returns `null` when the background cannot be
96
+ * parsed (e.g. a CSS custom property reference like `var(--color-muted)` or
97
+ * a malformed value), so callers can fall back to their theme foreground.
98
+ */
99
+ function getContrastingTextColor(background) {
100
+ const normalised = BARE_HEX_RE.test(background) ? `#${background}` : background;
101
+ let bg;
102
+ try {
103
+ bg = new colorjs_io.default(normalised);
104
+ } catch {
105
+ return null;
106
+ }
107
+ return getForegroundColor(new colorjs_io.default("oklch", [
108
+ .15,
109
+ 0,
110
+ 0
111
+ ]), bg).toString({ format: "oklch" });
112
+ }
113
+ /**
114
+ * Generate a 100–900 shade ramp from a base color.
115
+ * Base anchors at 500. Light shades (100–400) step toward white,
116
+ * dark shades (600–900) step toward black. Dark steps use an asymmetric
117
+ * multiplier (1.6×, 1.875×, 3×, 4× of `darkStep`) for a more gradual
118
+ * initial descent. Chroma is nudged per step for perceptually natural ramps.
119
+ */
120
+ function generateShades(base) {
121
+ const l = base.oklch.l ?? 0;
122
+ const c = base.oklch.c ?? 0;
123
+ const h = base.oklch.h ?? 0;
124
+ const safeMax = l >= .885 ? .995 : .97;
125
+ const safeMin = l <= .33 ? 0 : .21;
126
+ const lightStep = (safeMax - l) / 5;
127
+ const darkStep = -(l - safeMin) / 8;
128
+ const shade = (lDelta, cDelta) => {
129
+ return new colorjs_io.default("oklch", [
130
+ Math.max(0, Math.min(1, l + lDelta)),
131
+ c <= .001 ? c : Math.max(0, c + cDelta),
132
+ h
133
+ ]);
134
+ };
135
+ return {
136
+ 100: shade(5 * lightStep, -.00375),
137
+ 200: shade(4 * lightStep, -.00375),
138
+ 300: shade(3 * lightStep, -.00375),
139
+ 400: shade(2 * lightStep, -.00375),
140
+ 500: new colorjs_io.default("oklch", [
141
+ l,
142
+ c,
143
+ h
144
+ ]),
145
+ 600: shade(1.6 * darkStep, .025),
146
+ 700: shade(1.875 * 2 * darkStep, .05),
147
+ 800: shade(6 * darkStep, .075),
148
+ 900: shade(8 * darkStep, .1)
149
+ };
150
+ }
151
+ const DARK_DERIVATION_CONFIG = {
152
+ background: {
153
+ baseLightness: .15,
154
+ fgLightness: .93
155
+ },
156
+ foreground: {
157
+ baseLightness: .93,
158
+ fgLightness: .15
159
+ },
160
+ muted: {
161
+ baseLightness: .22,
162
+ fgLightness: .75
163
+ },
164
+ primary: {
165
+ baseLightness: "invert",
166
+ fgLightness: .95,
167
+ chromaScale: .9
168
+ },
169
+ secondary: {
170
+ baseLightness: "invert",
171
+ fgLightness: .93,
172
+ chromaScale: .85
173
+ },
174
+ accent: {
175
+ baseLightness: "invert",
176
+ fgLightness: .95,
177
+ chromaScale: .9
178
+ },
179
+ destructive: {
180
+ baseLightness: "invert",
181
+ fgLightness: .95,
182
+ chromaScale: .95
183
+ }
184
+ };
185
+ /** Invert OKLCH lightness (1 - l), clamped to [0.35, 0.75] to avoid extremes. */
186
+ function invertLightness(l) {
187
+ const inverted = 1 - l;
188
+ return Math.max(.35, Math.min(.75, inverted));
189
+ }
190
+ /**
191
+ * Derive a dark-mode ThemeColorInput from its light-mode counterpart.
192
+ */
193
+ function deriveDarkVariant(name, light) {
194
+ const config = DARK_DERIVATION_CONFIG[name];
195
+ const chromaScale = config.chromaScale ?? 1;
196
+ const baseLightness = config.baseLightness === "invert" ? invertLightness(light.base.oklch.l ?? 0) : config.baseLightness;
197
+ const fgLightness = config.fgLightness === "invert" ? invertLightness(light.foreground.oklch.l ?? 0) : config.fgLightness;
198
+ return {
199
+ base: new colorjs_io.default("oklch", [
200
+ baseLightness,
201
+ (light.base.oklch.c || 0) * chromaScale,
202
+ light.base.oklch.h || 0
203
+ ]),
204
+ foreground: new colorjs_io.default("oklch", [
205
+ fgLightness,
206
+ (light.foreground.oklch.c || 0) * chromaScale,
207
+ light.foreground.oklch.h || 0
208
+ ])
209
+ };
210
+ }
211
+ /**
212
+ * Merge auto-derived dark colors with any user-specified overrides.
213
+ * For each semantic color, if the user has fully overridden both base and
214
+ * foreground those are used; otherwise the missing channels are derived.
215
+ */
216
+ function mergeDarkOverrides(def) {
217
+ const darkColors = {};
218
+ for (const name of SEMANTIC_COLOR_NAMES) {
219
+ const lightInput = def.light[name];
220
+ const darkOverride = def.dark[name];
221
+ if (darkOverride?.base && darkOverride?.foreground) darkColors[name] = darkOverride;
222
+ else if (darkOverride) {
223
+ const base = darkOverride.base ?? deriveDarkVariant(name, lightInput).base;
224
+ darkColors[name] = {
225
+ base,
226
+ foreground: darkOverride.foreground ?? getForegroundColor(def.light.foreground.base, base)
227
+ };
228
+ } else darkColors[name] = deriveDarkVariant(name, lightInput);
229
+ }
230
+ return darkColors;
231
+ }
232
+ function resolveColorSet(colors) {
233
+ const resolved = {};
234
+ for (const name of SEMANTIC_COLOR_NAMES) {
235
+ const input = colors[name];
236
+ const shades = generateShades(input.base);
237
+ const resolvedShades = {};
238
+ for (const step of SHADE_STEPS) resolvedShades[step] = shades[step];
239
+ resolved[name] = {
240
+ base: input.base.clone(),
241
+ foreground: input.foreground.clone(),
242
+ shades: resolvedShades
243
+ };
244
+ }
245
+ return resolved;
246
+ }
247
+ /**
248
+ * Resolve a ThemeDefinition into a complete ResolvedTheme.
249
+ * Dark mode colors are derived from light where not overridden.
250
+ */
251
+ function resolveTheme(def) {
252
+ return {
253
+ id: def.id,
254
+ name: def.name,
255
+ light: resolveColorSet(def.light),
256
+ dark: resolveColorSet(mergeDarkOverrides(def)),
257
+ fontSizes: { ...def.fontSizes },
258
+ fontFamilies: { ...def.fontFamilies },
259
+ spacing: def.spacing,
260
+ radii: { ...def.radii }
261
+ };
262
+ }
263
+ //#endregion
264
+ //#region ../../platform/theme-engine/src/tailwind-overrides.ts
265
+ /**
266
+ * Specific overrides, otherwise all the overrides are generated using emitTailwindOverrides
267
+ */
268
+ const OVERRIDES = {
269
+ "--color-gray-50": "var(--color-muted)",
270
+ "--color-gray-100": "var(--color-muted-600)",
271
+ "--color-gray-200": "var(--color-border)"
272
+ };
273
+ /**
274
+ * Returns the inverted shade for dark mode foreground colors.
275
+ * In dark mode, light shades (50, 100) should map to dark values (950, 900) and vice versa.
276
+ */
277
+ function getInvertedStep(shade) {
278
+ const shadeIndex = SHADE_STEPS.indexOf(shade);
279
+ return SHADE_STEPS[SHADE_STEPS.length - 1 - shadeIndex] || 500;
280
+ }
281
+ /**
282
+ * Map semantic colors to Tailwind built-in color names.
283
+ */
284
+ function emitTailwindOverrides(darkMode = false) {
285
+ const TAILWIND_COLOR_MAP = {
286
+ gray: "foreground",
287
+ red: "destructive",
288
+ blue: "primary",
289
+ green: "accent"
290
+ };
291
+ const TAILWIND_SHADES = [
292
+ 50,
293
+ 100,
294
+ 200,
295
+ 300,
296
+ 400,
297
+ 500,
298
+ 600,
299
+ 700,
300
+ 800,
301
+ 900,
302
+ 950
303
+ ];
304
+ const SHADE_REMAP = {
305
+ 50: 100,
306
+ 950: 900
307
+ };
308
+ const lines = [];
309
+ for (const [twName, semantic] of Object.entries(TAILWIND_COLOR_MAP)) for (const shade of TAILWIND_SHADES) {
310
+ const step = SHADE_REMAP[shade] ?? shade;
311
+ const override = OVERRIDES[`--color-${twName}-${shade}`];
312
+ lines.push(`--color-${twName}-${shade}: ${override ? override : `var(--color-${semantic}-${semantic === "foreground" && darkMode === true ? getInvertedStep(step) : step})`};`);
313
+ }
314
+ lines.push("--color-white: var(--color-background);");
315
+ lines.push("--color-black: var(--color-foreground);");
316
+ return lines;
317
+ }
318
+ //#endregion
319
+ //#region ../../platform/theme-engine/src/css-generator.ts
320
+ function colorToCSS(color) {
321
+ const result = color.toString({ format: "oklch" });
322
+ if (result.includes("NaN")) {
323
+ console.warn("[theme] colorToCSS produced NaN, using neutral fallback:", result);
324
+ return "oklch(0.5 0 0)";
325
+ }
326
+ return result;
327
+ }
328
+ function camelToKebab(str) {
329
+ return str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
330
+ }
331
+ /**
332
+ * Emit --color-{name}, --color-{name}-foreground, --color-{name}-{shade} vars.
333
+ * Uses --color- prefix to match portal-widgets/tailwind.config.ts.
334
+ */
335
+ function emitColorVars(colors) {
336
+ const lines = [];
337
+ for (const name of SEMANTIC_COLOR_NAMES) {
338
+ const color = colors[name];
339
+ lines.push(`--color-${name}: ${colorToCSS(color.base)};`);
340
+ lines.push(`--color-${name}-foreground: ${colorToCSS(color.foreground)};`);
341
+ for (const step of SHADE_STEPS) lines.push(`--color-${name}-${step}: ${colorToCSS(color.shades[step])};`);
342
+ }
343
+ return lines;
344
+ }
345
+ /**
346
+ * Format a font family value for CSS output.
347
+ * - If the value starts with "var(" (legacy), pass through as-is
348
+ * - If the value already contains a comma (has fallback), pass through as-is
349
+ * - Otherwise, wrap in quotes and append a generic sans-serif fallback
350
+ */
351
+ function formatFontFamily(value) {
352
+ if (value.startsWith("var(")) return value;
353
+ if (value.includes(",")) return value;
354
+ return `'${value}', sans-serif`;
355
+ }
356
+ /**
357
+ * Emit non-color CSS variables (font sizes, families, spacing, radii).
358
+ */
359
+ function emitNonColorVars(theme) {
360
+ const lines = [];
361
+ for (const key of FONT_SIZE_KEYS) lines.push(`--font-size-${camelToKebab(key)}: ${theme.fontSizes[key]};`);
362
+ for (const key of FONT_FAMILY_KEYS) lines.push(`--font-${key}: ${formatFontFamily(theme.fontFamilies[key])};`);
363
+ lines.push(`--spacing: ${theme.spacing};`);
364
+ for (const key of RADIUS_KEYS) lines.push(`--radius-${camelToKebab(key)}: ${theme.radii[key]};`);
365
+ return lines;
366
+ }
367
+ /**
368
+ * Static CSS alias variables that bridge theme var names to Tailwind/component conventions.
369
+ * These are always emitted and not mode-dependent.
370
+ */
371
+ const globalCSSOverride = [
372
+ "--color-background-foreground: var(--color-foreground);",
373
+ "--color-foreground-foreground: var(--color-background);",
374
+ "--color-contrast: var(--color-foreground);",
375
+ ...SEMANTIC_COLOR_NAMES.map((value) => `--${value}: var(--color-${value});`),
376
+ ...SEMANTIC_COLOR_NAMES.map((value) => `--${value}-foreground: var(--color-${value}-foreground);`),
377
+ "--sidebar-ring: var(--color-primary);",
378
+ "--sidebar-border: var(--color-border);",
379
+ "--sidebar-accent-foreground: var(--color-accent-foreground);",
380
+ "--sidebar-accent: var(--color-accent);",
381
+ "--sidebar-primary-foreground: var(--color-primary-foreground);",
382
+ "--sidebar-primary: var(--color-primary);",
383
+ "--sidebar-foreground: var(--color-muted-foreground);",
384
+ "--sidebar: var(--color-muted);",
385
+ "--border: var(--color-background-600);",
386
+ "--ring: var(--color-primary);",
387
+ "--popover: var(--color-background);",
388
+ "--popover-foreground: var(--color-foreground);",
389
+ "--card: var(--color-muted);",
390
+ "--card-foreground: var(--color-muted-foreground);",
391
+ "--radius-sm: var(--radius-small);",
392
+ "--radius-md: var(--radius-medium);",
393
+ "--radius-lg: var(--radius-large);",
394
+ "--radius-xl: var(--radius-extra-large);",
395
+ "--text-xs: var(--font-size-extra-small);",
396
+ "--text-sm: var(--font-size-small);",
397
+ "--text-base: var(--font-size-regular);",
398
+ "--text-lg: var(--font-size-large);",
399
+ "--text-xl: var(--font-size-extra-large);",
400
+ "--text-2xl: var(--font-size-giant);"
401
+ ];
402
+ /**
403
+ * Overrides for global tailwindcss for specifically dark mode.
404
+ */
405
+ const globalDarkCSSOverride = ["--border: var(--color-background-400);"];
406
+ /**
407
+ * Generate a complete CSS string for a resolved theme.
408
+ * Outputs 2–3 blocks: light default, dark explicit via `[data-theme-mode="dark"]`,
409
+ * and (unless `disableAutoTheme`) a `prefers-color-scheme: dark` media query block.
410
+ */
411
+ function generateThemeCSS(theme, options = {}) {
412
+ const sel = `[data-theme="${theme.id}"]`;
413
+ const tw = options.mapTailwindColors ?? true;
414
+ const blocks = [];
415
+ blocks.push(`${sel} {`);
416
+ blocks.push(...globalCSSOverride);
417
+ blocks.push(...emitNonColorVars(theme));
418
+ blocks.push(...emitColorVars(theme.light));
419
+ if (tw) blocks.push(...emitTailwindOverrides());
420
+ blocks.push(`}`);
421
+ blocks.push(`${sel}[data-theme-mode="dark"] {`);
422
+ blocks.push(...globalDarkCSSOverride);
423
+ blocks.push(...emitColorVars(theme.dark));
424
+ if (tw) blocks.push(...emitTailwindOverrides(true));
425
+ blocks.push(`}`);
426
+ if (!options.disableAutoTheme) {
427
+ blocks.push(`@media (prefers-color-scheme: dark) {`);
428
+ blocks.push(`${sel}:not([data-theme-mode]) {`);
429
+ blocks.push(...globalDarkCSSOverride);
430
+ blocks.push(...emitColorVars(theme.dark).map((l) => `${l}`));
431
+ if (tw) blocks.push(...emitTailwindOverrides(true).map((l) => `${l}`));
432
+ blocks.push(`}`);
433
+ blocks.push(`}`);
434
+ }
435
+ return blocks.join("\n");
436
+ }
437
+ //#endregion
438
+ //#region ../../platform/theme-engine/src/defaults.ts
439
+ const DEFAULT_FONT_SIZES = {
440
+ extraSmall: "0.75rem",
441
+ small: "0.875rem",
442
+ regular: "1rem",
443
+ large: "1.125rem",
444
+ extraLarge: "1.25rem",
445
+ giant: "1.5rem"
446
+ };
447
+ const DEFAULT_FONT_FAMILIES = {
448
+ header: "Inter",
449
+ body: "Inter"
450
+ };
451
+ const DEFAULT_SPACING = "0.25rem";
452
+ const DEFAULT_RADII = {
453
+ small: "0.25rem",
454
+ medium: "0.5rem",
455
+ large: "0.75rem",
456
+ extraLarge: "1rem"
457
+ };
458
+ const DEFAULT_COLORS = {
459
+ background: "#ffffff",
460
+ foreground: "#1a1a1a",
461
+ primary: "#3b82f6",
462
+ secondary: "#6b7280",
463
+ accent: "#10b981",
464
+ muted: "#f3f4f6",
465
+ destructive: "#ef4444",
466
+ mutedForeground: "#6b7280"
467
+ };
468
+ const DEFAULT_THEME_ID = "default";
469
+ const DEFAULT_THEME_NAME = "Default Theme";
470
+ /**
471
+ * Build a fresh ThemeDefinition populated with all defaults.
472
+ * Returns a new object each call because Color instances are mutable — do not cache the result.
473
+ */
474
+ function getDefaultThemeDefinition() {
475
+ const bg = new colorjs_io.default(DEFAULT_COLORS.background);
476
+ const fg = new colorjs_io.default(DEFAULT_COLORS.foreground);
477
+ const primary = new colorjs_io.default(DEFAULT_COLORS.primary);
478
+ const secondary = new colorjs_io.default(DEFAULT_COLORS.secondary);
479
+ const accent = new colorjs_io.default(DEFAULT_COLORS.accent);
480
+ const muted = new colorjs_io.default(DEFAULT_COLORS.muted);
481
+ const destructive = new colorjs_io.default(DEFAULT_COLORS.destructive);
482
+ const mutedFg = new colorjs_io.default(DEFAULT_COLORS.mutedForeground);
483
+ const darkBg = new colorjs_io.default("#0a0a0a");
484
+ const darkFg = new colorjs_io.default("#fafafa");
485
+ const darkMuted = new colorjs_io.default("#171717");
486
+ const darkMutedForeground = new colorjs_io.default("#dddddd");
487
+ return {
488
+ id: DEFAULT_THEME_ID,
489
+ name: DEFAULT_THEME_NAME,
490
+ light: {
491
+ background: {
492
+ base: bg,
493
+ foreground: fg
494
+ },
495
+ foreground: {
496
+ base: fg,
497
+ foreground: bg
498
+ },
499
+ primary: {
500
+ base: primary,
501
+ foreground: getForegroundColor(fg, primary)
502
+ },
503
+ secondary: {
504
+ base: secondary,
505
+ foreground: getForegroundColor(fg, secondary)
506
+ },
507
+ accent: {
508
+ base: accent,
509
+ foreground: getForegroundColor(fg, accent)
510
+ },
511
+ muted: {
512
+ base: muted,
513
+ foreground: mutedFg
514
+ },
515
+ destructive: {
516
+ base: destructive,
517
+ foreground: getForegroundColor(fg, destructive)
518
+ }
519
+ },
520
+ dark: {
521
+ background: {
522
+ base: darkBg,
523
+ foreground: darkFg
524
+ },
525
+ foreground: {
526
+ base: darkFg,
527
+ foreground: darkBg
528
+ },
529
+ muted: {
530
+ base: darkMuted,
531
+ foreground: darkMutedForeground
532
+ }
533
+ },
534
+ fontSizes: { ...DEFAULT_FONT_SIZES },
535
+ fontFamilies: { ...DEFAULT_FONT_FAMILIES },
536
+ spacing: DEFAULT_SPACING,
537
+ radii: { ...DEFAULT_RADII }
538
+ };
539
+ }
540
+ //#endregion
541
+ //#region ../../platform/theme-engine/src/serialisation.ts
542
+ function colorToPlain(color) {
543
+ return {
544
+ l: color.oklch.l ?? 0,
545
+ c: color.oklch.c ?? 0,
546
+ h: color.oklch.h ?? 0
547
+ };
548
+ }
549
+ function plainToColor(plain) {
550
+ return new colorjs_io.default("oklch", [
551
+ plain.l,
552
+ plain.c,
553
+ plain.h
554
+ ]);
555
+ }
556
+ /**
557
+ * Serialise a ThemeDefinition (with Color objects) to a plain JSON payload
558
+ * suitable for backend storage.
559
+ */
560
+ function serialiseTheme(def) {
561
+ const light = {};
562
+ for (const name of SEMANTIC_COLOR_NAMES) light[name] = {
563
+ base: colorToPlain(def.light[name].base),
564
+ foreground: colorToPlain(def.light[name].foreground)
565
+ };
566
+ const dark = {};
567
+ for (const [name, value] of Object.entries(def.dark)) {
568
+ if (!value) continue;
569
+ dark[name] = {
570
+ ...value.base ? { base: colorToPlain(value.base) } : {},
571
+ ...value.foreground ? { foreground: colorToPlain(value.foreground) } : {}
572
+ };
573
+ }
574
+ return {
575
+ id: def.id,
576
+ name: def.name,
577
+ light,
578
+ dark,
579
+ fontSizes: { ...def.fontSizes },
580
+ fontFamilies: { ...def.fontFamilies },
581
+ spacing: def.spacing,
582
+ radii: { ...def.radii },
583
+ ...def.syncWithBrandColors ? { syncWithBrandColors: true } : {}
584
+ };
585
+ }
586
+ /**
587
+ * Deserialise a backend payload into a ThemeDefinition with Color objects.
588
+ * Accepts `Record<string, unknown>` because API data is untyped at the boundary.
589
+ * Falls back to default colors for any missing light-mode entries.
590
+ */
591
+ function deserialiseTheme(payload) {
592
+ const lightRaw = payload.light ?? {};
593
+ const darkRaw = payload.dark ?? {};
594
+ const defaults = getDefaultThemeDefinition();
595
+ const light = {};
596
+ for (const name of SEMANTIC_COLOR_NAMES) {
597
+ const entry = lightRaw[name];
598
+ if (entry) light[name] = {
599
+ base: plainToColor(entry.base),
600
+ foreground: plainToColor(entry.foreground)
601
+ };
602
+ else {
603
+ console.warn(`[theme] deserialiseTheme: missing light color "${name}", using default`);
604
+ light[name] = defaults.light[name];
605
+ }
606
+ }
607
+ const dark = {};
608
+ for (const [name, value] of Object.entries(darkRaw)) {
609
+ if (!value) continue;
610
+ dark[name] = {
611
+ ...value.base ? { base: plainToColor(value.base) } : {},
612
+ ...value.foreground ? { foreground: plainToColor(value.foreground) } : {}
613
+ };
614
+ }
615
+ return {
616
+ id: payload.id,
617
+ name: payload.name,
618
+ light,
619
+ dark,
620
+ fontSizes: payload.fontSizes ?? DEFAULT_FONT_SIZES,
621
+ fontFamilies: payload.fontFamilies ?? DEFAULT_FONT_FAMILIES,
622
+ spacing: payload.spacing ?? "0.25rem",
623
+ radii: payload.radii ?? DEFAULT_RADII,
624
+ ...payload.syncWithBrandColors === true ? { syncWithBrandColors: true } : {}
625
+ };
626
+ }
627
+ //#endregion
628
+ //#region ../../platform/theme-engine/src/transforms.ts
629
+ /**
630
+ * Check if a theme config uses the new structured format (has a `light` key
631
+ * that is an object) vs the legacy flat format.
632
+ */
633
+ function isNewThemeFormat(config) {
634
+ return config.light != null && typeof config.light === "object";
635
+ }
636
+ /**
637
+ * Convert a legacy flat config to a ThemeDefinition.
638
+ * Legacy format: { base: "#fff", text: "#000", primary: "oklch(0.6 0.2 250)", ... }
639
+ */
640
+ function legacyConfigToDefinition(id, name, config) {
641
+ const bg = parseColor(config.base ?? config.background ?? DEFAULT_COLORS.background);
642
+ const fg = parseColor(config.text ?? config.foreground ?? DEFAULT_COLORS.foreground);
643
+ const primary = parseColor(config.primary ?? DEFAULT_COLORS.primary);
644
+ const secondary = parseColor(config.secondary ?? DEFAULT_COLORS.secondary);
645
+ const accent = parseColor(config.accent ?? DEFAULT_COLORS.accent);
646
+ const muted = parseColor(config.muted ?? DEFAULT_COLORS.muted);
647
+ const destructive = parseColor(config.destructive ?? DEFAULT_COLORS.destructive);
648
+ const mutedFg = parseColor(config.mutedForeground ?? DEFAULT_COLORS.mutedForeground);
649
+ return {
650
+ id: String(id),
651
+ name,
652
+ light: {
653
+ background: {
654
+ base: bg,
655
+ foreground: fg
656
+ },
657
+ foreground: {
658
+ base: fg,
659
+ foreground: bg
660
+ },
661
+ primary: {
662
+ base: primary,
663
+ foreground: getForegroundColor(fg, primary)
664
+ },
665
+ secondary: {
666
+ base: secondary,
667
+ foreground: getForegroundColor(fg, secondary)
668
+ },
669
+ accent: {
670
+ base: accent,
671
+ foreground: getForegroundColor(fg, accent)
672
+ },
673
+ muted: {
674
+ base: muted,
675
+ foreground: mutedFg
676
+ },
677
+ destructive: {
678
+ base: destructive,
679
+ foreground: getForegroundColor(fg, destructive)
680
+ }
681
+ },
682
+ dark: {},
683
+ fontSizes: {
684
+ extraSmall: config.extraSmall ?? DEFAULT_FONT_SIZES.extraSmall,
685
+ small: config.small ?? DEFAULT_FONT_SIZES.small,
686
+ regular: config.regular ?? DEFAULT_FONT_SIZES.regular,
687
+ large: config.large ?? DEFAULT_FONT_SIZES.large,
688
+ extraLarge: config.extraLarge ?? DEFAULT_FONT_SIZES.extraLarge,
689
+ giant: config.giant ?? DEFAULT_FONT_SIZES.giant
690
+ },
691
+ fontFamilies: {
692
+ header: config.headerFont ?? DEFAULT_FONT_FAMILIES.header,
693
+ body: config.bodyFont ?? DEFAULT_FONT_FAMILIES.body
694
+ },
695
+ spacing: config.globalSpacing ?? "0.25rem",
696
+ radii: {
697
+ small: config.radiusSmall ?? DEFAULT_RADII.small,
698
+ medium: config.radiusMedium ?? DEFAULT_RADII.medium,
699
+ large: config.radiusLarge ?? DEFAULT_RADII.large,
700
+ extraLarge: config.radiusExtraLarge ?? DEFAULT_RADII.extraLarge
701
+ }
702
+ };
703
+ }
704
+ /**
705
+ * Build a ThemeDefinition from a single API theme object.
706
+ * Handles both new structured format and legacy flat format.
707
+ */
708
+ function buildThemeDefinition(theme) {
709
+ const config = theme.config ?? {};
710
+ if (isNewThemeFormat(config)) return deserialiseTheme({
711
+ ...config,
712
+ id: String(theme.id),
713
+ name: theme.name ?? "Untitled Theme"
714
+ });
715
+ return legacyConfigToDefinition(theme.id, theme.name ?? "Untitled Theme", config);
716
+ }
717
+ /**
718
+ * Transform raw API themes to ThemeDefinition[].
719
+ * Catches and logs errors per theme (graceful degradation).
720
+ */
721
+ function transformThemes(themes) {
722
+ return themes.flatMap((theme) => {
723
+ try {
724
+ return [buildThemeDefinition(theme)];
725
+ } catch (error) {
726
+ console.error(`[theme] Failed to build theme id=${theme.id}:`, error);
727
+ return [];
728
+ }
729
+ });
730
+ }
731
+ /**
732
+ * Get the active theme ID from a list of raw API themes.
733
+ * Falls back to the first theme if none is marked active.
734
+ */
735
+ function getActiveThemeId(themes) {
736
+ const active = themes.find((t) => t.active) ?? themes[0];
737
+ return active ? String(active.id) : void 0;
738
+ }
739
+ //#endregion
740
+ //#region ../../platform/theme-engine/src/theme-applicator.ts
741
+ const STYLE_PREFIX = "theme-style-";
742
+ const FONT_LINK_PREFIX = "theme-font-";
743
+ const SYSTEM_FONTS = new Set([
744
+ "sans-serif",
745
+ "serif",
746
+ "monospace",
747
+ "cursive",
748
+ "fantasy",
749
+ "system-ui",
750
+ "ui-sans-serif",
751
+ "ui-serif",
752
+ "ui-monospace"
753
+ ]);
754
+ /** Build a Google Fonts CSS2 URL for a given font family with all weights. */
755
+ function buildGoogleFontUrl(family) {
756
+ return `https://fonts.googleapis.com/css2?family=${encodeURIComponent(family).replace(/%20/g, "+")}:wght@100;200;300;400;500;600;700;800;900&display=swap`;
757
+ }
758
+ /** Check if a font family value needs to be loaded (i.e. is not a CSS var or system font). */
759
+ function isLoadableFont(value) {
760
+ if (!value) return false;
761
+ if (value.startsWith("var(")) return false;
762
+ return !SYSTEM_FONTS.has(value.toLowerCase());
763
+ }
764
+ /** Deterministic link element ID for a font family. */
765
+ function fontLinkId(family) {
766
+ return `${FONT_LINK_PREFIX}${family.replace(/\s+/g, "-").toLowerCase()}`;
767
+ }
768
+ /**
769
+ * Inject or update `<link>` elements for Google Fonts used by the theme.
770
+ * Removes links for fonts that are no longer referenced.
771
+ */
772
+ function loadThemeFonts(theme) {
773
+ if (typeof document === "undefined") return;
774
+ const fontsToLoad = /* @__PURE__ */ new Set();
775
+ for (const key of FONT_FAMILY_KEYS) {
776
+ const value = theme.fontFamilies[key];
777
+ if (isLoadableFont(value)) fontsToLoad.add(value);
778
+ }
779
+ document.querySelectorAll(`link[id^="${FONT_LINK_PREFIX}"]`).forEach((link) => {
780
+ const owners = link.getAttribute("data-font-theme-ids")?.split(",") ?? [];
781
+ if (!owners.includes(theme.id)) return;
782
+ const fontName = link.getAttribute("data-font-family");
783
+ if (fontName && !fontsToLoad.has(fontName)) {
784
+ const remaining = owners.filter((id) => id !== theme.id);
785
+ if (remaining.length === 0) link.remove();
786
+ else link.setAttribute("data-font-theme-ids", remaining.join(","));
787
+ }
788
+ });
789
+ for (const family of fontsToLoad) {
790
+ const id = fontLinkId(family);
791
+ const existing = document.getElementById(id);
792
+ if (existing) {
793
+ const owners = existing.getAttribute("data-font-theme-ids")?.split(",") ?? [];
794
+ if (!owners.includes(theme.id)) existing.setAttribute("data-font-theme-ids", [...owners, theme.id].join(","));
795
+ } else {
796
+ const link = document.createElement("link");
797
+ link.id = id;
798
+ link.rel = "stylesheet";
799
+ link.href = buildGoogleFontUrl(family);
800
+ link.setAttribute("data-font-family", family);
801
+ link.setAttribute("data-font-theme-ids", theme.id);
802
+ document.head.appendChild(link);
803
+ }
804
+ }
805
+ }
806
+ /** Remove all font `<link>` elements injected by the theme system. */
807
+ function removeAllFontLinks() {
808
+ if (typeof document === "undefined") return;
809
+ document.querySelectorAll(`link[id^="${FONT_LINK_PREFIX}"]`).forEach((el) => el.remove());
810
+ }
811
+ /**
812
+ * Inject or update a `<style>` element in `<head>` for the given theme.
813
+ * The element ID is deterministic (`theme-style-{themeId}`) so repeated calls
814
+ * for the same theme are idempotent — the existing element is updated in place.
815
+ * Also loads Google Fonts referenced by the theme's font families.
816
+ * No-op when `document` is unavailable (SSR).
817
+ */
818
+ function applyTheme(theme, options) {
819
+ if (typeof document === "undefined") return;
820
+ try {
821
+ loadThemeFonts(theme);
822
+ const styleId = `${STYLE_PREFIX}${theme.id}`;
823
+ let el = document.getElementById(styleId);
824
+ if (!el) {
825
+ el = document.createElement("style");
826
+ el.id = styleId;
827
+ document.head.appendChild(el);
828
+ }
829
+ el.textContent = generateThemeCSS(theme, options);
830
+ } catch (error) {
831
+ console.error(`[theme] applyTheme failed for "${theme.id}":`, error);
832
+ }
833
+ }
834
+ /** Remove an injected theme stylesheet and clean up font link ownership. No-op during SSR. */
835
+ function removeTheme(themeId) {
836
+ if (typeof document === "undefined") return;
837
+ document.getElementById(`${STYLE_PREFIX}${themeId}`)?.remove();
838
+ document.querySelectorAll(`link[id^="${FONT_LINK_PREFIX}"]`).forEach((link) => {
839
+ const remaining = (link.getAttribute("data-font-theme-ids")?.split(",") ?? []).filter((id) => id !== themeId);
840
+ if (remaining.length === 0) link.remove();
841
+ else link.setAttribute("data-font-theme-ids", remaining.join(","));
842
+ });
843
+ }
844
+ /** Remove all injected theme stylesheets and font links. No-op during SSR. */
845
+ function removeAllThemes() {
846
+ if (typeof document === "undefined") return;
847
+ document.querySelectorAll(`style[id^="${STYLE_PREFIX}"]`).forEach((el) => el.remove());
848
+ removeAllFontLinks();
849
+ }
850
+ //#endregion
851
+ Object.defineProperty(exports, "CountriesApiProvider", {
852
+ enumerable: true,
853
+ get: function() {
854
+ return CountriesApiProvider;
855
+ }
856
+ });
857
+ Object.defineProperty(exports, "DEFAULT_COLORS", {
858
+ enumerable: true,
859
+ get: function() {
860
+ return DEFAULT_COLORS;
861
+ }
862
+ });
863
+ Object.defineProperty(exports, "DEFAULT_FONT_FAMILIES", {
864
+ enumerable: true,
865
+ get: function() {
866
+ return DEFAULT_FONT_FAMILIES;
867
+ }
868
+ });
869
+ Object.defineProperty(exports, "DEFAULT_FONT_SIZES", {
870
+ enumerable: true,
871
+ get: function() {
872
+ return DEFAULT_FONT_SIZES;
873
+ }
874
+ });
875
+ Object.defineProperty(exports, "DEFAULT_RADII", {
876
+ enumerable: true,
877
+ get: function() {
878
+ return DEFAULT_RADII;
879
+ }
880
+ });
881
+ Object.defineProperty(exports, "DEFAULT_SPACING", {
882
+ enumerable: true,
883
+ get: function() {
884
+ return DEFAULT_SPACING;
885
+ }
886
+ });
887
+ Object.defineProperty(exports, "DEFAULT_THEME_ID", {
888
+ enumerable: true,
889
+ get: function() {
890
+ return DEFAULT_THEME_ID;
891
+ }
892
+ });
893
+ Object.defineProperty(exports, "DEFAULT_THEME_NAME", {
894
+ enumerable: true,
895
+ get: function() {
896
+ return DEFAULT_THEME_NAME;
897
+ }
898
+ });
899
+ Object.defineProperty(exports, "FONT_FAMILY_KEYS", {
900
+ enumerable: true,
901
+ get: function() {
902
+ return FONT_FAMILY_KEYS;
903
+ }
904
+ });
905
+ Object.defineProperty(exports, "FONT_SIZE_KEYS", {
906
+ enumerable: true,
907
+ get: function() {
908
+ return FONT_SIZE_KEYS;
909
+ }
910
+ });
911
+ Object.defineProperty(exports, "RADIUS_KEYS", {
912
+ enumerable: true,
913
+ get: function() {
914
+ return RADIUS_KEYS;
915
+ }
916
+ });
917
+ Object.defineProperty(exports, "SEMANTIC_COLOR_NAMES", {
918
+ enumerable: true,
919
+ get: function() {
920
+ return SEMANTIC_COLOR_NAMES;
921
+ }
922
+ });
923
+ Object.defineProperty(exports, "SHADE_STEPS", {
924
+ enumerable: true,
925
+ get: function() {
926
+ return SHADE_STEPS;
927
+ }
928
+ });
929
+ Object.defineProperty(exports, "applyTheme", {
930
+ enumerable: true,
931
+ get: function() {
932
+ return applyTheme;
933
+ }
934
+ });
935
+ Object.defineProperty(exports, "buildThemeDefinition", {
936
+ enumerable: true,
937
+ get: function() {
938
+ return buildThemeDefinition;
939
+ }
940
+ });
941
+ Object.defineProperty(exports, "deriveDarkVariant", {
942
+ enumerable: true,
943
+ get: function() {
944
+ return deriveDarkVariant;
945
+ }
946
+ });
947
+ Object.defineProperty(exports, "deserialiseTheme", {
948
+ enumerable: true,
949
+ get: function() {
950
+ return deserialiseTheme;
951
+ }
952
+ });
953
+ Object.defineProperty(exports, "generateShades", {
954
+ enumerable: true,
955
+ get: function() {
956
+ return generateShades;
957
+ }
958
+ });
959
+ Object.defineProperty(exports, "generateThemeCSS", {
960
+ enumerable: true,
961
+ get: function() {
962
+ return generateThemeCSS;
963
+ }
964
+ });
965
+ Object.defineProperty(exports, "getActiveThemeId", {
966
+ enumerable: true,
967
+ get: function() {
968
+ return getActiveThemeId;
969
+ }
970
+ });
971
+ Object.defineProperty(exports, "getContrastingTextColor", {
972
+ enumerable: true,
973
+ get: function() {
974
+ return getContrastingTextColor;
975
+ }
976
+ });
977
+ Object.defineProperty(exports, "getDefaultThemeDefinition", {
978
+ enumerable: true,
979
+ get: function() {
980
+ return getDefaultThemeDefinition;
981
+ }
982
+ });
983
+ Object.defineProperty(exports, "getForegroundColor", {
984
+ enumerable: true,
985
+ get: function() {
986
+ return getForegroundColor;
987
+ }
988
+ });
989
+ Object.defineProperty(exports, "mergeDarkOverrides", {
990
+ enumerable: true,
991
+ get: function() {
992
+ return mergeDarkOverrides;
993
+ }
994
+ });
995
+ Object.defineProperty(exports, "parseColor", {
996
+ enumerable: true,
997
+ get: function() {
998
+ return parseColor;
999
+ }
1000
+ });
1001
+ Object.defineProperty(exports, "removeAllThemes", {
1002
+ enumerable: true,
1003
+ get: function() {
1004
+ return removeAllThemes;
1005
+ }
1006
+ });
1007
+ Object.defineProperty(exports, "removeTheme", {
1008
+ enumerable: true,
1009
+ get: function() {
1010
+ return removeTheme;
1011
+ }
1012
+ });
1013
+ Object.defineProperty(exports, "resolveTheme", {
1014
+ enumerable: true,
1015
+ get: function() {
1016
+ return resolveTheme;
1017
+ }
1018
+ });
1019
+ Object.defineProperty(exports, "serialiseTheme", {
1020
+ enumerable: true,
1021
+ get: function() {
1022
+ return serialiseTheme;
1023
+ }
1024
+ });
1025
+ Object.defineProperty(exports, "transformThemes", {
1026
+ enumerable: true,
1027
+ get: function() {
1028
+ return transformThemes;
1029
+ }
1030
+ });
1031
+ Object.defineProperty(exports, "useCountriesApi", {
1032
+ enumerable: true,
1033
+ get: function() {
1034
+ return useCountriesApi;
1035
+ }
1036
+ });
1037
+
1038
+ //# sourceMappingURL=src-DvVPCD01.cjs.map