@jamsr-ui/utils
Advanced tools
Comparing version 0.0.68 to 0.0.69
import { ClassValue } from 'clsx'; | ||
declare const cn: (...inputs: ClassValue[]) => string; | ||
declare function deepMergeProps<T extends object, U extends object>(obj1: T, obj2: U, globalConfig?: Record<string, any>): U; | ||
declare function deepMergeProps<T extends object, U extends object>(obj1: T, obj2: U, globalConfig?: Partial<T>): U; | ||
declare const mergeClassNames: <T extends Record<string, any>>(left?: T, right?: T) => T | undefined; | ||
export { cn, deepMergeProps, mergeClassNames }; |
"use client" | ||
"use strict";var u=Object.create;var o=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var T=(r,e)=>{for(var t in e)o(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of l(e))!m.call(r,s)&&s!==t&&o(r,s,{get:()=>e[s],enumerable:!(n=d(e,s))||n.enumerable});return r};var w=(r,e,t)=>(t=r!=null?u(x(r)):{},c(e||!r||!r.__esModule?o(t,"default",{value:r,enumerable:!0}):t,r)),P=r=>c(o({},"__esModule",{value:!0}),r);var O={};T(O,{cn:()=>i,deepMergeProps:()=>f,mergeClassNames:()=>A});module.exports=P(O);var p=w(require("clsx")),y=require("tailwind-merge"),g=(0,y.extendTailwindMerge)({extend:{classGroups:{gap:["gap-responsive"],"font-size":["text-size-inherit"],shadow:["shadow-card"]}}}),i=(...r)=>g((0,p.default)(r));function f(r,e,t){let n={...r};for(let s in e)if(e.hasOwnProperty(s))if(s==="className")n[s]=i(n[s],e[s]);else if(s==="classNames"&&typeof e[s]=="object"&&!Array.isArray(e[s])){n[s]={...n[s]};for(let a in e[s])e[s].hasOwnProperty(a)&&(n[s][a]=i(n[s][a],e[s][a]))}else typeof e[s]=="object"&&e[s]!==null&&!Array.isArray(e[s])&&typeof n[s]=="object"&&n[s]!==null?n[s]=f(n[s],e[s]):n[s]=e[s];return{...t,...n}}var A=(r,e)=>{if(!r&&!e)return{};if(!r)return e;if(!e)return r;let t={};for(let n in r)e.hasOwnProperty(n)?t[n]=i(r[n],e[n]):t[n]=r[n];for(let n in e)r.hasOwnProperty(n)||(t[n]=e[n]);return t};0&&(module.exports={cn,deepMergeProps,mergeClassNames}); | ||
"use strict";var l=Object.create;var o=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var m=(r,e)=>{for(var t in e)o(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of d(e))!T.call(r,s)&&s!==t&&o(r,s,{get:()=>e[s],enumerable:!(n=u(e,s))||n.enumerable});return r};var w=(r,e,t)=>(t=r!=null?l(x(r)):{},c(e||!r||!r.__esModule?o(t,"default",{value:r,enumerable:!0}):t,r)),P=r=>c(o({},"__esModule",{value:!0}),r);var g={};m(g,{cn:()=>i,deepMergeProps:()=>f,mergeClassNames:()=>O});module.exports=P(g);var p=w(require("clsx")),y=require("tailwind-merge"),A=(0,y.extendTailwindMerge)({extend:{classGroups:{gap:["gap-responsive"],"font-size":["text-size-inherit"],shadow:["shadow-card"]}}}),i=(...r)=>A((0,p.default)(r));function f(r,e,t){let n={...r};for(let s in e)if(e.hasOwnProperty(s))if(s==="className")n[s]=i(n[s],e[s]);else if(s==="classNames"&&typeof e[s]=="object"&&!Array.isArray(e[s])){n[s]={...n[s]};for(let a in e[s])e[s].hasOwnProperty(a)&&(n[s][a]=i(n[s][a],e[s][a]))}else typeof e[s]=="object"&&e[s]!==null&&!Array.isArray(e[s])&&typeof n[s]=="object"&&n[s]!==null?n[s]=f(n[s],e[s]):n[s]=e[s];return{...t,...n}}var O=(r,e)=>{if(!r&&!e)return{};if(!r)return e;if(!e)return r;let t={};for(let n in r)e.hasOwnProperty(n)?t[n]=i(r[n],e[n]):t[n]=r[n];for(let n in e)r.hasOwnProperty(n)||(t[n]=e[n]);return t};0&&(module.exports={cn,deepMergeProps,mergeClassNames}); |
{ | ||
"name": "@jamsr-ui/utils", | ||
"version": "0.0.68", | ||
"version": "0.0.69", | ||
"description": "A modern and beautiful Next.js UI components library.", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
59647