@trycourier/courier-ui-inbox 1.0.9-beta → 1.0.12-beta
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/README.md +4 -10
- package/dist/components/courier-inbox-list-item.d.ts +4 -1
- package/dist/components/courier-inbox-list.d.ts +11 -0
- package/dist/components/courier-inbox-menu-button.d.ts +2 -2
- package/dist/components/courier-inbox-popup-menu.d.ts +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +231 -151
- package/dist/index.mjs.map +1 -1
- package/dist/types/courier-inbox-theme-manager.d.ts +1 -0
- package/dist/types/courier-inbox-theme.d.ts +10 -3
- package/package.json +4 -5
|
@@ -37,6 +37,7 @@ export declare class CourierInboxThemeManager {
|
|
|
37
37
|
* Set the mode and notify all listeners
|
|
38
38
|
*/
|
|
39
39
|
setMode(mode: CourierComponentThemeMode): void;
|
|
40
|
+
get mode(): CourierComponentThemeMode;
|
|
40
41
|
/**
|
|
41
42
|
* Subscribe to theme changes
|
|
42
43
|
* @param {Function} callback - Function to run when the theme changes
|
|
@@ -13,10 +13,17 @@ export type CourierInboxFilterItemTheme = {
|
|
|
13
13
|
icon?: CourierInboxIconTheme;
|
|
14
14
|
text?: string;
|
|
15
15
|
};
|
|
16
|
-
export type
|
|
16
|
+
export type CourierInboxUnreadDotIndicatorTheme = {
|
|
17
|
+
backgroundColor?: string;
|
|
18
|
+
borderRadius?: string;
|
|
19
|
+
height?: string;
|
|
20
|
+
width?: string;
|
|
21
|
+
};
|
|
22
|
+
export type CourierInboxUnreadCountIndicatorTheme = {
|
|
17
23
|
font?: CourierInboxFontTheme;
|
|
18
24
|
backgroundColor?: string;
|
|
19
25
|
borderRadius?: string;
|
|
26
|
+
padding?: string;
|
|
20
27
|
};
|
|
21
28
|
export type CourierInboxIconButtonTheme = {
|
|
22
29
|
icon?: CourierInboxIconTheme;
|
|
@@ -35,7 +42,7 @@ export type CourierInboxButtonTheme = {
|
|
|
35
42
|
activeBackgroundColor?: string;
|
|
36
43
|
};
|
|
37
44
|
export type CourierInboxMenuButtonTheme = CourierInboxIconButtonTheme & {
|
|
38
|
-
|
|
45
|
+
unreadDotIndicator?: CourierInboxUnreadDotIndicatorTheme;
|
|
39
46
|
};
|
|
40
47
|
export type CourierInboxPopupTheme = {
|
|
41
48
|
backgroundColor?: string;
|
|
@@ -139,7 +146,7 @@ export type CourierInboxTheme = {
|
|
|
139
146
|
font?: CourierInboxFontTheme;
|
|
140
147
|
inbox?: CourierInboxFilterItemTheme;
|
|
141
148
|
archive?: CourierInboxFilterItemTheme;
|
|
142
|
-
unreadIndicator?:
|
|
149
|
+
unreadIndicator?: CourierInboxUnreadCountIndicatorTheme;
|
|
143
150
|
};
|
|
144
151
|
menus?: {
|
|
145
152
|
popup?: CourierInboxPopupTheme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trycourier/courier-ui-inbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12-beta",
|
|
4
4
|
"description": "Inbox components for the Courier web UI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,12 +26,11 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@trycourier/courier-js": "2.0.
|
|
30
|
-
"@trycourier/courier-ui-core": "1.0.
|
|
29
|
+
"@trycourier/courier-js": "2.0.8-beta",
|
|
30
|
+
"@trycourier/courier-ui-core": "1.0.11-beta"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@trycourier/courier-ui-core": "file:../@trycourier/courier-ui-core",
|
|
33
|
+
"@types/jest": "29.5.14",
|
|
35
34
|
"jest": "^29.7.0",
|
|
36
35
|
"vite": "6.2.6",
|
|
37
36
|
"vite-plugin-dts": "4.5.3"
|