@progress/kendo-react-layout 14.5.0-develop.8 → 15.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/MenuMcpWrapper.d.ts +17 -0
- package/MenuMcpWrapper.js +8 -0
- package/MenuMcpWrapper.mjs +18 -0
- package/README.md +4 -4
- package/actionsheet/ActionSheet.d.ts +12 -0
- package/actionsheet/ActionSheet.js +1 -1
- package/actionsheet/ActionSheet.mjs +69 -68
- package/actionsheet/ActionSheetItem.js +1 -1
- package/actionsheet/ActionSheetItem.mjs +1 -3
- package/appbar/interfaces/AppBarProps.d.ts +2 -14
- package/bottomnavigation/BottomNavigation.js +1 -1
- package/bottomnavigation/BottomNavigation.mjs +81 -76
- package/bottomnavigation/BottomNavigationItem.js +1 -1
- package/bottomnavigation/BottomNavigationItem.mjs +34 -33
- package/bottomnavigation/BottomNavigationProps.d.ts +3 -13
- package/bottomnavigation/messages/index.d.ts +17 -0
- package/bottomnavigation/messages/index.js +8 -0
- package/bottomnavigation/messages/index.mjs +14 -0
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Breadcrumb.mjs +30 -28
- package/breadcrumb/BreadcrumbLink.js +1 -1
- package/breadcrumb/BreadcrumbLink.mjs +26 -26
- package/breadcrumb/messages/index.d.ts +17 -0
- package/breadcrumb/messages/index.js +8 -0
- package/breadcrumb/messages/index.mjs +14 -0
- package/card/Avatar.js +1 -1
- package/card/Avatar.mjs +14 -26
- package/card/interfaces/AvatarProps.d.ts +1 -8
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/drawer/Drawer.d.ts +1 -1
- package/drawer/Drawer.js +1 -1
- package/drawer/Drawer.mjs +63 -63
- package/drawer/DrawerContent.d.ts +1 -1
- package/drawer/DrawerItem.d.ts +1 -1
- package/drawer/DrawerItem.js +1 -1
- package/drawer/DrawerItem.mjs +22 -23
- package/drawer/interfaces/DrawerProps.d.ts +8 -0
- package/expansionpanel/ExpansionPanel.js +1 -1
- package/expansionpanel/ExpansionPanel.mjs +50 -50
- package/expansionpanel/ExpansionPanelContent.js +1 -1
- package/expansionpanel/ExpansionPanelContent.mjs +7 -4
- package/index.d.mts +1 -2
- package/index.d.ts +1 -2
- package/index.js +1 -1
- package/index.mjs +128 -130
- package/menu/MenuProps.d.ts +6 -0
- package/menu/components/MenuItemArrow.d.ts +3 -3
- package/menu/components/MenuItemArrow.js +1 -1
- package/menu/components/MenuItemArrow.mjs +13 -23
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +14 -9
- package/panelbar/PanelBar.js +1 -1
- package/panelbar/PanelBar.mjs +94 -91
- package/panelbar/PanelBarItem.js +1 -1
- package/panelbar/PanelBarItem.mjs +13 -15
- package/panelbar/interfaces/PanelBarProps.d.ts +8 -0
- package/panelbar/interfaces/RenderPanelBarItem.d.ts +1 -0
- package/panelbar/util.d.ts +1 -1
- package/panelbar/util.js +1 -1
- package/panelbar/util.mjs +62 -59
- package/splitter/SplitterBar.d.ts +1 -0
- package/splitter/SplitterBar.js +1 -1
- package/splitter/SplitterBar.mjs +81 -72
- package/stepper/Step.js +1 -1
- package/stepper/Step.mjs +79 -85
- package/stepper/Stepper.js +1 -1
- package/stepper/Stepper.mjs +134 -133
- package/stepper/interfaces/StepperProps.d.ts +8 -1
- package/stepper/messages/index.d.ts +12 -2
- package/stepper/messages/index.js +1 -1
- package/stepper/messages/index.mjs +8 -4
- package/tabstrip/TabStrip.d.ts +8 -1
- package/tabstrip/TabStrip.js +1 -1
- package/tabstrip/TabStrip.mjs +126 -125
- package/tabstrip/TabStripNavigation.js +1 -1
- package/tabstrip/TabStripNavigation.mjs +31 -31
- package/tilelayout/InternalTile.js +1 -1
- package/tilelayout/InternalTile.mjs +119 -115
- package/tilelayout/TileLayout.js +1 -1
- package/tilelayout/TileLayout.mjs +58 -58
- package/timeline/TimelineCard.d.ts +2 -0
- package/timeline/TimelineCard.js +1 -1
- package/timeline/TimelineCard.mjs +27 -18
- package/timeline/TimelineHorizontal.js +1 -1
- package/timeline/TimelineHorizontal.mjs +113 -109
|
@@ -6,126 +6,131 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as o from "react";
|
|
9
|
-
import
|
|
10
|
-
import { focusFirstFocusableChild as
|
|
11
|
-
import { POSITION_MODE_CLASSES as
|
|
12
|
-
import { BottomNavigationItem as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
import a from "prop-types";
|
|
10
|
+
import { focusFirstFocusableChild as B, useId as _, useDir as $, classNames as z, dispatchEvent as k, Keys as S } from "@progress/kendo-react-common";
|
|
11
|
+
import { POSITION_MODE_CLASSES as P, ITEM_FLOW_CLASSES as H } from "./models/utils.mjs";
|
|
12
|
+
import { BottomNavigationItem as j } from "./BottomNavigationItem.mjs";
|
|
13
|
+
import { useLocalization as W } from "@progress/kendo-react-intl";
|
|
14
|
+
import { bottomNavigationAriaLabel as I, messages as q } from "./messages/index.mjs";
|
|
15
|
+
const N = o.forwardRef((l, w) => {
|
|
16
|
+
const r = o.useRef(null), b = o.useCallback(() => {
|
|
17
|
+
r.current && B(r.current);
|
|
18
|
+
}, []), c = o.useCallback(
|
|
17
19
|
() => ({
|
|
18
|
-
element:
|
|
20
|
+
element: r.current,
|
|
19
21
|
focus: b
|
|
20
22
|
}),
|
|
21
23
|
[b]
|
|
22
24
|
);
|
|
23
|
-
o.useImperativeHandle(
|
|
25
|
+
o.useImperativeHandle(w, c);
|
|
24
26
|
const {
|
|
25
|
-
positionMode: v =
|
|
26
|
-
itemFlow: C =
|
|
27
|
-
border: M =
|
|
28
|
-
className:
|
|
29
|
-
items:
|
|
27
|
+
positionMode: v = s.positionMode,
|
|
28
|
+
itemFlow: C = s.itemFlow,
|
|
29
|
+
border: M = s.border,
|
|
30
|
+
className: g,
|
|
31
|
+
items: i,
|
|
30
32
|
item: E,
|
|
31
|
-
itemRender:
|
|
32
|
-
disabled:
|
|
33
|
-
style:
|
|
34
|
-
id:
|
|
33
|
+
itemRender: F,
|
|
34
|
+
disabled: d,
|
|
35
|
+
style: L,
|
|
36
|
+
id: p,
|
|
35
37
|
onSelect: m,
|
|
36
38
|
onKeyDown: y
|
|
37
|
-
} =
|
|
38
|
-
() =>
|
|
39
|
+
} = l, O = W(), h = _(), D = $(r, l.dir), f = o.useMemo(() => l.fillMode === null ? null : l.fillMode || s.fillMode, [l.fillMode]), u = o.useMemo(() => l.themeColor || s.themeColor, [l.themeColor]), R = o.useMemo(
|
|
40
|
+
() => z(
|
|
39
41
|
"k-bottom-nav",
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
P[v],
|
|
43
|
+
H[C],
|
|
42
44
|
{
|
|
43
45
|
[`k-bottom-nav-${f}`]: f,
|
|
44
46
|
[`k-bottom-nav-${u}`]: !!u,
|
|
45
47
|
"k-bottom-nav-border": M,
|
|
46
|
-
"k-disabled":
|
|
48
|
+
"k-disabled": d
|
|
47
49
|
},
|
|
48
|
-
|
|
50
|
+
g
|
|
49
51
|
),
|
|
50
|
-
[v, u, f, C, M,
|
|
52
|
+
[v, u, f, C, M, d, g]
|
|
51
53
|
), n = o.useCallback(
|
|
52
54
|
(e, t) => {
|
|
53
|
-
|
|
54
|
-
itemTarget:
|
|
55
|
+
i && !i[t].disabled && m && k(m, e, c(), {
|
|
56
|
+
itemTarget: i[t],
|
|
55
57
|
itemIndex: t
|
|
56
58
|
});
|
|
57
59
|
},
|
|
58
|
-
[
|
|
59
|
-
),
|
|
60
|
+
[i, m]
|
|
61
|
+
), K = o.useCallback(
|
|
60
62
|
(e, t) => {
|
|
61
63
|
n(e, t);
|
|
62
64
|
},
|
|
63
65
|
[n]
|
|
64
|
-
),
|
|
66
|
+
), T = o.useCallback(
|
|
65
67
|
(e, t) => {
|
|
66
68
|
switch (e.keyCode) {
|
|
67
|
-
case
|
|
68
|
-
case
|
|
69
|
+
case S.enter:
|
|
70
|
+
case S.space:
|
|
69
71
|
n(e, t), e.preventDefault();
|
|
70
72
|
break;
|
|
71
73
|
}
|
|
72
|
-
|
|
74
|
+
k(
|
|
73
75
|
y,
|
|
74
76
|
e,
|
|
75
|
-
|
|
77
|
+
c(),
|
|
76
78
|
void 0
|
|
77
79
|
);
|
|
78
80
|
},
|
|
79
81
|
[n, y]
|
|
82
|
+
), A = O.toLanguageString(
|
|
83
|
+
I,
|
|
84
|
+
q[I]
|
|
80
85
|
);
|
|
81
|
-
return /* @__PURE__ */ o.createElement(
|
|
82
|
-
|
|
86
|
+
return /* @__PURE__ */ o.createElement(
|
|
87
|
+
"nav",
|
|
83
88
|
{
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
id:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
ref: r,
|
|
90
|
+
className: R,
|
|
91
|
+
style: L,
|
|
92
|
+
id: p || h,
|
|
93
|
+
dir: D,
|
|
94
|
+
"aria-label": A
|
|
95
|
+
},
|
|
96
|
+
i && i.map((e, t) => /* @__PURE__ */ o.createElement(
|
|
97
|
+
j,
|
|
98
|
+
{
|
|
99
|
+
...e,
|
|
100
|
+
key: t,
|
|
101
|
+
index: t,
|
|
102
|
+
id: `${p || h}-${t}`,
|
|
103
|
+
disabled: d || e.disabled,
|
|
104
|
+
selected: e.selected,
|
|
105
|
+
dataItem: e,
|
|
106
|
+
item: E,
|
|
107
|
+
render: F,
|
|
108
|
+
onSelect: K,
|
|
109
|
+
onKeyDown: T
|
|
110
|
+
}
|
|
111
|
+
))
|
|
112
|
+
);
|
|
113
|
+
}), s = {
|
|
98
114
|
themeColor: void 0,
|
|
99
115
|
fillMode: void 0,
|
|
100
116
|
itemFlow: "vertical",
|
|
101
117
|
positionMode: "fixed",
|
|
102
118
|
border: !0
|
|
103
119
|
};
|
|
104
|
-
|
|
105
|
-
className:
|
|
106
|
-
style:
|
|
107
|
-
id:
|
|
108
|
-
dir:
|
|
109
|
-
themeColor:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"error",
|
|
117
|
-
"dark",
|
|
118
|
-
"light",
|
|
119
|
-
"inverse"
|
|
120
|
-
]),
|
|
121
|
-
fillMode: l.oneOf(["solid", "flat"]),
|
|
122
|
-
itemFlow: l.oneOf(["vertical", "horizontal"]),
|
|
123
|
-
border: l.bool,
|
|
124
|
-
disabled: l.bool,
|
|
125
|
-
selected: l.number,
|
|
126
|
-
onSelect: l.func
|
|
120
|
+
N.propTypes = {
|
|
121
|
+
className: a.string,
|
|
122
|
+
style: a.object,
|
|
123
|
+
id: a.string,
|
|
124
|
+
dir: a.string,
|
|
125
|
+
themeColor: a.oneOf(["base", "primary", "secondary", "tertiary", "inverse"]),
|
|
126
|
+
fillMode: a.oneOf(["solid", "flat"]),
|
|
127
|
+
itemFlow: a.oneOf(["vertical", "horizontal"]),
|
|
128
|
+
border: a.bool,
|
|
129
|
+
disabled: a.bool,
|
|
130
|
+
selected: a.number,
|
|
131
|
+
onSelect: a.func
|
|
127
132
|
};
|
|
128
|
-
|
|
133
|
+
N.displayName = "KendoReactBottomNavigation";
|
|
129
134
|
export {
|
|
130
|
-
|
|
135
|
+
N as BottomNavigation
|
|
131
136
|
};
|
|
@@ -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"),n=require("prop-types"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),n=require("prop-types"),f=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),g=e.forwardRef((t,c)=>{const o=e.useRef(null);e.useImperativeHandle(c,()=>({element:o.current}));const{className:l,style:k,selected:i,disabled:a,item:N,render:x,dataItem:C,icon:m,svgIcon:r,text:d,id:R,onSelect:u,onKeyDown:b,index:s,tabIndex:j=E.tabIndex}=t,O=e.useMemo(()=>f.classNames("k-bottom-nav-item",{"k-selected":i,"k-disabled":a},l),[i,a,l]),P=e.useCallback(p=>{u&&s!==void 0&&!a&&u(p,s)},[u,s,a]),S=e.useCallback(p=>{b&&s!==void 0&&!a&&b(p,s)},[b,s,a]),v=x,y=N,I=e.createElement("span",{ref:o,className:O,style:k,role:"link",id:R,tabIndex:j,onClick:P,onKeyDown:S,"aria-current":i,"aria-disabled":a,"aria-label":d?void 0:(r==null?void 0:r.name)||m||void 0},y?e.createElement(y,{itemIndex:s,item:C}):e.createElement(e.Fragment,null,(m||r)&&e.createElement(f.IconWrap,{className:"k-bottom-nav-item-icon",name:m,icon:r,size:"xlarge"}),d&&e.createElement("span",{className:"k-bottom-nav-item-text",style:{userSelect:"none"}},d)));return v!==void 0?v.call(void 0,I,t):I}),E={tabIndex:0};g.propTypes={className:n.string,style:n.object,id:n.string,disabled:n.bool,selected:n.bool,icon:n.string,svgIcon:f.svgIconPropType,text:n.string,tabIndex:n.number};g.displayName="KendoReactBottomNavigationItem";exports.BottomNavigationItem=g;
|
|
@@ -9,67 +9,68 @@ import * as e from "react";
|
|
|
9
9
|
import t from "prop-types";
|
|
10
10
|
import { classNames as D, IconWrap as P, svgIconPropType as T } from "@progress/kendo-react-common";
|
|
11
11
|
const f = e.forwardRef(
|
|
12
|
-
(
|
|
13
|
-
const
|
|
12
|
+
(d, x) => {
|
|
13
|
+
const b = e.useRef(null);
|
|
14
14
|
e.useImperativeHandle(
|
|
15
|
-
|
|
15
|
+
x,
|
|
16
16
|
() => ({
|
|
17
|
-
element:
|
|
17
|
+
element: b.current
|
|
18
18
|
})
|
|
19
19
|
);
|
|
20
20
|
const {
|
|
21
|
-
className:
|
|
22
|
-
style:
|
|
23
|
-
selected:
|
|
24
|
-
disabled:
|
|
25
|
-
item:
|
|
26
|
-
render:
|
|
27
|
-
dataItem:
|
|
28
|
-
icon:
|
|
29
|
-
svgIcon:
|
|
30
|
-
text:
|
|
21
|
+
className: p,
|
|
22
|
+
style: k,
|
|
23
|
+
selected: s,
|
|
24
|
+
disabled: a,
|
|
25
|
+
item: y,
|
|
26
|
+
render: N,
|
|
27
|
+
dataItem: g,
|
|
28
|
+
icon: l,
|
|
29
|
+
svgIcon: o,
|
|
30
|
+
text: i,
|
|
31
31
|
id: C,
|
|
32
|
-
onSelect:
|
|
33
|
-
onKeyDown:
|
|
34
|
-
index:
|
|
32
|
+
onSelect: m,
|
|
33
|
+
onKeyDown: r,
|
|
34
|
+
index: n,
|
|
35
35
|
tabIndex: E = h.tabIndex
|
|
36
|
-
} =
|
|
36
|
+
} = d, R = e.useMemo(
|
|
37
37
|
() => D(
|
|
38
38
|
"k-bottom-nav-item",
|
|
39
39
|
{
|
|
40
|
-
"k-selected":
|
|
41
|
-
"k-disabled":
|
|
40
|
+
"k-selected": s,
|
|
41
|
+
"k-disabled": a
|
|
42
42
|
},
|
|
43
|
-
|
|
43
|
+
p
|
|
44
44
|
),
|
|
45
|
-
[
|
|
45
|
+
[s, a, p]
|
|
46
46
|
), w = e.useCallback(
|
|
47
47
|
(c) => {
|
|
48
|
-
|
|
48
|
+
m && n !== void 0 && !a && m(c, n);
|
|
49
49
|
},
|
|
50
|
-
[
|
|
50
|
+
[m, n, a]
|
|
51
51
|
), K = e.useCallback(
|
|
52
52
|
(c) => {
|
|
53
|
-
|
|
53
|
+
r && n !== void 0 && !a && r(c, n);
|
|
54
54
|
},
|
|
55
|
-
[
|
|
56
|
-
),
|
|
55
|
+
[r, n, a]
|
|
56
|
+
), v = N, u = y, I = /* @__PURE__ */ e.createElement(
|
|
57
57
|
"span",
|
|
58
58
|
{
|
|
59
|
-
ref:
|
|
59
|
+
ref: b,
|
|
60
60
|
className: R,
|
|
61
|
-
style:
|
|
61
|
+
style: k,
|
|
62
62
|
role: "link",
|
|
63
63
|
id: C,
|
|
64
64
|
tabIndex: E,
|
|
65
65
|
onClick: w,
|
|
66
66
|
onKeyDown: K,
|
|
67
|
-
"aria-current":
|
|
68
|
-
"aria-disabled":
|
|
67
|
+
"aria-current": s,
|
|
68
|
+
"aria-disabled": a,
|
|
69
|
+
"aria-label": i ? void 0 : (o == null ? void 0 : o.name) || l || void 0
|
|
69
70
|
},
|
|
70
|
-
|
|
71
|
+
u ? /* @__PURE__ */ e.createElement(u, { itemIndex: n, item: g }) : /* @__PURE__ */ e.createElement(e.Fragment, null, (l || o) && /* @__PURE__ */ e.createElement(P, { className: "k-bottom-nav-item-icon", name: l, icon: o, size: "xlarge" }), i && /* @__PURE__ */ e.createElement("span", { className: "k-bottom-nav-item-text", style: { userSelect: "none" } }, i))
|
|
71
72
|
);
|
|
72
|
-
return
|
|
73
|
+
return v !== void 0 ? v.call(void 0, I, d) : I;
|
|
73
74
|
}
|
|
74
75
|
), h = {
|
|
75
76
|
tabIndex: 0
|
|
@@ -52,15 +52,10 @@ export interface BottomNavigationProps {
|
|
|
52
52
|
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/bottomnavigation/appearance#toc-theme-color)).
|
|
53
53
|
*
|
|
54
54
|
* The possible values are:
|
|
55
|
+
* * `base` — Applies coloring based on the base theme color.
|
|
55
56
|
* * `primary` — Applies coloring based on the primary theme color.
|
|
56
57
|
* * `secondary` — Applies coloring based on the secondary theme color.
|
|
57
58
|
* * `tertiary` — Applies coloring based on the tertiary theme color.
|
|
58
|
-
* * `info` — Applies coloring based on the info theme color.
|
|
59
|
-
* * `success` — Applies coloring based on the success theme color.
|
|
60
|
-
* * `warning` — Applies coloring based on the warning theme color.
|
|
61
|
-
* * `error` — Applies coloring based on the error theme color.
|
|
62
|
-
* * `dark` — Applies coloring based on the dark theme color.
|
|
63
|
-
* * `light` — Applies coloring based on the light theme color.
|
|
64
59
|
* * `inverse` — Applies coloring based on the inverted theme color.
|
|
65
60
|
*
|
|
66
61
|
* @default undefined (theme-controlled)
|
|
@@ -216,15 +211,10 @@ export type BottomNavigationItemFlow = 'vertical' | 'horizontal';
|
|
|
216
211
|
* * `primary` (Default) — Applies coloring based on the primary theme color.
|
|
217
212
|
* * `secondary` — Applies coloring based on the secondary theme color.
|
|
218
213
|
* * `tertiary` — Applies coloring based on the tertiary theme color.
|
|
219
|
-
* * `
|
|
220
|
-
* * `success` — Applies coloring based on the success theme color.
|
|
221
|
-
* * `warning` — Applies coloring based on the warning theme color.
|
|
222
|
-
* * `error` — Applies coloring based on the error theme color.
|
|
223
|
-
* * `dark` — Applies coloring based on the dark theme color.
|
|
224
|
-
* * `light` — Applies coloring based on the light theme color.
|
|
214
|
+
* * `base` — Applies coloring based on the base theme color.
|
|
225
215
|
* * `inverse` — Applies coloring based on the inverted theme color.
|
|
226
216
|
*/
|
|
227
|
-
export type BottomNavigationThemeColor = '
|
|
217
|
+
export type BottomNavigationThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'inverse';
|
|
228
218
|
/**
|
|
229
219
|
* Specifies the BottomNavigation position and behavior when the page is scrolled
|
|
230
220
|
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/bottomnavigation/positioning#toc-position-mode)).
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const bottomNavigationAriaLabel = "bottomNavigation.ariaLabel";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare const messages: {
|
|
16
|
+
"bottomNavigation.ariaLabel": string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="bottomNavigation.ariaLabel",a={[t]:"Bottom navigation"};exports.bottomNavigationAriaLabel=t;exports.messages=a;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
const a = "bottomNavigation.ariaLabel", o = {
|
|
9
|
+
[a]: "Bottom navigation"
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
a as bottomNavigationAriaLabel,
|
|
13
|
+
o as messages
|
|
14
|
+
};
|
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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react"),n=require("prop-types"),o=require("@progress/kendo-react-common"),q=require("@progress/kendo-react-intl"),L=require("./messages/index.js"),M=require("./BreadcrumbListItem.js"),R=require("./BreadcrumbDelimiter.js"),w=require("./BreadcrumbLink.js"),j=require("./BreadcrumbOrderedList.js");function x(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(l,i,a.get?a:{enumerable:!0,get:()=>e[i]})}}return l.default=e,Object.freeze(l)}const r=x(T),F=r.forwardRef((e,l)=>{const i=r.useRef(null),a=r.useRef(null),y=r.useMemo(()=>e.breadcrumbOrderedList||j.BreadcrumbOrderedList,[e.breadcrumbOrderedList]),I=r.useMemo(()=>e.breadcrumbListItem||M.BreadcrumbListItem,[e.breadcrumbListItem]),D=r.useMemo(()=>e.breadcrumbDelimiter||R.BreadcrumbDelimiter,[e.breadcrumbDelimiter]),k=r.useMemo(()=>e.breadcrumbLink||w.BreadcrumbLink,[e.breadcrumbLink]),E=r.useCallback(()=>{a.current&&a.current.focus()},[a]),B=r.useMemo(()=>e.disabled||!1,[e.disabled]);r.useImperativeHandle(i,()=>({element:a.current,focus:E,props:e})),r.useImperativeHandle(l,()=>i.current);const h=q.useLocalization(),g=o.useDir(a,e.dir),S=t=>{i.current&&o.dispatchEvent(e.onItemSelect,t,t.target,{id:t.target.id})},C=t=>{i.current&&o.dispatchEvent(e.onKeyDown,t,t.target,{id:t.target.id})},v=e.valueField||b.valueField,O=e.iconField||b.iconField,u=e.iconClassField||b.iconClassField,m=e.textField||b.textField,f=e.size;return r.createElement("nav",{"aria-label":e.ariaLabel||h.toLanguageString(L.breadcrumbAriaLabel,L.messages[L.breadcrumbAriaLabel]),id:e.id,style:e.style,ref:a,dir:g,className:o.classNames("k-breadcrumb k-breadcrumb-wrap",{"k-rtl":g==="rtl","k-disabled":B,[`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[v];if(c===0)return r.createElement(I,{key:d,isFirstItem:!0,isLastItem:s.length-1===c},r.createElement(k,{isLast:s.length-1===c,isFirst:!0,id:String(d),icon:t[O]||void 0,iconClass:t[u]?String(t[u]):void 0,text:t[m]?String(t[m]):void 0,disabled:t.disabled||!1,onItemSelect:S,onKeyDown:C,...e}))}))),r.createElement(y,{rootItem:!1},r.createElement(r.Fragment,null,e.data.map((t,c,s)=>{const d=t[v];if(c!==0)return r.createElement(I,{key:d,isFirstItem:!1,isLastItem:s.length-1===c},r.createElement(D,{dir:g}),r.createElement(k,{isLast:s.length-1===c,isFirst:!1,id:String(d),icon:t[O]||void 0,iconClass:t[u]?String(t[u]):void 0,text:t[m]?String(t[m]):void 0,disabled:t.disabled||!1,onItemSelect:S,onKeyDown:C,...e}))}))))}),z={id:n.string,style:n.object,className:n.string,breadcrumbOrderedList:n.elementType,breadcrumbListItem:n.elementType,breadcrumbDelimiter:n.elementType,breadcrumbLink:n.elementType,data:n.arrayOf(n.shape({id:n.string,text:n.string,icon:n.any,iconClass:n.string})),dir:n.oneOf(["ltr","rtl"]),disabled:n.bool,valueField:n.string,textField:n.string,iconField:n.string,iconClassField:n.string,onItemSelect:n.func,ariaLabel:n.string},b={valueField:"id",textField:"text",iconField:"icon",iconClassField:"iconClass"};F.displayName="KendoReactBreadcrumb";F.propTypes=z;exports.Breadcrumb=F;
|
|
@@ -7,48 +7,50 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as r from "react";
|
|
9
9
|
import i from "prop-types";
|
|
10
|
-
import { useDir as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
10
|
+
import { useDir as O, classNames as w, kendoThemeMaps as x, dispatchEvent as C } from "@progress/kendo-react-common";
|
|
11
|
+
import { useLocalization as B } from "@progress/kendo-react-intl";
|
|
12
|
+
import { breadcrumbAriaLabel as S, messages as R } from "./messages/index.mjs";
|
|
13
|
+
import { BreadcrumbListItem as z } from "./BreadcrumbListItem.mjs";
|
|
14
|
+
import { BreadcrumbDelimiter as K } from "./BreadcrumbDelimiter.mjs";
|
|
15
|
+
import { BreadcrumbLink as N } from "./BreadcrumbLink.mjs";
|
|
16
|
+
import { BreadcrumbOrderedList as H } from "./BreadcrumbOrderedList.mjs";
|
|
15
17
|
const v = r.forwardRef((e, E) => {
|
|
16
|
-
const
|
|
17
|
-
() => e.breadcrumbOrderedList ||
|
|
18
|
+
const c = r.useRef(null), n = r.useRef(null), f = r.useMemo(
|
|
19
|
+
() => e.breadcrumbOrderedList || H,
|
|
18
20
|
[e.breadcrumbOrderedList]
|
|
19
21
|
), g = r.useMemo(
|
|
20
|
-
() => e.breadcrumbListItem ||
|
|
22
|
+
() => e.breadcrumbListItem || z,
|
|
21
23
|
[e.breadcrumbListItem]
|
|
22
|
-
),
|
|
23
|
-
() => e.breadcrumbDelimiter ||
|
|
24
|
+
), D = r.useMemo(
|
|
25
|
+
() => e.breadcrumbDelimiter || K,
|
|
24
26
|
[e.breadcrumbDelimiter]
|
|
25
|
-
), F = r.useMemo(() => e.breadcrumbLink ||
|
|
27
|
+
), F = r.useMemo(() => e.breadcrumbLink || N, [e.breadcrumbLink]), h = r.useCallback(() => {
|
|
26
28
|
n.current && n.current.focus();
|
|
27
|
-
}, [n]),
|
|
28
|
-
r.useImperativeHandle(
|
|
29
|
+
}, [n]), T = r.useMemo(() => e.disabled || !1, [e.disabled]);
|
|
30
|
+
r.useImperativeHandle(c, () => ({
|
|
29
31
|
element: n.current,
|
|
30
|
-
focus:
|
|
32
|
+
focus: h,
|
|
31
33
|
props: e
|
|
32
|
-
})), r.useImperativeHandle(E, () =>
|
|
33
|
-
const u =
|
|
34
|
-
|
|
34
|
+
})), r.useImperativeHandle(E, () => c.current);
|
|
35
|
+
const M = B(), u = O(n, e.dir), L = (t) => {
|
|
36
|
+
c.current && C(e.onItemSelect, t, t.target, { id: t.target.id });
|
|
35
37
|
}, y = (t) => {
|
|
36
|
-
|
|
37
|
-
}, I = e.valueField || o.valueField, k = e.iconField || o.iconField,
|
|
38
|
+
c.current && C(e.onKeyDown, t, t.target, { id: t.target.id });
|
|
39
|
+
}, I = e.valueField || o.valueField, k = e.iconField || o.iconField, d = e.iconClassField || o.iconClassField, m = e.textField || o.textField, b = e.size;
|
|
38
40
|
return /* @__PURE__ */ r.createElement(
|
|
39
41
|
"nav",
|
|
40
42
|
{
|
|
41
|
-
"aria-label": e.ariaLabel,
|
|
43
|
+
"aria-label": e.ariaLabel || M.toLanguageString(S, R[S]),
|
|
42
44
|
id: e.id,
|
|
43
45
|
style: e.style,
|
|
44
46
|
ref: n,
|
|
45
47
|
dir: u,
|
|
46
|
-
className:
|
|
48
|
+
className: w(
|
|
47
49
|
"k-breadcrumb k-breadcrumb-wrap",
|
|
48
50
|
{
|
|
49
51
|
"k-rtl": u === "rtl",
|
|
50
|
-
"k-disabled":
|
|
51
|
-
[`k-breadcrumb-${
|
|
52
|
+
"k-disabled": T,
|
|
53
|
+
[`k-breadcrumb-${x.sizeMap[b] || b}`]: b
|
|
52
54
|
},
|
|
53
55
|
e.className
|
|
54
56
|
)
|
|
@@ -63,7 +65,7 @@ const v = r.forwardRef((e, E) => {
|
|
|
63
65
|
isFirst: !0,
|
|
64
66
|
id: String(s),
|
|
65
67
|
icon: t[k] || void 0,
|
|
66
|
-
iconClass: t[
|
|
68
|
+
iconClass: t[d] ? String(t[d]) : void 0,
|
|
67
69
|
text: t[m] ? String(t[m]) : void 0,
|
|
68
70
|
disabled: t.disabled || !1,
|
|
69
71
|
onItemSelect: L,
|
|
@@ -75,14 +77,14 @@ const v = r.forwardRef((e, E) => {
|
|
|
75
77
|
/* @__PURE__ */ r.createElement(f, { rootItem: !1 }, /* @__PURE__ */ r.createElement(r.Fragment, null, e.data.map((t, a, l) => {
|
|
76
78
|
const s = t[I];
|
|
77
79
|
if (a !== 0)
|
|
78
|
-
return /* @__PURE__ */ r.createElement(g, { key: s, isFirstItem: !1, isLastItem: l.length - 1 === a }, /* @__PURE__ */ r.createElement(
|
|
80
|
+
return /* @__PURE__ */ r.createElement(g, { key: s, isFirstItem: !1, isLastItem: l.length - 1 === a }, /* @__PURE__ */ r.createElement(D, { dir: u }), /* @__PURE__ */ r.createElement(
|
|
79
81
|
F,
|
|
80
82
|
{
|
|
81
83
|
isLast: l.length - 1 === a,
|
|
82
84
|
isFirst: !1,
|
|
83
85
|
id: String(s),
|
|
84
86
|
icon: t[k] || void 0,
|
|
85
|
-
iconClass: t[
|
|
87
|
+
iconClass: t[d] ? String(t[d]) : void 0,
|
|
86
88
|
text: t[m] ? String(t[m]) : void 0,
|
|
87
89
|
disabled: t.disabled || !1,
|
|
88
90
|
onItemSelect: L,
|
|
@@ -92,7 +94,7 @@ const v = r.forwardRef((e, E) => {
|
|
|
92
94
|
));
|
|
93
95
|
})))
|
|
94
96
|
);
|
|
95
|
-
}),
|
|
97
|
+
}), P = {
|
|
96
98
|
id: i.string,
|
|
97
99
|
style: i.object,
|
|
98
100
|
className: i.string,
|
|
@@ -123,7 +125,7 @@ const v = r.forwardRef((e, E) => {
|
|
|
123
125
|
iconClassField: "iconClass"
|
|
124
126
|
};
|
|
125
127
|
v.displayName = "KendoReactBreadcrumb";
|
|
126
|
-
v.propTypes =
|
|
128
|
+
v.propTypes = P;
|
|
127
129
|
export {
|
|
128
130
|
v as Breadcrumb
|
|
129
131
|
};
|
|
@@ -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"),t=require("prop-types"),l=require("@progress/kendo-react-common");function m(e){const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),t=require("prop-types"),l=require("@progress/kendo-react-common");function m(e){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const c in e)if(c!=="default"){const a=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(d,c,a.get?a:{enumerable:!0,get:()=>e[c]})}}return d.default=e,Object.freeze(d)}const n=m(b),r=n.forwardRef((e,d)=>{const c=n.useRef(null),a=n.useRef(null),s=n.useCallback(()=>{a.current&&a.current.focus()},[a]);n.useImperativeHandle(c,()=>({element:a.current,focus:s,props:e})),n.useImperativeHandle(d,()=>c.current);const u=n.useCallback(i=>{e.id&&l.dispatchEvent(e.onItemSelect,i,i.target,{id:e.id})},[e.onItemSelect]),o=n.useCallback(i=>{e.id&&l.dispatchEvent(e.onKeyDown,i,i.target,{id:e.id})},[e.onKeyDown]);return n.createElement("a",{href:"#","aria-current":e.ariaCurrent||e.isLast?"page":void 0,"aria-disabled":e.disabled||e.isLast||void 0,id:e.id,ref:a,style:e.style,dir:l.useDir(a,e.dir),tabIndex:l.getTabIndex(e.tabIndex,e.disabled),className:l.classNames(e.className,{"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?n.createElement("span",{className:l.classNames("k-icon",e.iconClass)}):e.icon?e.icon:"",e.text&&n.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};r.displayName="KendoReactBreadcrumbLink";r.propTypes=f;exports.BreadcrumbLink=r;
|