UNPKG

@progress/kendo-react-common

Version:

React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package

9 lines (8 loc) 1.17 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 e=require("./json-classes.js"),o=`${e.base.prefix}-${e.forms.form}`,m=`${e.base.prefix}-${e.forms.form}-${e.forms.field}`,l={form:{main:o,size:{prefix:`${o}-`,small:`${o}-${e.sizeMap.small}`,medium:`${o}-${e.sizeMap.medium}`,large:`${o}-${e.sizeMap.large}`},orientation:{horizontal:`${o}-${e.orientationMap.horizontal}`,vertical:`${o}-${e.orientationMap.vertical}`}},field:{main:m,isRtl:`${e.base.prefix}-${e.base.rtl}`}},f={form:a=>{var n;const{size:r,orientation:s,c:t=l}=a,i=t.form;return{[i.main]:!0,[i.size[r]]:i.size[r],[((n=i.size)==null?void 0:n.prefix)||""]:r&&!i.size[r],[i.orientation[s]]:i.orientation[s]}},field:a=>{const{isRtl:r,c:s=l}=a,t=s.field;return{[t.main]:!0,[t.isRtl]:r}}};exports.uForm=f;