@jengaui/utils
Version:
Jenga UI Utils component in React
9 lines (6 loc) • 701 B
JavaScript
import { b } from './chunk-F7NICF5I.js';
import { a } from './chunk-YGDR7LVG.js';
import f from 'clsx';
import { mergeStyles } from 'tastycss';
function c(...o){let n={};for(let t of o){for(let e in n)/^on[A-Z]/.test(e)&&typeof n[e]=="function"&&t&&typeof t[e]=="function"?n[e]=a(n[e],t[e]):e==="className"&&typeof n.className=="string"&&t&&typeof t.className=="string"?n[e]=f(n.className,t.className):(e==="styles"||e.endsWith("Styles"))&&typeof n.styles=="object"&&t&&typeof t.styles=="object"?n[e]=mergeStyles(n[e],t[e]):e==="id"&&n.id&&(t==null?void 0:t.id)?n.id=b(n.id,t==null?void 0:t.id):n[e]=t&&t[e]!==void 0?t[e]:n[e];for(let e in t)n[e]===void 0&&(n[e]=t[e]);}return n}
export { c as a };