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) 2.84 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"),c=`${e.base.prefix}-${e.labels.label}`,b=`${e.base.prefix}-${e.labels.floatingLabel}`,$=`${e.base.prefix}-${e.labels.error}`,m=`${e.base.prefix}-${e.labels.hint}`,f={label:{main:c,empty:`${e.base.prefix}-${e.labels.label}-${e.states.empty}`,invalid:`${e.base.prefix}-${e.labels.text}-${e.themeColorMap.error}`,disabled:`${e.base.prefix}-${e.labels.text}-${e.states.disabled}`}},u={label:o=>{const{empty:n,invalid:l,disabled:i,c:s=f}=o,a=s.label;return{[a==null?void 0:a.main]:!0,[a==null?void 0:a.empty]:n,[a==null?void 0:a.invalid]:l,[a==null?void 0:a.disabled]:i}}},r={wrapper:{main:`${b}-${e.labels.container}`,focused:`${e.base.prefix}-${e.states.focus}`,empty:`${e.base.prefix}-${e.states.empty}`,notEmpty:"",disabled:`${e.base.prefix}-${e.labels.text}-${e.states.disabled}`,isRtl:`${e.base.prefix}-${e.base.rtl}`},label:{main:b,focused:"",empty:"",notEmpty:"",invalid:`${e.base.prefix}-${e.labels.text}-${e.themeColorMap.error}`,disabled:`${e.base.prefix}-${e.labels.text}-${e.states.disabled}`}},x={wrapper:o=>{const{focused:n,empty:l,notEmpty:i,disabled:s,isRtl:a,c:d=r}=o,t=d.wrapper;return{[t==null?void 0:t.main]:!0,[t==null?void 0:t.focused]:n,[t==null?void 0:t.empty]:l,[t==null?void 0:t.notEmpty]:i,[t==null?void 0:t.disabled]:s,[t==null?void 0:t.isRtl]:a}},label:o=>{const{focused:n,empty:l,notEmpty:i,invalid:s,disabled:a,c:d=r}=o,t=d.label;return{[t==null?void 0:t.main]:!0,[t==null?void 0:t.focused]:n,[t==null?void 0:t.empty]:l,[t==null?void 0:t.notEmpty]:i,[t==null?void 0:t.invalid]:s,[t==null?void 0:t.disabled]:a}}},y={wrapper:{main:$,direction:{start:`${e.base.prefix}-${e.labels.text}-${e.directionMap.start}`,end:`${e.base.prefix}-${e.labels.text}-${e.directionMap.end}`}}},p={wrapper:o=>{const{direction:n,c:l=y}=o,i=l.wrapper;return{[i==null?void 0:i.main]:!0,[i==null?void 0:i.direction[n]]:i==null?void 0:i.direction[n]}}},C={wrapper:{main:m,direction:{start:`${e.base.prefix}-${e.labels.text}-${e.directionMap.start}`,end:`${e.base.prefix}-${e.labels.text}-${e.directionMap.end}`,disabled:`${e.base.prefix}-${e.labels.text}-${e.states.disabled}`}}},E={wrapper:o=>{const{direction:n,disabled:l,c:i=C}=o,s=i.wrapper;return{[s==null?void 0:s.main]:!0,[s==null?void 0:s.direction[n]]:s==null?void 0:s.direction[n],[s==null?void 0:s.disabled]:l}}};exports.uError=p;exports.uFloatingLabel=x;exports.uHint=E;exports.uLabel=u;