@jamsr-ui/utils
Advanced tools
Comparing version 0.0.61 to 0.0.62
@@ -34,4 +34,12 @@ declare const colorVariants: { | ||
}; | ||
flat: { | ||
default: string; | ||
primary: string; | ||
secondary: string; | ||
success: string; | ||
warning: string; | ||
danger: string; | ||
}; | ||
}; | ||
export { colorVariants }; |
"use client" | ||
"use strict";var a=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var c=(e,r)=>{for(var n in r)a(e,n,{get:r[n],enumerable:!0})},u=(e,r,n,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of o(r))!d.call(e,t)&&t!==n&&a(e,t,{get:()=>r[t],enumerable:!(s=g(r,t))||s.enumerable});return e};var i=e=>u(a({},"__esModule",{value:!0}),e);var v={};c(v,{colorVariants:()=>h});module.exports=i(v);var b={default:"bg-default text-default-foreground ui-hover:bg-default-300",primary:"bg-primary text-primary-foreground ui-hover:bg-primary-600",secondary:"bg-secondary text-secondary-foreground ui-hover:bg-secondary-600",success:"bg-success text-success-foreground ui-hover:bg-success-600",warning:"bg-warning text-warning-foreground ui-hover:bg-warning-600",danger:"bg-danger text-danger-foreground ui-hover:bg-danger-600"},x={default:"bg-transparent border-default text-foreground hover:bg-default-50",primary:"bg-transparent border-primary text-primary hover:bg-primary-50",secondary:"bg-transparent border-secondary text-secondary hover:bg-secondary-50",success:"bg-transparent border-success text-success hover:bg-success-50",warning:"bg-transparent border-warning text-warning hover:bg-warning-50",danger:"bg-transparent border-danger text-danger hover:bg-danger-50"},y={default:"text-foreground hover:text-foreground-600",primary:"text-primary hover:text-primary-600",secondary:"text-secondary hover:text-secondary-600",success:"text-success hover:text-success-600",warning:"text-warning hover:text-warning-600",danger:"text-danger hover:text-danger-600"},p={default:"bg-transparent text-foreground ui-hover:bg-default-100",primary:"bg-transparent text-primary ui-hover:bg-primary-50",secondary:"bg-transparent text-secondary ui-hover:bg-secondary-50",success:"bg-transparent text-success ui-hover:bg-success-50",warning:"bg-transparent text-warning ui-hover:bg-warning-50",danger:"bg-transparent text-danger ui-hover:bg-danger-50"},h={solid:b,outlined:x,text:y,light:p};0&&(module.exports={colorVariants}); | ||
"use strict";var n=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var u=(e,r)=>{for(var t in r)n(e,t,{get:r[t],enumerable:!0})},i=(e,r,t,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of o(r))!d.call(e,a)&&a!==t&&n(e,a,{get:()=>r[a],enumerable:!(s=g(r,a))||s.enumerable});return e};var c=e=>i(n({},"__esModule",{value:!0}),e);var l={};u(l,{colorVariants:()=>p});module.exports=c(l);var b={default:"bg-default text-default-foreground ui-hover:bg-default-300 dark:ui-hover:bg-default-300",primary:"bg-primary text-primary-foreground ui-hover:bg-primary-700 dark:ui-hover:bg-primary-300",secondary:"bg-secondary text-secondary-foreground ui-hover:bg-secondary-600 dark:ui-hover:bg-secondary-300",success:"bg-success text-success-foreground ui-hover:bg-success-600 dark:ui-hover:bg-success-300",warning:"bg-warning text-warning-foreground ui-hover:bg-warning-600 dark:ui-hover:bg-warning-300",danger:"bg-danger text-danger-foreground ui-hover:bg-danger-600 dark:ui-hover:bg-danger-300"},x={default:"bg-transparent border-default text-foreground ui-hover:bg-default-50",primary:"bg-transparent border-primary text-primary ui-hover:bg-primary-50",secondary:"bg-transparent border-secondary text-secondary ui-hover:bg-secondary-50",success:"bg-transparent border-success text-success ui-hover:bg-success-50",warning:"bg-transparent border-warning text-warning ui-hover:bg-warning-50",danger:"bg-transparent border-danger text-danger ui-hover:bg-danger-50"},h={default:"text-foreground ui-hover:text-foreground-600",primary:"text-primary ui-hover:text-primary-600",secondary:"text-secondary ui-hover:text-secondary-600",success:"text-success ui-hover:text-success-600",warning:"text-warning ui-hover:text-warning-600",danger:"text-danger ui-hover:text-danger-600"},y={default:"bg-transparent text-foreground ui-hover:bg-default-100",primary:"bg-transparent text-primary ui-hover:bg-primary-50",secondary:"bg-transparent text-secondary ui-hover:bg-secondary-50",success:"bg-transparent text-success ui-hover:bg-success-50",warning:"bg-transparent text-warning ui-hover:bg-warning-50",danger:"bg-transparent text-danger ui-hover:bg-danger-50"},v={default:"bg-default/40 text-default-foreground ui-hover:bg-default/30",primary:"bg-primary/20 text-primary ui-hover:bg-primary/30",secondary:"bg-secondary/20 text-secondary ui-hover:bg-secondary/30",success:"bg-success/20 text-success-600 dark:text-success ui-hover:bg-success/30",warning:"bg-warning/20 text-warning-600 dark:text-warning ui-hover:bg-warning/30",danger:"bg-danger/20 text-danger dark:text-danger-500 ui-hover:bg-danger/30"},p={solid:b,outlined:x,text:h,light:y,flat:v};0&&(module.exports={colorVariants}); |
@@ -8,5 +8,5 @@ type As<Props = any> = React.ElementType<Props>; | ||
as?: T; | ||
} & Omit<React.ComponentProps<T>, "as" | keyof Y>; | ||
} & Omit<React.ComponentProps<T>, "as" | "color" | keyof Y>; | ||
type PropGetter<P = Record<string, unknown>> = (props?: P) => P; | ||
export type { As, ComponentPropsWithAs, PropGetter, PropsOf, UIProps }; |
@@ -1,2 +0,2 @@ | ||
export { ClassProp, VariantProps, tv } from 'tailwind-variants'; | ||
export { ClassProp, ClassValue, VariantProps, tv } from 'tailwind-variants'; | ||
export { getRandomFromArray, includes } from './array.js'; | ||
@@ -3,0 +3,0 @@ export { dataAttr, getBoolean, isBoolean, isDecNum, isEmpty, isString, isTrue } from './assertion.js'; |
"use client" | ||
"use strict";var D=Object.create;var l=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var k=(e,t)=>{for(var n in t)l(e,n,{get:t[n],enumerable:!0})},x=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of S(t))!R.call(e,o)&&o!==n&&l(e,o,{get:()=>t[o],enumerable:!(r=E(t,o))||r.enumerable});return e};var b=(e,t,n)=>(n=e!=null?D(N(e)):{},x(t||!e||!e.__esModule?l(n,"default",{value:e,enumerable:!0}):n,e)),A=e=>x(l({},"__esModule",{value:!0}),e);var ue={};k(ue,{TRANSITION_VARIANTS:()=>ae,absoluteFullClasses:()=>_,cn:()=>u,colorVariants:()=>ee,createContext:()=>te,dataAttr:()=>I,dataFocusVisibleClasses:()=>q,deepMergeProps:()=>g,filterDOMProps:()=>P,focusVisibleClasses:()=>G,getBoolean:()=>B,getRandomFromArray:()=>U,groupDataFocusVisibleClasses:()=>Q,includes:()=>K,isBoolean:()=>L,isDecNum:()=>$,isEmpty:()=>z,isString:()=>V,isTrue:()=>F,mapPropsVariants:()=>ie,mergeClassNames:()=>T,mergeProps:()=>se,randomId:()=>ce,ringClasses:()=>W,translateCenterClasses:()=>Z,tv:()=>M.tv,useDOMRef:()=>re});module.exports=A(ue);var M=require("tailwind-variants");function K(e,t){return e.includes(t)}var U=e=>Math.floor(Math.random()*e);var I=e=>e?"true":"false",V=e=>typeof e=="string",L=e=>typeof e=="boolean",F=e=>e===!0,z=e=>typeof e=="object"&&e!==null?Object.keys(e).length===0:Array.isArray(e)?e.length===0:typeof e=="number"&&e===0||!e,B=e=>e,$=e=>/^\d+(\.\d+)?$/.test(e.toString());var y=b(require("clsx")),h=require("tailwind-merge"),H=(0,h.extendTailwindMerge)({extend:{classGroups:{gap:["gap-responsive"],"font-size":["text-size-inherit"],shadow:["shadow-card"]}}}),u=(...e)=>H((0,y.default)(e));function g(e,t){let n={...e};for(let r in t)if(t.hasOwnProperty(r))if(r==="className")n[r]=u(n[r],t[r]);else if(r==="classNames"&&typeof t[r]=="object"&&!Array.isArray(t[r])){n[r]={...n[r]};for(let o in t[r])t[r].hasOwnProperty(o)&&(n[r][o]=u(n[r][o],t[r][o]))}else typeof t[r]=="object"&&t[r]!==null&&!Array.isArray(t[r])&&typeof n[r]=="object"&&n[r]!==null?n[r]=g(n[r],t[r]):n[r]=t[r];return n}var T=(e,t)=>{if(!e&&!t)return{};if(!e)return t;if(!t)return e;let n={};for(let r in e)t.hasOwnProperty(r)?n[r]=u(e[r],t[r]):n[r]=e[r];for(let r in t)e.hasOwnProperty(r)||(n[r]=t[r]);return n};var G=["focus-visible:z-10","focus-visible:outline-primary","focus-visible:outline-2","focus-visible:outline-focus","focus-visible:outline-offset-2"],q=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Q=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],W=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],Z=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],_=["absolute","inset-0"];var j={default:"bg-default text-default-foreground ui-hover:bg-default-300",primary:"bg-primary text-primary-foreground ui-hover:bg-primary-600",secondary:"bg-secondary text-secondary-foreground ui-hover:bg-secondary-600",success:"bg-success text-success-foreground ui-hover:bg-success-600",warning:"bg-warning text-warning-foreground ui-hover:bg-warning-600",danger:"bg-danger text-danger-foreground ui-hover:bg-danger-600"},J={default:"bg-transparent border-default text-foreground hover:bg-default-50",primary:"bg-transparent border-primary text-primary hover:bg-primary-50",secondary:"bg-transparent border-secondary text-secondary hover:bg-secondary-50",success:"bg-transparent border-success text-success hover:bg-success-50",warning:"bg-transparent border-warning text-warning hover:bg-warning-50",danger:"bg-transparent border-danger text-danger hover:bg-danger-50"},X={default:"text-foreground hover:text-foreground-600",primary:"text-primary hover:text-primary-600",secondary:"text-secondary hover:text-secondary-600",success:"text-success hover:text-success-600",warning:"text-warning hover:text-warning-600",danger:"text-danger hover:text-danger-600"},Y={default:"bg-transparent text-foreground ui-hover:bg-default-100",primary:"bg-transparent text-primary ui-hover:bg-primary-50",secondary:"bg-transparent text-secondary ui-hover:bg-secondary-50",success:"bg-transparent text-success ui-hover:bg-success-50",warning:"bg-transparent text-warning ui-hover:bg-warning-50",danger:"bg-transparent text-danger ui-hover:bg-danger-50"},ee={solid:j,outlined:J,text:X,light:Y};var d=b(require("react"));function te(e={}){let{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=d.createContext(void 0);o.displayName=r;function a(){let i=d.useContext(o);if(!i&&t){let c=new Error(n);throw c.name="ContextError",Error.captureStackTrace?.(c,a),c}return i}return[o.Provider,a,o]}var p=require("react"),re=e=>{let t=(0,p.useRef)(null);return(0,p.useImperativeHandle)(e,()=>t.current),t};var v=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),C=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]);var w=/^(data-.*)$/,ne=/^(aria-.*)$/,f=/^(on[A-Z].*)$/;function P(e,t={}){let{labelable:n=!0,enabled:r=!0,propNames:o,omitPropNames:a,omitEventNames:i,omitDataProps:c,omitEventProps:O}=t,m={};if(!r)return e;for(let s in e)a?.has(s)||i?.has(s)&&f.test(s)||f.test(s)&&!C.has(s)||c&&w.test(s)||O&&f.test(s)||(Object.prototype.hasOwnProperty.call(e,s)&&(v.has(s)||n&&ne.test(s)||o?.has(s)||w.test(s))||f.test(s))&&(m[s]=e[s]);return m}function oe(e,t,n){if(t==="className")e.className=[e.className,n].join(" ").trim();else if(t==="style")e.style={...e.style,...n};else if(typeof n=="function"){let r=e[t];e[t]=r?(...o)=>{r(...o),n(...o)}:n}else if(!(n===void 0||typeof n!="object"&&n===e[t]))if(!(t in e))e[t]=n;else throw new Error(`Didn\u2019t know how to merge prop '${t}'. Only 'className', 'style', and event handlers are supported`)}function se(...e){return e.length===1?e[0]:e.reduce((t,n)=>{for(let r in n)oe(t,r,n[r]);return t},{})}var ae={collapse:{enter:{opacity:1,height:"auto",transition:{type:"spring",duration:.6}},exit:{opacity:0,height:0,transition:{type:"spring",duration:.6}}}};var ie=(e,t,n=!0)=>{if(!t)return[e,{}];let r=t.reduce((o,a)=>a in e?{...o,[a]:e[a]}:o,{});return n?[Object.keys(e).filter(a=>!t.includes(a)).reduce((a,i)=>({...a,[i]:e[i]}),{}),r]:[e,r]};var ce=()=>Math.random().toString(36).slice(2);0&&(module.exports={TRANSITION_VARIANTS,absoluteFullClasses,cn,colorVariants,createContext,dataAttr,dataFocusVisibleClasses,deepMergeProps,filterDOMProps,focusVisibleClasses,getBoolean,getRandomFromArray,groupDataFocusVisibleClasses,includes,isBoolean,isDecNum,isEmpty,isString,isTrue,mapPropsVariants,mergeClassNames,mergeProps,randomId,ringClasses,translateCenterClasses,tv,useDOMRef}); | ||
"use strict";var k=Object.create;var d=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var R=(e,t)=>{for(var n in t)d(e,n,{get:t[n],enumerable:!0})},x=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of E(t))!N.call(e,o)&&o!==n&&d(e,o,{get:()=>t[o],enumerable:!(r=D(t,o))||r.enumerable});return e};var b=(e,t,n)=>(n=e!=null?k(S(e)):{},x(t||!e||!e.__esModule?d(n,"default",{value:e,enumerable:!0}):n,e)),A=e=>x(d({},"__esModule",{value:!0}),e);var de={};R(de,{TRANSITION_VARIANTS:()=>ie,absoluteFullClasses:()=>_,cn:()=>u,colorVariants:()=>te,createContext:()=>re,dataAttr:()=>I,dataFocusVisibleClasses:()=>q,deepMergeProps:()=>f,filterDOMProps:()=>P,focusVisibleClasses:()=>G,getBoolean:()=>B,getRandomFromArray:()=>U,groupDataFocusVisibleClasses:()=>Q,includes:()=>K,isBoolean:()=>L,isDecNum:()=>$,isEmpty:()=>z,isString:()=>V,isTrue:()=>F,mapPropsVariants:()=>ce,mergeClassNames:()=>v,mergeProps:()=>ae,randomId:()=>ue,ringClasses:()=>W,translateCenterClasses:()=>Z,tv:()=>M.tv,useDOMRef:()=>ne});module.exports=A(de);var M=require("tailwind-variants");function K(e,t){return e.includes(t)}var U=e=>Math.floor(Math.random()*e);var I=e=>e?"true":"false",V=e=>typeof e=="string",L=e=>typeof e=="boolean",F=e=>e===!0,z=e=>typeof e=="object"&&e!==null?Object.keys(e).length===0:Array.isArray(e)?e.length===0:typeof e=="number"&&e===0||!e,B=e=>e,$=e=>/^\d+(\.\d+)?$/.test(e.toString());var y=b(require("clsx")),h=require("tailwind-merge"),H=(0,h.extendTailwindMerge)({extend:{classGroups:{gap:["gap-responsive"],"font-size":["text-size-inherit"],shadow:["shadow-card"]}}}),u=(...e)=>H((0,y.default)(e));function f(e,t){let n={...e};for(let r in t)if(t.hasOwnProperty(r))if(r==="className")n[r]=u(n[r],t[r]);else if(r==="classNames"&&typeof t[r]=="object"&&!Array.isArray(t[r])){n[r]={...n[r]};for(let o in t[r])t[r].hasOwnProperty(o)&&(n[r][o]=u(n[r][o],t[r][o]))}else typeof t[r]=="object"&&t[r]!==null&&!Array.isArray(t[r])&&typeof n[r]=="object"&&n[r]!==null?n[r]=f(n[r],t[r]):n[r]=t[r];return n}var v=(e,t)=>{if(!e&&!t)return{};if(!e)return t;if(!t)return e;let n={};for(let r in e)t.hasOwnProperty(r)?n[r]=u(e[r],t[r]):n[r]=e[r];for(let r in t)e.hasOwnProperty(r)||(n[r]=t[r]);return n};var G=["focus-visible:z-10","focus-visible:outline-primary","focus-visible:outline-2","focus-visible:outline-focus","focus-visible:outline-offset-2"],q=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Q=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],W=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],Z=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],_=["absolute","inset-0"];var j={default:"bg-default text-default-foreground ui-hover:bg-default-300 dark:ui-hover:bg-default-300",primary:"bg-primary text-primary-foreground ui-hover:bg-primary-700 dark:ui-hover:bg-primary-300",secondary:"bg-secondary text-secondary-foreground ui-hover:bg-secondary-600 dark:ui-hover:bg-secondary-300",success:"bg-success text-success-foreground ui-hover:bg-success-600 dark:ui-hover:bg-success-300",warning:"bg-warning text-warning-foreground ui-hover:bg-warning-600 dark:ui-hover:bg-warning-300",danger:"bg-danger text-danger-foreground ui-hover:bg-danger-600 dark:ui-hover:bg-danger-300"},J={default:"bg-transparent border-default text-foreground ui-hover:bg-default-50",primary:"bg-transparent border-primary text-primary ui-hover:bg-primary-50",secondary:"bg-transparent border-secondary text-secondary ui-hover:bg-secondary-50",success:"bg-transparent border-success text-success ui-hover:bg-success-50",warning:"bg-transparent border-warning text-warning ui-hover:bg-warning-50",danger:"bg-transparent border-danger text-danger ui-hover:bg-danger-50"},X={default:"text-foreground ui-hover:text-foreground-600",primary:"text-primary ui-hover:text-primary-600",secondary:"text-secondary ui-hover:text-secondary-600",success:"text-success ui-hover:text-success-600",warning:"text-warning ui-hover:text-warning-600",danger:"text-danger ui-hover:text-danger-600"},Y={default:"bg-transparent text-foreground ui-hover:bg-default-100",primary:"bg-transparent text-primary ui-hover:bg-primary-50",secondary:"bg-transparent text-secondary ui-hover:bg-secondary-50",success:"bg-transparent text-success ui-hover:bg-success-50",warning:"bg-transparent text-warning ui-hover:bg-warning-50",danger:"bg-transparent text-danger ui-hover:bg-danger-50"},ee={default:"bg-default/40 text-default-foreground ui-hover:bg-default/30",primary:"bg-primary/20 text-primary ui-hover:bg-primary/30",secondary:"bg-secondary/20 text-secondary ui-hover:bg-secondary/30",success:"bg-success/20 text-success-600 dark:text-success ui-hover:bg-success/30",warning:"bg-warning/20 text-warning-600 dark:text-warning ui-hover:bg-warning/30",danger:"bg-danger/20 text-danger dark:text-danger-500 ui-hover:bg-danger/30"},te={solid:j,outlined:J,text:X,light:Y,flat:ee};var l=b(require("react"));function re(e={}){let{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=l.createContext(void 0);o.displayName=r;function a(){let i=l.useContext(o);if(!i&&t){let c=new Error(n);throw c.name="ContextError",Error.captureStackTrace?.(c,a),c}return i}return[o.Provider,a,o]}var p=require("react"),ne=e=>{let t=(0,p.useRef)(null);return(0,p.useImperativeHandle)(e,()=>t.current),t};var T=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),w=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]);var C=/^(data-.*)$/,oe=/^(aria-.*)$/,g=/^(on[A-Z].*)$/;function P(e,t={}){let{labelable:n=!0,enabled:r=!0,propNames:o,omitPropNames:a,omitEventNames:i,omitDataProps:c,omitEventProps:O}=t,m={};if(!r)return e;for(let s in e)a?.has(s)||i?.has(s)&&g.test(s)||g.test(s)&&!w.has(s)||c&&C.test(s)||O&&g.test(s)||(Object.prototype.hasOwnProperty.call(e,s)&&(T.has(s)||n&&oe.test(s)||o?.has(s)||C.test(s))||g.test(s))&&(m[s]=e[s]);return m}function se(e,t,n){if(t==="className")e.className=[e.className,n].join(" ").trim();else if(t==="style")e.style={...e.style,...n};else if(typeof n=="function"){let r=e[t];e[t]=r?(...o)=>{r(...o),n(...o)}:n}else if(!(n===void 0||typeof n!="object"&&n===e[t]))if(!(t in e))e[t]=n;else throw new Error(`Didn\u2019t know how to merge prop '${t}'. Only 'className', 'style', and event handlers are supported`)}function ae(...e){return e.length===1?e[0]:e.reduce((t,n)=>{for(let r in n)se(t,r,n[r]);return t},{})}var ie={collapse:{enter:{opacity:1,height:"auto",transition:{type:"spring",duration:.6}},exit:{opacity:0,height:0,transition:{type:"spring",duration:.6}}}};var ce=(e,t,n=!0)=>{if(!t)return[e,{}];let r=t.reduce((o,a)=>a in e?{...o,[a]:e[a]}:o,{});return n?[Object.keys(e).filter(a=>!t.includes(a)).reduce((a,i)=>({...a,[i]:e[i]}),{}),r]:[e,r]};var ue=()=>Math.random().toString(36).slice(2);0&&(module.exports={TRANSITION_VARIANTS,absoluteFullClasses,cn,colorVariants,createContext,dataAttr,dataFocusVisibleClasses,deepMergeProps,filterDOMProps,focusVisibleClasses,getBoolean,getRandomFromArray,groupDataFocusVisibleClasses,includes,isBoolean,isDecNum,isEmpty,isString,isTrue,mapPropsVariants,mergeClassNames,mergeProps,randomId,ringClasses,translateCenterClasses,tv,useDOMRef}); |
{ | ||
"name": "@jamsr-ui/utils", | ||
"version": "0.0.61", | ||
"description": "A react js ui library with tailwindcss", | ||
"version": "0.0.62", | ||
"description": "A modern and beautiful Next.js UI components library.", | ||
"sideEffects": false, | ||
"keywords": [ | ||
"react", | ||
"ui" | ||
"ui", | ||
"UI components", | ||
"Next.js", | ||
"React", | ||
"JamsrUI", | ||
"Jamsr UI", | ||
"jamsr-ui", | ||
"TypeScript" | ||
], | ||
@@ -10,0 +17,0 @@ "author": "@jamsrworld", |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57046
444