@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/ConditionBuilder/ConditionBuilder.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,wBAAwB,EAG7B,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"ConditionBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/ConditionBuilder/ConditionBuilder.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,wBAAwB,EAG7B,KAAK,SAAS,EAQf,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd;;4DAEwD;IACxD,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,KAAK,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,CAAC,SAAS,GAAG,cAAc,CAAC,EAAE,CAAC;CAC5C;AAED,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IACzD,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC5C,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,qEAAqE;IACrE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAChC;4EACwE;IACxE,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B;yEACqE;IACrE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC;IAC5C,mDAAmD;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;mEAI+D;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA0OD,eAAO,MAAM,gBAAgB,kHA+M3B,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -7873,6 +7873,7 @@ function useCommandPaletteShortcut(toggle, options = {}) {
|
|
|
7873
7873
|
// src/components/ConditionBuilder/ConditionBuilder.tsx
|
|
7874
7874
|
var import_icons9 = require("@octaviaflow/icons");
|
|
7875
7875
|
var import_react45 = require("react");
|
|
7876
|
+
var import_react_dom5 = require("react-dom");
|
|
7876
7877
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
7877
7878
|
function OptionDropdown({
|
|
7878
7879
|
value,
|
|
@@ -7890,6 +7891,22 @@ function OptionDropdown({
|
|
|
7890
7891
|
const panelRef = (0, import_react45.useRef)(null);
|
|
7891
7892
|
const inputRef = (0, import_react45.useRef)(null);
|
|
7892
7893
|
const listboxId = (0, import_react45.useId)();
|
|
7894
|
+
const [panelPos, setPanelPos] = (0, import_react45.useState)(null);
|
|
7895
|
+
const updatePanelPos = (0, import_react45.useCallback)(() => {
|
|
7896
|
+
if (!triggerRef.current) return;
|
|
7897
|
+
const r = triggerRef.current.getBoundingClientRect();
|
|
7898
|
+
setPanelPos({ top: r.bottom + 4, left: r.left, width: r.width });
|
|
7899
|
+
}, []);
|
|
7900
|
+
(0, import_react45.useLayoutEffect)(() => {
|
|
7901
|
+
if (!open) return;
|
|
7902
|
+
updatePanelPos();
|
|
7903
|
+
window.addEventListener("scroll", updatePanelPos, true);
|
|
7904
|
+
window.addEventListener("resize", updatePanelPos);
|
|
7905
|
+
return () => {
|
|
7906
|
+
window.removeEventListener("scroll", updatePanelPos, true);
|
|
7907
|
+
window.removeEventListener("resize", updatePanelPos);
|
|
7908
|
+
};
|
|
7909
|
+
}, [open, updatePanelPos]);
|
|
7893
7910
|
const showSearch = searchable === true || searchable === "auto" && options.length > 8;
|
|
7894
7911
|
const selected = options.find((o) => o.value === value);
|
|
7895
7912
|
const filtered = (0, import_react45.useMemo)(() => {
|
|
@@ -7976,54 +7993,71 @@ function OptionDropdown({
|
|
|
7976
7993
|
]
|
|
7977
7994
|
}
|
|
7978
7995
|
),
|
|
7979
|
-
open &&
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
{
|
|
7998
|
-
type: "button",
|
|
7999
|
-
role: "option",
|
|
8000
|
-
"aria-selected": opt.value === value,
|
|
8001
|
-
className: cn(
|
|
8002
|
-
"ods-cb-dd__opt",
|
|
8003
|
-
opt.value === value && "ods-cb-dd__opt--selected",
|
|
8004
|
-
idx === activeIdx && "ods-cb-dd__opt--active"
|
|
8005
|
-
),
|
|
8006
|
-
onClick: () => select(opt.value),
|
|
8007
|
-
onMouseEnter: () => setActiveIdx(idx),
|
|
8008
|
-
children: [
|
|
8009
|
-
opt.icon && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "ods-cb-dd__opt-icon", "aria-hidden": "true", children: opt.icon }),
|
|
8010
|
-
opt.symbol && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "ods-cb-dd__opt-symbol", children: opt.symbol }),
|
|
8011
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { className: "ods-cb-dd__opt-text", children: [
|
|
8012
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "ods-cb-dd__opt-label", children: opt.label }),
|
|
8013
|
-
opt.description && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "ods-cb-dd__opt-desc", children: opt.description })
|
|
8014
|
-
] }),
|
|
8015
|
-
opt.value === value && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
8016
|
-
import_icons9.CheckmarkIcon,
|
|
7996
|
+
open && panelPos && typeof document !== "undefined" && (0, import_react_dom5.createPortal)(
|
|
7997
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
7998
|
+
"div",
|
|
7999
|
+
{
|
|
8000
|
+
ref: panelRef,
|
|
8001
|
+
className: "ods-cb-dd__panel ods-cb-dd__panel--portal",
|
|
8002
|
+
role: "presentation",
|
|
8003
|
+
style: {
|
|
8004
|
+
position: "fixed",
|
|
8005
|
+
top: panelPos.top,
|
|
8006
|
+
left: panelPos.left,
|
|
8007
|
+
minWidth: panelPos.width
|
|
8008
|
+
},
|
|
8009
|
+
children: [
|
|
8010
|
+
showSearch && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "ods-cb-dd__search", children: [
|
|
8011
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_icons9.SearchIcon, { "aria-hidden": "true" }),
|
|
8012
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
8013
|
+
"input",
|
|
8017
8014
|
{
|
|
8018
|
-
|
|
8019
|
-
|
|
8015
|
+
ref: inputRef,
|
|
8016
|
+
value: query,
|
|
8017
|
+
onChange: (e) => setQuery(e.target.value),
|
|
8018
|
+
placeholder: "Search\u2026",
|
|
8019
|
+
"aria-label": "Search options"
|
|
8020
8020
|
}
|
|
8021
8021
|
)
|
|
8022
|
-
]
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8022
|
+
] }),
|
|
8023
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("ul", { id: listboxId, role: "listbox", "aria-label": ariaLabel, className: "ods-cb-dd__list", children: [
|
|
8024
|
+
filtered.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("li", { className: "ods-cb-dd__empty", children: "No matches" }),
|
|
8025
|
+
filtered.map((opt, idx) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
8026
|
+
"button",
|
|
8027
|
+
{
|
|
8028
|
+
type: "button",
|
|
8029
|
+
role: "option",
|
|
8030
|
+
"aria-selected": opt.value === value,
|
|
8031
|
+
className: cn(
|
|
8032
|
+
"ods-cb-dd__opt",
|
|
8033
|
+
opt.value === value && "ods-cb-dd__opt--selected",
|
|
8034
|
+
idx === activeIdx && "ods-cb-dd__opt--active"
|
|
8035
|
+
),
|
|
8036
|
+
onClick: () => select(opt.value),
|
|
8037
|
+
onMouseEnter: () => setActiveIdx(idx),
|
|
8038
|
+
children: [
|
|
8039
|
+
opt.icon && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "ods-cb-dd__opt-icon", "aria-hidden": "true", children: opt.icon }),
|
|
8040
|
+
opt.symbol && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "ods-cb-dd__opt-symbol", children: opt.symbol }),
|
|
8041
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { className: "ods-cb-dd__opt-text", children: [
|
|
8042
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "ods-cb-dd__opt-label", children: opt.label }),
|
|
8043
|
+
opt.description && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "ods-cb-dd__opt-desc", children: opt.description })
|
|
8044
|
+
] }),
|
|
8045
|
+
opt.value === value && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
8046
|
+
import_icons9.CheckmarkIcon,
|
|
8047
|
+
{
|
|
8048
|
+
"aria-hidden": "true",
|
|
8049
|
+
className: "ods-cb-dd__opt-check"
|
|
8050
|
+
}
|
|
8051
|
+
)
|
|
8052
|
+
]
|
|
8053
|
+
}
|
|
8054
|
+
) }, opt.value))
|
|
8055
|
+
] })
|
|
8056
|
+
]
|
|
8057
|
+
}
|
|
8058
|
+
),
|
|
8059
|
+
document.body
|
|
8060
|
+
)
|
|
8027
8061
|
] });
|
|
8028
8062
|
}
|
|
8029
8063
|
var ConditionBuilder = (0, import_react45.forwardRef)(function ConditionBuilder2({
|
|
@@ -8355,7 +8389,7 @@ var import_icons11 = require("@octaviaflow/icons");
|
|
|
8355
8389
|
var import_framer_motion15 = require("framer-motion");
|
|
8356
8390
|
var import_react47 = require("react");
|
|
8357
8391
|
var import_react_aria7 = require("react-aria");
|
|
8358
|
-
var
|
|
8392
|
+
var import_react_dom6 = require("react-dom");
|
|
8359
8393
|
|
|
8360
8394
|
// src/utils/motion.ts
|
|
8361
8395
|
var odsMotion = {
|
|
@@ -8511,7 +8545,7 @@ var DialogContent = (0, import_react47.forwardRef)(function DialogContent2({
|
|
|
8511
8545
|
DialogContent.displayName = "Dialog.Content";
|
|
8512
8546
|
var Dialog = (0, import_react47.forwardRef)(function Dialog2(props, ref) {
|
|
8513
8547
|
if (typeof document === "undefined") return null;
|
|
8514
|
-
return (0,
|
|
8548
|
+
return (0, import_react_dom6.createPortal)(
|
|
8515
8549
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_aria7.OverlayProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DialogContent, { ref, ...props }) }),
|
|
8516
8550
|
document.body
|
|
8517
8551
|
);
|
|
@@ -9107,7 +9141,7 @@ function CsvEditBody({
|
|
|
9107
9141
|
// src/components/ContextMenu/ContextMenu.tsx
|
|
9108
9142
|
var import_framer_motion17 = require("framer-motion");
|
|
9109
9143
|
var import_react52 = require("react");
|
|
9110
|
-
var
|
|
9144
|
+
var import_react_dom7 = require("react-dom");
|
|
9111
9145
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
9112
9146
|
function flipIntoViewport(cursor, panelRect, viewport, margin = 8) {
|
|
9113
9147
|
if (!panelRect) return cursor;
|
|
@@ -9340,7 +9374,7 @@ var ContextMenu = (0, import_react52.forwardRef)(
|
|
|
9340
9374
|
children
|
|
9341
9375
|
}
|
|
9342
9376
|
),
|
|
9343
|
-
(0,
|
|
9377
|
+
(0, import_react_dom7.createPortal)(panel, portalTarget)
|
|
9344
9378
|
] });
|
|
9345
9379
|
}
|
|
9346
9380
|
);
|
|
@@ -10852,7 +10886,7 @@ DatasetCard.displayName = "DatasetCard";
|
|
|
10852
10886
|
// src/components/DataTable/DataTable.tsx
|
|
10853
10887
|
var import_icons14 = require("@octaviaflow/icons");
|
|
10854
10888
|
var import_react55 = require("react");
|
|
10855
|
-
var
|
|
10889
|
+
var import_react_dom8 = require("react-dom");
|
|
10856
10890
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
10857
10891
|
function readValue(row, col) {
|
|
10858
10892
|
if (typeof col.accessor === "function") return col.accessor(row);
|
|
@@ -10915,7 +10949,7 @@ function PortalMenu({
|
|
|
10915
10949
|
right: align === "end" ? pos.right : "auto",
|
|
10916
10950
|
zIndex: 1e3
|
|
10917
10951
|
};
|
|
10918
|
-
return (0,
|
|
10952
|
+
return (0, import_react_dom8.createPortal)(
|
|
10919
10953
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { ref: menuRef, className: cn("ods-datatable__menu", className), style, children }),
|
|
10920
10954
|
document.body
|
|
10921
10955
|
);
|
|
@@ -12343,7 +12377,7 @@ Drawer.displayName = "Drawer";
|
|
|
12343
12377
|
var import_framer_motion19 = require("framer-motion");
|
|
12344
12378
|
var import_react61 = require("react");
|
|
12345
12379
|
var import_react_aria8 = require("react-aria");
|
|
12346
|
-
var
|
|
12380
|
+
var import_react_dom9 = require("react-dom");
|
|
12347
12381
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
12348
12382
|
function MenuItemComponent({ item, state, onAction }) {
|
|
12349
12383
|
const ref = (0, import_react61.useRef)(null);
|
|
@@ -12507,7 +12541,7 @@ function MenuPopup({
|
|
|
12507
12541
|
}
|
|
12508
12542
|
) });
|
|
12509
12543
|
if (typeof document !== "undefined") {
|
|
12510
|
-
return (0,
|
|
12544
|
+
return (0, import_react_dom9.createPortal)(portalContent, document.body);
|
|
12511
12545
|
}
|
|
12512
12546
|
return null;
|
|
12513
12547
|
}
|
|
@@ -16042,7 +16076,7 @@ Heatmap.displayName = "Heatmap";
|
|
|
16042
16076
|
|
|
16043
16077
|
// src/components/HoverCard/HoverCard.tsx
|
|
16044
16078
|
var import_react79 = require("react");
|
|
16045
|
-
var
|
|
16079
|
+
var import_react_dom10 = require("react-dom");
|
|
16046
16080
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
16047
16081
|
function computePosition3(rect, panelRect, placement, offset) {
|
|
16048
16082
|
const cx = rect.left + rect.width / 2;
|
|
@@ -16126,7 +16160,7 @@ function HoverCard({
|
|
|
16126
16160
|
children
|
|
16127
16161
|
}
|
|
16128
16162
|
);
|
|
16129
|
-
const portal = typeof document !== "undefined" && open ? (0,
|
|
16163
|
+
const portal = typeof document !== "undefined" && open ? (0, import_react_dom10.createPortal)(
|
|
16130
16164
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
16131
16165
|
"div",
|
|
16132
16166
|
{
|
|
@@ -18308,7 +18342,7 @@ MetricCard.displayName = "MetricCard";
|
|
|
18308
18342
|
// src/components/MultiSelect/MultiSelect.tsx
|
|
18309
18343
|
var import_framer_motion27 = require("framer-motion");
|
|
18310
18344
|
var import_react91 = require("react");
|
|
18311
|
-
var
|
|
18345
|
+
var import_react_dom11 = require("react-dom");
|
|
18312
18346
|
var import_icons24 = require("@octaviaflow/icons");
|
|
18313
18347
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
18314
18348
|
var RESERVED_TAIL_PX = 64;
|
|
@@ -18676,7 +18710,7 @@ var MultiSelect = (0, import_react91.forwardRef)(
|
|
|
18676
18710
|
]
|
|
18677
18711
|
}
|
|
18678
18712
|
),
|
|
18679
|
-
typeof document !== "undefined" && (0,
|
|
18713
|
+
typeof document !== "undefined" && (0, import_react_dom11.createPortal)(
|
|
18680
18714
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_framer_motion27.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
18681
18715
|
import_framer_motion27.motion.div,
|
|
18682
18716
|
{
|
|
@@ -20641,7 +20675,7 @@ PipelineCard.displayName = "PipelineCard";
|
|
|
20641
20675
|
|
|
20642
20676
|
// src/components/Popover/Popover.tsx
|
|
20643
20677
|
var import_react99 = require("react");
|
|
20644
|
-
var
|
|
20678
|
+
var import_react_dom12 = require("react-dom");
|
|
20645
20679
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
20646
20680
|
function computePosition4(rect, popRect, placement, offset) {
|
|
20647
20681
|
const cx = rect.left + rect.width / 2;
|
|
@@ -20738,7 +20772,7 @@ function Popover({
|
|
|
20738
20772
|
children
|
|
20739
20773
|
}
|
|
20740
20774
|
);
|
|
20741
|
-
const portal = typeof document !== "undefined" && open ? (0,
|
|
20775
|
+
const portal = typeof document !== "undefined" && open ? (0, import_react_dom12.createPortal)(
|
|
20742
20776
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
20743
20777
|
"div",
|
|
20744
20778
|
{
|
|
@@ -22676,7 +22710,7 @@ function SettingsRow({
|
|
|
22676
22710
|
// src/components/Sheet/Sheet.tsx
|
|
22677
22711
|
var import_framer_motion29 = require("framer-motion");
|
|
22678
22712
|
var import_react114 = require("react");
|
|
22679
|
-
var
|
|
22713
|
+
var import_react_dom13 = require("react-dom");
|
|
22680
22714
|
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
22681
22715
|
var slideVariants = {
|
|
22682
22716
|
top: { initial: { y: "-100%" }, animate: { y: 0 }, exit: { y: "-100%" } },
|
|
@@ -22759,7 +22793,7 @@ function Sheet({
|
|
|
22759
22793
|
)
|
|
22760
22794
|
] }) });
|
|
22761
22795
|
if (typeof document === "undefined") return null;
|
|
22762
|
-
return (0,
|
|
22796
|
+
return (0, import_react_dom13.createPortal)(content, document.body);
|
|
22763
22797
|
}
|
|
22764
22798
|
|
|
22765
22799
|
// src/components/Show/Show.tsx
|
|
@@ -23392,7 +23426,7 @@ SkeletonGroup.displayName = "SkeletonGroup";
|
|
|
23392
23426
|
var import_framer_motion30 = require("framer-motion");
|
|
23393
23427
|
var import_react117 = require("react");
|
|
23394
23428
|
var import_react_aria11 = require("react-aria");
|
|
23395
|
-
var
|
|
23429
|
+
var import_react_dom14 = require("react-dom");
|
|
23396
23430
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
23397
23431
|
var slideVariants2 = {
|
|
23398
23432
|
left: {
|
|
@@ -23484,7 +23518,7 @@ function SlideoutContent({
|
|
|
23484
23518
|
}
|
|
23485
23519
|
function SlideoutPanel(props) {
|
|
23486
23520
|
if (typeof document === "undefined") return null;
|
|
23487
|
-
return (0,
|
|
23521
|
+
return (0, import_react_dom14.createPortal)(
|
|
23488
23522
|
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_aria11.OverlayProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(SlideoutContent, { ...props }) }),
|
|
23489
23523
|
document.body
|
|
23490
23524
|
);
|
|
@@ -24101,7 +24135,7 @@ VStack.displayName = "VStack";
|
|
|
24101
24135
|
// src/components/Spotlight/Spotlight.tsx
|
|
24102
24136
|
var import_framer_motion31 = require("framer-motion");
|
|
24103
24137
|
var import_react122 = require("react");
|
|
24104
|
-
var
|
|
24138
|
+
var import_react_dom15 = require("react-dom");
|
|
24105
24139
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
24106
24140
|
var Spotlight = (0, import_react122.forwardRef)(
|
|
24107
24141
|
function Spotlight2({
|
|
@@ -24168,7 +24202,7 @@ var Spotlight = (0, import_react122.forwardRef)(
|
|
|
24168
24202
|
width: rect.width + padding * 2,
|
|
24169
24203
|
height: rect.height + padding * 2
|
|
24170
24204
|
} : null;
|
|
24171
|
-
return (0,
|
|
24205
|
+
return (0, import_react_dom15.createPortal)(
|
|
24172
24206
|
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_framer_motion31.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
|
|
24173
24207
|
import_framer_motion31.motion.div,
|
|
24174
24208
|
{
|
|
@@ -25859,7 +25893,7 @@ TestimonialCard.displayName = "TestimonialCard";
|
|
|
25859
25893
|
// src/components/Textarea/Textarea.tsx
|
|
25860
25894
|
var import_react136 = require("react");
|
|
25861
25895
|
var import_react_aria14 = require("react-aria");
|
|
25862
|
-
var
|
|
25896
|
+
var import_react_dom16 = require("react-dom");
|
|
25863
25897
|
var import_icons43 = require("@octaviaflow/icons");
|
|
25864
25898
|
|
|
25865
25899
|
// src/hooks/useTextareaCommands.ts
|
|
@@ -26651,7 +26685,7 @@ var Textarea = (0, import_react136.forwardRef)(
|
|
|
26651
26685
|
"aria-activedescendant": cmdEnabled && cmdPalette.isOpen && cmdPalette.items[cmdPalette.activeIndex] ? `${baseId}-cmd-${cmdPalette.items[cmdPalette.activeIndex].id}` : void 0
|
|
26652
26686
|
}
|
|
26653
26687
|
),
|
|
26654
|
-
cmdEnabled && cmdPalette.isOpen && cmdPalette.items.length > 0 && typeof document !== "undefined" && (0,
|
|
26688
|
+
cmdEnabled && cmdPalette.isOpen && cmdPalette.items.length > 0 && typeof document !== "undefined" && (0, import_react_dom16.createPortal)(
|
|
26655
26689
|
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
26656
26690
|
"ul",
|
|
26657
26691
|
{
|
|
@@ -26694,7 +26728,7 @@ var Textarea = (0, import_react136.forwardRef)(
|
|
|
26694
26728
|
),
|
|
26695
26729
|
document.body
|
|
26696
26730
|
),
|
|
26697
|
-
selectionToolbar && sel.active && sel.rect && typeof document !== "undefined" && (0,
|
|
26731
|
+
selectionToolbar && sel.active && sel.rect && typeof document !== "undefined" && (0, import_react_dom16.createPortal)(
|
|
26698
26732
|
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
|
|
26699
26733
|
"div",
|
|
26700
26734
|
{
|
|
@@ -27584,7 +27618,7 @@ TimezonePicker.displayName = "TimezonePicker";
|
|
|
27584
27618
|
// src/components/Toast/Toast.tsx
|
|
27585
27619
|
var import_framer_motion36 = require("framer-motion");
|
|
27586
27620
|
var import_react140 = require("react");
|
|
27587
|
-
var
|
|
27621
|
+
var import_react_dom17 = require("react-dom");
|
|
27588
27622
|
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
27589
27623
|
var defaultIcons = {
|
|
27590
27624
|
success: /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [
|
|
@@ -27914,7 +27948,7 @@ function ToastProvider({
|
|
|
27914
27948
|
}) });
|
|
27915
27949
|
return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(ToastContext.Provider, { value: ctx, children: [
|
|
27916
27950
|
children,
|
|
27917
|
-
typeof document !== "undefined" && (0,
|
|
27951
|
+
typeof document !== "undefined" && (0, import_react_dom17.createPortal)(containers, document.body)
|
|
27918
27952
|
] });
|
|
27919
27953
|
}
|
|
27920
27954
|
function useToast() {
|