@trycourier/courier-ui-inbox 1.0.7-beta → 1.0.8-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/dist/components/courier-inbox-header-title.d.ts +12 -9
- package/dist/components/courier-inbox-header.d.ts +11 -8
- package/dist/components/courier-inbox-list-item-menu.d.ts +7 -6
- package/dist/components/courier-inbox-list-item.d.ts +11 -12
- package/dist/components/courier-inbox-list.d.ts +11 -6
- package/dist/components/courier-inbox-menu-button.d.ts +10 -5
- package/dist/components/courier-inbox-option-menu-item.d.ts +9 -9
- package/dist/components/courier-inbox-option-menu.d.ts +11 -9
- package/dist/components/courier-inbox-pagination-list-item.d.ts +12 -8
- package/dist/components/courier-inbox-popup-menu.d.ts +10 -8
- package/dist/components/courier-inbox-skeleton-list-item.d.ts +10 -5
- package/dist/components/courier-inbox-skeleton-list.d.ts +7 -3
- package/dist/components/courier-inbox.d.ts +9 -8
- package/dist/components/courier-unread-count-badge.d.ts +10 -6
- package/dist/datastore/datastore.d.ts +1 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1019 -808
- package/dist/index.mjs.map +1 -1
- package/dist/types/courier-inbox-theme.d.ts +52 -52
- package/dist/types/snapshots.d.ts +2 -2
- package/dist/utils/utils.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { SystemThemeMode } from '@trycourier/courier-ui-core';
|
|
2
|
-
export type
|
|
2
|
+
export type CourierInboxFontTheme = {
|
|
3
3
|
family?: string;
|
|
4
4
|
weight?: string;
|
|
5
5
|
size?: string;
|
|
6
6
|
color?: string;
|
|
7
7
|
};
|
|
8
|
-
export type
|
|
8
|
+
export type CourierInboxIconTheme = {
|
|
9
9
|
color?: string;
|
|
10
10
|
svg?: string;
|
|
11
11
|
};
|
|
12
|
-
export type
|
|
13
|
-
icon?:
|
|
12
|
+
export type CourierInboxFilterItemTheme = {
|
|
13
|
+
icon?: CourierInboxIconTheme;
|
|
14
14
|
text?: string;
|
|
15
15
|
};
|
|
16
|
-
export type
|
|
17
|
-
font?:
|
|
16
|
+
export type CourierInboxUnreadIndicatorTheme = {
|
|
17
|
+
font?: CourierInboxFontTheme;
|
|
18
18
|
backgroundColor?: string;
|
|
19
19
|
borderRadius?: string;
|
|
20
20
|
};
|
|
21
|
-
export type
|
|
22
|
-
icon?:
|
|
21
|
+
export type CourierInboxIconButtonTheme = {
|
|
22
|
+
icon?: CourierInboxIconTheme;
|
|
23
23
|
backgroundColor?: string;
|
|
24
24
|
hoverBackgroundColor?: string;
|
|
25
25
|
activeBackgroundColor?: string;
|
|
26
26
|
};
|
|
27
|
-
export type
|
|
28
|
-
font?:
|
|
27
|
+
export type CourierInboxButtonTheme = {
|
|
28
|
+
font?: CourierInboxFontTheme;
|
|
29
29
|
text?: string;
|
|
30
30
|
shadow?: string;
|
|
31
31
|
border?: string;
|
|
@@ -34,31 +34,31 @@ export type CourierInboxButton = {
|
|
|
34
34
|
hoverBackgroundColor?: string;
|
|
35
35
|
activeBackgroundColor?: string;
|
|
36
36
|
};
|
|
37
|
-
export type
|
|
38
|
-
unreadIndicator?:
|
|
37
|
+
export type CourierInboxMenuButtonTheme = CourierInboxIconButtonTheme & {
|
|
38
|
+
unreadIndicator?: CourierInboxUnreadIndicatorTheme;
|
|
39
39
|
};
|
|
40
|
-
export type
|
|
40
|
+
export type CourierInboxPopupTheme = {
|
|
41
41
|
backgroundColor?: string;
|
|
42
42
|
border?: string;
|
|
43
43
|
borderRadius?: string;
|
|
44
44
|
shadow?: string;
|
|
45
45
|
list?: {
|
|
46
|
-
font?:
|
|
47
|
-
selectionIcon?:
|
|
46
|
+
font?: CourierInboxFontTheme;
|
|
47
|
+
selectionIcon?: CourierInboxIconTheme;
|
|
48
48
|
hoverBackgroundColor?: string;
|
|
49
49
|
activeBackgroundColor?: string;
|
|
50
50
|
divider?: string;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
-
export type
|
|
53
|
+
export type CourierInboxListItemTheme = {
|
|
54
54
|
unreadIndicatorColor?: string;
|
|
55
55
|
backgroundColor?: string;
|
|
56
56
|
hoverBackgroundColor?: string;
|
|
57
57
|
activeBackgroundColor?: string;
|
|
58
|
-
title?:
|
|
59
|
-
subtitle?:
|
|
60
|
-
time?:
|
|
61
|
-
archiveIcon?:
|
|
58
|
+
title?: CourierInboxFontTheme;
|
|
59
|
+
subtitle?: CourierInboxFontTheme;
|
|
60
|
+
time?: CourierInboxFontTheme;
|
|
61
|
+
archiveIcon?: CourierInboxIconTheme;
|
|
62
62
|
divider?: string;
|
|
63
63
|
actions?: {
|
|
64
64
|
backgroundColor?: string;
|
|
@@ -67,7 +67,7 @@ export type CourierInboxListItem = {
|
|
|
67
67
|
border?: string;
|
|
68
68
|
borderRadius?: string;
|
|
69
69
|
shadow?: string;
|
|
70
|
-
font?:
|
|
70
|
+
font?: CourierInboxFontTheme;
|
|
71
71
|
};
|
|
72
72
|
menu?: {
|
|
73
73
|
enabled?: boolean;
|
|
@@ -83,14 +83,14 @@ export type CourierInboxListItem = {
|
|
|
83
83
|
hoverBackgroundColor?: string;
|
|
84
84
|
activeBackgroundColor?: string;
|
|
85
85
|
borderRadius?: string;
|
|
86
|
-
read?:
|
|
87
|
-
unread?:
|
|
88
|
-
archive?:
|
|
89
|
-
unarchive?:
|
|
86
|
+
read?: CourierInboxIconTheme;
|
|
87
|
+
unread?: CourierInboxIconTheme;
|
|
88
|
+
archive?: CourierInboxIconTheme;
|
|
89
|
+
unarchive?: CourierInboxIconTheme;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
-
export type
|
|
93
|
+
export type CourierInboxSkeletonLoadingStateTheme = {
|
|
94
94
|
animation?: {
|
|
95
95
|
barColor?: string;
|
|
96
96
|
barHeight?: string;
|
|
@@ -99,31 +99,31 @@ export type CourierInboxSkeletonLoadingState = {
|
|
|
99
99
|
};
|
|
100
100
|
divider?: string;
|
|
101
101
|
};
|
|
102
|
-
export type
|
|
102
|
+
export type CourierInboxInfoStateTheme = {
|
|
103
103
|
title?: {
|
|
104
|
-
font?:
|
|
104
|
+
font?: CourierInboxFontTheme;
|
|
105
105
|
text?: string;
|
|
106
106
|
};
|
|
107
|
-
button?:
|
|
107
|
+
button?: CourierInboxButtonTheme;
|
|
108
108
|
};
|
|
109
|
-
export type
|
|
110
|
-
icon?:
|
|
109
|
+
export type CourierMenuItemTheme = {
|
|
110
|
+
icon?: CourierInboxIconTheme;
|
|
111
111
|
text?: string;
|
|
112
112
|
};
|
|
113
|
-
export type
|
|
114
|
-
button?:
|
|
115
|
-
inbox?:
|
|
116
|
-
archive?:
|
|
113
|
+
export type CourierFilterMenuTheme = {
|
|
114
|
+
button?: CourierInboxIconButtonTheme;
|
|
115
|
+
inbox?: CourierMenuItemTheme;
|
|
116
|
+
archive?: CourierMenuItemTheme;
|
|
117
117
|
};
|
|
118
|
-
export type
|
|
119
|
-
button?:
|
|
120
|
-
markAllRead?:
|
|
121
|
-
archiveAll?:
|
|
122
|
-
archiveRead?:
|
|
118
|
+
export type CourierActionMenuTheme = {
|
|
119
|
+
button?: CourierInboxIconButtonTheme;
|
|
120
|
+
markAllRead?: CourierMenuItemTheme;
|
|
121
|
+
archiveAll?: CourierMenuItemTheme;
|
|
122
|
+
archiveRead?: CourierMenuItemTheme;
|
|
123
123
|
};
|
|
124
124
|
export type CourierInboxTheme = {
|
|
125
125
|
popup?: {
|
|
126
|
-
button?:
|
|
126
|
+
button?: CourierInboxMenuButtonTheme;
|
|
127
127
|
window?: {
|
|
128
128
|
backgroundColor?: string;
|
|
129
129
|
borderRadius?: string;
|
|
@@ -136,24 +136,24 @@ export type CourierInboxTheme = {
|
|
|
136
136
|
backgroundColor?: string;
|
|
137
137
|
shadow?: string;
|
|
138
138
|
filters?: {
|
|
139
|
-
font?:
|
|
140
|
-
inbox?:
|
|
141
|
-
archive?:
|
|
142
|
-
unreadIndicator?:
|
|
139
|
+
font?: CourierInboxFontTheme;
|
|
140
|
+
inbox?: CourierInboxFilterItemTheme;
|
|
141
|
+
archive?: CourierInboxFilterItemTheme;
|
|
142
|
+
unreadIndicator?: CourierInboxUnreadIndicatorTheme;
|
|
143
143
|
};
|
|
144
144
|
menus?: {
|
|
145
|
-
popup?:
|
|
146
|
-
filters?:
|
|
147
|
-
actions?:
|
|
145
|
+
popup?: CourierInboxPopupTheme;
|
|
146
|
+
filters?: CourierFilterMenuTheme;
|
|
147
|
+
actions?: CourierActionMenuTheme;
|
|
148
148
|
};
|
|
149
149
|
};
|
|
150
150
|
list?: {
|
|
151
151
|
backgroundColor?: string;
|
|
152
|
-
item?:
|
|
152
|
+
item?: CourierInboxListItemTheme;
|
|
153
153
|
};
|
|
154
|
-
loading?:
|
|
155
|
-
empty?:
|
|
156
|
-
error?:
|
|
154
|
+
loading?: CourierInboxSkeletonLoadingStateTheme;
|
|
155
|
+
empty?: CourierInboxInfoStateTheme;
|
|
156
|
+
error?: CourierInboxInfoStateTheme;
|
|
157
157
|
};
|
|
158
158
|
};
|
|
159
159
|
export declare const defaultLightTheme: CourierInboxTheme;
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -17,5 +17,5 @@ export declare function copyInboxAction(action: InboxAction): InboxAction;
|
|
|
17
17
|
* @param dataSet - The inbox data set to copy
|
|
18
18
|
* @returns A copy of the inbox data set
|
|
19
19
|
*/
|
|
20
|
-
export declare function copyInboxDataSet(dataSet
|
|
20
|
+
export declare function copyInboxDataSet(dataSet?: InboxDataSet): InboxDataSet | undefined;
|
|
21
21
|
export declare function getMessageTime(message: InboxMessage): string;
|
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.8-beta",
|
|
4
4
|
"description": "Inbox components for the Courier web UI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,8 +26,8 @@
|
|
|
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.4-beta",
|
|
30
|
+
"@trycourier/courier-ui-core": "1.0.7-beta"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@trycourier/courier-js": "file:../@trycourier/courier-js",
|