qt-ui-kit 1.0.33 → 1.0.34
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 +5 -7
- package/dist/index.d.ts +5 -7
- package/dist/index.js +37 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -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,9 @@ 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
|
-
selected,
|
|
15130
15131
|
onChecked,
|
|
15131
|
-
checked,
|
|
15132
15132
|
service,
|
|
15133
15133
|
subjectLine,
|
|
15134
15134
|
body,
|
|
@@ -15138,8 +15138,11 @@ function PreviewCard({
|
|
|
15138
15138
|
date,
|
|
15139
15139
|
onClickGoToSource,
|
|
15140
15140
|
urgencyLevel,
|
|
15141
|
-
alert
|
|
15141
|
+
alert,
|
|
15142
|
+
read
|
|
15142
15143
|
}) {
|
|
15144
|
+
const [selected, setSelected] = useState(false);
|
|
15145
|
+
const [checked, setChecked] = useState(false);
|
|
15143
15146
|
function getColorVariant(urgency) {
|
|
15144
15147
|
switch (urgency) {
|
|
15145
15148
|
case "high" /* HIGH */:
|
|
@@ -15152,6 +15155,18 @@ function PreviewCard({
|
|
|
15152
15155
|
return void 0;
|
|
15153
15156
|
}
|
|
15154
15157
|
}
|
|
15158
|
+
function toggleSelected() {
|
|
15159
|
+
setSelected(!selected);
|
|
15160
|
+
if (onSelected) {
|
|
15161
|
+
onSelected(eventID);
|
|
15162
|
+
}
|
|
15163
|
+
}
|
|
15164
|
+
function toggleChecked() {
|
|
15165
|
+
setChecked(!checked);
|
|
15166
|
+
if (onChecked) {
|
|
15167
|
+
onChecked(eventID);
|
|
15168
|
+
}
|
|
15169
|
+
}
|
|
15155
15170
|
return /* @__PURE__ */ jsxs12(
|
|
15156
15171
|
"div",
|
|
15157
15172
|
{
|
|
@@ -15162,12 +15177,11 @@ function PreviewCard({
|
|
|
15162
15177
|
),
|
|
15163
15178
|
onClick: (e) => {
|
|
15164
15179
|
e.stopPropagation();
|
|
15165
|
-
|
|
15166
|
-
onSelected && onSelected();
|
|
15180
|
+
toggleSelected();
|
|
15167
15181
|
},
|
|
15168
15182
|
children: [
|
|
15169
15183
|
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-4 place-items-center", children: [
|
|
15170
|
-
/* @__PURE__ */ jsx17(SecondaryCheckBox, { active: checked, onClick:
|
|
15184
|
+
/* @__PURE__ */ jsx17(SecondaryCheckBox, { active: checked, onClick: toggleChecked }),
|
|
15171
15185
|
/* @__PURE__ */ jsx17(BrandIcon, { service, size: 24 }),
|
|
15172
15186
|
urgencyLevel && /* @__PURE__ */ jsx17(
|
|
15173
15187
|
CategoryIconButton,
|
|
@@ -15713,7 +15727,7 @@ function CategoryIcon({ size = 24, icon, variant }) {
|
|
|
15713
15727
|
}
|
|
15714
15728
|
|
|
15715
15729
|
// src/components/organisms/emails/single_event.tsx
|
|
15716
|
-
import { useEffect, useState } from "react";
|
|
15730
|
+
import { useEffect, useState as useState2 } from "react";
|
|
15717
15731
|
|
|
15718
15732
|
// src/components/organisms/intel_card/intel_card.tsx
|
|
15719
15733
|
import clsx6 from "clsx";
|
|
@@ -15784,8 +15798,8 @@ function SingleEvent({
|
|
|
15784
15798
|
body,
|
|
15785
15799
|
startExpanded
|
|
15786
15800
|
}) {
|
|
15787
|
-
const [selected, setSelected] =
|
|
15788
|
-
const [expanded, setExpanded] =
|
|
15801
|
+
const [selected, setSelected] = useState2(false);
|
|
15802
|
+
const [expanded, setExpanded] = useState2(false);
|
|
15789
15803
|
useEffect(() => {
|
|
15790
15804
|
if (startExpanded) {
|
|
15791
15805
|
setExpanded(true);
|
|
@@ -15928,7 +15942,7 @@ function EmailBody({
|
|
|
15928
15942
|
|
|
15929
15943
|
// src/components/organisms/chat_messages/chat_bubble/chat_bubble.tsx
|
|
15930
15944
|
import clsx9 from "clsx";
|
|
15931
|
-
import { useEffect as useEffect2, useState as
|
|
15945
|
+
import { useEffect as useEffect2, useState as useState3 } from "react";
|
|
15932
15946
|
|
|
15933
15947
|
// src/components/atoms/emoji_pill/emoji_pill.tsx
|
|
15934
15948
|
var import_emoji_dictionary = __toESM(require_lib7());
|
|
@@ -15960,9 +15974,9 @@ function ChatBubble({
|
|
|
15960
15974
|
timestamp,
|
|
15961
15975
|
emojis
|
|
15962
15976
|
}) {
|
|
15963
|
-
const [expanded, setExpanded] =
|
|
15964
|
-
const [truncatedText, setTruncatedText] =
|
|
15965
|
-
const [uniqueEmojis, setUniqueEmojis] =
|
|
15977
|
+
const [expanded, setExpanded] = useState3(false);
|
|
15978
|
+
const [truncatedText, setTruncatedText] = useState3(false);
|
|
15979
|
+
const [uniqueEmojis, setUniqueEmojis] = useState3(
|
|
15966
15980
|
/* @__PURE__ */ new Map()
|
|
15967
15981
|
);
|
|
15968
15982
|
const textLen = text?.length;
|
|
@@ -16409,12 +16423,12 @@ function Search({
|
|
|
16409
16423
|
}
|
|
16410
16424
|
|
|
16411
16425
|
// src/components/organisms/search_bar/search_bar.tsx
|
|
16412
|
-
import { useState as
|
|
16426
|
+
import { useState as useState4, useEffect as useEffect3 } from "react";
|
|
16413
16427
|
import { jsx as jsx38, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
16414
16428
|
function SearchBar() {
|
|
16415
|
-
const [query, setQuery] =
|
|
16416
|
-
const [state, setState] =
|
|
16417
|
-
const [results, setResults] =
|
|
16429
|
+
const [query, setQuery] = useState4("");
|
|
16430
|
+
const [state, setState] = useState4("inactive");
|
|
16431
|
+
const [results, setResults] = useState4([]);
|
|
16418
16432
|
useEffect3(() => {
|
|
16419
16433
|
if (query === "") {
|
|
16420
16434
|
setState("inactive");
|