@xsolla/xui-core 0.190.0 → 0.191.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.d.mts +11 -1
- package/index.d.ts +11 -1
- package/index.js +38 -24
- package/index.js.map +1 -1
- package/index.mjs +38 -24
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -7901,7 +7901,7 @@ declare const themeConfig: (mode?: ThemeMode, productContext?: ProductContext) =
|
|
|
7901
7901
|
iconWrapperSize: number;
|
|
7902
7902
|
radius: 8;
|
|
7903
7903
|
};
|
|
7904
|
-
notificationPanel: () => {
|
|
7904
|
+
notificationPanel: (device?: "desktop" | "mobile") => {
|
|
7905
7905
|
minHeight: number;
|
|
7906
7906
|
iconFrameWidth: number;
|
|
7907
7907
|
iconSize: number;
|
|
@@ -7912,6 +7912,7 @@ declare const themeConfig: (mode?: ThemeMode, productContext?: ProductContext) =
|
|
|
7912
7912
|
contentGap: number;
|
|
7913
7913
|
buttonsGap: number;
|
|
7914
7914
|
closeButtonSize: number;
|
|
7915
|
+
notificationCloseIconSize: number;
|
|
7915
7916
|
titleFontSize: number;
|
|
7916
7917
|
titleLineHeight: number;
|
|
7917
7918
|
descriptionFontSize: number;
|
|
@@ -7923,6 +7924,15 @@ declare const themeConfig: (mode?: ThemeMode, productContext?: ProductContext) =
|
|
|
7923
7924
|
announcementButtonsGap: number;
|
|
7924
7925
|
announcementCloseIconSize: number;
|
|
7925
7926
|
announcementBlurRadius: number;
|
|
7927
|
+
mobileIconColumnPaddingVertical: number;
|
|
7928
|
+
mobileIconColumnPaddingLeft: number;
|
|
7929
|
+
mobileIconSize: number;
|
|
7930
|
+
mobileBodyPaddingHorizontal: number;
|
|
7931
|
+
mobileBodyPaddingVertical: number;
|
|
7932
|
+
mobileBodyContentGap: number;
|
|
7933
|
+
mobileNotificationActionButtonOffsetLeft: number;
|
|
7934
|
+
mobileCloseColumnPaddingVertical: number;
|
|
7935
|
+
mobileCloseColumnPaddingRight: number;
|
|
7926
7936
|
};
|
|
7927
7937
|
progress: (size: "xl" | "lg" | "md" | "sm" | "xs" | "xxs" | "l" | "m" | "s") => {
|
|
7928
7938
|
height: number;
|
package/index.d.ts
CHANGED
|
@@ -7901,7 +7901,7 @@ declare const themeConfig: (mode?: ThemeMode, productContext?: ProductContext) =
|
|
|
7901
7901
|
iconWrapperSize: number;
|
|
7902
7902
|
radius: 8;
|
|
7903
7903
|
};
|
|
7904
|
-
notificationPanel: () => {
|
|
7904
|
+
notificationPanel: (device?: "desktop" | "mobile") => {
|
|
7905
7905
|
minHeight: number;
|
|
7906
7906
|
iconFrameWidth: number;
|
|
7907
7907
|
iconSize: number;
|
|
@@ -7912,6 +7912,7 @@ declare const themeConfig: (mode?: ThemeMode, productContext?: ProductContext) =
|
|
|
7912
7912
|
contentGap: number;
|
|
7913
7913
|
buttonsGap: number;
|
|
7914
7914
|
closeButtonSize: number;
|
|
7915
|
+
notificationCloseIconSize: number;
|
|
7915
7916
|
titleFontSize: number;
|
|
7916
7917
|
titleLineHeight: number;
|
|
7917
7918
|
descriptionFontSize: number;
|
|
@@ -7923,6 +7924,15 @@ declare const themeConfig: (mode?: ThemeMode, productContext?: ProductContext) =
|
|
|
7923
7924
|
announcementButtonsGap: number;
|
|
7924
7925
|
announcementCloseIconSize: number;
|
|
7925
7926
|
announcementBlurRadius: number;
|
|
7927
|
+
mobileIconColumnPaddingVertical: number;
|
|
7928
|
+
mobileIconColumnPaddingLeft: number;
|
|
7929
|
+
mobileIconSize: number;
|
|
7930
|
+
mobileBodyPaddingHorizontal: number;
|
|
7931
|
+
mobileBodyPaddingVertical: number;
|
|
7932
|
+
mobileBodyContentGap: number;
|
|
7933
|
+
mobileNotificationActionButtonOffsetLeft: number;
|
|
7934
|
+
mobileCloseColumnPaddingVertical: number;
|
|
7935
|
+
mobileCloseColumnPaddingRight: number;
|
|
7926
7936
|
};
|
|
7927
7937
|
progress: (size: "xl" | "lg" | "md" | "sm" | "xs" | "xxs" | "l" | "m" | "s") => {
|
|
7928
7938
|
height: number;
|
package/index.js
CHANGED
|
@@ -4470,30 +4470,44 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
4470
4470
|
};
|
|
4471
4471
|
return configs[type];
|
|
4472
4472
|
},
|
|
4473
|
-
notificationPanel: () =>
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4473
|
+
notificationPanel: (device = "desktop") => {
|
|
4474
|
+
const desktop = {
|
|
4475
|
+
minHeight: 66,
|
|
4476
|
+
iconFrameWidth: 54,
|
|
4477
|
+
iconSize: 24,
|
|
4478
|
+
borderRadius: radiusScale["100"],
|
|
4479
|
+
bodyPaddingHorizontal: 16,
|
|
4480
|
+
bodyPaddingVertical: 12,
|
|
4481
|
+
textGap: 2,
|
|
4482
|
+
contentGap: 24,
|
|
4483
|
+
buttonsGap: 8,
|
|
4484
|
+
closeButtonSize: 32,
|
|
4485
|
+
notificationCloseIconSize: 18,
|
|
4486
|
+
titleFontSize: 16,
|
|
4487
|
+
titleLineHeight: 20,
|
|
4488
|
+
descriptionFontSize: 14,
|
|
4489
|
+
descriptionLineHeight: 20,
|
|
4490
|
+
// Announcement variant: slim, single-line banner
|
|
4491
|
+
announcementPadding: 8,
|
|
4492
|
+
announcementGap: 16,
|
|
4493
|
+
announcementContentGap: 8,
|
|
4494
|
+
announcementIconSize: 16,
|
|
4495
|
+
announcementButtonsGap: 20,
|
|
4496
|
+
announcementCloseIconSize: 16,
|
|
4497
|
+
announcementBlurRadius: 4,
|
|
4498
|
+
// Mobile notification: icon | content column | close column
|
|
4499
|
+
mobileIconColumnPaddingVertical: 12,
|
|
4500
|
+
mobileIconColumnPaddingLeft: 8,
|
|
4501
|
+
mobileIconSize: 24,
|
|
4502
|
+
mobileBodyPaddingHorizontal: 16,
|
|
4503
|
+
mobileBodyPaddingVertical: 12,
|
|
4504
|
+
mobileBodyContentGap: 24,
|
|
4505
|
+
mobileNotificationActionButtonOffsetLeft: -4,
|
|
4506
|
+
mobileCloseColumnPaddingVertical: 12,
|
|
4507
|
+
mobileCloseColumnPaddingRight: 12
|
|
4508
|
+
};
|
|
4509
|
+
return desktop;
|
|
4510
|
+
},
|
|
4497
4511
|
progress: (size) => {
|
|
4498
4512
|
const configs = {
|
|
4499
4513
|
xl: { height: 10, labelSize: 16, helperSize: 14, gap: 10 },
|