xdesign-vue-next
Version:
XDesign Component for vue-next
66 lines (59 loc) • 1.52 kB
JavaScript
/**
* xdesign v1.0.6
* (c) 2023 xdesign
* @license MIT
*/
import './dep-10a947a6.mjs';
import { t as toString_1 } from './dep-4903a8a8.mjs';
import { u as upperFirst_1 } from './dep-f4eba04c.mjs';
import { a as _createCompounder } from './dep-8db27830.mjs';
var toString = toString_1,
upperFirst = upperFirst_1;
/**
* Converts the first character of `string` to upper case and the remaining
* to lower case.
*
* @static
* @memberOf _
* @since 3.0.0
* @category String
* @param {string} [string=''] The string to capitalize.
* @returns {string} Returns the capitalized string.
* @example
*
* _.capitalize('FRED');
* // => 'Fred'
*/
function capitalize$1(string) {
return upperFirst(toString(string).toLowerCase());
}
var capitalize_1 = capitalize$1;
var capitalize = capitalize_1,
createCompounder = _createCompounder;
/**
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
*
* @static
* @memberOf _
* @since 3.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the camel cased string.
* @example
*
* _.camelCase('Foo Bar');
* // => 'fooBar'
*
* _.camelCase('--foo-bar--');
* // => 'fooBar'
*
* _.camelCase('__FOO_BAR__');
* // => 'fooBar'
*/
var camelCase = createCompounder(function (result, word, index) {
word = word.toLowerCase();
return result + (index ? capitalize(word) : word);
});
var camelCase_1 = camelCase;
export { camelCase_1 as c };
//# sourceMappingURL=dep-a628549d.mjs.map