qt-ui-kit 1.0.25 → 1.0.27
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 +20 -13
- package/dist/index.d.ts +20 -13
- package/dist/index.js +279 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +279 -3
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +3 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -10,6 +10,7 @@ declare enum IntegrationService {
|
|
|
10
10
|
MSCAL = "microsoft_calendar",
|
|
11
11
|
AJIRA = "atlassian_jira"
|
|
12
12
|
}
|
|
13
|
+
type FilterValues = IntegrationService | "done" | "new" | "fires";
|
|
13
14
|
declare enum BaseIconName {
|
|
14
15
|
SEARCH = "search",
|
|
15
16
|
EXTERNAL_LINK = "external_link",
|
|
@@ -62,7 +63,7 @@ type TicketComment = {
|
|
|
62
63
|
emojis?: string[];
|
|
63
64
|
};
|
|
64
65
|
|
|
65
|
-
type Props$
|
|
66
|
+
type Props$6 = {
|
|
66
67
|
onRead?: () => void;
|
|
67
68
|
onSelected?: () => void;
|
|
68
69
|
service?: IntegrationService;
|
|
@@ -76,21 +77,21 @@ type Props$5 = {
|
|
|
76
77
|
urgencyLevel?: UrgencyLevel;
|
|
77
78
|
alert?: boolean;
|
|
78
79
|
};
|
|
79
|
-
declare function PreviewCard({ onRead, onSelected, service, subjectLine, body, sender, source, metadata, date, onClickGoToSource, urgencyLevel, alert, }: Props$
|
|
80
|
+
declare function PreviewCard({ onRead, onSelected, service, subjectLine, body, sender, source, metadata, date, onClickGoToSource, urgencyLevel, alert, }: Props$6): react_jsx_runtime.JSX.Element;
|
|
80
81
|
|
|
81
|
-
type Props$
|
|
82
|
-
declare function NavBar({}: Props$
|
|
82
|
+
type Props$5 = {};
|
|
83
|
+
declare function NavBar({}: Props$5): react_jsx_runtime.JSX.Element;
|
|
83
84
|
|
|
84
|
-
type Props$
|
|
85
|
+
type Props$4 = {
|
|
85
86
|
eventType?: EventType;
|
|
86
87
|
eventData?: EventGroup[];
|
|
87
88
|
groupUrgency?: UrgencyLevel;
|
|
88
89
|
groupUrgencyText?: string;
|
|
89
90
|
groupSummary?: string;
|
|
90
91
|
};
|
|
91
|
-
declare function EventCard({ eventType, eventData, groupUrgency, groupUrgencyText, groupSummary, }: Props$
|
|
92
|
+
declare function EventCard({ eventType, eventData, groupUrgency, groupUrgencyText, groupSummary, }: Props$4): react_jsx_runtime.JSX.Element;
|
|
92
93
|
|
|
93
|
-
type Props$
|
|
94
|
+
type Props$3 = {
|
|
94
95
|
subjectLine?: string;
|
|
95
96
|
to?: string;
|
|
96
97
|
date?: string;
|
|
@@ -100,9 +101,9 @@ type Props$2 = {
|
|
|
100
101
|
attachments?: string;
|
|
101
102
|
body?: string;
|
|
102
103
|
};
|
|
103
|
-
declare function EmailBody({ subjectLine, to, date, from, CC, BCC, attachments, body, }: Props$
|
|
104
|
+
declare function EmailBody({ subjectLine, to, date, from, CC, BCC, attachments, body, }: Props$3): react_jsx_runtime.JSX.Element;
|
|
104
105
|
|
|
105
|
-
type Props$
|
|
106
|
+
type Props$2 = {
|
|
106
107
|
messages?: MessageData$1[];
|
|
107
108
|
};
|
|
108
109
|
type MessageData$1 = {
|
|
@@ -115,9 +116,9 @@ type MessageData$1 = {
|
|
|
115
116
|
image?: string;
|
|
116
117
|
emojis?: string[];
|
|
117
118
|
};
|
|
118
|
-
declare function ChatBody({ messages }: Props$
|
|
119
|
+
declare function ChatBody({ messages }: Props$2): react_jsx_runtime.JSX.Element;
|
|
119
120
|
|
|
120
|
-
type Props = {
|
|
121
|
+
type Props$1 = {
|
|
121
122
|
issueNumber?: string;
|
|
122
123
|
notification?: string;
|
|
123
124
|
project?: string;
|
|
@@ -132,10 +133,16 @@ type Props = {
|
|
|
132
133
|
description?: string;
|
|
133
134
|
comments?: TicketComment[];
|
|
134
135
|
};
|
|
135
|
-
declare function TicketBody({ issueNumber, notification, project, task, dueDate, startDate, assignees, reporter, team, location, related, description, comments, }: Props): react_jsx_runtime.JSX.Element;
|
|
136
|
+
declare function TicketBody({ issueNumber, notification, project, task, dueDate, startDate, assignees, reporter, team, location, related, description, comments, }: Props$1): react_jsx_runtime.JSX.Element;
|
|
136
137
|
|
|
137
138
|
declare function SearchBar(): react_jsx_runtime.JSX.Element;
|
|
138
139
|
|
|
140
|
+
type Props = {
|
|
141
|
+
activeFilters?: Set<FilterValues>;
|
|
142
|
+
onAddMore?: () => void;
|
|
143
|
+
};
|
|
144
|
+
declare function FilterBar({ activeFilters, onAddMore }: Props): react_jsx_runtime.JSX.Element;
|
|
145
|
+
|
|
139
146
|
type IconSize = 16 | 20 | 24 | 36;
|
|
140
147
|
|
|
141
148
|
declare enum EventState {
|
|
@@ -225,4 +232,4 @@ type Event = {
|
|
|
225
232
|
|
|
226
233
|
declare const fakeMessages: MessageData$1[];
|
|
227
234
|
|
|
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,
|
|
235
|
+
export { type Attachment, BaseIconName, type CalendarData, ChatBody, ColorVariants, EmailBody, type EmailData, type Event, EventCard, type EventData, type EventGroup, EventState, type EventSummaryParts, EventType, type ExternalPerson, FilterBar, type FilterValues, type IconSize, IntegrationService, type MessageData, NavBar, PreviewCard, SearchBar, TicketBody, type TicketComment, type TicketData, UrgencyLevel, fakeMessages };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare enum IntegrationService {
|
|
|
10
10
|
MSCAL = "microsoft_calendar",
|
|
11
11
|
AJIRA = "atlassian_jira"
|
|
12
12
|
}
|
|
13
|
+
type FilterValues = IntegrationService | "done" | "new" | "fires";
|
|
13
14
|
declare enum BaseIconName {
|
|
14
15
|
SEARCH = "search",
|
|
15
16
|
EXTERNAL_LINK = "external_link",
|
|
@@ -62,7 +63,7 @@ type TicketComment = {
|
|
|
62
63
|
emojis?: string[];
|
|
63
64
|
};
|
|
64
65
|
|
|
65
|
-
type Props$
|
|
66
|
+
type Props$6 = {
|
|
66
67
|
onRead?: () => void;
|
|
67
68
|
onSelected?: () => void;
|
|
68
69
|
service?: IntegrationService;
|
|
@@ -76,21 +77,21 @@ type Props$5 = {
|
|
|
76
77
|
urgencyLevel?: UrgencyLevel;
|
|
77
78
|
alert?: boolean;
|
|
78
79
|
};
|
|
79
|
-
declare function PreviewCard({ onRead, onSelected, service, subjectLine, body, sender, source, metadata, date, onClickGoToSource, urgencyLevel, alert, }: Props$
|
|
80
|
+
declare function PreviewCard({ onRead, onSelected, service, subjectLine, body, sender, source, metadata, date, onClickGoToSource, urgencyLevel, alert, }: Props$6): react_jsx_runtime.JSX.Element;
|
|
80
81
|
|
|
81
|
-
type Props$
|
|
82
|
-
declare function NavBar({}: Props$
|
|
82
|
+
type Props$5 = {};
|
|
83
|
+
declare function NavBar({}: Props$5): react_jsx_runtime.JSX.Element;
|
|
83
84
|
|
|
84
|
-
type Props$
|
|
85
|
+
type Props$4 = {
|
|
85
86
|
eventType?: EventType;
|
|
86
87
|
eventData?: EventGroup[];
|
|
87
88
|
groupUrgency?: UrgencyLevel;
|
|
88
89
|
groupUrgencyText?: string;
|
|
89
90
|
groupSummary?: string;
|
|
90
91
|
};
|
|
91
|
-
declare function EventCard({ eventType, eventData, groupUrgency, groupUrgencyText, groupSummary, }: Props$
|
|
92
|
+
declare function EventCard({ eventType, eventData, groupUrgency, groupUrgencyText, groupSummary, }: Props$4): react_jsx_runtime.JSX.Element;
|
|
92
93
|
|
|
93
|
-
type Props$
|
|
94
|
+
type Props$3 = {
|
|
94
95
|
subjectLine?: string;
|
|
95
96
|
to?: string;
|
|
96
97
|
date?: string;
|
|
@@ -100,9 +101,9 @@ type Props$2 = {
|
|
|
100
101
|
attachments?: string;
|
|
101
102
|
body?: string;
|
|
102
103
|
};
|
|
103
|
-
declare function EmailBody({ subjectLine, to, date, from, CC, BCC, attachments, body, }: Props$
|
|
104
|
+
declare function EmailBody({ subjectLine, to, date, from, CC, BCC, attachments, body, }: Props$3): react_jsx_runtime.JSX.Element;
|
|
104
105
|
|
|
105
|
-
type Props$
|
|
106
|
+
type Props$2 = {
|
|
106
107
|
messages?: MessageData$1[];
|
|
107
108
|
};
|
|
108
109
|
type MessageData$1 = {
|
|
@@ -115,9 +116,9 @@ type MessageData$1 = {
|
|
|
115
116
|
image?: string;
|
|
116
117
|
emojis?: string[];
|
|
117
118
|
};
|
|
118
|
-
declare function ChatBody({ messages }: Props$
|
|
119
|
+
declare function ChatBody({ messages }: Props$2): react_jsx_runtime.JSX.Element;
|
|
119
120
|
|
|
120
|
-
type Props = {
|
|
121
|
+
type Props$1 = {
|
|
121
122
|
issueNumber?: string;
|
|
122
123
|
notification?: string;
|
|
123
124
|
project?: string;
|
|
@@ -132,10 +133,16 @@ type Props = {
|
|
|
132
133
|
description?: string;
|
|
133
134
|
comments?: TicketComment[];
|
|
134
135
|
};
|
|
135
|
-
declare function TicketBody({ issueNumber, notification, project, task, dueDate, startDate, assignees, reporter, team, location, related, description, comments, }: Props): react_jsx_runtime.JSX.Element;
|
|
136
|
+
declare function TicketBody({ issueNumber, notification, project, task, dueDate, startDate, assignees, reporter, team, location, related, description, comments, }: Props$1): react_jsx_runtime.JSX.Element;
|
|
136
137
|
|
|
137
138
|
declare function SearchBar(): react_jsx_runtime.JSX.Element;
|
|
138
139
|
|
|
140
|
+
type Props = {
|
|
141
|
+
activeFilters?: Set<FilterValues>;
|
|
142
|
+
onAddMore?: () => void;
|
|
143
|
+
};
|
|
144
|
+
declare function FilterBar({ activeFilters, onAddMore }: Props): react_jsx_runtime.JSX.Element;
|
|
145
|
+
|
|
139
146
|
type IconSize = 16 | 20 | 24 | 36;
|
|
140
147
|
|
|
141
148
|
declare enum EventState {
|
|
@@ -225,4 +232,4 @@ type Event = {
|
|
|
225
232
|
|
|
226
233
|
declare const fakeMessages: MessageData$1[];
|
|
227
234
|
|
|
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,
|
|
235
|
+
export { type Attachment, BaseIconName, type CalendarData, ChatBody, ColorVariants, EmailBody, type EmailData, type Event, EventCard, type EventData, type EventGroup, EventState, type EventSummaryParts, EventType, type ExternalPerson, FilterBar, type FilterValues, type IconSize, IntegrationService, type MessageData, NavBar, PreviewCard, SearchBar, TicketBody, type TicketComment, type TicketData, UrgencyLevel, fakeMessages };
|
package/dist/index.js
CHANGED
|
@@ -11184,7 +11184,7 @@ __export(index_exports, {
|
|
|
11184
11184
|
EventCard: () => EventCard,
|
|
11185
11185
|
EventState: () => EventState,
|
|
11186
11186
|
EventType: () => EventType,
|
|
11187
|
-
FilterBar: () =>
|
|
11187
|
+
FilterBar: () => FilterBar,
|
|
11188
11188
|
IntegrationService: () => IntegrationService,
|
|
11189
11189
|
NavBar: () => NavBar,
|
|
11190
11190
|
PreviewCard: () => PreviewCard,
|
|
@@ -14900,9 +14900,9 @@ function formatCustomRelative(date) {
|
|
|
14900
14900
|
return `Tomorrow @ ${format(date, "h:mm a")}`;
|
|
14901
14901
|
}
|
|
14902
14902
|
if (isSameWeek(date, now, { weekStartsOn: 1 })) {
|
|
14903
|
-
return `${format(date, "
|
|
14903
|
+
return `${format(date, "EEE")} @ ${format(date, "h:mm a")}`;
|
|
14904
14904
|
}
|
|
14905
|
-
return `${format(date, "
|
|
14905
|
+
return `${format(date, "EEE, do MMMM")} @ ${format(date, "h:mm a")}`;
|
|
14906
14906
|
}
|
|
14907
14907
|
|
|
14908
14908
|
// src/components/molecules/text_content/sender_source_row/sender_source_row.tsx
|
|
@@ -16400,6 +16400,282 @@ function SearchBar() {
|
|
|
16400
16400
|
] });
|
|
16401
16401
|
}
|
|
16402
16402
|
|
|
16403
|
+
// src/components/atoms/icons/base_icons/Mail.tsx
|
|
16404
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
16405
|
+
function Mail({
|
|
16406
|
+
size = 24,
|
|
16407
|
+
color = "#1D1D1F",
|
|
16408
|
+
fillColor = "none"
|
|
16409
|
+
}) {
|
|
16410
|
+
const getIconData = () => {
|
|
16411
|
+
switch (size) {
|
|
16412
|
+
case 16:
|
|
16413
|
+
return {
|
|
16414
|
+
viewBox: "0 0 16 16",
|
|
16415
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
16416
|
+
"path",
|
|
16417
|
+
{
|
|
16418
|
+
d: "M2 5.33337L7.2604 8.84031C7.70827 9.13888 8.29173 9.13888 8.7396 8.84031L14 5.33337M3.33333 12.6667H12.6667C13.403 12.6667 14 12.0698 14 11.3334V4.66671C14 3.93033 13.403 3.33337 12.6667 3.33337H3.33333C2.59695 3.33337 2 3.93033 2 4.66671V11.3334C2 12.0698 2.59695 12.6667 3.33333 12.6667Z",
|
|
16419
|
+
stroke: color,
|
|
16420
|
+
"stroke-width": "1.25",
|
|
16421
|
+
"stroke-linecap": "round",
|
|
16422
|
+
"stroke-linejoin": "round"
|
|
16423
|
+
}
|
|
16424
|
+
)
|
|
16425
|
+
};
|
|
16426
|
+
case 20:
|
|
16427
|
+
return {
|
|
16428
|
+
viewBox: "0 0 20 20",
|
|
16429
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
16430
|
+
"path",
|
|
16431
|
+
{
|
|
16432
|
+
d: "M2.5 6.66663L9.0755 11.0503C9.63533 11.4235 10.3647 11.4235 10.9245 11.0503L17.5 6.66663M4.16667 15.8333H15.8333C16.7538 15.8333 17.5 15.0871 17.5 14.1666V5.83329C17.5 4.91282 16.7538 4.16663 15.8333 4.16663H4.16667C3.24619 4.16663 2.5 4.91282 2.5 5.83329V14.1666C2.5 15.0871 3.24619 15.8333 4.16667 15.8333Z",
|
|
16433
|
+
stroke: color,
|
|
16434
|
+
"stroke-width": "1.5",
|
|
16435
|
+
"stroke-linecap": "round",
|
|
16436
|
+
"stroke-linejoin": "round"
|
|
16437
|
+
}
|
|
16438
|
+
)
|
|
16439
|
+
};
|
|
16440
|
+
case 24:
|
|
16441
|
+
return {
|
|
16442
|
+
viewBox: "0 0 24 24",
|
|
16443
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
16444
|
+
"path",
|
|
16445
|
+
{
|
|
16446
|
+
d: "M3 8L10.8906 13.2604C11.5624 13.7083 12.4376 13.7083 13.1094 13.2604L21 8M5 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19Z",
|
|
16447
|
+
stroke: color,
|
|
16448
|
+
"stroke-width": "2",
|
|
16449
|
+
"stroke-linecap": "round",
|
|
16450
|
+
"stroke-linejoin": "round"
|
|
16451
|
+
}
|
|
16452
|
+
)
|
|
16453
|
+
};
|
|
16454
|
+
case 36:
|
|
16455
|
+
return {
|
|
16456
|
+
viewBox: "0 0 36 36",
|
|
16457
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
16458
|
+
"path",
|
|
16459
|
+
{
|
|
16460
|
+
d: "M4.5 12L16.3359 19.8906C17.3436 20.5624 18.6564 20.5624 19.6641 19.8906L31.5 12M7.5 28.5H28.5C30.1569 28.5 31.5 27.1569 31.5 25.5V10.5C31.5 8.84315 30.1569 7.5 28.5 7.5H7.5C5.84315 7.5 4.5 8.84315 4.5 10.5V25.5C4.5 27.1569 5.84315 28.5 7.5 28.5Z",
|
|
16461
|
+
stroke: color,
|
|
16462
|
+
"stroke-width": "2.25",
|
|
16463
|
+
"stroke-linecap": "round",
|
|
16464
|
+
"stroke-linejoin": "round"
|
|
16465
|
+
}
|
|
16466
|
+
)
|
|
16467
|
+
};
|
|
16468
|
+
}
|
|
16469
|
+
};
|
|
16470
|
+
const { viewBox, path } = getIconData();
|
|
16471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
16472
|
+
"svg",
|
|
16473
|
+
{
|
|
16474
|
+
width: size,
|
|
16475
|
+
height: size,
|
|
16476
|
+
viewBox,
|
|
16477
|
+
fill: fillColor,
|
|
16478
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16479
|
+
children: path
|
|
16480
|
+
}
|
|
16481
|
+
);
|
|
16482
|
+
}
|
|
16483
|
+
|
|
16484
|
+
// src/components/atoms/icons/base_icons/PlusLarge.tsx
|
|
16485
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
16486
|
+
function PlusLarge({
|
|
16487
|
+
size = 24,
|
|
16488
|
+
color = "#1D1D1F",
|
|
16489
|
+
fillColor = "none"
|
|
16490
|
+
}) {
|
|
16491
|
+
const getIconData = () => {
|
|
16492
|
+
switch (size) {
|
|
16493
|
+
case 16:
|
|
16494
|
+
return {
|
|
16495
|
+
viewBox: "0 0 16 16",
|
|
16496
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M8.00033 2.66663V13.3333M13.3337 7.99996L2.66699 7.99996", stroke: color, "stroke-width": "1.25", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
16497
|
+
};
|
|
16498
|
+
case 20:
|
|
16499
|
+
return {
|
|
16500
|
+
viewBox: "0 0 20 20",
|
|
16501
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M9.99967 3.33337V16.6667M16.6663 10L3.33301 10", stroke: color, "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
16502
|
+
};
|
|
16503
|
+
case 24:
|
|
16504
|
+
return {
|
|
16505
|
+
viewBox: "0 0 24 24",
|
|
16506
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M12 4V20M20 12L4 12", stroke: color, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
16507
|
+
};
|
|
16508
|
+
case 36:
|
|
16509
|
+
return {
|
|
16510
|
+
viewBox: "0 0 36 36",
|
|
16511
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M18 6V30M30 18L6 18", stroke: color, "stroke-width": "2.25", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
16512
|
+
};
|
|
16513
|
+
}
|
|
16514
|
+
};
|
|
16515
|
+
const { viewBox, path } = getIconData();
|
|
16516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
16517
|
+
"svg",
|
|
16518
|
+
{
|
|
16519
|
+
width: size,
|
|
16520
|
+
height: size,
|
|
16521
|
+
viewBox,
|
|
16522
|
+
fill: "none",
|
|
16523
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16524
|
+
children: path
|
|
16525
|
+
}
|
|
16526
|
+
);
|
|
16527
|
+
}
|
|
16528
|
+
|
|
16529
|
+
// src/components/molecules/buttons/nav_button/filter_nav_button/filter_nav_button.tsx
|
|
16530
|
+
var import_clsx11 = __toESM(require("clsx"));
|
|
16531
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
16532
|
+
function FilterNavButton({ icon, label, active }) {
|
|
16533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "w-min h-min flex flex-none flex-col place-items-center gap-2", children: [
|
|
16534
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
16535
|
+
"div",
|
|
16536
|
+
{
|
|
16537
|
+
className: (0, import_clsx11.default)(
|
|
16538
|
+
"w-[44px] h-[44px] flex flex-none flex-col place-items-center place-content-center rounded-xl hover:bg-qtneutral-200 hover:border-2 hover:border-qtneutral-500"
|
|
16539
|
+
),
|
|
16540
|
+
children: icon
|
|
16541
|
+
}
|
|
16542
|
+
),
|
|
16543
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "font-medium text-[0.7rem] text-qtneutral-900", children: label })
|
|
16544
|
+
] });
|
|
16545
|
+
}
|
|
16546
|
+
|
|
16547
|
+
// src/components/organisms/filter_bar/filter_bar.tsx
|
|
16548
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
16549
|
+
function FilterBar({ activeFilters, onAddMore }) {
|
|
16550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-col w-[54px] place-items-center gap-4", children: [
|
|
16551
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16552
|
+
FilterNavButton,
|
|
16553
|
+
{
|
|
16554
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16555
|
+
FireIcon,
|
|
16556
|
+
{
|
|
16557
|
+
variant: activeFilters?.has("fires") ? void 0 : "none" /* OUTLINED */
|
|
16558
|
+
}
|
|
16559
|
+
),
|
|
16560
|
+
label: "Fires",
|
|
16561
|
+
active: true
|
|
16562
|
+
}
|
|
16563
|
+
),
|
|
16564
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16565
|
+
FilterNavButton,
|
|
16566
|
+
{
|
|
16567
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16568
|
+
Mail,
|
|
16569
|
+
{
|
|
16570
|
+
size: 36,
|
|
16571
|
+
fillColor: activeFilters?.has("new") ? "#BFF4F6" : void 0
|
|
16572
|
+
}
|
|
16573
|
+
),
|
|
16574
|
+
label: "Unread"
|
|
16575
|
+
}
|
|
16576
|
+
),
|
|
16577
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16578
|
+
FilterNavButton,
|
|
16579
|
+
{
|
|
16580
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16581
|
+
CheckBox,
|
|
16582
|
+
{
|
|
16583
|
+
size: 36,
|
|
16584
|
+
fillColor: activeFilters?.has("done") ? "#E8FE99" : void 0
|
|
16585
|
+
}
|
|
16586
|
+
),
|
|
16587
|
+
label: "Done"
|
|
16588
|
+
}
|
|
16589
|
+
),
|
|
16590
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
|
|
16591
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16592
|
+
FilterNavButton,
|
|
16593
|
+
{
|
|
16594
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16595
|
+
"div",
|
|
16596
|
+
{
|
|
16597
|
+
className: activeFilters?.has("slack" /* SLACK */) ? "" : "grayscale",
|
|
16598
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SlackIcon, {})
|
|
16599
|
+
}
|
|
16600
|
+
)
|
|
16601
|
+
}
|
|
16602
|
+
),
|
|
16603
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16604
|
+
FilterNavButton,
|
|
16605
|
+
{
|
|
16606
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16607
|
+
"div",
|
|
16608
|
+
{
|
|
16609
|
+
className: activeFilters?.has("google_mail" /* GMAIL */) ? "" : "grayscale",
|
|
16610
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(GoogleMailIcon, {})
|
|
16611
|
+
}
|
|
16612
|
+
)
|
|
16613
|
+
}
|
|
16614
|
+
),
|
|
16615
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16616
|
+
FilterNavButton,
|
|
16617
|
+
{
|
|
16618
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16619
|
+
"div",
|
|
16620
|
+
{
|
|
16621
|
+
className: activeFilters?.has("google_calendar" /* GCAL */) ? "" : "grayscale",
|
|
16622
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(GoogleCalendarIcon, {})
|
|
16623
|
+
}
|
|
16624
|
+
)
|
|
16625
|
+
}
|
|
16626
|
+
),
|
|
16627
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16628
|
+
FilterNavButton,
|
|
16629
|
+
{
|
|
16630
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
16631
|
+
"div",
|
|
16632
|
+
{
|
|
16633
|
+
className: activeFilters?.has("atlassian_jira" /* AJIRA */) ? "" : "grayscale",
|
|
16634
|
+
children: [
|
|
16635
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AtlassianIcon, {}),
|
|
16636
|
+
" "
|
|
16637
|
+
]
|
|
16638
|
+
}
|
|
16639
|
+
)
|
|
16640
|
+
}
|
|
16641
|
+
),
|
|
16642
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16643
|
+
FilterNavButton,
|
|
16644
|
+
{
|
|
16645
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
16646
|
+
"div",
|
|
16647
|
+
{
|
|
16648
|
+
className: activeFilters?.has("microsoft_teams" /* MSTEAMS */) ? "" : "grayscale",
|
|
16649
|
+
children: [
|
|
16650
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MicrosoftTeamsIcon, {}),
|
|
16651
|
+
" "
|
|
16652
|
+
]
|
|
16653
|
+
}
|
|
16654
|
+
)
|
|
16655
|
+
}
|
|
16656
|
+
),
|
|
16657
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16658
|
+
FilterNavButton,
|
|
16659
|
+
{
|
|
16660
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
16661
|
+
"div",
|
|
16662
|
+
{
|
|
16663
|
+
className: activeFilters?.has(
|
|
16664
|
+
"microsoft_mail" /* MSMAIL */ || "microsoft_calendar" /* MSCAL */
|
|
16665
|
+
) ? "" : "grayscale",
|
|
16666
|
+
children: [
|
|
16667
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MicrosoftOutlookMailIcon, {}),
|
|
16668
|
+
" "
|
|
16669
|
+
]
|
|
16670
|
+
}
|
|
16671
|
+
)
|
|
16672
|
+
}
|
|
16673
|
+
),
|
|
16674
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
|
|
16675
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { onClick: onAddMore, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(FilterNavButton, { icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(PlusLarge, { size: 36 }) }) })
|
|
16676
|
+
] });
|
|
16677
|
+
}
|
|
16678
|
+
|
|
16403
16679
|
// src/types/events.ts
|
|
16404
16680
|
var EventState = /* @__PURE__ */ ((EventState2) => {
|
|
16405
16681
|
EventState2["NEW"] = "new";
|