@progress/kendo-react-layout 9.5.0 → 10.0.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/actionsheet/ActionSheet.js +1 -1
- package/actionsheet/ActionSheet.mjs +8 -10
- package/appbar/AppBar.js +1 -1
- package/appbar/AppBar.mjs +12 -14
- package/bottomnavigation/BottomNavigation.js +1 -1
- package/bottomnavigation/BottomNavigation.mjs +30 -32
- package/bottomnavigation/BottomNavigationItem.js +1 -1
- package/bottomnavigation/BottomNavigationItem.mjs +28 -30
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Breadcrumb.mjs +25 -27
- package/breadcrumb/BreadcrumbDelimiter.js +1 -1
- package/breadcrumb/BreadcrumbDelimiter.mjs +14 -16
- package/breadcrumb/BreadcrumbLink.js +1 -1
- package/breadcrumb/BreadcrumbLink.mjs +25 -27
- package/breadcrumb/BreadcrumbListItem.js +1 -1
- package/breadcrumb/BreadcrumbListItem.mjs +12 -14
- package/breadcrumb/BreadcrumbOrderedList.js +1 -1
- package/breadcrumb/BreadcrumbOrderedList.mjs +25 -27
- package/card/Avatar.js +1 -1
- package/card/Avatar.mjs +16 -17
- package/card/Card.js +1 -1
- package/card/Card.mjs +7 -9
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/drawer/Drawer.mjs +34 -36
- package/drawer/DrawerNavigation.js +1 -1
- package/drawer/DrawerNavigation.mjs +60 -64
- package/expansionpanel/ExpansionPanel.js +1 -1
- package/expansionpanel/ExpansionPanel.mjs +45 -47
- package/gridlayout/GridLayout.js +1 -1
- package/gridlayout/GridLayout.mjs +19 -21
- package/gridlayout/GridLayoutItem.js +1 -1
- package/gridlayout/GridLayoutItem.mjs +6 -8
- package/index.d.mts +1 -4
- package/index.d.ts +1 -4
- package/menu/components/Menu.js +1 -1
- package/menu/components/Menu.mjs +25 -26
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +8 -8
- package/panelbar/PanelBar.js +1 -1
- package/panelbar/PanelBar.mjs +46 -48
- package/splitter/Splitter.js +1 -1
- package/splitter/Splitter.mjs +64 -63
- package/stacklayout/StackLayout.js +1 -1
- package/stacklayout/StackLayout.mjs +4 -6
- package/stepper/Stepper.js +1 -1
- package/stepper/Stepper.mjs +35 -37
- package/tabstrip/TabStrip.js +1 -1
- package/tabstrip/TabStrip.mjs +31 -33
- package/tilelayout/TileLayout.js +1 -1
- package/tilelayout/TileLayout.mjs +47 -48
- package/timeline/Timeline.js +1 -1
- package/timeline/Timeline.mjs +21 -19
|
@@ -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 Q=require("react"),r=require("prop-types"),V=require("@progress/kendo-react-animation"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Q=require("react"),r=require("prop-types"),V=require("@progress/kendo-react-animation"),N=require("@progress/kendo-react-common"),j=require("./ActionSheetItem.js"),K=require("./ActionSheetHeader.js"),W=require("./ActionSheetFooter.js"),X=require("./ActionSheetContent.js");function Y(e){const m=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const d=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(m,s,d.get?d:{enumerable:!0,get:()=>e[s]})}}return m.default=e,Object.freeze(m)}const n=Y(Q),x=n.forwardRef((e,m)=>{var q,_;const{navigatableElements:s=v.navigatableElements,navigatable:d=v.navigatable,position:H=v.position,actions:C,filter:I}=e,F=(t,i,a)=>{a.preventDefault(),a.shiftKey?i.focusPrevious(t):i.focusNext(t)},L=(t,i,a)=>{if(t.ariaDisabled)return;const E=t.className&&t.className.indexOf?t.className.indexOf("k-actionsheet-item")!==-1:!1,y=i.elements.filter(o=>o.className.indexOf("k-actionsheet-item")!==-1);if(E&&e.onItemClick){a.preventDefault();const o=e.items[y.indexOf(t)];e.onItemClick.call(void 0,{syntheticEvent:a,item:o,title:o&&o.title})}if(E&&e.onItemSelect){a.preventDefault();const o=e.items[y.indexOf(t)];e.onItemSelect.call(void 0,{syntheticEvent:a,item:o,title:o&&o.title})}e.animation||u()},M=(t,i,a)=>{e.onOverlayClick&&(a.preventDefault(),e.onOverlayClick.call(void 0,a)),e.onClose&&(a.preventDefault(),e.onClose.call(void 0,a)),e.animation||u()},u=()=>{f({show:!1})},$=t=>{d&&h.current.triggerKeyboardEvent(t)},B=t=>{e.onOverlayClick&&e.onOverlayClick.call(void 0,t),e.onClose&&e.onClose.call(void 0,t),e.animation||u()},D=t=>{e.onItemClick&&e.onItemClick.call(void 0,t),e.onItemSelect&&e.onItemSelect.call(void 0,t),e.animation||u()},z=t=>{const i={};return n.Children.forEach(t,a=>{a&&(i[a.type.displayName]=a)}),i},R=n.useRef(null),S=n.useRef(null);n.useImperativeHandle(R,()=>({props:e})),n.useImperativeHandle(m,()=>R.current);const h=n.useRef(),U=n.useRef(e.animationDuration||300),g=n.useRef({bottom:"0",width:"100%"}),O=n.useRef(),[l,G]=n.useState({show:!1,slide:!1}),f=t=>{G(i=>({...i,...t}))};n.useEffect(()=>{e.expand&&!l.show&&f({show:!0})},[]),n.useEffect(()=>{const t=S.current;if(e.expand&&!l.show&&f({show:!0}),e.expand&&l.show&&!l.slide&&f({slide:!0}),!e.expand&&l.show&&l.slide&&f({slide:!1}),O!==l&&l.slide&&t&&!e.className&&(t.style.setProperty("--kendo-actionsheet-height","auto"),t.style.setProperty("--kendo-actionsheet-max-height","none")),t&&d){const a=[".k-actionsheet-item",...[".k-actionsheet-footer",".k-actionsheet-content",".k-actionsheet-titlebar"].map(E=>N.FOCUSABLE_ELEMENTS.concat(s).map(y=>`${E} ${y}`)).flat()];h.current=new N.Navigation({tabIndex:e.tabIndex||0,root:S,rovingTabIndex:!1,selectors:a,keyboardEvents:{keydown:{Tab:F,Enter:L,Escape:M}}}),h.current.focusElement(h.current.first,null)}O.current={...l}});const w="k-actionsheet-title",A=w,c=(q=e.items)==null?void 0:q.filter(t=>!t.group||t.group==="top"),b=(_=e.items)==null?void 0:_.filter(t=>t.group==="bottom"),J=c&&c.length>0&&b&&b.length>0,k=z(e.children),T=e.animationDuration||U.current,P=l.slide&&n.createElement("div",{className:N.classNames(`k-actionsheet k-actionsheet-${H}`,e.className),role:"dialog","aria-modal":"true","aria-hidden":!1,"aria-labelledby":A,ref:S,onKeyDown:$},k[K.headerDisplayName]&&!e.title&&!e.subTitle&&k[K.headerDisplayName],(e.title||e.subTitle)&&n.createElement("div",{className:"k-actionsheet-titlebar"},n.createElement("div",{className:"k-actionsheet-titlebar-group k-hbox"},n.createElement("div",{className:w,id:A},n.createElement("div",{className:"k-text-center"},e.title),n.createElement("div",{className:"k-actionsheet-subtitle k-text-center"},e.subTitle)),C&&n.createElement("div",{className:"k-actionsheet-actions"},C)),I&&n.createElement("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter"},I)),k[X.contentDisplayName]||n.createElement("div",{className:"k-actionsheet-content"},n.createElement("div",{className:"k-list-ul",role:"group"},c&&c.map((t,i)=>n.createElement(j.ActionSheetItem,{...t,id:i,key:i,item:t,tabIndex:e.tabIndex||0,onClick:D})),J&&n.createElement("hr",{className:"k-hr"}),b&&b.map((t,i)=>n.createElement(j.ActionSheetItem,{...t,id:i+((c==null?void 0:c.length)||0),key:i,item:t,tabIndex:e.tabIndex||0,onClick:D})))),k[W.footerDisplayName]);return n.createElement(n.Fragment,null,e.expand||l.show?n.createElement("div",{className:"k-actionsheet-container"},n.createElement("div",{className:"k-overlay",onClick:B}),e.animation?n.createElement(V.Animation,{transitionName:l.slide?"slide-up":"slide-down",onExited:u,transitionEnterDuration:T,transitionExitDuration:T,animationEnteringStyle:e.animationStyles||g.current,animationEnteredStyle:e.animationStyles||g.current,animationExitingStyle:e.animationStyles||g.current,exit:!0,enter:!0,appear:!1},P):P):null)}),v={navigatable:!0,navigatableElements:[],position:"bottom"};x.propTypes={items:r.array,subTitle:r.string,title:r.string,navigatable:r.bool,navigatableElements:r.array,position:r.oneOf(["top","bottom","left","right","fullscreen"])};x.displayName="KendoReactActionSheet";exports.ActionSheet=x;exports.actionSheetDefaultProps=v;
|
|
@@ -8,15 +8,13 @@
|
|
|
8
8
|
import * as n from "react";
|
|
9
9
|
import s from "prop-types";
|
|
10
10
|
import { Animation as J } from "@progress/kendo-react-animation";
|
|
11
|
-
import {
|
|
12
|
-
import { packageMetadata as Y } from "../package-metadata.mjs";
|
|
11
|
+
import { FOCUSABLE_ELEMENTS as Q, Navigation as V, classNames as W } from "@progress/kendo-react-common";
|
|
13
12
|
import { ActionSheetItem as P } from "./ActionSheetItem.mjs";
|
|
14
13
|
import { headerDisplayName as A } from "./ActionSheetHeader.mjs";
|
|
15
|
-
import { footerDisplayName as
|
|
16
|
-
import { contentDisplayName as
|
|
14
|
+
import { footerDisplayName as X } from "./ActionSheetFooter.mjs";
|
|
15
|
+
import { contentDisplayName as Y } from "./ActionSheetContent.mjs";
|
|
17
16
|
const K = n.forwardRef((e, _) => {
|
|
18
17
|
var O, T;
|
|
19
|
-
Q(Y);
|
|
20
18
|
const {
|
|
21
19
|
navigatableElements: H = b.navigatableElements,
|
|
22
20
|
navigatable: y = b.navigatable,
|
|
@@ -80,10 +78,10 @@ const K = n.forwardRef((e, _) => {
|
|
|
80
78
|
".k-actionsheet-footer",
|
|
81
79
|
".k-actionsheet-content",
|
|
82
80
|
".k-actionsheet-titlebar"
|
|
83
|
-
].map((h) =>
|
|
81
|
+
].map((h) => Q.concat(H).map(
|
|
84
82
|
(E) => `${h} ${E}`
|
|
85
83
|
)).flat()];
|
|
86
|
-
f.current = new
|
|
84
|
+
f.current = new V({
|
|
87
85
|
tabIndex: e.tabIndex || 0,
|
|
88
86
|
root: k,
|
|
89
87
|
rovingTabIndex: !1,
|
|
@@ -106,7 +104,7 @@ const K = n.forwardRef((e, _) => {
|
|
|
106
104
|
), G = c && c.length > 0 && d && d.length > 0, u = j(e.children), R = e.animationDuration || q.current, w = l.slide && /* @__PURE__ */ n.createElement(
|
|
107
105
|
"div",
|
|
108
106
|
{
|
|
109
|
-
className:
|
|
107
|
+
className: W(`k-actionsheet k-actionsheet-${L}`, e.className),
|
|
110
108
|
role: "dialog",
|
|
111
109
|
"aria-modal": "true",
|
|
112
110
|
"aria-hidden": !1,
|
|
@@ -116,7 +114,7 @@ const K = n.forwardRef((e, _) => {
|
|
|
116
114
|
},
|
|
117
115
|
u[A] && !e.title && !e.subTitle && u[A],
|
|
118
116
|
(e.title || e.subTitle) && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar" }, /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ n.createElement("div", { className: I, id: D }, /* @__PURE__ */ n.createElement("div", { className: "k-text-center" }, e.title), /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-subtitle k-text-center" }, e.subTitle)), N && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-actions" }, N)), g && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, g)),
|
|
119
|
-
u[
|
|
117
|
+
u[Y] || /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-content" }, /* @__PURE__ */ n.createElement("div", { className: "k-list-ul", role: "group" }, c && c.map((t, i) => /* @__PURE__ */ n.createElement(
|
|
120
118
|
P,
|
|
121
119
|
{
|
|
122
120
|
...t,
|
|
@@ -137,7 +135,7 @@ const K = n.forwardRef((e, _) => {
|
|
|
137
135
|
onClick: S
|
|
138
136
|
}
|
|
139
137
|
)))),
|
|
140
|
-
u[
|
|
138
|
+
u[X]
|
|
141
139
|
);
|
|
142
140
|
return /* @__PURE__ */ n.createElement(n.Fragment, null, e.expand || l.show ? /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-container" }, /* @__PURE__ */ n.createElement("div", { className: "k-overlay", onClick: U }), e.animation ? /* @__PURE__ */ n.createElement(
|
|
143
141
|
J,
|
package/appbar/AppBar.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 M=require("react"),o=require("prop-types"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react"),o=require("prop-types"),p=require("@progress/kendo-react-common");function C(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,a.get?a:{enumerable:!0,get:()=>e[s]})}}return n.default=e,Object.freeze(n)}const t=C(M),d=t.forwardRef((e,n)=>{const{children:s,className:a,style:f,id:b}=e,c=t.useRef(null),m=t.useCallback(()=>{c.current&&p.focusFirstFocusableChild(c.current)},[]),k=t.useCallback(()=>({element:c.current,focus:m}),[m]);t.useImperativeHandle(n,k);const y=p.useId(),r=t.useMemo(()=>e.themeColor||u.themeColor,[e.themeColor]),l=t.useMemo(()=>e.position||u.position,[e.position]),i=t.useMemo(()=>e.positionMode||u.positionMode,[e.positionMode]),g=t.useMemo(()=>p.classNames("k-appbar",{"k-appbar-top":l==="top","k-appbar-bottom":l==="bottom","k-appbar-static":i==="static","k-appbar-sticky":i==="sticky","k-appbar-fixed":i==="fixed",[`k-appbar-${r}`]:!!r},a),[l,i,r,a]);return t.createElement("div",{className:g,style:f,id:b||y},s)});d.propTypes={children:o.any,className:o.string,style:o.object,id:o.string,themeColor:o.string,position:o.oneOf(["top","bottom"]),positionMode:o.oneOf(["static","sticky","fixed"])};const u={themeColor:"light",position:"top",positionMode:"static"};d.displayName="KendoAppBar";exports.AppBar=d;
|
package/appbar/AppBar.mjs
CHANGED
|
@@ -7,36 +7,34 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as e from "react";
|
|
9
9
|
import t from "prop-types";
|
|
10
|
-
import {
|
|
11
|
-
import { packageMetadata as N } from "../package-metadata.mjs";
|
|
10
|
+
import { focusFirstFocusableChild as C, useId as M, classNames as y } from "@progress/kendo-react-common";
|
|
12
11
|
const l = e.forwardRef((o, m) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
s.current && C(s.current);
|
|
12
|
+
const { children: d, className: c, style: u, id: f } = o, i = e.useRef(null), p = e.useCallback(() => {
|
|
13
|
+
i.current && C(i.current);
|
|
16
14
|
}, []), b = e.useCallback(
|
|
17
15
|
() => ({
|
|
18
|
-
element:
|
|
16
|
+
element: i.current,
|
|
19
17
|
focus: p
|
|
20
18
|
}),
|
|
21
19
|
[p]
|
|
22
20
|
);
|
|
23
21
|
e.useImperativeHandle(m, b);
|
|
24
|
-
const k =
|
|
25
|
-
() =>
|
|
22
|
+
const k = M(), a = e.useMemo(() => o.themeColor || r.themeColor, [o.themeColor]), n = e.useMemo(() => o.position || r.position, [o.position]), s = e.useMemo(() => o.positionMode || r.positionMode, [o.positionMode]), h = e.useMemo(
|
|
23
|
+
() => y(
|
|
26
24
|
"k-appbar",
|
|
27
25
|
{
|
|
28
26
|
"k-appbar-top": n === "top",
|
|
29
27
|
"k-appbar-bottom": n === "bottom",
|
|
30
|
-
"k-appbar-static":
|
|
31
|
-
"k-appbar-sticky":
|
|
32
|
-
"k-appbar-fixed":
|
|
33
|
-
[`k-appbar-${
|
|
28
|
+
"k-appbar-static": s === "static",
|
|
29
|
+
"k-appbar-sticky": s === "sticky",
|
|
30
|
+
"k-appbar-fixed": s === "fixed",
|
|
31
|
+
[`k-appbar-${a}`]: !!a
|
|
34
32
|
},
|
|
35
33
|
c
|
|
36
34
|
),
|
|
37
|
-
[n,
|
|
35
|
+
[n, s, a, c]
|
|
38
36
|
);
|
|
39
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
37
|
+
return /* @__PURE__ */ e.createElement("div", { className: h, style: u, id: f || k }, d);
|
|
40
38
|
});
|
|
41
39
|
l.propTypes = {
|
|
42
40
|
children: t.any,
|
|
@@ -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 _=require("react"),l=require("prop-types"),r=require("@progress/kendo-react-common"),w=require("./models/utils.js"),j=require("./BottomNavigationItem.js");function B(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(s,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return s.default=e,Object.freeze(s)}const o=B(_),g=o.forwardRef((e,s)=>{const a=o.useRef(null),c=o.useCallback(()=>{a.current&&r.focusFirstFocusableChild(a.current)},[]),f=o.useCallback(()=>({element:a.current,focus:c}),[c]);o.useImperativeHandle(s,f);const{positionMode:C=u.positionMode,itemFlow:M=u.itemFlow,border:k=u.border,className:S,items:i,item:I,itemRender:E,disabled:b,style:p,id:h,onSelect:v,onKeyDown:O}=e,N=r.useId(),D=r.useDir(a,e.dir),d=o.useMemo(()=>e.fillMode===null||e.fill===null?null:e.fill||e.fillMode||u.fillMode,[e.fillMode,e.fill]),y=o.useMemo(()=>e.themeColor||u.themeColor,[e.themeColor]),R=o.useMemo(()=>r.classNames("k-bottom-nav",w.POSITION_MODE_CLASSES[C],w.ITEM_FLOW_CLASSES[M],{[`k-bottom-nav-${d}`]:d,[`k-bottom-nav-${d}-${y}`]:!!(d&&y),"k-bottom-nav-border":k,"k-disabled":b},S),[C,y,d,M,k,b,S]),m=o.useCallback((t,n)=>{i&&!i[n].disabled&&v&&r.dispatchEvent(v,t,f(),{itemTarget:i[n],itemIndex:n})},[i,v]),F=o.useCallback((t,n)=>{m(t,n)},[m]),T=o.useCallback((t,n)=>{switch(t.keyCode){case r.Keys.enter:case r.Keys.space:m(t,n),t.preventDefault();break}r.dispatchEvent(O,t,f(),void 0)},[m,O]);return o.createElement("nav",{ref:a,className:R,style:p,id:h||N,dir:D},i&&i.map((t,n)=>o.createElement(j.BottomNavigationItem,{...t,key:n,index:n,id:`${h||N}-${n}`,disabled:b||t.disabled,selected:t.selected,dataItem:t,item:I,render:E,onSelect:F,onKeyDown:T})))}),u={themeColor:"primary",fillMode:"flat",itemFlow:"vertical",positionMode:"fixed",border:!0};g.propTypes={className:l.string,style:l.object,id:l.string,dir:l.string,themeColor:l.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),fill:l.oneOf(["solid","flat"]),fillMode:l.oneOf(["solid","flat"]),itemFlow:l.oneOf(["vertical","horizontal"]),border:l.bool,disabled:l.bool,selected:l.number,onSelect:l.func};g.displayName="KendoReactBottomNavigation";exports.BottomNavigation=g;
|
|
@@ -7,14 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as o from "react";
|
|
9
9
|
import t from "prop-types";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
const I = o.forwardRef((a, p) => {
|
|
15
|
-
T(L);
|
|
10
|
+
import { focusFirstFocusableChild as T, useId as $, useDir as B, classNames as _, dispatchEvent as g, Keys as w } from "@progress/kendo-react-common";
|
|
11
|
+
import { POSITION_MODE_CLASSES as L, ITEM_FLOW_CLASSES as P } from "./models/utils.mjs";
|
|
12
|
+
import { BottomNavigationItem as A } from "./BottomNavigationItem.mjs";
|
|
13
|
+
const I = o.forwardRef((r, E) => {
|
|
16
14
|
const i = o.useRef(null), b = o.useCallback(() => {
|
|
17
|
-
i.current &&
|
|
15
|
+
i.current && T(i.current);
|
|
18
16
|
}, []), c = o.useCallback(
|
|
19
17
|
() => ({
|
|
20
18
|
element: i.current,
|
|
@@ -22,42 +20,42 @@ const I = o.forwardRef((a, p) => {
|
|
|
22
20
|
}),
|
|
23
21
|
[b]
|
|
24
22
|
);
|
|
25
|
-
o.useImperativeHandle(
|
|
23
|
+
o.useImperativeHandle(E, c);
|
|
26
24
|
const {
|
|
27
25
|
positionMode: v = s.positionMode,
|
|
28
|
-
itemFlow:
|
|
29
|
-
border:
|
|
26
|
+
itemFlow: C = s.itemFlow,
|
|
27
|
+
border: y = s.border,
|
|
30
28
|
className: M,
|
|
31
|
-
items:
|
|
32
|
-
item:
|
|
33
|
-
itemRender:
|
|
29
|
+
items: a,
|
|
30
|
+
item: N,
|
|
31
|
+
itemRender: O,
|
|
34
32
|
disabled: m,
|
|
35
|
-
style:
|
|
36
|
-
id:
|
|
33
|
+
style: p,
|
|
34
|
+
id: h,
|
|
37
35
|
onSelect: f,
|
|
38
|
-
onKeyDown:
|
|
39
|
-
} =
|
|
36
|
+
onKeyDown: k
|
|
37
|
+
} = r, S = $(), F = B(i, r.dir), n = o.useMemo(() => r.fillMode === null || r.fill === null ? null : r.fill || r.fillMode || s.fillMode, [r.fillMode, r.fill]), u = o.useMemo(() => r.themeColor || s.themeColor, [r.themeColor]), D = o.useMemo(
|
|
40
38
|
() => _(
|
|
41
39
|
"k-bottom-nav",
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
L[v],
|
|
41
|
+
P[C],
|
|
44
42
|
{
|
|
45
43
|
[`k-bottom-nav-${n}`]: n,
|
|
46
44
|
[`k-bottom-nav-${n}-${u}`]: !!(n && u),
|
|
47
|
-
"k-bottom-nav-border":
|
|
45
|
+
"k-bottom-nav-border": y,
|
|
48
46
|
"k-disabled": m
|
|
49
47
|
},
|
|
50
48
|
M
|
|
51
49
|
),
|
|
52
|
-
[v, u, n,
|
|
50
|
+
[v, u, n, C, y, m, M]
|
|
53
51
|
), d = o.useCallback(
|
|
54
52
|
(e, l) => {
|
|
55
|
-
|
|
56
|
-
itemTarget:
|
|
53
|
+
a && !a[l].disabled && f && g(f, e, c(), {
|
|
54
|
+
itemTarget: a[l],
|
|
57
55
|
itemIndex: l
|
|
58
56
|
});
|
|
59
57
|
},
|
|
60
|
-
[
|
|
58
|
+
[a, f]
|
|
61
59
|
), R = o.useCallback(
|
|
62
60
|
(e, l) => {
|
|
63
61
|
d(e, l);
|
|
@@ -71,27 +69,27 @@ const I = o.forwardRef((a, p) => {
|
|
|
71
69
|
d(e, l), e.preventDefault();
|
|
72
70
|
break;
|
|
73
71
|
}
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
g(
|
|
73
|
+
k,
|
|
76
74
|
e,
|
|
77
75
|
c(),
|
|
78
76
|
void 0
|
|
79
77
|
);
|
|
80
78
|
},
|
|
81
|
-
[d,
|
|
79
|
+
[d, k]
|
|
82
80
|
);
|
|
83
|
-
return /* @__PURE__ */ o.createElement("nav", { ref: i, className: D, style:
|
|
84
|
-
|
|
81
|
+
return /* @__PURE__ */ o.createElement("nav", { ref: i, className: D, style: p, id: h || S, dir: F }, a && a.map((e, l) => /* @__PURE__ */ o.createElement(
|
|
82
|
+
A,
|
|
85
83
|
{
|
|
86
84
|
...e,
|
|
87
85
|
key: l,
|
|
88
86
|
index: l,
|
|
89
|
-
id: `${
|
|
87
|
+
id: `${h || S}-${l}`,
|
|
90
88
|
disabled: m || e.disabled,
|
|
91
89
|
selected: e.selected,
|
|
92
90
|
dataItem: e,
|
|
93
|
-
item:
|
|
94
|
-
render:
|
|
91
|
+
item: N,
|
|
92
|
+
render: O,
|
|
95
93
|
onSelect: R,
|
|
96
94
|
onKeyDown: K
|
|
97
95
|
}
|
|
@@ -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 w=require("react"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),n=require("prop-types"),u=require("@progress/kendo-react-common");function D(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const l=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(c,o,l.get?l:{enumerable:!0,get:()=>t[o]})}}return c.default=t,Object.freeze(c)}const e=D(w),b=e.forwardRef((t,c)=>{const o=e.useRef(null);e.useImperativeHandle(c,()=>({element:o.current}));const{className:l,style:k,selected:r,disabled:a,item:N,render:x,dataItem:C,icon:g,svgIcon:p,text:f,id:R,onSelect:i,onKeyDown:m,index:s,tabIndex:j=E.tabIndex}=t,O=e.useMemo(()=>u.classNames("k-bottom-nav-item",{"k-selected":r,"k-disabled":a},l),[r,a,l]),P=e.useCallback(d=>{i&&s!==void 0&&!a&&i(d,s)},[i,s,a]),S=e.useCallback(d=>{m&&s!==void 0&&!a&&m(d,s)},[m,s,a]),v=x,I=N,y=e.createElement("span",{ref:o,className:O,style:k,role:"link",id:R,tabIndex:j,onClick:P,onKeyDown:S,"aria-current":r,"aria-disabled":a},I?e.createElement(I,{itemIndex:s,item:C}):e.createElement(e.Fragment,null,(g||p)&&e.createElement(u.IconWrap,{className:"k-bottom-nav-item-icon",name:g,icon:p,size:"xlarge"}),f&&e.createElement("span",{className:"k-bottom-nav-item-text",style:{userSelect:"none"}},f)));return v!==void 0?v.call(void 0,y,t):y}),E={tabIndex:0};b.propTypes={className:n.string,style:n.object,id:n.string,disabled:n.bool,selected:n.bool,icon:n.string,svgIcon:u.svgIconPropType,text:n.string,tabIndex:n.number};b.displayName="KendoReactBottomNavigationItem";exports.BottomNavigationItem=b;
|
|
@@ -7,24 +7,22 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as e from "react";
|
|
9
9
|
import t from "prop-types";
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
(m, f) => {
|
|
14
|
-
P(B);
|
|
10
|
+
import { classNames as D, svgIconPropType as P, IconWrap as T } from "@progress/kendo-react-common";
|
|
11
|
+
const f = e.forwardRef(
|
|
12
|
+
(m, g) => {
|
|
15
13
|
const i = e.useRef(null);
|
|
16
14
|
e.useImperativeHandle(
|
|
17
|
-
|
|
15
|
+
g,
|
|
18
16
|
() => ({
|
|
19
17
|
element: i.current
|
|
20
18
|
})
|
|
21
19
|
);
|
|
22
20
|
const {
|
|
23
21
|
className: r,
|
|
24
|
-
style:
|
|
25
|
-
selected:
|
|
26
|
-
disabled:
|
|
27
|
-
item:
|
|
22
|
+
style: x,
|
|
23
|
+
selected: a,
|
|
24
|
+
disabled: n,
|
|
25
|
+
item: k,
|
|
28
26
|
render: y,
|
|
29
27
|
dataItem: N,
|
|
30
28
|
icon: d,
|
|
@@ -33,61 +31,61 @@ const u = e.forwardRef(
|
|
|
33
31
|
id: C,
|
|
34
32
|
onSelect: s,
|
|
35
33
|
onKeyDown: l,
|
|
36
|
-
index:
|
|
37
|
-
tabIndex: E =
|
|
34
|
+
index: o,
|
|
35
|
+
tabIndex: E = h.tabIndex
|
|
38
36
|
} = m, R = e.useMemo(
|
|
39
37
|
() => D(
|
|
40
38
|
"k-bottom-nav-item",
|
|
41
39
|
{
|
|
42
|
-
"k-selected":
|
|
43
|
-
"k-disabled":
|
|
40
|
+
"k-selected": a,
|
|
41
|
+
"k-disabled": n
|
|
44
42
|
},
|
|
45
43
|
r
|
|
46
44
|
),
|
|
47
|
-
[
|
|
45
|
+
[a, n, r]
|
|
48
46
|
), w = e.useCallback(
|
|
49
47
|
(c) => {
|
|
50
|
-
s &&
|
|
48
|
+
s && o !== void 0 && !n && s(c, o);
|
|
51
49
|
},
|
|
52
|
-
[s,
|
|
50
|
+
[s, o, n]
|
|
53
51
|
), K = e.useCallback(
|
|
54
52
|
(c) => {
|
|
55
|
-
l &&
|
|
53
|
+
l && o !== void 0 && !n && l(c, o);
|
|
56
54
|
},
|
|
57
|
-
[l,
|
|
58
|
-
),
|
|
55
|
+
[l, o, n]
|
|
56
|
+
), I = y, v = k, u = /* @__PURE__ */ e.createElement(
|
|
59
57
|
"span",
|
|
60
58
|
{
|
|
61
59
|
ref: i,
|
|
62
60
|
className: R,
|
|
63
|
-
style:
|
|
61
|
+
style: x,
|
|
64
62
|
role: "link",
|
|
65
63
|
id: C,
|
|
66
64
|
tabIndex: E,
|
|
67
65
|
onClick: w,
|
|
68
66
|
onKeyDown: K,
|
|
69
|
-
"aria-current":
|
|
70
|
-
"aria-disabled":
|
|
67
|
+
"aria-current": a,
|
|
68
|
+
"aria-disabled": n
|
|
71
69
|
},
|
|
72
|
-
|
|
70
|
+
v ? /* @__PURE__ */ e.createElement(v, { itemIndex: o, item: N }) : /* @__PURE__ */ e.createElement(e.Fragment, null, (d || b) && /* @__PURE__ */ e.createElement(T, { className: "k-bottom-nav-item-icon", name: d, icon: b, size: "xlarge" }), p && /* @__PURE__ */ e.createElement("span", { className: "k-bottom-nav-item-text", style: { userSelect: "none" } }, p))
|
|
73
71
|
);
|
|
74
|
-
return
|
|
72
|
+
return I !== void 0 ? I.call(void 0, u, m) : u;
|
|
75
73
|
}
|
|
76
|
-
),
|
|
74
|
+
), h = {
|
|
77
75
|
tabIndex: 0
|
|
78
76
|
};
|
|
79
|
-
|
|
77
|
+
f.propTypes = {
|
|
80
78
|
className: t.string,
|
|
81
79
|
style: t.object,
|
|
82
80
|
id: t.string,
|
|
83
81
|
disabled: t.bool,
|
|
84
82
|
selected: t.bool,
|
|
85
83
|
icon: t.string,
|
|
86
|
-
svgIcon:
|
|
84
|
+
svgIcon: P,
|
|
87
85
|
text: t.string,
|
|
88
86
|
tabIndex: t.number
|
|
89
87
|
};
|
|
90
|
-
|
|
88
|
+
f.displayName = "KendoReactBottomNavigationItem";
|
|
91
89
|
export {
|
|
92
|
-
|
|
90
|
+
f as BottomNavigationItem
|
|
93
91
|
};
|
package/breadcrumb/Breadcrumb.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 B=require("react"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react"),i=require("prop-types"),o=require("@progress/kendo-react-common"),h=require("./BreadcrumbListItem.js"),T=require("./BreadcrumbDelimiter.js"),M=require("./BreadcrumbLink.js"),R=require("./BreadcrumbOrderedList.js");function q(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(l,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return l.default=e,Object.freeze(l)}const r=q(B),F=r.forwardRef((e,l)=>{const n=r.useRef(null),a=r.useRef(null),y=r.useMemo(()=>e.breadcrumbOrderedList||R.BreadcrumbOrderedList,[e.breadcrumbOrderedList]),L=r.useMemo(()=>e.breadcrumbListItem||h.BreadcrumbListItem,[e.breadcrumbListItem]),O=r.useMemo(()=>e.breadcrumbDelimiter||T.BreadcrumbDelimiter,[e.breadcrumbDelimiter]),I=r.useMemo(()=>e.breadcrumbLink||M.BreadcrumbLink,[e.breadcrumbLink]),D=r.useCallback(()=>{a.current&&a.current.focus()},[a]),E=r.useMemo(()=>e.disabled||!1,[e.disabled]);r.useImperativeHandle(n,()=>({element:a.current,focus:D,props:e})),r.useImperativeHandle(l,()=>n.current);const g=o.useDir(a,e.dir),k=t=>{n.current&&o.dispatchEvent(e.onItemSelect,t,t.target,{id:t.target.id})},C=t=>{n.current&&o.dispatchEvent(e.onKeyDown,t,t.target,{id:t.target.id})},S=e.valueField||b.valueField,v=e.iconField||b.iconField,m=e.iconClassField||b.iconClassField,u=e.textField||b.textField,f=e.size||"medium";return r.createElement("nav",{"aria-label":e.ariaLabel,id:e.id,style:e.style,ref:a,dir:g,className:o.classNames("k-breadcrumb k-breadcrumb-wrap",{"k-rtl":g==="rtl","k-disabled":E,"k-breadcrumb-md":!e.size,[`k-breadcrumb-${o.kendoThemeMaps.sizeMap[f]||f}`]:f},e.className)},r.createElement(y,{rootItem:!0},r.createElement(r.Fragment,null,e.data.map((t,c,s)=>{const d=t[S];if(c===0)return r.createElement(L,{key:d,isFirstItem:!0,isLastItem:s.length-1===c},r.createElement(I,{isLast:s.length-1===c,isFirst:!0,id:String(d),icon:t[v]||void 0,iconClass:t[m]?String(t[m]):void 0,text:t[u]?String(t[u]):void 0,disabled:t.disabled||!1,onItemSelect:k,onKeyDown:C,...e}))}))),r.createElement(y,{rootItem:!1},r.createElement(r.Fragment,null,e.data.map((t,c,s)=>{const d=t[S];if(c!==0)return r.createElement(L,{key:d,isFirstItem:!1,isLastItem:s.length-1===c},r.createElement(O,{dir:g}),r.createElement(I,{isLast:s.length-1===c,isFirst:!1,id:String(d),icon:t[v]||void 0,iconClass:t[m]?String(t[m]):void 0,text:t[u]?String(t[u]):void 0,disabled:t.disabled||!1,onItemSelect:k,onKeyDown:C,...e}))}))))}),w={id:i.string,style:i.object,className:i.string,breadcrumbOrderedList:i.elementType,breadcrumbListItem:i.elementType,breadcrumbDelimiter:i.elementType,breadcrumbLink:i.elementType,data:i.arrayOf(i.shape({id:i.string,text:i.string,icon:i.any,iconClass:i.string})),dir:i.oneOf(["ltr","rtl"]),disabled:i.bool,valueField:i.string,textField:i.string,iconField:i.string,iconClassField:i.string,onItemSelect:i.func,ariaLabel:i.string},b={valueField:"id",textField:"text",iconField:"icon",iconClassField:"iconClass"};F.displayName="KendoReactBreadcrumb";F.propTypes=w;exports.Breadcrumb=F;
|
|
@@ -7,35 +7,33 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as r from "react";
|
|
9
9
|
import i from "prop-types";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { BreadcrumbOrderedList as N } from "./BreadcrumbOrderedList.mjs";
|
|
10
|
+
import { useDir as T, classNames as M, kendoThemeMaps as O, dispatchEvent as C } from "@progress/kendo-react-common";
|
|
11
|
+
import { BreadcrumbListItem as w } from "./BreadcrumbListItem.mjs";
|
|
12
|
+
import { BreadcrumbDelimiter as x } from "./BreadcrumbDelimiter.mjs";
|
|
13
|
+
import { BreadcrumbLink as B } from "./BreadcrumbLink.mjs";
|
|
14
|
+
import { BreadcrumbOrderedList as R } from "./BreadcrumbOrderedList.mjs";
|
|
16
15
|
const v = r.forwardRef((e, E) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
() => e.breadcrumbOrderedList || N,
|
|
16
|
+
const d = r.useRef(null), n = r.useRef(null), f = r.useMemo(
|
|
17
|
+
() => e.breadcrumbOrderedList || R,
|
|
20
18
|
[e.breadcrumbOrderedList]
|
|
21
19
|
), g = r.useMemo(
|
|
22
|
-
() => e.breadcrumbListItem ||
|
|
20
|
+
() => e.breadcrumbListItem || w,
|
|
23
21
|
[e.breadcrumbListItem]
|
|
24
22
|
), S = r.useMemo(
|
|
25
|
-
() => e.breadcrumbDelimiter ||
|
|
23
|
+
() => e.breadcrumbDelimiter || x,
|
|
26
24
|
[e.breadcrumbDelimiter]
|
|
27
|
-
), F = r.useMemo(() => e.breadcrumbLink ||
|
|
25
|
+
), F = r.useMemo(() => e.breadcrumbLink || B, [e.breadcrumbLink]), D = r.useCallback(() => {
|
|
28
26
|
n.current && n.current.focus();
|
|
29
27
|
}, [n]), h = r.useMemo(() => e.disabled || !1, [e.disabled]);
|
|
30
|
-
r.useImperativeHandle(
|
|
28
|
+
r.useImperativeHandle(d, () => ({
|
|
31
29
|
element: n.current,
|
|
32
30
|
focus: D,
|
|
33
31
|
props: e
|
|
34
|
-
})), r.useImperativeHandle(E, () =>
|
|
35
|
-
const u =
|
|
36
|
-
|
|
32
|
+
})), r.useImperativeHandle(E, () => d.current);
|
|
33
|
+
const u = T(n, e.dir), L = (t) => {
|
|
34
|
+
d.current && C(e.onItemSelect, t, t.target, { id: t.target.id });
|
|
37
35
|
}, y = (t) => {
|
|
38
|
-
|
|
36
|
+
d.current && C(e.onKeyDown, t, t.target, { id: t.target.id });
|
|
39
37
|
}, I = e.valueField || o.valueField, k = e.iconField || o.iconField, c = e.iconClassField || o.iconClassField, m = e.textField || o.textField, b = e.size || "medium";
|
|
40
38
|
return /* @__PURE__ */ r.createElement(
|
|
41
39
|
"nav",
|
|
@@ -45,26 +43,26 @@ const v = r.forwardRef((e, E) => {
|
|
|
45
43
|
style: e.style,
|
|
46
44
|
ref: n,
|
|
47
45
|
dir: u,
|
|
48
|
-
className:
|
|
46
|
+
className: M(
|
|
49
47
|
"k-breadcrumb k-breadcrumb-wrap",
|
|
50
48
|
{
|
|
51
49
|
"k-rtl": u === "rtl",
|
|
52
50
|
"k-disabled": h,
|
|
53
51
|
"k-breadcrumb-md": !e.size,
|
|
54
|
-
[`k-breadcrumb-${
|
|
52
|
+
[`k-breadcrumb-${O.sizeMap[b] || b}`]: b
|
|
55
53
|
},
|
|
56
54
|
e.className
|
|
57
55
|
)
|
|
58
56
|
},
|
|
59
57
|
/* @__PURE__ */ r.createElement(f, { rootItem: !0 }, /* @__PURE__ */ r.createElement(r.Fragment, null, e.data.map((t, a, l) => {
|
|
60
|
-
const
|
|
58
|
+
const s = t[I];
|
|
61
59
|
if (a === 0)
|
|
62
|
-
return /* @__PURE__ */ r.createElement(g, { key:
|
|
60
|
+
return /* @__PURE__ */ r.createElement(g, { key: s, isFirstItem: !0, isLastItem: l.length - 1 === a }, /* @__PURE__ */ r.createElement(
|
|
63
61
|
F,
|
|
64
62
|
{
|
|
65
63
|
isLast: l.length - 1 === a,
|
|
66
64
|
isFirst: !0,
|
|
67
|
-
id: String(
|
|
65
|
+
id: String(s),
|
|
68
66
|
icon: t[k] || void 0,
|
|
69
67
|
iconClass: t[c] ? String(t[c]) : void 0,
|
|
70
68
|
text: t[m] ? String(t[m]) : void 0,
|
|
@@ -76,14 +74,14 @@ const v = r.forwardRef((e, E) => {
|
|
|
76
74
|
));
|
|
77
75
|
}))),
|
|
78
76
|
/* @__PURE__ */ r.createElement(f, { rootItem: !1 }, /* @__PURE__ */ r.createElement(r.Fragment, null, e.data.map((t, a, l) => {
|
|
79
|
-
const
|
|
77
|
+
const s = t[I];
|
|
80
78
|
if (a !== 0)
|
|
81
|
-
return /* @__PURE__ */ r.createElement(g, { key:
|
|
79
|
+
return /* @__PURE__ */ r.createElement(g, { key: s, isFirstItem: !1, isLastItem: l.length - 1 === a }, /* @__PURE__ */ r.createElement(S, { dir: u }), /* @__PURE__ */ r.createElement(
|
|
82
80
|
F,
|
|
83
81
|
{
|
|
84
82
|
isLast: l.length - 1 === a,
|
|
85
83
|
isFirst: !1,
|
|
86
|
-
id: String(
|
|
84
|
+
id: String(s),
|
|
87
85
|
icon: t[k] || void 0,
|
|
88
86
|
iconClass: t[c] ? String(t[c]) : void 0,
|
|
89
87
|
text: t[m] ? String(t[m]) : void 0,
|
|
@@ -95,7 +93,7 @@ const v = r.forwardRef((e, E) => {
|
|
|
95
93
|
));
|
|
96
94
|
})))
|
|
97
95
|
);
|
|
98
|
-
}),
|
|
96
|
+
}), K = {
|
|
99
97
|
id: i.string,
|
|
100
98
|
style: i.object,
|
|
101
99
|
className: i.string,
|
|
@@ -126,7 +124,7 @@ const v = r.forwardRef((e, E) => {
|
|
|
126
124
|
iconClassField: "iconClass"
|
|
127
125
|
};
|
|
128
126
|
v.displayName = "KendoReactBreadcrumb";
|
|
129
|
-
v.propTypes =
|
|
127
|
+
v.propTypes = K;
|
|
130
128
|
export {
|
|
131
129
|
v as Breadcrumb
|
|
132
130
|
};
|
|
@@ -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 u=require("react"),i=require("prop-types"),s=require("@progress/kendo-react-common"),l=require("@progress/kendo-svg-icons");function d(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 r=d(u),a=r.forwardRef((e,n)=>{const t=r.useRef(null),c=r.useRef(null);return r.useImperativeHandle(t,()=>{var o;return{element:((o=c.current)==null?void 0:o.element)||null,props:e}}),r.useImperativeHandle(n,()=>t.current),r.createElement(s.IconWrap,{ref:c,id:e.id,"aria-hidden":!0,tabIndex:e.tabIndex,style:e.style,name:e.dir==="rtl"?"chevron-left":"chevron-right",icon:e.dir==="rtl"?l.chevronLeftIcon:l.chevronRightIcon,className:"k-breadcrumb-delimiter-icon",size:"xsmall"})}),m={id:i.string,className:i.string,style:i.object,tabIndex:i.number,dir:i.string};a.displayName="KendoReactBreadcrumbDelimiter";a.propTypes=m;exports.BreadcrumbDelimiter=a;
|