@octaviaflow/core 3.1.0-beta.53 → 3.1.0-beta.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -24469,8 +24469,14 @@ function SlideoutContent({
24469
24469
  title,
24470
24470
  children,
24471
24471
  footer,
24472
- className
24472
+ className,
24473
+ offsetTop = 0,
24474
+ offsetBottom = 0
24473
24475
  }) {
24476
+ const toCss2 = (v) => typeof v === "number" ? `${v}px` : v;
24477
+ const insetStyle = {};
24478
+ if (offsetTop) insetStyle.top = toCss2(offsetTop);
24479
+ if (offsetBottom) insetStyle.bottom = toCss2(offsetBottom);
24474
24480
  const overlayRef = useRef45(null);
24475
24481
  const panelRef = useRef45(null);
24476
24482
  useEffect39(() => {
@@ -24519,7 +24525,8 @@ function SlideoutContent({
24519
24525
  transition: { duration: 0.2 },
24520
24526
  onClick: onClose,
24521
24527
  "data-testid": "slideout-backdrop",
24522
- "aria-hidden": "true"
24528
+ "aria-hidden": "true",
24529
+ style: insetStyle
24523
24530
  }
24524
24531
  ),
24525
24532
  /* @__PURE__ */ jsx110(FocusScope2, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ jsxs105(
@@ -24533,7 +24540,7 @@ function SlideoutContent({
24533
24540
  panelRef.current = node;
24534
24541
  },
24535
24542
  className: cn("ods-slideout__panel", `ods-slideout__panel--${position}`, className),
24536
- style: { width: panelWidth },
24543
+ style: { width: panelWidth, ...insetStyle },
24537
24544
  initial: variant.initial,
24538
24545
  animate: variant.animate,
24539
24546
  exit: variant.exit,
@@ -24649,7 +24656,9 @@ function VersionHistory({
24649
24656
  activeTab,
24650
24657
  onTabChange,
24651
24658
  defaultExpandedId = null,
24652
- className
24659
+ className,
24660
+ offsetTop,
24661
+ offsetBottom
24653
24662
  }) {
24654
24663
  const [expandedId, setExpandedId] = useState51(defaultExpandedId);
24655
24664
  const baseId = useId50();
@@ -24662,6 +24671,8 @@ function VersionHistory({
24662
24671
  position,
24663
24672
  width,
24664
24673
  title,
24674
+ offsetTop,
24675
+ offsetBottom,
24665
24676
  className: cn("ods-version-history", className),
24666
24677
  children: [
24667
24678
  showToolbar && /* @__PURE__ */ jsxs106("div", { className: "ods-version-history__toolbar", children: [