@progress/kendo-react-layout 13.4.0-develop.5 → 14.0.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/dist/cdn/js/kendo-react-layout.js +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +1 -1
- package/package.json +8 -8
- package/tabstrip/TabStrip.d.ts +13 -79
- package/tabstrip/TabStrip.js +1 -1
- package/tabstrip/TabStrip.mjs +179 -132
- package/tabstrip/TabStripContent.d.ts +1 -21
- package/tabstrip/TabStripContent.js +1 -1
- package/tabstrip/TabStripContent.mjs +75 -83
- package/tabstrip/TabStripNavigation.d.ts +1 -41
- package/tabstrip/TabStripNavigation.js +1 -1
- package/tabstrip/TabStripNavigation.mjs +159 -146
- package/tabstrip/TabStripNavigationItem.d.ts +5 -27
- package/tabstrip/TabStripNavigationItem.js +1 -1
- package/tabstrip/TabStripNavigationItem.mjs +56 -46
- package/tabstrip/TabStripTab.d.ts +1 -16
- package/tabstrip/TabStripTab.js +1 -1
- package/tabstrip/TabStripTab.mjs +3 -11
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react"),t=require("prop-types"),O=require("@progress/kendo-react-common");function P(n){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(i,r,a.get?a:{enumerable:!0,get:()=>n[r]})}}return i.default=n,Object.freeze(i)}const e=P(T),f=e.forwardRef((n,i)=>{const{id:r,active:a,disabled:l,title:C="Untitled",index:o,renderAllContent:p,first:k,last:g,contentPanelId:d,onSelect:u}=n,s=e.useRef(null),v=e.useCallback(()=>{var c;(c=s.current)==null||c.focus()},[]),b=e.useCallback(()=>{var c;(c=s.current)==null||c.blur()},[]),S=e.useCallback(()=>({focus:v,blur:b}),[v,b]);e.useImperativeHandle(i,S);const y=e.useCallback(()=>{u==null||u(o),s.current&&(s.current.tabIndex=0,s.current.focus())},[u,o]),m=e.useMemo(()=>p?`${d}-${o.toString()}`:d,[p,d,o]),I=e.useMemo(()=>O.classNames("k-tabstrip-item",{"k-disabled":l,"k-active":a,"k-first":k,"k-last":g}),[l,a,k,g]),N=e.useMemo(()=>({id:`${r}-${o.toString()}`,"aria-selected":a,"aria-controls":a?m:void 0,"aria-disabled":l,role:"tab",onClick:l?void 0:y}),[r,o,a,m,l,y]);return e.createElement("li",{...N,className:I,ref:s,onBlur:b,"aria-controls":m},e.createElement("span",{className:"k-link"},C))});f.propTypes={active:t.bool,disabled:t.bool,index:t.number,onSelect:t.func,title:t.oneOfType([t.string,t.element]),first:t.bool,last:t.bool};f.displayName="TabStripNavigationItem";exports.TabStripNavigationItem=f;
|
|
@@ -5,52 +5,62 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import * as
|
|
8
|
+
import * as e from "react";
|
|
9
9
|
import t from "prop-types";
|
|
10
|
-
import { classNames as
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
10
|
+
import { classNames as y } from "@progress/kendo-react-common";
|
|
11
|
+
const v = e.forwardRef((C, I) => {
|
|
12
|
+
const {
|
|
13
|
+
id: d,
|
|
14
|
+
active: o,
|
|
15
|
+
disabled: r,
|
|
16
|
+
title: g = "Untitled",
|
|
17
|
+
index: a,
|
|
18
|
+
renderAllContent: u,
|
|
19
|
+
first: b,
|
|
20
|
+
last: p,
|
|
21
|
+
contentPanelId: n,
|
|
22
|
+
onSelect: i
|
|
23
|
+
} = C, s = e.useRef(null), f = e.useCallback(() => {
|
|
24
|
+
var l;
|
|
25
|
+
(l = s.current) == null || l.focus();
|
|
26
|
+
}, []), c = e.useCallback(() => {
|
|
27
|
+
var l;
|
|
28
|
+
(l = s.current) == null || l.blur();
|
|
29
|
+
}, []), N = e.useCallback(
|
|
30
|
+
() => ({
|
|
31
|
+
focus: f,
|
|
32
|
+
blur: c
|
|
33
|
+
}),
|
|
34
|
+
[f, c]
|
|
35
|
+
);
|
|
36
|
+
e.useImperativeHandle(I, N);
|
|
37
|
+
const k = e.useCallback(() => {
|
|
38
|
+
i == null || i(a), s.current && (s.current.tabIndex = 0, s.current.focus());
|
|
39
|
+
}, [i, a]), m = e.useMemo(
|
|
40
|
+
() => u ? `${n}-${a.toString()}` : n,
|
|
41
|
+
[u, n, a]
|
|
42
|
+
), T = e.useMemo(
|
|
43
|
+
() => y("k-tabstrip-item", {
|
|
44
|
+
"k-disabled": r,
|
|
45
|
+
"k-active": o,
|
|
46
|
+
"k-first": b,
|
|
47
|
+
"k-last": p
|
|
48
|
+
}),
|
|
49
|
+
[r, o, b, p]
|
|
50
|
+
), x = e.useMemo(
|
|
51
|
+
() => ({
|
|
52
|
+
id: `${d}-${a.toString()}`,
|
|
53
|
+
"aria-selected": o,
|
|
54
|
+
"aria-controls": o ? m : void 0,
|
|
55
|
+
"aria-disabled": r,
|
|
30
56
|
role: "tab",
|
|
31
|
-
onClick:
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return /* @__PURE__ */ i.createElement(
|
|
39
|
-
"li",
|
|
40
|
-
{
|
|
41
|
-
...m,
|
|
42
|
-
className: h,
|
|
43
|
-
ref: (u) => {
|
|
44
|
-
this.itemRef = u;
|
|
45
|
-
},
|
|
46
|
-
onBlur: this.blur,
|
|
47
|
-
"aria-controls": r
|
|
48
|
-
},
|
|
49
|
-
/* @__PURE__ */ i.createElement("span", { className: "k-link" }, c)
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
o.propTypes = {
|
|
57
|
+
onClick: r ? void 0 : k
|
|
58
|
+
}),
|
|
59
|
+
[d, a, o, m, r, k]
|
|
60
|
+
);
|
|
61
|
+
return /* @__PURE__ */ e.createElement("li", { ...x, className: T, ref: s, onBlur: c, "aria-controls": m }, /* @__PURE__ */ e.createElement("span", { className: "k-link" }, g));
|
|
62
|
+
});
|
|
63
|
+
v.propTypes = {
|
|
54
64
|
active: t.bool,
|
|
55
65
|
disabled: t.bool,
|
|
56
66
|
index: t.number,
|
|
@@ -59,7 +69,7 @@ o.propTypes = {
|
|
|
59
69
|
first: t.bool,
|
|
60
70
|
last: t.bool
|
|
61
71
|
};
|
|
62
|
-
|
|
72
|
+
v.displayName = "TabStripNavigationItem";
|
|
63
73
|
export {
|
|
64
|
-
|
|
74
|
+
v as TabStripNavigationItem
|
|
65
75
|
};
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { default as PropTypes } from 'prop-types';
|
|
9
8
|
import * as React from 'react';
|
|
10
9
|
/**
|
|
11
10
|
* Represents the props of the TabStrip tabs.
|
|
@@ -33,18 +32,4 @@ export interface TabStripTabProps {
|
|
|
33
32
|
/**
|
|
34
33
|
* Represents the TabStripTab component.
|
|
35
34
|
*/
|
|
36
|
-
export declare
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
static propTypes: {
|
|
41
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
42
|
-
contentClassName: PropTypes.Requireable<string>;
|
|
43
|
-
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
44
|
-
title: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
render(): null;
|
|
50
|
-
}
|
|
35
|
+
export declare const TabStripTab: React.FC<TabStripTabProps>;
|
package/tabstrip/TabStripTab.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("prop-types"),t=()=>null;t.propTypes={disabled:e.bool,contentClassName:e.string,children:e.oneOfType([e.element,e.node]),title:e.oneOfType([e.string,e.element,e.node])};t.displayName="TabStripTab";exports.TabStripTab=t;
|
package/tabstrip/TabStripTab.mjs
CHANGED
|
@@ -5,23 +5,15 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import * as t from "react";
|
|
9
8
|
import e from "prop-types";
|
|
10
|
-
const n =
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
render() {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
9
|
+
const n = () => null;
|
|
18
10
|
n.propTypes = {
|
|
19
11
|
disabled: e.bool,
|
|
20
12
|
contentClassName: e.string,
|
|
21
13
|
children: e.oneOfType([e.element, e.node]),
|
|
22
14
|
title: e.oneOfType([e.string, e.element, e.node])
|
|
23
15
|
};
|
|
24
|
-
|
|
16
|
+
n.displayName = "TabStripTab";
|
|
25
17
|
export {
|
|
26
|
-
|
|
18
|
+
n as TabStripTab
|
|
27
19
|
};
|