@hoosei/voxweave-react
Version:
A customizable and interactive voice UI component for React applications
20 lines (19 loc) • 628 B
JavaScript
const s = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), a = (t) => t.replace(
/^([A-Z])|[\s-_]+(\w)/g,
(e, o, r) => r ? r.toUpperCase() : o.toLowerCase()
), n = (t) => {
const e = a(t);
return e.charAt(0).toUpperCase() + e.slice(1);
}, c = (...t) => t.filter((e, o, r) => !!e && e.trim() !== "" && r.indexOf(e) === o).join(" ").trim(), i = (t) => {
for (const e in t)
if (e.startsWith("aria-") || e === "role" || e === "title")
return !0;
};
export {
i as hasA11yProp,
c as mergeClasses,
a as toCamelCase,
s as toKebabCase,
n as toPascalCase
};
//# sourceMappingURL=index47.js.map