qt-ui-kit 1.0.33 → 1.0.35
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 +6 -7
- package/dist/index.d.ts +6 -7
- package/dist/index.js +41 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11168,6 +11168,9 @@ var require_lib7 = __commonJS({
|
|
|
11168
11168
|
}
|
|
11169
11169
|
});
|
|
11170
11170
|
|
|
11171
|
+
// src/components/organisms/preview_card/preview_card.tsx
|
|
11172
|
+
import { useState } from "react";
|
|
11173
|
+
|
|
11171
11174
|
// src/types/global.ts
|
|
11172
11175
|
var IntegrationService = /* @__PURE__ */ ((IntegrationService5) => {
|
|
11173
11176
|
IntegrationService5["SLACK"] = "slack";
|
|
@@ -15123,12 +15126,10 @@ function CategoryIconButton({ icon, label, active }) {
|
|
|
15123
15126
|
// src/components/organisms/preview_card/preview_card.tsx
|
|
15124
15127
|
import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
15125
15128
|
function PreviewCard({
|
|
15126
|
-
|
|
15127
|
-
read,
|
|
15129
|
+
eventID,
|
|
15128
15130
|
onSelected,
|
|
15129
|
-
|
|
15131
|
+
unSelectable,
|
|
15130
15132
|
onChecked,
|
|
15131
|
-
checked,
|
|
15132
15133
|
service,
|
|
15133
15134
|
subjectLine,
|
|
15134
15135
|
body,
|
|
@@ -15138,8 +15139,11 @@ function PreviewCard({
|
|
|
15138
15139
|
date,
|
|
15139
15140
|
onClickGoToSource,
|
|
15140
15141
|
urgencyLevel,
|
|
15141
|
-
alert
|
|
15142
|
+
alert,
|
|
15143
|
+
read
|
|
15142
15144
|
}) {
|
|
15145
|
+
const [selected, setSelected] = useState(false);
|
|
15146
|
+
const [checked, setChecked] = useState(false);
|
|
15143
15147
|
function getColorVariant(urgency) {
|
|
15144
15148
|
switch (urgency) {
|
|
15145
15149
|
case "high" /* HIGH */:
|
|
@@ -15152,6 +15156,21 @@ function PreviewCard({
|
|
|
15152
15156
|
return void 0;
|
|
15153
15157
|
}
|
|
15154
15158
|
}
|
|
15159
|
+
function toggleSelected() {
|
|
15160
|
+
if (unSelectable) {
|
|
15161
|
+
return;
|
|
15162
|
+
}
|
|
15163
|
+
setSelected(!selected);
|
|
15164
|
+
if (onSelected) {
|
|
15165
|
+
onSelected(eventID);
|
|
15166
|
+
}
|
|
15167
|
+
}
|
|
15168
|
+
function toggleChecked() {
|
|
15169
|
+
setChecked(!checked);
|
|
15170
|
+
if (onChecked) {
|
|
15171
|
+
onChecked(eventID);
|
|
15172
|
+
}
|
|
15173
|
+
}
|
|
15155
15174
|
return /* @__PURE__ */ jsxs12(
|
|
15156
15175
|
"div",
|
|
15157
15176
|
{
|
|
@@ -15162,12 +15181,11 @@ function PreviewCard({
|
|
|
15162
15181
|
),
|
|
15163
15182
|
onClick: (e) => {
|
|
15164
15183
|
e.stopPropagation();
|
|
15165
|
-
|
|
15166
|
-
onSelected && onSelected();
|
|
15184
|
+
toggleSelected();
|
|
15167
15185
|
},
|
|
15168
15186
|
children: [
|
|
15169
15187
|
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-4 place-items-center", children: [
|
|
15170
|
-
/* @__PURE__ */ jsx17(SecondaryCheckBox, { active: checked, onClick:
|
|
15188
|
+
/* @__PURE__ */ jsx17(SecondaryCheckBox, { active: checked, onClick: toggleChecked }),
|
|
15171
15189
|
/* @__PURE__ */ jsx17(BrandIcon, { service, size: 24 }),
|
|
15172
15190
|
urgencyLevel && /* @__PURE__ */ jsx17(
|
|
15173
15191
|
CategoryIconButton,
|
|
@@ -15713,7 +15731,7 @@ function CategoryIcon({ size = 24, icon, variant }) {
|
|
|
15713
15731
|
}
|
|
15714
15732
|
|
|
15715
15733
|
// src/components/organisms/emails/single_event.tsx
|
|
15716
|
-
import { useEffect, useState } from "react";
|
|
15734
|
+
import { useEffect, useState as useState2 } from "react";
|
|
15717
15735
|
|
|
15718
15736
|
// src/components/organisms/intel_card/intel_card.tsx
|
|
15719
15737
|
import clsx6 from "clsx";
|
|
@@ -15784,8 +15802,8 @@ function SingleEvent({
|
|
|
15784
15802
|
body,
|
|
15785
15803
|
startExpanded
|
|
15786
15804
|
}) {
|
|
15787
|
-
const [selected, setSelected] =
|
|
15788
|
-
const [expanded, setExpanded] =
|
|
15805
|
+
const [selected, setSelected] = useState2(false);
|
|
15806
|
+
const [expanded, setExpanded] = useState2(false);
|
|
15789
15807
|
useEffect(() => {
|
|
15790
15808
|
if (startExpanded) {
|
|
15791
15809
|
setExpanded(true);
|
|
@@ -15928,7 +15946,7 @@ function EmailBody({
|
|
|
15928
15946
|
|
|
15929
15947
|
// src/components/organisms/chat_messages/chat_bubble/chat_bubble.tsx
|
|
15930
15948
|
import clsx9 from "clsx";
|
|
15931
|
-
import { useEffect as useEffect2, useState as
|
|
15949
|
+
import { useEffect as useEffect2, useState as useState3 } from "react";
|
|
15932
15950
|
|
|
15933
15951
|
// src/components/atoms/emoji_pill/emoji_pill.tsx
|
|
15934
15952
|
var import_emoji_dictionary = __toESM(require_lib7());
|
|
@@ -15960,9 +15978,9 @@ function ChatBubble({
|
|
|
15960
15978
|
timestamp,
|
|
15961
15979
|
emojis
|
|
15962
15980
|
}) {
|
|
15963
|
-
const [expanded, setExpanded] =
|
|
15964
|
-
const [truncatedText, setTruncatedText] =
|
|
15965
|
-
const [uniqueEmojis, setUniqueEmojis] =
|
|
15981
|
+
const [expanded, setExpanded] = useState3(false);
|
|
15982
|
+
const [truncatedText, setTruncatedText] = useState3(false);
|
|
15983
|
+
const [uniqueEmojis, setUniqueEmojis] = useState3(
|
|
15966
15984
|
/* @__PURE__ */ new Map()
|
|
15967
15985
|
);
|
|
15968
15986
|
const textLen = text?.length;
|
|
@@ -16409,12 +16427,12 @@ function Search({
|
|
|
16409
16427
|
}
|
|
16410
16428
|
|
|
16411
16429
|
// src/components/organisms/search_bar/search_bar.tsx
|
|
16412
|
-
import { useState as
|
|
16430
|
+
import { useState as useState4, useEffect as useEffect3 } from "react";
|
|
16413
16431
|
import { jsx as jsx38, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
16414
16432
|
function SearchBar() {
|
|
16415
|
-
const [query, setQuery] =
|
|
16416
|
-
const [state, setState] =
|
|
16417
|
-
const [results, setResults] =
|
|
16433
|
+
const [query, setQuery] = useState4("");
|
|
16434
|
+
const [state, setState] = useState4("inactive");
|
|
16435
|
+
const [results, setResults] = useState4([]);
|
|
16418
16436
|
useEffect3(() => {
|
|
16419
16437
|
if (query === "") {
|
|
16420
16438
|
setState("inactive");
|