@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.
- package/dist/Layout/SlideOutClose.d.ts +5 -0
- package/dist/Layout/SlideOutContent.d.ts +6 -0
- package/dist/Layout/SlideOutHandle.d.ts +5 -0
- package/dist/Layout/SlideOutOverlay.d.ts +2 -5
- package/dist/Layout/SlideOutRoot.d.ts +10 -0
- package/dist/Layout/SlideOutTrigger.d.ts +2 -6
- package/dist/Layout/SlideOutViewport.d.ts +5 -0
- package/dist/Layout/context.d.ts +0 -1
- package/dist/Layout/index.d.ts +11 -3
- package/dist/Layout/typings.d.ts +3 -0
- package/dist/LuIcon/LuIcon.d.ts +4 -6
- package/dist/LuIcon/index.d.ts +1 -1
- package/dist/LuIcon/typings.d.ts +2 -2
- package/dist/SlideOut/Close.d.ts +4 -0
- package/dist/SlideOut/Content.d.ts +12 -0
- package/dist/SlideOut/Handle.d.ts +5 -0
- package/dist/SlideOut/Overlay.d.ts +4 -0
- package/dist/SlideOut/Root.d.ts +8 -0
- package/dist/SlideOut/Trigger.d.ts +4 -0
- package/dist/SlideOut/Viewport.d.ts +4 -0
- package/dist/SlideOut/constants.d.ts +1 -0
- package/dist/SlideOut/context.d.ts +16 -0
- package/dist/SlideOut/index.d.ts +18 -1
- package/dist/SlideOut/typings.d.ts +2 -0
- package/dist/blocks.js +373 -360
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +371 -356
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/package.json +1 -2
- package/dist/Layout/SlideOut.d.ts +0 -20
- package/dist/PhoneNumberInput/CountrySelect.d.ts +0 -11
- package/dist/PhoneNumberInput/FlagComponent.d.ts +0 -2
- package/dist/PhoneNumberInput/InputComponent.d.ts +0 -5
- package/dist/PhoneNumberInput/PhoneNumberInput.d.ts +0 -6
- package/dist/PhoneNumberInput/context.d.ts +0 -4
- package/dist/PhoneNumberInput/index.d.ts +0 -2
- package/dist/PhoneNumberInput/typings.d.ts +0 -9
- 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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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>;
|
package/dist/Layout/context.d.ts
CHANGED
package/dist/Layout/index.d.ts
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export * from './Container';
|
|
3
|
-
export * from './
|
|
3
|
+
export * from './hooks';
|
|
4
4
|
export * from './Root';
|
|
5
|
-
export * from './
|
|
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
|
-
|
|
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
|
};
|
package/dist/LuIcon/LuIcon.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
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 {};
|
package/dist/LuIcon/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './LuIcon';
|
|
2
|
-
export * from './typings';
|
|
2
|
+
export type * from './typings';
|
package/dist/LuIcon/typings.d.ts
CHANGED
|
@@ -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,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 @@
|
|
|
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>;
|
package/dist/SlideOut/index.d.ts
CHANGED
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
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
|
+
};
|