@progress/kendo-react-layout 5.3.0-dev.202204191312 → 5.3.0-dev.202204281202

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.
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  /**
3
3
  * The interface for describing items that can be passed to the `items` property of the BottomNavigation component.
4
4
  */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import { BottomNavigationItemProps } from './BottomNavigationItemProps';
3
3
  import { BottomNavigationEvent, BottomNavigationSelectEvent } from './models/events';
4
4
  /**
@@ -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: 1650373174,
8
+ publishDate: 1651146566,
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,8 +1,9 @@
1
1
  import * as React from 'react';
2
+ import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
2
3
  /**
3
4
  * Represents the pane options of the Splitter.
4
5
  */
5
- export interface SplitterPaneProps {
6
+ export interface SplitterPaneProps extends KendoReactComponentBaseProps {
6
7
  /**
7
8
  * Sets the size of the pane ([see example]({% slug panes_splitter %}#toc-dimensions)). Has to be between the `min` and `max` properties.
8
9
  */
@@ -23,7 +23,7 @@ var SplitterPane = /** @class */ (function (_super) {
23
23
  }
24
24
  SplitterPane.prototype.render = function () {
25
25
  var _a;
26
- var _b = this.props, size = _b.size, collapsed = _b.collapsed, overlay = _b.overlay, containsSplitter = _b.containsSplitter, collapsible = _b.collapsible, resizable = _b.resizable, scrollable = _b.scrollable, keepMounted = _b.keepMounted;
26
+ var _b = this.props, id = _b.id, size = _b.size, collapsed = _b.collapsed, overlay = _b.overlay, containsSplitter = _b.containsSplitter, collapsible = _b.collapsible, resizable = _b.resizable, scrollable = _b.scrollable, keepMounted = _b.keepMounted;
27
27
  var fixedSize = size && size.length > 0;
28
28
  var style = {
29
29
  flexBasis: size
@@ -35,7 +35,7 @@ var SplitterPane = /** @class */ (function (_super) {
35
35
  _a['k-pane-static'] = !resizable && !collapsible || fixedSize,
36
36
  _a['k-scrollable'] = scrollable,
37
37
  _a));
38
- return (React.createElement("div", { style: style, className: paneClasses },
38
+ return (React.createElement("div", { id: id, style: style, className: paneClasses },
39
39
  !collapsed || keepMounted ? this.props.children : undefined,
40
40
  overlay ? React.createElement("div", { className: 'k-splitter-overlay k-overlay' }) : undefined));
41
41
  };
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as PropTypes from 'prop-types';
3
+ import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
3
4
  /**
4
5
  * The arguments that are passed to the `onSelect` callback function of the TabStrip.
5
6
  */
@@ -12,7 +13,7 @@ export interface TabStripSelectEventArguments {
12
13
  /**
13
14
  * Represents the props of the [KendoReact TabStrip component]({% slug overview_tabstrip %}).
14
15
  */
15
- export interface TabStripProps {
16
+ export interface TabStripProps extends KendoReactComponentBaseProps {
16
17
  /**
17
18
  * Enables the tab animation.
18
19
  */
@@ -26,8 +26,7 @@ import * as React from 'react';
26
26
  import * as PropTypes from 'prop-types';
27
27
  import { TabStripNavigation } from './TabStripNavigation';
28
28
  import { TabStripContent } from './TabStripContent';
29
- import { Keys, classNames } from '@progress/kendo-react-common';
30
- import { validatePackage } from '@progress/kendo-react-common';
29
+ import { Keys, classNames, validatePackage } from '@progress/kendo-react-common';
31
30
  import { packageMetadata } from '../package-metadata';
32
31
  // tslint:enable:max-line-length
33
32
  var TabStrip = /** @class */ (function (_super) {
@@ -172,7 +171,7 @@ var TabStrip = /** @class */ (function (_super) {
172
171
  'k-tabstrip-bottom': tabPosition === 'bottom',
173
172
  'k-tabstrip-top': tabPosition === 'top'
174
173
  }, this.props.className);
175
- return (React.createElement("div", { ref: function (div) { return _this._element = div; }, dir: this.props.dir, className: componentClasses, style: this.props.style },
174
+ return (React.createElement("div", { id: this.props.id, ref: function (div) { return _this._element = div; }, dir: this.props.dir, className: componentClasses, style: this.props.style },
176
175
  !bottom && React.createElement(TabStripNavigation, __assign({}, tabProps, { tabIndex: tabIndex })),
177
176
  this.renderContent(tabProps),
178
177
  bottom && React.createElement(TabStripNavigation, __assign({}, tabProps, { tabIndex: tabIndex }))));
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  /**
3
3
  * The interface for describing items that can be passed to the `items` property of the BottomNavigation component.
4
4
  */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import { BottomNavigationItemProps } from './BottomNavigationItemProps';
3
3
  import { BottomNavigationEvent, BottomNavigationSelectEvent } from './models/events';
4
4
  /**
@@ -7,7 +7,7 @@ exports.packageMetadata = {
7
7
  name: '@progress/kendo-react-layout',
8
8
  productName: 'KendoReact',
9
9
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1650373174,
10
+ publishDate: 1651146566,
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
  };
@@ -1,8 +1,9 @@
1
1
  import * as React from 'react';
2
+ import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
2
3
  /**
3
4
  * Represents the pane options of the Splitter.
4
5
  */
5
- export interface SplitterPaneProps {
6
+ export interface SplitterPaneProps extends KendoReactComponentBaseProps {
6
7
  /**
7
8
  * Sets the size of the pane ([see example]({% slug panes_splitter %}#toc-dimensions)). Has to be between the `min` and `max` properties.
8
9
  */
@@ -25,7 +25,7 @@ var SplitterPane = /** @class */ (function (_super) {
25
25
  }
26
26
  SplitterPane.prototype.render = function () {
27
27
  var _a;
28
- var _b = this.props, size = _b.size, collapsed = _b.collapsed, overlay = _b.overlay, containsSplitter = _b.containsSplitter, collapsible = _b.collapsible, resizable = _b.resizable, scrollable = _b.scrollable, keepMounted = _b.keepMounted;
28
+ var _b = this.props, id = _b.id, size = _b.size, collapsed = _b.collapsed, overlay = _b.overlay, containsSplitter = _b.containsSplitter, collapsible = _b.collapsible, resizable = _b.resizable, scrollable = _b.scrollable, keepMounted = _b.keepMounted;
29
29
  var fixedSize = size && size.length > 0;
30
30
  var style = {
31
31
  flexBasis: size
@@ -37,7 +37,7 @@ var SplitterPane = /** @class */ (function (_super) {
37
37
  _a['k-pane-static'] = !resizable && !collapsible || fixedSize,
38
38
  _a['k-scrollable'] = scrollable,
39
39
  _a));
40
- return (React.createElement("div", { style: style, className: paneClasses },
40
+ return (React.createElement("div", { id: id, style: style, className: paneClasses },
41
41
  !collapsed || keepMounted ? this.props.children : undefined,
42
42
  overlay ? React.createElement("div", { className: 'k-splitter-overlay k-overlay' }) : undefined));
43
43
  };
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as PropTypes from 'prop-types';
3
+ import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
3
4
  /**
4
5
  * The arguments that are passed to the `onSelect` callback function of the TabStrip.
5
6
  */
@@ -12,7 +13,7 @@ export interface TabStripSelectEventArguments {
12
13
  /**
13
14
  * Represents the props of the [KendoReact TabStrip component]({% slug overview_tabstrip %}).
14
15
  */
15
- export interface TabStripProps {
16
+ export interface TabStripProps extends KendoReactComponentBaseProps {
16
17
  /**
17
18
  * Enables the tab animation.
18
19
  */
@@ -29,7 +29,6 @@ var PropTypes = require("prop-types");
29
29
  var TabStripNavigation_1 = require("./TabStripNavigation");
30
30
  var TabStripContent_1 = require("./TabStripContent");
31
31
  var kendo_react_common_1 = require("@progress/kendo-react-common");
32
- var kendo_react_common_2 = require("@progress/kendo-react-common");
33
32
  var package_metadata_1 = require("../package-metadata");
34
33
  // tslint:enable:max-line-length
35
34
  var TabStrip = /** @class */ (function (_super) {
@@ -157,7 +156,7 @@ var TabStrip = /** @class */ (function (_super) {
157
156
  }
158
157
  }
159
158
  };
160
- kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
159
+ kendo_react_common_1.validatePackage(package_metadata_1.packageMetadata);
161
160
  return _this;
162
161
  }
163
162
  /**
@@ -174,7 +173,7 @@ var TabStrip = /** @class */ (function (_super) {
174
173
  'k-tabstrip-bottom': tabPosition === 'bottom',
175
174
  'k-tabstrip-top': tabPosition === 'top'
176
175
  }, this.props.className);
177
- return (React.createElement("div", { ref: function (div) { return _this._element = div; }, dir: this.props.dir, className: componentClasses, style: this.props.style },
176
+ return (React.createElement("div", { id: this.props.id, ref: function (div) { return _this._element = div; }, dir: this.props.dir, className: componentClasses, style: this.props.style },
178
177
  !bottom && React.createElement(TabStripNavigation_1.TabStripNavigation, __assign({}, tabProps, { tabIndex: tabIndex })),
179
178
  this.renderContent(tabProps),
180
179
  bottom && React.createElement(TabStripNavigation_1.TabStripNavigation, __assign({}, tabProps, { tabIndex: tabIndex }))));