@progress/kendo-react-layout 9.0.0-develop.2 → 9.0.0-develop.20
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/README.md +82 -82
- package/actionsheet/ActionSheet.js +1 -1
- package/actionsheet/ActionSheet.mjs +151 -162
- package/actionsheet/ActionSheetFooter.mjs +1 -10
- package/actionsheet/ActionSheetHeader.mjs +1 -10
- package/actionsheet/ActionSheetItem.mjs +10 -7
- package/appbar/AppBar.mjs +5 -30
- package/appbar/AppBarSection.mjs +4 -17
- package/appbar/AppBarSpacer.mjs +6 -16
- package/bottomnavigation/BottomNavigation.mjs +30 -54
- package/bottomnavigation/BottomNavigationItem.mjs +63 -61
- package/breadcrumb/Breadcrumb.mjs +39 -63
- package/breadcrumb/BreadcrumbDelimiter.mjs +29 -24
- package/breadcrumb/BreadcrumbLink.mjs +16 -18
- package/breadcrumb/BreadcrumbListItem.mjs +31 -29
- package/breadcrumb/BreadcrumbOrderedList.mjs +47 -42
- package/card/Avatar.mjs +15 -1
- package/card/CardBody.mjs +1 -11
- package/card/CardFooter.mjs +1 -11
- package/card/CardHeader.mjs +1 -11
- package/card/CardImage.mjs +1 -4
- package/card/CardSubtitle.mjs +1 -11
- package/card/CardTitle.mjs +1 -11
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/drawer/Drawer.mjs +10 -21
- package/drawer/DrawerContent.mjs +6 -3
- package/drawer/DrawerItem.mjs +10 -10
- package/drawer/DrawerNavigation.mjs +109 -130
- package/expansionpanel/ExpansionPanel.mjs +12 -15
- package/expansionpanel/ExpansionPanelContent.mjs +3 -9
- package/gridlayout/GridLayout.mjs +1 -10
- package/gridlayout/GridLayoutItem.mjs +1 -10
- package/index.d.mts +43 -41
- package/index.d.ts +43 -41
- package/index.js +1 -1
- package/index.mjs +39 -38
- package/menu/components/MenuItemLink.mjs +4 -17
- package/menu/utils/getNewItemIdUponKeyboardNavigation.js +1 -1
- package/menu/utils/getNewItemIdUponKeyboardNavigation.mjs +55 -57
- package/menu/utils/hoverDelay.js +1 -1
- package/menu/utils/hoverDelay.mjs +2 -2
- package/menu/utils/itemsIdsUtils.js +1 -1
- package/menu/utils/itemsIdsUtils.mjs +14 -18
- package/menu/utils/misc.js +1 -1
- package/menu/utils/misc.mjs +2 -2
- package/menu/utils/prepareInputItemsForInternalWork.js +1 -1
- package/menu/utils/prepareInputItemsForInternalWork.mjs +30 -31
- package/package-metadata.mjs +1 -1
- package/package.json +6 -6
- package/panelbar/PanelBar.mjs +2 -7
- package/panelbar/util.js +1 -1
- package/panelbar/util.mjs +27 -40
- package/splitter/SplitterBar.mjs +23 -40
- package/splitter/SplitterPane.mjs +1 -11
- package/stacklayout/StackLayout.mjs +2 -14
- package/stepper/Step.mjs +25 -46
- package/stepper/Stepper.js +1 -1
- package/stepper/Stepper.mjs +147 -186
- package/tabstrip/TabStripContent.mjs +2 -14
- package/tabstrip/TabStripTab.mjs +2 -9
- package/tilelayout/InternalTile.mjs +31 -19
- package/tilelayout/ResizeHandlers.mjs +7 -1
- package/tilelayout/TileLayout.mjs +24 -20
- package/timeline/TimelineCard.mjs +1 -4
- package/timeline/TimelineHorizontal.mjs +52 -63
- package/timeline/TimelineVertical.mjs +7 -5
- package/timeline/utils.mjs +4 -1
package/drawer/Drawer.mjs
CHANGED
|
@@ -30,16 +30,16 @@ const u = t.forwardRef((l, p) => {
|
|
|
30
30
|
tabIndex: g,
|
|
31
31
|
onOverlayClick: E,
|
|
32
32
|
onSelect: s
|
|
33
|
-
} = l, a = t.useRef(null), N = t.useCallback(
|
|
34
|
-
()
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
} = l, a = t.useRef(null), N = t.useCallback(() => {
|
|
34
|
+
a.current && a.current.focus();
|
|
35
|
+
}, []);
|
|
36
|
+
t.useImperativeHandle(
|
|
37
|
+
p,
|
|
38
|
+
() => ({
|
|
39
|
+
element: a.current,
|
|
40
|
+
focus: N
|
|
41
|
+
})
|
|
38
42
|
);
|
|
39
|
-
t.useImperativeHandle(p, () => ({
|
|
40
|
-
element: a.current,
|
|
41
|
-
focus: N
|
|
42
|
-
}));
|
|
43
43
|
const C = t.useCallback(
|
|
44
44
|
(P, R, d) => {
|
|
45
45
|
if (i && s) {
|
|
@@ -82,18 +82,7 @@ const u = t.forwardRef((l, p) => {
|
|
|
82
82
|
onSelect: C
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
/* @__PURE__ */ t.createElement(
|
|
86
|
-
"div",
|
|
87
|
-
{
|
|
88
|
-
className: D,
|
|
89
|
-
ref: a,
|
|
90
|
-
dir: c,
|
|
91
|
-
style: h,
|
|
92
|
-
tabIndex: g
|
|
93
|
-
},
|
|
94
|
-
i && /* @__PURE__ */ t.createElement(I, null),
|
|
95
|
-
w
|
|
96
|
-
)
|
|
85
|
+
/* @__PURE__ */ t.createElement("div", { className: D, ref: a, dir: c, style: h, tabIndex: g }, i && /* @__PURE__ */ t.createElement(I, null), w)
|
|
97
86
|
);
|
|
98
87
|
});
|
|
99
88
|
u.propTypes = {
|
package/drawer/DrawerContent.mjs
CHANGED
|
@@ -11,9 +11,12 @@ import t from "prop-types";
|
|
|
11
11
|
import { classNames as p } from "@progress/kendo-react-common";
|
|
12
12
|
const s = e.forwardRef((n, a) => {
|
|
13
13
|
const { children: o, className: c, style: l } = n, r = e.useRef(null);
|
|
14
|
-
e.useImperativeHandle(
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
e.useImperativeHandle(
|
|
15
|
+
a,
|
|
16
|
+
() => ({
|
|
17
|
+
element: r.current
|
|
18
|
+
})
|
|
19
|
+
);
|
|
17
20
|
const m = p(
|
|
18
21
|
{
|
|
19
22
|
"k-drawer-content": !0
|
package/drawer/DrawerItem.mjs
CHANGED
|
@@ -25,17 +25,17 @@ const d = e.forwardRef((s, u) => {
|
|
|
25
25
|
tabIndex: x,
|
|
26
26
|
children: k,
|
|
27
27
|
...g
|
|
28
|
-
} = s, { expanded: F, mini: H, item: N } = e.useContext(j), r = e.useRef(null), i = e.useCallback(
|
|
29
|
-
()
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
} = s, { expanded: F, mini: H, item: N } = e.useContext(j), r = e.useRef(null), i = e.useCallback(() => {
|
|
29
|
+
r.current && r.current.focus();
|
|
30
|
+
}, []);
|
|
31
|
+
e.useImperativeHandle(
|
|
32
|
+
u,
|
|
33
|
+
() => ({
|
|
34
|
+
element: r.current,
|
|
35
|
+
focus: i,
|
|
36
|
+
props: s
|
|
37
|
+
})
|
|
33
38
|
);
|
|
34
|
-
e.useImperativeHandle(u, () => ({
|
|
35
|
-
element: r.current,
|
|
36
|
-
focus: i,
|
|
37
|
-
props: s
|
|
38
|
-
}));
|
|
39
39
|
const w = v(
|
|
40
40
|
"k-drawer-item",
|
|
41
41
|
{
|
|
@@ -12,141 +12,120 @@ import { DrawerContext as G } from "./context/DrawerContext.mjs";
|
|
|
12
12
|
import { DrawerItem as J } from "./DrawerItem.mjs";
|
|
13
13
|
import { validatePackage as Q, shouldShowValidationUI as Y, classNames as h, Navigation as Z, WatermarkOverlay as ee } from "@progress/kendo-react-common";
|
|
14
14
|
import { packageMetadata as E } from "../package-metadata.mjs";
|
|
15
|
-
const te = 240, ae = 50, re = { type: "slide", duration: 200 }, ne = { type: "slide", duration: 0 }, T = t.forwardRef(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
() => {
|
|
15
|
+
const te = 240, ae = 50, re = { type: "slide", duration: 200 }, ne = { type: "slide", duration: 0 }, T = t.forwardRef(
|
|
16
|
+
(g, W) => {
|
|
17
|
+
const { children: x, className: A, style: p } = g;
|
|
18
|
+
Q(E);
|
|
19
|
+
const C = Y(E), {
|
|
20
|
+
animation: m,
|
|
21
|
+
expanded: d,
|
|
22
|
+
mode: c,
|
|
23
|
+
position: o,
|
|
24
|
+
onOverlayClick: O,
|
|
25
|
+
mini: s,
|
|
26
|
+
dir: v,
|
|
27
|
+
width: y,
|
|
28
|
+
miniWidth: w,
|
|
29
|
+
items: f,
|
|
30
|
+
item: M,
|
|
31
|
+
onSelect: P
|
|
32
|
+
} = t.useContext(G), i = t.useRef(null), _ = t.useCallback(() => {
|
|
33
33
|
i.current && i.current.focus();
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
n.preventDefault(), r.focusPrevious(a);
|
|
96
|
-
},
|
|
97
|
-
Enter: (a, r, n) => {
|
|
98
|
-
n.preventDefault(), a.click();
|
|
34
|
+
}, []), e = typeof m != "boolean" ? m : m === !1 ? ne : re, k = y || te, N = w || ae;
|
|
35
|
+
t.useImperativeHandle(
|
|
36
|
+
W,
|
|
37
|
+
() => ({
|
|
38
|
+
element: i.current,
|
|
39
|
+
focus: _
|
|
40
|
+
})
|
|
41
|
+
);
|
|
42
|
+
const L = t.useMemo(
|
|
43
|
+
() => "k-drawer " + h(
|
|
44
|
+
{
|
|
45
|
+
"k-drawer-start": o === "start",
|
|
46
|
+
"k-drawer-end": o === "end"
|
|
47
|
+
},
|
|
48
|
+
A
|
|
49
|
+
),
|
|
50
|
+
[o]
|
|
51
|
+
), R = {
|
|
52
|
+
opacity: 1,
|
|
53
|
+
flexBasis: k,
|
|
54
|
+
WebkitTransition: "all " + (e && e.duration) + "ms",
|
|
55
|
+
transition: "all " + (e && e.duration) + "ms"
|
|
56
|
+
}, U = {
|
|
57
|
+
opacity: 1,
|
|
58
|
+
transform: "translateX(0px)",
|
|
59
|
+
WebkitTransition: "all " + (e && e.duration) + "ms",
|
|
60
|
+
transition: "all " + (e && e.duration) + "ms"
|
|
61
|
+
}, X = {
|
|
62
|
+
opacity: s ? 1 : 0,
|
|
63
|
+
flexBasis: s ? N : 0,
|
|
64
|
+
WebkitTransition: "all " + (e && e.duration) + "ms",
|
|
65
|
+
transition: "all " + (e && e.duration) + "ms"
|
|
66
|
+
}, F = {
|
|
67
|
+
opacity: 0,
|
|
68
|
+
transform: "translateX(-100%)",
|
|
69
|
+
WebkitTransition: "all " + (e && e.duration) + "ms",
|
|
70
|
+
transition: "all " + (e && e.duration) + "ms"
|
|
71
|
+
}, H = {
|
|
72
|
+
opacity: 0,
|
|
73
|
+
transform: "translateX(100%)",
|
|
74
|
+
WebkitTransition: "all " + (e && e.duration) + "ms",
|
|
75
|
+
transition: "all " + (e && e.duration) + "ms"
|
|
76
|
+
}, b = {
|
|
77
|
+
transform: "translateX(0%)",
|
|
78
|
+
WebkitTransitionDuration: (e && e.duration) + "ms",
|
|
79
|
+
transitionDuration: (e && e.duration) + "ms"
|
|
80
|
+
}, K = d ? c === "push" ? R : U : c === "push" ? X : v === "ltr" && o === "start" || v === "rtl" && o === "end" ? s ? b : F : s ? b : H, D = t.useMemo(
|
|
81
|
+
() => new Z({
|
|
82
|
+
root: i,
|
|
83
|
+
selectors: ["ul.k-drawer-items li.k-drawer-item:not(.k-drawer-separator)"],
|
|
84
|
+
keyboardEvents: {
|
|
85
|
+
keydown: {
|
|
86
|
+
ArrowDown: (a, r, n) => {
|
|
87
|
+
n.preventDefault(), r.focusNext(a);
|
|
88
|
+
},
|
|
89
|
+
ArrowUp: (a, r, n) => {
|
|
90
|
+
n.preventDefault(), r.focusPrevious(a);
|
|
91
|
+
},
|
|
92
|
+
Enter: (a, r, n) => {
|
|
93
|
+
n.preventDefault(), a.click();
|
|
94
|
+
}
|
|
99
95
|
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
[]
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"aria-orientation": "vertical",
|
|
115
|
-
onKeyDown: S
|
|
116
|
-
},
|
|
117
|
-
f.map(
|
|
118
|
-
(a, r) => {
|
|
119
|
-
const { className: n, level: u, ...j } = a, V = u != null ? u : 0, $ = h(
|
|
120
|
-
n,
|
|
121
|
-
s ? "" : `k-level-${V}`
|
|
122
|
-
), q = {
|
|
123
|
-
index: r,
|
|
124
|
-
className: $,
|
|
125
|
-
...j,
|
|
126
|
-
onSelect: P
|
|
127
|
-
}, z = M || J;
|
|
128
|
-
return /* @__PURE__ */ t.createElement(z, { key: r, ...q });
|
|
129
|
-
}
|
|
130
|
-
)
|
|
131
|
-
), I = /* @__PURE__ */ t.createElement(
|
|
132
|
-
"div",
|
|
133
|
-
{
|
|
134
|
-
style: e ? { ...K, ...p } : p,
|
|
135
|
-
className: L,
|
|
136
|
-
ref: i
|
|
137
|
-
},
|
|
138
|
-
/* @__PURE__ */ t.createElement(
|
|
96
|
+
},
|
|
97
|
+
tabIndex: 0,
|
|
98
|
+
rovingTabIndex: !0
|
|
99
|
+
}),
|
|
100
|
+
[]
|
|
101
|
+
), S = t.useCallback(D.triggerKeyboardEvent.bind(D), []), B = f && /* @__PURE__ */ t.createElement("ul", { className: "k-drawer-items", role: "menubar", "aria-orientation": "vertical", onKeyDown: S }, f.map((a, r) => {
|
|
102
|
+
const { className: n, level: u, ...j } = a, V = u != null ? u : 0, $ = h(n, s ? "" : `k-level-${V}`), q = {
|
|
103
|
+
index: r,
|
|
104
|
+
className: $,
|
|
105
|
+
...j,
|
|
106
|
+
onSelect: P
|
|
107
|
+
}, z = M || J;
|
|
108
|
+
return /* @__PURE__ */ t.createElement(z, { key: r, ...q });
|
|
109
|
+
})), I = /* @__PURE__ */ t.createElement(
|
|
139
110
|
"div",
|
|
140
111
|
{
|
|
141
|
-
|
|
142
|
-
|
|
112
|
+
style: e ? { ...K, ...p } : p,
|
|
113
|
+
className: L,
|
|
114
|
+
ref: i
|
|
143
115
|
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
116
|
+
/* @__PURE__ */ t.createElement(
|
|
117
|
+
"div",
|
|
118
|
+
{
|
|
119
|
+
className: "k-drawer-wrapper",
|
|
120
|
+
style: !d && s && c === "overlay" ? { width: N } : { width: k }
|
|
121
|
+
},
|
|
122
|
+
B || x
|
|
123
|
+
),
|
|
124
|
+
C && /* @__PURE__ */ t.createElement(ee, null)
|
|
125
|
+
);
|
|
126
|
+
return c === "overlay" ? /* @__PURE__ */ t.createElement(t.Fragment, null, d && /* @__PURE__ */ t.createElement("div", { className: "k-overlay", onClick: O }), I) : I;
|
|
127
|
+
}
|
|
128
|
+
);
|
|
150
129
|
T.propTypes = {
|
|
151
130
|
children: l.any,
|
|
152
131
|
className: l.string,
|
|
@@ -13,10 +13,7 @@ import { packageMetadata as P } from "../package-metadata.mjs";
|
|
|
13
13
|
import { chevronDownIcon as A, chevronUpIcon as T } from "@progress/kendo-svg-icons";
|
|
14
14
|
const I = e.forwardRef((n, y) => {
|
|
15
15
|
w(P);
|
|
16
|
-
const i = e.useRef(null), [g, u] = e.useState(!1), r = e.useCallback(
|
|
17
|
-
() => ({ element: i.current }),
|
|
18
|
-
[]
|
|
19
|
-
);
|
|
16
|
+
const i = e.useRef(null), [g, u] = e.useState(!1), r = e.useCallback(() => ({ element: i.current }), []);
|
|
20
17
|
e.useImperativeHandle(y, r);
|
|
21
18
|
const {
|
|
22
19
|
expanded: t = !1,
|
|
@@ -30,12 +27,16 @@ const I = e.forwardRef((n, y) => {
|
|
|
30
27
|
collapseSVGIcon: k
|
|
31
28
|
} = n, N = e.useCallback(
|
|
32
29
|
(l) => {
|
|
33
|
-
p(s, l, r(), {
|
|
30
|
+
p(s, l, r(), {
|
|
31
|
+
expanded: t
|
|
32
|
+
});
|
|
34
33
|
},
|
|
35
34
|
[s, t]
|
|
36
35
|
), h = e.useCallback(
|
|
37
36
|
(l) => {
|
|
38
|
-
(l.keyCode === x.enter || l.keyCode === x.space) && (l.preventDefault(), p(s, l, r(), {
|
|
37
|
+
(l.keyCode === x.enter || l.keyCode === x.space) && (l.preventDefault(), p(s, l, r(), {
|
|
38
|
+
expanded: t
|
|
39
|
+
}));
|
|
39
40
|
},
|
|
40
41
|
[s, t]
|
|
41
42
|
), C = e.useCallback(() => {
|
|
@@ -47,15 +48,11 @@ const I = e.forwardRef((n, y) => {
|
|
|
47
48
|
"div",
|
|
48
49
|
{
|
|
49
50
|
ref: i,
|
|
50
|
-
className: v(
|
|
51
|
-
"k-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"k-focus": g && !o,
|
|
56
|
-
"k-disabled": o
|
|
57
|
-
}
|
|
58
|
-
),
|
|
51
|
+
className: v("k-expander", n.className, {
|
|
52
|
+
"k-expanded": t,
|
|
53
|
+
"k-focus": g && !o,
|
|
54
|
+
"k-disabled": o
|
|
55
|
+
}),
|
|
59
56
|
onFocus: B,
|
|
60
57
|
onBlur: R,
|
|
61
58
|
style: n.style,
|
|
@@ -8,15 +8,9 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import { classNames as t } from "@progress/kendo-react-common";
|
|
10
10
|
import * as a from "react";
|
|
11
|
-
const r = a.forwardRef(
|
|
12
|
-
"div",
|
|
13
|
-
|
|
14
|
-
ref: n,
|
|
15
|
-
...e,
|
|
16
|
-
className: t("k-expander-content-wrapper", e.className)
|
|
17
|
-
},
|
|
18
|
-
/* @__PURE__ */ a.createElement("div", { className: "k-expander-content" }, e.children)
|
|
19
|
-
));
|
|
11
|
+
const r = a.forwardRef(
|
|
12
|
+
(e, n) => /* @__PURE__ */ a.createElement("div", { ref: n, ...e, className: t("k-expander-content-wrapper", e.className) }, /* @__PURE__ */ a.createElement("div", { className: "k-expander-content" }, e.children))
|
|
13
|
+
);
|
|
20
14
|
r.displayName = "KendoReactExpansionPanelContent";
|
|
21
15
|
export {
|
|
22
16
|
r as ExpansionPanelContent
|
|
@@ -47,16 +47,7 @@ const c = i.forwardRef((t, g) => {
|
|
|
47
47
|
gridTemplateRows: v,
|
|
48
48
|
...u
|
|
49
49
|
};
|
|
50
|
-
return /* @__PURE__ */ i.createElement(
|
|
51
|
-
"div",
|
|
52
|
-
{
|
|
53
|
-
ref: r,
|
|
54
|
-
className: p,
|
|
55
|
-
style: w,
|
|
56
|
-
id: h || f
|
|
57
|
-
},
|
|
58
|
-
y
|
|
59
|
-
);
|
|
50
|
+
return /* @__PURE__ */ i.createElement("div", { ref: r, className: p, style: w, id: h || f }, y);
|
|
60
51
|
}), o = {
|
|
61
52
|
hAlign: "stretch",
|
|
62
53
|
vAlign: "stretch",
|
|
@@ -23,16 +23,7 @@ const s = e.forwardRef((n, i) => {
|
|
|
23
23
|
gridArea: `${u || "auto"} / ${y || "auto"} / ${r ? "span " + r : "auto"} / ${o ? "span " + o : "auto"}`,
|
|
24
24
|
...m
|
|
25
25
|
};
|
|
26
|
-
return /* @__PURE__ */ e.createElement(
|
|
27
|
-
"div",
|
|
28
|
-
{
|
|
29
|
-
ref: a,
|
|
30
|
-
className: c,
|
|
31
|
-
style: g,
|
|
32
|
-
id: d || f
|
|
33
|
-
},
|
|
34
|
-
p
|
|
35
|
-
);
|
|
26
|
+
return /* @__PURE__ */ e.createElement("div", { ref: a, className: c, style: g, id: d || f }, p);
|
|
36
27
|
});
|
|
37
28
|
s.propTypes = {
|
|
38
29
|
className: t.string,
|
package/index.d.mts
CHANGED
|
@@ -20,45 +20,7 @@ import { SVGIcon } from '@progress/kendo-react-common';
|
|
|
20
20
|
/**
|
|
21
21
|
* Represents the [KendoReact ActionSheet]({% slug overview_actionsheet %}) component.
|
|
22
22
|
*/
|
|
23
|
-
export declare
|
|
24
|
-
/** @hidden */
|
|
25
|
-
static displayName: string;
|
|
26
|
-
/** @hidden */
|
|
27
|
-
static propTypes: {
|
|
28
|
-
items: PropTypes.Requireable<any[]>;
|
|
29
|
-
subTitle: PropTypes.Requireable<string>;
|
|
30
|
-
title: PropTypes.Requireable<string>;
|
|
31
|
-
navigatable: PropTypes.Requireable<boolean>;
|
|
32
|
-
navigatableElements: PropTypes.Requireable<any[]>;
|
|
33
|
-
};
|
|
34
|
-
/** @hidden */
|
|
35
|
-
static defaultProps: {
|
|
36
|
-
navigatable: boolean;
|
|
37
|
-
navigatableElements: never[];
|
|
38
|
-
};
|
|
39
|
-
private actionSheetRef;
|
|
40
|
-
private actionSheetTitleClass;
|
|
41
|
-
private ariaLabeledBy;
|
|
42
|
-
private navigation?;
|
|
43
|
-
private animationDuration;
|
|
44
|
-
private bottomPosition;
|
|
45
|
-
/** @hidden */
|
|
46
|
-
constructor(props: ActionSheetProps);
|
|
47
|
-
/** @hidden */
|
|
48
|
-
componentDidMount(): void;
|
|
49
|
-
/** @hidden */
|
|
50
|
-
componentDidUpdate(_prevProps: Readonly<ActionSheetProps>, prevState: Readonly<ActionSheetState>): void;
|
|
51
|
-
/** @hidden */
|
|
52
|
-
render(): JSX_2.Element;
|
|
53
|
-
private handleKeyDown;
|
|
54
|
-
private onTab;
|
|
55
|
-
private handleOverlayClick;
|
|
56
|
-
private handleItemClick;
|
|
57
|
-
private onEnter;
|
|
58
|
-
private onEscape;
|
|
59
|
-
private hideActionSheet;
|
|
60
|
-
private children;
|
|
61
|
-
}
|
|
23
|
+
export declare const ActionSheet: React_2.ForwardRefExoticComponent<ActionSheetProps & React_2.RefAttributes<ActionSheetHandle | null>>;
|
|
62
24
|
|
|
63
25
|
/**
|
|
64
26
|
* @hidden
|
|
@@ -89,11 +51,42 @@ export declare interface ActionSheetContentProps extends ActionSheetChildrenProp
|
|
|
89
51
|
overflowHidden?: boolean;
|
|
90
52
|
}
|
|
91
53
|
|
|
54
|
+
/**
|
|
55
|
+
* The default props of the ActionSheet component.
|
|
56
|
+
*/
|
|
57
|
+
export declare const actionSheetDefaultProps: ActionSheetDefaultPropsType;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The default props interface of the ActionSheet component.
|
|
61
|
+
*/
|
|
62
|
+
export declare type ActionSheetDefaultPropsType = {
|
|
63
|
+
/**
|
|
64
|
+
* Specifies if the ActionSheet can be navigatable with keyboard.
|
|
65
|
+
* Defaults to `true`.
|
|
66
|
+
*
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
navigatable: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Specifies the selectors of the navigatable elements inside the templates of the ActionSheet.
|
|
72
|
+
*
|
|
73
|
+
* @default []
|
|
74
|
+
*/
|
|
75
|
+
navigatableElements: string[];
|
|
76
|
+
};
|
|
77
|
+
|
|
92
78
|
/**
|
|
93
79
|
* The KendoReact ActionSheetFooter component.
|
|
94
80
|
*/
|
|
95
81
|
export declare const ActionSheetFooter: React_2.FunctionComponent<ActionSheetChildrenProps>;
|
|
96
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Represent the `ref` of the ActionSheet component.
|
|
85
|
+
*/
|
|
86
|
+
export declare interface ActionSheetHandle {
|
|
87
|
+
props: ActionSheetProps;
|
|
88
|
+
}
|
|
89
|
+
|
|
97
90
|
/**
|
|
98
91
|
* The KendoReact ActionSheetHeader component.
|
|
99
92
|
*/
|
|
@@ -225,12 +218,16 @@ export declare interface ActionSheetProps {
|
|
|
225
218
|
/**
|
|
226
219
|
* Specifies if the ActionSheet can be navigatable with keyboard.
|
|
227
220
|
* Defaults to `true`.
|
|
221
|
+
*
|
|
222
|
+
* @default true
|
|
228
223
|
*/
|
|
229
|
-
navigatable
|
|
224
|
+
navigatable?: boolean;
|
|
230
225
|
/**
|
|
231
226
|
* Specifies the selectors of the navigatable elements inside the templates of the ActionSheet.
|
|
227
|
+
*
|
|
228
|
+
* @default []
|
|
232
229
|
*/
|
|
233
|
-
navigatableElements
|
|
230
|
+
navigatableElements?: string[];
|
|
234
231
|
/**
|
|
235
232
|
* Controls the popup animation. By default, the open and close animations are disabled.
|
|
236
233
|
*/
|
|
@@ -3697,6 +3694,11 @@ export declare interface StepperProps {
|
|
|
3697
3694
|
* * `vertical`
|
|
3698
3695
|
*/
|
|
3699
3696
|
orientation?: 'horizontal' | 'vertical';
|
|
3697
|
+
/**
|
|
3698
|
+
* Applicable for scenarios when keyboard is used for navigation. Indicates whether
|
|
3699
|
+
* the selection will change upon focus change or it will require additional action
|
|
3700
|
+
* (Enter or Space key press) in order to select the focused step. Defaults to `false`.
|
|
3701
|
+
*/
|
|
3700
3702
|
selectOnFocus?: boolean;
|
|
3701
3703
|
/**
|
|
3702
3704
|
* Sets additional CSS styles to the Stepper.
|