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

18 lines (17 loc) 816 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ const n = (...c) => { const t = {}, l = (e) => typeof e == "object" ? Object.keys(e).forEach((s) => { t[s] = e[s]; }) : t[e] = !0, r = (e) => e.filter((s) => s !== !0 && !!s).map((s) => Array.isArray(s) ? r(s) : l(s)); return r(c), Object.keys(t).map((e) => t[e] && e || null).filter((e) => e !== null).join(" "); }, o = (...c) => n(c).replace(/[^[\]a-zA-Z0-9-_!: ]/g, ""); export { n as classNames, o as strippedClassNames };