@jamsr-ui/utils
Advanced tools
Comparing version 0.0.73 to 0.0.74
"use client" | ||
"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}); | ||
"use strict";var d=Object.create;var o=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var l=(s,e)=>{for(var t in e)o(s,t,{get:e[t],enumerable:!0})},c=(s,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!T.call(s,r)&&r!==t&&o(s,r,{get:()=>e[r],enumerable:!(n=f(e,r))||n.enumerable});return s};var m=(s,e,t)=>(t=s!=null?d(x(s)):{},c(e||!s||!s.__esModule?o(t,"default",{value:s,enumerable:!0}):t,s)),w=s=>c(o({},"__esModule",{value:!0}),s);var k={};l(k,{cn:()=>i,deepMergeProps:()=>O,mergeClassNames:()=>g});module.exports=w(k);var p=m(require("clsx")),y=require("tailwind-merge"),P=(0,y.extendTailwindMerge)({extend:{classGroups:{gap:["gap-responsive"],"font-size":["text-size-inherit"],shadow:["shadow-card"]}}}),i=(...s)=>P((0,p.default)(s));function O(s,e,t){let n={...s};for(let r in e)if(e.hasOwnProperty(r))if(r==="className")n[r]=i(n[r],e[r]);else if(r==="classNames"&&typeof e[r]=="object"&&!Array.isArray(e[r])){n[r]={...n[r]};for(let a in e[r])e[r].hasOwnProperty(a)&&(n[r][a]=i(n[r][a],e[r][a]))}else n[r]=e[r];return{...t,...n}}var g=(s,e)=>{if(!s&&!e)return{};if(!s)return e;if(!e)return s;let t={};for(let n in s)e.hasOwnProperty(n)?t[n]=i(s[n],e[n]):t[n]=s[n];for(let n in e)s.hasOwnProperty(n)||(t[n]=e[n]);return t};0&&(module.exports={cn,deepMergeProps,mergeClassNames}); |
"use client" | ||
"use strict";var J=Object.create;var l=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty;var oe=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},x=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ee(t))!re.call(e,o)&&o!==r&&l(e,o,{get:()=>t[o],enumerable:!(n=X(t,o))||n.enumerable});return e};var y=(e,t,r)=>(r=e!=null?J(te(e)):{},x(t||!e||!e.__esModule?l(r,"default",{value:e,enumerable:!0}):r,e)),ne=e=>x(l({},"__esModule",{value:!0}),e);var fe={};oe(fe,{TRANSITION_VARIANTS:()=>q,absoluteFullClasses:()=>I,cn:()=>c,colorVariants:()=>K,createContext:()=>B,dataAttr:()=>T,dataFocusVisibleClasses:()=>A,deepMergeProps:()=>g,filterDOMProps:()=>W,focusVisibleClasses:()=>k,formLabelProps:()=>F,getBoolean:()=>M,getRandomFromArray:()=>h,groupDataFocusVisibleClasses:()=>N,includes:()=>b,isBoolean:()=>C,isDecNum:()=>O,isEmpty:()=>w,isString:()=>v,isTrue:()=>P,mapPropsVariants:()=>_,mergeClassNames:()=>E,mergeProps:()=>Y,radiusBaseVariant:()=>L,radiusVariant:()=>U,randomId:()=>Q,ringClasses:()=>S,translateCenterClasses:()=>V,tv:()=>Z.tv,useDOMRef:()=>z});module.exports=ne(fe);var Z=require("tailwind-variants");function b(e,t){return e.includes(t)}var h=e=>Math.floor(Math.random()*e);var T=e=>e?"true":void 0,v=e=>typeof e=="string",C=e=>typeof e=="boolean",P=e=>e===!0,w=e=>typeof e=="object"&&e!==null?Object.keys(e).length===0:Array.isArray(e)?e.length===0:typeof e=="number"&&e===0||!e,M=e=>e,O=e=>/^\d+(\.\d+)?$/.test(e.toString());var D=y(require("clsx")),R=require("tailwind-merge"),se=(0,R.extendTailwindMerge)({extend:{classGroups:{gap:["gap-responsive"],"font-size":["text-size-inherit"],shadow:["shadow-card"]}}}),c=(...e)=>se((0,D.default)(e));function g(e,t,r){let n={...e};for(let o in t)if(t.hasOwnProperty(o))if(o==="className")n[o]=c(n[o],t[o]);else if(o==="classNames"&&typeof t[o]=="object"&&!Array.isArray(t[o])){n[o]={...n[o]};for(let s in t[o])t[o].hasOwnProperty(s)&&(n[o][s]=c(n[o][s],t[o][s]))}else typeof t[o]=="object"&&t[o]!==null&&!Array.isArray(t[o])&&typeof n[o]=="object"&&n[o]!==null?n[o]=g(n[o],t[o]):n[o]=t[o];return{...r,...n}}var E=(e,t)=>{if(!e&&!t)return{};if(!e)return t;if(!t)return e;let r={};for(let n in e)t.hasOwnProperty(n)?r[n]=c(e[n],t[n]):r[n]=e[n];for(let n in t)e.hasOwnProperty(n)||(r[n]=t[n]);return r};var k=["focus-visible:z-10","focus-visible:outline-primary","focus-visible:outline-2","focus-visible:outline","focus-visible:outline-focus","focus-visible:outline-offset-2"],A=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],N=["outline-none","outline-solid","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"],S=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],V=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],I=["absolute","inset-0"];var ae={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"},ie={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"},ue={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"},ce={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"},le={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"},K={solid:ae,outlined:ie,text:ue,light:ce,flat:le},L={sm:"rounded",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full",none:"rounded-none"},U=e=>{let t=Array.isArray(e)?e:[e],r=n=>t.reduce((o,s)=>({...o,[s]:n}),{});return{sm:r("rounded"),md:r("rounded-md"),lg:r("rounded-lg"),xl:r("rounded-xl"),"2xl":r("rounded-2xl"),"3xl":r("rounded-3xl"),full:r("rounded-full"),none:r("rounded-none")}};var F=()=>({onMouseDown:r=>{r.preventDefault()},onPointerDown:r=>{r.preventDefault()}});var d=y(require("react"));function B(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=d.createContext(void 0);o.displayName=n;function s(){let i=d.useContext(o);if(!i&&t){let u=new Error(r);throw u.name="ContextError",Error.captureStackTrace?.(u,s),u}return i}return[o.Provider,s,o]}var p=require("react"),z=e=>{let t=(0,p.useRef)(null);return(0,p.useImperativeHandle)(e,()=>t.current),t};var H=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"]),G=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 $=/^(data-.*)$/,de=/^(aria-.*)$/,f=/^(on[A-Z].*)$/;function W(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:s,omitEventNames:i,omitDataProps:u,omitEventProps:j}=t,m={};if(!n)return e;for(let a in e)s?.has(a)||i?.has(a)&&f.test(a)||f.test(a)&&!G.has(a)||u&&$.test(a)||j&&f.test(a)||(Object.prototype.hasOwnProperty.call(e,a)&&(H.has(a)||r&&de.test(a)||o?.has(a)||$.test(a))||f.test(a))&&(m[a]=e[a]);return m}function pe(e,t,r){if(t==="className")e.className=[e.className,r].join(" ").trim();else if(t==="style")e.style={...e.style,...r};else if(typeof r=="function"){let n=e[t];e[t]=n?(...o)=>{n(...o),r(...o)}:r}else if(!(r===void 0||typeof r!="object"&&r===e[t]))if(!(t in e))e[t]=r;else throw new Error(`Didn\u2019t know how to merge prop '${t}'. Only 'className', 'style', and event handlers are supported`)}function Y(...e){return e.length===1?e[0]:e.reduce((t,r)=>{for(let n in r)pe(t,n,r[n]);return t},{})}var q={collapse:{enter:{opacity:1,height:"auto",transition:{type:"spring",duration:.6}},exit:{opacity:0,height:0,transition:{type:"spring",duration:.6}}}};var _=(e,t,r=!0)=>{if(!t)return[e,{}];let n=t.reduce((o,s)=>s in e?{...o,[s]:e[s]}:o,{});return r?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,i)=>({...s,[i]:e[i]}),{}),n]:[e,n]};var Q=()=>Math.random().toString(36).slice(2);0&&(module.exports={TRANSITION_VARIANTS,absoluteFullClasses,cn,colorVariants,createContext,dataAttr,dataFocusVisibleClasses,deepMergeProps,filterDOMProps,focusVisibleClasses,formLabelProps,getBoolean,getRandomFromArray,groupDataFocusVisibleClasses,includes,isBoolean,isDecNum,isEmpty,isString,isTrue,mapPropsVariants,mergeClassNames,mergeProps,radiusBaseVariant,radiusVariant,randomId,ringClasses,translateCenterClasses,tv,useDOMRef}); | ||
"use strict";var J=Object.create;var l=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty;var oe=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},m=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ee(t))!re.call(e,o)&&o!==r&&l(e,o,{get:()=>t[o],enumerable:!(n=X(t,o))||n.enumerable});return e};var x=(e,t,r)=>(r=e!=null?J(te(e)):{},m(t||!e||!e.__esModule?l(r,"default",{value:e,enumerable:!0}):r,e)),ne=e=>m(l({},"__esModule",{value:!0}),e);var ge={};oe(ge,{TRANSITION_VARIANTS:()=>j,absoluteFullClasses:()=>I,cn:()=>c,colorVariants:()=>K,createContext:()=>B,dataAttr:()=>h,dataFocusVisibleClasses:()=>N,deepMergeProps:()=>R,filterDOMProps:()=>W,focusVisibleClasses:()=>k,formLabelProps:()=>F,getBoolean:()=>w,getRandomFromArray:()=>b,groupDataFocusVisibleClasses:()=>S,includes:()=>y,isBoolean:()=>v,isDecNum:()=>M,isEmpty:()=>P,isString:()=>T,isTrue:()=>C,mapPropsVariants:()=>q,mergeClassNames:()=>E,mergeProps:()=>Y,radiusBaseVariant:()=>L,radiusVariant:()=>U,randomId:()=>_,ringClasses:()=>A,translateCenterClasses:()=>V,tv:()=>Q.tv,useDOMRef:()=>z});module.exports=ne(ge);var Q=require("tailwind-variants");function y(e,t){return e.includes(t)}var b=e=>Math.floor(Math.random()*e);var h=e=>e?"true":void 0,T=e=>typeof e=="string",v=e=>typeof e=="boolean",C=e=>e===!0,P=e=>typeof e=="object"&&e!==null?Object.keys(e).length===0:Array.isArray(e)?e.length===0:typeof e=="number"&&e===0||!e,w=e=>e,M=e=>/^\d+(\.\d+)?$/.test(e.toString());var O=x(require("clsx")),D=require("tailwind-merge"),se=(0,D.extendTailwindMerge)({extend:{classGroups:{gap:["gap-responsive"],"font-size":["text-size-inherit"],shadow:["shadow-card"]}}}),c=(...e)=>se((0,O.default)(e));function R(e,t,r){let n={...e};for(let o in t)if(t.hasOwnProperty(o))if(o==="className")n[o]=c(n[o],t[o]);else if(o==="classNames"&&typeof t[o]=="object"&&!Array.isArray(t[o])){n[o]={...n[o]};for(let s in t[o])t[o].hasOwnProperty(s)&&(n[o][s]=c(n[o][s],t[o][s]))}else n[o]=t[o];return{...r,...n}}var E=(e,t)=>{if(!e&&!t)return{};if(!e)return t;if(!t)return e;let r={};for(let n in e)t.hasOwnProperty(n)?r[n]=c(e[n],t[n]):r[n]=e[n];for(let n in t)e.hasOwnProperty(n)||(r[n]=t[n]);return r};var k=["focus-visible:z-10","focus-visible:outline-primary","focus-visible:outline-2","focus-visible:outline","focus-visible:outline-focus","focus-visible:outline-offset-2"],N=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],S=["outline-none","outline-solid","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"],A=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],V=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],I=["absolute","inset-0"];var ae={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"},ie={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"},ue={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"},ce={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"},le={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"},K={solid:ae,outlined:ie,text:ue,light:ce,flat:le},L={sm:"rounded",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full",none:"rounded-none"},U=e=>{let t=Array.isArray(e)?e:[e],r=n=>t.reduce((o,s)=>({...o,[s]:n}),{});return{sm:r("rounded"),md:r("rounded-md"),lg:r("rounded-lg"),xl:r("rounded-xl"),"2xl":r("rounded-2xl"),"3xl":r("rounded-3xl"),full:r("rounded-full"),none:r("rounded-none")}};var F=()=>({onMouseDown:r=>{r.preventDefault()},onPointerDown:r=>{r.preventDefault()}});var d=x(require("react"));function B(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=d.createContext(void 0);o.displayName=n;function s(){let i=d.useContext(o);if(!i&&t){let u=new Error(r);throw u.name="ContextError",Error.captureStackTrace?.(u,s),u}return i}return[o.Provider,s,o]}var p=require("react"),z=e=>{let t=(0,p.useRef)(null);return(0,p.useImperativeHandle)(e,()=>t.current),t};var H=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"]),G=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 $=/^(data-.*)$/,de=/^(aria-.*)$/,g=/^(on[A-Z].*)$/;function W(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:s,omitEventNames:i,omitDataProps:u,omitEventProps:Z}=t,f={};if(!n)return e;for(let a in e)s?.has(a)||i?.has(a)&&g.test(a)||g.test(a)&&!G.has(a)||u&&$.test(a)||Z&&g.test(a)||(Object.prototype.hasOwnProperty.call(e,a)&&(H.has(a)||r&&de.test(a)||o?.has(a)||$.test(a))||g.test(a))&&(f[a]=e[a]);return f}function pe(e,t,r){if(t==="className")e.className=[e.className,r].join(" ").trim();else if(t==="style")e.style={...e.style,...r};else if(typeof r=="function"){let n=e[t];e[t]=n?(...o)=>{n(...o),r(...o)}:r}else if(!(r===void 0||typeof r!="object"&&r===e[t]))if(!(t in e))e[t]=r;else throw new Error(`Didn\u2019t know how to merge prop '${t}'. Only 'className', 'style', and event handlers are supported`)}function Y(...e){return e.length===1?e[0]:e.reduce((t,r)=>{for(let n in r)pe(t,n,r[n]);return t},{})}var j={collapse:{enter:{opacity:1,height:"auto",transition:{type:"spring",duration:.6}},exit:{opacity:0,height:0,transition:{type:"spring",duration:.6}}}};var q=(e,t,r=!0)=>{if(!t)return[e,{}];let n=t.reduce((o,s)=>s in e?{...o,[s]:e[s]}:o,{});return r?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,i)=>({...s,[i]:e[i]}),{}),n]:[e,n]};var _=()=>Math.random().toString(36).slice(2);0&&(module.exports={TRANSITION_VARIANTS,absoluteFullClasses,cn,colorVariants,createContext,dataAttr,dataFocusVisibleClasses,deepMergeProps,filterDOMProps,focusVisibleClasses,formLabelProps,getBoolean,getRandomFromArray,groupDataFocusVisibleClasses,includes,isBoolean,isDecNum,isEmpty,isString,isTrue,mapPropsVariants,mergeClassNames,mergeProps,radiusBaseVariant,radiusVariant,randomId,ringClasses,translateCenterClasses,tv,useDOMRef}); |
{ | ||
"name": "@jamsr-ui/utils", | ||
"version": "0.0.73", | ||
"version": "0.0.74", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60458
476