@progress/kendo-react-layout 4.14.0-dev.202201141457 → 5.0.0-dev.202201182040
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/dist/es/card/Avatar.js +18 -16
- package/dist/es/card/interfaces/AvatarProps.d.ts +50 -39
- package/dist/es/card/interfaces/Enums.d.ts +0 -28
- package/dist/es/card/interfaces/Enums.js +0 -32
- package/dist/es/menu/components/MenuItemInternal.js +1 -1
- package/dist/es/menu/components/MenuItemLink.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/panelbar/util.js +2 -4
- package/dist/npm/card/Avatar.js +16 -14
- package/dist/npm/card/interfaces/AvatarProps.d.ts +50 -39
- package/dist/npm/card/interfaces/Enums.d.ts +0 -28
- package/dist/npm/card/interfaces/Enums.js +0 -32
- package/dist/npm/menu/components/MenuItemInternal.js +1 -1
- package/dist/npm/menu/components/MenuItemLink.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/panelbar/util.js +2 -4
- package/dist/systemjs/kendo-react-layout.js +1 -1
- package/package.json +15 -15
package/dist/es/card/Avatar.js
CHANGED
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as PropTypes from 'prop-types';
|
|
3
|
-
import { classNames } from '@progress/kendo-react-common';
|
|
4
|
-
import { avatarType
|
|
3
|
+
import { classNames, kendoThemeMaps } from '@progress/kendo-react-common';
|
|
4
|
+
import { avatarType } from './interfaces/Enums';
|
|
5
5
|
import { validatePackage } from '@progress/kendo-react-common';
|
|
6
6
|
import { packageMetadata } from '../package-metadata';
|
|
7
7
|
export var Avatar = function (props) {
|
|
8
|
+
var _a;
|
|
8
9
|
validatePackage(packageMetadata);
|
|
9
|
-
return (React.createElement("div", { style: props.style, className: classNames('k-avatar', "k-avatar-" + props.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
return (React.createElement("div", { style: props.style, className: classNames('k-avatar', "k-avatar-" + props.type, (_a = {},
|
|
11
|
+
_a["k-rounded-" + (kendoThemeMaps.roundedMap[props.rounded] || props.rounded)] = props.rounded,
|
|
12
|
+
_a["k-avatar-" + (kendoThemeMaps.sizeMap[props.size] || props.size)] = props.size,
|
|
13
|
+
_a["k-avatar-" + props.fillMode] = props.fillMode,
|
|
14
|
+
_a["k-avatar-" + props.fillMode + "-" + props.themeColor] = Boolean(props.fillMode && props.themeColor),
|
|
15
|
+
_a), props.className) },
|
|
15
16
|
React.createElement("span", { className: "k-avatar-" + props.type }, props.children)));
|
|
16
17
|
};
|
|
17
18
|
Avatar.propTypes = {
|
|
18
19
|
className: PropTypes.string,
|
|
19
|
-
shape: PropTypes.oneOf(['circle', 'square', 'rounded', 'rectangle']),
|
|
20
20
|
type: PropTypes.oneOf(['text', 'image', 'icon']),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
size: PropTypes.oneOf([null, 'small', 'medium', 'large']),
|
|
22
|
+
rounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']),
|
|
23
|
+
fillMode: PropTypes.oneOf([null, 'solid', 'outline']),
|
|
24
|
+
/* eslint-disable max-len */
|
|
25
|
+
themeColor: PropTypes.oneOf([null, 'base', 'dark', 'error', 'info', 'inverse', 'inverse', 'light', 'primary', 'secondary', 'success', 'tertiary', 'warning'])
|
|
24
26
|
};
|
|
25
27
|
Avatar.defaultProps = {
|
|
26
28
|
type: avatarType.TEXT,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
themeColor:
|
|
29
|
+
size: 'medium',
|
|
30
|
+
rounded: 'full',
|
|
31
|
+
fillMode: 'solid',
|
|
32
|
+
themeColor: 'primary'
|
|
31
33
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { avatarType } from './Enums';
|
|
3
3
|
export interface AvatarProps {
|
|
4
4
|
/**
|
|
5
5
|
* Sets the Avatar children elements.
|
|
@@ -14,61 +14,72 @@ export interface AvatarProps {
|
|
|
14
14
|
*/
|
|
15
15
|
className?: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* The possible values are:
|
|
20
|
-
* * `solid` (Default)
|
|
21
|
-
* * `outline`
|
|
17
|
+
* Set the type of the Avatar.
|
|
22
18
|
*
|
|
19
|
+
* The supported values are:
|
|
20
|
+
* * `image`
|
|
21
|
+
* * `text`
|
|
22
|
+
* * `icon`
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
type?: avatarType | string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Configures the `size` of the Button.
|
|
27
27
|
*
|
|
28
|
-
* The
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
28
|
+
* The available options are:
|
|
29
|
+
* - small
|
|
30
|
+
* - medium
|
|
31
|
+
* - large
|
|
32
|
+
* - null—Does not set a size `className`.
|
|
33
|
+
*
|
|
34
|
+
* @default `medium`
|
|
32
35
|
*/
|
|
33
|
-
|
|
36
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
34
37
|
/**
|
|
35
|
-
*
|
|
38
|
+
* Configures the `roundness` of the Button.
|
|
36
39
|
*
|
|
37
|
-
* The
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
40
|
+
* The available options are:
|
|
41
|
+
* - small
|
|
42
|
+
* - medium
|
|
43
|
+
* - large
|
|
44
|
+
* - full
|
|
45
|
+
* - null—Does not set a rounded `className`.
|
|
41
46
|
*
|
|
47
|
+
* @default `medium`
|
|
42
48
|
*/
|
|
43
|
-
|
|
49
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
44
50
|
/**
|
|
45
51
|
* Sets a border to the Avatar.
|
|
46
52
|
*/
|
|
47
53
|
border?: boolean;
|
|
48
54
|
/**
|
|
49
|
-
*
|
|
55
|
+
* Configures the `fillMode` of the Button.
|
|
50
56
|
*
|
|
51
|
-
* The
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
57
|
+
* The available options are:
|
|
58
|
+
* - solid
|
|
59
|
+
* - outline
|
|
60
|
+
* - null—Does not set a fillMode `className`.
|
|
61
|
+
*
|
|
62
|
+
* @default `solid`
|
|
55
63
|
*/
|
|
56
|
-
|
|
64
|
+
fillMode?: null | 'solid' | 'outline';
|
|
57
65
|
/**
|
|
58
|
-
*
|
|
66
|
+
* Configures the `themeColor` of the Button.
|
|
67
|
+
*
|
|
68
|
+
* The available options are:
|
|
69
|
+
* - base
|
|
70
|
+
* - primary
|
|
71
|
+
* - secondary
|
|
72
|
+
* - tertiary
|
|
73
|
+
* - info
|
|
74
|
+
* - success
|
|
75
|
+
* - error
|
|
76
|
+
* - warning
|
|
77
|
+
* - dark
|
|
78
|
+
* - light
|
|
79
|
+
* - inverse
|
|
80
|
+
* - null—Does not set a themeColor `className`.
|
|
59
81
|
*
|
|
60
|
-
*
|
|
61
|
-
* * `primary` (Default)—Applies coloring based on primary theme color.
|
|
62
|
-
* * `secondary`—Applies coloring based on secondary theme color.
|
|
63
|
-
* * `tertiary`— Applies coloring based on tertiary theme color.
|
|
64
|
-
* * `info`—Applies coloring based on info theme color.
|
|
65
|
-
* * `success`— Applies coloring based on success theme color.
|
|
66
|
-
* * `warning`— Applies coloring based on warning theme color.
|
|
67
|
-
* * `error`— Applies coloring based on error theme color.
|
|
68
|
-
* * `dark`— Applies coloring based on dark theme color.
|
|
69
|
-
* * `light`— Applies coloring based on light theme color.
|
|
70
|
-
* * `inverse`— Applies coloring based on inverse theme color.
|
|
71
|
-
* * `inherit`— Applies inherited coloring value.
|
|
82
|
+
* @default `base`
|
|
72
83
|
*/
|
|
73
|
-
themeColor?:
|
|
84
|
+
themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'error' | 'warning' | 'dark' | 'light' | 'inverse';
|
|
74
85
|
}
|
|
@@ -1,36 +1,8 @@
|
|
|
1
|
-
export declare enum avatarShape {
|
|
2
|
-
CIRCLE = "circle",
|
|
3
|
-
SQUARE = "square",
|
|
4
|
-
ROUNDED = "rounded",
|
|
5
|
-
RECTANGLE = "rectangle"
|
|
6
|
-
}
|
|
7
1
|
export declare enum avatarType {
|
|
8
2
|
TEXT = "text",
|
|
9
3
|
IMAGE = "image",
|
|
10
4
|
ICON = "icon"
|
|
11
5
|
}
|
|
12
|
-
export declare enum avatarSize {
|
|
13
|
-
SMALL = "small",
|
|
14
|
-
MEDIUM = "medium",
|
|
15
|
-
LARGE = "large"
|
|
16
|
-
}
|
|
17
|
-
export declare enum avatarFill {
|
|
18
|
-
SOLID = "solid",
|
|
19
|
-
OUTLINE = "outline"
|
|
20
|
-
}
|
|
21
|
-
export declare enum avatarThemeColor {
|
|
22
|
-
PRIMARY = "primary",
|
|
23
|
-
SECONDARY = "secondary",
|
|
24
|
-
TERTIARY = "tertiary",
|
|
25
|
-
INFO = "info",
|
|
26
|
-
SUCCESS = "success",
|
|
27
|
-
WARNING = "warning",
|
|
28
|
-
ERROR = "error",
|
|
29
|
-
DARK = "dark",
|
|
30
|
-
LIGHT = "light",
|
|
31
|
-
INVERSE = "inverse",
|
|
32
|
-
INHERIT = "inherit"
|
|
33
|
-
}
|
|
34
6
|
export declare enum cardOrientation {
|
|
35
7
|
HORIZONTAL = "horizontal",
|
|
36
8
|
VERTICAL = "vertical"
|
|
@@ -1,41 +1,9 @@
|
|
|
1
|
-
export var avatarShape;
|
|
2
|
-
(function (avatarShape) {
|
|
3
|
-
avatarShape["CIRCLE"] = "circle";
|
|
4
|
-
avatarShape["SQUARE"] = "square";
|
|
5
|
-
avatarShape["ROUNDED"] = "rounded";
|
|
6
|
-
avatarShape["RECTANGLE"] = "rectangle";
|
|
7
|
-
})(avatarShape || (avatarShape = {}));
|
|
8
1
|
export var avatarType;
|
|
9
2
|
(function (avatarType) {
|
|
10
3
|
avatarType["TEXT"] = "text";
|
|
11
4
|
avatarType["IMAGE"] = "image";
|
|
12
5
|
avatarType["ICON"] = "icon";
|
|
13
6
|
})(avatarType || (avatarType = {}));
|
|
14
|
-
export var avatarSize;
|
|
15
|
-
(function (avatarSize) {
|
|
16
|
-
avatarSize["SMALL"] = "small";
|
|
17
|
-
avatarSize["MEDIUM"] = "medium";
|
|
18
|
-
avatarSize["LARGE"] = "large";
|
|
19
|
-
})(avatarSize || (avatarSize = {}));
|
|
20
|
-
export var avatarFill;
|
|
21
|
-
(function (avatarFill) {
|
|
22
|
-
avatarFill["SOLID"] = "solid";
|
|
23
|
-
avatarFill["OUTLINE"] = "outline";
|
|
24
|
-
})(avatarFill || (avatarFill = {}));
|
|
25
|
-
export var avatarThemeColor;
|
|
26
|
-
(function (avatarThemeColor) {
|
|
27
|
-
avatarThemeColor["PRIMARY"] = "primary";
|
|
28
|
-
avatarThemeColor["SECONDARY"] = "secondary";
|
|
29
|
-
avatarThemeColor["TERTIARY"] = "tertiary";
|
|
30
|
-
avatarThemeColor["INFO"] = "info";
|
|
31
|
-
avatarThemeColor["SUCCESS"] = "success";
|
|
32
|
-
avatarThemeColor["WARNING"] = "warning";
|
|
33
|
-
avatarThemeColor["ERROR"] = "error";
|
|
34
|
-
avatarThemeColor["DARK"] = "dark";
|
|
35
|
-
avatarThemeColor["LIGHT"] = "light";
|
|
36
|
-
avatarThemeColor["INVERSE"] = "inverse";
|
|
37
|
-
avatarThemeColor["INHERIT"] = "inherit";
|
|
38
|
-
})(avatarThemeColor || (avatarThemeColor = {}));
|
|
39
7
|
export var cardOrientation;
|
|
40
8
|
(function (cardOrientation) {
|
|
41
9
|
cardOrientation["HORIZONTAL"] = "horizontal";
|
|
@@ -156,7 +156,7 @@ var MenuItemInternal = /** @class */ (function (_super) {
|
|
|
156
156
|
return classNames('k-item', 'k-menu-item', {
|
|
157
157
|
'k-first': isFirstItemFromSiblings(item.id),
|
|
158
158
|
'k-last': item.isLastFromSiblings,
|
|
159
|
-
'k-
|
|
159
|
+
'k-disabled': item.disabled
|
|
160
160
|
}, item.cssClass);
|
|
161
161
|
};
|
|
162
162
|
return MenuItemInternal;
|
|
@@ -32,7 +32,7 @@ var MenuItemLink = /** @class */ (function (_super) {
|
|
|
32
32
|
};
|
|
33
33
|
MenuItemLink.prototype.getMenuItemClassName = function () {
|
|
34
34
|
return classNames('k-link', 'k-menu-link', {
|
|
35
|
-
'k-
|
|
35
|
+
'k-active': this.props.opened
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-layout',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1642537201,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/es/panelbar/util.js
CHANGED
|
@@ -118,13 +118,12 @@ export function flatVisibleItems(data, flattedItems) {
|
|
|
118
118
|
* @hidden
|
|
119
119
|
*/
|
|
120
120
|
export function flatChildren(children, flattenChildren) {
|
|
121
|
-
var _this = this;
|
|
122
121
|
if (flattenChildren === void 0) { flattenChildren = []; }
|
|
123
122
|
React.Children.forEach(children, function (child) {
|
|
124
123
|
if (child && child.props && !child.props.disabled) {
|
|
125
124
|
flattenChildren.push(child);
|
|
126
125
|
if (child.props.children) {
|
|
127
|
-
|
|
126
|
+
flatChildren(child.props.children, flattenChildren);
|
|
128
127
|
}
|
|
129
128
|
}
|
|
130
129
|
});
|
|
@@ -135,13 +134,12 @@ export function flatChildren(children, flattenChildren) {
|
|
|
135
134
|
* @hidden
|
|
136
135
|
*/
|
|
137
136
|
export function flatVisibleChildren(children, flattenVisibleChildren) {
|
|
138
|
-
var _this = this;
|
|
139
137
|
if (flattenVisibleChildren === void 0) { flattenVisibleChildren = []; }
|
|
140
138
|
React.Children.forEach(children, function (child) {
|
|
141
139
|
if (child && child.props && !child.props.disabled && (child.props.expanded || child.props.parentExpanded)) {
|
|
142
140
|
flattenVisibleChildren.push(child);
|
|
143
141
|
if (child.props.children) {
|
|
144
|
-
|
|
142
|
+
flatVisibleChildren(child.props.children, flattenVisibleChildren);
|
|
145
143
|
}
|
|
146
144
|
}
|
|
147
145
|
});
|
package/dist/npm/card/Avatar.js
CHANGED
|
@@ -7,27 +7,29 @@ var Enums_1 = require("./interfaces/Enums");
|
|
|
7
7
|
var kendo_react_common_2 = require("@progress/kendo-react-common");
|
|
8
8
|
var package_metadata_1 = require("../package-metadata");
|
|
9
9
|
exports.Avatar = function (props) {
|
|
10
|
+
var _a;
|
|
10
11
|
kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
11
|
-
return (React.createElement("div", { style: props.style, className: kendo_react_common_1.classNames('k-avatar', "k-avatar-" + props.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
return (React.createElement("div", { style: props.style, className: kendo_react_common_1.classNames('k-avatar', "k-avatar-" + props.type, (_a = {},
|
|
13
|
+
_a["k-rounded-" + (kendo_react_common_1.kendoThemeMaps.roundedMap[props.rounded] || props.rounded)] = props.rounded,
|
|
14
|
+
_a["k-avatar-" + (kendo_react_common_1.kendoThemeMaps.sizeMap[props.size] || props.size)] = props.size,
|
|
15
|
+
_a["k-avatar-" + props.fillMode] = props.fillMode,
|
|
16
|
+
_a["k-avatar-" + props.fillMode + "-" + props.themeColor] = Boolean(props.fillMode && props.themeColor),
|
|
17
|
+
_a), props.className) },
|
|
17
18
|
React.createElement("span", { className: "k-avatar-" + props.type }, props.children)));
|
|
18
19
|
};
|
|
19
20
|
exports.Avatar.propTypes = {
|
|
20
21
|
className: PropTypes.string,
|
|
21
|
-
shape: PropTypes.oneOf(['circle', 'square', 'rounded', 'rectangle']),
|
|
22
22
|
type: PropTypes.oneOf(['text', 'image', 'icon']),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
size: PropTypes.oneOf([null, 'small', 'medium', 'large']),
|
|
24
|
+
rounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']),
|
|
25
|
+
fillMode: PropTypes.oneOf([null, 'solid', 'outline']),
|
|
26
|
+
/* eslint-disable max-len */
|
|
27
|
+
themeColor: PropTypes.oneOf([null, 'base', 'dark', 'error', 'info', 'inverse', 'inverse', 'light', 'primary', 'secondary', 'success', 'tertiary', 'warning'])
|
|
26
28
|
};
|
|
27
29
|
exports.Avatar.defaultProps = {
|
|
28
30
|
type: Enums_1.avatarType.TEXT,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
themeColor:
|
|
31
|
+
size: 'medium',
|
|
32
|
+
rounded: 'full',
|
|
33
|
+
fillMode: 'solid',
|
|
34
|
+
themeColor: 'primary'
|
|
33
35
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { avatarType } from './Enums';
|
|
3
3
|
export interface AvatarProps {
|
|
4
4
|
/**
|
|
5
5
|
* Sets the Avatar children elements.
|
|
@@ -14,61 +14,72 @@ export interface AvatarProps {
|
|
|
14
14
|
*/
|
|
15
15
|
className?: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* The possible values are:
|
|
20
|
-
* * `solid` (Default)
|
|
21
|
-
* * `outline`
|
|
17
|
+
* Set the type of the Avatar.
|
|
22
18
|
*
|
|
19
|
+
* The supported values are:
|
|
20
|
+
* * `image`
|
|
21
|
+
* * `text`
|
|
22
|
+
* * `icon`
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
type?: avatarType | string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Configures the `size` of the Button.
|
|
27
27
|
*
|
|
28
|
-
* The
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
28
|
+
* The available options are:
|
|
29
|
+
* - small
|
|
30
|
+
* - medium
|
|
31
|
+
* - large
|
|
32
|
+
* - null—Does not set a size `className`.
|
|
33
|
+
*
|
|
34
|
+
* @default `medium`
|
|
32
35
|
*/
|
|
33
|
-
|
|
36
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
34
37
|
/**
|
|
35
|
-
*
|
|
38
|
+
* Configures the `roundness` of the Button.
|
|
36
39
|
*
|
|
37
|
-
* The
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
40
|
+
* The available options are:
|
|
41
|
+
* - small
|
|
42
|
+
* - medium
|
|
43
|
+
* - large
|
|
44
|
+
* - full
|
|
45
|
+
* - null—Does not set a rounded `className`.
|
|
41
46
|
*
|
|
47
|
+
* @default `medium`
|
|
42
48
|
*/
|
|
43
|
-
|
|
49
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
44
50
|
/**
|
|
45
51
|
* Sets a border to the Avatar.
|
|
46
52
|
*/
|
|
47
53
|
border?: boolean;
|
|
48
54
|
/**
|
|
49
|
-
*
|
|
55
|
+
* Configures the `fillMode` of the Button.
|
|
50
56
|
*
|
|
51
|
-
* The
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
57
|
+
* The available options are:
|
|
58
|
+
* - solid
|
|
59
|
+
* - outline
|
|
60
|
+
* - null—Does not set a fillMode `className`.
|
|
61
|
+
*
|
|
62
|
+
* @default `solid`
|
|
55
63
|
*/
|
|
56
|
-
|
|
64
|
+
fillMode?: null | 'solid' | 'outline';
|
|
57
65
|
/**
|
|
58
|
-
*
|
|
66
|
+
* Configures the `themeColor` of the Button.
|
|
67
|
+
*
|
|
68
|
+
* The available options are:
|
|
69
|
+
* - base
|
|
70
|
+
* - primary
|
|
71
|
+
* - secondary
|
|
72
|
+
* - tertiary
|
|
73
|
+
* - info
|
|
74
|
+
* - success
|
|
75
|
+
* - error
|
|
76
|
+
* - warning
|
|
77
|
+
* - dark
|
|
78
|
+
* - light
|
|
79
|
+
* - inverse
|
|
80
|
+
* - null—Does not set a themeColor `className`.
|
|
59
81
|
*
|
|
60
|
-
*
|
|
61
|
-
* * `primary` (Default)—Applies coloring based on primary theme color.
|
|
62
|
-
* * `secondary`—Applies coloring based on secondary theme color.
|
|
63
|
-
* * `tertiary`— Applies coloring based on tertiary theme color.
|
|
64
|
-
* * `info`—Applies coloring based on info theme color.
|
|
65
|
-
* * `success`— Applies coloring based on success theme color.
|
|
66
|
-
* * `warning`— Applies coloring based on warning theme color.
|
|
67
|
-
* * `error`— Applies coloring based on error theme color.
|
|
68
|
-
* * `dark`— Applies coloring based on dark theme color.
|
|
69
|
-
* * `light`— Applies coloring based on light theme color.
|
|
70
|
-
* * `inverse`— Applies coloring based on inverse theme color.
|
|
71
|
-
* * `inherit`— Applies inherited coloring value.
|
|
82
|
+
* @default `base`
|
|
72
83
|
*/
|
|
73
|
-
themeColor?:
|
|
84
|
+
themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'error' | 'warning' | 'dark' | 'light' | 'inverse';
|
|
74
85
|
}
|
|
@@ -1,36 +1,8 @@
|
|
|
1
|
-
export declare enum avatarShape {
|
|
2
|
-
CIRCLE = "circle",
|
|
3
|
-
SQUARE = "square",
|
|
4
|
-
ROUNDED = "rounded",
|
|
5
|
-
RECTANGLE = "rectangle"
|
|
6
|
-
}
|
|
7
1
|
export declare enum avatarType {
|
|
8
2
|
TEXT = "text",
|
|
9
3
|
IMAGE = "image",
|
|
10
4
|
ICON = "icon"
|
|
11
5
|
}
|
|
12
|
-
export declare enum avatarSize {
|
|
13
|
-
SMALL = "small",
|
|
14
|
-
MEDIUM = "medium",
|
|
15
|
-
LARGE = "large"
|
|
16
|
-
}
|
|
17
|
-
export declare enum avatarFill {
|
|
18
|
-
SOLID = "solid",
|
|
19
|
-
OUTLINE = "outline"
|
|
20
|
-
}
|
|
21
|
-
export declare enum avatarThemeColor {
|
|
22
|
-
PRIMARY = "primary",
|
|
23
|
-
SECONDARY = "secondary",
|
|
24
|
-
TERTIARY = "tertiary",
|
|
25
|
-
INFO = "info",
|
|
26
|
-
SUCCESS = "success",
|
|
27
|
-
WARNING = "warning",
|
|
28
|
-
ERROR = "error",
|
|
29
|
-
DARK = "dark",
|
|
30
|
-
LIGHT = "light",
|
|
31
|
-
INVERSE = "inverse",
|
|
32
|
-
INHERIT = "inherit"
|
|
33
|
-
}
|
|
34
6
|
export declare enum cardOrientation {
|
|
35
7
|
HORIZONTAL = "horizontal",
|
|
36
8
|
VERTICAL = "vertical"
|
|
@@ -1,43 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var avatarShape;
|
|
4
|
-
(function (avatarShape) {
|
|
5
|
-
avatarShape["CIRCLE"] = "circle";
|
|
6
|
-
avatarShape["SQUARE"] = "square";
|
|
7
|
-
avatarShape["ROUNDED"] = "rounded";
|
|
8
|
-
avatarShape["RECTANGLE"] = "rectangle";
|
|
9
|
-
})(avatarShape = exports.avatarShape || (exports.avatarShape = {}));
|
|
10
3
|
var avatarType;
|
|
11
4
|
(function (avatarType) {
|
|
12
5
|
avatarType["TEXT"] = "text";
|
|
13
6
|
avatarType["IMAGE"] = "image";
|
|
14
7
|
avatarType["ICON"] = "icon";
|
|
15
8
|
})(avatarType = exports.avatarType || (exports.avatarType = {}));
|
|
16
|
-
var avatarSize;
|
|
17
|
-
(function (avatarSize) {
|
|
18
|
-
avatarSize["SMALL"] = "small";
|
|
19
|
-
avatarSize["MEDIUM"] = "medium";
|
|
20
|
-
avatarSize["LARGE"] = "large";
|
|
21
|
-
})(avatarSize = exports.avatarSize || (exports.avatarSize = {}));
|
|
22
|
-
var avatarFill;
|
|
23
|
-
(function (avatarFill) {
|
|
24
|
-
avatarFill["SOLID"] = "solid";
|
|
25
|
-
avatarFill["OUTLINE"] = "outline";
|
|
26
|
-
})(avatarFill = exports.avatarFill || (exports.avatarFill = {}));
|
|
27
|
-
var avatarThemeColor;
|
|
28
|
-
(function (avatarThemeColor) {
|
|
29
|
-
avatarThemeColor["PRIMARY"] = "primary";
|
|
30
|
-
avatarThemeColor["SECONDARY"] = "secondary";
|
|
31
|
-
avatarThemeColor["TERTIARY"] = "tertiary";
|
|
32
|
-
avatarThemeColor["INFO"] = "info";
|
|
33
|
-
avatarThemeColor["SUCCESS"] = "success";
|
|
34
|
-
avatarThemeColor["WARNING"] = "warning";
|
|
35
|
-
avatarThemeColor["ERROR"] = "error";
|
|
36
|
-
avatarThemeColor["DARK"] = "dark";
|
|
37
|
-
avatarThemeColor["LIGHT"] = "light";
|
|
38
|
-
avatarThemeColor["INVERSE"] = "inverse";
|
|
39
|
-
avatarThemeColor["INHERIT"] = "inherit";
|
|
40
|
-
})(avatarThemeColor = exports.avatarThemeColor || (exports.avatarThemeColor = {}));
|
|
41
9
|
var cardOrientation;
|
|
42
10
|
(function (cardOrientation) {
|
|
43
11
|
cardOrientation["HORIZONTAL"] = "horizontal";
|
|
@@ -158,7 +158,7 @@ var MenuItemInternal = /** @class */ (function (_super) {
|
|
|
158
158
|
return kendo_react_common_1.classNames('k-item', 'k-menu-item', {
|
|
159
159
|
'k-first': itemsIdsUtils_1.isFirstItemFromSiblings(item.id),
|
|
160
160
|
'k-last': item.isLastFromSiblings,
|
|
161
|
-
'k-
|
|
161
|
+
'k-disabled': item.disabled
|
|
162
162
|
}, item.cssClass);
|
|
163
163
|
};
|
|
164
164
|
return MenuItemInternal;
|
|
@@ -34,7 +34,7 @@ var MenuItemLink = /** @class */ (function (_super) {
|
|
|
34
34
|
};
|
|
35
35
|
MenuItemLink.prototype.getMenuItemClassName = function () {
|
|
36
36
|
return kendo_react_common_1.classNames('k-link', 'k-menu-link', {
|
|
37
|
-
'k-
|
|
37
|
+
'k-active': this.props.opened
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
@@ -7,7 +7,7 @@ exports.packageMetadata = {
|
|
|
7
7
|
name: '@progress/kendo-react-layout',
|
|
8
8
|
productName: 'KendoReact',
|
|
9
9
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
10
|
+
publishDate: 1642537201,
|
|
11
11
|
version: '',
|
|
12
12
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
13
13
|
};
|
|
@@ -121,13 +121,12 @@ exports.flatVisibleItems = flatVisibleItems;
|
|
|
121
121
|
* @hidden
|
|
122
122
|
*/
|
|
123
123
|
function flatChildren(children, flattenChildren) {
|
|
124
|
-
var _this = this;
|
|
125
124
|
if (flattenChildren === void 0) { flattenChildren = []; }
|
|
126
125
|
React.Children.forEach(children, function (child) {
|
|
127
126
|
if (child && child.props && !child.props.disabled) {
|
|
128
127
|
flattenChildren.push(child);
|
|
129
128
|
if (child.props.children) {
|
|
130
|
-
|
|
129
|
+
flatChildren(child.props.children, flattenChildren);
|
|
131
130
|
}
|
|
132
131
|
}
|
|
133
132
|
});
|
|
@@ -139,13 +138,12 @@ exports.flatChildren = flatChildren;
|
|
|
139
138
|
* @hidden
|
|
140
139
|
*/
|
|
141
140
|
function flatVisibleChildren(children, flattenVisibleChildren) {
|
|
142
|
-
var _this = this;
|
|
143
141
|
if (flattenVisibleChildren === void 0) { flattenVisibleChildren = []; }
|
|
144
142
|
React.Children.forEach(children, function (child) {
|
|
145
143
|
if (child && child.props && !child.props.disabled && (child.props.expanded || child.props.parentExpanded)) {
|
|
146
144
|
flattenVisibleChildren.push(child);
|
|
147
145
|
if (child.props.children) {
|
|
148
|
-
|
|
146
|
+
flatVisibleChildren(child.props.children, flattenVisibleChildren);
|
|
149
147
|
}
|
|
150
148
|
}
|
|
151
149
|
});
|