@designa8/vibedesign-tinkerly-dryrun-ds-176b 0.0.5 → 0.0.7
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 +246 -133
- package/dist/index.js +246 -133
- package/dist/styles.css +10 -0
- package/package.json +1 -1
- package/src/molecules/ButtonGroup/ButtonGroup.tsx +167 -3
- package/src/molecules/ButtonGroup/preview.tsx +107 -87
- package/src/organisms/ChatWindow/ChatWindow.tsx +1 -0
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.7**.
|
|
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
|
@@ -3642,9 +3642,12 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
3642
3642
|
|
|
3643
3643
|
// virtual-pkg:src/molecules/ButtonGroup/ButtonGroup.tsx
|
|
3644
3644
|
var React28 = __toESM(require("react"));
|
|
3645
|
+
var import_react_dom = require("react-dom");
|
|
3645
3646
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3646
3647
|
var cn13 = (...parts) => parts.filter(Boolean).join(" ");
|
|
3647
3648
|
var ICON_SIZE = { sm: 16, md: 18 };
|
|
3649
|
+
var TIP_ROOM = 44;
|
|
3650
|
+
var TIP_INSET = 8;
|
|
3648
3651
|
var ButtonGroup = React28.forwardRef(
|
|
3649
3652
|
({
|
|
3650
3653
|
options,
|
|
@@ -3655,6 +3658,7 @@ var ButtonGroup = React28.forwardRef(
|
|
|
3655
3658
|
fullWidth = false,
|
|
3656
3659
|
disabled = false,
|
|
3657
3660
|
label = "View options",
|
|
3661
|
+
tooltipPlacement = "bottom",
|
|
3658
3662
|
className,
|
|
3659
3663
|
...props
|
|
3660
3664
|
}, ref) => {
|
|
@@ -3699,6 +3703,56 @@ var ButtonGroup = React28.forwardRef(
|
|
|
3699
3703
|
grid.querySelectorAll("[data-segment]").forEach((cell) => observer.observe(cell));
|
|
3700
3704
|
return () => observer.disconnect();
|
|
3701
3705
|
}, [selectedIndex, count, size, fullWidth, hasIconOnly]);
|
|
3706
|
+
const generatedId = React28.useId();
|
|
3707
|
+
const tipId = `button-group-tip-${generatedId}`;
|
|
3708
|
+
const tipRef = React28.useRef(null);
|
|
3709
|
+
const [tip, setTip] = React28.useState(null);
|
|
3710
|
+
const [tipOpen, setTipOpen] = React28.useState(false);
|
|
3711
|
+
const hideTip = React28.useCallback(() => setTipOpen(false), []);
|
|
3712
|
+
const showTip = React28.useCallback(
|
|
3713
|
+
(index, trigger) => {
|
|
3714
|
+
const rect = trigger.getBoundingClientRect();
|
|
3715
|
+
const distanceToBottom = window.innerHeight - rect.bottom;
|
|
3716
|
+
const distanceToTop = rect.top;
|
|
3717
|
+
let side = tooltipPlacement;
|
|
3718
|
+
if (side === "bottom" && distanceToBottom < TIP_ROOM && distanceToTop > distanceToBottom) {
|
|
3719
|
+
side = "top";
|
|
3720
|
+
} else if (side === "top" && distanceToTop < TIP_ROOM && distanceToBottom > distanceToTop) {
|
|
3721
|
+
side = "bottom";
|
|
3722
|
+
}
|
|
3723
|
+
setTip({
|
|
3724
|
+
index,
|
|
3725
|
+
center: rect.left + rect.width / 2,
|
|
3726
|
+
edge: side === "bottom" ? rect.bottom : rect.top,
|
|
3727
|
+
side
|
|
3728
|
+
});
|
|
3729
|
+
setTipOpen(true);
|
|
3730
|
+
},
|
|
3731
|
+
[tooltipPlacement]
|
|
3732
|
+
);
|
|
3733
|
+
React28.useLayoutEffect(() => {
|
|
3734
|
+
if (!tipOpen) return;
|
|
3735
|
+
const panel = tipRef.current;
|
|
3736
|
+
if (!panel) return;
|
|
3737
|
+
const half = panel.offsetWidth / 2;
|
|
3738
|
+
const viewport = window.innerWidth;
|
|
3739
|
+
const min = TIP_INSET + half;
|
|
3740
|
+
const max = viewport - TIP_INSET - half;
|
|
3741
|
+
const next = max < min ? viewport / 2 : Math.min(Math.max(tip?.center ?? 0, min), max);
|
|
3742
|
+
setTip(
|
|
3743
|
+
(prev) => prev && Math.abs(prev.center - next) > 0.5 ? { ...prev, center: next } : prev
|
|
3744
|
+
);
|
|
3745
|
+
}, [tipOpen, tip]);
|
|
3746
|
+
React28.useEffect(() => {
|
|
3747
|
+
if (!tipOpen) return;
|
|
3748
|
+
const close = () => setTipOpen(false);
|
|
3749
|
+
window.addEventListener("scroll", close, true);
|
|
3750
|
+
window.addEventListener("resize", close);
|
|
3751
|
+
return () => {
|
|
3752
|
+
window.removeEventListener("scroll", close, true);
|
|
3753
|
+
window.removeEventListener("resize", close);
|
|
3754
|
+
};
|
|
3755
|
+
}, [tipOpen]);
|
|
3702
3756
|
const select = (next) => {
|
|
3703
3757
|
if (disabled) return;
|
|
3704
3758
|
if (value === void 0) setInnerValue(next);
|
|
@@ -3715,121 +3769,179 @@ var ButtonGroup = React28.forwardRef(
|
|
|
3715
3769
|
}
|
|
3716
3770
|
}
|
|
3717
3771
|
};
|
|
3718
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
children: [
|
|
3741
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3742
|
-
"span",
|
|
3743
|
-
{
|
|
3744
|
-
"aria-hidden": "true",
|
|
3745
|
-
className: cn13(
|
|
3746
|
-
"pointer-events-none absolute left-0 top-0 bottom-0 rounded-sm",
|
|
3747
|
-
"transition-[transform,width,opacity,background-color] duration-[220ms] ease-out",
|
|
3748
|
-
"motion-reduce:transition-none",
|
|
3749
|
-
selectedDisabled ? "bg-surface-strong" : "bg-primary-soft",
|
|
3750
|
-
hasSelection && pill ? "opacity-100" : "opacity-0"
|
|
3751
|
-
),
|
|
3752
|
-
style: {
|
|
3753
|
-
width: pill ? pill.width : 0,
|
|
3754
|
-
transform: `translateX(${pill ? pill.x : 0}px)`
|
|
3755
|
-
}
|
|
3756
|
-
}
|
|
3772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { ref, className: cn13("w-full", className), ...props, children: [
|
|
3773
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3774
|
+
"div",
|
|
3775
|
+
{
|
|
3776
|
+
role: "group",
|
|
3777
|
+
"aria-label": label,
|
|
3778
|
+
"aria-disabled": disabled || void 0,
|
|
3779
|
+
className: cn13(
|
|
3780
|
+
"inline-flex p-xxs",
|
|
3781
|
+
"rounded-md border border-hairline bg-surface",
|
|
3782
|
+
"transition duration-150 ease-out",
|
|
3783
|
+
"has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-focus-blue",
|
|
3784
|
+
fullWidth ? "w-full" : "w-auto"
|
|
3785
|
+
),
|
|
3786
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
3787
|
+
"div",
|
|
3788
|
+
{
|
|
3789
|
+
ref: gridRef,
|
|
3790
|
+
className: cn13(
|
|
3791
|
+
"relative grid grid-flow-col items-stretch",
|
|
3792
|
+
fullWidth || !hasIconOnly ? "auto-cols-fr" : "auto-cols-auto",
|
|
3793
|
+
fullWidth && "w-full"
|
|
3757
3794
|
),
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
const seamHidden = isSelected || index + 1 === selectedIndex;
|
|
3762
|
-
const isIconOnly = option.iconOnly === true && option.icon !== void 0;
|
|
3763
|
-
const segment = /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
3764
|
-
Button,
|
|
3795
|
+
children: [
|
|
3796
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3797
|
+
"span",
|
|
3765
3798
|
{
|
|
3766
|
-
|
|
3767
|
-
variant: "ghost",
|
|
3768
|
-
size,
|
|
3769
|
-
square: isIconOnly,
|
|
3770
|
-
fullWidth: !isIconOnly,
|
|
3771
|
-
disabled: isDisabled,
|
|
3772
|
-
"aria-pressed": isSelected,
|
|
3773
|
-
"aria-label": isIconOnly ? option.label : void 0,
|
|
3774
|
-
leadingIcon: option.icon,
|
|
3775
|
-
iconSize: ICON_SIZE[size],
|
|
3776
|
-
onClick: () => select(option.value),
|
|
3777
|
-
onKeyDown: (event) => {
|
|
3778
|
-
if (event.key === "ArrowRight" || event.key === "ArrowDown") {
|
|
3779
|
-
event.preventDefault();
|
|
3780
|
-
step(index, 1);
|
|
3781
|
-
} else if (event.key === "ArrowLeft" || event.key === "ArrowUp") {
|
|
3782
|
-
event.preventDefault();
|
|
3783
|
-
step(index, -1);
|
|
3784
|
-
}
|
|
3785
|
-
},
|
|
3799
|
+
"aria-hidden": "true",
|
|
3786
3800
|
className: cn13(
|
|
3787
|
-
"
|
|
3788
|
-
|
|
3801
|
+
"pointer-events-none absolute left-0 top-0 bottom-0 rounded-sm",
|
|
3802
|
+
"transition-[transform,width,opacity,background-color] duration-[220ms] ease-out",
|
|
3803
|
+
"motion-reduce:transition-none",
|
|
3804
|
+
selectedDisabled ? "bg-surface-strong" : "bg-primary-soft",
|
|
3805
|
+
hasSelection && pill ? "opacity-100" : "opacity-0"
|
|
3789
3806
|
),
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
]
|
|
3807
|
+
style: {
|
|
3808
|
+
width: pill ? pill.width : 0,
|
|
3809
|
+
transform: `translateX(${pill ? pill.x : 0}px)`
|
|
3810
|
+
}
|
|
3795
3811
|
}
|
|
3796
|
-
)
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3812
|
+
),
|
|
3813
|
+
options.map((option, index) => {
|
|
3814
|
+
const isSelected = index === selectedIndex;
|
|
3815
|
+
const isDisabled = disabled || option.disabled === true;
|
|
3816
|
+
const seamHidden = isSelected || index + 1 === selectedIndex;
|
|
3817
|
+
const isIconOnly = option.iconOnly === true && option.icon !== void 0;
|
|
3818
|
+
const tipVisible = isIconOnly && tipOpen && tip !== null && tip.index === index;
|
|
3819
|
+
const segment = /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
3820
|
+
Button,
|
|
3821
|
+
{
|
|
3822
|
+
chrome: "none",
|
|
3823
|
+
variant: "ghost",
|
|
3824
|
+
size,
|
|
3825
|
+
square: isIconOnly,
|
|
3826
|
+
fullWidth: !isIconOnly,
|
|
3827
|
+
disabled: isDisabled,
|
|
3828
|
+
"aria-pressed": isSelected,
|
|
3829
|
+
"aria-label": isIconOnly ? option.label : void 0,
|
|
3830
|
+
"aria-describedby": tipVisible ? tipId : void 0,
|
|
3831
|
+
leadingIcon: option.icon,
|
|
3832
|
+
iconSize: ICON_SIZE[size],
|
|
3833
|
+
onClick: () => select(option.value),
|
|
3834
|
+
onKeyDown: (event) => {
|
|
3835
|
+
if (event.key === "ArrowRight" || event.key === "ArrowDown") {
|
|
3836
|
+
event.preventDefault();
|
|
3837
|
+
step(index, 1);
|
|
3838
|
+
} else if (event.key === "ArrowLeft" || event.key === "ArrowUp") {
|
|
3839
|
+
event.preventDefault();
|
|
3840
|
+
step(index, -1);
|
|
3841
|
+
} else if (event.key === "Escape") {
|
|
3842
|
+
hideTip();
|
|
3814
3843
|
}
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3844
|
+
},
|
|
3845
|
+
className: cn13(
|
|
3846
|
+
"relative z-10 rounded-sm",
|
|
3847
|
+
isDisabled ? "text-muted-soft" : isSelected ? "text-primary" : "text-ink"
|
|
3848
|
+
),
|
|
3849
|
+
labelClassName: option.badge ? void 0 : "truncate",
|
|
3850
|
+
children: [
|
|
3851
|
+
isIconOnly ? void 0 : option.label,
|
|
3852
|
+
option.badge && !isIconOnly ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "ml-xs inline-flex shrink-0 items-center", children: option.badge }) : null
|
|
3853
|
+
]
|
|
3854
|
+
}
|
|
3855
|
+
);
|
|
3856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
3857
|
+
"div",
|
|
3858
|
+
{
|
|
3859
|
+
"data-segment": "",
|
|
3860
|
+
className: "relative flex justify-center",
|
|
3861
|
+
children: [
|
|
3862
|
+
isIconOnly ? (
|
|
3863
|
+
/* The wrapper only drives visibility; the bubble itself is
|
|
3864
|
+
portaled out of the group so nothing can clip it. */
|
|
3865
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3866
|
+
"span",
|
|
3867
|
+
{
|
|
3868
|
+
className: "inline-flex",
|
|
3869
|
+
onMouseEnter: (event) => showTip(index, event.currentTarget),
|
|
3870
|
+
onMouseLeave: hideTip,
|
|
3871
|
+
onFocusCapture: (event) => showTip(index, event.currentTarget),
|
|
3872
|
+
onBlurCapture: hideTip,
|
|
3873
|
+
children: segment
|
|
3874
|
+
}
|
|
3875
|
+
)
|
|
3876
|
+
) : segment,
|
|
3877
|
+
index < count - 1 ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3878
|
+
"span",
|
|
3879
|
+
{
|
|
3880
|
+
"aria-hidden": "true",
|
|
3881
|
+
className: cn13(
|
|
3882
|
+
"pointer-events-none absolute right-0 top-1/2 z-20 w-px -translate-y-1/2",
|
|
3883
|
+
"bg-hairline transition-opacity duration-150 ease-out",
|
|
3884
|
+
size === "sm" ? "h-3" : "h-4",
|
|
3885
|
+
seamHidden ? "opacity-0" : "opacity-100"
|
|
3886
|
+
)
|
|
3887
|
+
}
|
|
3888
|
+
) : null
|
|
3889
|
+
]
|
|
3890
|
+
},
|
|
3891
|
+
option.value
|
|
3892
|
+
);
|
|
3893
|
+
})
|
|
3894
|
+
]
|
|
3895
|
+
}
|
|
3896
|
+
)
|
|
3897
|
+
}
|
|
3898
|
+
),
|
|
3899
|
+
typeof document !== "undefined" && tip ? (0, import_react_dom.createPortal)(
|
|
3900
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3901
|
+
"div",
|
|
3902
|
+
{
|
|
3903
|
+
ref: tipRef,
|
|
3904
|
+
id: tipId,
|
|
3905
|
+
role: "tooltip",
|
|
3906
|
+
"data-state": tipOpen ? "open" : "closed",
|
|
3907
|
+
"aria-hidden": tipOpen ? void 0 : true,
|
|
3908
|
+
style: {
|
|
3909
|
+
position: "fixed",
|
|
3910
|
+
top: tip.edge,
|
|
3911
|
+
left: tip.center,
|
|
3912
|
+
zIndex: "var(--z-popover, 1300)"
|
|
3913
|
+
},
|
|
3914
|
+
className: cn13(
|
|
3915
|
+
"pointer-events-none fixed -translate-x-1/2",
|
|
3916
|
+
tip.side === "bottom" ? "pt-xxs" : "pb-xxs -translate-y-full"
|
|
3917
|
+
),
|
|
3918
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3919
|
+
"span",
|
|
3920
|
+
{
|
|
3921
|
+
"data-state": tipOpen ? "open" : "closed",
|
|
3922
|
+
className: cn13(
|
|
3923
|
+
"inline-flex max-w-max items-center whitespace-nowrap",
|
|
3924
|
+
"rounded-md bg-ink px-md py-sm text-label-md text-canvas shadow-md",
|
|
3925
|
+
"transition duration-200 ease-out",
|
|
3926
|
+
"data-[state=open]:translate-y-0 data-[state=open]:opacity-100",
|
|
3927
|
+
"data-[state=closed]:opacity-0",
|
|
3928
|
+
tip.side === "bottom" ? "data-[state=closed]:-translate-y-1" : "data-[state=closed]:translate-y-1"
|
|
3929
|
+
),
|
|
3930
|
+
children: options[tip.index]?.label
|
|
3931
|
+
}
|
|
3932
|
+
)
|
|
3822
3933
|
}
|
|
3823
|
-
)
|
|
3824
|
-
|
|
3825
|
-
|
|
3934
|
+
),
|
|
3935
|
+
document.body
|
|
3936
|
+
) : null
|
|
3937
|
+
] });
|
|
3826
3938
|
}
|
|
3827
3939
|
);
|
|
3828
3940
|
ButtonGroup.displayName = "ButtonGroup";
|
|
3829
3941
|
|
|
3830
3942
|
// virtual-pkg:src/molecules/CardFooter/CardFooter.tsx
|
|
3831
3943
|
var React30 = __toESM(require("react"));
|
|
3832
|
-
var
|
|
3944
|
+
var import_react_dom2 = require("react-dom");
|
|
3833
3945
|
|
|
3834
3946
|
// virtual-pkg:src/molecules/MenuItem/MenuItem.tsx
|
|
3835
3947
|
var React29 = __toESM(require("react"));
|
|
@@ -4183,7 +4295,7 @@ var CardFooter = React30.forwardRef(
|
|
|
4183
4295
|
) : null,
|
|
4184
4296
|
trailing !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex shrink-0 items-center justify-end", children: trailing }) : null
|
|
4185
4297
|
] }) : null,
|
|
4186
|
-
mounted && hasRows ? (0,
|
|
4298
|
+
mounted && hasRows ? (0, import_react_dom2.createPortal)(
|
|
4187
4299
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
4188
4300
|
"div",
|
|
4189
4301
|
{
|
|
@@ -4331,7 +4443,7 @@ CardHeader.displayName = "CardHeader";
|
|
|
4331
4443
|
|
|
4332
4444
|
// virtual-pkg:src/molecules/Combobox/Combobox.tsx
|
|
4333
4445
|
var React32 = __toESM(require("react"));
|
|
4334
|
-
var
|
|
4446
|
+
var import_react_dom3 = require("react-dom");
|
|
4335
4447
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4336
4448
|
var PANEL_GAP = 4;
|
|
4337
4449
|
var VIEWPORT_MARGIN2 = 8;
|
|
@@ -4601,7 +4713,7 @@ var Combobox = React32.forwardRef(
|
|
|
4601
4713
|
]
|
|
4602
4714
|
}
|
|
4603
4715
|
),
|
|
4604
|
-
(0,
|
|
4716
|
+
(0, import_react_dom3.createPortal)(
|
|
4605
4717
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4606
4718
|
"div",
|
|
4607
4719
|
{
|
|
@@ -4680,7 +4792,7 @@ Combobox.displayName = "Combobox";
|
|
|
4680
4792
|
|
|
4681
4793
|
// virtual-pkg:src/molecules/DatePickerInput/DatePickerInput.tsx
|
|
4682
4794
|
var React33 = __toESM(require("react"));
|
|
4683
|
-
var
|
|
4795
|
+
var import_react_dom4 = require("react-dom");
|
|
4684
4796
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
4685
4797
|
var MONTHS = [
|
|
4686
4798
|
"January",
|
|
@@ -4910,7 +5022,7 @@ var DatePickerInput = React33.forwardRef(
|
|
|
4910
5022
|
]
|
|
4911
5023
|
}
|
|
4912
5024
|
) : null,
|
|
4913
|
-
(0,
|
|
5025
|
+
(0, import_react_dom4.createPortal)(
|
|
4914
5026
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
4915
5027
|
"div",
|
|
4916
5028
|
{
|
|
@@ -5016,7 +5128,7 @@ DatePickerInput.displayName = "DatePickerInput";
|
|
|
5016
5128
|
|
|
5017
5129
|
// virtual-pkg:src/molecules/Dropdown/Dropdown.tsx
|
|
5018
5130
|
var React34 = __toESM(require("react"));
|
|
5019
|
-
var
|
|
5131
|
+
var import_react_dom5 = require("react-dom");
|
|
5020
5132
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
5021
5133
|
var PANEL_GAP3 = 4;
|
|
5022
5134
|
var VIEWPORT_MARGIN4 = 8;
|
|
@@ -5209,7 +5321,7 @@ var Dropdown = React34.forwardRef(
|
|
|
5209
5321
|
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: selectedOption ? "text-ink" : "text-muted", children: selectedOption ? selectedOption.label : placeholder })
|
|
5210
5322
|
}
|
|
5211
5323
|
),
|
|
5212
|
-
(0,
|
|
5324
|
+
(0, import_react_dom5.createPortal)(
|
|
5213
5325
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5214
5326
|
"div",
|
|
5215
5327
|
{
|
|
@@ -6740,7 +6852,7 @@ TableRow.displayName = "TableRow";
|
|
|
6740
6852
|
|
|
6741
6853
|
// virtual-pkg:src/molecules/TaskBoardCard/TaskBoardCard.tsx
|
|
6742
6854
|
var React44 = __toESM(require("react"));
|
|
6743
|
-
var
|
|
6855
|
+
var import_react_dom6 = require("react-dom");
|
|
6744
6856
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
6745
6857
|
var DUE_TONE = {
|
|
6746
6858
|
default: "text-muted",
|
|
@@ -6977,7 +7089,7 @@ var TaskBoardCard = React44.forwardRef(
|
|
|
6977
7089
|
card.assignee ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Avatar, { size: "xs", name: card.assignee.name, src: card.assignee.src }) : null
|
|
6978
7090
|
] })
|
|
6979
7091
|
] }),
|
|
6980
|
-
(0,
|
|
7092
|
+
(0, import_react_dom6.createPortal)(
|
|
6981
7093
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
6982
7094
|
"div",
|
|
6983
7095
|
{
|
|
@@ -7258,7 +7370,7 @@ Accordion.displayName = "Accordion";
|
|
|
7258
7370
|
|
|
7259
7371
|
// virtual-pkg:src/organisms/Card/Card.tsx
|
|
7260
7372
|
var React47 = __toESM(require("react"));
|
|
7261
|
-
var
|
|
7373
|
+
var import_react_dom7 = require("react-dom");
|
|
7262
7374
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
7263
7375
|
var MENU_GAP2 = 6;
|
|
7264
7376
|
var VIEWPORT_MARGIN6 = 8;
|
|
@@ -7463,7 +7575,7 @@ var Card = React47.forwardRef(
|
|
|
7463
7575
|
}
|
|
7464
7576
|
) })
|
|
7465
7577
|
] }) : null,
|
|
7466
|
-
mounted ? (0,
|
|
7578
|
+
mounted ? (0, import_react_dom7.createPortal)(
|
|
7467
7579
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7468
7580
|
"div",
|
|
7469
7581
|
{
|
|
@@ -7672,7 +7784,7 @@ Carousel.displayName = "Carousel";
|
|
|
7672
7784
|
|
|
7673
7785
|
// virtual-pkg:src/organisms/ChatWindow/ChatWindow.tsx
|
|
7674
7786
|
var React49 = __toESM(require("react"));
|
|
7675
|
-
var
|
|
7787
|
+
var import_react_dom8 = require("react-dom");
|
|
7676
7788
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
7677
7789
|
var cn33 = (...parts) => parts.filter(Boolean).join(" ");
|
|
7678
7790
|
var ASSISTANT_ACTIONS = [
|
|
@@ -7706,6 +7818,7 @@ var ChatWindow = React49.forwardRef(
|
|
|
7706
7818
|
composerTools = [],
|
|
7707
7819
|
composerModes = [],
|
|
7708
7820
|
mode,
|
|
7821
|
+
onModeChange,
|
|
7709
7822
|
onChange: _ignoredOnChange,
|
|
7710
7823
|
className,
|
|
7711
7824
|
...rest
|
|
@@ -8237,7 +8350,7 @@ var ChatWindow = React49.forwardRef(
|
|
|
8237
8350
|
]
|
|
8238
8351
|
}
|
|
8239
8352
|
),
|
|
8240
|
-
hasTitleMenu ? (0,
|
|
8353
|
+
hasTitleMenu ? (0, import_react_dom8.createPortal)(
|
|
8241
8354
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
8242
8355
|
"div",
|
|
8243
8356
|
{
|
|
@@ -10580,7 +10693,7 @@ DateRangePicker.displayName = "DateRangePicker";
|
|
|
10580
10693
|
|
|
10581
10694
|
// virtual-pkg:src/organisms/Drawer/Drawer.tsx
|
|
10582
10695
|
var React55 = __toESM(require("react"));
|
|
10583
|
-
var
|
|
10696
|
+
var import_react_dom9 = require("react-dom");
|
|
10584
10697
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
10585
10698
|
var cn39 = (...parts) => parts.filter(Boolean).join(" ");
|
|
10586
10699
|
var Drawer = React55.forwardRef(
|
|
@@ -10740,9 +10853,9 @@ var Drawer = React55.forwardRef(
|
|
|
10740
10853
|
]
|
|
10741
10854
|
}
|
|
10742
10855
|
);
|
|
10743
|
-
if (embedded) return (0,
|
|
10856
|
+
if (embedded) return (0, import_react_dom9.createPortal)(overlay, container);
|
|
10744
10857
|
if (typeof document === "undefined") return null;
|
|
10745
|
-
return (0,
|
|
10858
|
+
return (0, import_react_dom9.createPortal)(overlay, document.body);
|
|
10746
10859
|
}
|
|
10747
10860
|
);
|
|
10748
10861
|
Drawer.displayName = "Drawer";
|
|
@@ -11910,7 +12023,7 @@ HeroSection.displayName = "HeroSection";
|
|
|
11910
12023
|
|
|
11911
12024
|
// virtual-pkg:src/organisms/Modal/Modal.tsx
|
|
11912
12025
|
var React63 = __toESM(require("react"));
|
|
11913
|
-
var
|
|
12026
|
+
var import_react_dom10 = require("react-dom");
|
|
11914
12027
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
11915
12028
|
var cn47 = (...parts) => parts.filter(Boolean).join(" ");
|
|
11916
12029
|
var sizeClasses6 = {
|
|
@@ -12108,9 +12221,9 @@ var Modal = React63.forwardRef(
|
|
|
12108
12221
|
]
|
|
12109
12222
|
}
|
|
12110
12223
|
);
|
|
12111
|
-
if (embedded) return (0,
|
|
12224
|
+
if (embedded) return (0, import_react_dom10.createPortal)(overlay, portalTarget);
|
|
12112
12225
|
if (typeof document === "undefined") return null;
|
|
12113
|
-
return (0,
|
|
12226
|
+
return (0, import_react_dom10.createPortal)(overlay, document.body);
|
|
12114
12227
|
}
|
|
12115
12228
|
);
|
|
12116
12229
|
Modal.displayName = "Modal";
|
|
@@ -12120,7 +12233,7 @@ var React66 = __toESM(require("react"));
|
|
|
12120
12233
|
|
|
12121
12234
|
// virtual-pkg:src/organisms/NavbarDesktop/NavbarDesktop.tsx
|
|
12122
12235
|
var React64 = __toESM(require("react"));
|
|
12123
|
-
var
|
|
12236
|
+
var import_react_dom11 = require("react-dom");
|
|
12124
12237
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
12125
12238
|
var DEFAULT_TABS = [
|
|
12126
12239
|
{ id: "home", label: "Home", href: "#home" },
|
|
@@ -12378,7 +12491,7 @@ var NavbarDesktop = React64.forwardRef(
|
|
|
12378
12491
|
)
|
|
12379
12492
|
] })
|
|
12380
12493
|
] }),
|
|
12381
|
-
(0,
|
|
12494
|
+
(0, import_react_dom11.createPortal)(
|
|
12382
12495
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
12383
12496
|
"div",
|
|
12384
12497
|
{
|
|
@@ -12445,7 +12558,7 @@ NavbarDesktop.displayName = "NavbarDesktop";
|
|
|
12445
12558
|
|
|
12446
12559
|
// virtual-pkg:src/organisms/NavbarMobile/NavbarMobile.tsx
|
|
12447
12560
|
var React65 = __toESM(require("react"));
|
|
12448
|
-
var
|
|
12561
|
+
var import_react_dom12 = require("react-dom");
|
|
12449
12562
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
12450
12563
|
var DEFAULT_ITEMS = [
|
|
12451
12564
|
{ id: "home", label: "Home", icon: "house", href: "#home" },
|
|
@@ -12732,7 +12845,7 @@ var NavbarMobile = React65.forwardRef(
|
|
|
12732
12845
|
}
|
|
12733
12846
|
)
|
|
12734
12847
|
] }),
|
|
12735
|
-
(0,
|
|
12848
|
+
(0, import_react_dom12.createPortal)(
|
|
12736
12849
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
12737
12850
|
"div",
|
|
12738
12851
|
{
|
|
@@ -12912,7 +13025,7 @@ var React69 = __toESM(require("react"));
|
|
|
12912
13025
|
|
|
12913
13026
|
// virtual-pkg:src/organisms/NavigationMenuDesktop/NavigationMenuDesktop.tsx
|
|
12914
13027
|
var React67 = __toESM(require("react"));
|
|
12915
|
-
var
|
|
13028
|
+
var import_react_dom13 = require("react-dom");
|
|
12916
13029
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
12917
13030
|
var DEFAULT_NAV = [
|
|
12918
13031
|
{
|
|
@@ -13262,7 +13375,7 @@ var NavigationMenuDesktop = React67.forwardRef(
|
|
|
13262
13375
|
]
|
|
13263
13376
|
}
|
|
13264
13377
|
) }),
|
|
13265
|
-
(0,
|
|
13378
|
+
(0, import_react_dom13.createPortal)(
|
|
13266
13379
|
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
13267
13380
|
"div",
|
|
13268
13381
|
{
|
|
@@ -13378,7 +13491,7 @@ NavigationMenuDesktop.displayName = "NavigationMenuDesktop";
|
|
|
13378
13491
|
|
|
13379
13492
|
// virtual-pkg:src/organisms/NavigationMenuMobile/NavigationMenuMobile.tsx
|
|
13380
13493
|
var React68 = __toESM(require("react"));
|
|
13381
|
-
var
|
|
13494
|
+
var import_react_dom14 = require("react-dom");
|
|
13382
13495
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
13383
13496
|
var DEFAULT_ITEMS2 = [
|
|
13384
13497
|
{
|
|
@@ -13728,7 +13841,7 @@ var NavigationMenuMobile = React68.forwardRef(
|
|
|
13728
13841
|
]
|
|
13729
13842
|
}
|
|
13730
13843
|
),
|
|
13731
|
-
(0,
|
|
13844
|
+
(0, import_react_dom14.createPortal)(
|
|
13732
13845
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
13733
13846
|
"div",
|
|
13734
13847
|
{
|
|
@@ -16170,7 +16283,7 @@ SidebarDesktop.displayName = "SidebarDesktop";
|
|
|
16170
16283
|
|
|
16171
16284
|
// virtual-pkg:src/organisms/SidebarMobile/SidebarMobile.tsx
|
|
16172
16285
|
var React78 = __toESM(require("react"));
|
|
16173
|
-
var
|
|
16286
|
+
var import_react_dom15 = require("react-dom");
|
|
16174
16287
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
16175
16288
|
var cn62 = (...parts) => parts.filter(Boolean).join(" ");
|
|
16176
16289
|
var DEFAULT_WORKSPACES2 = [
|
|
@@ -16649,7 +16762,7 @@ var SidebarMobile = React78.forwardRef(
|
|
|
16649
16762
|
...rest,
|
|
16650
16763
|
children: [
|
|
16651
16764
|
bar,
|
|
16652
|
-
hasOpened ? (0,
|
|
16765
|
+
hasOpened ? (0, import_react_dom15.createPortal)(
|
|
16653
16766
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
16654
16767
|
"div",
|
|
16655
16768
|
{
|
|
@@ -17809,7 +17922,7 @@ Wizard.displayName = "Wizard";
|
|
|
17809
17922
|
|
|
17810
17923
|
// virtual-pkg:src/templates/TaskBoardTemplate/TaskBoardTemplate.tsx
|
|
17811
17924
|
var React87 = __toESM(require("react"));
|
|
17812
|
-
var
|
|
17925
|
+
var import_react_dom16 = require("react-dom");
|
|
17813
17926
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
17814
17927
|
var VIEW_OPTIONS = [
|
|
17815
17928
|
{ value: "tasks", label: "Tasks" },
|
|
@@ -18213,7 +18326,7 @@ var TaskBoardTemplate = React87.forwardRef(
|
|
|
18213
18326
|
}
|
|
18214
18327
|
) })
|
|
18215
18328
|
] }),
|
|
18216
|
-
typeof document !== "undefined" ? (0,
|
|
18329
|
+
typeof document !== "undefined" ? (0, import_react_dom16.createPortal)(
|
|
18217
18330
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
18218
18331
|
"div",
|
|
18219
18332
|
{
|