@designa8/vibedesign-tinkerly-dryrun-ds-176b 0.0.1 → 0.0.3
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/README.md +1 -1
- package/dist/index.cjs +262 -61
- package/dist/index.js +262 -61
- package/dist/styles.css +20 -0
- package/package.json +1 -1
- package/src/organisms/ChatWindow/ChatWindow.tsx +422 -101
- package/src/organisms/ChatWindow/index.ts +9 -1
- package/src/organisms/ChatWindow/preview.tsx +106 -37
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-tinkerly-dryrun-ds-176b
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.0.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.0.3**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -7613,24 +7613,41 @@ Carousel.displayName = "Carousel";
|
|
|
7613
7613
|
|
|
7614
7614
|
// virtual-pkg:src/organisms/ChatWindow/ChatWindow.tsx
|
|
7615
7615
|
var React49 = __toESM(require("react"));
|
|
7616
|
+
var import_react_dom7 = require("react-dom");
|
|
7616
7617
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
7617
7618
|
var cn33 = (...parts) => parts.filter(Boolean).join(" ");
|
|
7619
|
+
var ASSISTANT_ACTIONS = [
|
|
7620
|
+
{ action: "reply", icon: "reply", label: "Reply to this message" },
|
|
7621
|
+
{ action: "like", icon: "thumbs-up", label: "Good response" },
|
|
7622
|
+
{ action: "dislike", icon: "thumbs-down", label: "Bad response" },
|
|
7623
|
+
{ action: "copy", icon: "copy", label: "Copy message" },
|
|
7624
|
+
{ action: "more", icon: "ellipsis", label: "More options" }
|
|
7625
|
+
];
|
|
7618
7626
|
var ChatWindow = React49.forwardRef(
|
|
7619
7627
|
({
|
|
7628
|
+
variant = "channel",
|
|
7620
7629
|
channelName = "Project Kickoff",
|
|
7630
|
+
title,
|
|
7631
|
+
subtitle,
|
|
7632
|
+
headerActions = [],
|
|
7633
|
+
onTitleClick,
|
|
7634
|
+
titleMenuItems = [],
|
|
7621
7635
|
messages = [],
|
|
7622
7636
|
memberCount = 3,
|
|
7623
7637
|
defaultDraft = "",
|
|
7624
7638
|
onSend,
|
|
7625
7639
|
onStartCall,
|
|
7626
7640
|
onOpenChannelMenu,
|
|
7641
|
+
onMessageAction,
|
|
7627
7642
|
className,
|
|
7628
7643
|
...rest
|
|
7629
7644
|
}, ref) => {
|
|
7630
7645
|
const [draft, setDraft] = React49.useState(defaultDraft);
|
|
7631
7646
|
const [reactions, setReactions] = React49.useState({});
|
|
7632
|
-
const
|
|
7633
|
-
const
|
|
7647
|
+
const isAssistant = variant === "assistant";
|
|
7648
|
+
const heading = (isAssistant ? title ?? channelName : channelName) || channelName;
|
|
7649
|
+
const threadLabel = "Conversation in " + heading;
|
|
7650
|
+
const placeholder = "Message " + heading;
|
|
7634
7651
|
const hasDraft = draft.trim().length > 0;
|
|
7635
7652
|
const isEmpty = messages.length === 0;
|
|
7636
7653
|
const isReacted = (message) => {
|
|
@@ -7656,6 +7673,63 @@ var ChatWindow = React49.forwardRef(
|
|
|
7656
7673
|
onSend?.(draft.trim());
|
|
7657
7674
|
setDraft("");
|
|
7658
7675
|
};
|
|
7676
|
+
const threadRef = React49.useRef(null);
|
|
7677
|
+
const [showJump, setShowJump] = React49.useState(false);
|
|
7678
|
+
const measureJump = React49.useCallback(() => {
|
|
7679
|
+
const element = threadRef.current;
|
|
7680
|
+
if (!element) return;
|
|
7681
|
+
const distance = element.scrollHeight - element.scrollTop - element.clientHeight;
|
|
7682
|
+
setShowJump(distance > 48);
|
|
7683
|
+
}, []);
|
|
7684
|
+
React49.useEffect(() => {
|
|
7685
|
+
if (!isAssistant) return;
|
|
7686
|
+
measureJump();
|
|
7687
|
+
}, [isAssistant, messages.length, measureJump]);
|
|
7688
|
+
const jumpToLatest = () => {
|
|
7689
|
+
const element = threadRef.current;
|
|
7690
|
+
if (!element) return;
|
|
7691
|
+
element.scrollTo({ top: element.scrollHeight, behavior: "smooth" });
|
|
7692
|
+
setShowJump(false);
|
|
7693
|
+
};
|
|
7694
|
+
const menuId = React49.useId();
|
|
7695
|
+
const titleRef = React49.useRef(null);
|
|
7696
|
+
const menuRef = React49.useRef(null);
|
|
7697
|
+
const [menuOpen, setMenuOpen] = React49.useState(false);
|
|
7698
|
+
const [menuPos, setMenuPos] = React49.useState({
|
|
7699
|
+
top: 0,
|
|
7700
|
+
left: 0
|
|
7701
|
+
});
|
|
7702
|
+
const hasTitleMenu = isAssistant && titleMenuItems.length > 0;
|
|
7703
|
+
const pressTitle = () => {
|
|
7704
|
+
onTitleClick?.();
|
|
7705
|
+
if (!hasTitleMenu) return;
|
|
7706
|
+
if (!menuOpen && titleRef.current) {
|
|
7707
|
+
const rect = titleRef.current.getBoundingClientRect();
|
|
7708
|
+
setMenuPos({ top: rect.bottom + 8, left: rect.left });
|
|
7709
|
+
}
|
|
7710
|
+
setMenuOpen((previous) => !previous);
|
|
7711
|
+
};
|
|
7712
|
+
React49.useEffect(() => {
|
|
7713
|
+
if (!menuOpen) return;
|
|
7714
|
+
const onPointerDown = (event) => {
|
|
7715
|
+
const target = event.target;
|
|
7716
|
+
if (menuRef.current?.contains(target)) return;
|
|
7717
|
+
if (titleRef.current?.contains(target)) return;
|
|
7718
|
+
setMenuOpen(false);
|
|
7719
|
+
};
|
|
7720
|
+
const onKeyDown = (event) => {
|
|
7721
|
+
if (event.key === "Escape") setMenuOpen(false);
|
|
7722
|
+
};
|
|
7723
|
+
const close = () => setMenuOpen(false);
|
|
7724
|
+
document.addEventListener("mousedown", onPointerDown);
|
|
7725
|
+
document.addEventListener("keydown", onKeyDown);
|
|
7726
|
+
window.addEventListener("resize", close);
|
|
7727
|
+
return () => {
|
|
7728
|
+
document.removeEventListener("mousedown", onPointerDown);
|
|
7729
|
+
document.removeEventListener("keydown", onKeyDown);
|
|
7730
|
+
window.removeEventListener("resize", close);
|
|
7731
|
+
};
|
|
7732
|
+
}, [menuOpen]);
|
|
7659
7733
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
7660
7734
|
"div",
|
|
7661
7735
|
{
|
|
@@ -7666,7 +7740,45 @@ var ChatWindow = React49.forwardRef(
|
|
|
7666
7740
|
),
|
|
7667
7741
|
...rest,
|
|
7668
7742
|
children: [
|
|
7669
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-base border-b border-hairline px-base py-sm", children: [
|
|
7743
|
+
isAssistant ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-base border-b border-hairline px-base py-sm", children: [
|
|
7744
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-col", children: [
|
|
7745
|
+
hasTitleMenu ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7746
|
+
Button,
|
|
7747
|
+
{
|
|
7748
|
+
ref: titleRef,
|
|
7749
|
+
chrome: "none",
|
|
7750
|
+
variant: "ghost",
|
|
7751
|
+
size: "sm",
|
|
7752
|
+
justify: "start",
|
|
7753
|
+
onClick: pressTitle,
|
|
7754
|
+
className: "h-auto! max-w-full gap-xxs px-0! py-0!",
|
|
7755
|
+
labelClassName: "text-body-md font-weight-label-md text-ink",
|
|
7756
|
+
trailingIcon: "chevron-down",
|
|
7757
|
+
trailingIconClassName: cn33(
|
|
7758
|
+
"shrink-0 text-muted transition-transform duration-200 ease-out",
|
|
7759
|
+
menuOpen && "rotate-180"
|
|
7760
|
+
),
|
|
7761
|
+
"aria-haspopup": "menu",
|
|
7762
|
+
"aria-expanded": menuOpen,
|
|
7763
|
+
"aria-controls": menuId,
|
|
7764
|
+
children: heading
|
|
7765
|
+
}
|
|
7766
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h2", { className: "truncate text-body-md font-weight-label-md text-ink", children: heading }),
|
|
7767
|
+
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "mt-xxs truncate text-caption text-muted", children: subtitle }) : null
|
|
7768
|
+
] }),
|
|
7769
|
+
headerActions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex shrink-0 items-center gap-xs", children: headerActions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7770
|
+
IconButton,
|
|
7771
|
+
{
|
|
7772
|
+
icon: action.icon,
|
|
7773
|
+
label: action.label,
|
|
7774
|
+
variant: "ghost",
|
|
7775
|
+
size: "sm",
|
|
7776
|
+
shape: "rounded",
|
|
7777
|
+
onClick: action.onClick
|
|
7778
|
+
},
|
|
7779
|
+
action.label
|
|
7780
|
+
)) }) : null
|
|
7781
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-base border-b border-hairline px-base py-sm", children: [
|
|
7670
7782
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 items-center gap-sm", children: [
|
|
7671
7783
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { name: "hash", size: 18, tone: "inherit", className: "text-body" }),
|
|
7672
7784
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h2", { className: "truncate text-body-md font-weight-label-md text-ink", children: channelName })
|
|
@@ -7706,52 +7818,105 @@ var ChatWindow = React49.forwardRef(
|
|
|
7706
7818
|
)
|
|
7707
7819
|
] })
|
|
7708
7820
|
] }),
|
|
7709
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.
|
|
7821
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
7710
7822
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7711
|
-
|
|
7823
|
+
"div",
|
|
7712
7824
|
{
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7825
|
+
ref: threadRef,
|
|
7826
|
+
onScroll: measureJump,
|
|
7827
|
+
className: "min-h-0 flex-1 overflow-y-auto px-base py-lg",
|
|
7828
|
+
children: isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col items-center justify-center px-md text-center", children: [
|
|
7829
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7830
|
+
Icon,
|
|
7831
|
+
{
|
|
7832
|
+
name: "message-circle",
|
|
7833
|
+
size: 44,
|
|
7834
|
+
tone: "primary",
|
|
7835
|
+
strokeWidth: 1.5
|
|
7836
|
+
}
|
|
7837
|
+
),
|
|
7838
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "mt-md text-body-md font-weight-label-md text-ink", children: isAssistant ? "Ask for anything" : "Start a conversation" }),
|
|
7839
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "mt-xs max-w-[17rem] text-body-sm text-muted", children: isAssistant ? "Summaries, plans and comparisons land here as the thread grows." : "Share updates, ask questions, and keep your team in sync." })
|
|
7840
|
+
] }) : isAssistant ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("ul", { "aria-label": threadLabel, className: "flex flex-col gap-lg", children: messages.map((message) => {
|
|
7841
|
+
const role = message.role ?? "assistant";
|
|
7842
|
+
if (role === "user") {
|
|
7843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("li", { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "ml-auto max-w-full rounded-lg bg-primary-soft px-base py-sm text-body-md text-ink", children: message.content ?? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "whitespace-pre-line", children: message.text }) }) }, message.id);
|
|
7844
|
+
}
|
|
7845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("li", { className: "flex flex-col", children: [
|
|
7846
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex flex-col gap-sm text-body-md text-body", children: message.content ?? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "whitespace-pre-line", children: message.text }) }),
|
|
7847
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "mt-xs flex items-center gap-xxs", children: ASSISTANT_ACTIONS.map((item) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7848
|
+
IconButton,
|
|
7849
|
+
{
|
|
7850
|
+
icon: item.icon,
|
|
7851
|
+
label: item.label,
|
|
7852
|
+
variant: "ghost",
|
|
7853
|
+
size: "sm",
|
|
7854
|
+
shape: "rounded",
|
|
7855
|
+
onClick: () => onMessageAction?.(message.id, item.action)
|
|
7856
|
+
},
|
|
7857
|
+
item.action
|
|
7858
|
+
)) })
|
|
7859
|
+
] }, message.id);
|
|
7860
|
+
}) }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("ul", { "aria-label": threadLabel, className: "flex flex-col gap-lg", children: messages.map((message) => {
|
|
7861
|
+
const reacted = isReacted(message);
|
|
7862
|
+
const total = reactionTotal(message);
|
|
7863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("li", { className: "flex items-start gap-md", children: [
|
|
7864
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7865
|
+
Avatar,
|
|
7866
|
+
{
|
|
7867
|
+
size: "sm",
|
|
7868
|
+
name: message.author ?? "",
|
|
7869
|
+
src: message.avatarSrc,
|
|
7870
|
+
tone: message.avatarTone ?? "neutral"
|
|
7871
|
+
}
|
|
7872
|
+
),
|
|
7873
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
7874
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-wrap items-baseline gap-sm", children: [
|
|
7875
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "text-body-md font-weight-label-md text-ink", children: message.author }),
|
|
7876
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "text-caption text-muted", children: message.time })
|
|
7877
|
+
] }),
|
|
7878
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "mt-xxs text-body-md text-body", children: message.text }),
|
|
7879
|
+
total > 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "mt-sm", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7880
|
+
Chip,
|
|
7881
|
+
{
|
|
7882
|
+
variant: reacted ? "selected" : "default",
|
|
7883
|
+
size: "sm",
|
|
7884
|
+
leadingIcon: "thumbs-up",
|
|
7885
|
+
pressed: reacted,
|
|
7886
|
+
label: (reacted ? "Remove reaction" : "Add reaction") + ", " + total + " total",
|
|
7887
|
+
onClick: () => toggleReaction(message),
|
|
7888
|
+
children: total
|
|
7889
|
+
}
|
|
7890
|
+
) }) : null
|
|
7891
|
+
] })
|
|
7892
|
+
] }, message.id);
|
|
7893
|
+
}) })
|
|
7717
7894
|
}
|
|
7718
7895
|
),
|
|
7719
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
name: message.author,
|
|
7730
|
-
src: message.avatarSrc,
|
|
7731
|
-
tone: message.avatarTone ?? "neutral"
|
|
7732
|
-
}
|
|
7733
|
-
),
|
|
7734
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
7735
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-wrap items-baseline gap-sm", children: [
|
|
7736
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "text-body-md font-weight-label-md text-ink", children: message.author }),
|
|
7737
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "text-caption text-muted", children: message.time })
|
|
7738
|
-
] }),
|
|
7739
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "mt-xxs text-body-md text-body", children: message.text }),
|
|
7740
|
-
total > 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "mt-sm", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7741
|
-
Chip,
|
|
7896
|
+
isAssistant ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "pointer-events-none absolute inset-x-0 bottom-sm flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7897
|
+
"div",
|
|
7898
|
+
{
|
|
7899
|
+
className: cn33(
|
|
7900
|
+
"transition duration-200 ease-out",
|
|
7901
|
+
showJump ? "pointer-events-auto translate-y-0 opacity-100" : "translate-y-1 opacity-0"
|
|
7902
|
+
),
|
|
7903
|
+
style: { zIndex: "var(--z-sticky, 1100)" },
|
|
7904
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7905
|
+
IconButton,
|
|
7742
7906
|
{
|
|
7743
|
-
|
|
7907
|
+
icon: "arrow-down",
|
|
7908
|
+
label: "Scroll to the latest message",
|
|
7909
|
+
variant: "outline",
|
|
7744
7910
|
size: "sm",
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
children: total
|
|
7911
|
+
shape: "circle",
|
|
7912
|
+
onClick: jumpToLatest,
|
|
7913
|
+
tabIndex: showJump ? 0 : -1,
|
|
7914
|
+
"aria-hidden": showJump ? void 0 : true
|
|
7750
7915
|
}
|
|
7751
|
-
)
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7916
|
+
)
|
|
7917
|
+
}
|
|
7918
|
+
) }) : null
|
|
7919
|
+
] }),
|
|
7755
7920
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
7756
7921
|
"form",
|
|
7757
7922
|
{
|
|
@@ -7861,7 +8026,43 @@ var ChatWindow = React49.forwardRef(
|
|
|
7861
8026
|
)
|
|
7862
8027
|
]
|
|
7863
8028
|
}
|
|
7864
|
-
)
|
|
8029
|
+
),
|
|
8030
|
+
hasTitleMenu ? (0, import_react_dom7.createPortal)(
|
|
8031
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
8032
|
+
"div",
|
|
8033
|
+
{
|
|
8034
|
+
ref: menuRef,
|
|
8035
|
+
id: menuId,
|
|
8036
|
+
role: "menu",
|
|
8037
|
+
"aria-label": heading + " options",
|
|
8038
|
+
"data-state": menuOpen ? "open" : "closed",
|
|
8039
|
+
className: cn33(
|
|
8040
|
+
"fixed flex w-56 flex-col gap-xxs rounded-md border border-hairline bg-surface p-xxs shadow-overlay",
|
|
8041
|
+
"origin-top transition duration-200 ease-out",
|
|
8042
|
+
"data-[state=open]:translate-y-0 data-[state=open]:opacity-100",
|
|
8043
|
+
"data-[state=closed]:pointer-events-none data-[state=closed]:-translate-y-1 data-[state=closed]:opacity-0"
|
|
8044
|
+
),
|
|
8045
|
+
style: {
|
|
8046
|
+
top: menuPos.top,
|
|
8047
|
+
left: menuPos.left,
|
|
8048
|
+
zIndex: "var(--z-popover, 1300)"
|
|
8049
|
+
},
|
|
8050
|
+
children: titleMenuItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
8051
|
+
MenuItem,
|
|
8052
|
+
{
|
|
8053
|
+
label: item.label,
|
|
8054
|
+
icon: item.icon,
|
|
8055
|
+
onClick: () => {
|
|
8056
|
+
setMenuOpen(false);
|
|
8057
|
+
item.onSelect?.();
|
|
8058
|
+
}
|
|
8059
|
+
},
|
|
8060
|
+
item.id
|
|
8061
|
+
))
|
|
8062
|
+
}
|
|
8063
|
+
),
|
|
8064
|
+
document.body
|
|
8065
|
+
) : null
|
|
7865
8066
|
]
|
|
7866
8067
|
}
|
|
7867
8068
|
);
|
|
@@ -10169,7 +10370,7 @@ DateRangePicker.displayName = "DateRangePicker";
|
|
|
10169
10370
|
|
|
10170
10371
|
// virtual-pkg:src/organisms/Drawer/Drawer.tsx
|
|
10171
10372
|
var React55 = __toESM(require("react"));
|
|
10172
|
-
var
|
|
10373
|
+
var import_react_dom8 = require("react-dom");
|
|
10173
10374
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
10174
10375
|
var cn39 = (...parts) => parts.filter(Boolean).join(" ");
|
|
10175
10376
|
var Drawer = React55.forwardRef(
|
|
@@ -10329,9 +10530,9 @@ var Drawer = React55.forwardRef(
|
|
|
10329
10530
|
]
|
|
10330
10531
|
}
|
|
10331
10532
|
);
|
|
10332
|
-
if (embedded) return (0,
|
|
10533
|
+
if (embedded) return (0, import_react_dom8.createPortal)(overlay, container);
|
|
10333
10534
|
if (typeof document === "undefined") return null;
|
|
10334
|
-
return (0,
|
|
10535
|
+
return (0, import_react_dom8.createPortal)(overlay, document.body);
|
|
10335
10536
|
}
|
|
10336
10537
|
);
|
|
10337
10538
|
Drawer.displayName = "Drawer";
|
|
@@ -11499,7 +11700,7 @@ HeroSection.displayName = "HeroSection";
|
|
|
11499
11700
|
|
|
11500
11701
|
// virtual-pkg:src/organisms/Modal/Modal.tsx
|
|
11501
11702
|
var React63 = __toESM(require("react"));
|
|
11502
|
-
var
|
|
11703
|
+
var import_react_dom9 = require("react-dom");
|
|
11503
11704
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
11504
11705
|
var cn47 = (...parts) => parts.filter(Boolean).join(" ");
|
|
11505
11706
|
var sizeClasses6 = {
|
|
@@ -11697,9 +11898,9 @@ var Modal = React63.forwardRef(
|
|
|
11697
11898
|
]
|
|
11698
11899
|
}
|
|
11699
11900
|
);
|
|
11700
|
-
if (embedded) return (0,
|
|
11901
|
+
if (embedded) return (0, import_react_dom9.createPortal)(overlay, portalTarget);
|
|
11701
11902
|
if (typeof document === "undefined") return null;
|
|
11702
|
-
return (0,
|
|
11903
|
+
return (0, import_react_dom9.createPortal)(overlay, document.body);
|
|
11703
11904
|
}
|
|
11704
11905
|
);
|
|
11705
11906
|
Modal.displayName = "Modal";
|
|
@@ -11709,7 +11910,7 @@ var React66 = __toESM(require("react"));
|
|
|
11709
11910
|
|
|
11710
11911
|
// virtual-pkg:src/organisms/NavbarDesktop/NavbarDesktop.tsx
|
|
11711
11912
|
var React64 = __toESM(require("react"));
|
|
11712
|
-
var
|
|
11913
|
+
var import_react_dom10 = require("react-dom");
|
|
11713
11914
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
11714
11915
|
var DEFAULT_TABS = [
|
|
11715
11916
|
{ id: "home", label: "Home", href: "#home" },
|
|
@@ -11967,7 +12168,7 @@ var NavbarDesktop = React64.forwardRef(
|
|
|
11967
12168
|
)
|
|
11968
12169
|
] })
|
|
11969
12170
|
] }),
|
|
11970
|
-
(0,
|
|
12171
|
+
(0, import_react_dom10.createPortal)(
|
|
11971
12172
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
11972
12173
|
"div",
|
|
11973
12174
|
{
|
|
@@ -12034,7 +12235,7 @@ NavbarDesktop.displayName = "NavbarDesktop";
|
|
|
12034
12235
|
|
|
12035
12236
|
// virtual-pkg:src/organisms/NavbarMobile/NavbarMobile.tsx
|
|
12036
12237
|
var React65 = __toESM(require("react"));
|
|
12037
|
-
var
|
|
12238
|
+
var import_react_dom11 = require("react-dom");
|
|
12038
12239
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
12039
12240
|
var DEFAULT_ITEMS = [
|
|
12040
12241
|
{ id: "home", label: "Home", icon: "house", href: "#home" },
|
|
@@ -12321,7 +12522,7 @@ var NavbarMobile = React65.forwardRef(
|
|
|
12321
12522
|
}
|
|
12322
12523
|
)
|
|
12323
12524
|
] }),
|
|
12324
|
-
(0,
|
|
12525
|
+
(0, import_react_dom11.createPortal)(
|
|
12325
12526
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
12326
12527
|
"div",
|
|
12327
12528
|
{
|
|
@@ -12501,7 +12702,7 @@ var React69 = __toESM(require("react"));
|
|
|
12501
12702
|
|
|
12502
12703
|
// virtual-pkg:src/organisms/NavigationMenuDesktop/NavigationMenuDesktop.tsx
|
|
12503
12704
|
var React67 = __toESM(require("react"));
|
|
12504
|
-
var
|
|
12705
|
+
var import_react_dom12 = require("react-dom");
|
|
12505
12706
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
12506
12707
|
var DEFAULT_NAV = [
|
|
12507
12708
|
{
|
|
@@ -12851,7 +13052,7 @@ var NavigationMenuDesktop = React67.forwardRef(
|
|
|
12851
13052
|
]
|
|
12852
13053
|
}
|
|
12853
13054
|
) }),
|
|
12854
|
-
(0,
|
|
13055
|
+
(0, import_react_dom12.createPortal)(
|
|
12855
13056
|
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
12856
13057
|
"div",
|
|
12857
13058
|
{
|
|
@@ -12967,7 +13168,7 @@ NavigationMenuDesktop.displayName = "NavigationMenuDesktop";
|
|
|
12967
13168
|
|
|
12968
13169
|
// virtual-pkg:src/organisms/NavigationMenuMobile/NavigationMenuMobile.tsx
|
|
12969
13170
|
var React68 = __toESM(require("react"));
|
|
12970
|
-
var
|
|
13171
|
+
var import_react_dom13 = require("react-dom");
|
|
12971
13172
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
12972
13173
|
var DEFAULT_ITEMS2 = [
|
|
12973
13174
|
{
|
|
@@ -13317,7 +13518,7 @@ var NavigationMenuMobile = React68.forwardRef(
|
|
|
13317
13518
|
]
|
|
13318
13519
|
}
|
|
13319
13520
|
),
|
|
13320
|
-
(0,
|
|
13521
|
+
(0, import_react_dom13.createPortal)(
|
|
13321
13522
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
13322
13523
|
"div",
|
|
13323
13524
|
{
|
|
@@ -15759,7 +15960,7 @@ SidebarDesktop.displayName = "SidebarDesktop";
|
|
|
15759
15960
|
|
|
15760
15961
|
// virtual-pkg:src/organisms/SidebarMobile/SidebarMobile.tsx
|
|
15761
15962
|
var React78 = __toESM(require("react"));
|
|
15762
|
-
var
|
|
15963
|
+
var import_react_dom14 = require("react-dom");
|
|
15763
15964
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
15764
15965
|
var cn62 = (...parts) => parts.filter(Boolean).join(" ");
|
|
15765
15966
|
var DEFAULT_WORKSPACES2 = [
|
|
@@ -16238,7 +16439,7 @@ var SidebarMobile = React78.forwardRef(
|
|
|
16238
16439
|
...rest,
|
|
16239
16440
|
children: [
|
|
16240
16441
|
bar,
|
|
16241
|
-
hasOpened ? (0,
|
|
16442
|
+
hasOpened ? (0, import_react_dom14.createPortal)(
|
|
16242
16443
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
16243
16444
|
"div",
|
|
16244
16445
|
{
|
|
@@ -17398,7 +17599,7 @@ Wizard.displayName = "Wizard";
|
|
|
17398
17599
|
|
|
17399
17600
|
// virtual-pkg:src/templates/TaskBoardTemplate/TaskBoardTemplate.tsx
|
|
17400
17601
|
var React87 = __toESM(require("react"));
|
|
17401
|
-
var
|
|
17602
|
+
var import_react_dom15 = require("react-dom");
|
|
17402
17603
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
17403
17604
|
var VIEW_OPTIONS = [
|
|
17404
17605
|
{ value: "tasks", label: "Tasks" },
|
|
@@ -17802,7 +18003,7 @@ var TaskBoardTemplate = React87.forwardRef(
|
|
|
17802
18003
|
}
|
|
17803
18004
|
) })
|
|
17804
18005
|
] }),
|
|
17805
|
-
typeof document !== "undefined" ? (0,
|
|
18006
|
+
typeof document !== "undefined" ? (0, import_react_dom15.createPortal)(
|
|
17806
18007
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
17807
18008
|
"div",
|
|
17808
18009
|
{
|