@mateosuarezdev/react-ui 1.0.26 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
@@ -1,20 +1,32 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Mateo Suárez
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.
1
+ Mateo Suarez Free Use License v1.0 (2025)
2
+ SPDX-License-Identifier: LicenseRef-MateoSuarez-FUL-1.0
3
+
4
+ Copyright (c) 2025 Mateo Suarez. All rights reserved.
5
+
6
+ Free Use License
7
+
8
+ This software package (“Software”) is provided free of charge for use within your own applications and projects, under the following terms:
9
+
10
+ 1. **Usage**
11
+ You are permitted to install and use the Software in your own personal or commercial projects, including projects that generate revenue.
12
+
13
+ 2. **Distribution**
14
+ You may use, install, and bundle the Software as part of your own applications, libraries, frameworks, or other projects — including commercial ones.
15
+
16
+ However, you may not redistribute, republish, or make the Software (or substantial portions of its compiled or source code) available as a standalone product or dependency under your own name or namespace, whether for free or for payment.
17
+
18
+ The Software may only be obtained through official distribution channels authorized by the copyright holder (such as the npm registry under the author's namespace) and may not be re-published, mirrored, or otherwise redistributed.
19
+
20
+ 3. **Modification**
21
+ Modification, reverse engineering, decompilation, disassembly, or creation of derivative works based on the Software is strictly prohibited.
22
+
23
+ 4. **Source Code**
24
+ The Software’s source code is not licensed, distributed, or made available under this license. You may only use the compiled output as provided.
25
+
26
+ 5. **Ownership**
27
+ The Software remains the sole property of the copyright holder. This license does not grant ownership or intellectual property rights of any kind.
28
+
29
+ 6. **Warranty Disclaimer**
30
+ The Software is provided “AS IS”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the author be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the Software or its use.
31
+
32
+ By installing or using the Software, you agree to these terms.
package/dist/index.cjs CHANGED
@@ -7,4 +7,3 @@ return()=>{console.log("IS THIS CLEANUP RUNNING?")};//! NOT RUNNING...
7
7
  focus-visible:ring-base-6`,e?"bg-brand":"bg-base-3",n?"opacity-50 cursor-not-allowed":"cursor-pointer",s),children:[c.jsx("span",{className:w(`inline-block h-6 w-6 transform rounded-full
8
8
  transition-transform duration-200 ease-in-out
9
9
  shadow`,e?"bg-brand-text translate-x-[22px]":"bg-base-1 dark-theme:bg-base-12 translate-x-[2px]")}),r&&c.jsx("input",{type:"checkbox",name:r,checked:e,required:o,disabled:n,onChange:()=>{},tabIndex:-1,"aria-hidden":"true",className:"sr-only"})]})}const nr=({label:e,variant:t="default",color:n="solid",tags:r,onChange:o,valid:s,error:a,placeholder:i="Add a tag...",maxTags:u,validateTag:l})=>{const[d,f]=m.useState(""),[h,b]=m.useState(!1),[p,y]=m.useState(null),N=m.useRef(null),$=m.useRef(null),k=m.useRef([]),A=r.length>0,S=m.useRef(`taginput-${Math.random().toString(36).substr(2,9)}`).current,D=m.useRef(`label-${Math.random().toString(36).substr(2,9)}`).current,v=m.useRef(`error-${Math.random().toString(36).substr(2,9)}`).current;m.useEffect(()=>{k.current=k.current.slice(0,r.length)},[r.length]);const x=T=>{if(T.key==="Enter"&&d.trim()){T.preventDefault();const P=d.trim();if(u&&r.length>=u){y(`Maximum of ${u} tags allowed`);return}if(r.includes(P)){y("Tag already exists");return}if(l){const q=l(P);if(typeof q=="string"){y(q);return}else if(q===!1){y("Invalid tag");return}}o([...r,P]),f(""),y(null),W(`Added tag ${P}`)}else if(T.key==="Backspace"&&!d&&r.length>0){const P=r[r.length-1];o(r.slice(0,-1)),W(`Removed tag ${P}`)}else T.key==="ArrowLeft"&&d===""&&r.length>0&&k.current[r.length-1]&&k.current[r.length-1]?.focus()},C=(T,P)=>{if(T.key==="Backspace"||T.key==="Delete"){T.preventDefault();const q=r[P],j=[...r];j.splice(P,1),o(j),setTimeout(()=>{N.current&&N.current.focus()},0),W(`Removed tag ${q}`)}else T.key==="ArrowRight"?(T.preventDefault(),P<r.length-1?k.current[P+1]?.focus():N.current?.focus()):T.key==="ArrowLeft"&&(T.preventDefault(),P>0&&k.current[P-1]?.focus())},L=(T,P)=>{o(r.filter(q=>q!==T)),setTimeout(()=>{P<r.length-1?k.current[P]?.focus():P>0?k.current[P-1]?.focus():N.current?.focus()},0),W(`Removed tag ${T}`)},H=T=>{f(T.target.value),y(null)},z=()=>{N.current&&N.current.focus()},W=T=>{console.log(`Accessibility announcement: ${T}`)};return c.jsxs("div",{children:[c.jsxs("div",{className:"relative",ref:$,children:[t==="default"?c.jsxs("label",{id:D,htmlFor:S,className:w("text-base top-4 font-semibold left-3",{"text-sm top-2 left-2":h||A||i,"text-red-9":!!a}),children:[e," ",u&&`(${r.length}/${u})`]}):null,c.jsxs("div",{className:w("rounded-6 px-2 transition cursor-text pr-10",{"bg-base-3":n==="solid","border border-uielborder focus-visible:border-transparent":n==="outline","py-3":t==="default","pt-5 pb-2":t==="floating","ring-2 ring-branduielborder":h,"text-red-9":a||p,"ring-2 ring-red-6":(a||p)&&h}),onClick:z,role:"group","aria-labelledby":D,"aria-describedby":a||p?v:void 0,children:[t==="floating"?c.jsxs("label",{id:D,htmlFor:S,className:w("absolute transition-all duration-200 pointer-events-none","text-base top-4 font-semibold left-3",{"text-sm top-2 left-2":h||A||i,"text-red-9":!!a}),children:[e," ",u&&`(${r.length}/${u})`]}):null,c.jsxs("div",{className:w("flex flex-wrap gap-1 items-center",{"mt-2.5":t==="floating"}),children:[r.map((T,P)=>c.jsxs("div",{ref:q=>{k.current[P]=q},className:w("line-clamp-1 text-brand rounded-full px-2 text-sm flex items-center",{"bg-brandfadedbg text-brand":!a&&!p,"bg-red-4 text-red-9":a||p}),tabIndex:0,role:"button","aria-label":`${T}, press delete or backspace to remove`,onKeyDown:q=>C(q,P),children:[T,c.jsx("button",{type:"button",className:"ml-1 text-brand hover:text-brandhover shrink-0",onClick:()=>L(T,P),"aria-label":`Remove ${T} tag`,children:"x"})]},`${T}-${P}`)),c.jsx("input",{id:S,ref:N,type:"text",className:"flex-grow min-w-[60px] bg-transparent outline-none placeholder:text-sm placeholder:text-secondarytext",value:d,onChange:H,onKeyDown:x,onFocus:()=>b(!0),onBlur:()=>b(!1),enterKeyHint:"enter",autoComplete:"off",placeholder:r.length>0?"":i,style:{width:`${Math.max(60,d.length*8)}px`},"aria-describedby":a||p?v:void 0,"aria-invalid":!!(a||p)})]})]}),s&&c.jsx("span",{className:"absolute right-3 top-1/2 transform -translate-y-1/2",children:c.jsx(F.CheckIcon,{})})]}),(a||p)&&c.jsx("p",{id:v,className:"text-red-500 text-xs mt-1","aria-live":"assertive",children:a||p}),c.jsx("div",{className:"sr-only","aria-live":"polite","aria-atomic":"true",children:r.length>0?`Current tags: ${r.join(", ")}`:"No tags added yet"})]})},za=({name:e,...t})=>{const{control:n}=te.useFormContext();return n?c.jsx(te.Controller,{name:e,control:n,render:({field:r,fieldState:o})=>c.jsx(nr,{tags:r.value,onChange:s=>r.onChange(s),error:o.error?.message,...t})}):(console.error(`Form control is missing for field: ${e}`),c.jsxs("p",{children:["Form control missing for field: ",e]}))},Ha={brand:"ring-1 ring-brand",solid:"ring-1 ring-base-6"},zt=m.forwardRef(({label:e,labelPosition:t="default",placeholder:n,error:r,focusColor:o="brand",className:s,value:a,rows:i=3,...u},l)=>{const[d,f]=m.useState(!1),h=a!==""&&a!==null&&a!==void 0;return c.jsxs("div",{className:"relative",children:[t==="default"?c.jsx("label",{className:w("top-[18px] font-medium ml-0.5 text-xs",r&&"text-red-9"),children:e}):null,c.jsxs("div",{className:w(t==="default"?"p-0":"pt-5 pb-2",{"bg-red-4 text-red-9":!!r}),children:[t==="floating"&&c.jsx("label",{className:w("absolute transition-all duration-200 pointer-events-none","text-sm top-2.5 font-semibold left-2.5",{"text-xs top-2.5":d||h||n,"text-red-9":!!r}),children:e}),c.jsx("textarea",{ref:l,className:w(!r&&d&&Ha[o],"bg-base-3 border border-base-4 light-theme:drop-shadow-sm rounded-6 w-full focus-visible:outline-none customscrollbarnohide","placeholder:text-base-11 text-sm","resize-none",t==="default"?"p-3":"mt-1",{"text-red-9 placeholder:text-red-9":!!r},s),value:a,placeholder:n,onFocus:()=>f(!0),onBlur:()=>f(!1),rows:i,...u})]})]})});zt.displayName="TextArea";const Ba=({name:e,customRead:t,customSet:n,...r})=>{const{control:o}=te.useFormContext(),s=m.useCallback(i=>t?t(i):i===null?Mt(i):i,[t]),a=m.useCallback(i=>n?n(i):i===null?rt(i):i,[n]);return o?c.jsx(te.Controller,{name:e,control:o,render:({field:i,fieldState:u})=>c.jsxs("div",{children:[c.jsx(zt,{value:s(i.value),onChange:l=>i.onChange(a(l.target.value)),error:!!u.error,ref:i.ref,...r}),u.error?c.jsx("span",{role:"alert",className:"text-red-9 text-sm mt-1 ml-0.5",children:u.error.message}):null]})}):(console.error(`Form control is missing for field: ${e}`),c.jsxs("p",{children:["Form control missing for field: ",e]}))},Tt=new Set,K=new WeakMap,Se=new WeakMap,J=new WeakMap,ze=new WeakMap,yt=new WeakMap,Re=new WeakMap,Ee=new WeakMap,ve=new WeakMap,De=new WeakSet;let le,Ht=0,Bt=0;const fe="__aa_tgt",He="__aa_del",lt="__aa_new",rr=e=>{const t=Ka(e);t&&t.forEach(n=>Ua(n))},qa=e=>{e.forEach(t=>{t.target===le&&Va(),K.has(t.target)&&Ce(t.target)})};function or(e){const t=e.getBoundingClientRect(),n=le?.clientWidth||0,r=le?.clientHeight||0;return t.bottom<0||t.top>r||t.right<0||t.left>n}function qt(e){ze.get(e)?.disconnect();let n=K.get(e),r=0;const o=5;n||(n=Oe(e),K.set(e,n));const{offsetWidth:s,offsetHeight:a}=le,u=[n.top-o,s-(n.left+o+n.width),a-(n.top+o+n.height),n.left-o].map(d=>`${-1*Math.floor(d)}px`).join(" "),l=new IntersectionObserver(()=>{++r>1&&Ce(e)},{root:le,threshold:1,rootMargin:u});l.observe(e),ze.set(e,l)}function Ce(e,t=!0){clearTimeout(ve.get(e));const n=bt(e),r=t?Be(n)?500:n.duration:0;ve.set(e,setTimeout(async()=>{const o=J.get(e);try{await o?.finished,K.set(e,Oe(e)),qt(e)}catch{}},r))}function Va(){clearTimeout(ve.get(le)),ve.set(le,setTimeout(()=>{Tt.forEach(e=>nt(e,t=>sr(()=>Ce(t))))},100))}function Xa(e){setTimeout(()=>{Re.set(e,setInterval(()=>sr(Ce.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function sr(e){typeof requestIdleCallback=="function"?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}let We;const ar=typeof window<"u"&&"ResizeObserver"in window;ar&&(le=document.documentElement,new MutationObserver(rr),We=new ResizeObserver(qa),window.addEventListener("scroll",()=>{Bt=window.scrollY,Ht=window.scrollX}),We.observe(le));function Ka(e){return e.reduce((r,o)=>[...r,...Array.from(o.addedNodes),...Array.from(o.removedNodes)],[]).every(r=>r.nodeName==="#comment")?!1:e.reduce((r,o)=>{if(r===!1)return!1;if(o.target instanceof Element){if(Nt(o.target),!r.has(o.target)){r.add(o.target);for(let s=0;s<o.target.children.length;s++){const a=o.target.children.item(s);if(a){if(He in a)return!1;Nt(o.target,a),r.add(a)}}}if(o.removedNodes.length)for(let s=0;s<o.removedNodes.length;s++){const a=o.removedNodes[s];if(He in a)return!1;a instanceof Element&&(r.add(a),Nt(o.target,a),Se.set(a,[o.previousSibling,o.nextSibling]))}}return r},new Set)}function Nt(e,t){!t&&!(fe in e)?Object.defineProperty(e,fe,{value:e}):t&&!(fe in t)&&Object.defineProperty(t,fe,{value:e})}function Ua(e){const t=e.isConnected,n=K.has(e);t&&Se.has(e)&&Se.delete(e),J.get(e)?.playState!=="finished"&&J.get(e)?.cancel(),lt in e?hn(e):n&&t?Qa(e):n&&!t?Ja(e):hn(e)}function se(e){return Number(e.replace(/[^0-9.\-]/g,""))}function Ga(e){let t=e.parentElement;for(;t;){if(t.scrollLeft||t.scrollTop)return{x:t.scrollLeft,y:t.scrollTop};t=t.parentElement}return{x:0,y:0}}function Oe(e){const t=e.getBoundingClientRect(),{x:n,y:r}=Ga(e);return{top:t.top+r,left:t.left+n,width:t.width,height:t.height}}function ir(e,t,n){let r=t.width,o=t.height,s=n.width,a=n.height;const i=getComputedStyle(e);if(i.getPropertyValue("box-sizing")==="content-box"){const l=se(i.paddingTop)+se(i.paddingBottom)+se(i.borderTopWidth)+se(i.borderBottomWidth),d=se(i.paddingLeft)+se(i.paddingRight)+se(i.borderRightWidth)+se(i.borderLeftWidth);r-=d,s-=d,o-=l,a-=l}return[r,s,o,a].map(Math.round)}function bt(e){return fe in e&&Ee.has(e[fe])?Ee.get(e[fe]):{duration:250,easing:"ease-in-out"}}function cr(e){if(fe in e)return e[fe]}function Vt(e){const t=cr(e);return t?De.has(t):!1}function nt(e,...t){t.forEach(n=>n(e,Ee.has(e)));for(let n=0;n<e.children.length;n++){const r=e.children.item(n);r&&t.forEach(o=>o(r,Ee.has(r)))}}function Xt(e){return Array.isArray(e)?e:[e]}function Be(e){return typeof e=="function"}function Qa(e){const t=K.get(e),n=Oe(e);if(!Vt(e))return K.set(e,n);if(or(e)){K.set(e,n),qt(e);return}let r;if(!t)return;const o=bt(e);if(typeof o!="function"){let s=t.left-n.left,a=t.top-n.top;const i=t.left+t.width-(n.left+n.width);t.top+t.height-(n.top+n.height)==0&&(a=0),i==0&&(s=0);const[l,d,f,h]=ir(e,t,n),b={transform:`translate(${s}px, ${a}px)`},p={transform:"translate(0, 0)"};l!==d&&(b.width=`${l}px`,p.width=`${d}px`),f!==h&&(b.height=`${f}px`,p.height=`${h}px`),r=e.animate([b,p],{duration:o.duration,easing:o.easing})}else{const[s]=Xt(o(e,"remain",t,n));r=new Animation(s),r.play()}J.set(e,r),K.set(e,n),r.addEventListener("finish",Ce.bind(null,e,!1),{once:!0})}function hn(e){lt in e&&delete e[lt];const t=Oe(e);K.set(e,t);const n=bt(e);if(!Vt(e))return;if(or(e)){qt(e);return}let r;if(typeof n!="function")r=e.animate([{transform:"scale(.98)",opacity:0},{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:n.duration*1.5,easing:"ease-in"});else{const[o]=Xt(n(e,"add",t));r=new Animation(o),r.play()}J.set(e,r),r.addEventListener("finish",Ce.bind(null,e,!1),{once:!0})}function bn(e,t){e.remove(),K.delete(e),Se.delete(e),J.delete(e),ze.get(e)?.disconnect(),setTimeout(()=>{if(He in e&&delete e[He],Object.defineProperty(e,lt,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(const n in t)e.style[n]=""},0)}function Ja(e){if(!Se.has(e)||!K.has(e))return;const[t,n]=Se.get(e);Object.defineProperty(e,He,{value:!0,configurable:!0});const r=window.scrollX,o=window.scrollY;if(n&&n.parentNode&&n.parentNode instanceof Element?n.parentNode.insertBefore(e,n):t&&t.parentNode?t.parentNode.appendChild(e):cr(e)?.appendChild(e),!Vt(e))return bn(e);const[s,a,i,u]=ei(e),l=bt(e),d=K.get(e);(r!==Ht||o!==Bt)&&Za(e,r,o,l);let f,h={position:"absolute",top:`${s}px`,left:`${a}px`,width:`${i}px`,height:`${u}px`,margin:"0",pointerEvents:"none",transformOrigin:"center",zIndex:"100"};if(!Be(l))Object.assign(e.style,h),f=e.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}],{duration:l.duration,easing:"ease-out"});else{const[b,p]=Xt(l(e,"remove",d));p?.styleReset!==!1&&(h=p?.styleReset||h,Object.assign(e.style,h)),f=new Animation(b),f.play()}J.set(e,f),f.addEventListener("finish",()=>bn(e,h),{once:!0})}function Za(e,t,n,r){const o=Ht-t,s=Bt-n,a=document.documentElement.style.scrollBehavior;if(getComputedStyle(le).scrollBehavior==="smooth"&&(document.documentElement.style.scrollBehavior="auto"),window.scrollTo(window.scrollX+o,window.scrollY+s),!e.parentElement)return;const u=e.parentElement;let l=u.clientHeight,d=u.clientWidth;const f=performance.now();function h(){requestAnimationFrame(()=>{if(!Be(r)){const b=l-u.clientHeight,p=d-u.clientWidth;f+r.duration>performance.now()?(window.scrollTo({left:window.scrollX-p,top:window.scrollY-b}),l=u.clientHeight,d=u.clientWidth,h()):document.documentElement.style.scrollBehavior=a}})}h()}function ei(e){const t=K.get(e),[n,,r]=ir(e,t,Oe(e));let o=e.parentElement;for(;o&&(getComputedStyle(o).position==="static"||o instanceof HTMLBodyElement);)o=o.parentElement;o||(o=document.body);const s=getComputedStyle(o),a=!J.has(e)||J.get(e)?.playState==="finished"?Oe(o):K.get(o),i=Math.round(t.top-a.top)-se(s.borderTopWidth),u=Math.round(t.left-a.left)-se(s.borderLeftWidth);return[i,u,n,r]}function lr(e,t={}){if(ar&&We&&!(window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!Be(t)&&!t.disrespectUserMotionPreference)){De.add(e),getComputedStyle(e).position==="static"&&Object.assign(e.style,{position:"relative"}),nt(e,Ce,Xa,a=>We?.observe(a)),Be(t)?Ee.set(e,t):Ee.set(e,{duration:250,easing:"ease-in-out",...t});const s=new MutationObserver(rr);s.observe(e,{childList:!0}),yt.set(e,s),Tt.add(e)}return Object.freeze({parent:e,enable:()=>{De.add(e)},disable:()=>{De.delete(e),nt(e,r=>{const o=J.get(r);try{o?.cancel()}catch{}J.delete(r);const s=ve.get(r);s&&clearTimeout(s),ve.delete(r);const a=Re.get(r);a&&clearInterval(a),Re.delete(r)})},isEnabled:()=>De.has(e),destroy:()=>{De.delete(e),Tt.delete(e),Ee.delete(e),yt.get(e)?.disconnect(),yt.delete(e),nt(e,o=>{We?.unobserve(o);const s=J.get(o);try{s?.cancel()}catch{}J.delete(o),ze.get(o)?.disconnect(),ze.delete(o);const i=Re.get(o);i&&clearInterval(i),Re.delete(o);const u=ve.get(o);u&&clearTimeout(u),ve.delete(o),K.delete(o),Se.delete(o)})}})}const ti=["Lunes","Martes","Miercoles","Jueves","Viernes","Sábado","Domingo"],ni=()=>c.jsx(ri,{}),ri=()=>c.jsx("div",{children:ti.map(e=>c.jsx(oi,{day:e},e))}),oi=({day:e})=>{const[t,n]=m.useState(!1),r=m.useRef(null);return m.useEffect(()=>{r.current&&lr(r.current)},[]),c.jsxs("div",{ref:r,className:w("p-2 rounded-xl mt-2",{"border border-uielborder":t,"bg-uielbg border border-transparent":!t}),children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("p",{children:e}),c.jsx(tr,{className:"mt-0",checked:t,onCheckedChange:o=>n(o)})]}),t?c.jsx(si,{}):null]},e)},si=()=>{const[e,t]=m.useState([{from:"08:00",to:"12:00"},{from:"14:00",to:"18:00"}]),n=m.useRef(null);return m.useEffect(()=>{n.current&&lr(n.current)},[]),c.jsxs("div",{ref:n,children:[e.map((r,o)=>c.jsxs("div",{className:"flex items-center justify-between mt-2",children:[c.jsx("p",{className:"text-sm text-secondarytext",children:"De"}),c.jsx(G,{color:"solid",className:"w-24",children:r.from}),c.jsx("p",{className:"text-sm text-secondarytext mx-1",children:"a"}),c.jsx(G,{color:"solid",className:"w-24",children:r.to}),c.jsx(G,{className:"rounded-full",children:c.jsx(F.X,{className:"text-secondarytext",size:20})})]},`${r.from}${o}`)),c.jsxs(G,{onClick:()=>t(r=>[...r,{from:"19:00",to:"21:00"}]),className:"w-full mt-4",color:"contrast",children:[c.jsx(F.Plus,{className:"stroke-1"}),"Añadir hora"]})]})};exports.AliveScope=ka;exports.Avatar=Nr;exports.AvatarsGroup=kr;exports.Button=G;exports.Calendar=It;exports.Checkbox=Yn;exports.DatePickerDemo=ta;exports.DatePickerPopover=na;exports.DateTimePicker=oa;exports.FocusTrap=xr;exports.Form=pa;exports.FormInput=xa;exports.FormMultiSelect=Ma;exports.FormSubmit=_a;exports.FormTags=za;exports.FormTextArea=Ba;exports.FormWorkingHours=ni;exports.Icon=Kn;exports.Input=Yt;exports.KeepAlive=Sa;exports.List=Ca;exports.ListItem=Ta;exports.ModalsProvider=Ia;exports.MultiSelect=Qn;exports.PageScroller=Da;exports.PageTitle=Oa;exports.PopoverCard=In;exports.PopoverCardContent=Js;exports.PopoverCardFooter=Zs;exports.PopoverCardHeader=Qs;exports.Portal=ht;exports.SearchInput=Fa;exports.SeeMoreText=La;exports.SegmentedControl=Aa;exports.Separator=Wa;exports.Spinner=Jn;exports.SuperModal=Ya;exports.Switch=tr;exports.Tags=nr;exports.TextArea=zt;exports.TimePicker=ra;exports.calculatePopoverPosition=Nn;exports.checkOverflow=_e;exports.cn=w;exports.debounce=gr;exports.extractDirtyData=wr;exports.generateInitials=gn;exports.nullRead=Mt;exports.nullSet=rt;exports.removeWhitespaces=wn;exports.setFocusEnd=vn;exports.throttle=qe;exports.toTitleCase=vr;exports.useClickAway=$r;exports.useClickAwayAdvanced=jr;exports.useClickAwayWithRef=Ot;exports.useKeepAlive=ja;exports.useKeyListener=kn;exports.useLargeScreen=Ve;exports.useMergedRef=Dt;exports.useMethods=ga;exports.useModals=er;exports.useOverflow=xn;exports.useOverflowState=yr;exports.usePopover=Pt;exports.useRipple=yn;
10
- //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Attempt
4
+ * Copyright (c) 2025 Mateo Suarez. All rights reserved.
5
+ *
6
+ * Free to use in your own personal or commercial applications and projects.
7
+ * Unauthorized copying, modification, or distribution is strictly prohibited.
8
+ * See LICENSE file for full terms.
9
+ */
10
+
1
11
  import { ButtonHTMLAttributes } from 'react';
2
12
  import { ClassValue } from 'clsx';
3
13
  import { ComponentPropsWithoutRef } from 'react';
package/dist/index.js CHANGED
@@ -1,3 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Attempt
4
+ * Copyright (c) 2025 Mateo Suarez. All rights reserved.
5
+ *
6
+ * Free to use in your own personal or commercial applications and projects.
7
+ * Unauthorized copying, modification, or distribution is strictly prohibited.
8
+ * See LICENSE file for full terms.
9
+ */
10
+
1
11
  import { jsx as d, jsxs as g, Fragment as kn } from "react/jsx-runtime";
2
12
  import We, { useRef as E, useEffect as R, useState as j, useSyncExternalStore as kr, useLayoutEffect as Tn, useCallback as A, useId as Sn, forwardRef as qe, useContext as mt, useMemo as le, memo as Tr, createContext as It } from "react";
3
13
  import { createPortal as Mn } from "react-dom";
@@ -6188,4 +6198,3 @@ export {
6188
6198
  jn as usePopover,
6189
6199
  Kr as useRipple
6190
6200
  };
6191
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mateosuarezdev/react-ui",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Dynamic React UI library designed to work alongside @mateosuarezdev/react-router",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -16,12 +16,11 @@
16
16
  "files": [
17
17
  "dist/**/*.js",
18
18
  "dist/**/*.cjs",
19
- "dist/**/*.d.ts",
20
- "dist/**/*.map"
19
+ "dist/**/*.d.ts"
21
20
  ],
22
21
  "sideEffects": false,
23
22
  "scripts": {
24
- "build": "vite build",
23
+ "build": "vite build && bun run scripts/prepend-license.ts",
25
24
  "build:visualize": "vite-bundle-visualizer",
26
25
  "typecheck": "tsc --noEmit",
27
26
  "clean": "rimraf dist",