qt-ui-kit 1.0.22 → 1.0.25
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/index.d.mts +93 -7
- package/dist/index.d.ts +93 -7
- package/dist/index.js +144 -134
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +115 -106
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +6 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -39,14 +39,15 @@ declare enum ColorVariants {
|
|
|
39
39
|
declare enum EventType {
|
|
40
40
|
EMAIL = "email",
|
|
41
41
|
MESSAGE = "message",
|
|
42
|
-
TICKET = "ticket"
|
|
42
|
+
TICKET = "ticket",
|
|
43
|
+
CALENDAR = "calendar"
|
|
43
44
|
}
|
|
44
45
|
declare enum UrgencyLevel {
|
|
45
46
|
HIGH = "high",
|
|
46
47
|
MEDIUM = "medium",
|
|
47
48
|
LOW = "low"
|
|
48
49
|
}
|
|
49
|
-
type
|
|
50
|
+
type EventGroup = {
|
|
50
51
|
urgency?: UrgencyLevel;
|
|
51
52
|
urgencyText?: string;
|
|
52
53
|
summary?: string;
|
|
@@ -82,7 +83,7 @@ declare function NavBar({}: Props$4): react_jsx_runtime.JSX.Element;
|
|
|
82
83
|
|
|
83
84
|
type Props$3 = {
|
|
84
85
|
eventType?: EventType;
|
|
85
|
-
eventData?:
|
|
86
|
+
eventData?: EventGroup[];
|
|
86
87
|
groupUrgency?: UrgencyLevel;
|
|
87
88
|
groupUrgencyText?: string;
|
|
88
89
|
groupSummary?: string;
|
|
@@ -102,9 +103,9 @@ type Props$2 = {
|
|
|
102
103
|
declare function EmailBody({ subjectLine, to, date, from, CC, BCC, attachments, body, }: Props$2): react_jsx_runtime.JSX.Element;
|
|
103
104
|
|
|
104
105
|
type Props$1 = {
|
|
105
|
-
messages?: MessageData[];
|
|
106
|
+
messages?: MessageData$1[];
|
|
106
107
|
};
|
|
107
|
-
type MessageData = {
|
|
108
|
+
type MessageData$1 = {
|
|
108
109
|
name?: string;
|
|
109
110
|
timeStamp?: string;
|
|
110
111
|
body?: string;
|
|
@@ -137,6 +138,91 @@ declare function SearchBar(): react_jsx_runtime.JSX.Element;
|
|
|
137
138
|
|
|
138
139
|
type IconSize = 16 | 20 | 24 | 36;
|
|
139
140
|
|
|
140
|
-
declare
|
|
141
|
+
declare enum EventState {
|
|
142
|
+
NEW = "new",
|
|
143
|
+
READ = "read"
|
|
144
|
+
}
|
|
145
|
+
interface ExternalPerson {
|
|
146
|
+
firstName: string;
|
|
147
|
+
middleName: string;
|
|
148
|
+
lastName: string;
|
|
149
|
+
externalID: string;
|
|
150
|
+
}
|
|
151
|
+
interface Attachment {
|
|
152
|
+
fileName: string;
|
|
153
|
+
link: string;
|
|
154
|
+
}
|
|
155
|
+
interface EmailData {
|
|
156
|
+
subjectLine: string;
|
|
157
|
+
from: ExternalPerson;
|
|
158
|
+
to: ExternalPerson[];
|
|
159
|
+
cc: ExternalPerson[];
|
|
160
|
+
bcc: ExternalPerson[];
|
|
161
|
+
attachments: Attachment[];
|
|
162
|
+
body: string;
|
|
163
|
+
}
|
|
164
|
+
interface MessageData {
|
|
165
|
+
messageGroup: string;
|
|
166
|
+
from: ExternalPerson;
|
|
167
|
+
to: ExternalPerson[];
|
|
168
|
+
reactions: string[];
|
|
169
|
+
attachments: Attachment[];
|
|
170
|
+
body: string;
|
|
171
|
+
}
|
|
172
|
+
interface TicketData {
|
|
173
|
+
title: string;
|
|
174
|
+
projectName: string;
|
|
175
|
+
taskName: string;
|
|
176
|
+
attachments: Attachment[];
|
|
177
|
+
dueDate: string;
|
|
178
|
+
startDate: string;
|
|
179
|
+
assignees: ExternalPerson[];
|
|
180
|
+
reporter: ExternalPerson;
|
|
181
|
+
teamName: string;
|
|
182
|
+
location: string;
|
|
183
|
+
relatedDetails: string[];
|
|
184
|
+
body: string;
|
|
185
|
+
}
|
|
186
|
+
interface CalendarData {
|
|
187
|
+
from: ExternalPerson;
|
|
188
|
+
to: ExternalPerson[];
|
|
189
|
+
meetingLink: string;
|
|
190
|
+
location: string;
|
|
191
|
+
body: string;
|
|
192
|
+
}
|
|
193
|
+
type EventData = EmailData | MessageData | TicketData | CalendarData;
|
|
194
|
+
interface EventSummaryParts {
|
|
195
|
+
deadline: string;
|
|
196
|
+
"potential impact": string;
|
|
197
|
+
"potential next steps": string;
|
|
198
|
+
risk: string;
|
|
199
|
+
}
|
|
200
|
+
type BaseEventFields = {
|
|
201
|
+
eventID: string;
|
|
202
|
+
sourceSystemAssignedID: string;
|
|
203
|
+
groupingID: string;
|
|
204
|
+
service: IntegrationService;
|
|
205
|
+
state: EventState;
|
|
206
|
+
timestamp: string;
|
|
207
|
+
sourceUserID: string;
|
|
208
|
+
eventCategory: string;
|
|
209
|
+
eventSummaryParts: EventSummaryParts;
|
|
210
|
+
tags: string[];
|
|
211
|
+
link: string;
|
|
212
|
+
};
|
|
213
|
+
type EventDataMap = {
|
|
214
|
+
[EventType.EMAIL]: EmailData;
|
|
215
|
+
[EventType.MESSAGE]: MessageData;
|
|
216
|
+
[EventType.TICKET]: TicketData;
|
|
217
|
+
[EventType.CALENDAR]: CalendarData;
|
|
218
|
+
};
|
|
219
|
+
type Event = {
|
|
220
|
+
[K in keyof EventDataMap]: BaseEventFields & {
|
|
221
|
+
eventType: K;
|
|
222
|
+
eventData: EventDataMap[K];
|
|
223
|
+
};
|
|
224
|
+
}[keyof EventDataMap];
|
|
225
|
+
|
|
226
|
+
declare const fakeMessages: MessageData$1[];
|
|
141
227
|
|
|
142
|
-
export { BaseIconName, ChatBody, ColorVariants, EmailBody, EventCard, type EventData, EventType, NavBar as FilterBar, type IconSize, IntegrationService, NavBar, PreviewCard, SearchBar, TicketBody, type TicketComment, UrgencyLevel, fakeMessages };
|
|
228
|
+
export { type Attachment, BaseIconName, type CalendarData, ChatBody, ColorVariants, EmailBody, type EmailData, type Event, EventCard, type EventData, type EventGroup, EventState, type EventSummaryParts, EventType, type ExternalPerson, NavBar as FilterBar, type IconSize, IntegrationService, type MessageData, NavBar, PreviewCard, SearchBar, TicketBody, type TicketComment, type TicketData, UrgencyLevel, fakeMessages };
|
package/dist/index.d.ts
CHANGED
|
@@ -39,14 +39,15 @@ declare enum ColorVariants {
|
|
|
39
39
|
declare enum EventType {
|
|
40
40
|
EMAIL = "email",
|
|
41
41
|
MESSAGE = "message",
|
|
42
|
-
TICKET = "ticket"
|
|
42
|
+
TICKET = "ticket",
|
|
43
|
+
CALENDAR = "calendar"
|
|
43
44
|
}
|
|
44
45
|
declare enum UrgencyLevel {
|
|
45
46
|
HIGH = "high",
|
|
46
47
|
MEDIUM = "medium",
|
|
47
48
|
LOW = "low"
|
|
48
49
|
}
|
|
49
|
-
type
|
|
50
|
+
type EventGroup = {
|
|
50
51
|
urgency?: UrgencyLevel;
|
|
51
52
|
urgencyText?: string;
|
|
52
53
|
summary?: string;
|
|
@@ -82,7 +83,7 @@ declare function NavBar({}: Props$4): react_jsx_runtime.JSX.Element;
|
|
|
82
83
|
|
|
83
84
|
type Props$3 = {
|
|
84
85
|
eventType?: EventType;
|
|
85
|
-
eventData?:
|
|
86
|
+
eventData?: EventGroup[];
|
|
86
87
|
groupUrgency?: UrgencyLevel;
|
|
87
88
|
groupUrgencyText?: string;
|
|
88
89
|
groupSummary?: string;
|
|
@@ -102,9 +103,9 @@ type Props$2 = {
|
|
|
102
103
|
declare function EmailBody({ subjectLine, to, date, from, CC, BCC, attachments, body, }: Props$2): react_jsx_runtime.JSX.Element;
|
|
103
104
|
|
|
104
105
|
type Props$1 = {
|
|
105
|
-
messages?: MessageData[];
|
|
106
|
+
messages?: MessageData$1[];
|
|
106
107
|
};
|
|
107
|
-
type MessageData = {
|
|
108
|
+
type MessageData$1 = {
|
|
108
109
|
name?: string;
|
|
109
110
|
timeStamp?: string;
|
|
110
111
|
body?: string;
|
|
@@ -137,6 +138,91 @@ declare function SearchBar(): react_jsx_runtime.JSX.Element;
|
|
|
137
138
|
|
|
138
139
|
type IconSize = 16 | 20 | 24 | 36;
|
|
139
140
|
|
|
140
|
-
declare
|
|
141
|
+
declare enum EventState {
|
|
142
|
+
NEW = "new",
|
|
143
|
+
READ = "read"
|
|
144
|
+
}
|
|
145
|
+
interface ExternalPerson {
|
|
146
|
+
firstName: string;
|
|
147
|
+
middleName: string;
|
|
148
|
+
lastName: string;
|
|
149
|
+
externalID: string;
|
|
150
|
+
}
|
|
151
|
+
interface Attachment {
|
|
152
|
+
fileName: string;
|
|
153
|
+
link: string;
|
|
154
|
+
}
|
|
155
|
+
interface EmailData {
|
|
156
|
+
subjectLine: string;
|
|
157
|
+
from: ExternalPerson;
|
|
158
|
+
to: ExternalPerson[];
|
|
159
|
+
cc: ExternalPerson[];
|
|
160
|
+
bcc: ExternalPerson[];
|
|
161
|
+
attachments: Attachment[];
|
|
162
|
+
body: string;
|
|
163
|
+
}
|
|
164
|
+
interface MessageData {
|
|
165
|
+
messageGroup: string;
|
|
166
|
+
from: ExternalPerson;
|
|
167
|
+
to: ExternalPerson[];
|
|
168
|
+
reactions: string[];
|
|
169
|
+
attachments: Attachment[];
|
|
170
|
+
body: string;
|
|
171
|
+
}
|
|
172
|
+
interface TicketData {
|
|
173
|
+
title: string;
|
|
174
|
+
projectName: string;
|
|
175
|
+
taskName: string;
|
|
176
|
+
attachments: Attachment[];
|
|
177
|
+
dueDate: string;
|
|
178
|
+
startDate: string;
|
|
179
|
+
assignees: ExternalPerson[];
|
|
180
|
+
reporter: ExternalPerson;
|
|
181
|
+
teamName: string;
|
|
182
|
+
location: string;
|
|
183
|
+
relatedDetails: string[];
|
|
184
|
+
body: string;
|
|
185
|
+
}
|
|
186
|
+
interface CalendarData {
|
|
187
|
+
from: ExternalPerson;
|
|
188
|
+
to: ExternalPerson[];
|
|
189
|
+
meetingLink: string;
|
|
190
|
+
location: string;
|
|
191
|
+
body: string;
|
|
192
|
+
}
|
|
193
|
+
type EventData = EmailData | MessageData | TicketData | CalendarData;
|
|
194
|
+
interface EventSummaryParts {
|
|
195
|
+
deadline: string;
|
|
196
|
+
"potential impact": string;
|
|
197
|
+
"potential next steps": string;
|
|
198
|
+
risk: string;
|
|
199
|
+
}
|
|
200
|
+
type BaseEventFields = {
|
|
201
|
+
eventID: string;
|
|
202
|
+
sourceSystemAssignedID: string;
|
|
203
|
+
groupingID: string;
|
|
204
|
+
service: IntegrationService;
|
|
205
|
+
state: EventState;
|
|
206
|
+
timestamp: string;
|
|
207
|
+
sourceUserID: string;
|
|
208
|
+
eventCategory: string;
|
|
209
|
+
eventSummaryParts: EventSummaryParts;
|
|
210
|
+
tags: string[];
|
|
211
|
+
link: string;
|
|
212
|
+
};
|
|
213
|
+
type EventDataMap = {
|
|
214
|
+
[EventType.EMAIL]: EmailData;
|
|
215
|
+
[EventType.MESSAGE]: MessageData;
|
|
216
|
+
[EventType.TICKET]: TicketData;
|
|
217
|
+
[EventType.CALENDAR]: CalendarData;
|
|
218
|
+
};
|
|
219
|
+
type Event = {
|
|
220
|
+
[K in keyof EventDataMap]: BaseEventFields & {
|
|
221
|
+
eventType: K;
|
|
222
|
+
eventData: EventDataMap[K];
|
|
223
|
+
};
|
|
224
|
+
}[keyof EventDataMap];
|
|
225
|
+
|
|
226
|
+
declare const fakeMessages: MessageData$1[];
|
|
141
227
|
|
|
142
|
-
export { BaseIconName, ChatBody, ColorVariants, EmailBody, EventCard, type EventData, EventType, NavBar as FilterBar, type IconSize, IntegrationService, NavBar, PreviewCard, SearchBar, TicketBody, type TicketComment, UrgencyLevel, fakeMessages };
|
|
228
|
+
export { type Attachment, BaseIconName, type CalendarData, ChatBody, ColorVariants, EmailBody, type EmailData, type Event, EventCard, type EventData, type EventGroup, EventState, type EventSummaryParts, EventType, type ExternalPerson, NavBar as FilterBar, type IconSize, IntegrationService, type MessageData, NavBar, PreviewCard, SearchBar, TicketBody, type TicketComment, type TicketData, UrgencyLevel, fakeMessages };
|