@progress/kendo-react-common 13.3.0-develop.9 → 13.4.0-develop.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.
- package/Draggable.d.ts +93 -0
- package/Droppable.d.ts +84 -0
- package/FormComponent.d.ts +218 -0
- package/apply-default-props.d.ts +13 -0
- package/browser-support.service.d.ts +14 -0
- package/canUseDOM.d.ts +11 -0
- package/canUseRef.d.ts +12 -0
- package/classNames.d.ts +15 -0
- package/clone.d.ts +27 -0
- package/constants/main.d.ts +27 -0
- package/contexts/AdaptiveModeContext.d.ts +50 -0
- package/contexts/AdaptiveModeContext.mjs +2 -2
- package/contexts/ZIndexContext.d.ts +14 -0
- package/deep-merge.d.ts +13 -0
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/drag-n-drop/context/index.d.ts +24 -0
- package/drag-n-drop/index.d.ts +33 -0
- package/events/BaseEvent.d.ts +25 -0
- package/events/dispatchEvent.d.ts +21 -0
- package/fieldList.d.ts +11 -0
- package/fileExtensionIcon.d.ts +12 -0
- package/getActiveElement.d.ts +15 -0
- package/getTabIndex.d.ts +11 -0
- package/getter.d.ts +21 -0
- package/guid.d.ts +11 -0
- package/hasRelativeStackingContext.d.ts +9 -0
- package/hocs/AsyncFocusBlur.d.ts +20 -0
- package/hocs/use-adaptive-mode-hoc.d.ts +10 -0
- package/hocs/use-id-hoc.d.ts +10 -0
- package/hocs/use-unstyled-hoc.d.ts +10 -0
- package/hocs/withPropsContext.d.ts +12 -0
- package/hocs/withzIndexContext.d.ts +10 -0
- package/hooks/index.d.ts +19 -0
- package/hooks/use-id.d.ts +9 -0
- package/hooks/use-immediate-inherit-state.d.ts +13 -0
- package/hooks/use-isomorphic-layout-effect.d.ts +10 -0
- package/hooks/useAsyncFocusBlur.d.ts +32 -0
- package/hooks/useCollection.d.ts +21 -0
- package/hooks/useControlledState.d.ts +11 -0
- package/hooks/useCustomComponent.d.ts +16 -0
- package/hooks/useDir.d.ts +12 -0
- package/hooks/useDocument.d.ts +14 -0
- package/hooks/useDraggable.d.ts +75 -0
- package/hooks/useDroppable.d.ts +46 -0
- package/hooks/useInheritedState.d.ts +23 -0
- package/hooks/useMouse.d.ts +27 -0
- package/hooks/usePointer.d.ts +28 -0
- package/hooks/usePropsContext.d.ts +10 -0
- package/hooks/useRtl.d.ts +12 -0
- package/hooks/useTouch.d.ts +22 -0
- package/hooks/useWindow.d.ts +14 -0
- package/icons/BaseIconProps.d.ts +79 -0
- package/icons/Icon.d.ts +41 -0
- package/icons/IconWrap.d.ts +14 -0
- package/icons/IconsContext.d.ts +28 -0
- package/icons/SvgIcon.d.ts +77 -0
- package/icons/constants.d.ts +20 -0
- package/icons/models/flip.d.ts +18 -0
- package/icons/models/size.d.ts +22 -0
- package/icons/models/theme-color.d.ts +28 -0
- package/icons/utils.d.ts +24 -0
- package/index.d.mts +74 -4288
- package/index.d.ts +74 -4288
- package/keys.d.ts +47 -0
- package/memoize.d.ts +17 -0
- package/models/auto-scroll-options.d.ts +29 -0
- package/models/index.d.ts +12 -0
- package/models/kendoReactComponentBaseProps.d.ts +30 -0
- package/models/mouse.d.ts +56 -0
- package/models/pointer.d.ts +30 -0
- package/models/touch.d.ts +24 -0
- package/navigation.d.ts +166 -0
- package/noop.d.ts +11 -0
- package/package.json +1 -1
- package/rowHeightService.d.ts +31 -0
- package/scrollbarWidth.d.ts +15 -0
- package/setter.d.ts +23 -0
- package/theme.d.ts +15 -0
- package/trappedFocus.d.ts +44 -0
- package/tree-utils/FieldsService.d.ts +32 -0
- package/tree-utils/SortedPublicItemIds.d.ts +15 -0
- package/tree-utils/itemIdUtils.d.ts +67 -0
- package/tree-utils/itemIdUtils.mjs +51 -51
- package/tree-utils/itemUtils.d.ts +52 -0
- package/tree-utils/misc.d.ts +15 -0
- package/treeDataOperations.d.ts +46 -0
- package/typography/Typography.d.ts +41 -0
- package/typography/TypographyProps.d.ts +127 -0
- package/typography/constants.d.ts +91 -0
- package/typography/models/margin.d.ts +30 -0
- package/unstyled/animations.d.ts +96 -0
- package/unstyled/buttons.d.ts +186 -0
- package/unstyled/buttons.js +1 -1
- package/unstyled/buttons.mjs +104 -194
- package/unstyled/dateinputs.d.ts +397 -0
- package/unstyled/dateinputs.mjs +19 -19
- package/unstyled/dropdowns.d.ts +314 -0
- package/unstyled/dropdowns.mjs +1 -1
- package/unstyled/form.d.ts +71 -0
- package/unstyled/form.mjs +1 -1
- package/unstyled/grid.d.ts +12 -0
- package/unstyled/grid.js +1 -1
- package/unstyled/grid.mjs +51 -50
- package/unstyled/icons.d.ts +89 -0
- package/unstyled/icons.mjs +1 -1
- package/unstyled/inputs.d.ts +213 -0
- package/unstyled/inputs.mjs +14 -14
- package/unstyled/interfaces/common.d.ts +138 -0
- package/unstyled/json-classes.d.ts +378 -0
- package/unstyled/labels.d.ts +99 -0
- package/unstyled/main.d.ts +34 -0
- package/unstyled/popup.d.ts +123 -0
- package/unstyled/popup.mjs +3 -3
- package/validate-package.d.ts +38 -0
- package/watermark/WatermarkOverlay.d.ts +21 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DragTarget, DropTarget } from '@progress/kendo-draggable-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const DragAndDropContext: React.Context<{
|
|
14
|
+
drag?: React.RefObject<DragTarget | null> | null | undefined;
|
|
15
|
+
setDrag?: ((value: React.RefObject<DragTarget> | null) => void) | undefined;
|
|
16
|
+
drop?: React.RefObject<DropTarget | null> | null | undefined;
|
|
17
|
+
setDrop?: ((value: React.RefObject<DropTarget> | null) => void) | undefined;
|
|
18
|
+
drags?: React.RefObject<DragTarget | null>[] | undefined;
|
|
19
|
+
registerDrag?: ((item: React.RefObject<DragTarget | null>) => void) | undefined;
|
|
20
|
+
deregisterDrag?: ((item: React.RefObject<DragTarget | null>) => void) | undefined;
|
|
21
|
+
drops?: React.RefObject<DropTarget | null>[] | undefined;
|
|
22
|
+
registerDrop?: ((item: React.RefObject<DragTarget | null>) => void) | undefined;
|
|
23
|
+
deregisterDrop?: ((item: React.RefObject<DragTarget | null>) => void) | undefined;
|
|
24
|
+
}>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DragAndDropContext } from './context/index.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
export type { NormalizedDragEvent } from '@progress/kendo-draggable-common';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the properties of the `DragAndDrop` component.
|
|
13
|
+
*/
|
|
14
|
+
export interface DragAndDropProps {
|
|
15
|
+
/**
|
|
16
|
+
* Represents the `children` of the `DragAndDrop` component. The `children` prop can be any valid React Element.
|
|
17
|
+
*/
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Allows passing a custom context to the `DragAndDrop` component. Useful when there are multiple drag-and-drop functionalities in a single component.
|
|
21
|
+
*/
|
|
22
|
+
context?: typeof DragAndDropContext;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The `DragAndDrop` component is required for the `droppable` functionality to work properly.
|
|
26
|
+
*
|
|
27
|
+
* It is used internally to synchronize the `drag` and `drop` functionalities.
|
|
28
|
+
* Accepts properties of type [DragAndDropProps](https://www.telerik.com/kendo-react-ui/components/common/api/draganddropprops).
|
|
29
|
+
*/
|
|
30
|
+
export declare const DragAndDrop: {
|
|
31
|
+
(props: DragAndDropProps): React.JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface BaseEvent<T> {
|
|
13
|
+
/**
|
|
14
|
+
* A React Synthetic Event.
|
|
15
|
+
*/
|
|
16
|
+
syntheticEvent: React.SyntheticEvent<any>;
|
|
17
|
+
/**
|
|
18
|
+
* A native DOM event.
|
|
19
|
+
*/
|
|
20
|
+
nativeEvent: any;
|
|
21
|
+
/**
|
|
22
|
+
* An event target.
|
|
23
|
+
*/
|
|
24
|
+
target: T;
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { BaseEvent } from './BaseEvent.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
* Dispatches a new event based on an event that was already internally dispatched to KendoReact users.
|
|
12
|
+
*
|
|
13
|
+
* @param eventHandler - The public event handler that is assigned by the user.
|
|
14
|
+
* When undefined, the method is not an option.
|
|
15
|
+
* @param dispatchedEvent - The event that was already dispatched internally.
|
|
16
|
+
* @param target - The target component of the new event.
|
|
17
|
+
* @param eventData - The additional data that will be passed through the new event.
|
|
18
|
+
* When the new event has no additional data
|
|
19
|
+
* other than the `BaseEvent` arguments, pass `undefined`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function dispatchEvent<E extends BaseEvent<React.Component | FCHandle>, FCHandle = object>(eventHandler: ((event: E) => void) | undefined, dispatchedEvent: React.SyntheticEvent<any>, target: E['target'], eventData: Exclude<keyof E, keyof BaseEvent<React.Component | FCHandle>> extends never ? undefined : Pick<E, Exclude<keyof E, keyof BaseEvent<React.Component | FCHandle>>>): void;
|
package/fieldList.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare function fieldList(field: string): string[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { IconProps, SvgIconProps } from './index.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare function getFileExtensionIcon(fileExtension?: string): IconProps & SvgIconProps;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const getInnerActiveElement: any;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare const getActiveElement: (document: any) => HTMLElement | undefined;
|
package/getTabIndex.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const getTabIndex: (tabIndex?: number | string, disabled?: boolean, useDefaultTabIndexWhenDisabled?: boolean) => number | undefined;
|
package/getter.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Can be used for getting value from object using field path. For example `users[index].name`.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```jsx-no-run
|
|
13
|
+
* const values = {users:[{lastName: 'Doe'}]};
|
|
14
|
+
* const firstUserLastName = getter('user[0].lastName');
|
|
15
|
+
*
|
|
16
|
+
* console.log(firstUserLastName(values))
|
|
17
|
+
*
|
|
18
|
+
* // result: 'Doe'
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function getter(field: string): (values: any) => any;
|
package/guid.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const guid: Function;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/** @hidden */
|
|
9
|
+
export declare const hasRelativeStackingContext: (elementSource?: HTMLElement) => boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { AsyncFocusBlurArgs } from '../hooks/useAsyncFocusBlur.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* An utility High-order Component for asynchronous focus/blur handling.
|
|
12
|
+
*
|
|
13
|
+
* By default, the `onFocus` and `onBlur` callbacks are called every time a child components receives/loses focus.
|
|
14
|
+
* Use this utility HOC for scenarios where you need to know if the parent has received focus for the first time, or completely lost focus.
|
|
15
|
+
*
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
export declare const AsyncFocusBlur: ({ children, onFocus, onBlur, onSyncFocus, onSyncBlur }: AsyncFocusBlurArgs<any> & {
|
|
19
|
+
children: (args: AsyncFocusBlurArgs<any>) => React.ReactNode;
|
|
20
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export declare const withAdaptiveModeContext: <P extends object>(Component: React.ComponentType<React.PropsWithoutRef<P>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export declare const withIdHOC: <P extends object>(Component: React.ComponentType<React.PropsWithoutRef<P>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export declare const withUnstyledHOC: <P extends object>(Component: React.ComponentType<React.PropsWithoutRef<P>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<any>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export declare const createPropsContext: <T extends unknown>() => React.Context<(p: T) => T>;
|
|
11
|
+
/** @hidden */
|
|
12
|
+
export declare const withPropsContext: <T extends unknown>(context: React.Context<(p: React.PropsWithoutRef<T>) => React.PropsWithoutRef<T>>, Component: React.ComponentType<T>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export declare const withZIndexContext: <P extends object>(Component: React.ComponentType<React.PropsWithoutRef<P>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<any>>;
|
package/hooks/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
export * from './useMouse.js';
|
|
9
|
+
export * from './useAsyncFocusBlur.js';
|
|
10
|
+
export * from './useDir.js';
|
|
11
|
+
export * from './useDraggable.js';
|
|
12
|
+
export * from './useDroppable.js';
|
|
13
|
+
export * from './useRtl.js';
|
|
14
|
+
export * from './useCustomComponent.js';
|
|
15
|
+
export * from './useControlledState.js';
|
|
16
|
+
export * from './useInheritedState.js';
|
|
17
|
+
export * from './useCollection.js';
|
|
18
|
+
export * from './useDocument.js';
|
|
19
|
+
export * from './useWindow.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/** @hidden */
|
|
9
|
+
export declare function useId(id?: string): any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const useImmediateInheritState: <T>(defaultValue: T, propValue?: T | undefined) => {
|
|
12
|
+
value: T;
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export declare const useIsomorphicLayoutEffect: typeof React.useEffect;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export type AsyncFocusBlurArgs<T extends any[]> = {
|
|
13
|
+
onFocus?: (...event: T) => void;
|
|
14
|
+
onBlur?: (...event: T) => void;
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
onSyncFocus?: (event: React.FocusEvent<any>) => void;
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
onSyncBlur?: (event: React.FocusEvent<any>) => void;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* An utility function for asynchronous focus/blur handling.
|
|
26
|
+
*
|
|
27
|
+
* By default, the `onFocus` and `onBlur` callbacks are called every time a child components receives/loses focus.
|
|
28
|
+
* Use this utility hook for scenarios where you need to know if the parent has received focus for the first time, or completely lost focus.
|
|
29
|
+
*
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
export declare function useAsyncFocusBlur<T extends any[]>({ onFocus, onBlur, onSyncFocus, onSyncBlur }: AsyncFocusBlurArgs<T>): AsyncFocusBlurArgs<T>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/** @hidden */
|
|
9
|
+
export declare enum COLLECTION_ACTION {
|
|
10
|
+
add = 0,
|
|
11
|
+
remove = 1
|
|
12
|
+
}
|
|
13
|
+
/** @hidden */
|
|
14
|
+
export type Collection<T> = T[];
|
|
15
|
+
/** @hidden */
|
|
16
|
+
export interface CollectionAction<T> {
|
|
17
|
+
type: COLLECTION_ACTION;
|
|
18
|
+
item: T;
|
|
19
|
+
}
|
|
20
|
+
/** @hidden */
|
|
21
|
+
export declare const useCollection: <T extends unknown>(initial?: T[]) => [T[], (event: CollectionAction<T>) => void];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/** @hidden */
|
|
9
|
+
export type ControlledStateHook<T, A = any> = [T, (value: T, args?: A) => void];
|
|
10
|
+
/** @hidden */
|
|
11
|
+
export declare const useControlledState: <T = any, A = any>(defaultProp: T, prop?: T | undefined, callback?: any) => ControlledStateHook<T, any>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export type CustomComponent<P = unknown> = React.ComponentType<P> | React.ReactElement<Partial<P>> | string;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const useCustomComponent: <P = unknown>(comp: React.ExoticComponent<React.FragmentProps> | CustomComponent<P> | null) => [string | React.ComponentType<P & React.RefAttributes<unknown>>, Partial<P>];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare function useDir(elementRef: React.RefObject<HTMLElement | null>, initialDir?: string, args?: any): string | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Returns a function, which gets the `ownerDocument` of the element.
|
|
11
|
+
*/
|
|
12
|
+
export declare const useDocument: (ref: React.RefObject<HTMLElement | null | {
|
|
13
|
+
element: HTMLElement | null;
|
|
14
|
+
}>) => () => Document;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { NormalizedDragEvent } from '@progress/kendo-draggable-common';
|
|
9
|
+
import { AutoScrollOptions } from '../models/index.js';
|
|
10
|
+
import { DragAndDropContext } from '../drag-n-drop/context/index.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* Represents the `ref` object of the `Draggable` component.
|
|
14
|
+
*/
|
|
15
|
+
export interface DraggableHandle {
|
|
16
|
+
/**
|
|
17
|
+
* The element which is being dragged.
|
|
18
|
+
*/
|
|
19
|
+
element: HTMLElement | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Represents the configuration object type of the `Draggable` component and `useDraggable` hook.
|
|
23
|
+
*/
|
|
24
|
+
export interface DraggableOptions {
|
|
25
|
+
/**
|
|
26
|
+
* Set the `hint` to override the element used for collision detection.
|
|
27
|
+
*
|
|
28
|
+
* For more information, refer to the [Drag Hint](https://www.telerik.com/kendo-react-ui/components/common/drag-and-drop/drag-hint) article.
|
|
29
|
+
*/
|
|
30
|
+
hint?: React.RefObject<HTMLElement | null | {
|
|
31
|
+
element: HTMLElement | null;
|
|
32
|
+
}> | null;
|
|
33
|
+
/**
|
|
34
|
+
* Set the `mouseOnly` property to `true` to stop the draggable from attaching `touch` event handlers.
|
|
35
|
+
*
|
|
36
|
+
* Defaults to `false`.
|
|
37
|
+
*/
|
|
38
|
+
mouseOnly?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Set the `autoScroll` property to `false` to disable automatic container scroll when close to the edge.
|
|
41
|
+
* For more information, refer to the [Auto Scroll](https://www.telerik.com/kendo-react-ui/components/common/drag-and-drop/auto-scroll) article.
|
|
42
|
+
*
|
|
43
|
+
* Defaults to `true`.
|
|
44
|
+
*/
|
|
45
|
+
autoScroll?: boolean | AutoScrollOptions;
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
scrollContainer?: React.RefObject<HTMLElement | null | {
|
|
50
|
+
element: HTMLElement | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Allows passing custom context. Use it to isolate drag and drop events in scenarios with multiple drag and drop functionalities on a single component.
|
|
54
|
+
*/
|
|
55
|
+
context?: typeof DragAndDropContext;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Represents the KendoReact `useDraggable` hook.
|
|
59
|
+
* Use it to attach `drag` events to a native HTML DOM elements, or custom React Components.
|
|
60
|
+
*
|
|
61
|
+
* For more information, refer to the [KendoReact Draggable](https://www.telerik.com/kendo-react-ui/components/common/drag-and-drop/draggable) article.
|
|
62
|
+
*
|
|
63
|
+
* @param ref - The `ref` of the HTML Element or React Component which will enable the `draggable` functionality.
|
|
64
|
+
* @param callbacks - A collection of callbacks, called by the `useDraggable` hook when a specific action occurs.
|
|
65
|
+
* @param options - Additional configuration of the `useDraggable` hook.
|
|
66
|
+
*/
|
|
67
|
+
export declare function useDraggable(ref: React.RefObject<HTMLElement | null | {
|
|
68
|
+
element: HTMLElement | null;
|
|
69
|
+
}>, callbacks: {
|
|
70
|
+
onPress?: (event: NormalizedDragEvent) => void;
|
|
71
|
+
onRelease?: (event: NormalizedDragEvent) => void;
|
|
72
|
+
onDragStart?: (event: NormalizedDragEvent) => void;
|
|
73
|
+
onDrag?: (event: NormalizedDragEvent) => void;
|
|
74
|
+
onDragEnd?: (event: NormalizedDragEvent) => void;
|
|
75
|
+
}, options?: DraggableOptions): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { NormalizedDragEvent } from '@progress/kendo-draggable-common';
|
|
9
|
+
import { DragAndDropContext } from '../drag-n-drop/context/index.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the `ref` object of the `Droppable` component.
|
|
13
|
+
*/
|
|
14
|
+
export interface DroppableHandle {
|
|
15
|
+
/**
|
|
16
|
+
* The element which is registered as droppable.
|
|
17
|
+
*/
|
|
18
|
+
element?: HTMLElement;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents the configuration object type of the `Droppable` component and `useDroppable` hook.
|
|
22
|
+
*/
|
|
23
|
+
export interface DroppableOptions {
|
|
24
|
+
/**
|
|
25
|
+
* The context to use for the droppable.
|
|
26
|
+
*/
|
|
27
|
+
context?: typeof DragAndDropContext;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Represents the KendoReact `useDroppable` hook.
|
|
31
|
+
* Use it to attach `drop` events to a native HTML DOM elements, or custom React Components.
|
|
32
|
+
*
|
|
33
|
+
* For more information, refer to the [KendoReact Droppable](https://www.telerik.com/kendo-react-ui/components/common/drag-and-drop/droppable) article.
|
|
34
|
+
*
|
|
35
|
+
* @param ref - The `ref` of the HTML Element or React Component which will enable the `droppable` functionality.
|
|
36
|
+
* @param callbacks - A collection of callbacks, called by the `useDroppable` hook when a specific action occurs.
|
|
37
|
+
* @param options - The options for the `useDroppable` hook.
|
|
38
|
+
*/
|
|
39
|
+
export declare function useDroppable(ref: React.RefObject<HTMLElement | null | {
|
|
40
|
+
element: HTMLElement | null;
|
|
41
|
+
}>, callbacks?: {
|
|
42
|
+
onDragEnter?: (event: NormalizedDragEvent) => void;
|
|
43
|
+
onDragOver?: (event: NormalizedDragEvent) => void;
|
|
44
|
+
onDragLeave?: (event: NormalizedDragEvent) => void;
|
|
45
|
+
onDrop?: (event: NormalizedDragEvent) => void;
|
|
46
|
+
}, options?: DroppableOptions): void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface Setter<T> extends Array<any> {
|
|
13
|
+
0?: T;
|
|
14
|
+
[index: number]: any;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare const useInheritedContextState: <T>(context: React.Context<[T | undefined, (...event: Setter<T>) => void]>, defaultValue?: any) => [T, (...event: Setter<T>) => void];
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare const useInheritedState: <T>(state: [T | undefined, (...event: Setter<T>) => void], defaultValue?: any) => [T, (...event: Setter<T>) => void];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { KendoMouse } from '../models/index.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
type ElementMouse = {
|
|
11
|
+
[P in keyof Required<KendoMouse<any, any>>]: (event: React.MouseEvent<any>) => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const useMouse: <E extends HTMLElement | null, P extends KendoMouse<any, any>, R extends unknown>(props: P, target: React.RefObject<R | null>, extend?: {
|
|
17
|
+
onMouseDown?: ((event: React.MouseEvent<E, MouseEvent>) => void) | undefined;
|
|
18
|
+
onMouseUp?: ((event: React.MouseEvent<E, MouseEvent>) => void) | undefined;
|
|
19
|
+
onClick?: ((event: React.MouseEvent<E, MouseEvent>) => void) | undefined;
|
|
20
|
+
onDoubleClick?: ((event: React.MouseEvent<E, MouseEvent>) => void) | undefined;
|
|
21
|
+
onMouseEnter?: ((event: React.MouseEvent<E, MouseEvent>) => void) | undefined;
|
|
22
|
+
onMouseLeave?: ((event: React.MouseEvent<E, MouseEvent>) => void) | undefined;
|
|
23
|
+
onMouseMove?: ((event: React.MouseEvent<E, MouseEvent>) => void) | undefined;
|
|
24
|
+
onMouseOut?: ((event: React.MouseEvent<E, MouseEvent>) => void) | undefined;
|
|
25
|
+
onMouseOver?: ((event: React.MouseEvent<E, MouseEvent>) => void) | undefined;
|
|
26
|
+
}) => ElementMouse;
|
|
27
|
+
export {};
|