@overmap-ai/blocks 1.0.40-alpha.4 → 1.0.40-improvements.1

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.
@@ -4091,8 +4091,10 @@
4091
4091
  [getActiveItem, getFirstGroup, getFirstItem, getLastGroup, getLastItem, getNextGroup, getNextItem, onKeyDown]
4092
4092
  );
4093
4093
  react.useEffect(() => {
4094
+ var _a;
4094
4095
  const firstItem = getFirstItem(internalRef.current);
4095
4096
  if (!firstItem) return;
4097
+ (_a = internalRef.current) == null ? void 0 : _a.focus();
4096
4098
  setActiveItemId(firstItem.getAttribute(ITEM_SELECTOR));
4097
4099
  }, [getFirstItem]);
4098
4100
  const contextValue = react.useMemo(
@@ -4287,6 +4289,62 @@
4287
4289
  Input: OneTimePasswordFieldInput,
4288
4290
  Root: OneTimePasswordFieldRoot
4289
4291
  };
4292
+ const OverlayClose = react.memo((props) => {
4293
+ const { ref, ...rest } = props;
4294
+ return /* @__PURE__ */ jsxRuntime.jsx(RadixDialog__namespace.Close, { ref, ...rest });
4295
+ });
4296
+ OverlayClose.displayName = "OverlayClose";
4297
+ const overlayContentCva = classVarianceAuthority.cva([
4298
+ "fixed",
4299
+ "inset-0",
4300
+ "bg-(--color-background)",
4301
+ "data-[state='closed']:animate-out",
4302
+ "data-[state='closed']:fade-out-0",
4303
+ "data-[state='closed']:zoom-out-95",
4304
+ "data-[state='open']:animate-in",
4305
+ "data-[state='open']:fade-in-0",
4306
+ "data-[state='open']:zoom-in-95"
4307
+ ]);
4308
+ const OverlayContent = react.memo((props) => {
4309
+ const { ref, container, className, ...rest } = props;
4310
+ return /* @__PURE__ */ jsxRuntime.jsx(RadixDialog__namespace.Portal, { container, children: /* @__PURE__ */ jsxRuntime.jsx(
4311
+ RadixDialog__namespace.Content,
4312
+ {
4313
+ className: classVarianceAuthority.cx(overlayContentCva(), className),
4314
+ ref,
4315
+ "data-floating-content": "",
4316
+ ...rest
4317
+ }
4318
+ ) });
4319
+ });
4320
+ OverlayContent.displayName = "OverlayContent";
4321
+ const OverlayDescription = react.memo((props) => {
4322
+ const { ref, ...rest } = props;
4323
+ return /* @__PURE__ */ jsxRuntime.jsx(RadixDialog__namespace.Description, { ref, ...rest });
4324
+ });
4325
+ OverlayDescription.displayName = "OverlayDescription";
4326
+ const OverlayRoot = react.memo((props) => {
4327
+ return /* @__PURE__ */ jsxRuntime.jsx(RadixDialog__namespace.Root, { ...props });
4328
+ });
4329
+ OverlayRoot.displayName = "OverlayRoot";
4330
+ const OverlayTitle = react.memo((props) => {
4331
+ const { ref, ...rest } = props;
4332
+ return /* @__PURE__ */ jsxRuntime.jsx(RadixDialog__namespace.Title, { ref, ...rest });
4333
+ });
4334
+ OverlayTitle.displayName = "OverlayTitle";
4335
+ const OverlayTrigger = react.memo((props) => {
4336
+ const { ref, ...rest } = props;
4337
+ return /* @__PURE__ */ jsxRuntime.jsx(RadixDialog__namespace.Trigger, { ref, ...rest });
4338
+ });
4339
+ OverlayTrigger.displayName = "OverlayTrigger";
4340
+ const Overlay = {
4341
+ Root: OverlayRoot,
4342
+ Content: OverlayContent,
4343
+ Title: OverlayTitle,
4344
+ Description: OverlayDescription,
4345
+ Trigger: OverlayTrigger,
4346
+ Close: OverlayClose
4347
+ };
4290
4348
  const centerStyles = { placeSelf: "center" };
4291
4349
  const ErrorFallback = react.memo((props) => {
4292
4350
  const { absoluteCentering, message = "Something went wrong", onRetry } = props;
@@ -6522,6 +6580,13 @@
6522
6580
  exports2.OneTimePasswordFieldHiddenInput = OneTimePasswordFieldHiddenInput;
6523
6581
  exports2.OneTimePasswordFieldInput = OneTimePasswordFieldInput;
6524
6582
  exports2.OneTimePasswordFieldRoot = OneTimePasswordFieldRoot;
6583
+ exports2.Overlay = Overlay;
6584
+ exports2.OverlayClose = OverlayClose;
6585
+ exports2.OverlayContent = OverlayContent;
6586
+ exports2.OverlayDescription = OverlayDescription;
6587
+ exports2.OverlayRoot = OverlayRoot;
6588
+ exports2.OverlayTitle = OverlayTitle;
6589
+ exports2.OverlayTrigger = OverlayTrigger;
6525
6590
  exports2.OvermapErrorBoundary = OvermapErrorBoundary;
6526
6591
  exports2.Popover = Popover;
6527
6592
  exports2.PopoverArrow = PopoverArrow;