@progress/kendo-react-layout 5.19.0 → 5.20.0-dev.202309281201
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 +21 -15
- package/dist/es/card/CardActions.js +13 -5
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timeline/Timeline.js +13 -6
- package/dist/npm/card/Avatar.js +21 -15
- package/dist/npm/card/CardActions.js +13 -5
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timeline/Timeline.js +13 -6
- package/dist/systemjs/kendo-react-layout.js +1 -1
- package/package.json +13 -13
package/dist/es/card/Avatar.js
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import * as React from 'react';
|
|
2
13
|
import * as PropTypes from 'prop-types';
|
|
3
14
|
import { classNames, kendoThemeMaps } from '@progress/kendo-react-common';
|
|
@@ -7,14 +18,16 @@ import { packageMetadata } from '../package-metadata';
|
|
|
7
18
|
export var Avatar = function (props) {
|
|
8
19
|
var _a;
|
|
9
20
|
validatePackage(packageMetadata);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
_a[
|
|
14
|
-
_a["k-
|
|
15
|
-
_a["k-avatar-".concat(
|
|
16
|
-
_a
|
|
17
|
-
|
|
21
|
+
var combinedProps = __assign({ type: avatarType.TEXT, size: 'medium', rounded: 'full', fillMode: 'solid', themeColor: 'primary' }, props);
|
|
22
|
+
var rounded = combinedProps.rounded, fillMode = combinedProps.fillMode, size = combinedProps.size, themeColor = combinedProps.themeColor, style = combinedProps.style, border = combinedProps.border, className = combinedProps.className, type = combinedProps.type, children = combinedProps.children;
|
|
23
|
+
return (React.createElement("div", { style: style, className: classNames('k-avatar', (_a = {},
|
|
24
|
+
_a['k-avatar-bordered'] = border,
|
|
25
|
+
_a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
|
|
26
|
+
_a["k-avatar-".concat(kendoThemeMaps.sizeMap[size] || size)] = size,
|
|
27
|
+
_a["k-avatar-".concat(fillMode)] = fillMode,
|
|
28
|
+
_a["k-avatar-".concat(fillMode, "-").concat(themeColor)] = Boolean(fillMode && themeColor),
|
|
29
|
+
_a), className) },
|
|
30
|
+
React.createElement("span", { className: "k-avatar-".concat(type) }, children)));
|
|
18
31
|
};
|
|
19
32
|
Avatar.propTypes = {
|
|
20
33
|
className: PropTypes.string,
|
|
@@ -25,10 +38,3 @@ Avatar.propTypes = {
|
|
|
25
38
|
/* eslint-disable max-len */
|
|
26
39
|
themeColor: PropTypes.oneOf([null, 'base', 'dark', 'error', 'info', 'inverse', 'inverse', 'light', 'primary', 'secondary', 'success', 'tertiary', 'warning'])
|
|
27
40
|
};
|
|
28
|
-
Avatar.defaultProps = {
|
|
29
|
-
type: avatarType.TEXT,
|
|
30
|
-
size: 'medium',
|
|
31
|
-
rounded: 'full',
|
|
32
|
-
fillMode: 'solid',
|
|
33
|
-
themeColor: 'primary'
|
|
34
|
-
};
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import * as React from 'react';
|
|
2
13
|
import * as PropTypes from 'prop-types';
|
|
3
14
|
import { classNames } from '@progress/kendo-react-common';
|
|
4
15
|
import { cardActionsLayout, cardOrientation } from './interfaces/Enums';
|
|
5
16
|
export var CardActions = function (props) {
|
|
6
|
-
|
|
17
|
+
var combinedProps = __assign({ layout: cardActionsLayout.START, orientation: cardOrientation.HORIZONTAL }, props);
|
|
18
|
+
return (React.createElement("div", { style: combinedProps.style, className: classNames('k-card-actions', combinedProps.className, "k-card-actions-".concat(combinedProps.layout), combinedProps.orientation !== cardOrientation.VERTICAL ? 'k-card-actions-horizontal' : 'k-card-actions-vertical') }, combinedProps.children));
|
|
7
19
|
};
|
|
8
20
|
CardActions.propTypes = {
|
|
9
21
|
layout: PropTypes.oneOf(['stretched', 'start', 'center', 'end']),
|
|
10
22
|
orientation: PropTypes.oneOf(['horizontal', 'vertical'])
|
|
11
23
|
};
|
|
12
|
-
CardActions.defaultProps = {
|
|
13
|
-
layout: cardActionsLayout.START,
|
|
14
|
-
orientation: cardOrientation.HORIZONTAL
|
|
15
|
-
};
|
|
@@ -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: 1695900209,
|
|
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
|
};
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import * as React from 'react';
|
|
2
13
|
import * as PropTypes from 'prop-types';
|
|
3
14
|
import { classNames } from '@progress/kendo-react-common';
|
|
4
15
|
import { TimelineHorizontal } from './TimelineHorizontal';
|
|
5
16
|
import { TimelineVertical } from './TimelineVertical';
|
|
6
17
|
export var Timeline = function (props) {
|
|
7
|
-
var
|
|
18
|
+
var combinedProps = __assign({ alterMode: false, collapsibleEvents: true, dateFormat: 'MMM dd, yyyy' }, props);
|
|
19
|
+
var collapsibleEvents = combinedProps.collapsibleEvents, transitionDuration = combinedProps.transitionDuration, className = combinedProps.className, alterMode = combinedProps.alterMode, navigatable = combinedProps.navigatable, horizontal = combinedProps.horizontal, events = combinedProps.events, dateFormat = combinedProps.dateFormat, onChange = combinedProps.onChange, onActionClick = combinedProps.onActionClick;
|
|
8
20
|
var _a = React.useState(), trackAxisWidth = _a[0], setTrackAxisWidth = _a[1];
|
|
9
21
|
var trackWrapRef = React.useRef(null);
|
|
10
22
|
React.useEffect(function () {
|
|
@@ -20,11 +32,6 @@ export var Timeline = function (props) {
|
|
|
20
32
|
}, className), style: { width: "".concat(trackAxisWidth, "px") } }, horizontal ? React.createElement(TimelineHorizontal, { navigatable: navigatable, eventsData: events, dateFormat: dateFormat, transitionDuration: transitionDuration, onActionClick: onActionClick })
|
|
21
33
|
: React.createElement(TimelineVertical, { navigatable: navigatable, eventsData: events, dateFormat: dateFormat, alterMode: alterMode, collapsibleEvents: collapsibleEvents, transitionDuration: transitionDuration, onChange: onChange, onActionClick: onActionClick })));
|
|
22
34
|
};
|
|
23
|
-
Timeline.defaultProps = {
|
|
24
|
-
alterMode: false,
|
|
25
|
-
collapsibleEvents: true,
|
|
26
|
-
dateFormat: 'MMM dd, yyyy'
|
|
27
|
-
};
|
|
28
35
|
Timeline.propTypes = {
|
|
29
36
|
className: PropTypes.string
|
|
30
37
|
};
|
package/dist/npm/card/Avatar.js
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.Avatar = void 0;
|
|
4
15
|
var React = require("react");
|
|
@@ -10,14 +21,16 @@ var package_metadata_1 = require("../package-metadata");
|
|
|
10
21
|
var Avatar = function (props) {
|
|
11
22
|
var _a;
|
|
12
23
|
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
_a[
|
|
17
|
-
_a["k-
|
|
18
|
-
_a["k-avatar-".concat(
|
|
19
|
-
_a
|
|
20
|
-
|
|
24
|
+
var combinedProps = __assign({ type: Enums_1.avatarType.TEXT, size: 'medium', rounded: 'full', fillMode: 'solid', themeColor: 'primary' }, props);
|
|
25
|
+
var rounded = combinedProps.rounded, fillMode = combinedProps.fillMode, size = combinedProps.size, themeColor = combinedProps.themeColor, style = combinedProps.style, border = combinedProps.border, className = combinedProps.className, type = combinedProps.type, children = combinedProps.children;
|
|
26
|
+
return (React.createElement("div", { style: style, className: (0, kendo_react_common_1.classNames)('k-avatar', (_a = {},
|
|
27
|
+
_a['k-avatar-bordered'] = border,
|
|
28
|
+
_a["k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
|
|
29
|
+
_a["k-avatar-".concat(kendo_react_common_1.kendoThemeMaps.sizeMap[size] || size)] = size,
|
|
30
|
+
_a["k-avatar-".concat(fillMode)] = fillMode,
|
|
31
|
+
_a["k-avatar-".concat(fillMode, "-").concat(themeColor)] = Boolean(fillMode && themeColor),
|
|
32
|
+
_a), className) },
|
|
33
|
+
React.createElement("span", { className: "k-avatar-".concat(type) }, children)));
|
|
21
34
|
};
|
|
22
35
|
exports.Avatar = Avatar;
|
|
23
36
|
exports.Avatar.propTypes = {
|
|
@@ -29,10 +42,3 @@ exports.Avatar.propTypes = {
|
|
|
29
42
|
/* eslint-disable max-len */
|
|
30
43
|
themeColor: PropTypes.oneOf([null, 'base', 'dark', 'error', 'info', 'inverse', 'inverse', 'light', 'primary', 'secondary', 'success', 'tertiary', 'warning'])
|
|
31
44
|
};
|
|
32
|
-
exports.Avatar.defaultProps = {
|
|
33
|
-
type: Enums_1.avatarType.TEXT,
|
|
34
|
-
size: 'medium',
|
|
35
|
-
rounded: 'full',
|
|
36
|
-
fillMode: 'solid',
|
|
37
|
-
themeColor: 'primary'
|
|
38
|
-
};
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.CardActions = void 0;
|
|
4
15
|
var React = require("react");
|
|
@@ -6,14 +17,11 @@ var PropTypes = require("prop-types");
|
|
|
6
17
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
7
18
|
var Enums_1 = require("./interfaces/Enums");
|
|
8
19
|
var CardActions = function (props) {
|
|
9
|
-
|
|
20
|
+
var combinedProps = __assign({ layout: Enums_1.cardActionsLayout.START, orientation: Enums_1.cardOrientation.HORIZONTAL }, props);
|
|
21
|
+
return (React.createElement("div", { style: combinedProps.style, className: (0, kendo_react_common_1.classNames)('k-card-actions', combinedProps.className, "k-card-actions-".concat(combinedProps.layout), combinedProps.orientation !== Enums_1.cardOrientation.VERTICAL ? 'k-card-actions-horizontal' : 'k-card-actions-vertical') }, combinedProps.children));
|
|
10
22
|
};
|
|
11
23
|
exports.CardActions = CardActions;
|
|
12
24
|
exports.CardActions.propTypes = {
|
|
13
25
|
layout: PropTypes.oneOf(['stretched', 'start', 'center', 'end']),
|
|
14
26
|
orientation: PropTypes.oneOf(['horizontal', 'vertical'])
|
|
15
27
|
};
|
|
16
|
-
exports.CardActions.defaultProps = {
|
|
17
|
-
layout: Enums_1.cardActionsLayout.START,
|
|
18
|
-
orientation: Enums_1.cardOrientation.HORIZONTAL
|
|
19
|
-
};
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-layout',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1695900209,
|
|
12
12
|
version: '',
|
|
13
13
|
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'
|
|
14
14
|
};
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.Timeline = void 0;
|
|
4
15
|
var React = require("react");
|
|
@@ -7,7 +18,8 @@ var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
|
7
18
|
var TimelineHorizontal_1 = require("./TimelineHorizontal");
|
|
8
19
|
var TimelineVertical_1 = require("./TimelineVertical");
|
|
9
20
|
var Timeline = function (props) {
|
|
10
|
-
var
|
|
21
|
+
var combinedProps = __assign({ alterMode: false, collapsibleEvents: true, dateFormat: 'MMM dd, yyyy' }, props);
|
|
22
|
+
var collapsibleEvents = combinedProps.collapsibleEvents, transitionDuration = combinedProps.transitionDuration, className = combinedProps.className, alterMode = combinedProps.alterMode, navigatable = combinedProps.navigatable, horizontal = combinedProps.horizontal, events = combinedProps.events, dateFormat = combinedProps.dateFormat, onChange = combinedProps.onChange, onActionClick = combinedProps.onActionClick;
|
|
11
23
|
var _a = React.useState(), trackAxisWidth = _a[0], setTrackAxisWidth = _a[1];
|
|
12
24
|
var trackWrapRef = React.useRef(null);
|
|
13
25
|
React.useEffect(function () {
|
|
@@ -24,11 +36,6 @@ var Timeline = function (props) {
|
|
|
24
36
|
: React.createElement(TimelineVertical_1.TimelineVertical, { navigatable: navigatable, eventsData: events, dateFormat: dateFormat, alterMode: alterMode, collapsibleEvents: collapsibleEvents, transitionDuration: transitionDuration, onChange: onChange, onActionClick: onActionClick })));
|
|
25
37
|
};
|
|
26
38
|
exports.Timeline = Timeline;
|
|
27
|
-
exports.Timeline.defaultProps = {
|
|
28
|
-
alterMode: false,
|
|
29
|
-
collapsibleEvents: true,
|
|
30
|
-
dateFormat: 'MMM dd, yyyy'
|
|
31
|
-
};
|
|
32
39
|
exports.Timeline.propTypes = {
|
|
33
40
|
className: PropTypes.string
|
|
34
41
|
};
|