@progress/kendo-react-layout 10.2.0 → 11.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.
@@ -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"),m=require("prop-types"),V=require("@progress/kendo-react-animation"),x=require("@progress/kendo-react-common"),K=require("./ActionSheetItem.js"),H=require("./ActionSheetHeader.js"),W=require("./ActionSheetFooter.js"),X=require("./ActionSheetContent.js");function Y(e){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const d=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(u,r,d.get?d:{enumerable:!0,get:()=>e[r]})}}return u.default=e,Object.freeze(u)}const n=Y(Q),C=n.forwardRef((e,u)=>{var q,_;const{navigatableElements:r=S.navigatableElements,navigatable:d=S.navigatable,position:F=S.position,animationDuration:o=300,prefixActions:D,suffixActions:I,filter:O}=e,L=(t,i,a)=>{a.preventDefault(),a.shiftKey?i.focusPrevious(t):i.focusNext(t)},M=(t,i,a)=>{if(t.ariaDisabled)return;const v=t.className&&t.className.indexOf?t.className.indexOf("k-actionsheet-item")!==-1:!1,E=i.elements.filter(c=>c.className.indexOf("k-actionsheet-item")!==-1);if(v&&e.onItemClick){a.preventDefault();const c=e.items[E.indexOf(t)];e.onItemClick.call(void 0,{syntheticEvent:a,item:c,title:c&&c.title})}if(v&&e.onItemSelect){a.preventDefault();const c=e.items[E.indexOf(t)];e.onItemSelect.call(void 0,{syntheticEvent:a,item:c,title:c&&c.title})}e.animation||f()},$=(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||f()},f=()=>{h({show:!1})},B=t=>{d&&b.current.triggerKeyboardEvent(t)},z=t=>{e.onOverlayClick&&e.onOverlayClick.call(void 0,t),e.onClose&&e.onClose.call(void 0,t),e.animation||f()},R=t=>{e.onItemClick&&e.onItemClick.call(void 0,t),e.onItemSelect&&e.onItemSelect.call(void 0,t),e.animation||f()},U=t=>{const i={};return n.Children.forEach(t,a=>{a&&(i[a.type.displayName]=a)}),i},w=n.useRef(null),N=n.useRef(null);n.useImperativeHandle(w,()=>({props:e})),n.useImperativeHandle(u,()=>w.current);const b=n.useRef(void 0),g=n.useRef({bottom:"0",width:"100%"}),A=n.useRef(void 0),[l,G]=n.useState({show:!1,slide:!1}),h=t=>{G(i=>({...i,...t}))};n.useEffect(()=>{e.expand&&!l.show&&h({show:!0})},[]),n.useEffect(()=>{const t=N.current;if(e.expand&&!l.show&&h({show:!0}),e.expand&&l.show&&!l.slide&&h({slide:!0}),!e.expand&&l.show&&l.slide&&h({slide:!1}),A!==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(v=>x.FOCUSABLE_ELEMENTS.concat(r).map(E=>`${v} ${E}`)).flat()];b.current=new x.Navigation({tabIndex:e.tabIndex||0,root:N,rovingTabIndex:!1,selectors:a,keyboardEvents:{keydown:{Tab:L,Enter:M,Escape:$}}}),b.current.focusElement(b.current.first,null)}A.current={...l}});const T="k-actionsheet-title",P=T,s=(q=e.items)==null?void 0:q.filter(t=>!t.group||t.group==="top"),k=(_=e.items)==null?void 0:_.filter(t=>t.group==="bottom"),J=s&&s.length>0&&k&&k.length>0,y=U(e.children),j=l.slide&&n.createElement("div",{className:x.classNames(`k-actionsheet k-actionsheet-${F}`,e.className),role:"dialog","aria-modal":"true","aria-hidden":!1,"aria-labelledby":P,ref:N,onKeyDown:B},y[H.headerDisplayName]&&!e.title&&!e.subTitle&&y[H.headerDisplayName],(e.title||e.subTitle)&&n.createElement("div",{className:"k-actionsheet-titlebar"},n.createElement("div",{className:"k-actionsheet-titlebar-group k-hbox"},D&&n.createElement("div",{className:"k-actionsheet-actions"},D),n.createElement("div",{className:T,id:P},n.createElement("div",{className:"k-text-center"},e.title),e.subTitle&&n.createElement("div",{className:"k-actionsheet-subtitle k-text-center"},e.subTitle)),I&&n.createElement("div",{className:"k-actionsheet-actions"},I)),O&&n.createElement("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter"},O)),y[X.contentDisplayName]||n.createElement("div",{className:"k-actionsheet-content"},n.createElement("div",{className:"k-list-ul",role:"group"},s&&s.map((t,i)=>n.createElement(K.ActionSheetItem,{...t,id:i,key:i,item:t,tabIndex:e.tabIndex||0,onClick:R})),J&&n.createElement("hr",{className:"k-hr"}),k&&k.map((t,i)=>n.createElement(K.ActionSheetItem,{...t,id:i+((s==null?void 0:s.length)||0),key:i,item:t,tabIndex:e.tabIndex||0,onClick:R})))),y[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:z}),e.animation?n.createElement(V.Animation,{transitionName:l.slide?"slide-up":"slide-down",onExited:f,transitionEnterDuration:typeof o=="object"&&Object.keys(o).length>0&&o.openDuration?Number(o.openDuration):Number(o),transitionExitDuration:typeof o=="object"&&Object.keys(o).length>0&&o.closeDuration?Number(o.closeDuration):Number(o),animationEnteringStyle:e.animationStyles||g.current,animationEnteredStyle:e.animationStyles||g.current,animationExitingStyle:e.animationStyles||g.current,exit:!0,enter:!0,appear:!1},j):j):null)}),S={navigatable:!0,navigatableElements:[],position:"bottom"};C.propTypes={items:m.array,subTitle:m.string,title:m.string,navigatable:m.bool,navigatableElements:m.array,position:m.oneOf(["top","bottom","left","right","fullscreen"])};C.displayName="KendoReactActionSheet";exports.ActionSheet=C;exports.actionSheetDefaultProps=S;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Q=require("react"),d=require("prop-types"),W=require("@progress/kendo-react-animation"),x=require("@progress/kendo-react-common"),K=require("./ActionSheetItem.js"),F=require("./ActionSheetHeader.js"),X=require("./ActionSheetFooter.js"),Y=require("./ActionSheetContent.js"),H=require("./ActionSheetView.js");function Z(e){const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const m in e)if(m!=="default"){const h=Object.getOwnPropertyDescriptor(e,m);Object.defineProperty(f,m,h.get?h:{enumerable:!0,get:()=>e[m]})}}return f.default=e,Object.freeze(f)}const n=Z(Q),D=n.forwardRef((e,f)=>{var q,_;const{navigatableElements:m=N.navigatableElements,navigatable:h=N.navigatable,position:V=N.position,animationDuration:o=300,prefixActions:C,suffixActions:I,filter:w}=e,L=(t,i,a)=>{a.preventDefault(),a.shiftKey?i.focusPrevious(t):i.focusNext(t)},M=(t,i,a)=>{if(t.ariaDisabled)return;const c=t.className&&t.className.indexOf?t.className.indexOf("k-actionsheet-item")!==-1:!1,S=i.elements.filter(s=>s.className.indexOf("k-actionsheet-item")!==-1);if(c&&e.onItemClick){a.preventDefault();const s=e.items[S.indexOf(t)];e.onItemClick.call(void 0,{syntheticEvent:a,item:s,title:s&&s.title})}if(c&&e.onItemSelect){a.preventDefault();const s=e.items[S.indexOf(t)];e.onItemSelect.call(void 0,{syntheticEvent:a,item:s,title:s&&s.title})}e.animation||b()},$=(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||b()},b=()=>{y({show:!1})},B=t=>{h&&E.current.triggerKeyboardEvent(t)},z=t=>{e.onOverlayClick&&e.onOverlayClick.call(void 0,t),e.onClose&&e.onClose.call(void 0,t),e.animation||b()},A=t=>{e.onItemClick&&e.onItemClick.call(void 0,t),e.onItemSelect&&e.onItemSelect.call(void 0,t),e.animation||b()},U=t=>{const i={},a=[];return n.Children.forEach(t,c=>{c&&(c.type.displayName===H.ActionSheetViewDisplayName?a.push(c):i[c.type.displayName]=c)}),a.length>0?a:i},O=n.useRef(null),k=n.useRef(null);n.useImperativeHandle(O,()=>({props:e,element:k.current})),n.useImperativeHandle(f,()=>O.current);const E=n.useRef(void 0),g=n.useRef({bottom:"0",width:"100%"}),R=n.useRef(void 0),[l,G]=n.useState({show:!1,slide:!1}),y=t=>{G(i=>({...i,...t}))};n.useEffect(()=>{e.expand&&!l.show&&y({show:!0})},[]),n.useEffect(()=>{const t=k.current;if(e.expand&&!l.show&&y({show:!0}),e.expand&&l.show&&!l.slide&&y({slide:!0}),!e.expand&&l.show&&l.slide&&y({slide:!1}),R!==l&&l.slide&&t&&!e.className&&(t.style.setProperty("--kendo-actionsheet-height","auto"),t.style.setProperty("--kendo-actionsheet-max-height","none")),t&&h){const a=[".k-actionsheet-item",...[".k-actionsheet-footer",".k-actionsheet-content",".k-actionsheet-view",".k-actionsheet-titlebar"].map(c=>x.FOCUSABLE_ELEMENTS.concat(m).map(S=>`${c} ${S}`)).flat()];E.current=new x.Navigation({tabIndex:e.tabIndex||0,root:k,rovingTabIndex:!1,selectors:a,keyboardEvents:{keydown:{Tab:L,Enter:M,Escape:$}}}),E.current.focusElement(E.current.first,null)}R.current={...l}});const T="k-actionsheet-title",P=T,r=(q=e.items)==null?void 0:q.filter(t=>!t.group||t.group==="top"),v=(_=e.items)==null?void 0:_.filter(t=>t.group==="bottom"),J=r&&r.length>0&&v&&v.length>0,u=U(e.children),j=l.slide&&n.createElement("div",{className:x.classNames(`k-actionsheet k-actionsheet-${V}`,e.className),role:"dialog","aria-modal":"true",style:e.style,"aria-hidden":!1,"aria-labelledby":P,ref:k,onKeyDown:B},Array.isArray(u)?n.createElement(n.Fragment,null,u.map(t=>t)):n.createElement(H.ActionSheetView,null,u[F.headerDisplayName]&&!e.title&&!e.subTitle&&u[F.headerDisplayName],(e.title||e.subTitle)&&n.createElement("div",{className:"k-actionsheet-titlebar"},n.createElement("div",{className:"k-actionsheet-titlebar-group"},C&&n.createElement("div",{className:"k-actionsheet-actions"},C),n.createElement("div",{className:T,id:P},n.createElement("div",{className:"k-text-center"},e.title),e.subTitle&&n.createElement("div",{className:"k-actionsheet-subtitle k-text-center"},e.subTitle)),I&&n.createElement("div",{className:"k-actionsheet-actions"},I)),w&&n.createElement("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter"},w)),u[Y.contentDisplayName]||n.createElement("div",{className:"k-actionsheet-content"},n.createElement("div",{className:"k-list-ul",role:"group"},r&&r.map((t,i)=>n.createElement(K.ActionSheetItem,{...t,id:i,key:i,item:t,tabIndex:e.tabIndex||0,onClick:A})),J&&n.createElement("hr",{className:"k-hr"}),v&&v.map((t,i)=>n.createElement(K.ActionSheetItem,{...t,id:i+((r==null?void 0:r.length)||0),key:i,item:t,tabIndex:e.tabIndex||0,onClick:A})))),u[X.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:z}),e.animation?n.createElement(W.Animation,{transitionName:l.slide?"slide-up":"slide-down",onExited:b,transitionEnterDuration:typeof o=="object"&&Object.keys(o).length>0&&o.openDuration?Number(o.openDuration):Number(o),transitionExitDuration:typeof o=="object"&&Object.keys(o).length>0&&o.closeDuration?Number(o.closeDuration):Number(o),animationEnteringStyle:e.animationStyles||g.current,animationEnteredStyle:e.animationStyles||g.current,animationExitingStyle:e.animationStyles||g.current,exit:!0,enter:!0,appear:!1},j):j):null)}),N={navigatable:!0,navigatableElements:[],position:"bottom"};D.propTypes={items:d.array,subTitle:d.string,title:d.string,navigatable:d.bool,navigatableElements:d.array,position:d.oneOf(["top","bottom","left","right","fullscreen"])};D.displayName="KendoReactActionSheet";exports.ActionSheet=D;exports.actionSheetDefaultProps=N;
@@ -6,30 +6,31 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as n from "react";
9
- import r from "prop-types";
10
- import { Animation as J } from "@progress/kendo-react-animation";
11
- import { FOCUSABLE_ELEMENTS as Q, Navigation as V, classNames as W } from "@progress/kendo-react-common";
9
+ import f from "prop-types";
10
+ import { Animation as G } from "@progress/kendo-react-animation";
11
+ import { FOCUSABLE_ELEMENTS as J, Navigation as Q, classNames as W } from "@progress/kendo-react-common";
12
12
  import { ActionSheetItem as P } from "./ActionSheetItem.mjs";
13
13
  import { headerDisplayName as K } from "./ActionSheetHeader.mjs";
14
14
  import { footerDisplayName as X } from "./ActionSheetFooter.mjs";
15
15
  import { contentDisplayName as Y } from "./ActionSheetContent.mjs";
16
+ import { ActionSheetView as Z, ActionSheetViewDisplayName as p } from "./ActionSheetView.mjs";
16
17
  const j = n.forwardRef((e, _) => {
17
- var T, A;
18
+ var A, T;
18
19
  const {
19
- navigatableElements: H = y.navigatableElements,
20
- navigatable: N = y.navigatable,
21
- position: L = y.position,
20
+ navigatableElements: F = v.navigatableElements,
21
+ navigatable: N = v.navigatable,
22
+ position: H = v.position,
22
23
  animationDuration: o = 300,
23
24
  prefixActions: g,
24
- suffixActions: x,
25
- filter: S
26
- } = e, $ = (t, i, a) => {
25
+ suffixActions: S,
26
+ filter: x
27
+ } = e, L = (t, i, a) => {
27
28
  a.preventDefault(), a.shiftKey ? i.focusPrevious(t) : i.focusNext(t);
28
- }, B = (t, i, a) => {
29
+ }, V = (t, i, a) => {
29
30
  if (t.ariaDisabled)
30
31
  return;
31
- const b = t.className && t.className.indexOf ? t.className.indexOf("k-actionsheet-item") !== -1 : !1, E = i.elements.filter((c) => c.className.indexOf("k-actionsheet-item") !== -1);
32
- if (b && e.onItemClick) {
32
+ const s = t.className && t.className.indexOf ? t.className.indexOf("k-actionsheet-item") !== -1 : !1, E = i.elements.filter((c) => c.className.indexOf("k-actionsheet-item") !== -1);
33
+ if (s && e.onItemClick) {
33
34
  a.preventDefault();
34
35
  const c = e.items[E.indexOf(t)];
35
36
  e.onItemClick.call(void 0, {
@@ -38,7 +39,7 @@ const j = n.forwardRef((e, _) => {
38
39
  title: c && c.title
39
40
  });
40
41
  }
41
- if (b && e.onItemSelect) {
42
+ if (s && e.onItemSelect) {
42
43
  a.preventDefault();
43
44
  const c = e.items[E.indexOf(t)];
44
45
  e.onItemSelect.call(void 0, {
@@ -47,76 +48,79 @@ const j = n.forwardRef((e, _) => {
47
48
  title: c && c.title
48
49
  });
49
50
  }
50
- e.animation || m();
51
- }, F = (t, i, a) => {
52
- e.onOverlayClick && (a.preventDefault(), e.onOverlayClick.call(void 0, a)), e.onClose && (a.preventDefault(), e.onClose.call(void 0, a)), e.animation || m();
53
- }, m = () => {
54
- f({ show: !1 });
51
+ e.animation || d();
52
+ }, $ = (t, i, a) => {
53
+ e.onOverlayClick && (a.preventDefault(), e.onOverlayClick.call(void 0, a)), e.onClose && (a.preventDefault(), e.onClose.call(void 0, a)), e.animation || d();
54
+ }, d = () => {
55
+ u({ show: !1 });
56
+ }, B = (t) => {
57
+ N && y.current.triggerKeyboardEvent(t);
55
58
  }, M = (t) => {
56
- N && d.current.triggerKeyboardEvent(t);
57
- }, U = (t) => {
58
- e.onOverlayClick && e.onOverlayClick.call(void 0, t), e.onClose && e.onClose.call(void 0, t), e.animation || m();
59
+ e.onOverlayClick && e.onOverlayClick.call(void 0, t), e.onClose && e.onClose.call(void 0, t), e.animation || d();
59
60
  }, C = (t) => {
60
- e.onItemClick && e.onItemClick.call(void 0, t), e.onItemSelect && e.onItemSelect.call(void 0, t), e.animation || m();
61
- }, q = (t) => {
62
- const i = {};
63
- return n.Children.forEach(t, (a) => {
64
- a && (i[a.type.displayName] = a);
65
- }), i;
66
- }, I = n.useRef(null), k = n.useRef(null);
67
- n.useImperativeHandle(I, () => ({ props: e })), n.useImperativeHandle(
61
+ e.onItemClick && e.onItemClick.call(void 0, t), e.onItemSelect && e.onItemSelect.call(void 0, t), e.animation || d();
62
+ }, U = (t) => {
63
+ const i = {}, a = [];
64
+ return n.Children.forEach(t, (s) => {
65
+ s && (s.type.displayName === p ? a.push(s) : i[s.type.displayName] = s);
66
+ }), a.length > 0 ? a : i;
67
+ }, I = n.useRef(null), h = n.useRef(null);
68
+ n.useImperativeHandle(
69
+ I,
70
+ () => ({ props: e, element: h.current })
71
+ ), n.useImperativeHandle(
68
72
  _,
69
73
  () => I.current
70
74
  );
71
- const d = n.useRef(void 0), v = n.useRef({ bottom: "0", width: "100%" }), D = n.useRef(void 0), [l, z] = n.useState({ show: !1, slide: !1 }), f = (t) => {
72
- z((i) => ({ ...i, ...t }));
75
+ const y = n.useRef(void 0), k = n.useRef({ bottom: "0", width: "100%" }), w = n.useRef(void 0), [l, q] = n.useState({ show: !1, slide: !1 }), u = (t) => {
76
+ q((i) => ({ ...i, ...t }));
73
77
  };
74
78
  n.useEffect(() => {
75
- e.expand && !l.show && f({ show: !0 });
79
+ e.expand && !l.show && u({ show: !0 });
76
80
  }, []), n.useEffect(() => {
77
- const t = k.current;
78
- 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 }), D !== l && l.slide && t && !e.className && (t.style.setProperty("--kendo-actionsheet-height", "auto"), t.style.setProperty("--kendo-actionsheet-max-height", "none")), t && N) {
81
+ const t = h.current;
82
+ if (e.expand && !l.show && u({ show: !0 }), e.expand && l.show && !l.slide && u({ slide: !0 }), !e.expand && l.show && l.slide && u({ slide: !1 }), w !== l && l.slide && t && !e.className && (t.style.setProperty("--kendo-actionsheet-height", "auto"), t.style.setProperty("--kendo-actionsheet-max-height", "none")), t && N) {
79
83
  const a = [".k-actionsheet-item", ...[
80
84
  ".k-actionsheet-footer",
81
85
  ".k-actionsheet-content",
86
+ ".k-actionsheet-view",
82
87
  ".k-actionsheet-titlebar"
83
- ].map((b) => Q.concat(H).map(
84
- (E) => `${b} ${E}`
88
+ ].map((s) => J.concat(F).map(
89
+ (E) => `${s} ${E}`
85
90
  )).flat()];
86
- d.current = new V({
91
+ y.current = new Q({
87
92
  tabIndex: e.tabIndex || 0,
88
- root: k,
93
+ root: h,
89
94
  rovingTabIndex: !1,
90
95
  selectors: a,
91
96
  keyboardEvents: {
92
97
  keydown: {
93
- Tab: $,
94
- Enter: B,
95
- Escape: F
98
+ Tab: L,
99
+ Enter: V,
100
+ Escape: $
96
101
  }
97
102
  }
98
- }), d.current.focusElement(d.current.first, null);
103
+ }), y.current.focusElement(y.current.first, null);
99
104
  }
100
- D.current = { ...l };
105
+ w.current = { ...l };
101
106
  });
102
- const w = "k-actionsheet-title", R = w, s = (T = e.items) == null ? void 0 : T.filter(
107
+ const D = "k-actionsheet-title", R = D, r = (A = e.items) == null ? void 0 : A.filter(
103
108
  (t) => !t.group || t.group === "top"
104
- ), u = (A = e.items) == null ? void 0 : A.filter(
109
+ ), b = (T = e.items) == null ? void 0 : T.filter(
105
110
  (t) => t.group === "bottom"
106
- ), G = s && s.length > 0 && u && u.length > 0, h = q(e.children), O = l.slide && /* @__PURE__ */ n.createElement(
111
+ ), z = r && r.length > 0 && b && b.length > 0, m = U(e.children), O = l.slide && /* @__PURE__ */ n.createElement(
107
112
  "div",
108
113
  {
109
- className: W(`k-actionsheet k-actionsheet-${L}`, e.className),
114
+ className: W(`k-actionsheet k-actionsheet-${H}`, e.className),
110
115
  role: "dialog",
111
116
  "aria-modal": "true",
117
+ style: e.style,
112
118
  "aria-hidden": !1,
113
119
  "aria-labelledby": R,
114
- ref: k,
115
- onKeyDown: M
120
+ ref: h,
121
+ onKeyDown: B
116
122
  },
117
- h[K] && !e.title && !e.subTitle && h[K],
118
- (e.title || e.subTitle) && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar" }, /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, g && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-actions" }, g), /* @__PURE__ */ n.createElement("div", { className: w, id: R }, /* @__PURE__ */ n.createElement("div", { className: "k-text-center" }, e.title), e.subTitle && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-subtitle k-text-center" }, e.subTitle)), x && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-actions" }, x)), S && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, S)),
119
- h[Y] || /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-content" }, /* @__PURE__ */ n.createElement("div", { className: "k-list-ul", role: "group" }, s && s.map((t, i) => /* @__PURE__ */ n.createElement(
123
+ Array.isArray(m) ? /* @__PURE__ */ n.createElement(n.Fragment, null, m.map((t) => t)) : /* @__PURE__ */ n.createElement(Z, null, m[K] && !e.title && !e.subTitle && m[K], (e.title || e.subTitle) && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar" }, /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group" }, g && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-actions" }, g), /* @__PURE__ */ n.createElement("div", { className: D, id: R }, /* @__PURE__ */ n.createElement("div", { className: "k-text-center" }, e.title), e.subTitle && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-subtitle k-text-center" }, e.subTitle)), S && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-actions" }, S)), x && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, x)), m[Y] || /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-content" }, /* @__PURE__ */ n.createElement("div", { className: "k-list-ul", role: "group" }, r && r.map((t, i) => /* @__PURE__ */ n.createElement(
120
124
  P,
121
125
  {
122
126
  ...t,
@@ -126,50 +130,49 @@ const j = n.forwardRef((e, _) => {
126
130
  tabIndex: e.tabIndex || 0,
127
131
  onClick: C
128
132
  }
129
- )), G && /* @__PURE__ */ n.createElement("hr", { className: "k-hr" }), u && u.map((t, i) => /* @__PURE__ */ n.createElement(
133
+ )), z && /* @__PURE__ */ n.createElement("hr", { className: "k-hr" }), b && b.map((t, i) => /* @__PURE__ */ n.createElement(
130
134
  P,
131
135
  {
132
136
  ...t,
133
- id: i + ((s == null ? void 0 : s.length) || 0),
137
+ id: i + ((r == null ? void 0 : r.length) || 0),
134
138
  key: i,
135
139
  item: t,
136
140
  tabIndex: e.tabIndex || 0,
137
141
  onClick: C
138
142
  }
139
- )))),
140
- h[X]
143
+ )))), m[X])
141
144
  );
142
- 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
- J,
145
+ 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: M }), e.animation ? /* @__PURE__ */ n.createElement(
146
+ G,
144
147
  {
145
148
  transitionName: l.slide ? "slide-up" : "slide-down",
146
- onExited: m,
149
+ onExited: d,
147
150
  transitionEnterDuration: typeof o == "object" && Object.keys(o).length > 0 && o.openDuration ? Number(o.openDuration) : Number(o),
148
151
  transitionExitDuration: typeof o == "object" && Object.keys(o).length > 0 && o.closeDuration ? Number(o.closeDuration) : Number(o),
149
- animationEnteringStyle: e.animationStyles || v.current,
150
- animationEnteredStyle: e.animationStyles || v.current,
151
- animationExitingStyle: e.animationStyles || v.current,
152
+ animationEnteringStyle: e.animationStyles || k.current,
153
+ animationEnteredStyle: e.animationStyles || k.current,
154
+ animationExitingStyle: e.animationStyles || k.current,
152
155
  exit: !0,
153
156
  enter: !0,
154
157
  appear: !1
155
158
  },
156
159
  O
157
160
  ) : O) : null);
158
- }), y = {
161
+ }), v = {
159
162
  navigatable: !0,
160
163
  navigatableElements: [],
161
164
  position: "bottom"
162
165
  };
163
166
  j.propTypes = {
164
- items: r.array,
165
- subTitle: r.string,
166
- title: r.string,
167
- navigatable: r.bool,
168
- navigatableElements: r.array,
169
- position: r.oneOf(["top", "bottom", "left", "right", "fullscreen"])
167
+ items: f.array,
168
+ subTitle: f.string,
169
+ title: f.string,
170
+ navigatable: f.bool,
171
+ navigatableElements: f.array,
172
+ position: f.oneOf(["top", "bottom", "left", "right", "fullscreen"])
170
173
  };
171
174
  j.displayName = "KendoReactActionSheet";
172
175
  export {
173
176
  j as ActionSheet,
174
- y as actionSheetDefaultProps
177
+ v as actionSheetDefaultProps
175
178
  };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2025 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 client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),n=require("@progress/kendo-react-common"),s="ActionSheetView",a=e.forwardRef((t,c)=>{const i=e.useRef(null);return e.useImperativeHandle(c,()=>i,[]),e.createElement("div",{ref:i,style:t.style,className:n.classNames("k-actionsheet-view",t.className)},t.children)});a.displayName="ActionSheetView";exports.ActionSheetView=a;exports.ActionSheetViewDisplayName=s;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2025 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 client";
9
+ import e from "react";
10
+ import { classNames as c } from "@progress/kendo-react-common";
11
+ const o = "ActionSheetView", s = e.forwardRef((t, a) => {
12
+ const i = e.useRef(null);
13
+ return e.useImperativeHandle(a, () => i, []), /* @__PURE__ */ e.createElement("div", { ref: i, style: t.style, className: c("k-actionsheet-view", t.className) }, t.children);
14
+ });
15
+ s.displayName = "ActionSheetView";
16
+ export {
17
+ s as ActionSheetView,
18
+ o as ActionSheetViewDisplayName
19
+ };