UNPKG

@progress/kendo-react-inputs

Version:

React Inputs offer a customizable interface for users to enter and pick different information. KendoReact Input package

9 lines (8 loc) 1.94 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),s=require("@progress/kendo-react-layout"),k=require("@progress/kendo-svg-icons"),i=require("@progress/kendo-react-buttons"),y=require("@progress/kendo-react-common");function h(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const o=h(v),x=e=>{const{windowWidth:t=0,children:a,navigatable:c,navigatableElements:d,expand:u,animation:p,title:m,subTitle:b,footer:n,onClose:r}=e,f=()=>o.createElement(i.Button,{tabIndex:0,"aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",icon:"x",svgIcon:k.xIcon,onClick:r}),l=y.useAdaptiveModeContext(),g={navigatable:c||!1,navigatableElements:d||[],expand:u,animation:p,actions:f(),onClose:r,animationStyles:l&&t<=l.small?{top:0,width:"100%",height:"100%"}:void 0,title:m,subTitle:b,className:"k-adaptive-actionsheet",position:l&&t<=l.small?"fullscreen":void 0};return o.createElement(s.ActionSheet,{...g},a,o.createElement(s.ActionSheetFooter,{className:"k-actions k-actions-stretched"},o.createElement(i.Button,{size:"large",className:"k-coloreditor-cancel","aria-label":n.cancelText,onClick:n.onCancel},n.cancelText),o.createElement(i.Button,{themeColor:"primary",size:"large",className:"k-coloreditor-apply","aria-label":n.applyText,onClick:n.onApply},n.applyText)))};exports.AdaptiveMode=x;