@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,28 @@
|
|
|
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 { KendoPointer } from '../models/index.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
type ElementPointer = {
|
|
11
|
+
[P in keyof KendoPointer<any, any>]: (event: React.PointerEvent<any>) => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const usePointer: <E extends HTMLElement | null, P extends KendoPointer<any, any>, R extends {}>(props: P, target: React.RefObject<R | null>, extend?: {
|
|
17
|
+
onPointerDown?: ((args: React.PointerEvent<E>) => void) | undefined;
|
|
18
|
+
onPointerMove?: ((args: React.PointerEvent<E>) => void) | undefined;
|
|
19
|
+
onPointerUp?: ((args: React.PointerEvent<E>) => void) | undefined;
|
|
20
|
+
onPointerCancel?: ((args: React.PointerEvent<E>) => void) | undefined;
|
|
21
|
+
onGotPointerCapture?: ((args: React.PointerEvent<E>) => void) | undefined;
|
|
22
|
+
onLostPointerCapture?: ((args: React.PointerEvent<E>) => void) | undefined;
|
|
23
|
+
onPointerEnter?: ((args: React.PointerEvent<E>) => void) | undefined;
|
|
24
|
+
onPointerOver?: ((args: React.PointerEvent<E>) => void) | undefined;
|
|
25
|
+
onPointerLeave?: ((args: React.PointerEvent<E>) => void) | undefined;
|
|
26
|
+
onPointerOut?: ((args: React.PointerEvent<E>) => void) | undefined;
|
|
27
|
+
}) => ElementPointer;
|
|
28
|
+
export {};
|
|
@@ -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 usePropsContext: <T extends unknown>(context: React.Context<(p: T) => T>, props: T) => T;
|
|
@@ -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 useRtl(elementRef: React.RefObject<HTMLElement | null>, initialDir?: string, args?: any): string | undefined;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { KendoTouch } from '../models/index.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
type ElementTouch = {
|
|
11
|
+
[P in keyof KendoTouch<any, any>]: (event: React.TouchEvent<any>) => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const useMouse: <E extends HTMLElement | null, P extends KendoTouch<any, any>, R extends {}>(props: P, target: React.RefObject<R | null>, extend?: {
|
|
17
|
+
onTouchStart?: ((args: React.TouchEvent<E>) => void) | undefined;
|
|
18
|
+
onTouchMove?: ((args: React.TouchEvent<E>) => void) | undefined;
|
|
19
|
+
onTouchEnd?: ((args: React.TouchEvent<E>) => void) | undefined;
|
|
20
|
+
onTouchCancel?: ((args: React.TouchEvent<E>) => void) | undefined;
|
|
21
|
+
}) => ElementTouch;
|
|
22
|
+
export {};
|
|
@@ -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 `defaultView` based on the `ownerDocument` of the element.
|
|
11
|
+
*/
|
|
12
|
+
export declare const useWindow: (ref: React.RefObject<HTMLElement | null | {
|
|
13
|
+
element: HTMLElement | null;
|
|
14
|
+
}>) => () => Window;
|
|
@@ -0,0 +1,79 @@
|
|
|
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 { IconThemeColor } from './models/theme-color.js';
|
|
9
|
+
import { IconSize } from './models/size.js';
|
|
10
|
+
import { IconFlip } from './models/flip.js';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface BaseIconProps {
|
|
15
|
+
/**
|
|
16
|
+
* Sets the `tabIndex` of the icon element.
|
|
17
|
+
*/
|
|
18
|
+
tabIndex?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the `id` of the icon element.
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Sets additional CSS styles to the icon.
|
|
25
|
+
*/
|
|
26
|
+
style?: React.CSSProperties;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies a list of CSS classes that will be added to the root DOM element.
|
|
29
|
+
*/
|
|
30
|
+
className?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the theme color of the Icon.
|
|
33
|
+
*
|
|
34
|
+
* The possible values are:
|
|
35
|
+
* * `inherit` (Default)—Applies coloring based on the current color.
|
|
36
|
+
* * `primary` —Applies coloring based on primary theme color.
|
|
37
|
+
* * `secondary`—Applies coloring based on secondary theme color.
|
|
38
|
+
* * `tertiary`— Applies coloring based on tertiary theme color.
|
|
39
|
+
* * `info`—Applies coloring based on info theme color.
|
|
40
|
+
* * `success`— Applies coloring based on success theme color.
|
|
41
|
+
* * `warning`— Applies coloring based on warning theme color.
|
|
42
|
+
* * `error`— Applies coloring based on error theme color.
|
|
43
|
+
* * `dark`— Applies coloring based on dark theme color.
|
|
44
|
+
* * `light`— Applies coloring based on light theme color.
|
|
45
|
+
* * `inverse`— Applies coloring based on inverse theme color.
|
|
46
|
+
*
|
|
47
|
+
* If the property is not set, the icon inherits the color from its parent.
|
|
48
|
+
*
|
|
49
|
+
* You can use the `style` prop to apply custom color related properties to the icon.
|
|
50
|
+
*/
|
|
51
|
+
themeColor?: IconThemeColor;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies the size of the icon.
|
|
54
|
+
*
|
|
55
|
+
* The possible values are:
|
|
56
|
+
* * `default` (Default)—Font-size: 16px; Width: 16px; Height: 16px.
|
|
57
|
+
* * `xsmall`—Font-size: 12px; Width: 12px; Height: 12px.
|
|
58
|
+
* * `small`—Font-size: 14px; Width: 14px; Height: 14px.
|
|
59
|
+
* * `medium`—Font-size: 16px; Width: 16px; Height: 16px.
|
|
60
|
+
* * `large`—Font-size: 20px; Width: 20px; Height: 20px.
|
|
61
|
+
* * `xlarge`—Font-size: 24px; Width: 24px; Height: 24px.
|
|
62
|
+
* * `xxlarge`—Font-size: 32px; Width: 32px; Height: 32px.
|
|
63
|
+
* * `xxxlarge`—Font-size: 48px; Width: 48px; Height: 48px.
|
|
64
|
+
*
|
|
65
|
+
* You can use the `style` prop to apply custom font size to the icon.
|
|
66
|
+
*/
|
|
67
|
+
size?: IconSize;
|
|
68
|
+
/**
|
|
69
|
+
* Specifies the icon flip direction.
|
|
70
|
+
*
|
|
71
|
+
* The possible values are:
|
|
72
|
+
* * `default` (Default)—No flipping applied.
|
|
73
|
+
* * `horizontal`—Flips the icon in horizontal direction.
|
|
74
|
+
* * `vertical`—Flips the icon in vertical direction.
|
|
75
|
+
* * `both`—Flips the icon in both horizontal and vertical directions.
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
flip?: IconFlip;
|
|
79
|
+
}
|
package/icons/Icon.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
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 { BaseIconProps } from './BaseIconProps.js';
|
|
9
|
+
import { KendoMouse } from '../models/mouse.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface IconHandle {
|
|
15
|
+
/**
|
|
16
|
+
* The IconHandle element.
|
|
17
|
+
*/
|
|
18
|
+
element: HTMLSpanElement | null;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents the props of the [KendoReact Icon component](https://www.telerik.com/kendo-react-ui/components/common/icon).
|
|
22
|
+
*/
|
|
23
|
+
export interface IconProps extends BaseIconProps, KendoMouse<IconHandle, HTMLSpanElement> {
|
|
24
|
+
/**
|
|
25
|
+
* Represents the name of the icon.
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Represents the [KendoReact Icon component](https://www.telerik.com/kendo-react-ui/components/common/icon).
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```jsx
|
|
34
|
+
* const App = () => {
|
|
35
|
+
* return (
|
|
36
|
+
* <Icon name="home"/>
|
|
37
|
+
* );
|
|
38
|
+
* };
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<IconHandle | null>>;
|
|
@@ -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 { IconProps, IconHandle } from './Icon.js';
|
|
9
|
+
import { SvgIconProps, SvgIconHandle } from './SvgIcon.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare const IconWrap: React.ForwardRefExoticComponent<IconProps & SvgIconProps & React.RefAttributes<(IconHandle & SvgIconHandle) | null>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { SVGIcon } from './SvgIcon.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* IconsContext type.
|
|
12
|
+
*/
|
|
13
|
+
export interface IconsContextType {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the type of the icons used in the KendoReact components inside IconsContext.
|
|
16
|
+
*/
|
|
17
|
+
type?: 'font' | 'svg';
|
|
18
|
+
/**
|
|
19
|
+
* Overrides the built-in icons.
|
|
20
|
+
*/
|
|
21
|
+
icons?: {
|
|
22
|
+
[name: string]: SVGIcon | string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Represents a React Context which provides you with the option to configure the KendoReact components icons.
|
|
27
|
+
*/
|
|
28
|
+
export declare const IconsContext: React.Context<IconsContextType>;
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { BaseIconProps } from './BaseIconProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface SVGIcon {
|
|
14
|
+
/**
|
|
15
|
+
* The unique name of the icon.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* The entire SVG content of the icon.
|
|
20
|
+
*/
|
|
21
|
+
content: string;
|
|
22
|
+
/**
|
|
23
|
+
* The [viewBox](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox)
|
|
24
|
+
* definition that should be used for the icon.
|
|
25
|
+
*/
|
|
26
|
+
viewBox: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export interface SvgIconHandle {
|
|
32
|
+
/**
|
|
33
|
+
* The SvgIconHandle element.
|
|
34
|
+
*/
|
|
35
|
+
element: HTMLSpanElement | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Represents the props of the [KendoReact SvgIcon component](https://www.telerik.com/kendo-react-ui/components/common/svgicon).
|
|
39
|
+
*/
|
|
40
|
+
export interface SvgIconProps extends BaseIconProps, React.SVGAttributes<HTMLOrSVGElement> {
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the SVG icon.
|
|
43
|
+
*
|
|
44
|
+
* * The possible keys are:
|
|
45
|
+
* * `name`—The unique name of the icon.
|
|
46
|
+
* * `content`—The entire SVG content of the icon.
|
|
47
|
+
* * `viewBox`—The viewBox definition that should be used for the icon.
|
|
48
|
+
*/
|
|
49
|
+
icon?: SVGIcon;
|
|
50
|
+
/**
|
|
51
|
+
* Specifies the viewBox of the custom SVG icon.
|
|
52
|
+
*/
|
|
53
|
+
viewBox?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Specifies a list of CSS classes that will be added to the svg element.
|
|
56
|
+
*/
|
|
57
|
+
svgClassName?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Sets additional CSS styles to the svg element.
|
|
60
|
+
*/
|
|
61
|
+
svgStyle?: React.CSSProperties;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Represents the [KendoReact SvgIcon component](https://www.telerik.com/kendo-react-ui/components/common/svgicon).
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```jsx
|
|
68
|
+
* import { accessibility } from '@progress/kendo-svg-icons';
|
|
69
|
+
*
|
|
70
|
+
* const App = () => {
|
|
71
|
+
* return (
|
|
72
|
+
* <SvgIcon icon={accessibility} />
|
|
73
|
+
* );
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare const SvgIcon: React.ForwardRefExoticComponent<SvgIconProps & React.RefAttributes<SvgIconHandle | null>>;
|
|
@@ -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
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const SIZE_CLASSES: {
|
|
12
|
+
default: string;
|
|
13
|
+
xsmall: string;
|
|
14
|
+
small: string;
|
|
15
|
+
medium: string;
|
|
16
|
+
large: string;
|
|
17
|
+
xlarge: string;
|
|
18
|
+
xxlarge: string;
|
|
19
|
+
xxxlarge: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
* Specifies the icon flip direction.
|
|
10
|
+
*
|
|
11
|
+
* The possible values are:
|
|
12
|
+
* * `default` (Default)—No flipping applied.
|
|
13
|
+
* * `horizontal`—Flips the icon in horizontal direction.
|
|
14
|
+
* * `vertical`—Flips the icon in vertical direction.
|
|
15
|
+
* * `both`—Flips the icon in both horizontal and vertical directions.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export type IconFlip = 'default' | 'horizontal' | 'vertical' | 'both';
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
* Specifies the size of the icon.
|
|
10
|
+
*
|
|
11
|
+
* The possible values are:
|
|
12
|
+
* * `default` (Default)—Font-size: 16px; Width: 16px; Height: 16px.
|
|
13
|
+
* * `xsmall`—Font-size: 12px; Width: 12px; Height: 12px.
|
|
14
|
+
* * `small`—Font-size: 14px; Width: 14px; Height: 14px.
|
|
15
|
+
* * `medium`—Font-size: 16px; Width: 16px; Height: 16px.
|
|
16
|
+
* * `large`—Font-size: 20px; Width: 20px; Height: 20px.
|
|
17
|
+
* * `xlarge`—Font-size: 24px; Width: 24px; Height: 24px.
|
|
18
|
+
* * `xxlarge`—Font-size: 32px; Width: 32px; Height: 32px.
|
|
19
|
+
* * `xxxlarge`—Font-size: 48px; Width: 48px; Height: 48px.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export type IconSize = 'default' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
* Specifies the theme color of the Icon.
|
|
10
|
+
*
|
|
11
|
+
* The possible values are:
|
|
12
|
+
* * `inherit` (Default)—Applies coloring based on the current color.
|
|
13
|
+
* * `primary` —Applies coloring based on primary theme color.
|
|
14
|
+
* * `secondary`—Applies coloring based on secondary theme color.
|
|
15
|
+
* * `tertiary`— Applies coloring based on tertiary theme color.
|
|
16
|
+
* * `info`—Applies coloring based on info theme color.
|
|
17
|
+
* * `success`— Applies coloring based on success theme color.
|
|
18
|
+
* * `warning`— Applies coloring based on warning theme color.
|
|
19
|
+
* * `error`— Applies coloring based on error theme color.
|
|
20
|
+
* * `dark`— Applies coloring based on dark theme color.
|
|
21
|
+
* * `light`— Applies coloring based on light theme color.
|
|
22
|
+
* * `inverse`— Applies coloring based on inverse theme color.
|
|
23
|
+
*
|
|
24
|
+
* If the property is not set, the icon inherits the color from its parent.
|
|
25
|
+
*
|
|
26
|
+
* You can use the `style` prop to apply custom color related properties to the icon.
|
|
27
|
+
*/
|
|
28
|
+
export type IconThemeColor = 'inherit' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
|
package/icons/utils.d.ts
ADDED
|
@@ -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 { default as PropTypes } from 'prop-types';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const toIconName: (iconClass: string) => string;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const toIconClass: (name: string) => string;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const svgIconPropType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
21
|
+
name: PropTypes.Validator<string>;
|
|
22
|
+
content: PropTypes.Validator<string>;
|
|
23
|
+
viewBox: PropTypes.Validator<string>;
|
|
24
|
+
}>>;
|