@octaviaflow/core 3.0.18-beta.41 → 3.0.18-beta.42
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/components/ConditionBuilder/ConditionBuilder.d.ts.map +1 -1
- package/dist/index.cjs +104 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +119 -84
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7771,10 +7771,12 @@ import {
|
|
|
7771
7771
|
useCallback as useCallback12,
|
|
7772
7772
|
useEffect as useEffect9,
|
|
7773
7773
|
useId as useId15,
|
|
7774
|
+
useLayoutEffect as useLayoutEffect3,
|
|
7774
7775
|
useMemo as useMemo9,
|
|
7775
7776
|
useRef as useRef14,
|
|
7776
7777
|
useState as useState14
|
|
7777
7778
|
} from "react";
|
|
7779
|
+
import { createPortal as createPortal5 } from "react-dom";
|
|
7778
7780
|
import { jsx as jsx28, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
7779
7781
|
function OptionDropdown({
|
|
7780
7782
|
value,
|
|
@@ -7792,6 +7794,22 @@ function OptionDropdown({
|
|
|
7792
7794
|
const panelRef = useRef14(null);
|
|
7793
7795
|
const inputRef = useRef14(null);
|
|
7794
7796
|
const listboxId = useId15();
|
|
7797
|
+
const [panelPos, setPanelPos] = useState14(null);
|
|
7798
|
+
const updatePanelPos = useCallback12(() => {
|
|
7799
|
+
if (!triggerRef.current) return;
|
|
7800
|
+
const r = triggerRef.current.getBoundingClientRect();
|
|
7801
|
+
setPanelPos({ top: r.bottom + 4, left: r.left, width: r.width });
|
|
7802
|
+
}, []);
|
|
7803
|
+
useLayoutEffect3(() => {
|
|
7804
|
+
if (!open) return;
|
|
7805
|
+
updatePanelPos();
|
|
7806
|
+
window.addEventListener("scroll", updatePanelPos, true);
|
|
7807
|
+
window.addEventListener("resize", updatePanelPos);
|
|
7808
|
+
return () => {
|
|
7809
|
+
window.removeEventListener("scroll", updatePanelPos, true);
|
|
7810
|
+
window.removeEventListener("resize", updatePanelPos);
|
|
7811
|
+
};
|
|
7812
|
+
}, [open, updatePanelPos]);
|
|
7795
7813
|
const showSearch = searchable === true || searchable === "auto" && options.length > 8;
|
|
7796
7814
|
const selected = options.find((o) => o.value === value);
|
|
7797
7815
|
const filtered = useMemo9(() => {
|
|
@@ -7878,54 +7896,71 @@ function OptionDropdown({
|
|
|
7878
7896
|
]
|
|
7879
7897
|
}
|
|
7880
7898
|
),
|
|
7881
|
-
open &&
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
{
|
|
7900
|
-
type: "button",
|
|
7901
|
-
role: "option",
|
|
7902
|
-
"aria-selected": opt.value === value,
|
|
7903
|
-
className: cn(
|
|
7904
|
-
"ods-cb-dd__opt",
|
|
7905
|
-
opt.value === value && "ods-cb-dd__opt--selected",
|
|
7906
|
-
idx === activeIdx && "ods-cb-dd__opt--active"
|
|
7907
|
-
),
|
|
7908
|
-
onClick: () => select(opt.value),
|
|
7909
|
-
onMouseEnter: () => setActiveIdx(idx),
|
|
7910
|
-
children: [
|
|
7911
|
-
opt.icon && /* @__PURE__ */ jsx28("span", { className: "ods-cb-dd__opt-icon", "aria-hidden": "true", children: opt.icon }),
|
|
7912
|
-
opt.symbol && /* @__PURE__ */ jsx28("span", { className: "ods-cb-dd__opt-symbol", children: opt.symbol }),
|
|
7913
|
-
/* @__PURE__ */ jsxs27("span", { className: "ods-cb-dd__opt-text", children: [
|
|
7914
|
-
/* @__PURE__ */ jsx28("span", { className: "ods-cb-dd__opt-label", children: opt.label }),
|
|
7915
|
-
opt.description && /* @__PURE__ */ jsx28("span", { className: "ods-cb-dd__opt-desc", children: opt.description })
|
|
7916
|
-
] }),
|
|
7917
|
-
opt.value === value && /* @__PURE__ */ jsx28(
|
|
7918
|
-
CheckmarkIcon4,
|
|
7899
|
+
open && panelPos && typeof document !== "undefined" && createPortal5(
|
|
7900
|
+
/* @__PURE__ */ jsxs27(
|
|
7901
|
+
"div",
|
|
7902
|
+
{
|
|
7903
|
+
ref: panelRef,
|
|
7904
|
+
className: "ods-cb-dd__panel ods-cb-dd__panel--portal",
|
|
7905
|
+
role: "presentation",
|
|
7906
|
+
style: {
|
|
7907
|
+
position: "fixed",
|
|
7908
|
+
top: panelPos.top,
|
|
7909
|
+
left: panelPos.left,
|
|
7910
|
+
minWidth: panelPos.width
|
|
7911
|
+
},
|
|
7912
|
+
children: [
|
|
7913
|
+
showSearch && /* @__PURE__ */ jsxs27("div", { className: "ods-cb-dd__search", children: [
|
|
7914
|
+
/* @__PURE__ */ jsx28(SearchIcon4, { "aria-hidden": "true" }),
|
|
7915
|
+
/* @__PURE__ */ jsx28(
|
|
7916
|
+
"input",
|
|
7919
7917
|
{
|
|
7920
|
-
|
|
7921
|
-
|
|
7918
|
+
ref: inputRef,
|
|
7919
|
+
value: query,
|
|
7920
|
+
onChange: (e) => setQuery(e.target.value),
|
|
7921
|
+
placeholder: "Search\u2026",
|
|
7922
|
+
"aria-label": "Search options"
|
|
7922
7923
|
}
|
|
7923
7924
|
)
|
|
7924
|
-
]
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7925
|
+
] }),
|
|
7926
|
+
/* @__PURE__ */ jsxs27("ul", { id: listboxId, role: "listbox", "aria-label": ariaLabel, className: "ods-cb-dd__list", children: [
|
|
7927
|
+
filtered.length === 0 && /* @__PURE__ */ jsx28("li", { className: "ods-cb-dd__empty", children: "No matches" }),
|
|
7928
|
+
filtered.map((opt, idx) => /* @__PURE__ */ jsx28("li", { children: /* @__PURE__ */ jsxs27(
|
|
7929
|
+
"button",
|
|
7930
|
+
{
|
|
7931
|
+
type: "button",
|
|
7932
|
+
role: "option",
|
|
7933
|
+
"aria-selected": opt.value === value,
|
|
7934
|
+
className: cn(
|
|
7935
|
+
"ods-cb-dd__opt",
|
|
7936
|
+
opt.value === value && "ods-cb-dd__opt--selected",
|
|
7937
|
+
idx === activeIdx && "ods-cb-dd__opt--active"
|
|
7938
|
+
),
|
|
7939
|
+
onClick: () => select(opt.value),
|
|
7940
|
+
onMouseEnter: () => setActiveIdx(idx),
|
|
7941
|
+
children: [
|
|
7942
|
+
opt.icon && /* @__PURE__ */ jsx28("span", { className: "ods-cb-dd__opt-icon", "aria-hidden": "true", children: opt.icon }),
|
|
7943
|
+
opt.symbol && /* @__PURE__ */ jsx28("span", { className: "ods-cb-dd__opt-symbol", children: opt.symbol }),
|
|
7944
|
+
/* @__PURE__ */ jsxs27("span", { className: "ods-cb-dd__opt-text", children: [
|
|
7945
|
+
/* @__PURE__ */ jsx28("span", { className: "ods-cb-dd__opt-label", children: opt.label }),
|
|
7946
|
+
opt.description && /* @__PURE__ */ jsx28("span", { className: "ods-cb-dd__opt-desc", children: opt.description })
|
|
7947
|
+
] }),
|
|
7948
|
+
opt.value === value && /* @__PURE__ */ jsx28(
|
|
7949
|
+
CheckmarkIcon4,
|
|
7950
|
+
{
|
|
7951
|
+
"aria-hidden": "true",
|
|
7952
|
+
className: "ods-cb-dd__opt-check"
|
|
7953
|
+
}
|
|
7954
|
+
)
|
|
7955
|
+
]
|
|
7956
|
+
}
|
|
7957
|
+
) }, opt.value))
|
|
7958
|
+
] })
|
|
7959
|
+
]
|
|
7960
|
+
}
|
|
7961
|
+
),
|
|
7962
|
+
document.body
|
|
7963
|
+
)
|
|
7929
7964
|
] });
|
|
7930
7965
|
}
|
|
7931
7966
|
var ConditionBuilder = forwardRef26(function ConditionBuilder2({
|
|
@@ -8273,7 +8308,7 @@ import {
|
|
|
8273
8308
|
useRef as useRef16
|
|
8274
8309
|
} from "react";
|
|
8275
8310
|
import { FocusScope, OverlayProvider, useDialog, useModal, useOverlay } from "react-aria";
|
|
8276
|
-
import { createPortal as
|
|
8311
|
+
import { createPortal as createPortal6 } from "react-dom";
|
|
8277
8312
|
|
|
8278
8313
|
// src/utils/motion.ts
|
|
8279
8314
|
var odsMotion = {
|
|
@@ -8429,7 +8464,7 @@ var DialogContent = forwardRef28(function DialogContent2({
|
|
|
8429
8464
|
DialogContent.displayName = "Dialog.Content";
|
|
8430
8465
|
var Dialog = forwardRef28(function Dialog2(props, ref) {
|
|
8431
8466
|
if (typeof document === "undefined") return null;
|
|
8432
|
-
return
|
|
8467
|
+
return createPortal6(
|
|
8433
8468
|
/* @__PURE__ */ jsx30(OverlayProvider, { children: /* @__PURE__ */ jsx30(DialogContent, { ref, ...props }) }),
|
|
8434
8469
|
document.body
|
|
8435
8470
|
);
|
|
@@ -9048,11 +9083,11 @@ import {
|
|
|
9048
9083
|
useCallback as useCallback16,
|
|
9049
9084
|
useEffect as useEffect14,
|
|
9050
9085
|
useId as useId19,
|
|
9051
|
-
useLayoutEffect as
|
|
9086
|
+
useLayoutEffect as useLayoutEffect4,
|
|
9052
9087
|
useRef as useRef18,
|
|
9053
9088
|
useState as useState18
|
|
9054
9089
|
} from "react";
|
|
9055
|
-
import { createPortal as
|
|
9090
|
+
import { createPortal as createPortal7 } from "react-dom";
|
|
9056
9091
|
import { Fragment as Fragment17, jsx as jsx35, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
9057
9092
|
function flipIntoViewport(cursor, panelRect, viewport, margin = 8) {
|
|
9058
9093
|
if (!panelRect) return cursor;
|
|
@@ -9118,7 +9153,7 @@ var ContextMenu = forwardRef33(
|
|
|
9118
9153
|
setActiveIndex(navigableIndices[0] ?? -1);
|
|
9119
9154
|
onOpenChange?.(true);
|
|
9120
9155
|
};
|
|
9121
|
-
|
|
9156
|
+
useLayoutEffect4(() => {
|
|
9122
9157
|
if (!open) return;
|
|
9123
9158
|
const panel2 = panelRef.current;
|
|
9124
9159
|
if (!panel2) return;
|
|
@@ -9285,7 +9320,7 @@ var ContextMenu = forwardRef33(
|
|
|
9285
9320
|
children
|
|
9286
9321
|
}
|
|
9287
9322
|
),
|
|
9288
|
-
|
|
9323
|
+
createPortal7(panel, portalTarget)
|
|
9289
9324
|
] });
|
|
9290
9325
|
}
|
|
9291
9326
|
);
|
|
@@ -10824,12 +10859,12 @@ import {
|
|
|
10824
10859
|
import {
|
|
10825
10860
|
useCallback as useCallback18,
|
|
10826
10861
|
useEffect as useEffect16,
|
|
10827
|
-
useLayoutEffect as
|
|
10862
|
+
useLayoutEffect as useLayoutEffect5,
|
|
10828
10863
|
useMemo as useMemo12,
|
|
10829
10864
|
useRef as useRef20,
|
|
10830
10865
|
useState as useState20
|
|
10831
10866
|
} from "react";
|
|
10832
|
-
import { createPortal as
|
|
10867
|
+
import { createPortal as createPortal8 } from "react-dom";
|
|
10833
10868
|
import { Fragment as Fragment20, jsx as jsx38, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
10834
10869
|
function readValue(row, col) {
|
|
10835
10870
|
if (typeof col.accessor === "function") return col.accessor(row);
|
|
@@ -10846,7 +10881,7 @@ function PortalMenu({
|
|
|
10846
10881
|
}) {
|
|
10847
10882
|
const menuRef = useRef20(null);
|
|
10848
10883
|
const [pos, setPos] = useState20(null);
|
|
10849
|
-
|
|
10884
|
+
useLayoutEffect5(() => {
|
|
10850
10885
|
if (!open) return;
|
|
10851
10886
|
const update = () => {
|
|
10852
10887
|
const t = triggerRef.current;
|
|
@@ -10892,7 +10927,7 @@ function PortalMenu({
|
|
|
10892
10927
|
right: align === "end" ? pos.right : "auto",
|
|
10893
10928
|
zIndex: 1e3
|
|
10894
10929
|
};
|
|
10895
|
-
return
|
|
10930
|
+
return createPortal8(
|
|
10896
10931
|
/* @__PURE__ */ jsx38("div", { ref: menuRef, className: cn("ods-datatable__menu", className), style, children }),
|
|
10897
10932
|
document.body
|
|
10898
10933
|
);
|
|
@@ -12337,7 +12372,7 @@ Drawer.displayName = "Drawer";
|
|
|
12337
12372
|
import { AnimatePresence as AnimatePresence13, motion as motion19 } from "framer-motion";
|
|
12338
12373
|
import { useEffect as useEffect18, useMemo as useMemo14, useRef as useRef22 } from "react";
|
|
12339
12374
|
import { useButton as useButton4, useMenu, useMenuItem, useMenuTrigger } from "react-aria";
|
|
12340
|
-
import { createPortal as
|
|
12375
|
+
import { createPortal as createPortal9 } from "react-dom";
|
|
12341
12376
|
import { Fragment as Fragment22, jsx as jsx44, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
12342
12377
|
function MenuItemComponent({ item, state, onAction }) {
|
|
12343
12378
|
const ref = useRef22(null);
|
|
@@ -12501,7 +12536,7 @@ function MenuPopup({
|
|
|
12501
12536
|
}
|
|
12502
12537
|
) });
|
|
12503
12538
|
if (typeof document !== "undefined") {
|
|
12504
|
-
return
|
|
12539
|
+
return createPortal9(portalContent, document.body);
|
|
12505
12540
|
}
|
|
12506
12541
|
return null;
|
|
12507
12542
|
}
|
|
@@ -15797,8 +15832,8 @@ var Heatmap = forwardRef48(
|
|
|
15797
15832
|
Heatmap.displayName = "Heatmap";
|
|
15798
15833
|
|
|
15799
15834
|
// src/components/HoverCard/HoverCard.tsx
|
|
15800
|
-
import { useCallback as useCallback24, useEffect as useEffect24, useLayoutEffect as
|
|
15801
|
-
import { createPortal as
|
|
15835
|
+
import { useCallback as useCallback24, useEffect as useEffect24, useLayoutEffect as useLayoutEffect6, useRef as useRef29, useState as useState29 } from "react";
|
|
15836
|
+
import { createPortal as createPortal10 } from "react-dom";
|
|
15802
15837
|
import { Fragment as Fragment25, jsx as jsx59, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
15803
15838
|
function computePosition3(rect, panelRect, placement, offset) {
|
|
15804
15839
|
const cx = rect.left + rect.width / 2;
|
|
@@ -15854,7 +15889,7 @@ function HoverCard({
|
|
|
15854
15889
|
const panelRect = panelRef.current.getBoundingClientRect();
|
|
15855
15890
|
setCoords(computePosition3(trigRect, panelRect, placement, offset));
|
|
15856
15891
|
}, [placement, offset]);
|
|
15857
|
-
|
|
15892
|
+
useLayoutEffect6(() => {
|
|
15858
15893
|
if (!open) return;
|
|
15859
15894
|
reposition();
|
|
15860
15895
|
const id = requestAnimationFrame(reposition);
|
|
@@ -15882,7 +15917,7 @@ function HoverCard({
|
|
|
15882
15917
|
children
|
|
15883
15918
|
}
|
|
15884
15919
|
);
|
|
15885
|
-
const portal = typeof document !== "undefined" && open ?
|
|
15920
|
+
const portal = typeof document !== "undefined" && open ? createPortal10(
|
|
15886
15921
|
/* @__PURE__ */ jsx59(
|
|
15887
15922
|
"div",
|
|
15888
15923
|
{
|
|
@@ -18115,12 +18150,12 @@ import {
|
|
|
18115
18150
|
useCallback as useCallback26,
|
|
18116
18151
|
useEffect as useEffect28,
|
|
18117
18152
|
useId as useId35,
|
|
18118
|
-
useLayoutEffect as
|
|
18153
|
+
useLayoutEffect as useLayoutEffect7,
|
|
18119
18154
|
useMemo as useMemo22,
|
|
18120
18155
|
useRef as useRef33,
|
|
18121
18156
|
useState as useState33
|
|
18122
18157
|
} from "react";
|
|
18123
|
-
import { createPortal as
|
|
18158
|
+
import { createPortal as createPortal11 } from "react-dom";
|
|
18124
18159
|
import {
|
|
18125
18160
|
ChevronDownIcon as ChevronDownIcon6,
|
|
18126
18161
|
CloseIcon as CloseIcon11,
|
|
@@ -18242,7 +18277,7 @@ var MultiSelect = forwardRef60(
|
|
|
18242
18277
|
useEffect28(() => setActiveIdx(0), [query, open]);
|
|
18243
18278
|
const [fitCount, setFitCount] = useState33(selectedValues.length);
|
|
18244
18279
|
const [tick, setTick] = useState33(0);
|
|
18245
|
-
|
|
18280
|
+
useLayoutEffect7(() => {
|
|
18246
18281
|
if (maxVisibleTags !== void 0) {
|
|
18247
18282
|
setFitCount(Math.min(selectedValues.length, maxVisibleTags));
|
|
18248
18283
|
return;
|
|
@@ -18492,7 +18527,7 @@ var MultiSelect = forwardRef60(
|
|
|
18492
18527
|
]
|
|
18493
18528
|
}
|
|
18494
18529
|
),
|
|
18495
|
-
typeof document !== "undefined" &&
|
|
18530
|
+
typeof document !== "undefined" && createPortal11(
|
|
18496
18531
|
/* @__PURE__ */ jsx70(AnimatePresence17, { children: open && /* @__PURE__ */ jsxs68(
|
|
18497
18532
|
motion26.div,
|
|
18498
18533
|
{
|
|
@@ -20495,8 +20530,8 @@ var PipelineCard = forwardRef66(
|
|
|
20495
20530
|
PipelineCard.displayName = "PipelineCard";
|
|
20496
20531
|
|
|
20497
20532
|
// src/components/Popover/Popover.tsx
|
|
20498
|
-
import { useCallback as useCallback31, useEffect as useEffect30, useLayoutEffect as
|
|
20499
|
-
import { createPortal as
|
|
20533
|
+
import { useCallback as useCallback31, useEffect as useEffect30, useLayoutEffect as useLayoutEffect8, useRef as useRef36, useState as useState37 } from "react";
|
|
20534
|
+
import { createPortal as createPortal12 } from "react-dom";
|
|
20500
20535
|
import { Fragment as Fragment34, jsx as jsx78, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
20501
20536
|
function computePosition4(rect, popRect, placement, offset) {
|
|
20502
20537
|
const cx = rect.left + rect.width / 2;
|
|
@@ -20545,7 +20580,7 @@ function Popover({
|
|
|
20545
20580
|
const popRect = popRef.current.getBoundingClientRect();
|
|
20546
20581
|
setCoords(computePosition4(trigRect, popRect, placement, offset));
|
|
20547
20582
|
}, [placement, offset]);
|
|
20548
|
-
|
|
20583
|
+
useLayoutEffect8(() => {
|
|
20549
20584
|
if (!open) return;
|
|
20550
20585
|
reposition();
|
|
20551
20586
|
const id = requestAnimationFrame(reposition);
|
|
@@ -20593,7 +20628,7 @@ function Popover({
|
|
|
20593
20628
|
children
|
|
20594
20629
|
}
|
|
20595
20630
|
);
|
|
20596
|
-
const portal = typeof document !== "undefined" && open ?
|
|
20631
|
+
const portal = typeof document !== "undefined" && open ? createPortal12(
|
|
20597
20632
|
/* @__PURE__ */ jsxs76(
|
|
20598
20633
|
"div",
|
|
20599
20634
|
{
|
|
@@ -22177,7 +22212,7 @@ import {
|
|
|
22177
22212
|
forwardRef as forwardRef78,
|
|
22178
22213
|
useCallback as useCallback33,
|
|
22179
22214
|
useEffect as useEffect32,
|
|
22180
|
-
useLayoutEffect as
|
|
22215
|
+
useLayoutEffect as useLayoutEffect9,
|
|
22181
22216
|
useRef as useRef40,
|
|
22182
22217
|
useState as useState40
|
|
22183
22218
|
} from "react";
|
|
@@ -22221,7 +22256,7 @@ var Resizable = forwardRef78(
|
|
|
22221
22256
|
if (typeof ref === "function") ref(node);
|
|
22222
22257
|
else if (ref) ref.current = node;
|
|
22223
22258
|
};
|
|
22224
|
-
|
|
22259
|
+
useLayoutEffect9(() => {
|
|
22225
22260
|
const el = wrapRef.current;
|
|
22226
22261
|
if (!el) return;
|
|
22227
22262
|
const t = direction === "horizontal" ? el.offsetWidth : el.offsetHeight;
|
|
@@ -22596,7 +22631,7 @@ function SettingsRow({
|
|
|
22596
22631
|
// src/components/Sheet/Sheet.tsx
|
|
22597
22632
|
import { AnimatePresence as AnimatePresence18, motion as motion28 } from "framer-motion";
|
|
22598
22633
|
import { useEffect as useEffect33 } from "react";
|
|
22599
|
-
import { createPortal as
|
|
22634
|
+
import { createPortal as createPortal13 } from "react-dom";
|
|
22600
22635
|
import { Fragment as Fragment37, jsx as jsx94, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
22601
22636
|
var slideVariants = {
|
|
22602
22637
|
top: { initial: { y: "-100%" }, animate: { y: 0 }, exit: { y: "-100%" } },
|
|
@@ -22679,7 +22714,7 @@ function Sheet({
|
|
|
22679
22714
|
)
|
|
22680
22715
|
] }) });
|
|
22681
22716
|
if (typeof document === "undefined") return null;
|
|
22682
|
-
return
|
|
22717
|
+
return createPortal13(content, document.body);
|
|
22683
22718
|
}
|
|
22684
22719
|
|
|
22685
22720
|
// src/components/Show/Show.tsx
|
|
@@ -23314,7 +23349,7 @@ SkeletonGroup.displayName = "SkeletonGroup";
|
|
|
23314
23349
|
import { AnimatePresence as AnimatePresence19, motion as motion29 } from "framer-motion";
|
|
23315
23350
|
import { useRef as useRef42 } from "react";
|
|
23316
23351
|
import { FocusScope as FocusScope2, OverlayProvider as OverlayProvider2, useDialog as useDialog2, useModal as useModal2, useOverlay as useOverlay2 } from "react-aria";
|
|
23317
|
-
import { createPortal as
|
|
23352
|
+
import { createPortal as createPortal14 } from "react-dom";
|
|
23318
23353
|
import { Fragment as Fragment39, jsx as jsx98, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
23319
23354
|
var slideVariants2 = {
|
|
23320
23355
|
left: {
|
|
@@ -23406,7 +23441,7 @@ function SlideoutContent({
|
|
|
23406
23441
|
}
|
|
23407
23442
|
function SlideoutPanel(props) {
|
|
23408
23443
|
if (typeof document === "undefined") return null;
|
|
23409
|
-
return
|
|
23444
|
+
return createPortal14(
|
|
23410
23445
|
/* @__PURE__ */ jsx98(OverlayProvider2, { children: /* @__PURE__ */ jsx98(SlideoutContent, { ...props }) }),
|
|
23411
23446
|
document.body
|
|
23412
23447
|
);
|
|
@@ -24041,11 +24076,11 @@ import {
|
|
|
24041
24076
|
forwardRef as forwardRef86,
|
|
24042
24077
|
useCallback as useCallback36,
|
|
24043
24078
|
useEffect as useEffect36,
|
|
24044
|
-
useLayoutEffect as
|
|
24079
|
+
useLayoutEffect as useLayoutEffect10,
|
|
24045
24080
|
useMemo as useMemo25,
|
|
24046
24081
|
useState as useState43
|
|
24047
24082
|
} from "react";
|
|
24048
|
-
import { createPortal as
|
|
24083
|
+
import { createPortal as createPortal15 } from "react-dom";
|
|
24049
24084
|
import { jsx as jsx103, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
24050
24085
|
var Spotlight = forwardRef86(
|
|
24051
24086
|
function Spotlight2({
|
|
@@ -24083,7 +24118,7 @@ var Spotlight = forwardRef86(
|
|
|
24083
24118
|
height: window.innerHeight
|
|
24084
24119
|
});
|
|
24085
24120
|
}, [open, target]);
|
|
24086
|
-
|
|
24121
|
+
useLayoutEffect10(() => {
|
|
24087
24122
|
measure();
|
|
24088
24123
|
}, [measure]);
|
|
24089
24124
|
useEffect36(() => {
|
|
@@ -24112,7 +24147,7 @@ var Spotlight = forwardRef86(
|
|
|
24112
24147
|
width: rect.width + padding * 2,
|
|
24113
24148
|
height: rect.height + padding * 2
|
|
24114
24149
|
} : null;
|
|
24115
|
-
return
|
|
24150
|
+
return createPortal15(
|
|
24116
24151
|
/* @__PURE__ */ jsx103(AnimatePresence20, { children: open && /* @__PURE__ */ jsxs97(
|
|
24117
24152
|
motion30.div,
|
|
24118
24153
|
{
|
|
@@ -25852,7 +25887,7 @@ import {
|
|
|
25852
25887
|
useState as useState51
|
|
25853
25888
|
} from "react";
|
|
25854
25889
|
import { useTextField } from "react-aria";
|
|
25855
|
-
import { createPortal as
|
|
25890
|
+
import { createPortal as createPortal16 } from "react-dom";
|
|
25856
25891
|
import { CopyIcon as CopyIcon5, CutIcon } from "@octaviaflow/icons";
|
|
25857
25892
|
|
|
25858
25893
|
// src/hooks/useTextareaCommands.ts
|
|
@@ -26662,7 +26697,7 @@ var Textarea = forwardRef96(
|
|
|
26662
26697
|
"aria-activedescendant": cmdEnabled && cmdPalette.isOpen && cmdPalette.items[cmdPalette.activeIndex] ? `${baseId}-cmd-${cmdPalette.items[cmdPalette.activeIndex].id}` : void 0
|
|
26663
26698
|
}
|
|
26664
26699
|
),
|
|
26665
|
-
cmdEnabled && cmdPalette.isOpen && cmdPalette.items.length > 0 && typeof document !== "undefined" &&
|
|
26700
|
+
cmdEnabled && cmdPalette.isOpen && cmdPalette.items.length > 0 && typeof document !== "undefined" && createPortal16(
|
|
26666
26701
|
/* @__PURE__ */ jsx115(
|
|
26667
26702
|
"ul",
|
|
26668
26703
|
{
|
|
@@ -26705,7 +26740,7 @@ var Textarea = forwardRef96(
|
|
|
26705
26740
|
),
|
|
26706
26741
|
document.body
|
|
26707
26742
|
),
|
|
26708
|
-
selectionToolbar && sel.active && sel.rect && typeof document !== "undefined" &&
|
|
26743
|
+
selectionToolbar && sel.active && sel.rect && typeof document !== "undefined" && createPortal16(
|
|
26709
26744
|
/* @__PURE__ */ jsxs108(
|
|
26710
26745
|
"div",
|
|
26711
26746
|
{
|
|
@@ -27630,7 +27665,7 @@ import {
|
|
|
27630
27665
|
useRef as useRef51,
|
|
27631
27666
|
useState as useState54
|
|
27632
27667
|
} from "react";
|
|
27633
|
-
import { createPortal as
|
|
27668
|
+
import { createPortal as createPortal17 } from "react-dom";
|
|
27634
27669
|
import { Fragment as Fragment46, jsx as jsx119, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
27635
27670
|
var defaultIcons = {
|
|
27636
27671
|
success: /* @__PURE__ */ jsxs112("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [
|
|
@@ -27960,7 +27995,7 @@ function ToastProvider({
|
|
|
27960
27995
|
}) });
|
|
27961
27996
|
return /* @__PURE__ */ jsxs112(ToastContext.Provider, { value: ctx, children: [
|
|
27962
27997
|
children,
|
|
27963
|
-
typeof document !== "undefined" &&
|
|
27998
|
+
typeof document !== "undefined" && createPortal17(containers, document.body)
|
|
27964
27999
|
] });
|
|
27965
28000
|
}
|
|
27966
28001
|
function useToast() {
|