@xsolla/xui-core 0.126.0 → 0.127.0
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/index.js +11 -0
- package/index.js.map +1 -1
- package/index.mjs +11 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2262,7 +2262,18 @@ FontLoader.displayName = "FontLoader";
|
|
|
2262
2262
|
|
|
2263
2263
|
// src/index.tsx
|
|
2264
2264
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
2265
|
+
var DEPRECATED_MODES = /* @__PURE__ */ new Set([
|
|
2266
|
+
"xsolla-dark",
|
|
2267
|
+
"xsolla-light",
|
|
2268
|
+
"xsollaDark",
|
|
2269
|
+
"xsollaLight"
|
|
2270
|
+
]);
|
|
2265
2271
|
var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
2272
|
+
if (DEPRECATED_MODES.has(mode)) {
|
|
2273
|
+
console.warn(
|
|
2274
|
+
`Theme mode "${mode}" is deprecated and will be removed in the next major update. Please migrate to "dark" or "light".`
|
|
2275
|
+
);
|
|
2276
|
+
}
|
|
2266
2277
|
const contextFonts = getFonts(productContext);
|
|
2267
2278
|
return {
|
|
2268
2279
|
colors: colors[mode],
|