@progress/kendo-react-layout 7.4.0 → 7.5.0-develop.2
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/breadcrumb/BreadcrumbLink.js +1 -1
- package/breadcrumb/BreadcrumbLink.mjs +22 -22
- package/card/Card.js +1 -1
- package/card/Card.mjs +19 -19
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/drawer/Drawer.mjs +22 -22
- package/drawer/DrawerNavigation.js +1 -1
- package/drawer/DrawerNavigation.mjs +65 -61
- package/index.d.mts +6 -1
- package/index.d.ts +6 -1
- package/package-metadata.mjs +1 -1
- package/package.json +6 -6
- package/panelbar/PanelBar.js +1 -1
- package/panelbar/PanelBar.mjs +6 -7
- package/panelbar/PanelBarItem.js +1 -1
- package/panelbar/PanelBarItem.mjs +68 -65
- package/panelbar/util.js +1 -1
- package/panelbar/util.mjs +74 -71
- package/splitter/Splitter.js +1 -1
- package/splitter/Splitter.mjs +6 -7
- package/stepper/Step.js +1 -1
- package/stepper/Step.mjs +48 -48
- package/stepper/Stepper.js +1 -1
- package/stepper/Stepper.mjs +76 -75
- package/timeline/TimelineCard.js +1 -1
- package/timeline/TimelineCard.mjs +15 -20
- package/timeline/TimelineHorizontal.js +1 -1
- package/timeline/TimelineHorizontal.mjs +98 -93
|
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),t=require("prop-types"),
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),t=require("prop-types"),l=require("@progress/kendo-react-common"),m=require("../package-metadata.js");function k(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const c in e)if(c!=="default"){const n=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(r,c,n.get?n:{enumerable:!0,get:()=>e[c]})}}return r.default=e,Object.freeze(r)}const a=k(b),d=a.forwardRef((e,r)=>{l.validatePackage(m.packageMetadata);const c=a.useRef(null),n=a.useRef(null),s=a.useCallback(()=>{n.current&&n.current.focus()},[n]);a.useImperativeHandle(c,()=>({element:n.current,focus:s,props:e})),a.useImperativeHandle(r,()=>c.current);const u=a.useCallback(i=>{e.id&&l.dispatchEvent(e.onItemSelect,i,i.target,{id:e.id})},[e.onItemSelect]),o=a.useCallback(i=>{e.id&&l.dispatchEvent(e.onKeyDown,i,i.target,{id:e.id})},[e.onKeyDown]);return a.createElement("a",{href:"#","aria-current":e.ariaCurrent?e.ariaCurrent:e.isLast,role:"link",id:e.id,ref:n,style:e.style,dir:l.useDir(n,e.dir),tabIndex:l.getTabIndex(e.tabIndex,e.disabled),className:l.classNames({"k-breadcrumb-root-link":e.isFirst,"k-breadcrumb-link":!e.isFirst,"k-breadcrumb-icontext-link":(e.icon!==void 0||e.iconClass!==void 0)&&e.text,"k-breadcrumb-icon-link":(e.icon!==void 0||e.iconClass!==void 0)&&!e.text,"k-disabled":e.disabled}),onClick:i=>{i.preventDefault(),u(i)},onKeyDown:o},e.iconClass?a.createElement("span",{className:l.classNames("k-icon",e.iconClass)}):e.icon?e.icon:"",e.text&&a.createElement("span",{className:"k-breadcrumb-item-text"},e.text))}),f={id:t.string,className:t.string,tabIndex:t.number,style:t.object,dir:t.string,disabled:t.bool,text:t.string,icon:t.node,iconClass:t.string,onClick:t.func,ariaCurrent:t.bool};d.displayName="KendoReactBreadcrumbLink";d.propTypes=f;exports.BreadcrumbLink=d;
|
|
@@ -8,58 +8,58 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as t from "react";
|
|
10
10
|
import a from "prop-types";
|
|
11
|
-
import { validatePackage as
|
|
11
|
+
import { validatePackage as b, dispatchEvent as l, useDir as k, getTabIndex as f, classNames as d } from "@progress/kendo-react-common";
|
|
12
12
|
import { packageMetadata as C } from "../package-metadata.mjs";
|
|
13
13
|
const r = t.forwardRef((e, s) => {
|
|
14
|
-
|
|
15
|
-
const c = t.useRef(null),
|
|
14
|
+
b(C);
|
|
15
|
+
const c = t.useRef(null), i = t.useRef(null), m = t.useCallback(
|
|
16
16
|
() => {
|
|
17
|
-
|
|
17
|
+
i.current && i.current.focus();
|
|
18
18
|
},
|
|
19
|
-
[
|
|
19
|
+
[i]
|
|
20
20
|
);
|
|
21
21
|
t.useImperativeHandle(c, () => ({
|
|
22
|
-
element:
|
|
22
|
+
element: i.current,
|
|
23
23
|
focus: m,
|
|
24
24
|
props: e
|
|
25
25
|
})), t.useImperativeHandle(s, () => c.current);
|
|
26
26
|
const u = t.useCallback(
|
|
27
|
-
(
|
|
28
|
-
e.id && l(e.onItemSelect,
|
|
27
|
+
(n) => {
|
|
28
|
+
e.id && l(e.onItemSelect, n, n.target, { id: e.id });
|
|
29
29
|
},
|
|
30
30
|
[e.onItemSelect]
|
|
31
|
-
),
|
|
32
|
-
(
|
|
33
|
-
e.id && l(e.onKeyDown,
|
|
31
|
+
), o = t.useCallback(
|
|
32
|
+
(n) => {
|
|
33
|
+
e.id && l(e.onKeyDown, n, n.target, { id: e.id });
|
|
34
34
|
},
|
|
35
35
|
[e.onKeyDown]
|
|
36
36
|
);
|
|
37
37
|
return /* @__PURE__ */ t.createElement(
|
|
38
|
-
"
|
|
38
|
+
"a",
|
|
39
39
|
{
|
|
40
|
+
href: "#",
|
|
40
41
|
"aria-current": e.ariaCurrent ? e.ariaCurrent : e.isLast,
|
|
41
42
|
role: "link",
|
|
42
43
|
id: e.id,
|
|
43
|
-
ref:
|
|
44
|
+
ref: i,
|
|
44
45
|
style: e.style,
|
|
45
|
-
dir: k(
|
|
46
|
+
dir: k(i, e.dir),
|
|
46
47
|
tabIndex: f(e.tabIndex, e.disabled),
|
|
47
48
|
className: d(
|
|
48
49
|
{
|
|
49
50
|
"k-breadcrumb-root-link": e.isFirst,
|
|
50
51
|
"k-breadcrumb-link": !e.isFirst,
|
|
51
|
-
"k-breadcrumb-icontext-link": e.iconClass !== void 0 && e.text,
|
|
52
|
-
"k-breadcrumb-icon-link": e.iconClass !== void 0 && !e.text,
|
|
52
|
+
"k-breadcrumb-icontext-link": (e.icon !== void 0 || e.iconClass !== void 0) && e.text,
|
|
53
|
+
"k-breadcrumb-icon-link": (e.icon !== void 0 || e.iconClass !== void 0) && !e.text,
|
|
53
54
|
"k-disabled": e.disabled
|
|
54
55
|
}
|
|
55
56
|
),
|
|
56
|
-
onClick:
|
|
57
|
-
|
|
57
|
+
onClick: (n) => {
|
|
58
|
+
n.preventDefault(), u(n);
|
|
59
|
+
},
|
|
60
|
+
onKeyDown: o
|
|
58
61
|
},
|
|
59
|
-
e.iconClass ? /* @__PURE__ */ t.createElement("span", { className: d(
|
|
60
|
-
"k-icon",
|
|
61
|
-
e.iconClass
|
|
62
|
-
) }) : e.icon ? e.icon : "",
|
|
62
|
+
e.iconClass ? /* @__PURE__ */ t.createElement("span", { className: d("k-icon", e.iconClass) }) : e.icon ? e.icon : "",
|
|
63
63
|
e.text && /* @__PURE__ */ t.createElement("span", { className: "k-breadcrumb-item-text" }, e.text)
|
|
64
64
|
);
|
|
65
65
|
}), x = {
|
package/card/Card.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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),r=require("prop-types"),
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),r=require("prop-types"),p=require("@progress/kendo-react-common"),o=require("./interfaces/Enums.js"),O=require("../package-metadata.js");function R(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const a=R(g),i=a.forwardRef((e,n)=>{p.validatePackage(O.packageMetadata);const{children:t,dir:c,style:f,className:m,type:s,orientation:l,...y}=e,d=a.useRef(null),u=a.useRef(null);return a.useImperativeHandle(d,()=>({element:u.current,props:e})),a.useImperativeHandle(n,()=>d.current),a.createElement("div",{dir:c,style:f,ref:u,className:p.classNames("k-card",m,{[`k-card-${s}`]:s!==o.cardType.DEFAULT},l===null?void 0:l!==o.cardOrientation.HORIZONTAL?"k-card-vertical":"k-card-horizontal"),...y},t)});i.displayName="KendoReactCard";i.propTypes={children:r.node,className:r.string,dir:r.string,orientation:r.oneOf(["horizontal","vertical"]),style:r.object,type:r.oneOf(["default","primary","info","success","warning","error"])};i.defaultProps={type:o.cardType.DEFAULT,orientation:o.cardOrientation.VERTICAL};exports.Card=i;
|
package/card/Card.mjs
CHANGED
|
@@ -8,30 +8,30 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as e from "react";
|
|
10
10
|
import r from "prop-types";
|
|
11
|
-
import { validatePackage as R, classNames as
|
|
12
|
-
import { cardType as
|
|
13
|
-
import { packageMetadata as
|
|
14
|
-
const a = e.forwardRef((t,
|
|
15
|
-
R(
|
|
16
|
-
const { children:
|
|
17
|
-
return e.useImperativeHandle(
|
|
18
|
-
element:
|
|
11
|
+
import { validatePackage as R, classNames as v } from "@progress/kendo-react-common";
|
|
12
|
+
import { cardType as s, cardOrientation as l } from "./interfaces/Enums.mjs";
|
|
13
|
+
import { packageMetadata as T } from "../package-metadata.mjs";
|
|
14
|
+
const a = e.forwardRef((t, d) => {
|
|
15
|
+
R(T);
|
|
16
|
+
const { children: m, dir: p, style: f, className: u, type: o, orientation: n, ...y } = t, i = e.useRef(null), c = e.useRef(null);
|
|
17
|
+
return e.useImperativeHandle(i, () => ({
|
|
18
|
+
element: c.current,
|
|
19
19
|
props: t
|
|
20
|
-
})), e.useImperativeHandle(
|
|
20
|
+
})), e.useImperativeHandle(d, () => i.current), /* @__PURE__ */ e.createElement(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
|
-
dir:
|
|
24
|
-
style:
|
|
25
|
-
ref:
|
|
26
|
-
className:
|
|
23
|
+
dir: p,
|
|
24
|
+
style: f,
|
|
25
|
+
ref: c,
|
|
26
|
+
className: v(
|
|
27
27
|
"k-card",
|
|
28
|
-
|
|
29
|
-
{ [`k-card-${o}`]: o !==
|
|
30
|
-
|
|
28
|
+
u,
|
|
29
|
+
{ [`k-card-${o}`]: o !== s.DEFAULT },
|
|
30
|
+
n === null ? void 0 : n !== l.HORIZONTAL ? "k-card-vertical" : "k-card-horizontal"
|
|
31
31
|
),
|
|
32
32
|
...y
|
|
33
33
|
},
|
|
34
|
-
|
|
34
|
+
m
|
|
35
35
|
);
|
|
36
36
|
});
|
|
37
37
|
a.displayName = "KendoReactCard";
|
|
@@ -44,8 +44,8 @@ a.propTypes = {
|
|
|
44
44
|
type: r.oneOf(["default", "primary", "info", "success", "warning", "error"])
|
|
45
45
|
};
|
|
46
46
|
a.defaultProps = {
|
|
47
|
-
type:
|
|
48
|
-
orientation:
|
|
47
|
+
type: s.DEFAULT,
|
|
48
|
+
orientation: l.VERTICAL
|
|
49
49
|
};
|
|
50
50
|
export {
|
|
51
51
|
a as Card
|