@overmap-ai/blocks 1.0.40-phone-input.0 → 1.0.40-slide-out-resize-handle.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.
Files changed (39) hide show
  1. package/dist/Layout/SlideOutClose.d.ts +5 -0
  2. package/dist/Layout/SlideOutContent.d.ts +6 -0
  3. package/dist/Layout/SlideOutHandle.d.ts +5 -0
  4. package/dist/Layout/SlideOutOverlay.d.ts +2 -5
  5. package/dist/Layout/SlideOutRoot.d.ts +10 -0
  6. package/dist/Layout/SlideOutTrigger.d.ts +2 -6
  7. package/dist/Layout/SlideOutViewport.d.ts +5 -0
  8. package/dist/Layout/context.d.ts +0 -1
  9. package/dist/Layout/index.d.ts +11 -3
  10. package/dist/Layout/typings.d.ts +3 -0
  11. package/dist/LuIcon/LuIcon.d.ts +4 -6
  12. package/dist/LuIcon/index.d.ts +1 -1
  13. package/dist/LuIcon/typings.d.ts +2 -2
  14. package/dist/SlideOut/Close.d.ts +4 -0
  15. package/dist/SlideOut/Content.d.ts +12 -0
  16. package/dist/SlideOut/Handle.d.ts +5 -0
  17. package/dist/SlideOut/Overlay.d.ts +4 -0
  18. package/dist/SlideOut/Root.d.ts +8 -0
  19. package/dist/SlideOut/Trigger.d.ts +4 -0
  20. package/dist/SlideOut/Viewport.d.ts +4 -0
  21. package/dist/SlideOut/constants.d.ts +1 -0
  22. package/dist/SlideOut/context.d.ts +16 -0
  23. package/dist/SlideOut/index.d.ts +18 -1
  24. package/dist/SlideOut/typings.d.ts +2 -0
  25. package/dist/blocks.js +373 -360
  26. package/dist/blocks.js.map +1 -1
  27. package/dist/blocks.umd.cjs +371 -356
  28. package/dist/blocks.umd.cjs.map +1 -1
  29. package/dist/index.d.ts +0 -1
  30. package/package.json +1 -2
  31. package/dist/Layout/SlideOut.d.ts +0 -20
  32. package/dist/PhoneNumberInput/CountrySelect.d.ts +0 -11
  33. package/dist/PhoneNumberInput/FlagComponent.d.ts +0 -2
  34. package/dist/PhoneNumberInput/InputComponent.d.ts +0 -5
  35. package/dist/PhoneNumberInput/PhoneNumberInput.d.ts +0 -6
  36. package/dist/PhoneNumberInput/context.d.ts +0 -4
  37. package/dist/PhoneNumberInput/index.d.ts +0 -2
  38. package/dist/PhoneNumberInput/typings.d.ts +0 -9
  39. package/dist/SlideOut/SlideOut.d.ts +0 -49
@@ -0,0 +1,5 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { SlideOutClose } from '../SlideOut';
3
+ export interface LayoutSlideOutCloseProps extends ComponentPropsWithRef<typeof SlideOutClose> {
4
+ }
5
+ export declare const LayoutSlideOutClose: import('react').NamedExoticComponent<LayoutSlideOutCloseProps>;
@@ -0,0 +1,6 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { SlideOutContent, SlideOutType } from '../SlideOut';
3
+ export interface LayoutSlideOutContentProps extends Omit<ComponentPropsWithRef<typeof SlideOutContent>, "type"> {
4
+ type?: SlideOutType;
5
+ }
6
+ export declare const LayoutSlideOutContent: import('react').NamedExoticComponent<LayoutSlideOutContentProps>;
@@ -0,0 +1,5 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { SlideOutHandle } from '../SlideOut';
3
+ export interface LayoutSlideOutHandleProps extends ComponentPropsWithRef<typeof SlideOutHandle> {
4
+ }
5
+ export declare const LayoutSlideOutHandle: import('react').NamedExoticComponent<LayoutSlideOutHandleProps>;
@@ -1,9 +1,6 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- export interface LayoutSlideOutOverlayProps extends ComponentPropsWithRef<"div"> {
3
- /** manually control overlay visibility, overrides automatic management based on slideOutId */
4
- active?: boolean;
5
- /** the ID of the SlideOut component this overlay is associated with */
6
- slideOutId: string;
2
+ import { SlideOutOverlay } from '../SlideOut';
3
+ export interface LayoutSlideOutOverlayProps extends ComponentPropsWithRef<typeof SlideOutOverlay> {
7
4
  /** if true, overlay only appears in small mode (mobile/responsive view)
8
5
  * @default false */
9
6
  smallModeOnly?: boolean;
@@ -0,0 +1,10 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { SlideOutRoot } from '../SlideOut';
3
+ import { SlideOutIdProps } from './typings';
4
+ export interface LayoutSlideOutRootProps extends Omit<ComponentPropsWithRef<typeof SlideOutRoot>, "defaultOpen" | "open" | "onOpenChange" | "modal">, SlideOutIdProps {
5
+ defaultOpen?: {
6
+ small?: boolean;
7
+ large?: boolean;
8
+ };
9
+ }
10
+ export declare const LayoutSlideOutRoot: import('react').NamedExoticComponent<LayoutSlideOutRootProps>;
@@ -1,9 +1,5 @@
1
1
  import { ComponentPropsWithRef, PropsWithChildren } from 'react';
2
- export interface LayoutSlideOutTriggerProps extends PropsWithChildren, Omit<ComponentPropsWithRef<"button">, "type"> {
3
- /** the ID of the SlideOut component this trigger controls */
4
- slideOutId: string;
5
- /** determines the action performed when the trigger is clicked
6
- * @default "toggle" */
7
- type?: "toggle" | "open" | "close";
2
+ import { SlideOutIdProps } from './typings';
3
+ export interface LayoutSlideOutTriggerProps extends PropsWithChildren, Omit<ComponentPropsWithRef<"button">, "type">, SlideOutIdProps {
8
4
  }
9
5
  export declare const LayoutSlideOutTrigger: import('react').NamedExoticComponent<LayoutSlideOutTriggerProps>;
@@ -0,0 +1,5 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { SlideOutViewport } from '../SlideOut';
3
+ export interface LayoutSlideOutViewportProps extends ComponentPropsWithRef<typeof SlideOutViewport> {
4
+ }
5
+ export declare const LayoutSlideOutViewport: import('react').NamedExoticComponent<LayoutSlideOutViewportProps>;
@@ -6,5 +6,4 @@ interface ILayoutContent {
6
6
  setOpen: (id: string, open: boolean) => void;
7
7
  }
8
8
  export declare const LayoutContext: import('react').Context<ILayoutContent>;
9
- export declare const useLayoutContext: () => ILayoutContent;
10
9
  export {};
@@ -1,14 +1,22 @@
1
1
  /// <reference types="react" />
2
2
  export * from './Container';
3
- export * from './context';
3
+ export * from './hooks';
4
4
  export * from './Root';
5
- export * from './SlideOut';
5
+ export * from './SlideOutClose';
6
+ export * from './SlideOutContent';
7
+ export * from './SlideOutHandle';
6
8
  export * from './SlideOutOverlay';
9
+ export * from './SlideOutRoot';
7
10
  export * from './SlideOutTrigger';
11
+ export type * from './typings';
8
12
  export declare const Layout: {
9
13
  Root: import('react').MemoExoticComponent<(props: import('./Root').LayoutRootProps) => import("react/jsx-runtime").JSX.Element>;
10
14
  Container: import('react').NamedExoticComponent<import('./Container').LayoutContainerProps>;
15
+ SlideOutClose: import('react').NamedExoticComponent<import('./SlideOutClose').LayoutSlideOutCloseProps>;
16
+ SlideOutContent: import('react').NamedExoticComponent<import('./SlideOutContent').LayoutSlideOutContentProps>;
17
+ SlideOutHandle: import('react').NamedExoticComponent<import('./SlideOutHandle').LayoutSlideOutHandleProps>;
11
18
  SlideOutOverlay: import('react').NamedExoticComponent<import('./SlideOutOverlay').LayoutSlideOutOverlayProps>;
12
- SlideOut: import('react').NamedExoticComponent<import('./SlideOut').LayoutSlideOutProps>;
19
+ SlideOutRoot: import('react').NamedExoticComponent<import('./SlideOutRoot').LayoutSlideOutRootProps>;
13
20
  SlideOutTrigger: import('react').NamedExoticComponent<import('./SlideOutTrigger').LayoutSlideOutTriggerProps>;
21
+ SlideOutViewport: import('react').NamedExoticComponent<import('./SlideOutViewport').LayoutSlideOutViewportProps>;
14
22
  };
@@ -0,0 +1,3 @@
1
+ export interface SlideOutIdProps {
2
+ slideOutId: string;
3
+ }
@@ -1,8 +1,6 @@
1
- import { DynamicIcon } from 'lucide-react/dynamic';
2
- import { ComponentPropsWithRef } from 'react';
3
- import { IconType } from './typings';
4
- interface LuIconProps extends Omit<ComponentPropsWithRef<typeof DynamicIcon>, "name"> {
5
- icon: IconType;
1
+ import { LucideProps } from 'lucide-react';
2
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
3
+ export interface LuIconProps extends Omit<LucideProps, "ref">, RefAttributes<SVGSVGElement> {
4
+ icon: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
6
5
  }
7
6
  export declare const LuIcon: import('react').NamedExoticComponent<LuIconProps>;
8
- export {};
@@ -1,2 +1,2 @@
1
1
  export * from './LuIcon';
2
- export * from './typings';
2
+ export type * from './typings';
@@ -1,3 +1,3 @@
1
- import { DynamicIcon } from 'lucide-react/dynamic';
2
1
  import { ComponentProps } from 'react';
3
- export type IconType = ComponentProps<typeof DynamicIcon>["name"];
2
+ import { LuIcon } from './LuIcon';
3
+ export type IconComponent = ComponentProps<typeof LuIcon>["icon"];
@@ -0,0 +1,4 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface SlideOutCloseProps extends ComponentPropsWithRef<"button"> {
3
+ }
4
+ export declare const SlideOutClose: import('react').NamedExoticComponent<SlideOutCloseProps>;
@@ -0,0 +1,12 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { SlideOutSide, SlideOutType } from './typings';
3
+ export interface SlideOutContentProps extends ComponentPropsWithRef<"div"> {
4
+ side: SlideOutSide;
5
+ type: SlideOutType;
6
+ resizeable?: boolean;
7
+ initialSize: number | string;
8
+ minSize?: number | string;
9
+ maxSize?: number | string;
10
+ hide?: boolean;
11
+ }
12
+ export declare const SlideOutContent: import('react').NamedExoticComponent<SlideOutContentProps>;
@@ -0,0 +1,5 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface SlideOutHandleProps extends ComponentPropsWithRef<"div"> {
3
+ disabled?: boolean;
4
+ }
5
+ export declare const SlideOutHandle: import('react').NamedExoticComponent<SlideOutHandleProps>;
@@ -0,0 +1,4 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface SlideOutOverlayProps extends ComponentPropsWithRef<"div"> {
3
+ }
4
+ export declare const SlideOutOverlay: import('react').NamedExoticComponent<SlideOutOverlayProps>;
@@ -0,0 +1,8 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface SlideOutRootProps extends ComponentPropsWithRef<"div"> {
3
+ defaultOpen?: boolean;
4
+ open?: boolean;
5
+ onOpenChange?: (open: boolean) => void;
6
+ modal?: boolean;
7
+ }
8
+ export declare const SlideOutRoot: import('react').NamedExoticComponent<SlideOutRootProps>;
@@ -0,0 +1,4 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface SlideOutTriggerProps extends ComponentPropsWithRef<"button"> {
3
+ }
4
+ export declare const SlideOutTrigger: import('react').NamedExoticComponent<SlideOutTriggerProps>;
@@ -0,0 +1,4 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface SlideOutViewportProps extends ComponentPropsWithRef<"div"> {
3
+ }
4
+ export declare const SlideOutViewport: import('react').NamedExoticComponent<SlideOutViewportProps>;
@@ -0,0 +1 @@
1
+ export declare const TIMEOUT_DURATION = 200;
@@ -0,0 +1,16 @@
1
+ import { SlideOutSide, SlideOutType } from './typings';
2
+ export interface ISlideOutRootContext {
3
+ parentElement: HTMLDivElement | null;
4
+ open: boolean;
5
+ setOpen: (open: boolean) => void;
6
+ modal: boolean;
7
+ }
8
+ export declare const SlideOutRootContext: import('react').Context<ISlideOutRootContext>;
9
+ export interface ISlideOutContentContext {
10
+ side: SlideOutSide;
11
+ type: SlideOutType;
12
+ resizeable: boolean;
13
+ computedSize: number | null;
14
+ setComputedSize: (computedSize: number | null) => void;
15
+ }
16
+ export declare const SlideOutContextContext: import('react').Context<ISlideOutContentContext>;
@@ -1 +1,18 @@
1
- export * from './SlideOut';
1
+ /// <reference types="react" />
2
+ export * from './Close';
3
+ export * from './Content';
4
+ export * from './Handle';
5
+ export * from './Overlay';
6
+ export * from './Root';
7
+ export * from './Trigger';
8
+ export type * from './typings';
9
+ export * from './Viewport';
10
+ export declare const SlideOut: {
11
+ Close: import('react').NamedExoticComponent<import('./Close').SlideOutCloseProps>;
12
+ Content: import('react').NamedExoticComponent<import('./Content').SlideOutContentProps>;
13
+ Handle: import('react').NamedExoticComponent<import('./Handle').SlideOutHandleProps>;
14
+ Overlay: import('react').NamedExoticComponent<import('./Overlay').SlideOutOverlayProps>;
15
+ Root: import('react').NamedExoticComponent<import('./Root').SlideOutRootProps>;
16
+ Trigger: import('react').NamedExoticComponent<import('./Trigger').SlideOutTriggerProps>;
17
+ Viewport: import('react').NamedExoticComponent<import('./Viewport').SlideOutViewportProps>;
18
+ };
@@ -0,0 +1,2 @@
1
+ export type SlideOutSide = "left" | "right" | "top" | "bottom";
2
+ export type SlideOutType = "inline" | "overlay";