@progress/kendo-react-layout 5.20.0-dev.202310061256 → 6.0.0

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.
@@ -17,17 +17,16 @@ import { validatePackage } from '@progress/kendo-react-common';
17
17
  import { packageMetadata } from '../package-metadata';
18
18
  export var Avatar = function (props) {
19
19
  var _a;
20
- validatePackage(packageMetadata);
21
20
  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)));
21
+ validatePackage(packageMetadata);
22
+ return (React.createElement("div", { style: combinedProps.style, className: classNames('k-avatar', (_a = {},
23
+ _a['k-avatar-bordered'] = combinedProps.border,
24
+ _a["k-rounded-".concat(kendoThemeMaps.roundedMap[combinedProps.rounded] || combinedProps.rounded)] = combinedProps.rounded,
25
+ _a["k-avatar-".concat(kendoThemeMaps.sizeMap[combinedProps.size] || combinedProps.size)] = combinedProps.size,
26
+ _a["k-avatar-".concat(combinedProps.fillMode)] = combinedProps.fillMode,
27
+ _a["k-avatar-".concat(combinedProps.fillMode, "-").concat(combinedProps.themeColor)] = Boolean(combinedProps.fillMode && combinedProps.themeColor),
28
+ _a), combinedProps.className) },
29
+ React.createElement("span", { className: "k-avatar-".concat(combinedProps.type) }, combinedProps.children)));
31
30
  };
32
31
  Avatar.propTypes = {
33
32
  className: PropTypes.string,
@@ -1,13 +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
  export var CardImage = function (props) {
5
- return (React.createElement("img", { style: props.style, className: classNames('k-card-image', props.className), src: props.src, alt: props.alt }));
16
+ var combinedProps = __assign({ src: '' }, props);
17
+ return (React.createElement("img", { style: combinedProps.style, className: classNames('k-card-image', combinedProps.className), src: combinedProps.src, alt: combinedProps.alt }));
6
18
  };
7
19
  CardImage.propTypes = {
8
20
  className: PropTypes.string,
9
21
  src: PropTypes.string
10
22
  };
11
- CardImage.defaultProps = {
12
- src: ''
13
- };
@@ -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: 1696594650,
8
+ publishDate: 1696948005,
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
  };
@@ -20,17 +20,16 @@ var kendo_react_common_2 = require("@progress/kendo-react-common");
20
20
  var package_metadata_1 = require("../package-metadata");
21
21
  var Avatar = function (props) {
22
22
  var _a;
23
- (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
24
23
  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)));
24
+ (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
25
+ return (React.createElement("div", { style: combinedProps.style, className: (0, kendo_react_common_1.classNames)('k-avatar', (_a = {},
26
+ _a['k-avatar-bordered'] = combinedProps.border,
27
+ _a["k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[combinedProps.rounded] || combinedProps.rounded)] = combinedProps.rounded,
28
+ _a["k-avatar-".concat(kendo_react_common_1.kendoThemeMaps.sizeMap[combinedProps.size] || combinedProps.size)] = combinedProps.size,
29
+ _a["k-avatar-".concat(combinedProps.fillMode)] = combinedProps.fillMode,
30
+ _a["k-avatar-".concat(combinedProps.fillMode, "-").concat(combinedProps.themeColor)] = Boolean(combinedProps.fillMode && combinedProps.themeColor),
31
+ _a), combinedProps.className) },
32
+ React.createElement("span", { className: "k-avatar-".concat(combinedProps.type) }, combinedProps.children)));
34
33
  };
35
34
  exports.Avatar = Avatar;
36
35
  exports.Avatar.propTypes = {
@@ -1,17 +1,26 @@
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.CardImage = void 0;
4
15
  var React = require("react");
5
16
  var PropTypes = require("prop-types");
6
17
  var kendo_react_common_1 = require("@progress/kendo-react-common");
7
18
  var CardImage = function (props) {
8
- return (React.createElement("img", { style: props.style, className: (0, kendo_react_common_1.classNames)('k-card-image', props.className), src: props.src, alt: props.alt }));
19
+ var combinedProps = __assign({ src: '' }, props);
20
+ return (React.createElement("img", { style: combinedProps.style, className: (0, kendo_react_common_1.classNames)('k-card-image', combinedProps.className), src: combinedProps.src, alt: combinedProps.alt }));
9
21
  };
10
22
  exports.CardImage = CardImage;
11
23
  exports.CardImage.propTypes = {
12
24
  className: PropTypes.string,
13
25
  src: PropTypes.string
14
26
  };
15
- exports.CardImage.defaultProps = {
16
- src: ''
17
- };
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-layout',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1696594650,
11
+ publishDate: 1696948005,
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
  };