@overmap-ai/blocks 1.0.40-overlay.1 → 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/ButtonGroup/ButtonGroup.d.ts +1 -2
- package/dist/ButtonGroup/context.d.ts +2 -7
- package/dist/CheckboxGroup/context.d.ts +2 -6
- package/dist/CheckedIndicator/CheckedIndicator.d.ts +4 -3
- package/dist/CommandMenu/CheckboxIndicator.d.ts +2 -4
- package/dist/CommandMenu/SelectedIndicator.d.ts +2 -3
- package/dist/CommandMenu/context.d.ts +2 -3
- package/dist/Heading/cva.d.ts +1 -1
- package/dist/HoverUtility/HoverUtility.d.ts +2 -2
- 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/Link/cva.d.ts +1 -1
- 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/Menu/{CheckboxItem/CheckboxItem.d.ts → CheckboxItem.d.ts} +1 -1
- package/dist/Menu/{CheckboxItemIndicator/CheckboxItemIndicator.d.ts → CheckboxItemIndicator.d.ts} +1 -1
- package/dist/Menu/{ClickTrigger/ClickTrigger.d.ts → ClickTrigger.d.ts} +1 -1
- package/dist/Menu/{Content/Content.d.ts → Content.d.ts} +1 -1
- package/dist/Menu/{ContextTrigger/ContextTrigger.d.ts → ContextTrigger.d.ts} +1 -1
- package/dist/Menu/{Group/Group.d.ts → Group.d.ts} +1 -1
- package/dist/Menu/{Input/Field.d.ts → InputField.d.ts} +1 -1
- package/dist/Menu/{Input/Root.d.ts → InputRoot.d.ts} +1 -1
- package/dist/Menu/{Input/Slot.d.ts → InputSlot.d.ts} +1 -1
- package/dist/Menu/{Item/Item.d.ts → Item.d.ts} +1 -1
- package/dist/Menu/{MultiSelectGroup/MultiSelectGroup.d.ts → MultiSelectGroup.d.ts} +1 -1
- package/dist/Menu/{MultiSelectItem/MultiSelectItem.d.ts → MultiSelectItem.d.ts} +1 -1
- package/dist/Menu/PageContent.d.ts +2 -0
- package/dist/Menu/{PageTrigger/PageTrigger.d.ts → PageTrigger.d.ts} +1 -1
- package/dist/Menu/{Pages/Pages.d.ts → Pages.d.ts} +1 -1
- package/dist/Menu/{root/Root.d.ts → Root.d.ts} +1 -1
- package/dist/Menu/{Scroll/Scroll.d.ts → Scroll.d.ts} +1 -1
- package/dist/Menu/{SelectAll/SelectAllItem.d.ts → SelectAllItem.d.ts} +1 -1
- package/dist/Menu/{SelectGroup/SelectGroup.d.ts → SelectGroup.d.ts} +1 -1
- package/dist/Menu/{SelectItem/SelectItem.d.ts → SelectItem.d.ts} +1 -1
- package/dist/Menu/SelectedIndicator.d.ts +4 -0
- package/dist/Menu/{Separator/Separator.d.ts → Separator.d.ts} +1 -1
- package/dist/Menu/{Sub/Sub.d.ts → Sub.d.ts} +1 -1
- package/dist/Menu/{SubContent/SubContent.d.ts → SubContent.d.ts} +1 -1
- package/dist/Menu/{SubTrigger/SubTrigger.d.ts → SubTrigger.d.ts} +1 -1
- package/dist/Menu/{VirtualTrigger/VirtualTrigger.d.ts → VirtualTrigger.d.ts} +1 -1
- package/dist/Menu/index.d.ts +9 -7
- package/dist/Menu/{Content/context.d.ts → menuContentContext.d.ts} +2 -2
- package/dist/Menu/{root/context.d.ts → rootContext.d.ts} +1 -1
- package/dist/Menu/{Sub/context.d.ts → subContentContext.d.ts} +1 -1
- package/dist/Menu/utils.d.ts +0 -6
- package/dist/MenuV2/CheckboxItem.d.ts +6 -0
- package/dist/MenuV2/CheckboxItemIndicator.d.ts +3 -0
- package/dist/MenuV2/Group.d.ts +4 -0
- package/dist/MenuV2/GroupLabel.d.ts +4 -0
- package/dist/MenuV2/Item.d.ts +6 -0
- package/dist/MenuV2/MultiSelectAllItem.d.ts +4 -0
- package/dist/MenuV2/MultiSelectGroup.d.ts +5 -0
- package/dist/MenuV2/MultiSelectItem.d.ts +5 -0
- package/dist/MenuV2/Page.d.ts +5 -0
- package/dist/MenuV2/PageTriggerItem.d.ts +5 -0
- package/dist/MenuV2/Pages.d.ts +7 -0
- package/dist/MenuV2/Root.d.ts +6 -0
- package/dist/MenuV2/SelectGroup.d.ts +4 -0
- package/dist/MenuV2/SelectItem.d.ts +5 -0
- package/dist/MenuV2/SelectedIndicator.d.ts +3 -0
- package/dist/MenuV2/Separator.d.ts +5 -0
- package/dist/MenuV2/constants.d.ts +9 -0
- package/dist/MenuV2/context.d.ts +17 -0
- package/dist/MenuV2/cva.d.ts +14 -0
- package/dist/MenuV2/index.d.ts +36 -0
- package/dist/MenuV2/typings.d.ts +9 -0
- package/dist/MenuV2/utils.d.ts +1 -0
- package/dist/Rating/Item.d.ts +6 -0
- package/dist/Rating/ItemIndicator.d.ts +5 -0
- package/dist/Rating/Root.d.ts +8 -0
- package/dist/Rating/context.d.ts +9 -0
- package/dist/Rating/index.d.ts +9 -0
- package/dist/SelectedIndicator/SelectedIndicator.d.ts +5 -0
- package/dist/{Menu/SelectedIndicator → SelectedIndicator}/context.d.ts +0 -1
- package/dist/SelectedIndicator/index.d.ts +2 -0
- 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/Text/cva.d.ts +1 -1
- package/dist/blocks.js +1637 -1124
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +1748 -1236
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/hooks.d.ts +20 -0
- package/dist/index.d.ts +4 -2
- package/dist/typings.d.ts +0 -5
- package/dist/utils.d.ts +7 -30
- package/package.json +1 -1
- package/dist/CheckboxGroup/utils.d.ts +0 -1
- package/dist/CollapsibleTree/CollapsibleTree.d.ts +0 -5
- package/dist/CollapsibleTree/context.d.ts +0 -11
- package/dist/CollapsibleTree/index.d.ts +0 -2
- package/dist/CollapsibleTree/typings.d.ts +0 -58
- package/dist/CommandMenu/utils.d.ts +0 -4
- package/dist/Layout/SlideOut.d.ts +0 -20
- package/dist/Menu/ClickTrigger/index.d.ts +0 -1
- package/dist/Menu/Content/index.d.ts +0 -2
- package/dist/Menu/ContextTrigger/index.d.ts +0 -1
- package/dist/Menu/Group/index.d.ts +0 -1
- package/dist/Menu/Input/index.d.ts +0 -3
- package/dist/Menu/Item/index.d.ts +0 -1
- package/dist/Menu/Label/index.d.ts +0 -1
- package/dist/Menu/MultiSelectGroup/index.d.ts +0 -1
- package/dist/Menu/MultiSelectItem/index.d.ts +0 -1
- package/dist/Menu/PageContent/PageContent.d.ts +0 -3
- package/dist/Menu/PageContent/index.d.ts +0 -1
- package/dist/Menu/PageTrigger/index.d.ts +0 -1
- package/dist/Menu/Pages/index.d.ts +0 -2
- package/dist/Menu/SelectAll/index.d.ts +0 -1
- package/dist/Menu/SelectGroup/index.d.ts +0 -1
- package/dist/Menu/SelectItem/index.d.ts +0 -1
- package/dist/Menu/SelectedIndicator/SelectedIndicator.d.ts +0 -4
- package/dist/Menu/SelectedIndicator/index.d.ts +0 -2
- package/dist/Menu/Separator/index.d.ts +0 -1
- package/dist/Menu/Sub/index.d.ts +0 -2
- package/dist/Menu/SubContent/index.d.ts +0 -1
- package/dist/Menu/SubTrigger/index.d.ts +0 -1
- package/dist/Menu/VirtualTrigger/index.d.ts +0 -1
- package/dist/Menu/root/index.d.ts +0 -2
- package/dist/SlideOut/SlideOut.d.ts +0 -50
- /package/dist/Menu/{Label/Label.d.ts → Label.d.ts} +0 -0
- /package/dist/Menu/{Pages/context.d.ts → menuPagesContext.d.ts} +0 -0
package/dist/hooks.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { ViewportSizes } from './typings';
|
|
3
|
+
interface useViewportSizeProps {
|
|
4
|
+
xs: number | string;
|
|
5
|
+
sm: number | string;
|
|
6
|
+
md: number | string;
|
|
7
|
+
lg: number | string;
|
|
8
|
+
xl: number | string;
|
|
9
|
+
}
|
|
10
|
+
export declare const useViewportSize: (props: useViewportSizeProps) => Record<"xs" | "sm" | "md" | "lg" | "xl", boolean> & {
|
|
11
|
+
prevSize: ViewportSizes;
|
|
12
|
+
size: ViewportSizes;
|
|
13
|
+
};
|
|
14
|
+
/** custom hook use for providing filter functionality based on a text input field
|
|
15
|
+
* @param filterFunction make sure this is wrapped in a useCallback
|
|
16
|
+
* @param items items that should be filtered on (of type T) */
|
|
17
|
+
export declare function useTextFilter<TItem>(items: TItem[], filterFunction: (value: TItem, filterValue: string) => boolean): [TItem[], string, Dispatch<SetStateAction<string>>];
|
|
18
|
+
export declare function useControlledState<TState>(initialState: TState, state?: TState, setState?: (state: TState) => void): [TState, (state: TState) => void];
|
|
19
|
+
export declare function useFallbackId(id?: string): string;
|
|
20
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -6,12 +6,12 @@ export * from './Buttons';
|
|
|
6
6
|
export * from './Card';
|
|
7
7
|
export * from './Checkbox';
|
|
8
8
|
export * from './CheckboxGroup';
|
|
9
|
-
export * from './CollapsibleTree';
|
|
10
9
|
export * from './CommandMenu';
|
|
11
10
|
export * from './cva';
|
|
12
11
|
export * from './DayPicker';
|
|
13
12
|
export * from './Dialog';
|
|
14
13
|
export * from './Heading';
|
|
14
|
+
export * from './hooks';
|
|
15
15
|
export * from './HoverCard';
|
|
16
16
|
export * from './HoverUtility';
|
|
17
17
|
export * from './Input';
|
|
@@ -19,6 +19,7 @@ export * from './Layout';
|
|
|
19
19
|
export * from './Link';
|
|
20
20
|
export * from './LuIcon';
|
|
21
21
|
export * from './Menu';
|
|
22
|
+
export * from './MenuV2';
|
|
22
23
|
export * from './OneTimePasswordField';
|
|
23
24
|
export * from './Overlay';
|
|
24
25
|
export * from './OvermapErrorBoundary';
|
|
@@ -27,6 +28,7 @@ export * from './Progress';
|
|
|
27
28
|
export * from './Provider';
|
|
28
29
|
export * from './RadioCards';
|
|
29
30
|
export * from './RadioGroup';
|
|
31
|
+
export * from './Rating';
|
|
30
32
|
export * from './SegmentedControl';
|
|
31
33
|
export * from './SegmentedTabs';
|
|
32
34
|
export * from './Separator';
|
|
@@ -43,4 +45,4 @@ export * from './ToggleButton';
|
|
|
43
45
|
export * from './ToggleGroup';
|
|
44
46
|
export * from './Tooltip';
|
|
45
47
|
export * from './typings';
|
|
46
|
-
export
|
|
48
|
+
export * from './utils';
|
package/dist/typings.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
export type PropsWithClassNameAndStyle = {
|
|
3
|
-
className?: string;
|
|
4
|
-
style?: CSSProperties;
|
|
5
|
-
};
|
|
6
1
|
export type ViewportSizes = "initial" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
7
2
|
export interface AccentColorProps {
|
|
8
3
|
accentColor?: string;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,34 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
import { CheckedState } from './CheckedIndicator';
|
|
3
3
|
import type * as React from "react";
|
|
4
|
-
export interface ViewportSize {
|
|
5
|
-
size: ViewportSizes;
|
|
6
|
-
prevSize: ViewportSizes;
|
|
7
|
-
xs: boolean;
|
|
8
|
-
sm: boolean;
|
|
9
|
-
md: boolean;
|
|
10
|
-
lg: boolean;
|
|
11
|
-
xl: boolean;
|
|
12
|
-
}
|
|
13
|
-
/** Return value needs to be deconstructed since the object returned is not memoized */
|
|
14
|
-
interface useViewportSizeProps {
|
|
15
|
-
xs: number | string;
|
|
16
|
-
sm: number | string;
|
|
17
|
-
md: number | string;
|
|
18
|
-
lg: number | string;
|
|
19
|
-
xl: number | string;
|
|
20
|
-
}
|
|
21
|
-
export declare const useViewportSize: (props: useViewportSizeProps) => ViewportSize;
|
|
22
|
-
/** utility used for stopping Event propagation.
|
|
23
|
-
* @return stopPropagation a callback that calls stopPropagation on a general event */
|
|
24
|
-
export declare const useStopEventPropagation: () => (event: Event) => void;
|
|
25
|
-
/** custom hook use for providing filter functionality based on a text input field
|
|
26
|
-
* @param filterFunction make sure this is wrapped in a useCallback
|
|
27
|
-
* @param values items that should be filtered on (of type T) */
|
|
28
|
-
export declare function useTextFilter<T>(values: T[], filterFunction: (value: T, filterValue: string) => boolean): [T[], string, Dispatch<SetStateAction<string>>];
|
|
29
|
-
export declare const useSize: (target: RefObject<HTMLDivElement>) => DOMRectReadOnly | undefined;
|
|
30
4
|
export declare const genericMemo: <T>(component: T) => T;
|
|
31
|
-
export declare function useControlledState<TState>(initialState: TState, state?: TState, setState?: (state: TState) => void): [TState, (state: TState) => void];
|
|
32
5
|
export declare function mergeRefs<T>(refs: Array<React.Ref<T> | undefined>): React.RefCallback<T>;
|
|
33
6
|
export declare const stopPropagation: (e: SyntheticEvent) => void;
|
|
34
|
-
export
|
|
7
|
+
export declare function getSelectedState(selected: boolean): "selected" | "unselected";
|
|
8
|
+
export declare function getCheckedState(checked: CheckedState): "checked" | "indeterminate" | "unchecked";
|
|
9
|
+
export declare function getActiveState(active: boolean): "active" | "inactive";
|
|
10
|
+
export declare function getBooleanState(value: boolean): "true" | "false";
|
|
11
|
+
export declare function getOpenState(open: boolean): "open" | "closed";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getBooleanState(value: boolean): "true" | "false";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CollapsibleTreeProps } from './typings';
|
|
2
|
-
/** The Collapsible Tree Component is a reusable UI element that displays hierarchical data in a tree structure.
|
|
3
|
-
* Nodes in the tree can be expanded or collapsed to show or hide their children, allowing for an intuitive and
|
|
4
|
-
* space-efficient way to navigate complex data structures.*/
|
|
5
|
-
export declare const CollapsibleTree: <TMeta>(props: CollapsibleTreeProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { NodeCallbacks, NodeRenderer } from './typings';
|
|
3
|
-
interface ICollapsibleTreeContext<TMeta> extends NodeCallbacks<TMeta> {
|
|
4
|
-
nodeClassName?: string;
|
|
5
|
-
nodeStyles?: CSSProperties;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
nodeRenderer: NodeRenderer<TMeta>;
|
|
8
|
-
}
|
|
9
|
-
export declare const CollapsibleTreeContext: import('react').Context<ICollapsibleTreeContext<never>>;
|
|
10
|
-
export declare function useCollapsibleTreeContext<TMeta>(): ICollapsibleTreeContext<TMeta>;
|
|
11
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { CollapsibleProps } from '@radix-ui/react-collapsible';
|
|
2
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import { PropsWithClassNameAndStyle } from '../typings';
|
|
4
|
-
export type NodeEventHandler<TMeta> = (meta: TMeta) => void;
|
|
5
|
-
export interface NodeCallbacks<TMeta> {
|
|
6
|
-
/** callback fired when a specific TreeNode is clicked, regardless of the current open state of the specific
|
|
7
|
-
* TreeNode collapsible. */
|
|
8
|
-
onNodeClick?: NodeEventHandler<TMeta>;
|
|
9
|
-
/** callback fired when a specific TreeNode collapsible is opened. */
|
|
10
|
-
onNodeOpen?: NodeEventHandler<TMeta>;
|
|
11
|
-
/** callback fired when a specific TreeNode collapsible is closed. */
|
|
12
|
-
onNodeClose?: NodeEventHandler<TMeta>;
|
|
13
|
-
}
|
|
14
|
-
export type NodeRenderer<TMeta> = (args: {
|
|
15
|
-
/** passing any meta information defined for the given node*/
|
|
16
|
-
meta: TMeta;
|
|
17
|
-
/** a function to toggle the open state of the TreeNode, useful to define what content with the TreeNode is responsible
|
|
18
|
-
* for triggering the opening and closing of the TreeNode collapsible. */
|
|
19
|
-
toggleOpen: () => void;
|
|
20
|
-
/** the current open state of the TreeNode collapsible, useful for changing rendered content within the TreeNode
|
|
21
|
-
* based on its open state. */
|
|
22
|
-
open: boolean;
|
|
23
|
-
/** the current disabled state of the TreeNode, useful for changing rendered content or functionality based on if the
|
|
24
|
-
* TreeNode is disabled or not. */
|
|
25
|
-
disabled: boolean;
|
|
26
|
-
}) => {
|
|
27
|
-
children: ReactNode;
|
|
28
|
-
className?: string;
|
|
29
|
-
style?: CSSProperties;
|
|
30
|
-
};
|
|
31
|
-
export interface TreeNodeProps<TMeta> extends Pick<CollapsibleProps, "disabled"> {
|
|
32
|
-
/** list of TreeNodes to be rendered within the current TreeNode collapsible */
|
|
33
|
-
nodes?: TreeNodeProps<TMeta>[];
|
|
34
|
-
/** any meta-information that should be attached to a given TreeNode uses the TMeta type to specifically type
|
|
35
|
-
* the structure of this meta-data. */
|
|
36
|
-
meta: TMeta;
|
|
37
|
-
}
|
|
38
|
-
export interface CollapsibleTreeProps<TMeta> extends PropsWithClassNameAndStyle, NodeCallbacks<TMeta> {
|
|
39
|
-
/** the TreeNode structure that should be rendered within the CollapsibleTree */
|
|
40
|
-
nodes: TreeNodeProps<TMeta>[];
|
|
41
|
-
/** disables all TreeNodes in the CollapsibleTree.
|
|
42
|
-
* @default false
|
|
43
|
-
* */
|
|
44
|
-
disabled?: boolean;
|
|
45
|
-
/** A className that will be applied to every TreeNode. Useful if all the TreeNodes are required to look
|
|
46
|
-
* the same stylistically. */
|
|
47
|
-
nodeClassName?: string;
|
|
48
|
-
/** styles that will be applied to every TreeNode. Useful if there are styles that need to be applied to all
|
|
49
|
-
* for stylistic consistency TreeNodes. */
|
|
50
|
-
nodeStyles?: CSSProperties;
|
|
51
|
-
/** a callback used to determine the content rendered within a TreeNode. The callback is passed with the following arguments,
|
|
52
|
-
* @param meta - TreeNodes meta object.
|
|
53
|
-
* @param toggleOpen - function to toggle the open state of a TreeNode.
|
|
54
|
-
* @param open - the current open state of the TreeNode collapsible.
|
|
55
|
-
* @param disabled - the current disabled state of the TreeNode collapsible.
|
|
56
|
-
* */
|
|
57
|
-
nodeRenderer: NodeRenderer<TMeta>;
|
|
58
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { CheckedState } from '../CheckedIndicator';
|
|
2
|
-
export declare function getSelectedState(selected: boolean): "selected" | "unselected";
|
|
3
|
-
export declare function getCheckedState(checked: CheckedState): "checked" | "indeterminate" | "unchecked";
|
|
4
|
-
export declare function getActiveState(active: boolean): "active" | "inactive";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { SlideOutProps } from '../SlideOut';
|
|
3
|
-
export interface LayoutSlideOutProps extends Omit<SlideOutProps, "open" | "initialWidth">, Omit<ComponentPropsWithRef<"div">, "content"> {
|
|
4
|
-
/** controls if the SlideOut is initially open once mounted when NOT in smallMode.
|
|
5
|
-
* NOTE: changing the value of this will cause the SlideOut to open/close after mounting NOT in smallMode depending on
|
|
6
|
-
* its passed in value.
|
|
7
|
-
* @default false */
|
|
8
|
-
defaultOpen?: {
|
|
9
|
-
small?: boolean;
|
|
10
|
-
large?: boolean;
|
|
11
|
-
};
|
|
12
|
-
/** optional prop to control the open state of the SlideOut */
|
|
13
|
-
open?: SlideOutProps["open"];
|
|
14
|
-
/** optional prop to control the initialWidth of the SlideOut
|
|
15
|
-
* @default "30%" */
|
|
16
|
-
initialWidth?: SlideOutProps["initialWidth"];
|
|
17
|
-
/** unique identifier for this SlideOut instance, used to manage its open/closed state within the Layout context */
|
|
18
|
-
id: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const LayoutSlideOut: import('react').NamedExoticComponent<LayoutSlideOutProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ClickTrigger';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ContextTrigger';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Group';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Item';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Label';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MultiSelectGroup';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MultiSelectItem';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PageContent';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PageTrigger';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SelectAllItem';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SelectGroup';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SelectItem';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Separator';
|
package/dist/Menu/Sub/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SubContent';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SubTrigger';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './VirtualTrigger';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import { PropsWithClassNameAndStyle } from '../typings';
|
|
3
|
-
export interface SlideOutProps extends PropsWithChildren, Omit<ComponentPropsWithRef<"div">, "content">, PropsWithClassNameAndStyle {
|
|
4
|
-
/** The controlled open state of the SlideOut */
|
|
5
|
-
open: boolean;
|
|
6
|
-
/** specifies if the SlideOut is in modal mode or not.
|
|
7
|
-
* If in modal mode, onDismiss prop should be passed
|
|
8
|
-
* to the SlideOut component as well.
|
|
9
|
-
* @default false */
|
|
10
|
-
modal?: boolean;
|
|
11
|
-
/** hides the SlideOut and its overlay but doesn't change the open state of the SlideOut. Should be used if
|
|
12
|
-
* the SlideOut needs to be hidden for some reason but not triggering a close
|
|
13
|
-
* @default false
|
|
14
|
-
* */
|
|
15
|
-
hide?: boolean;
|
|
16
|
-
/** The side the SlideOut should position on and "slide-in" from */
|
|
17
|
-
side: "left" | "right";
|
|
18
|
-
/** controls if the SlideOut can be resized by the user
|
|
19
|
-
* @default true
|
|
20
|
-
* */
|
|
21
|
-
resizeable?: boolean;
|
|
22
|
-
/** controls the positioning of the SlideOut.
|
|
23
|
-
* When absolute, the SlideOut will overlay other
|
|
24
|
-
* content within its parent container.
|
|
25
|
-
* When relative, the SlideOut exists with and pushes other content within
|
|
26
|
-
* its parent container.
|
|
27
|
-
* @default "relative"
|
|
28
|
-
* */
|
|
29
|
-
position?: "relative" | "absolute";
|
|
30
|
-
/** sets the initialWidth of the SlideOut, can be expressed in any valid CSS size unit */
|
|
31
|
-
initialWidth: number | string;
|
|
32
|
-
/** sets the minimum width of the SlideOut can be expressed in any valid CSS size unit */
|
|
33
|
-
minWidth?: number | string;
|
|
34
|
-
/** sets the maximum width of the SlideOut can be expressed in any valid CSS size unit */
|
|
35
|
-
maxWidth?: number | string;
|
|
36
|
-
/** callback fired when the SlideOut should be dismissed (closed) when in modal mode. The type of event resulting in
|
|
37
|
-
* the SlideOut dismissal is passed with the callback. */
|
|
38
|
-
onDismiss?: () => void;
|
|
39
|
-
/** callback fired when the SlideOut has finished sliding out (closing) */
|
|
40
|
-
onClosed?: () => void;
|
|
41
|
-
/** callback fired when the SlideOut starts sliding in (opening) */
|
|
42
|
-
onOpening?: () => void;
|
|
43
|
-
/** overlay to be rendered when the SlideOut is open*/
|
|
44
|
-
overlayComponent?: ReactNode;
|
|
45
|
-
/** content to be rendered within the SlideOut */
|
|
46
|
-
content: ReactNode | null;
|
|
47
|
-
}
|
|
48
|
-
/** The SlideOut component is a UI element that allows you to create a slide-in/slide-out effect for content within
|
|
49
|
-
* your application. It provides a smooth transition animation for revealing and hiding content. */
|
|
50
|
-
export declare const SlideOut: import('react').NamedExoticComponent<SlideOutProps>;
|
|
File without changes
|
|
File without changes
|