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

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.
@@ -0,0 +1,5 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import * as RadixDialog from "@radix-ui/react-dialog";
3
+ export interface OverlayCloseProps extends ComponentPropsWithRef<typeof RadixDialog.Close> {
4
+ }
5
+ export declare const OverlayClose: import('react').NamedExoticComponent<OverlayCloseProps>;
@@ -0,0 +1,6 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import * as RadixDialog from "@radix-ui/react-dialog";
3
+ export interface OverlayContentProps extends ComponentPropsWithRef<typeof RadixDialog.Content> {
4
+ container?: RadixDialog.DialogPortalProps["container"];
5
+ }
6
+ export declare const OverlayContent: import('react').NamedExoticComponent<OverlayContentProps>;
@@ -0,0 +1,5 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import * as RadixDialog from "@radix-ui/react-dialog";
3
+ export interface OverlayDescriptionProps extends ComponentPropsWithRef<typeof RadixDialog.Description> {
4
+ }
5
+ export declare const OverlayDescription: import('react').NamedExoticComponent<OverlayDescriptionProps>;
@@ -0,0 +1,5 @@
1
+ import { ComponentProps } from 'react';
2
+ import * as RadixDialog from "@radix-ui/react-dialog";
3
+ export interface OverlayRootProps extends ComponentProps<typeof RadixDialog.Root> {
4
+ }
5
+ export declare const OverlayRoot: import('react').NamedExoticComponent<OverlayRootProps>;
@@ -0,0 +1,5 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import * as RadixDialog from "@radix-ui/react-dialog";
3
+ export interface OverlayTitleProps extends ComponentPropsWithRef<typeof RadixDialog.Title> {
4
+ }
5
+ export declare const OverlayTitle: import('react').NamedExoticComponent<OverlayTitleProps>;
@@ -0,0 +1,5 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import * as RadixDialog from "@radix-ui/react-dialog";
3
+ export interface OverlayTriggerProps extends ComponentPropsWithRef<typeof RadixDialog.Trigger> {
4
+ }
5
+ export declare const OverlayTrigger: import('react').NamedExoticComponent<OverlayTriggerProps>;
@@ -0,0 +1 @@
1
+ export declare const overlayContentCva: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export * from './Close';
3
+ export * from './Content';
4
+ export * from './Description';
5
+ export * from './Root';
6
+ export * from './Title';
7
+ export * from './Trigger';
8
+ export declare const Overlay: {
9
+ Root: import('react').NamedExoticComponent<import('./Root').OverlayRootProps>;
10
+ Content: import('react').NamedExoticComponent<import('./Content').OverlayContentProps>;
11
+ Title: import('react').NamedExoticComponent<import('./Title').OverlayTitleProps>;
12
+ Description: import('react').NamedExoticComponent<import('./Description').OverlayDescriptionProps>;
13
+ Trigger: import('react').NamedExoticComponent<import('./Trigger').OverlayTriggerProps>;
14
+ Close: import('react').NamedExoticComponent<import('./Close').OverlayCloseProps>;
15
+ };
package/dist/blocks.js CHANGED
@@ -4281,6 +4281,62 @@ const OneTimePasswordField = {
4281
4281
  Input: OneTimePasswordFieldInput,
4282
4282
  Root: OneTimePasswordFieldRoot
4283
4283
  };
4284
+ const OverlayClose = memo((props) => {
4285
+ const { ref, ...rest } = props;
4286
+ return /* @__PURE__ */ jsx(RadixDialog.Close, { ref, ...rest });
4287
+ });
4288
+ OverlayClose.displayName = "OverlayClose";
4289
+ const overlayContentCva = cva([
4290
+ "fixed",
4291
+ "inset-0",
4292
+ "bg-(--color-background)",
4293
+ "data-[state='closed']:animate-out",
4294
+ "data-[state='closed']:fade-out-0",
4295
+ "data-[state='closed']:zoom-out-95",
4296
+ "data-[state='open']:animate-in",
4297
+ "data-[state='open']:fade-in-0",
4298
+ "data-[state='open']:zoom-in-95"
4299
+ ]);
4300
+ const OverlayContent = memo((props) => {
4301
+ const { ref, container, className, ...rest } = props;
4302
+ return /* @__PURE__ */ jsx(RadixDialog.Portal, { container, children: /* @__PURE__ */ jsx(
4303
+ RadixDialog.Content,
4304
+ {
4305
+ className: cx(overlayContentCva(), className),
4306
+ ref,
4307
+ "data-floating-content": "",
4308
+ ...rest
4309
+ }
4310
+ ) });
4311
+ });
4312
+ OverlayContent.displayName = "OverlayContent";
4313
+ const OverlayDescription = memo((props) => {
4314
+ const { ref, ...rest } = props;
4315
+ return /* @__PURE__ */ jsx(RadixDialog.Description, { ref, ...rest });
4316
+ });
4317
+ OverlayDescription.displayName = "OverlayDescription";
4318
+ const OverlayRoot = memo((props) => {
4319
+ return /* @__PURE__ */ jsx(RadixDialog.Root, { ...props });
4320
+ });
4321
+ OverlayRoot.displayName = "OverlayRoot";
4322
+ const OverlayTitle = memo((props) => {
4323
+ const { ref, ...rest } = props;
4324
+ return /* @__PURE__ */ jsx(RadixDialog.Title, { ref, ...rest });
4325
+ });
4326
+ OverlayTitle.displayName = "OverlayTitle";
4327
+ const OverlayTrigger = memo((props) => {
4328
+ const { ref, ...rest } = props;
4329
+ return /* @__PURE__ */ jsx(RadixDialog.Trigger, { ref, ...rest });
4330
+ });
4331
+ OverlayTrigger.displayName = "OverlayTrigger";
4332
+ const Overlay = {
4333
+ Root: OverlayRoot,
4334
+ Content: OverlayContent,
4335
+ Title: OverlayTitle,
4336
+ Description: OverlayDescription,
4337
+ Trigger: OverlayTrigger,
4338
+ Close: OverlayClose
4339
+ };
4284
4340
  const centerStyles = { placeSelf: "center" };
4285
4341
  const ErrorFallback = memo((props) => {
4286
4342
  const { absoluteCentering, message = "Something went wrong", onRetry } = props;
@@ -6517,6 +6573,13 @@ export {
6517
6573
  OneTimePasswordFieldHiddenInput,
6518
6574
  OneTimePasswordFieldInput,
6519
6575
  OneTimePasswordFieldRoot,
6576
+ Overlay,
6577
+ OverlayClose,
6578
+ OverlayContent,
6579
+ OverlayDescription,
6580
+ OverlayRoot,
6581
+ OverlayTitle,
6582
+ OverlayTrigger,
6520
6583
  OvermapErrorBoundary,
6521
6584
  Popover,
6522
6585
  PopoverArrow,