@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
|
@@ -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
|
+
import { MenuHandle } from './menu/components/Menu.js';
|
|
9
|
+
import { MenuProps } from './menu/MenuProps';
|
|
10
|
+
/**
|
|
11
|
+
* Menu wrapper that integrates the Web MCP hook.
|
|
12
|
+
*
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
import * as React from 'react';
|
|
16
|
+
/** @hidden */
|
|
17
|
+
export declare const MenuWrapper: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<MenuHandle>>;
|
|
@@ -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 a=require("react"),i=require("./menu/components/Menu.js"),c=require("@progress/kendo-react-common");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const o=s(a),f=c.withIdHOC(i.Menu),u=o.forwardRef((e,n)=>{const[t,r]=c.useMergedRef(n);return c.useWebMcpRegister("menu",t,e,e.webMcp),o.createElement(f,{...e,ref:r})});u.displayName="KendoReactMenu";exports.MenuWrapper=u;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import * as r from "react";
|
|
9
|
+
import { Menu as o } from "./menu/components/Menu.mjs";
|
|
10
|
+
import { useMergedRef as f, useWebMcpRegister as a, withIdHOC as c } from "@progress/kendo-react-common";
|
|
11
|
+
const i = c(o), u = r.forwardRef((e, t) => {
|
|
12
|
+
const [n, m] = f(t);
|
|
13
|
+
return a("menu", n, e, e.webMcp), /* @__PURE__ */ r.createElement(i, { ...e, ref: m });
|
|
14
|
+
});
|
|
15
|
+
u.displayName = "KendoReactMenu";
|
|
16
|
+
export {
|
|
17
|
+
u as MenuWrapper
|
|
18
|
+
};
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](https://www.telerik.com/kendo-react-ui/components/free?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout&utm_content=banner)
|
|
1
|
+
[](https://www.telerik.com/kendo-react-ui/components/getting-started/free-vs-premium?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout&utm_content=banner)
|
|
2
2
|
|
|
3
3
|
# KendoReact Layout Library for React
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
>
|
|
7
7
|
> - This package is а part of [KendoReact](https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout)—an enterprise-grade UI library with 120+ free and premium components.
|
|
8
8
|
> - It contains both free and premium KendoReact components and tools. To use the premium components, you must install a license key file, whether you are on a paid license or a 30-day free trial. To receive a license key, either [purchase a license](https://www.telerik.com/kendo-react-ui/pricing) or start a [free trial](https://www.telerik.com/download-login-v2-kendo-react-ui). You can use the free components without having to sign up or get a license key.
|
|
9
|
-
> - If you're looking for free React components, check out [Get Started with KendoReact Free](https://www.telerik.com/kendo-react-ui/components/
|
|
9
|
+
> - If you're looking for free React components, check out [Get Started with KendoReact Free](https://www.telerik.com/kendo-react-ui/components/getting-started).
|
|
10
10
|
> - If you have an active license, visit the [KendoReact My License page](https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout) to learn how to configure your KendoReact licensing.
|
|
11
11
|
> - Installing and working with this package indicates that you [accept the KendoReact License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendoreact?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout).
|
|
12
12
|
> - The 30-day free trial gives you access to all KendoReact components and their full functionality. Additionally, for the period of your trial, you can use our legendary technical support provided directly by the KendoReact dev team!
|
|
@@ -558,7 +558,7 @@ import { Timeline } from '@progress/kendo-react-layout';
|
|
|
558
558
|
|
|
559
559
|
The following table outlines the key resources available with KendoReact and KendoReact Free.
|
|
560
560
|
|
|
561
|
-
| | [KendoReact Free](https://www.telerik.com/kendo-react-ui/components/free)
|
|
561
|
+
| | [KendoReact Free](https://www.telerik.com/kendo-react-ui/components/getting-started/free-vs-premium) | [KendoReact](https://www.telerik.com/kendo-react-ui) |
|
|
562
562
|
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
563
563
|
| React components | 50+ | 120+ |
|
|
564
564
|
| Four professional themes | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z" stroke="white" stroke-width="2"/></svg> | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z" stroke="white" stroke-width="2"/></svg> |
|
|
@@ -581,7 +581,7 @@ For any issues you might encounter while working with the KendoReact Layout, use
|
|
|
581
581
|
## Resources
|
|
582
582
|
|
|
583
583
|
- [Getting Started with KendoReact](https://www.telerik.com/kendo-react-ui/components/getting-started/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout)
|
|
584
|
-
- [Get Started with KendoReact Free](https://www.telerik.com/kendo-react-ui/components/
|
|
584
|
+
- [Get Started with KendoReact Free](https://www.telerik.com/kendo-react-ui/components/getting-started)
|
|
585
585
|
- [Getting Started with the KendoReact Layout](https://www.telerik.com/kendo-react-ui/components/layout/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout)
|
|
586
586
|
- [API Reference of the KendoReact Layout](https://www.telerik.com/kendo-react-ui/components/layout/api/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout)
|
|
587
587
|
- [KendoReact Roadmap](https://www.telerik.com/support/whats-new/kendo-react-ui/roadmap?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout)
|
|
@@ -187,6 +187,18 @@ export interface ActionSheetProps {
|
|
|
187
187
|
* Specifies the styles of the ActionSheet component.
|
|
188
188
|
*/
|
|
189
189
|
style?: React.CSSProperties;
|
|
190
|
+
/**
|
|
191
|
+
* Specifies the container element where the ActionSheet will be appended.
|
|
192
|
+
* Defaults to `null` (renders in place). Set to a DOM element (e.g. `document.body`)
|
|
193
|
+
* to escape CSS containing blocks created by `transform`, `backdrop-filter`, etc.
|
|
194
|
+
*
|
|
195
|
+
* @default null
|
|
196
|
+
* @example
|
|
197
|
+
* ```jsx
|
|
198
|
+
* <ActionSheet appendTo={document.body} />
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
appendTo?: HTMLElement | null;
|
|
190
202
|
}
|
|
191
203
|
/**
|
|
192
204
|
* @hidden
|
|
@@ -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 X=require("react"),Y=require("react-dom"),r=require("prop-types"),Z=require("@progress/kendo-react-animation"),N=require("@progress/kendo-react-common"),K=require("./ActionSheetItem.js"),F=require("./ActionSheetHeader.js"),p=require("./ActionSheetFooter.js"),ee=require("./ActionSheetContent.js"),H=require("./ActionSheetView.js");function V(e){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const m in e)if(m!=="default"){const f=Object.getOwnPropertyDescriptor(e,m);Object.defineProperty(d,m,f.get?f:{enumerable:!0,get:()=>e[m]})}}return d.default=e,Object.freeze(d)}const n=V(X),te=V(Y),R=n.forwardRef((e,d)=>{var _,M;const{navigatableElements:m=g.navigatableElements,navigatable:f=g.navigatable,position:L=g.position,animationDuration:l=300,prefixActions:D,suffixActions:w,filter:x}=e,$=(t,a,i)=>{i.preventDefault(),i.shiftKey?a.focusPrevious(t):a.focusNext(t)},B=(t,a,i)=>{if(t.ariaDisabled)return;const c=t.className&&t.className.indexOf?t.className.indexOf("k-actionsheet-item")!==-1:!1,A=a.elements.filter(b=>b.className.indexOf("k-actionsheet-item")!==-1);if(c&&e.onItemSelect){i.preventDefault();const b=e.items[A.indexOf(t)];e.onItemSelect.call(void 0,{syntheticEvent:i,item:b,title:b&&b.title})}e.animation||h()},U=(t,a,i)=>{e.onClose&&(i.preventDefault(),e.onClose.call(void 0,i)),e.animation||h()},h=()=>{y({show:!1})},z=t=>{f&&v.current.triggerKeyboardEvent(t)},G=t=>{e.onClose&&e.onClose.call(void 0,t),e.animation||h()},O=t=>{e.onItemSelect&&e.onItemSelect.call(void 0,t),e.animation||h()},J=t=>{const a={},i=[];return n.Children.forEach(t,c=>{c&&(c.type.displayName===H.ActionSheetViewDisplayName?i.push(c):a[c.type.displayName]=c)}),i.length>0?i:a},T=n.useRef(null),E=n.useRef(null);n.useImperativeHandle(T,()=>({props:e,element:E.current})),n.useImperativeHandle(d,()=>T.current);const v=n.useRef(void 0),k=n.useRef({bottom:"0",width:"100%"}),C=n.useRef(void 0),[o,Q]=n.useState({show:!1,slide:!1}),y=t=>{Q(a=>({...a,...t}))};n.useEffect(()=>{e.expand&&!o.show&&y({show:!0})},[]),n.useEffect(()=>{const t=E.current;if(e.expand&&!o.show&&y({show:!0}),e.expand&&o.show&&!o.slide&&y({slide:!0}),!e.expand&&o.show&&o.slide&&y({slide:!1}),C!==o&&o.slide&&t&&!e.className&&(t.style.setProperty("--kendo-actionsheet-height","auto"),t.style.setProperty("--kendo-actionsheet-max-height","none")),t&&f){const i=[".k-actionsheet-item",...[".k-actionsheet-footer",".k-actionsheet-content",".k-actionsheet-view",".k-actionsheet-titlebar"].map(c=>N.FOCUSABLE_ELEMENTS.concat(m).map(A=>`${c} ${A}`)).flat()];v.current=new N.Navigation({tabIndex:e.tabIndex||0,root:E,rovingTabIndex:!1,selectors:i,keyboardEvents:{keydown:{Tab:$,Enter:B,Escape:U}}}),v.current.focusElement(v.current.first,null)}C.current={...o}});const I="k-actionsheet-title",P=I,s=(_=e.items)==null?void 0:_.filter(t=>!t.group||t.group==="top"),S=(M=e.items)==null?void 0:M.filter(t=>t.group==="bottom"),W=s&&s.length>0&&S&&S.length>0,u=J(e.children),q=o.slide&&n.createElement("div",{className:N.classNames(`k-actionsheet k-actionsheet-${L}`,e.className),role:"dialog","aria-modal":"true",style:e.style,"aria-labelledby":P,ref:E,onKeyDown:z},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||D||w||x)&&n.createElement("div",{className:"k-actionsheet-titlebar"},n.createElement("div",{className:"k-actionsheet-titlebar-group"},D&&n.createElement("div",{className:"k-actionsheet-actions"},D),n.createElement("div",{className:I,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)),w&&n.createElement("div",{className:"k-actionsheet-actions"},w)),x&&n.createElement("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter"},x)),u[ee.contentDisplayName]||n.createElement("div",{className:"k-actionsheet-content"},n.createElement("div",{className:"k-list-ul"},s&&s.map((t,a)=>n.createElement(K.ActionSheetItem,{...t,id:a,key:a,item:t,onClick:O})),W&&n.createElement("hr",{className:"k-hr"}),S&&S.map((t,a)=>n.createElement(K.ActionSheetItem,{...t,id:a+((s==null?void 0:s.length)||0),key:a,item:t,onClick:O})))),u[p.footerDisplayName])),j=n.createElement(n.Fragment,null,e.expand||o.show?n.createElement("div",{className:"k-actionsheet-container"},n.createElement("div",{className:"k-overlay",onClick:G}),e.animation?n.createElement(Z.Animation,{transitionName:o.slide?"slide-up":"slide-down",onExited:h,transitionEnterDuration:typeof l=="object"&&Object.keys(l).length>0&&l.openDuration?Number(l.openDuration):Number(l),transitionExitDuration:typeof l=="object"&&Object.keys(l).length>0&&l.closeDuration?Number(l.closeDuration):Number(l),animationEnteringStyle:e.animationStyles||k.current,animationEnteredStyle:e.animationStyles||k.current,animationExitingStyle:e.animationStyles||k.current,exit:!0,enter:!0,appear:!1},q):n.createElement("div",{className:"k-animation-container k-animation-container-shown"},n.createElement("div",{className:"k-child-animation-container",style:e.animationStyles||k.current},q))):null);return e.appendTo&&N.canUseDOM?te.createPortal(j,e.appendTo):j}),g={navigatable:!0,navigatableElements:[],position:"bottom"};R.propTypes={items:r.array,subTitle:r.node,title:r.node,navigatable:r.bool,navigatableElements:r.array,position:r.oneOf(["top","bottom","left","right","fullscreen"]),appendTo:r.any};R.displayName="KendoReactActionSheet";exports.ActionSheet=R;exports.actionSheetDefaultProps=g;
|
|
@@ -6,87 +6,88 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as n from "react";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
import * as J from "react-dom";
|
|
10
|
+
import r from "prop-types";
|
|
11
|
+
import { Animation as Q } from "@progress/kendo-react-animation";
|
|
12
|
+
import { FOCUSABLE_ELEMENTS as W, Navigation as X, classNames as Y, canUseDOM as Z } from "@progress/kendo-react-common";
|
|
13
|
+
import { ActionSheetItem as K } from "./ActionSheetItem.mjs";
|
|
14
|
+
import { headerDisplayName as j } from "./ActionSheetHeader.mjs";
|
|
15
|
+
import { footerDisplayName as p } from "./ActionSheetFooter.mjs";
|
|
16
|
+
import { contentDisplayName as ee } from "./ActionSheetContent.mjs";
|
|
17
|
+
import { ActionSheetView as te, ActionSheetViewDisplayName as ne } from "./ActionSheetView.mjs";
|
|
18
|
+
const _ = n.forwardRef((e, F) => {
|
|
19
|
+
var O, P;
|
|
19
20
|
const {
|
|
20
|
-
navigatableElements:
|
|
21
|
-
navigatable:
|
|
22
|
-
position:
|
|
21
|
+
navigatableElements: H = g.navigatableElements,
|
|
22
|
+
navigatable: w = g.navigatable,
|
|
23
|
+
position: L = g.position,
|
|
23
24
|
animationDuration: l = 300,
|
|
24
|
-
prefixActions:
|
|
25
|
-
suffixActions:
|
|
26
|
-
filter:
|
|
27
|
-
} = e,
|
|
25
|
+
prefixActions: v,
|
|
26
|
+
suffixActions: k,
|
|
27
|
+
filter: N
|
|
28
|
+
} = e, M = (t, a, i) => {
|
|
28
29
|
i.preventDefault(), i.shiftKey ? a.focusPrevious(t) : a.focusNext(t);
|
|
29
30
|
}, V = (t, a, i) => {
|
|
30
31
|
if (t.ariaDisabled)
|
|
31
32
|
return;
|
|
32
|
-
const s = t.className && t.className.indexOf ? t.className.indexOf("k-actionsheet-item") !== -1 : !1,
|
|
33
|
+
const s = t.className && t.className.indexOf ? t.className.indexOf("k-actionsheet-item") !== -1 : !1, S = a.elements.filter((u) => u.className.indexOf("k-actionsheet-item") !== -1);
|
|
33
34
|
if (s && e.onItemSelect) {
|
|
34
35
|
i.preventDefault();
|
|
35
|
-
const
|
|
36
|
+
const u = e.items[S.indexOf(t)];
|
|
36
37
|
e.onItemSelect.call(void 0, {
|
|
37
38
|
syntheticEvent: i,
|
|
38
|
-
item:
|
|
39
|
-
title:
|
|
39
|
+
item: u,
|
|
40
|
+
title: u && u.title
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
43
|
e.animation || f();
|
|
43
44
|
}, $ = (t, a, i) => {
|
|
44
45
|
e.onClose && (i.preventDefault(), e.onClose.call(void 0, i)), e.animation || f();
|
|
45
46
|
}, f = () => {
|
|
46
|
-
|
|
47
|
+
d({ show: !1 });
|
|
47
48
|
}, B = (t) => {
|
|
48
|
-
|
|
49
|
-
},
|
|
49
|
+
w && E.current.triggerKeyboardEvent(t);
|
|
50
|
+
}, U = (t) => {
|
|
50
51
|
e.onClose && e.onClose.call(void 0, t), e.animation || f();
|
|
51
|
-
},
|
|
52
|
+
}, x = (t) => {
|
|
52
53
|
e.onItemSelect && e.onItemSelect.call(void 0, t), e.animation || f();
|
|
53
|
-
},
|
|
54
|
+
}, q = (t) => {
|
|
54
55
|
const a = {}, i = [];
|
|
55
56
|
return n.Children.forEach(t, (s) => {
|
|
56
|
-
s && (s.type.displayName ===
|
|
57
|
+
s && (s.type.displayName === ne ? i.push(s) : a[s.type.displayName] = s);
|
|
57
58
|
}), i.length > 0 ? i : a;
|
|
58
59
|
}, D = n.useRef(null), h = n.useRef(null);
|
|
59
60
|
n.useImperativeHandle(
|
|
60
61
|
D,
|
|
61
62
|
() => ({ props: e, element: h.current })
|
|
62
63
|
), n.useImperativeHandle(
|
|
63
|
-
|
|
64
|
+
F,
|
|
64
65
|
() => D.current
|
|
65
66
|
);
|
|
66
|
-
const E = n.useRef(void 0),
|
|
67
|
-
|
|
67
|
+
const E = n.useRef(void 0), y = n.useRef({ bottom: "0", width: "100%" }), R = n.useRef(void 0), [o, z] = n.useState({ show: !1, slide: !1 }), d = (t) => {
|
|
68
|
+
z((a) => ({ ...a, ...t }));
|
|
68
69
|
};
|
|
69
70
|
n.useEffect(() => {
|
|
70
|
-
e.expand && !o.show &&
|
|
71
|
+
e.expand && !o.show && d({ show: !0 });
|
|
71
72
|
}, []), n.useEffect(() => {
|
|
72
73
|
const t = h.current;
|
|
73
|
-
if (e.expand && !o.show &&
|
|
74
|
+
if (e.expand && !o.show && d({ show: !0 }), e.expand && o.show && !o.slide && d({ slide: !0 }), !e.expand && o.show && o.slide && d({ slide: !1 }), R !== o && o.slide && t && !e.className && (t.style.setProperty("--kendo-actionsheet-height", "auto"), t.style.setProperty("--kendo-actionsheet-max-height", "none")), t && w) {
|
|
74
75
|
const i = [".k-actionsheet-item", ...[
|
|
75
76
|
".k-actionsheet-footer",
|
|
76
77
|
".k-actionsheet-content",
|
|
77
78
|
".k-actionsheet-view",
|
|
78
79
|
".k-actionsheet-titlebar"
|
|
79
|
-
].map((s) =>
|
|
80
|
-
(
|
|
80
|
+
].map((s) => W.concat(H).map(
|
|
81
|
+
(S) => `${s} ${S}`
|
|
81
82
|
)).flat()];
|
|
82
|
-
E.current = new
|
|
83
|
+
E.current = new X({
|
|
83
84
|
tabIndex: e.tabIndex || 0,
|
|
84
85
|
root: h,
|
|
85
86
|
rovingTabIndex: !1,
|
|
86
87
|
selectors: i,
|
|
87
88
|
keyboardEvents: {
|
|
88
89
|
keydown: {
|
|
89
|
-
Tab:
|
|
90
|
+
Tab: M,
|
|
90
91
|
Enter: V,
|
|
91
92
|
Escape: $
|
|
92
93
|
}
|
|
@@ -95,73 +96,73 @@ const j = n.forwardRef((e, _) => {
|
|
|
95
96
|
}
|
|
96
97
|
R.current = { ...o };
|
|
97
98
|
});
|
|
98
|
-
const
|
|
99
|
+
const T = "k-actionsheet-title", C = T, c = (O = e.items) == null ? void 0 : O.filter(
|
|
99
100
|
(t) => !t.group || t.group === "top"
|
|
100
|
-
), b = (
|
|
101
|
+
), b = (P = e.items) == null ? void 0 : P.filter(
|
|
101
102
|
(t) => t.group === "bottom"
|
|
102
|
-
),
|
|
103
|
+
), G = c && c.length > 0 && b && b.length > 0, m = q(e.children), I = o.slide && /* @__PURE__ */ n.createElement(
|
|
103
104
|
"div",
|
|
104
105
|
{
|
|
105
|
-
className:
|
|
106
|
+
className: Y(`k-actionsheet k-actionsheet-${L}`, e.className),
|
|
106
107
|
role: "dialog",
|
|
107
108
|
"aria-modal": "true",
|
|
108
109
|
style: e.style,
|
|
109
|
-
"aria-
|
|
110
|
-
"aria-labelledby": I,
|
|
110
|
+
"aria-labelledby": C,
|
|
111
111
|
ref: h,
|
|
112
112
|
onKeyDown: B
|
|
113
113
|
},
|
|
114
|
-
Array.isArray(
|
|
115
|
-
|
|
114
|
+
Array.isArray(m) ? /* @__PURE__ */ n.createElement(n.Fragment, null, m.map((t) => t)) : /* @__PURE__ */ n.createElement(te, null, m[j] && !e.title && !e.subTitle && m[j], (e.title || e.subTitle || v || k || N) && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar" }, /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group" }, v && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-actions" }, v), /* @__PURE__ */ n.createElement("div", { className: T, id: C }, /* @__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)), k && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-actions" }, k)), N && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, N)), m[ee] || /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-content" }, /* @__PURE__ */ n.createElement("div", { className: "k-list-ul" }, c && c.map((t, a) => /* @__PURE__ */ n.createElement(
|
|
115
|
+
K,
|
|
116
116
|
{
|
|
117
117
|
...t,
|
|
118
118
|
id: a,
|
|
119
119
|
key: a,
|
|
120
120
|
item: t,
|
|
121
|
-
onClick:
|
|
121
|
+
onClick: x
|
|
122
122
|
}
|
|
123
|
-
)),
|
|
124
|
-
|
|
123
|
+
)), G && /* @__PURE__ */ n.createElement("hr", { className: "k-hr" }), b && b.map((t, a) => /* @__PURE__ */ n.createElement(
|
|
124
|
+
K,
|
|
125
125
|
{
|
|
126
126
|
...t,
|
|
127
127
|
id: a + ((c == null ? void 0 : c.length) || 0),
|
|
128
128
|
key: a,
|
|
129
129
|
item: t,
|
|
130
|
-
onClick:
|
|
130
|
+
onClick: x
|
|
131
131
|
}
|
|
132
|
-
)))),
|
|
133
|
-
)
|
|
134
|
-
|
|
135
|
-
G,
|
|
132
|
+
)))), m[p])
|
|
133
|
+
), A = /* @__PURE__ */ n.createElement(n.Fragment, null, e.expand || o.show ? /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-container" }, /* @__PURE__ */ n.createElement("div", { className: "k-overlay", onClick: U }), e.animation ? /* @__PURE__ */ n.createElement(
|
|
134
|
+
Q,
|
|
136
135
|
{
|
|
137
136
|
transitionName: o.slide ? "slide-up" : "slide-down",
|
|
138
137
|
onExited: f,
|
|
139
138
|
transitionEnterDuration: typeof l == "object" && Object.keys(l).length > 0 && l.openDuration ? Number(l.openDuration) : Number(l),
|
|
140
139
|
transitionExitDuration: typeof l == "object" && Object.keys(l).length > 0 && l.closeDuration ? Number(l.closeDuration) : Number(l),
|
|
141
|
-
animationEnteringStyle: e.animationStyles ||
|
|
142
|
-
animationEnteredStyle: e.animationStyles ||
|
|
143
|
-
animationExitingStyle: e.animationStyles ||
|
|
140
|
+
animationEnteringStyle: e.animationStyles || y.current,
|
|
141
|
+
animationEnteredStyle: e.animationStyles || y.current,
|
|
142
|
+
animationExitingStyle: e.animationStyles || y.current,
|
|
144
143
|
exit: !0,
|
|
145
144
|
enter: !0,
|
|
146
145
|
appear: !1
|
|
147
146
|
},
|
|
148
|
-
|
|
149
|
-
) :
|
|
150
|
-
|
|
147
|
+
I
|
|
148
|
+
) : /* @__PURE__ */ n.createElement("div", { className: "k-animation-container k-animation-container-shown" }, /* @__PURE__ */ n.createElement("div", { className: "k-child-animation-container", style: e.animationStyles || y.current }, I))) : null);
|
|
149
|
+
return e.appendTo && Z ? J.createPortal(A, e.appendTo) : A;
|
|
150
|
+
}), g = {
|
|
151
151
|
navigatable: !0,
|
|
152
152
|
navigatableElements: [],
|
|
153
153
|
position: "bottom"
|
|
154
154
|
};
|
|
155
|
-
|
|
156
|
-
items:
|
|
157
|
-
subTitle:
|
|
158
|
-
title:
|
|
159
|
-
navigatable:
|
|
160
|
-
navigatableElements:
|
|
161
|
-
position:
|
|
155
|
+
_.propTypes = {
|
|
156
|
+
items: r.array,
|
|
157
|
+
subTitle: r.node,
|
|
158
|
+
title: r.node,
|
|
159
|
+
navigatable: r.bool,
|
|
160
|
+
navigatableElements: r.array,
|
|
161
|
+
position: r.oneOf(["top", "bottom", "left", "right", "fullscreen"]),
|
|
162
|
+
appendTo: r.any
|
|
162
163
|
};
|
|
163
|
-
|
|
164
|
+
_.displayName = "KendoReactActionSheet";
|
|
164
165
|
export {
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
_ as ActionSheet,
|
|
167
|
+
g as actionSheetDefaultProps
|
|
167
168
|
};
|
|
@@ -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 s=require("react"),c=require("prop-types"),o=require("@progress/kendo-react-common");function m(e){const n=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(n,i,a.get?a:{enumerable:!0,get:()=>e[i]})}}return n.default=e,Object.freeze(n)}const t=m(s),l=e=>{const n=t.useRef(null),i=t.useCallback(a=>{e.onClick&&e.onClick.call(void 0,{syntheticEvent:a,item:e.item,title:e.title})},[e.item,e.title,e.onClick]);return t.useEffect(()=>{n.current&&e.focused&&n.current.focus()},[e.focused]),t.createElement("span",{style:e.style,tabIndex:e.tabIndex,className:o.classNames("k-actionsheet-item",
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),c=require("prop-types"),o=require("@progress/kendo-react-common");function m(e){const n=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(n,i,a.get?a:{enumerable:!0,get:()=>e[i]})}}return n.default=e,Object.freeze(n)}const t=m(s),l=e=>{const n=t.useRef(null),i=t.useCallback(a=>{e.onClick&&e.onClick.call(void 0,{syntheticEvent:a,item:e.item,title:e.title})},[e.item,e.title,e.onClick]);return t.useEffect(()=>{n.current&&e.focused&&n.current.focus()},[e.focused]),t.createElement("span",{style:e.style,tabIndex:e.tabIndex,className:o.classNames("k-actionsheet-item",e.disabled&&"k-disabled",e.className),ref:n,"aria-disabled":e.disabled||void 0,onClick:i},t.createElement("span",{className:"k-actionsheet-action"},e.icon&&t.createElement("span",{className:"k-icon-wrap"},e.icon),(e.title||e.description)&&t.createElement("span",{className:"k-actionsheet-item-text"},e.title&&t.createElement("span",{className:"k-actionsheet-item-title"},e.title),e.description&&t.createElement("span",{className:"k-actionsheet-item-description"},e.description))))};l.propTypes={className:c.string,style:c.object,description:c.string,disabled:c.bool,group:c.oneOf(["top","bottom"]),icon:c.element,title:c.string};exports.ActionSheetItem=l;
|
|
@@ -28,13 +28,11 @@ const s = (e) => {
|
|
|
28
28
|
tabIndex: e.tabIndex,
|
|
29
29
|
className: l(
|
|
30
30
|
"k-actionsheet-item",
|
|
31
|
-
"k-cursor-pointer",
|
|
32
31
|
e.disabled && "k-disabled",
|
|
33
32
|
e.className
|
|
34
33
|
),
|
|
35
34
|
ref: a,
|
|
36
|
-
|
|
37
|
-
"aria-disabled": e.disabled,
|
|
35
|
+
"aria-disabled": e.disabled || void 0,
|
|
38
36
|
onClick: c
|
|
39
37
|
},
|
|
40
38
|
/* @__PURE__ */ t.createElement("span", { className: "k-actionsheet-action" }, e.icon && /* @__PURE__ */ t.createElement("span", { className: "k-icon-wrap" }, e.icon), (e.title || e.description) && /* @__PURE__ */ t.createElement("span", { className: "k-actionsheet-item-text" }, e.title && /* @__PURE__ */ t.createElement("span", { className: "k-actionsheet-item-title" }, e.title), e.description && /* @__PURE__ */ t.createElement("span", { className: "k-actionsheet-item-description" }, e.description)))
|
|
@@ -84,16 +84,10 @@ export interface AppBarProps {
|
|
|
84
84
|
* Specifies the AppBar theme color ([see example](https://www.telerik.com/kendo-react-ui/components/layout/appbar/appearance)).
|
|
85
85
|
*
|
|
86
86
|
* * The possible values are:
|
|
87
|
-
* * '
|
|
87
|
+
* * 'base'
|
|
88
88
|
* * 'primary'
|
|
89
89
|
* * 'secondary'
|
|
90
90
|
* * 'tertiary'
|
|
91
|
-
* * 'info'
|
|
92
|
-
* * 'success'
|
|
93
|
-
* * 'warning'
|
|
94
|
-
* * 'error'
|
|
95
|
-
* * 'dark'
|
|
96
|
-
* * 'inherit'
|
|
97
91
|
* * 'inverse'
|
|
98
92
|
*
|
|
99
93
|
* @default undefined (theme-controlled)
|
|
@@ -131,13 +125,7 @@ export type AppBarPositionMode = 'static' | 'sticky' | 'fixed';
|
|
|
131
125
|
* * 'primary'
|
|
132
126
|
* * 'secondary'
|
|
133
127
|
* * 'tertiary'
|
|
134
|
-
* * 'info'
|
|
135
|
-
* * 'success'
|
|
136
|
-
* * 'warning'
|
|
137
|
-
* * 'error'
|
|
138
|
-
* * 'dark'
|
|
139
|
-
* * 'inherit'
|
|
140
128
|
* * 'inverse'
|
|
141
129
|
*
|
|
142
130
|
*/
|
|
143
|
-
export type AppBarThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | '
|
|
131
|
+
export type AppBarThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'inverse';
|
|
@@ -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 j=require("react"),n=require("prop-types"),l=require("@progress/kendo-react-common"),I=require("./models/utils.js"),B=require("./BottomNavigationItem.js"),K=require("@progress/kendo-react-intl"),y=require("./messages/index.js");function P(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const c=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(s,i,c.get?c:{enumerable:!0,get:()=>e[i]})}}return s.default=e,Object.freeze(s)}const o=P(j),C=o.forwardRef((e,s)=>{const i=o.useRef(null),c=o.useCallback(()=>{i.current&&l.focusFirstFocusableChild(i.current)},[]),m=o.useCallback(()=>({element:i.current,focus:c}),[c]);o.useImperativeHandle(s,m);const{positionMode:M=d.positionMode,itemFlow:S=d.itemFlow,border:k=d.border,className:h,items:r,item:w,itemRender:E,disabled:b,style:R,id:p,onSelect:f,onKeyDown:N}=e,D=K.useLocalization(),O=l.useId(),L=l.useDir(i,e.dir),v=o.useMemo(()=>e.fillMode===null?null:e.fillMode||d.fillMode,[e.fillMode]),g=o.useMemo(()=>e.themeColor||d.themeColor,[e.themeColor]),q=o.useMemo(()=>l.classNames("k-bottom-nav",I.POSITION_MODE_CLASSES[M],I.ITEM_FLOW_CLASSES[S],{[`k-bottom-nav-${v}`]:v,[`k-bottom-nav-${g}`]:!!g,"k-bottom-nav-border":k,"k-disabled":b},h),[M,g,v,S,k,b,h]),u=o.useCallback((t,a)=>{r&&!r[a].disabled&&f&&l.dispatchEvent(f,t,m(),{itemTarget:r[a],itemIndex:a})},[r,f]),F=o.useCallback((t,a)=>{u(t,a)},[u]),T=o.useCallback((t,a)=>{switch(t.keyCode){case l.Keys.enter:case l.Keys.space:u(t,a),t.preventDefault();break}l.dispatchEvent(N,t,m(),void 0)},[u,N]),_=D.toLanguageString(y.bottomNavigationAriaLabel,y.messages[y.bottomNavigationAriaLabel]);return o.createElement("nav",{ref:i,className:q,style:R,id:p||O,dir:L,"aria-label":_},r&&r.map((t,a)=>o.createElement(B.BottomNavigationItem,{...t,key:a,index:a,id:`${p||O}-${a}`,disabled:b||t.disabled,selected:t.selected,dataItem:t,item:w,render:E,onSelect:F,onKeyDown:T})))}),d={themeColor:void 0,fillMode:void 0,itemFlow:"vertical",positionMode:"fixed",border:!0};C.propTypes={className:n.string,style:n.object,id:n.string,dir:n.string,themeColor:n.oneOf(["base","primary","secondary","tertiary","inverse"]),fillMode:n.oneOf(["solid","flat"]),itemFlow:n.oneOf(["vertical","horizontal"]),border:n.bool,disabled:n.bool,selected:n.number,onSelect:n.func};C.displayName="KendoReactBottomNavigation";exports.BottomNavigation=C;
|