qt-ui-kit 1.0.32 → 1.0.33
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 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +22 -56
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -52
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11168,9 +11168,6 @@ 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
|
-
|
|
11174
11171
|
// src/types/global.ts
|
|
11175
11172
|
var IntegrationService = /* @__PURE__ */ ((IntegrationService5) => {
|
|
11176
11173
|
IntegrationService5["SLACK"] = "slack";
|
|
@@ -15127,7 +15124,11 @@ function CategoryIconButton({ icon, label, active }) {
|
|
|
15127
15124
|
import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
15128
15125
|
function PreviewCard({
|
|
15129
15126
|
onRead,
|
|
15127
|
+
read,
|
|
15130
15128
|
onSelected,
|
|
15129
|
+
selected,
|
|
15130
|
+
onChecked,
|
|
15131
|
+
checked,
|
|
15131
15132
|
service,
|
|
15132
15133
|
subjectLine,
|
|
15133
15134
|
body,
|
|
@@ -15139,33 +15140,6 @@ function PreviewCard({
|
|
|
15139
15140
|
urgencyLevel,
|
|
15140
15141
|
alert
|
|
15141
15142
|
}) {
|
|
15142
|
-
const [selected, setSelected] = useState(false);
|
|
15143
|
-
const [checked, setChecked] = useState(false);
|
|
15144
|
-
const [read, setRead] = useState(false);
|
|
15145
|
-
function intializeState() {
|
|
15146
|
-
}
|
|
15147
|
-
function toggleRead() {
|
|
15148
|
-
if (onRead) {
|
|
15149
|
-
try {
|
|
15150
|
-
onRead();
|
|
15151
|
-
} catch (e) {
|
|
15152
|
-
console.log(`Failed to execute: onRead() | [${e}]`);
|
|
15153
|
-
return;
|
|
15154
|
-
}
|
|
15155
|
-
}
|
|
15156
|
-
setRead(!read);
|
|
15157
|
-
}
|
|
15158
|
-
function toggleSelected() {
|
|
15159
|
-
if (onSelected) {
|
|
15160
|
-
try {
|
|
15161
|
-
onSelected();
|
|
15162
|
-
} catch (e) {
|
|
15163
|
-
console.log(`Failed to execute: onSelected() | [${e}]`);
|
|
15164
|
-
return;
|
|
15165
|
-
}
|
|
15166
|
-
}
|
|
15167
|
-
setSelected(!selected);
|
|
15168
|
-
}
|
|
15169
15143
|
function getColorVariant(urgency) {
|
|
15170
15144
|
switch (urgency) {
|
|
15171
15145
|
case "high" /* HIGH */:
|
|
@@ -15188,20 +15162,12 @@ function PreviewCard({
|
|
|
15188
15162
|
),
|
|
15189
15163
|
onClick: (e) => {
|
|
15190
15164
|
e.stopPropagation();
|
|
15191
|
-
|
|
15192
|
-
|
|
15193
|
-
toggleRead();
|
|
15194
|
-
}
|
|
15165
|
+
onRead && !read && onRead();
|
|
15166
|
+
onSelected && onSelected();
|
|
15195
15167
|
},
|
|
15196
15168
|
children: [
|
|
15197
15169
|
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-4 place-items-center", children: [
|
|
15198
|
-
/* @__PURE__ */ jsx17(
|
|
15199
|
-
SecondaryCheckBox,
|
|
15200
|
-
{
|
|
15201
|
-
active: checked,
|
|
15202
|
-
onClick: () => setChecked(!checked)
|
|
15203
|
-
}
|
|
15204
|
-
),
|
|
15170
|
+
/* @__PURE__ */ jsx17(SecondaryCheckBox, { active: checked, onClick: onChecked }),
|
|
15205
15171
|
/* @__PURE__ */ jsx17(BrandIcon, { service, size: 24 }),
|
|
15206
15172
|
urgencyLevel && /* @__PURE__ */ jsx17(
|
|
15207
15173
|
CategoryIconButton,
|
|
@@ -15747,7 +15713,7 @@ function CategoryIcon({ size = 24, icon, variant }) {
|
|
|
15747
15713
|
}
|
|
15748
15714
|
|
|
15749
15715
|
// src/components/organisms/emails/single_event.tsx
|
|
15750
|
-
import { useEffect, useState
|
|
15716
|
+
import { useEffect, useState } from "react";
|
|
15751
15717
|
|
|
15752
15718
|
// src/components/organisms/intel_card/intel_card.tsx
|
|
15753
15719
|
import clsx6 from "clsx";
|
|
@@ -15818,8 +15784,8 @@ function SingleEvent({
|
|
|
15818
15784
|
body,
|
|
15819
15785
|
startExpanded
|
|
15820
15786
|
}) {
|
|
15821
|
-
const [selected, setSelected] =
|
|
15822
|
-
const [expanded, setExpanded] =
|
|
15787
|
+
const [selected, setSelected] = useState(false);
|
|
15788
|
+
const [expanded, setExpanded] = useState(false);
|
|
15823
15789
|
useEffect(() => {
|
|
15824
15790
|
if (startExpanded) {
|
|
15825
15791
|
setExpanded(true);
|
|
@@ -15962,7 +15928,7 @@ function EmailBody({
|
|
|
15962
15928
|
|
|
15963
15929
|
// src/components/organisms/chat_messages/chat_bubble/chat_bubble.tsx
|
|
15964
15930
|
import clsx9 from "clsx";
|
|
15965
|
-
import { useEffect as useEffect2, useState as
|
|
15931
|
+
import { useEffect as useEffect2, useState as useState2 } from "react";
|
|
15966
15932
|
|
|
15967
15933
|
// src/components/atoms/emoji_pill/emoji_pill.tsx
|
|
15968
15934
|
var import_emoji_dictionary = __toESM(require_lib7());
|
|
@@ -15994,9 +15960,9 @@ function ChatBubble({
|
|
|
15994
15960
|
timestamp,
|
|
15995
15961
|
emojis
|
|
15996
15962
|
}) {
|
|
15997
|
-
const [expanded, setExpanded] =
|
|
15998
|
-
const [truncatedText, setTruncatedText] =
|
|
15999
|
-
const [uniqueEmojis, setUniqueEmojis] =
|
|
15963
|
+
const [expanded, setExpanded] = useState2(false);
|
|
15964
|
+
const [truncatedText, setTruncatedText] = useState2(false);
|
|
15965
|
+
const [uniqueEmojis, setUniqueEmojis] = useState2(
|
|
16000
15966
|
/* @__PURE__ */ new Map()
|
|
16001
15967
|
);
|
|
16002
15968
|
const textLen = text?.length;
|
|
@@ -16443,12 +16409,12 @@ function Search({
|
|
|
16443
16409
|
}
|
|
16444
16410
|
|
|
16445
16411
|
// src/components/organisms/search_bar/search_bar.tsx
|
|
16446
|
-
import { useState as
|
|
16412
|
+
import { useState as useState3, useEffect as useEffect3 } from "react";
|
|
16447
16413
|
import { jsx as jsx38, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
16448
16414
|
function SearchBar() {
|
|
16449
|
-
const [query, setQuery] =
|
|
16450
|
-
const [state, setState] =
|
|
16451
|
-
const [results, setResults] =
|
|
16415
|
+
const [query, setQuery] = useState3("");
|
|
16416
|
+
const [state, setState] = useState3("inactive");
|
|
16417
|
+
const [results, setResults] = useState3([]);
|
|
16452
16418
|
useEffect3(() => {
|
|
16453
16419
|
if (query === "") {
|
|
16454
16420
|
setState("inactive");
|