@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,67 @@
|
|
|
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 EMPTY_ID = "";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare const ZERO_LEVEL_ZERO_NODE_ID = "0";
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare const SEPARATOR = "_";
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare function getItemById(itemId: string, items: any, childrenField: string): any;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export declare function getRootParentId(itemId: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare function getIdWithoutRootParentId(itemId: string): string;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export declare function getFirstChildId(itemId: string): string;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
export declare function createId(childId: string | number, parentId?: string): string;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
export declare function getDirectParentId(itemId: string): string;
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
export declare function isIdEmptyOrZeroLevel(itemId: string): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
export declare function isIdZeroLevel(itemId: string): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
export declare function getAllShortIds(itemId: string): string[];
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
export declare function getShortId(itemId: string): string;
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
export declare function isItemFirstFromSiblings(itemId: string): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* @hidden
|
|
66
|
+
*/
|
|
67
|
+
export declare function getDecrementedItemIdAfterRemoval(removedItemId: string, itemId: string): string;
|
|
@@ -5,78 +5,78 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
if (
|
|
8
|
+
const P = "", a = "0", g = "_";
|
|
9
|
+
function f(t, n, o) {
|
|
10
|
+
if (S(t))
|
|
11
11
|
return n[Number(t)];
|
|
12
|
-
const
|
|
13
|
-
return
|
|
12
|
+
const r = n[Number(u(t))], e = r && r[o] || [];
|
|
13
|
+
return e.length ? f(R(t), e, o) : void 0;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
15
|
+
function u(t) {
|
|
16
|
+
return E(t) ? t : t.split("_")[0];
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
18
|
+
function R(t) {
|
|
19
|
+
if (E(t))
|
|
20
20
|
return t;
|
|
21
|
-
const n = t.indexOf(
|
|
21
|
+
const n = t.indexOf("_");
|
|
22
22
|
return t.substring(n + 1);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function T(t) {
|
|
25
25
|
return O("0", t);
|
|
26
26
|
}
|
|
27
27
|
function O(t, n) {
|
|
28
|
-
return t = t.toString(), n ? n +
|
|
28
|
+
return t = t.toString(), n ? n + "_" + t : t;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
const n = t.lastIndexOf(
|
|
32
|
-
return n < 0 ?
|
|
30
|
+
function i(t) {
|
|
31
|
+
const n = t.lastIndexOf("_");
|
|
32
|
+
return n < 0 ? "" : t.substring(0, n);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return t ===
|
|
34
|
+
function E(t) {
|
|
35
|
+
return t === "" || t.indexOf("_") < 0;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
return t !==
|
|
37
|
+
function S(t) {
|
|
38
|
+
return t !== "" && t.indexOf("_") < 0;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
return t.split(
|
|
40
|
+
function b(t) {
|
|
41
|
+
return t.split("_");
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
const n = t.lastIndexOf(
|
|
43
|
+
function A(t) {
|
|
44
|
+
const n = t.lastIndexOf("_");
|
|
45
45
|
return n < 0 ? t : t.substring(n + 1);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return
|
|
47
|
+
function _(t) {
|
|
48
|
+
return A(t) === "0";
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
const
|
|
52
|
-
t = "
|
|
53
|
-
const
|
|
54
|
-
if (n.startsWith(
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
57
|
-
const
|
|
58
|
-
if (Number(
|
|
59
|
-
const
|
|
60
|
-
return
|
|
50
|
+
function l(t, n) {
|
|
51
|
+
const o = n;
|
|
52
|
+
t = "r_" + t, n = "r_" + n;
|
|
53
|
+
const r = i(t) + "_";
|
|
54
|
+
if (n.startsWith(r)) {
|
|
55
|
+
const e = n.substring(r.length);
|
|
56
|
+
if (e) {
|
|
57
|
+
const s = u(e);
|
|
58
|
+
if (Number(A(t)) < Number(s)) {
|
|
59
|
+
const c = r + (Number(s) - 1).toString() + e.substring(s.length);
|
|
60
|
+
return R(c);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
return
|
|
64
|
+
return o;
|
|
65
65
|
}
|
|
66
66
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
P as EMPTY_ID,
|
|
68
|
+
g as SEPARATOR,
|
|
69
|
+
a as ZERO_LEVEL_ZERO_NODE_ID,
|
|
70
70
|
O as createId,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
71
|
+
b as getAllShortIds,
|
|
72
|
+
l as getDecrementedItemIdAfterRemoval,
|
|
73
|
+
i as getDirectParentId,
|
|
74
|
+
T as getFirstChildId,
|
|
75
|
+
R as getIdWithoutRootParentId,
|
|
76
|
+
f as getItemById,
|
|
77
|
+
u as getRootParentId,
|
|
78
|
+
A as getShortId,
|
|
79
|
+
E as isIdEmptyOrZeroLevel,
|
|
80
|
+
S as isIdZeroLevel,
|
|
81
|
+
_ as isItemFirstFromSiblings
|
|
82
82
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { TreeFieldsService } from './FieldsService.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare function hasChildren(item: any, childrenField: string): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare function isItemExpandedAndWithChildren(item: any, fieldsSvc: TreeFieldsService): boolean | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveItemId(publicId: any, idField: string, items: any[], childrenField: string): string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolveItemsIds(publicIds: any[], idField: string, items: any[], childrenField: string): string[];
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
export declare function updateItem(items: any[], itemId: string, update: (item: any) => void, cloneField: string, childrenField: string): any[];
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
export declare function isEnabledAndAllParentsEnabled(itemId: string, items: any, fieldsSvc: TreeFieldsService): any;
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
export declare function getAllDirectIndirectChildrenIds(item: any, itemId: string, childrenField: string, idField: string | undefined): any[];
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
export declare function areAllDirectChildrenChecked(item: any, itemId: any, idField: string | undefined, childrenField: string, check: string[]): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
export declare function getAllParents(itemId: string, childrenField: string, items: any[]): any[];
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
export declare function removeItem(itemId: string, childrenField: string, items: any[]): any[];
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
export declare function addItem(item: any, operation: 'before' | 'after' | 'child', childrenField: string, targetItemId: string, items: any[]): any[];
|
|
@@ -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 function getNestedValue(fieldName: string | undefined, dataItem: any): any;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare function isArray(operation: string[] | any): operation is any[];
|
|
@@ -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
|
+
/**
|
|
9
|
+
* Creates a new array with the results of calling the provided callback function
|
|
10
|
+
* on every element in the provided data tree.
|
|
11
|
+
*
|
|
12
|
+
* @param {any[]} tree - The data tree.
|
|
13
|
+
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
14
|
+
* @param {(value: any) => any} callback - The callback function.
|
|
15
|
+
* @returns {any[]} - The new data tree.
|
|
16
|
+
*/
|
|
17
|
+
export declare const mapTree: (tree: any[], subItemsField: string, callback: (value: any) => any) => any[];
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new array with the results of calling the provided callback function
|
|
20
|
+
* on the element which match the `level` in the provided data tree.
|
|
21
|
+
*
|
|
22
|
+
* @param {any[]} tree - The data tree.
|
|
23
|
+
* @param {number[]} level - An array of indexes of each parent and current item in the data tree.
|
|
24
|
+
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
25
|
+
* @param {(value: any) => any} callback - The callback function.
|
|
26
|
+
* @returns {any[]} - The new data tree.
|
|
27
|
+
*/
|
|
28
|
+
export declare const mapTreeItem: (tree: any[], level: number[], subItemsField: string, callback: (value: any) => any) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Similar to the `Object.assign` function. Additionally, creates a new array for the subitems.
|
|
31
|
+
*
|
|
32
|
+
* @param {object} item - The source data item.
|
|
33
|
+
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
34
|
+
* @param {object} propsToExtend - The props with which the source data item will be extended.
|
|
35
|
+
* @returns {object} - The target data item.
|
|
36
|
+
*/
|
|
37
|
+
export declare const extendDataItem: (item: any, subItemsField: string, propsToExtend?: any) => any;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the data item path in the tree based on the level parameter.
|
|
40
|
+
*
|
|
41
|
+
* @param {any[]} tree - The data tree.
|
|
42
|
+
* @param {number[]} level - The level of the target tree item.
|
|
43
|
+
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
44
|
+
* @returns {any[]} - The path of the data item.
|
|
45
|
+
*/
|
|
46
|
+
export declare const getItemPath: (tree: any[], level: number[], subItemsField?: string) => any[];
|
|
@@ -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 { TypographyProps } from './TypographyProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface TypographyHandle {
|
|
14
|
+
/**
|
|
15
|
+
* The TypographyHandle element.
|
|
16
|
+
*/
|
|
17
|
+
element: HTMLElement | null;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Represents the [KendoReact Typography component](https://www.telerik.com/kendo-react-ui/components/common/typography).
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```jsx
|
|
24
|
+
* const App = () => {
|
|
25
|
+
* return (
|
|
26
|
+
* <Typography.h2>Heading 2</Typography.h2>
|
|
27
|
+
* );
|
|
28
|
+
* };
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const Typography: {
|
|
32
|
+
h1: React.ForwardRefExoticComponent<TypographyProps>;
|
|
33
|
+
h2: React.ForwardRefExoticComponent<TypographyProps>;
|
|
34
|
+
h3: React.ForwardRefExoticComponent<TypographyProps>;
|
|
35
|
+
h4: React.ForwardRefExoticComponent<TypographyProps>;
|
|
36
|
+
h5: React.ForwardRefExoticComponent<TypographyProps>;
|
|
37
|
+
h6: React.ForwardRefExoticComponent<TypographyProps>;
|
|
38
|
+
p: React.ForwardRefExoticComponent<TypographyProps>;
|
|
39
|
+
code: React.ForwardRefExoticComponent<TypographyProps>;
|
|
40
|
+
pre: React.ForwardRefExoticComponent<TypographyProps>;
|
|
41
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
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 { KendoReactComponentBaseProps } from '../models/kendoReactComponentBaseProps.js';
|
|
9
|
+
import { MarginEnum } from './models/margin.js';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the props of the [KendoReact Typography component](https://www.telerik.com/kendo-react-ui/components/common/typography).
|
|
12
|
+
*/
|
|
13
|
+
export interface TypographyProps extends KendoReactComponentBaseProps {
|
|
14
|
+
/**
|
|
15
|
+
* Sets additional CSS styles to the element.
|
|
16
|
+
*/
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
/**
|
|
19
|
+
* Specifies a list of CSS classes that will be added to the element.
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Overrides the font size applied by the theme typography styles
|
|
24
|
+
* [see example](https://www.telerik.com/kendo-react-ui/components/common/typography/appearance#toc-font-size).
|
|
25
|
+
*
|
|
26
|
+
* The possible values are:
|
|
27
|
+
* * `xsmall`
|
|
28
|
+
* * `small`
|
|
29
|
+
* * `medium`
|
|
30
|
+
* * `large`
|
|
31
|
+
* * `xlarge`
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
fontSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
35
|
+
/**
|
|
36
|
+
* Overrides the font weight applied by the theme typography styles
|
|
37
|
+
* [see example](https://www.telerik.com/kendo-react-ui/components/common/typography/appearance#toc-font-weight).
|
|
38
|
+
*
|
|
39
|
+
* The possible values are:
|
|
40
|
+
* * `light`—font-weight: 300
|
|
41
|
+
* * `normal`—font-weight: 400
|
|
42
|
+
* * `bold`—For Default and Bootstrap themes—font-weight: 700. For Material theme—font-weight: 500.
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
fontWeight?: 'light' | 'normal' | 'bold';
|
|
46
|
+
/**
|
|
47
|
+
* Specifies the applied margin to the element
|
|
48
|
+
* [see example](https://www.telerik.com/kendo-react-ui/components/common/typography/appearance#toc-margin).
|
|
49
|
+
*
|
|
50
|
+
* The possible values for the Default and Material themes are:
|
|
51
|
+
* * `xsmall` —Applies 4px margin.
|
|
52
|
+
* * `small` —Applies 8px margin.
|
|
53
|
+
* * `medium` —Applies 12px margin.
|
|
54
|
+
* * `large` —Applies 16px margin.
|
|
55
|
+
* * `xlarge` —Applies 24px margin.
|
|
56
|
+
* * `thin` —Applies 2px margin.
|
|
57
|
+
* * `hair` —Applies 1px margin.
|
|
58
|
+
* * `number` —Passing a number will apply a margin of 4 times the passed number in pixels. The minimum number value is 0 and the maximum is 24.
|
|
59
|
+
* * `object` &smdash;Passing an object allows setting the margins for each side.
|
|
60
|
+
*
|
|
61
|
+
* The possible values for the Bootstrap theme are:
|
|
62
|
+
* * `xsmall` —Applies 0.25rem margin.
|
|
63
|
+
* * `small` —Applies 0.5rem margin.
|
|
64
|
+
* * `medium` —Applies 0.75rem margin.
|
|
65
|
+
* * `large` —Applies 1rem margin.
|
|
66
|
+
* * `xlarge` —Applies 1.25rem margin.
|
|
67
|
+
* * `thin` —Applies 0.125rem margin.
|
|
68
|
+
* * `hair` —Applies 0.0625rem margin.
|
|
69
|
+
* * `number` —Passing a number will apply a margin equal to the passed number divided by 4 in rem units.
|
|
70
|
+
* The minimum number value is 0 and the maximum is 24.
|
|
71
|
+
* * `object` &smdash;Passing an object allows setting the margins for each side.
|
|
72
|
+
*/
|
|
73
|
+
margin?: MarginEnum | {
|
|
74
|
+
top?: MarginEnum;
|
|
75
|
+
bottom?: MarginEnum;
|
|
76
|
+
left?: MarginEnum;
|
|
77
|
+
right?: MarginEnum;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Specifies the text align
|
|
81
|
+
* [see example](https://www.telerik.com/kendo-react-ui/components/common/typography/appearance#toc-text-alignment).
|
|
82
|
+
*
|
|
83
|
+
* The possible values are:
|
|
84
|
+
* * `left`—Applies text-align: left
|
|
85
|
+
* * `right`—Applies text-align: right
|
|
86
|
+
* * `center`—Applies text-align: center
|
|
87
|
+
* * `justify`—Applies text-align: justify
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
textAlign?: 'left' | 'right' | 'center' | 'justify';
|
|
91
|
+
/**
|
|
92
|
+
* Specifies the text transform
|
|
93
|
+
* [see example](https://www.telerik.com/kendo-react-ui/components/common/typography/appearance#toc-text-transformation).
|
|
94
|
+
*
|
|
95
|
+
* The possible values are:
|
|
96
|
+
* * `lowercase`—Applies text-transform: lowercase
|
|
97
|
+
* * `uppercase`—Applies text-transform: uppercase
|
|
98
|
+
* * `capitalize`—Applies text-transform: capitalize
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
textTransform?: 'lowercase' | 'uppercase' | 'capitalize';
|
|
102
|
+
/**
|
|
103
|
+
* Specifies the theme color of the Typography
|
|
104
|
+
* [see example](https://www.telerik.com/kendo-react-ui/components/common/typography/appearance#toc-theme-color).
|
|
105
|
+
*
|
|
106
|
+
* The possible values are:
|
|
107
|
+
* * `inherit`—Applies coloring based on the current color.
|
|
108
|
+
* * `primary` —Applies coloring based on primary theme color.
|
|
109
|
+
* * `secondary`—Applies coloring based on secondary theme color.
|
|
110
|
+
* * `tertiary`— Applies coloring based on tertiary theme color.
|
|
111
|
+
* * `info`—Applies coloring based on info theme color.
|
|
112
|
+
* * `success`— Applies coloring based on success theme color.
|
|
113
|
+
* * `warning`— Applies coloring based on warning theme color.
|
|
114
|
+
* * `error`— Applies coloring based on error theme color.
|
|
115
|
+
* * `dark`— Applies coloring based on dark theme color.
|
|
116
|
+
* * `light`— Applies coloring based on light theme color.
|
|
117
|
+
* * `inverse`— Applies coloring based on inverse theme color.
|
|
118
|
+
*
|
|
119
|
+
* You can use the `style` property to apply custom color related properties to the element.
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
themeColor?: 'inherit' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
|
|
123
|
+
/**
|
|
124
|
+
* Sets a custom property to the element.
|
|
125
|
+
*/
|
|
126
|
+
[customProp: string]: any;
|
|
127
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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 FONT_SIZE_CLASSES: {
|
|
12
|
+
xsmall: string;
|
|
13
|
+
small: string;
|
|
14
|
+
medium: string;
|
|
15
|
+
large: string;
|
|
16
|
+
xlarge: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare const FONT_WEIGHT_CLASSES: {
|
|
22
|
+
light: string;
|
|
23
|
+
normal: string;
|
|
24
|
+
bold: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export declare const MARGIN_ENUM_CLASSES: {
|
|
30
|
+
xsmall: string;
|
|
31
|
+
small: string;
|
|
32
|
+
medium: string;
|
|
33
|
+
large: string;
|
|
34
|
+
xlarge: string;
|
|
35
|
+
thin: string;
|
|
36
|
+
hair: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
export declare const MARGIN_ENUM_VALUES: {
|
|
42
|
+
xsmall: string;
|
|
43
|
+
small: string;
|
|
44
|
+
medium: string;
|
|
45
|
+
large: string;
|
|
46
|
+
xlarge: string;
|
|
47
|
+
thin: string;
|
|
48
|
+
hair: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
*/
|
|
53
|
+
export declare const MARGIN_SIDES_CLASSES: {
|
|
54
|
+
top: string;
|
|
55
|
+
right: string;
|
|
56
|
+
bottom: string;
|
|
57
|
+
left: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* @hidden
|
|
61
|
+
*/
|
|
62
|
+
export declare const TEXT_ALIGN_CLASSES: {
|
|
63
|
+
left: string;
|
|
64
|
+
right: string;
|
|
65
|
+
center: string;
|
|
66
|
+
justify: string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
export declare const TEXT_TRANSFORM_CLASSES: {
|
|
72
|
+
lowercase: string;
|
|
73
|
+
uppercase: string;
|
|
74
|
+
capitalize: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
export declare const THEME_COLOR_CLASSES: {
|
|
80
|
+
inherit: string;
|
|
81
|
+
primary: string;
|
|
82
|
+
secondary: string;
|
|
83
|
+
tertiary: string;
|
|
84
|
+
info: string;
|
|
85
|
+
success: string;
|
|
86
|
+
warning: string;
|
|
87
|
+
error: string;
|
|
88
|
+
dark: string;
|
|
89
|
+
light: string;
|
|
90
|
+
inverse: string;
|
|
91
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* The possible values for the Default and Material themes are:
|
|
10
|
+
* * `xsmall` —Applies 4px margin.
|
|
11
|
+
* * `small` —Applies 8px margin.
|
|
12
|
+
* * `medium` —Applies 12px margin.
|
|
13
|
+
* * `large` —Applies 16px margin.
|
|
14
|
+
* * `xlarge` —Applies 24px margin.
|
|
15
|
+
* * `thin` —Applies 2px margin.
|
|
16
|
+
* * `hair` —Applies 1px margin.
|
|
17
|
+
* * `number` —Passing a number will apply a margin of 4 times the passed number in pixels. The minimum number value is 0 and the maximum is 24.
|
|
18
|
+
*
|
|
19
|
+
* The possible values for the Bootstrap theme are:
|
|
20
|
+
* * `xsmall` —Applies 0.25rem margin.
|
|
21
|
+
* * `small` —Applies 0.5rem margin.
|
|
22
|
+
* * `medium` —Applies 0.75rem margin.
|
|
23
|
+
* * `large` —Applies 1rem margin.
|
|
24
|
+
* * `xlarge` —Applies 1.25rem margin.
|
|
25
|
+
* * `thin` —Applies 0.125rem margin.
|
|
26
|
+
* * `hair` —Applies 0.0625rem margin.
|
|
27
|
+
* * `number` —Passing a number will apply a margin equal to the passed number divided by 4 in rem units.
|
|
28
|
+
* The minimum number value is 0 and the maximum is 24.
|
|
29
|
+
*/
|
|
30
|
+
export type MarginEnum = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'thin' | 'hair' | number;
|