qt-ui-kit 1.0.93 → 1.0.95
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +43 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15364,7 +15364,7 @@ function ExternalLink({
|
|
|
15364
15364
|
|
|
15365
15365
|
// src/components/atoms/icons/base_icons/CheckBox.tsx
|
|
15366
15366
|
import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
15367
|
-
function CheckBox({ size = 24, fillColor }) {
|
|
15367
|
+
function CheckBox({ size = 24, color, fillColor }) {
|
|
15368
15368
|
const getIconData = () => {
|
|
15369
15369
|
let viewBox2 = "";
|
|
15370
15370
|
let scale = 1;
|
|
@@ -15400,7 +15400,7 @@ function CheckBox({ size = 24, fillColor }) {
|
|
|
15400
15400
|
"path",
|
|
15401
15401
|
{
|
|
15402
15402
|
d: "M11.25 4.5V6.75H24.75V4.5V2.25H11.25V4.5ZM31.5 11.25H29.25V24.75H31.5H33.75V11.25H31.5ZM24.75 31.5V29.25H11.25V31.5V33.75H24.75V31.5ZM4.5 24.75H6.75V11.25H4.5H2.25V24.75H4.5ZM11.25 31.5V29.25C8.76472 29.25 6.75 27.2353 6.75 24.75H4.5H2.25C2.25 29.7206 6.27944 33.75 11.25 33.75V31.5ZM31.5 24.75H29.25C29.25 27.2353 27.2353 29.25 24.75 29.25V31.5V33.75C29.7206 33.75 33.75 29.7206 33.75 24.75H31.5ZM24.75 4.5V6.75C27.2353 6.75 29.25 8.76472 29.25 11.25H31.5H33.75C33.75 6.27944 29.7206 2.25 24.75 2.25V4.5ZM11.25 4.5V2.25C6.27944 2.25 2.25 6.27944 2.25 11.25H4.5H6.75C6.75 8.76472 8.76472 6.75 11.25 6.75V4.5Z",
|
|
15403
|
-
fill:
|
|
15403
|
+
fill: color,
|
|
15404
15404
|
mask: `url(#${maskId})`
|
|
15405
15405
|
}
|
|
15406
15406
|
),
|
|
@@ -15408,7 +15408,7 @@ function CheckBox({ size = 24, fillColor }) {
|
|
|
15408
15408
|
"path",
|
|
15409
15409
|
{
|
|
15410
15410
|
d: "M13.9502 18L16.6502 20.7L22.0502 15.3",
|
|
15411
|
-
stroke:
|
|
15411
|
+
stroke: color,
|
|
15412
15412
|
strokeWidth: "2.25",
|
|
15413
15413
|
strokeLinecap: "round",
|
|
15414
15414
|
strokeLinejoin: "round"
|
|
@@ -15507,7 +15507,7 @@ function PreviewCard({
|
|
|
15507
15507
|
}
|
|
15508
15508
|
}
|
|
15509
15509
|
) }),
|
|
15510
|
-
/* @__PURE__ */ jsxs14("div", { className: "flex gap-
|
|
15510
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex gap-4 place-items-center", children: [
|
|
15511
15511
|
/* @__PURE__ */ jsx19(
|
|
15512
15512
|
"div",
|
|
15513
15513
|
{
|
|
@@ -15518,13 +15518,14 @@ function PreviewCard({
|
|
|
15518
15518
|
children: /* @__PURE__ */ jsx19(
|
|
15519
15519
|
CheckBox,
|
|
15520
15520
|
{
|
|
15521
|
-
size:
|
|
15522
|
-
|
|
15521
|
+
size: 24,
|
|
15522
|
+
color: "#82818E",
|
|
15523
|
+
fillColor: checked ? "#82818E" : void 0
|
|
15523
15524
|
}
|
|
15524
15525
|
)
|
|
15525
15526
|
}
|
|
15526
15527
|
),
|
|
15527
|
-
/* @__PURE__ */ jsx19("div", { onClick: onClickGoToSource, children: /* @__PURE__ */ jsx19(ExternalLink, { size:
|
|
15528
|
+
/* @__PURE__ */ jsx19("div", { onClick: onClickGoToSource, children: /* @__PURE__ */ jsx19(ExternalLink, { size: 24, color: "#82818E" }) })
|
|
15528
15529
|
] })
|
|
15529
15530
|
] }) })
|
|
15530
15531
|
] })
|
|
@@ -16314,7 +16315,7 @@ import { useEffect as useEffect2, useState as useState4 } from "react";
|
|
|
16314
16315
|
var import_emoji_dictionary = __toESM(require_lib7());
|
|
16315
16316
|
import { jsx as jsx32, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
16316
16317
|
function EmojiPill({ emoji, count }) {
|
|
16317
|
-
return /* @__PURE__ */ jsxs25("div", { className: "flex rounded-2xl bg-qtneutral-300 w-min py-0.5 px-4 place-items-center place-content-center gap-1", children: [
|
|
16318
|
+
return /* @__PURE__ */ jsxs25("div", { className: "flex rounded-2xl bg-qtneutral-300 w-min py-0.5 px-4 place-items-center place-content-center gap-1 select-none", children: [
|
|
16318
16319
|
emoji && import_emoji_dictionary.default.getUnicode(emoji),
|
|
16319
16320
|
/* @__PURE__ */ jsx32("div", { className: "label-3-bold text-qtneutral-900", children: count })
|
|
16320
16321
|
] });
|
|
@@ -16324,18 +16325,34 @@ function EmojiPill({ emoji, count }) {
|
|
|
16324
16325
|
import clsx8 from "clsx";
|
|
16325
16326
|
import ReactMarkdown from "react-markdown";
|
|
16326
16327
|
import remarkGfm from "remark-gfm";
|
|
16328
|
+
var import_emoji_dictionary2 = __toESM(require_lib7());
|
|
16327
16329
|
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
16328
|
-
function MarkdownRenderer({
|
|
16329
|
-
|
|
16330
|
-
|
|
16331
|
-
|
|
16332
|
-
|
|
16333
|
-
|
|
16334
|
-
|
|
16335
|
-
|
|
16336
|
-
|
|
16330
|
+
function MarkdownRenderer({
|
|
16331
|
+
content,
|
|
16332
|
+
truncated,
|
|
16333
|
+
integration = "slack" /* SLACK */
|
|
16334
|
+
}) {
|
|
16335
|
+
const processedContent = integration === "slack" /* SLACK */ ? parseSlackText(content) : content;
|
|
16336
|
+
return /* @__PURE__ */ jsx33("div", { className: clsx8("markdown", truncated && "line-clamp-3"), children: /* @__PURE__ */ jsx33(ReactMarkdown, { remarkPlugins: [remarkGfm], children: processedContent }) });
|
|
16337
|
+
}
|
|
16338
|
+
function parseSlackText(text) {
|
|
16339
|
+
text = text.replace(
|
|
16340
|
+
/<@([A-Z0-9]+)(\|([^>]+))?>/g,
|
|
16341
|
+
(_, userId, __, userName) => {
|
|
16342
|
+
return `@${userName || "UserNameNotFound"}`;
|
|
16337
16343
|
}
|
|
16338
16344
|
);
|
|
16345
|
+
text = text.replace(/<([^|>]+)\|([^>]+)>/g, (_, url, label) => {
|
|
16346
|
+
return `[${label}](${url})`;
|
|
16347
|
+
});
|
|
16348
|
+
text = text.replace(/<([^|>]+)>/g, (_, url) => {
|
|
16349
|
+
return `<${url}>`;
|
|
16350
|
+
});
|
|
16351
|
+
text = text.replace(/:([a-zA-Z0-9_+-]+):/g, (match2, emojiName) => {
|
|
16352
|
+
const emoji = import_emoji_dictionary2.default.getUnicode(emojiName);
|
|
16353
|
+
return emoji || match2;
|
|
16354
|
+
});
|
|
16355
|
+
return text;
|
|
16339
16356
|
}
|
|
16340
16357
|
|
|
16341
16358
|
// src/components/organisms/chat_messages/chat_bubble/chat_bubble.tsx
|
|
@@ -16345,7 +16362,7 @@ function ChatBubble({
|
|
|
16345
16362
|
text,
|
|
16346
16363
|
outbound,
|
|
16347
16364
|
name,
|
|
16348
|
-
|
|
16365
|
+
images,
|
|
16349
16366
|
timestamp,
|
|
16350
16367
|
emojis,
|
|
16351
16368
|
onExternal
|
|
@@ -16418,7 +16435,7 @@ function ChatBubble({
|
|
|
16418
16435
|
children: `${!expanded ? "Show" : "Hide"} full message`
|
|
16419
16436
|
}
|
|
16420
16437
|
),
|
|
16421
|
-
|
|
16438
|
+
images && images.length > 0 && images.map((img) => /* @__PURE__ */ jsx34("img", { src: img, alt: "", className: "rounded-xl" })),
|
|
16422
16439
|
/* @__PURE__ */ jsxs26("div", { className: "flex gap-2", children: [
|
|
16423
16440
|
/* @__PURE__ */ jsx34(
|
|
16424
16441
|
"div",
|
|
@@ -16447,7 +16464,7 @@ function ChatBody({ messages }) {
|
|
|
16447
16464
|
summary: msg.summary,
|
|
16448
16465
|
text: msg.body,
|
|
16449
16466
|
outbound: msg.outbound,
|
|
16450
|
-
|
|
16467
|
+
images: msg.images,
|
|
16451
16468
|
name: msg.name,
|
|
16452
16469
|
timestamp: msg.timeStamp,
|
|
16453
16470
|
emojis: msg.emojis,
|
|
@@ -17226,7 +17243,7 @@ var fakeMessages = [
|
|
|
17226
17243
|
id: "123",
|
|
17227
17244
|
name: "Sr. Issac Newton",
|
|
17228
17245
|
timeStamp: "Today @ 11:45 AM",
|
|
17229
|
-
body: "
|
|
17246
|
+
body: " Sorry gang I was deep in a task I didn\u2019t see this ! Hope it went well :slightly_smiling_face: I\u2019m sure details can be relayed <@U052ZRJD9V1|Vera Worri> Please help me check that the click-through agreement is working appropriately in production. The goal is to have each new user click-through to agree to our Cloud Services Agreement one time. Ivan tells me that <https://qtaloservices.com> will ask you 2x times to review our Privacy Policy and TOS. I tried logging out and back in, but didn't get prompted to agree to anything.",
|
|
17230
17247
|
summary: "Client pitch deck needs final review today.",
|
|
17231
17248
|
emojis: ["fire", "fire", "grinning", "fish"],
|
|
17232
17249
|
outbound: true
|
|
@@ -17238,7 +17255,7 @@ var fakeMessages = [
|
|
|
17238
17255
|
body: "I\u2019ve confirmed the offsite meeting with the engineering leads. It will be held at the downtown conference center and lunch will be provided. Let me know if you have dietary needs. I\u2019ve confirmed the offsite meeting with the engineering leads. It will be held at the downtown conference center and lunch will be provided. Let me know if you have dietary needs. I\u2019ve confirmed the offsite meeting with the engineering leads. It will be held at the downtown conference center and lunch will be provided. Let me know if you have dietary needs. I\u2019ve confirmed the offsite meeting with the engineering leads. It will be held at the downtown conference center and lunch will be provided. Let me know if you have dietary needs. I\u2019ve confirmed the offsite meeting with the engineering leads. It will be held at the downtown conference center and lunch will be provided. Let me know if you have dietary needs.",
|
|
17239
17256
|
summary: "Offsite meeting confirmed for engineering leads.",
|
|
17240
17257
|
emojis: ["fire", "+1", "canada", "canada", "fish"],
|
|
17241
|
-
|
|
17258
|
+
images: ["https://placehold.co/600x400", "https://placehold.co/600x400"],
|
|
17242
17259
|
outbound: true
|
|
17243
17260
|
},
|
|
17244
17261
|
{
|
|
@@ -17265,7 +17282,7 @@ This is a *markdown* **example**.
|
|
|
17265
17282
|
timeStamp: "Monday, 19th May @ 9:30 AM",
|
|
17266
17283
|
body: "The supplier in Shenzhen confirmed they can expedite our next shipment. They'll need final approval by Thursday to ensure arrival before the end of the month.",
|
|
17267
17284
|
summary: "Supplier can expedite shipment if approved by Thursday.",
|
|
17268
|
-
|
|
17285
|
+
images: ["https://placehold.co/600x400"],
|
|
17269
17286
|
outbound: false
|
|
17270
17287
|
},
|
|
17271
17288
|
{
|
|
@@ -17282,7 +17299,7 @@ This is a *markdown* **example**.
|
|
|
17282
17299
|
timeStamp: "Today @ 10:00 AM",
|
|
17283
17300
|
body: "Just wrapped up the investor Q&A session. Feedback was positive, especially on the projected growth numbers. A few asked about regulatory concerns\u2014I'll send a memo tomorrow.",
|
|
17284
17301
|
summary: "Investors responded positively, with a few concerns.",
|
|
17285
|
-
|
|
17302
|
+
images: ["https://placehold.co/600x400"],
|
|
17286
17303
|
emojis: ["fire", "+1", "canada", "canada", "fish"],
|
|
17287
17304
|
outbound: false
|
|
17288
17305
|
},
|
|
@@ -17292,7 +17309,7 @@ This is a *markdown* **example**.
|
|
|
17292
17309
|
timeStamp: "Thursday @ 6:15 PM",
|
|
17293
17310
|
body: "Legal has flagged a few clauses in the new vendor agreement that may conflict with our IP policy. Recommend we pause signing until we clarify points 4 and 7.",
|
|
17294
17311
|
summary: "Legal review suggests pausing vendor agreement.",
|
|
17295
|
-
|
|
17312
|
+
images: ["https://placehold.co/600x400"],
|
|
17296
17313
|
outbound: true
|
|
17297
17314
|
},
|
|
17298
17315
|
{
|
|
@@ -17309,7 +17326,7 @@ This is a *markdown* **example**.
|
|
|
17309
17326
|
timeStamp: "Monday, 26th May @ 1:45 PM",
|
|
17310
17327
|
body: "Reminder that the quarterly town hall is scheduled for the last Monday of the month. We'll cover performance metrics, upcoming hires, and the office reopening plan.",
|
|
17311
17328
|
summary: "Quarterly town hall to discuss performance and reopening.",
|
|
17312
|
-
|
|
17329
|
+
images: ["https://placehold.co/600x400"],
|
|
17313
17330
|
outbound: true
|
|
17314
17331
|
},
|
|
17315
17332
|
{
|