UNPKG

kwikid-components-react

Version:

KwikID's Component Library in React

20 lines (19 loc) 578 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertTextCase = void 0; var _Textarea = require("./Textarea.definition"); const convertTextCase = (textCase, text) => { switch (textCase) { case _Textarea.IKwikUITextareaTextCase.LOWER: return String(text).toLocaleLowerCase(); case _Textarea.IKwikUITextareaTextCase.UPPER: return String(text).toLocaleUpperCase(); case _Textarea.IKwikUITextareaTextCase.DEFAULT: return text; default: return text; } }; exports.convertTextCase = convertTextCase;