From c564a614049dd93183ae0cd7ce623c28611a2d25 Mon Sep 17 00:00:00 2001 From: Sil Date: Thu, 26 Nov 2026 17:02:12 +0100 Subject: [PATCH 01/32] Update data-slot to 1.1.3 and shadcn to 4.23 Co-Authored-By: Claude Opus 5.5 --- liquid/assets/data-slot-command.js | 2 +- liquid/assets/data-slot-toast.js | 2 +- liquid/assets/ui-licenses.json | 2 +- liquid/assets/ui-manifest.json | 6 +- package.json | 48 +- pnpm-lock.yaml | 868 ++++-------------- public/r/liquid/components.json | 2 +- public/r/liquid/init.json | 2 +- public/r/liquid/runtime.json | 4 +- public/r/styles/base-luma/accordion.json | 2 +- public/r/styles/base-luma/alert-dialog.json | 2 +- public/r/styles/base-luma/collapsible.json | 2 +- public/r/styles/base-luma/combobox.json | 4 +- public/r/styles/base-luma/command.json | 4 +- public/r/styles/base-luma/dialog.json | 2 +- public/r/styles/base-luma/drawer.json | 2 +- public/r/styles/base-luma/dropdown-menu.json | 2 +- public/r/styles/base-luma/hover-card.json | 4 +- .../r/styles/base-luma/navigation-menu.json | 2 +- public/r/styles/base-luma/popover.json | 2 +- public/r/styles/base-luma/radio-group.json | 2 +- public/r/styles/base-luma/registry.json | 52 +- public/r/styles/base-luma/resizable.json | 2 +- public/r/styles/base-luma/select.json | 2 +- public/r/styles/base-luma/sheet.json | 2 +- public/r/styles/base-luma/sidebar.json | 2 +- public/r/styles/base-luma/slider.json | 2 +- public/r/styles/base-luma/switch.json | 2 +- public/r/styles/base-luma/tabs.json | 2 +- public/r/styles/base-luma/toast.json | 2 +- public/r/styles/base-luma/toggle-group.json | 2 +- public/r/styles/base-luma/toggle.json | 2 +- public/r/styles/base-luma/tooltip.json | 2 +- public/r/styles/base-lyra/accordion.json | 2 +- public/r/styles/base-lyra/alert-dialog.json | 2 +- public/r/styles/base-lyra/collapsible.json | 2 +- public/r/styles/base-lyra/combobox.json | 4 +- public/r/styles/base-lyra/command.json | 4 +- public/r/styles/base-lyra/dialog.json | 2 +- public/r/styles/base-lyra/drawer.json | 2 +- public/r/styles/base-lyra/dropdown-menu.json | 2 +- public/r/styles/base-lyra/hover-card.json | 4 +- .../r/styles/base-lyra/navigation-menu.json | 2 +- public/r/styles/base-lyra/popover.json | 2 +- public/r/styles/base-lyra/radio-group.json | 2 +- public/r/styles/base-lyra/registry.json | 52 +- public/r/styles/base-lyra/resizable.json | 2 +- public/r/styles/base-lyra/select.json | 2 +- public/r/styles/base-lyra/sheet.json | 2 +- public/r/styles/base-lyra/sidebar.json | 2 +- public/r/styles/base-lyra/slider.json | 2 +- public/r/styles/base-lyra/switch.json | 2 +- public/r/styles/base-lyra/tabs.json | 2 +- public/r/styles/base-lyra/toast.json | 2 +- public/r/styles/base-lyra/toggle-group.json | 2 +- public/r/styles/base-lyra/toggle.json | 2 +- public/r/styles/base-lyra/tooltip.json | 2 +- public/r/styles/base-maia/accordion.json | 2 +- public/r/styles/base-maia/alert-dialog.json | 2 +- public/r/styles/base-maia/collapsible.json | 2 +- public/r/styles/base-maia/combobox.json | 4 +- public/r/styles/base-maia/command.json | 4 +- public/r/styles/base-maia/dialog.json | 2 +- public/r/styles/base-maia/drawer.json | 2 +- public/r/styles/base-maia/dropdown-menu.json | 2 +- public/r/styles/base-maia/hover-card.json | 4 +- .../r/styles/base-maia/navigation-menu.json | 2 +- public/r/styles/base-maia/popover.json | 2 +- public/r/styles/base-maia/radio-group.json | 2 +- public/r/styles/base-maia/registry.json | 52 +- public/r/styles/base-maia/resizable.json | 2 +- public/r/styles/base-maia/select.json | 2 +- public/r/styles/base-maia/sheet.json | 2 +- public/r/styles/base-maia/sidebar.json | 2 +- public/r/styles/base-maia/slider.json | 2 +- public/r/styles/base-maia/switch.json | 2 +- public/r/styles/base-maia/tabs.json | 2 +- public/r/styles/base-maia/toast.json | 2 +- public/r/styles/base-maia/toggle-group.json | 2 +- public/r/styles/base-maia/toggle.json | 2 +- public/r/styles/base-maia/tooltip.json | 2 +- public/r/styles/base-mira/accordion.json | 2 +- public/r/styles/base-mira/alert-dialog.json | 2 +- public/r/styles/base-mira/collapsible.json | 2 +- public/r/styles/base-mira/combobox.json | 4 +- public/r/styles/base-mira/command.json | 4 +- public/r/styles/base-mira/dialog.json | 2 +- public/r/styles/base-mira/drawer.json | 2 +- public/r/styles/base-mira/dropdown-menu.json | 2 +- public/r/styles/base-mira/hover-card.json | 4 +- .../r/styles/base-mira/navigation-menu.json | 2 +- public/r/styles/base-mira/popover.json | 2 +- public/r/styles/base-mira/radio-group.json | 2 +- public/r/styles/base-mira/registry.json | 52 +- public/r/styles/base-mira/resizable.json | 2 +- public/r/styles/base-mira/select.json | 2 +- public/r/styles/base-mira/sheet.json | 2 +- public/r/styles/base-mira/sidebar.json | 2 +- public/r/styles/base-mira/slider.json | 2 +- public/r/styles/base-mira/switch.json | 2 +- public/r/styles/base-mira/tabs.json | 2 +- public/r/styles/base-mira/toast.json | 2 +- public/r/styles/base-mira/toggle-group.json | 2 +- public/r/styles/base-mira/toggle.json | 2 +- public/r/styles/base-mira/tooltip.json | 2 +- public/r/styles/base-nova/accordion.json | 2 +- public/r/styles/base-nova/alert-dialog.json | 2 +- public/r/styles/base-nova/collapsible.json | 2 +- public/r/styles/base-nova/combobox.json | 4 +- public/r/styles/base-nova/command.json | 4 +- public/r/styles/base-nova/dialog.json | 2 +- public/r/styles/base-nova/drawer.json | 2 +- public/r/styles/base-nova/dropdown-menu.json | 2 +- public/r/styles/base-nova/hover-card.json | 4 +- .../r/styles/base-nova/navigation-menu.json | 2 +- public/r/styles/base-nova/popover.json | 2 +- public/r/styles/base-nova/radio-group.json | 2 +- public/r/styles/base-nova/registry.json | 52 +- public/r/styles/base-nova/resizable.json | 2 +- public/r/styles/base-nova/select.json | 2 +- public/r/styles/base-nova/sheet.json | 2 +- public/r/styles/base-nova/sidebar.json | 2 +- public/r/styles/base-nova/slider.json | 2 +- public/r/styles/base-nova/switch.json | 2 +- public/r/styles/base-nova/tabs.json | 2 +- public/r/styles/base-nova/toast.json | 2 +- public/r/styles/base-nova/toggle-group.json | 2 +- public/r/styles/base-nova/toggle.json | 2 +- public/r/styles/base-nova/tooltip.json | 2 +- public/r/styles/base-rhea/accordion.json | 2 +- public/r/styles/base-rhea/alert-dialog.json | 2 +- public/r/styles/base-rhea/collapsible.json | 2 +- public/r/styles/base-rhea/combobox.json | 4 +- public/r/styles/base-rhea/command.json | 4 +- public/r/styles/base-rhea/dialog.json | 2 +- public/r/styles/base-rhea/drawer.json | 2 +- public/r/styles/base-rhea/dropdown-menu.json | 2 +- public/r/styles/base-rhea/hover-card.json | 4 +- .../r/styles/base-rhea/navigation-menu.json | 2 +- public/r/styles/base-rhea/popover.json | 2 +- public/r/styles/base-rhea/radio-group.json | 2 +- public/r/styles/base-rhea/registry.json | 52 +- public/r/styles/base-rhea/resizable.json | 2 +- public/r/styles/base-rhea/select.json | 2 +- public/r/styles/base-rhea/sheet.json | 2 +- public/r/styles/base-rhea/sidebar.json | 2 +- public/r/styles/base-rhea/slider.json | 2 +- public/r/styles/base-rhea/switch.json | 2 +- public/r/styles/base-rhea/tabs.json | 2 +- public/r/styles/base-rhea/toast.json | 2 +- public/r/styles/base-rhea/toggle-group.json | 2 +- public/r/styles/base-rhea/toggle.json | 2 +- public/r/styles/base-rhea/tooltip.json | 2 +- public/r/styles/base-sera/accordion.json | 2 +- public/r/styles/base-sera/alert-dialog.json | 2 +- public/r/styles/base-sera/collapsible.json | 2 +- public/r/styles/base-sera/combobox.json | 4 +- public/r/styles/base-sera/command.json | 4 +- public/r/styles/base-sera/dialog.json | 2 +- public/r/styles/base-sera/drawer.json | 2 +- public/r/styles/base-sera/dropdown-menu.json | 2 +- public/r/styles/base-sera/hover-card.json | 4 +- .../r/styles/base-sera/navigation-menu.json | 2 +- public/r/styles/base-sera/popover.json | 2 +- public/r/styles/base-sera/radio-group.json | 2 +- public/r/styles/base-sera/registry.json | 52 +- public/r/styles/base-sera/resizable.json | 2 +- public/r/styles/base-sera/select.json | 2 +- public/r/styles/base-sera/sheet.json | 2 +- public/r/styles/base-sera/sidebar.json | 2 +- public/r/styles/base-sera/slider.json | 2 +- public/r/styles/base-sera/switch.json | 2 +- public/r/styles/base-sera/tabs.json | 2 +- public/r/styles/base-sera/toast.json | 2 +- public/r/styles/base-sera/toggle-group.json | 2 +- public/r/styles/base-sera/toggle.json | 2 +- public/r/styles/base-sera/tooltip.json | 2 +- public/r/styles/base-vega/accordion.json | 2 +- public/r/styles/base-vega/alert-dialog.json | 2 +- public/r/styles/base-vega/collapsible.json | 2 +- public/r/styles/base-vega/combobox.json | 4 +- public/r/styles/base-vega/command.json | 4 +- public/r/styles/base-vega/dialog.json | 2 +- public/r/styles/base-vega/drawer.json | 2 +- public/r/styles/base-vega/dropdown-menu.json | 2 +- public/r/styles/base-vega/hover-card.json | 4 +- .../r/styles/base-vega/navigation-menu.json | 2 +- public/r/styles/base-vega/popover.json | 2 +- public/r/styles/base-vega/radio-group.json | 2 +- public/r/styles/base-vega/registry.json | 52 +- public/r/styles/base-vega/resizable.json | 2 +- public/r/styles/base-vega/select.json | 2 +- public/r/styles/base-vega/sheet.json | 2 +- public/r/styles/base-vega/sidebar.json | 2 +- public/r/styles/base-vega/slider.json | 2 +- public/r/styles/base-vega/switch.json | 2 +- public/r/styles/base-vega/tabs.json | 2 +- public/r/styles/base-vega/toast.json | 2 +- public/r/styles/base-vega/toggle-group.json | 2 +- public/r/styles/base-vega/toggle.json | 2 +- public/r/styles/base-vega/tooltip.json | 2 +- react/package.json | 2 +- registry.json | 52 +- 203 files changed, 645 insertions(+), 1177 deletions(-) diff --git a/liquid/assets/data-slot-command.js b/liquid/assets/data-slot-command.js index 2d5c14e91..5a0595322 100644 --- a/liquid/assets/data-slot-command.js +++ b/liquid/assets/data-slot-command.js @@ -1 +1 @@ -import{clearRootBinding as e,emit as t,ensureId as n,ensureItemVisibleInContainer as r,getDataBool as i,getDataString as a,getOwnedElements as o,getPart as s,getRoots as c,hasRootBinding as l,on as u,onRoot as d,reuseRootBinding as ee,setAria as f,setRootBinding as te}from"@data-slot/core";const p=.1,m=.999,h=/[\\/_+.#"@\[\(\{&]/,g=/[\\/_+.#"@\[\(\{&]/g,_=/[\s-]/,v=/[\s-]/g;function y(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?1:.99;let s=`${i},${a}`,c=o[s];if(c!==void 0)return c;let l=r.charAt(a),u=n.indexOf(l,i),d=0;for(;u>=0;){let s=y(e,t,n,r,u+1,a+1,o);if(s>d){if(u===i)s*=1;else if(h.test(e.charAt(u-1))){s*=.8;let t=e.slice(i,u-1).match(g);t&&i>0&&(s*=m**+t.length)}else if(_.test(e.charAt(u-1))){s*=.9;let t=e.slice(i,u-1).match(v);t&&i>0&&(s*=m**+t.length)}else s*=.17,i>0&&(s*=m**+(u-i));e.charAt(u)!==t.charAt(a)&&(s*=.9999)}if(ss&&(s=i*p)}s>d&&(d=s),u=n.indexOf(l,u+1)}return o[s]=d,d}function b(e){return e.toLowerCase().replace(v,` `)}function ne(e,t,n=[]){let r=n.length>0?`${e} ${n.join(` `)}`:e;return y(r,t,b(r),b(t),0,0,{})}const x=Symbol(`data-slot.command.authored-value`),S=Symbol(`data-slot.command.inferred-value`),C=e=>e==null?null:e.trim(),re=e=>e?e.split(/[,\n]/).map(e=>e.trim()).filter(Boolean):[],ie=(e,t)=>Array.from(e.children).filter(e=>e instanceof HTMLElement&&e.getAttribute(`data-slot`)===t),ae=e=>{let t=e=>e.nodeType===Node.TEXT_NODE?e.textContent??``:!(e instanceof HTMLElement)||e.getAttribute(`data-slot`)===`command-shortcut`?``:Array.from(e.childNodes,t).join(``);return t(e).replace(/\s+/g,` `).trim()},oe=e=>e.hasAttribute(`disabled`)||e.hasAttribute(`data-disabled`)||e.getAttribute(`aria-disabled`)===`true`,se=(e,t)=>{let n=e,r=e.hasAttribute(`data-value`);if(n[x]===void 0&&(n[x]=r),r?n[x]||(n[x]=C(e.getAttribute(`data-value`))!==n[S]):n[x]=!1,n[x])return{authored:!0,value:C(e.getAttribute(`data-value`))};let i=t();return n[S]=i,i===null?e.removeAttribute(`data-value`):e.setAttribute(`data-value`,i),{authored:!1,value:i}},w=`@data-slot/command`,T=`[data-slot="command-item"]`,E=`[data-slot="command-group"]`,ce=`[data-slot="command-separator"]`,le=[`input:not([type="hidden"])`,`textarea`,`select`,`button`,`a[href]`,`summary`,`audio[controls]`,`video[controls]`,`[contenteditable=""]`,`[contenteditable="true"]`,`[contenteditable="plaintext-only"]`,`[tabindex]:not([tabindex="-1"])`].join(`, `),ue=(e,t,n)=>t.trim()?ne(e,t,n??[]):1,de=(e,t)=>{let n=e;for(;n&&n.parentElement&&n.parentElement!==t;)n=n.parentElement;return n?.parentElement===t?n:null},D=e=>Array.from(e.children).filter(e=>e instanceof HTMLElement);function O(c,l={}){let p=ee(c,w,`[@data-slot/command] createCommand() called more than once for the same root. Returning the existing controller. Destroy it before rebinding with new options.`);if(p)return p;let m=c,h=s(c,`command-input`),g=s(c,`command-list`);if(!h||!g)throw Error(`Command requires command-input and command-list slots`);let _=o(c,g,`[data-slot="command-empty"]`)[0]??null,v=l.label??a(m,`label`)??`Command Menu`,y=l.shouldFilter??i(m,`shouldFilter`)??!0,b=l.loop??i(m,`loop`)??!1,ne=l.disablePointerSelection??i(m,`disablePointerSelection`)??!1,x=l.vimBindings??i(m,`vimBindings`)??!0,S=l.filter??ue,O=l.onValueChange,fe=l.onSearchChange,pe=l.onSelect,k=C(l.defaultValue??a(m,`defaultValue`)),A=l.defaultSearch??a(m,`defaultSearch`)??``,j=[],M=[],N=[],P=new Map,F=new Map,I=0,L=[],R=null,z=null,B=!1,V=!1,me=!1,H=[],U=new Map,W=!1,he=n(h,`command-input`),ge=n(g,`command-list`);m.hasAttribute(`tabindex`)||(m.tabIndex=-1,me=!0),h.setAttribute(`role`,`combobox`),h.setAttribute(`aria-autocomplete`,`list`),h.setAttribute(`aria-expanded`,`true`),h.setAttribute(`aria-controls`,ge),h.setAttribute(`autocomplete`,`off`),h.setAttribute(`autocorrect`,`off`),h.spellcheck=!1,g.setAttribute(`role`,`listbox`),g.tabIndex=-1;let _e=document.querySelector(`label[for="${CSS.escape(he)}"]`);if(_e){let e=n(_e,`command-label`),t=h.getAttribute(`aria-labelledby`);h.setAttribute(`aria-labelledby`,t?`${t} ${e}`:e),g.setAttribute(`aria-labelledby`,e)}else !h.hasAttribute(`aria-label`)&&!h.hasAttribute(`aria-labelledby`)&&(h.setAttribute(`aria-label`,v),g.setAttribute(`aria-label`,`Suggestions`));let ve=()=>{document.activeElement!==h&&h.focus({preventScroll:!0})},ye=e=>{if(!(e instanceof HTMLElement)||!m.contains(e))return null;let t=e.closest(le);return t instanceof HTMLElement&&m.contains(t)?t:null},be=e=>{R?.disconnect();try{return e()}finally{He()}},xe=()=>{g.style.setProperty(`--command-list-height`,`${g.scrollHeight.toFixed(1)}px`)},Se=(e,t)=>{let n=e.filter(e=>t.includes(e));for(let e of t){if(n.includes(e))continue;let r=t.indexOf(e),i=!1;for(let a=r-1;a>=0;--a){let r=t[a];if(!r)continue;let o=n.indexOf(r);if(o!==-1){n.splice(o+1,0,e),i=!0;break}}if(!i){for(let a=r+1;a{H=D(g),U=new Map(M.map(e=>[e.el,D(e.el)]))},we=()=>{H=Se(H,D(g)),U=new Map(M.map(e=>[e.el,Se(U.get(e.el)??[],D(e.el))]))},G=(e,t)=>{let n=new Set(t.filter(t=>t.parentElement===e)),r=e.firstElementChild;for(let t of[...n,...D(e).filter(e=>!n.has(e))])t===r?r=r.nextElementSibling:e.insertBefore(t,r)},Te=e=>new Map(e.map((e,t)=>[e,t])),Ee=()=>{for(let e of M)G(e.el,U.get(e.el)??[]);G(g,H)},K=()=>k===null?null:j.find(e=>e.value===k&&!e.el.hidden&&!(e.group?.el.hidden??!1))?.el??null,De=()=>{for(let e of j){let t=e.value===k&&k!==null;e.el.hasAttribute(`data-selected`)!==t&&(f(e.el,`selected`,t),t?e.el.setAttribute(`data-selected`,`true`):e.el.removeAttribute(`data-selected`))}let e=K();e?(h.setAttribute(`aria-activedescendant`,e.id),g.setAttribute(`aria-activedescendant`,e.id)):(h.removeAttribute(`aria-activedescendant`),g.removeAttribute(`aria-activedescendant`))},Oe=()=>{k===null?m.removeAttribute(`data-value`):m.setAttribute(`data-value`,k),A?m.setAttribute(`data-search`,A):m.removeAttribute(`data-search`)},ke=()=>[...g.querySelectorAll(T)].map(e=>P.get(e)??null).filter(e=>e!==null&&!e.el.hidden&&!(e.group?.el.hidden??!1)),q=()=>ke().filter(e=>!e.disabled),Ae=(e,n,r)=>{!r||e===n||(t(m,`command:change`,{value:n}),O?.(n))},je=()=>{let e=K();e&&r(e,g)},J=(e,t={})=>{let n=C(e),r=k,i=t.emit??!0,a=t.ensureVisible??!1;return k=n,De(),Oe(),a&&je(),(document.activeElement===h||document.activeElement===m)&&ve(),Ae(r,k,i),r!==k},Me=()=>{j=[],M=[],P=new Map,F=new Map;for(let e of o(m,g,E)){let t=ie(e,`command-group-heading`)[0]??null,r={el:e,heading:t,value:se(e,()=>C(t?.textContent)??n(e,`command-group`)).value??n(e,`command-group`),forceMount:i(e,`forceMount`)??!1,maxRank:0};if(F.set(e,r),M.push(r),e.setAttribute(`role`,`group`),t){let r=n(t,`command-group-heading`);e.setAttribute(`aria-labelledby`,r)}else e.removeAttribute(`aria-labelledby`)}for(let e of o(m,g,T)){let t=e.closest(E),r=t instanceof HTMLElement&&t.closest(`[data-slot="command"]`)===m?F.get(t)??null:null,a={el:e,value:se(e,()=>C(e.getAttribute(`data-label`))??C(ae(e))).value,keywords:re(e.getAttribute(`data-keywords`)??void 0),disabled:oe(e),forceMount:i(e,`forceMount`)??!1,rank:0,group:r};P.set(e,a),j.push(a),n(e,`command-item`),e.setAttribute(`role`,`option`),f(e,`selected`,!1),f(e,`disabled`,a.disabled||null),e.removeAttribute(`data-selected`)}N=o(m,g,ce);for(let e of N)e.setAttribute(`role`,`separator`)},Ne=()=>{let e=A.length>0,t=y&&e;I=0;for(let e of M)e.maxRank=0;for(let e of j)e.rank=t&&e.value!==null?S(e.value,A,e.keywords):1,e.rank>0&&(I+=1),e.el.hidden=!(e.forceMount||e.group?.forceMount||e.rank>0),e.group&&e.rank>e.group.maxRank&&(e.group.maxRank=e.rank);for(let e of M)e.el.hidden=t&&!e.forceMount&&e.maxRank<=0;for(let t of N)t.hidden=e&&!(i(t,`alwaysRender`)??!1);_&&(_.hidden=I>0)},Pe=()=>{if(!y||!A)return;let e=H.filter(e=>e.parentElement===g),t=Te(e),n=new Map,r=new Map;for(let e of j){if(e.group!==null)continue;let t=de(e.el,g);t&&(n.set(t,Math.max(n.get(t)??0,e.rank)),e.el.hidden||r.set(t,Math.max(r.get(t)??0,e.rank)))}let i=new Set([...n.keys(),...M.map(e=>e.el)]),a=[...Array.from(r,([e,t])=>({el:e,rank:t})),...M.filter(e=>!e.el.hidden).map(e=>({el:e.el,rank:e.maxRank}))].sort((e,n)=>n.rank===e.rank?(t.get(e.el)??2**53-1)-(t.get(n.el)??2**53-1):n.rank-e.rank),o=new Set(a.map(e=>e.el)),s=D(g).filter(e=>i.has(e)&&!o.has(e)),c=[...a.map(e=>e.el),...s],l=0;G(g,e.map(e=>i.has(e)?c[l++]??e:e));for(let e of M){let t=U.get(e.el)?.filter(t=>t.parentElement===e.el)??[],n=Te(t),r=new Set,i=new Map;for(let t of j){if(t.group!==e)continue;let n=de(t.el,e.el);n&&(r.add(n),t.el.hidden||i.set(n,Math.max(i.get(n)??0,t.rank)))}let a=Array.from(i,([e,t])=>({el:e,rank:t})).sort((e,t)=>t.rank===e.rank?(n.get(e.el)??2**53-1)-(n.get(t.el)??2**53-1):t.rank-e.rank),o=new Set(a.map(e=>e.el)),s=D(e.el).filter(e=>r.has(e)&&!o.has(e)),c=[...a.map(e=>e.el),...s],l=0,u=t.map(e=>r.has(e)?c[l++]??e:e);G(e.el,u)}},Fe=()=>{be(()=>{y&&A?(Ne(),Pe(),W=!0):(W&&Ee(),Ne(),W=!1),De(),Oe()}),z||xe()},Y=()=>{if(be(Me),W?we():Ce(),Fe(),!(typeof ResizeObserver>`u`)){z??=new ResizeObserver(xe),z.disconnect();for(let e of[g,...o(m,g,`${T}, ${E}, ${ce}, [data-slot="command-empty"]`)])z.observe(e)}},Ie=(e=!0,t=!1)=>{J(q()[0]?.value??null,{emit:e,ensureVisible:t})},X=(e,n=!0,r=!0)=>{A!==e&&(A=e,h.value=e,Fe(),r&&Ie(n,!0),n&&(t(m,`command:search-change`,{search:A}),fe?.(A)))},Le=e=>{e.value===null||e.disabled||(J(e.value,{emit:!0}),t(m,`command:select`,{value:e.value}),pe?.(e.value))},Re=e=>{let t=P.get(e)??null;return t||(Y(),t=P.get(e)??null,t)},Z=e=>{let t=q()[e];t&&J(t.value,{emit:!0,ensureVisible:!0})},Q=e=>{let t=q();if(t.length===0)return;let n=t.findIndex(e=>e.value===k),r=t[n+e];b&&(r=n+e<0?t[t.length-1]:n+e===t.length?t[0]:t[n+e]),r&&J(r.value,{emit:!0,ensureVisible:!0})},ze=e=>{let t=K()?.closest(E);for(;t;){let n=e>0?t.nextElementSibling:t.previousElementSibling,r=null;for(;n;){if(n instanceof HTMLElement&&n.getAttribute(`data-slot`)===`command-group`&&!n.hidden){r=n;break}n=e>0?n.nextElementSibling:n.previousElementSibling}if(!r)break;let i=[...r.querySelectorAll(T)].map(e=>P.get(e)??null).find(e=>e!==null&&!e.disabled&&!e.el.hidden);if(i){J(i.value,{emit:!0,ensureVisible:!0});return}t=r}Q(e)},Be=e=>{if(e.defaultPrevented)return;let t=ye(e.target);if(t&&t!==h)return;let n=e.key.toLowerCase();if(e.isComposing||e.keyCode===229)return;let r=()=>{e.preventDefault(),e.metaKey?Z(q().length-1):e.altKey?ze(1):Q(1)},i=()=>{e.preventDefault(),e.metaKey?Z(0):e.altKey?ze(-1):Q(-1)};switch(n){case`arrowdown`:r();break;case`arrowup`:i();break;case`home`:e.preventDefault(),Z(0);break;case`end`:e.preventDefault(),Z(q().length-1);break;case`enter`:{let t=K(),n=t?P.get(t):null;if(!n||n.value===null)return;e.preventDefault(),Le(n);break}case`j`:case`n`:x&&e.ctrlKey&&r();break;case`k`:case`p`:x&&e.ctrlKey&&i();break}},Ve=()=>{B||V||(B=!0,queueMicrotask(()=>{if(B=!1,V)return;let e=K();Y();let t=e?P.get(e)??null:null;if(t&&t.value!==null&&!t.disabled&&!t.el.hidden&&!(t.group?.el.hidden??!1)){J(t.value,{emit:!0});return}if(k!==null){let e=q().find(e=>e.value===k)??null;if(e){J(e.value,{emit:!0});return}}J(q()[0]?.value??null,{emit:!0})}))},He=()=>{R&&R.observe(g,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:[`data-slot`,`data-value`,`data-label`,`data-keywords`,`data-disabled`,`disabled`,`aria-disabled`,`data-force-mount`,`data-always-render`]})};typeof MutationObserver<`u`&&(R=new MutationObserver(()=>{Ve()}),He()),h.value=A,Y(),(A||k===null)&&Ie(!1),L.push(u(h,`input`,()=>{X(h.value,!0,!0)})),L.push(u(m,`keydown`,e=>{Be(e)})),L.push(u(g,`pointermove`,e=>{if(ne)return;let t=e.target,n=t instanceof HTMLElement?t.closest(T):null;if(!(n instanceof HTMLElement))return;let r=Re(n);!r||r.disabled||n.hidden||r.group?.el.hidden||J(r.value,{emit:!0})})),L.push(u(g,`click`,e=>{let t=e.target,n=ye(t),r=t instanceof HTMLElement?t.closest(T):null;if(n&&n!==r||!(r instanceof HTMLElement))return;let i=Re(r);!i||i.disabled||i.value===null||r.hidden||i.group?.el.hidden||Le(i)})),L.push(d(m,`command:set`,e=>{let t=e.detail;t&&(t.search!==void 0&&X(String(t.search),!0,t.value===void 0),t.value!==void 0&&J(t.value,{emit:!0,ensureVisible:!0}))}));let $={get value(){return k},get search(){return A},select(e){J(e,{emit:!0,ensureVisible:!0})},setSearch(e){X(e,!0,!0)},destroy(){V=!0,R?.disconnect(),z?.disconnect(),L.forEach(e=>e()),L=[],me&&m.removeAttribute(`tabindex`),e(m,w,$)}};return te(m,w,$),$}function fe(e=document){let t=[];for(let n of c(e,`command`))l(n,w)||t.push(O(n));return t}export{fe as create,O as createCommand}; \ No newline at end of file +import{clearRootBinding as e,emit as t,ensureId as n,ensureItemVisibleInContainer as r,getDataBool as i,getDataString as a,getOwnedElements as o,getPart as s,getRoots as c,hasRootBinding as l,on as u,onRoot as d,reuseRootBinding as ee,setAria as f,setRootBinding as te}from"@data-slot/core";const p=.1,m=.999,h=/[\\/_+.#"@\[\(\{&]/,g=/[\\/_+.#"@\[\(\{&]/g,_=/[\s-]/,v=/[\s-]/g;function y(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?1:.99;let s=`${i},${a}`,c=o[s];if(c!==void 0)return c;let l=r.charAt(a),u=n.indexOf(l,i),d=0;for(;u>=0;){let s=y(e,t,n,r,u+1,a+1,o);if(s>d){if(u===i)s*=1;else if(h.test(e.charAt(u-1))){s*=.8;let t=e.slice(i,u-1).match(g);t&&i>0&&(s*=m**+t.length)}else if(_.test(e.charAt(u-1))){s*=.9;let t=e.slice(i,u-1).match(v);t&&i>0&&(s*=m**+t.length)}else s*=.17,i>0&&(s*=m**+(u-i));e.charAt(u)!==t.charAt(a)&&(s*=.9999)}if(ss&&(s=i*p)}s>d&&(d=s),u=n.indexOf(l,u+1)}return o[s]=d,d}function b(e){return e.toLowerCase().replace(v,` `)}function ne(e,t,n=[]){let r=n.length>0?`${e} ${n.join(` `)}`:e;return y(r,t,b(r),b(t),0,0,{})}const x=Symbol(`data-slot.command.authored-value`),S=Symbol(`data-slot.command.inferred-value`),C=e=>e==null?null:e.trim(),re=e=>e?e.split(/[,\n]/).map(e=>e.trim()).filter(Boolean):[],ie=(e,t)=>Array.from(e.children).filter(e=>e instanceof HTMLElement&&e.getAttribute(`data-slot`)===t),ae=e=>{let t=e=>e.nodeType===Node.TEXT_NODE?e.textContent??``:!(e instanceof HTMLElement)||e.getAttribute(`data-slot`)===`command-shortcut`?``:Array.from(e.childNodes,t).join(``);return t(e).replace(/\s+/g,` `).trim()},oe=e=>e.hasAttribute(`disabled`)||e.hasAttribute(`data-disabled`)||e.getAttribute(`aria-disabled`)===`true`,se=(e,t)=>{let n=e,r=e.hasAttribute(`data-value`);if(n[x]===void 0&&(n[x]=r),r?n[x]||(n[x]=C(e.getAttribute(`data-value`))!==n[S]):n[x]=!1,n[x])return{authored:!0,value:C(e.getAttribute(`data-value`))};let i=t();return n[S]=i,i===null?e.removeAttribute(`data-value`):e.setAttribute(`data-value`,i),{authored:!1,value:i}},w=`@data-slot/command`,T=`[data-slot="command-item"]`,E=`[data-slot="command-group"]`,ce=`[data-slot="command-separator"]`,le=[`input:not([type="hidden"])`,`textarea`,`select`,`button`,`a[href]`,`summary`,`audio[controls]`,`video[controls]`,`[contenteditable=""]`,`[contenteditable="true"]`,`[contenteditable="plaintext-only"]`,`[tabindex]:not([tabindex="-1"])`].join(`, `),ue=(e,t,n)=>t.trim()?ne(e,t,n??[]):1,de=(e,t)=>{let n=e;for(;n&&n.parentElement&&n.parentElement!==t;)n=n.parentElement;return n?.parentElement===t?n:null},D=e=>Array.from(e.children).filter(e=>e instanceof HTMLElement);function O(c,l={}){let p=ee(c,w,`[@data-slot/command] createCommand() called more than once for the same root. Returning the existing controller. Destroy it before rebinding with new options.`);if(p)return p;let m=c,h=s(c,`command-input`),g=s(c,`command-list`);if(!h||!g)throw Error(`Command requires command-input and command-list slots`);let _=o(c,g,`[data-slot="command-empty"]`)[0]??null,v=l.label??a(m,`label`)??`Command Menu`,y=l.shouldFilter??i(m,`shouldFilter`)??!0,b=l.loop??i(m,`loop`)??!1,ne=l.disablePointerSelection??i(m,`disablePointerSelection`)??!1,x=l.vimBindings??i(m,`vimBindings`)??!0,S=l.filter??ue,O=l.onValueChange,fe=l.onSearchChange,pe=l.onSelect,k=C(l.defaultValue??a(m,`defaultValue`)),A=l.defaultSearch??a(m,`defaultSearch`)??``,j=[],M=[],N=[],P=new Map,F=new Map,I=0,L=[],R=null,z=null,B=!1,V=!1,me=!1,H=[],U=new Map,W=!1,he=n(h,`command-input`),ge=n(g,`command-list`);m.hasAttribute(`tabindex`)||(m.tabIndex=-1,me=!0),h.setAttribute(`role`,`combobox`),h.setAttribute(`aria-autocomplete`,`list`),h.setAttribute(`aria-expanded`,`true`),h.setAttribute(`aria-controls`,ge),h.setAttribute(`autocomplete`,`off`),h.setAttribute(`autocorrect`,`off`),h.spellcheck=!1,g.setAttribute(`role`,`listbox`),g.tabIndex=-1;let _e=document.querySelector(`label[for="${CSS.escape(he)}"]`);if(_e){let e=n(_e,`command-label`),t=h.getAttribute(`aria-labelledby`);h.setAttribute(`aria-labelledby`,t?`${t} ${e}`:e),g.setAttribute(`aria-labelledby`,e)}else !h.hasAttribute(`aria-label`)&&!h.hasAttribute(`aria-labelledby`)&&(h.setAttribute(`aria-label`,v),g.setAttribute(`aria-label`,`Suggestions`));let ve=()=>{document.activeElement!==h&&h.focus({preventScroll:!0})},ye=e=>{if(!(e instanceof HTMLElement)||!m.contains(e))return null;let t=e.closest(le);return t instanceof HTMLElement&&m.contains(t)?t:null},be=e=>{R?.disconnect();try{return e()}finally{He()}},xe=()=>{g.style.setProperty(`--command-list-height`,`${g.scrollHeight.toFixed(1)}px`)},Se=(e,t)=>{let n=e.filter(e=>t.includes(e));for(let e of t){if(n.includes(e))continue;let r=t.indexOf(e),i=!1;for(let a=r-1;a>=0;--a){let r=t[a];if(!r)continue;let o=n.indexOf(r);if(o!==-1){n.splice(o+1,0,e),i=!0;break}}if(!i){for(let a=r+1;a{H=D(g),U=new Map(M.map(e=>[e.el,D(e.el)]))},we=()=>{H=Se(H,D(g)),U=new Map(M.map(e=>[e.el,Se(U.get(e.el)??[],D(e.el))]))},G=(e,t)=>{let n=new Set(t.filter(t=>t.parentElement===e)),r=e.firstElementChild;for(let t of[...n,...D(e).filter(e=>!n.has(e))])t===r?r=r.nextElementSibling:e.insertBefore(t,r)},Te=e=>new Map(e.map((e,t)=>[e,t])),Ee=()=>{for(let e of M)G(e.el,U.get(e.el)??[]);G(g,H)},K=()=>k===null?null:j.find(e=>e.value===k&&!e.el.hidden&&!(e.group?.el.hidden??!1))?.el??null,De=()=>{for(let e of j){let t=e.value===k&&k!==null;e.el.hasAttribute(`data-selected`)!==t&&(f(e.el,`selected`,t),t?e.el.setAttribute(`data-selected`,`true`):e.el.removeAttribute(`data-selected`))}let e=K();e?(h.setAttribute(`aria-activedescendant`,e.id),g.setAttribute(`aria-activedescendant`,e.id)):(h.removeAttribute(`aria-activedescendant`),g.removeAttribute(`aria-activedescendant`))},Oe=()=>{k===null?m.removeAttribute(`data-value`):m.setAttribute(`data-value`,k),A?m.setAttribute(`data-search`,A):m.removeAttribute(`data-search`)},ke=()=>[...g.querySelectorAll(T)].map(e=>P.get(e)??null).filter(e=>e!==null&&!e.el.hidden&&!(e.group?.el.hidden??!1)),q=()=>ke().filter(e=>!e.disabled),Ae=(e,n,r)=>{!r||e===n||(t(m,`command:change`,{value:n}),O?.(n))},je=()=>{let e=K();e&&r(e,g)},J=(e,t={})=>{let n=C(e),r=k,i=t.emit??!0,a=t.ensureVisible??!1;return k=n,De(),Oe(),a&&je(),(document.activeElement===h||document.activeElement===m)&&ve(),Ae(r,k,i),r!==k},Me=()=>{j=[],M=[],P=new Map,F=new Map;for(let e of o(m,g,E)){let t=ie(e,`command-group-heading`)[0]??null,r={el:e,heading:t,value:se(e,()=>C(t?.textContent)??n(e,`command-group`)).value??n(e,`command-group`),forceMount:i(e,`forceMount`)??!1,maxRank:0};if(F.set(e,r),M.push(r),e.setAttribute(`role`,`group`),t){let r=n(t,`command-group-heading`);e.setAttribute(`aria-labelledby`,r)}else e.removeAttribute(`aria-labelledby`)}for(let e of o(m,g,T)){let t=e.closest(E),r=t instanceof HTMLElement&&t.closest(`[data-slot="command"]`)===m?F.get(t)??null:null,a={el:e,value:se(e,()=>C(e.getAttribute(`data-label`))??C(ae(e))).value,keywords:re(e.getAttribute(`data-keywords`)??void 0),disabled:oe(e),forceMount:i(e,`forceMount`)??!1,rank:0,group:r};P.set(e,a),j.push(a),n(e,`command-item`),e.setAttribute(`role`,`option`),f(e,`selected`,!1),f(e,`disabled`,a.disabled||null),e.removeAttribute(`data-selected`)}N=o(m,g,ce);for(let e of N)e.setAttribute(`role`,`separator`)},Ne=()=>{let e=A.length>0,t=y&&e;I=0;for(let e of M)e.maxRank=0;for(let e of j)e.rank=t&&e.value!==null?S(e.value,A,e.keywords):1,e.rank>0&&(I+=1),e.el.hidden=!(e.forceMount||e.group?.forceMount||e.rank>0),e.group&&e.rank>e.group.maxRank&&(e.group.maxRank=e.rank);for(let e of M)e.el.hidden=t&&!e.forceMount&&e.maxRank<=0;for(let t of N)t.hidden=e&&!(i(t,`alwaysRender`)??!1);_&&(_.hidden=I>0)},Pe=()=>{if(!y||!A)return;let e=H.filter(e=>e.parentElement===g),t=Te(e),n=new Map,r=new Map;for(let e of j){if(e.group!==null)continue;let t=de(e.el,g);t&&(n.set(t,Math.max(n.get(t)??0,e.rank)),e.el.hidden||r.set(t,Math.max(r.get(t)??0,e.rank)))}let i=new Set([...n.keys(),...M.map(e=>e.el)]),a=[...Array.from(r,([e,t])=>({el:e,rank:t})),...M.filter(e=>!e.el.hidden).map(e=>({el:e.el,rank:e.maxRank}))].sort((e,n)=>n.rank===e.rank?(t.get(e.el)??2**53-1)-(t.get(n.el)??2**53-1):n.rank-e.rank),o=new Set(a.map(e=>e.el)),s=D(g).filter(e=>i.has(e)&&!o.has(e)),c=[...a.map(e=>e.el),...s],l=0;G(g,e.map(e=>i.has(e)?c[l++]??e:e));for(let e of M){let t=U.get(e.el)?.filter(t=>t.parentElement===e.el)??[],n=Te(t),r=new Set,i=new Map;for(let t of j){if(t.group!==e)continue;let n=de(t.el,e.el);n&&(r.add(n),t.el.hidden||i.set(n,Math.max(i.get(n)??0,t.rank)))}let a=Array.from(i,([e,t])=>({el:e,rank:t})).sort((e,t)=>t.rank===e.rank?(n.get(e.el)??2**53-1)-(n.get(t.el)??2**53-1):t.rank-e.rank),o=new Set(a.map(e=>e.el)),s=D(e.el).filter(e=>r.has(e)&&!o.has(e)),c=[...a.map(e=>e.el),...s],l=0,u=t.map(e=>r.has(e)?c[l++]??e:e);G(e.el,u)}},Fe=()=>{be(()=>{y&&A?(Ne(),Pe(),W=!0):(W&&Ee(),Ne(),W=!1),De(),Oe()}),typeof ResizeObserver>`u`&&xe()},Y=()=>{if(be(Me),W?we():Ce(),Fe(),!(typeof ResizeObserver>`u`)){z??=new ResizeObserver(xe),z.disconnect();for(let e of[g,...o(m,g,`${T}, ${E}, ${ce}, [data-slot="command-empty"]`)])z.observe(e)}},Ie=(e=!0,t=!1)=>{J(q()[0]?.value??null,{emit:e,ensureVisible:t})},X=(e,n=!0,r=!0)=>{A!==e&&(A=e,h.value=e,Fe(),r&&Ie(n,!0),n&&(t(m,`command:search-change`,{search:A}),fe?.(A)))},Le=e=>{e.value===null||e.disabled||(J(e.value,{emit:!0}),t(m,`command:select`,{value:e.value}),pe?.(e.value))},Re=e=>{let t=P.get(e)??null;return t||(Y(),t=P.get(e)??null,t)},Z=e=>{let t=q()[e];t&&J(t.value,{emit:!0,ensureVisible:!0})},Q=e=>{let t=q();if(t.length===0)return;let n=t.findIndex(e=>e.value===k),r=t[n+e];b&&(r=n+e<0?t[t.length-1]:n+e===t.length?t[0]:t[n+e]),r&&J(r.value,{emit:!0,ensureVisible:!0})},ze=e=>{let t=K()?.closest(E);for(;t;){let n=e>0?t.nextElementSibling:t.previousElementSibling,r=null;for(;n;){if(n instanceof HTMLElement&&n.getAttribute(`data-slot`)===`command-group`&&!n.hidden){r=n;break}n=e>0?n.nextElementSibling:n.previousElementSibling}if(!r)break;let i=[...r.querySelectorAll(T)].map(e=>P.get(e)??null).find(e=>e!==null&&!e.disabled&&!e.el.hidden);if(i){J(i.value,{emit:!0,ensureVisible:!0});return}t=r}Q(e)},Be=e=>{if(e.defaultPrevented)return;let t=ye(e.target);if(t&&t!==h)return;let n=e.key.toLowerCase();if(e.isComposing||e.keyCode===229)return;let r=()=>{e.preventDefault(),e.metaKey?Z(q().length-1):e.altKey?ze(1):Q(1)},i=()=>{e.preventDefault(),e.metaKey?Z(0):e.altKey?ze(-1):Q(-1)};switch(n){case`arrowdown`:r();break;case`arrowup`:i();break;case`home`:e.preventDefault(),Z(0);break;case`end`:e.preventDefault(),Z(q().length-1);break;case`enter`:{let t=K(),n=t?P.get(t):null;if(!n||n.value===null)return;e.preventDefault(),Le(n);break}case`j`:case`n`:x&&e.ctrlKey&&r();break;case`k`:case`p`:x&&e.ctrlKey&&i();break}},Ve=()=>{B||V||(B=!0,queueMicrotask(()=>{if(B=!1,V)return;let e=K();Y();let t=e?P.get(e)??null:null;if(t&&t.value!==null&&!t.disabled&&!t.el.hidden&&!(t.group?.el.hidden??!1)){J(t.value,{emit:!0});return}if(k!==null){let e=q().find(e=>e.value===k)??null;if(e){J(e.value,{emit:!0});return}}J(q()[0]?.value??null,{emit:!0})}))},He=()=>{R&&R.observe(g,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:[`data-slot`,`data-value`,`data-label`,`data-keywords`,`data-disabled`,`disabled`,`aria-disabled`,`data-force-mount`,`data-always-render`]})};typeof MutationObserver<`u`&&(R=new MutationObserver(()=>{Ve()}),He()),h.value=A,Y(),(A||k===null)&&Ie(!1),L.push(u(h,`input`,()=>{X(h.value,!0,!0)})),L.push(u(m,`keydown`,e=>{Be(e)})),L.push(u(g,`pointermove`,e=>{if(ne)return;let t=e.target,n=t instanceof HTMLElement?t.closest(T):null;if(!(n instanceof HTMLElement))return;let r=Re(n);!r||r.disabled||n.hidden||r.group?.el.hidden||J(r.value,{emit:!0})})),L.push(u(g,`click`,e=>{let t=e.target,n=ye(t),r=t instanceof HTMLElement?t.closest(T):null;if(n&&n!==r||!(r instanceof HTMLElement))return;let i=Re(r);!i||i.disabled||i.value===null||r.hidden||i.group?.el.hidden||Le(i)})),L.push(d(m,`command:set`,e=>{let t=e.detail;t&&(t.search!==void 0&&X(String(t.search),!0,t.value===void 0),t.value!==void 0&&J(t.value,{emit:!0,ensureVisible:!0}))}));let $={get value(){return k},get search(){return A},select(e){J(e,{emit:!0,ensureVisible:!0})},setSearch(e){X(e,!0,!0)},destroy(){V=!0,R?.disconnect(),z?.disconnect(),L.forEach(e=>e()),L=[],me&&m.removeAttribute(`tabindex`),e(m,w,$)}};return te(m,w,$),$}function fe(e=document){let t=[];for(let n of c(e,`command`))l(n,w)||t.push(O(n));return t}export{fe as create,O as createCommand}; \ No newline at end of file diff --git a/liquid/assets/data-slot-toast.js b/liquid/assets/data-slot-toast.js index 48f7be116..d60dbe38e 100644 --- a/liquid/assets/data-slot-toast.js +++ b/liquid/assets/data-slot-toast.js @@ -5,4 +5,4 @@ import{clearRootBinding as e,createPortalLifecycle as t,createPresenceLifecycle - `,t},N=(e,t)=>{e.setAttribute(`data-state`,t),t===`open`?(e.setAttribute(`data-open`,``),e.removeAttribute(`data-closed`)):(e.setAttribute(`data-closed`,``),e.removeAttribute(`data-open`))},P=(e,t)=>{t===`error`||t===`warning`?(e.setAttribute(`role`,`alert`),e.setAttribute(`aria-live`,`assertive`)):(e.setAttribute(`role`,`status`),e.setAttribute(`aria-live`,`polite`)),e.setAttribute(`aria-atomic`,`true`)};function fe(e,t){let{viewport:r}=t,a=(A(t.template)&&j(t.template)?t.template:M(r.ownerDocument)).content.cloneNode(!0),o=a.querySelector(`[data-slot="toast-item"]`),s=new WeakMap,c=i(),l=e,u=!1,d=t.paused,f=null,p=l.duration,m=0,h=(e,t)=>{let n=e.querySelector(`[data-slot="toast-title"]`),r=e.querySelector(`[data-slot="toast-description"]`),i=e.querySelector(`[data-slot="toast-action"]`),a=e.querySelector(`[data-slot="toast-close"]`);if(n&&(n.textContent=t.title,n.hidden=!1),r&&(t.description&&t.description.trim()!==``?(r.textContent=t.description,r.hidden=!1):(r.textContent=``,r.hidden=!0)),i&&(t.action?.label&&t.action.label.trim()!==``?(i.textContent=t.action.label,i.hidden=!1):(i.textContent=``,i.hidden=!0)),e.setAttribute(`data-type`,t.type),t.dismissible?e.removeAttribute(`data-dismissible`):e.setAttribute(`data-dismissible`,`false`),t.testId&&t.testId.trim()!==``?e.setAttribute(`data-testid`,t.testId):e.removeAttribute(`data-testid`),a){if(s.has(a)||s.set(a,a.getAttribute(`aria-label`)),t.closeButtonAriaLabel&&t.closeButtonAriaLabel.trim()!==``)a.setAttribute(`aria-label`,t.closeButtonAriaLabel);else{let e=s.get(a);e&&e.trim()!==``?a.setAttribute(`aria-label`,e):a.setAttribute(`aria-label`,`Close`)}a.getAttribute(`aria-label`)||a.setAttribute(`aria-label`,`Close`)}P(e,t.type)},g=()=>{c.cancelTimeout(f),f=null},_=()=>{if(!(!y.active||d||l.duration<=0||f!==null)){if(p<=0){t.onTimeout(y);return}m=Date.now(),f=c.trackTimeout(()=>{f=null,t.onTimeout(y)},p)}},v=n({element:o,win:r.ownerDocument.defaultView??window,onExitComplete:()=>{c.isDestroyed||t.onExitComplete(y)}});c.onDestroy(()=>{v.cleanup(),o.remove()});let y={get id(){return l.id},element:o,get toast(){return l},get active(){return!u&&!c.isDestroyed},get exiting(){return u},mount(){r.appendChild(a),c.trackRaf(()=>{c.trackRaf(()=>{y.active&&o.setAttribute(`data-mounted`,`true`)})}),_()},update(e){y.active&&(l=ae(l,e),h(o,l),e.duration!==void 0&&(g(),p=l.duration,_()))},setPaused(e){d===e||!y.active||(d=e,d?(f!==null&&(p=Math.max(0,p-(Date.now()-m))),g()):_())},dismiss(){y.active&&(u=!0,g(),o.setAttribute(`data-removed`,`true`),o.style.zIndex=`0`,o.style.pointerEvents=`none`,N(o,`closed`),v.exit())},destroy(){c.destroy()}};o.setAttribute(`data-id`,l.id),h(o,l);for(let e of[`mounted`,`removed`,`front`,`visible`,`swiping`,`swipe-out`])o.setAttribute(`data-${e}`,`false`);o.setAttribute(`data-expanded`,String(t.expanded));for(let e of[`amount-x`,`amount-y`,`end-x`,`end-y`])o.style.setProperty(`--toast-swipe-${e}`,`0px`);return N(o,`open`),y}const F=`data-toast-prev-tabindex`,I=`__none__`,pe=e=>{let t=getComputedStyle(e).getPropertyValue(`--toast-gap`).trim();if(!t)return 8;let n=Number.parseFloat(t);return Number.isFinite(n)?n:8},L=e=>{let t=getComputedStyle(e).getPropertyValue(`--toast-collapsed-peek`).trim();if(!t)return 14;let n=Number.parseFloat(t);return Number.isFinite(n)?Math.max(0,n):14},R=e=>{let t=e.cloneNode(!0);t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`inert`,``),t.style.width=getComputedStyle(e).width,t.style.height=`auto`,t.style.maxHeight=`none`,t.style.position=`absolute`,t.style.inset=`0 auto auto 0`,t.style.visibility=`hidden`,t.style.pointerEvents=`none`,t.style.transform=`none`,t.style.transition=`none`,t.style.animation=`none`,e.parentElement.append(t);try{return t.offsetHeight||t.getBoundingClientRect().height||e.offsetHeight||e.getBoundingClientRect().height}finally{t.remove()}},me=e=>{let t=u(e);return m(e)&&t.unshift(e),t.filter(e=>e.getAttribute(`aria-hidden`)!==`true`)},z=e=>{let t=[...e.querySelectorAll(`[${F}]`)];return e.hasAttribute(F)&&t.unshift(e),t},B=(e,t)=>{if(t){e.removeAttribute(`aria-hidden`),e.removeAttribute(`inert`);for(let t of z(e)){let e=t.getAttribute(F);t.removeAttribute(F),!e||e===I?t.removeAttribute(`tabindex`):t.setAttribute(`tabindex`,e)}return}for(let t of me(e)){if(!t.hasAttribute(F)){let e=t.getAttribute(`tabindex`);t.setAttribute(F,e===null?I:e)}t.setAttribute(`tabindex`,`-1`)}e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`inert`,``)};function he({viewport:e,limit:t,stackDirection:n,getItems:r,onLayout:i}){let a=e.ownerDocument,o=new Set,s=new WeakMap,c=!1;e.style.setProperty(`--toast-lift`,String(n));let l=t=>{t?e.setAttribute(`data-expanded`,``):e.removeAttribute(`data-expanded`);let n=t?e.style.getPropertyValue(`--toast-expanded-stack-size`):e.style.getPropertyValue(`--toast-collapsed-stack-size`);e.style.setProperty(`--toast-stack-size`,n.trim()===``?`0px`:n);for(let e of o)e.setAttribute(`data-expanded`,String(t))},u=()=>{if(c)return;let n=r(),o=pe(e),l=L(e),u=n.length,d=0,f=0,p=0,m=0;for(let e=0;e0&&s.set(r,h),e===0&&(m=h);let g=e*l;if(r.style.setProperty(`--toast-index`,String(e)),r.style.setProperty(`--toast-initial-height`,`${h}px`),r.style.setProperty(`--toast-offset`,`${d}px`),r.style.setProperty(`--toast-collapsed-offset-y`,`${g}px`),r.setAttribute(`data-front`,String(e===0)),r.setAttribute(`data-visible`,String(i)),r.setAttribute(`data-removed`,`false`),r.style.zIndex=String(u-e+1),r.style.pointerEvents=i?``:`none`,!i&&c){let e=a.activeElement;e instanceof HTMLElement&&r.contains(e)&&e.blur()}B(r,i),d+=h+o,i&&(p+=1,f+=h+o)}let h=p>0?Math.max(0,f-o):0,g=p>0?Math.max(0,m+l*(p-1)):0;e.style.setProperty(`--toast-count`,String(u)),e.style.setProperty(`--toast-front-height`,`${m}px`),e.style.setProperty(`--toast-expanded-stack-size`,`${h}px`),e.style.setProperty(`--toast-collapsed-stack-size`,`${g}px`),i()},d=typeof ResizeObserver<`u`?new ResizeObserver(u):null;return{update:u,setExpanded:l,observe(e){o.add(e),d?.observe(e)},unobserve(e){o.delete(e),d?.unobserve(e)},destroy(){c=!0,d?.disconnect(),o.clear(),e.removeAttribute(`data-expanded`)}}}const V=e=>{e.element.setAttribute(`data-swiping`,`false`),e.element.setAttribute(`data-swipe-out`,`false`);for(let t of[`amount-x`,`amount-y`,`end-x`,`end-y`])e.element.style.removeProperty(`--toast-swipe-${t}`)};function ge({viewport:e,position:t,getEntry:n,dismiss:i}){let a={x:t.endsWith(`left`)?-1:t.endsWith(`right`)?1:0,y:t.startsWith(`top`)?-1:1},o=a.x===0?[`y`]:[`x`,`y`],s=(e,t)=>e*t<0?e*.2:e,c=e=>e.active&&e.toast.dismissible;return r({element:e,axes:o,lockThreshold:12,capture:e=>e.element,start(e,t){if(t.closest(`[data-slot="toast-action"], [data-slot="toast-close"]`))return null;let r=n(t);return r&&c(r)?r:null},active:c,move(e,{axis:t,deltaX:n,deltaY:r}){let i=t===`x`?s(n,a.x):0,o=t===`y`?s(r,a.y):0;e.element.setAttribute(`data-swiping`,`true`),e.element.style.setProperty(`--toast-swipe-amount-x`,`${i}px`),e.element.style.setProperty(`--toast-swipe-amount-y`,`${o}px`)},release(e,{axis:t,deltaX:n,deltaY:r}){let o=t===`x`?n:r;if(o*a[t]<40){V(e);return}let s=t===`x`?e.element.offsetWidth:e.element.offsetHeight,c=a[t]*Math.max(Math.abs(o),s+16);e.element.setAttribute(`data-swiping`,`false`),e.element.setAttribute(`data-swipe-out`,`true`),e.element.style.setProperty(`--toast-swipe-end-x`,`${t===`x`?c:0}px`),e.element.style.setProperty(`--toast-swipe-end-y`,`${t===`y`?c:0}px`),i(e)},reset:V})}const H=new Set([`hover`,`focus`]);function _e({hasExitingEntries:e,setExpanded:t,setPaused:n}){let r=new Set,i=!1,a=!1,o=()=>[...r].some(e=>H.has(e)),s=()=>{i&&(o()||!e())&&(i=!1),t(o()||i);let s=r.size>0;s!==a&&(a=s,n(a))};return{get expanded(){return o()||i},get paused(){return a},set(t,n){n?r.add(t):r.delete(t)&&H.has(t)&&!o()&&e()&&(i=!0),s()},sync:s}}const U=`@data-slot/toast`;function W(n,r={}){let u=g(n,U,`[@data-slot/toast] createToast() called more than once for the same root. Returning the existing controller. Destroy it before rebinding with new options.`);if(u)return u;let f=d(n,`toast-viewport`);if(!f)throw Error(`Toast requires a toast-viewport slot`);let p=n.ownerDocument??document,m=d(n,`toast-template`),y=ne(r.limit??l(n,`limit`)),b=re(r.duration??l(n,`duration`),5e3),x=r.position??c(n,`position`,v)??`bottom-right`,C=r.pauseOnHover??s(n,`pauseOnHover`)??!0,w=r.pauseOnFocus??s(n,`pauseOnFocus`)??!0,T=r.portal??s(n,`portal`)??!1,E=r.onShow,ee=r.onDismiss,te=r.onAction,D=x.startsWith(`top`)?1:-1;n.setAttribute(`data-position`,x),f.setAttribute(`data-position`,x),f.hasAttribute(`role`)||f.setAttribute(`role`,`region`),f.hasAttribute(`aria-label`)||f.setAttribute(`aria-label`,`Notifications`);let O=t({content:f,root:n,enabled:T});T&&O.mount();let A=new Map,j=i(),M=[],N=0,P=null,F=()=>[...A.values()].filter(e=>e.active),I=e=>A.get(e.id)===e,pe=()=>[...A.values()].some(e=>e.exiting),L=he({viewport:f,limit:y,stackDirection:D,getItems:()=>F().reverse().map(e=>e.element),onLayout:()=>R.set(`focus`,w&&B())}),R=_e({hasExitingEntries:pe,setExpanded:e=>L.setExpanded(e),setPaused:e=>{for(let t of F())t.setPaused(e)}});p.visibilityState===`hidden`&&R.set(`document`,!0);let z=e=>{if(!(e instanceof Node)||!f.contains(e))return!1;if(!(e instanceof Element))return!0;let t=e.closest(`[data-slot="toast-item"]`);return!t||!f.contains(t)?!0:t.getAttribute(`data-visible`)===`true`&&t.getAttribute(`data-state`)===`open`},B=()=>z(p.activeElement),V=()=>{for(let e of F().reverse()){if(e.element.getAttribute(`data-visible`)!==`true`)continue;let t=me(e.element)[0];if(t)return o(t),!0}return!1},H=()=>P&&P.isConnected?(o(P),!0):!1,W=e=>{let t=p.activeElement;!(t instanceof HTMLElement)||!f.contains(t)||e&&!e.contains(t)||V()||H()||t.blur()},G=e=>{a(n,`toast:change`,{id:e,action:`dismiss`}),ee?.(e)},K=e=>{I(e)&&(Q.cancel(e),L.unobserve(e.element),e.destroy(),A.delete(e.id),L.update())},q=(e,t=!0)=>{!I(e)||!e.active||(Q.cancel(e),e.dismiss(),L.update(),t&&W(e.element),G(e.id))},ve=e=>{let t=A.get(e);t&&q(t)},J=()=>{let e=``;do N+=1,e=`toast-${N}`;while(A.has(e));return e},Y=(e,t)=>{let r=S(e)?e:J(),i=ae(ie(r,b),t),o=A.get(r),s=o?.active;o&&K(o),s&&G(r);let c=fe(i,{viewport:f,template:m,expanded:R.expanded,paused:R.paused,onTimeout:q,onExitComplete:K});if(j.isDestroyed)return c.destroy(),c;let l=A.get(r);return l&&K(l),A.set(r,c),c.mount(),L.observe(c.element),L.update(),I(c)&&c.active&&(a(n,`toast:change`,{id:r,action:`show`}),E?.(r)),c},ye=e=>j.isDestroyed?e.id??J():Y(e.id,e).id,X=(e,t)=>{!I(e)||!e.active||(e.update(t),e.toast.dismissible||Q.cancel(e),L.update())},be=(e,t)=>{let n=A.get(e);n&&X(n,t)},xe=(e,t)=>{let n=k(le(t.loading),{title:`Loading...`,type:`loading`,duration:0,description:t.description}),r=j.isDestroyed?void 0:Y(void 0,n),i=r?.id??J(),a=Promise.resolve().then(()=>typeof e==`function`?e():e).then(e=>{let n=k(ue(t.success,e),{title:`Success`,type:`success`,duration:b,description:t.description});return r&&X(r,n),e}).catch(e=>{let n=k(ue(t.error,e),{title:de(e),type:`error`,duration:b,description:t.description});throw r&&X(r,n),e});return a.catch(()=>{}),{id:i,unwrap:()=>a}},Se=()=>{let e=p.activeElement instanceof HTMLElement&&f.contains(p.activeElement);for(let e of F())q(e,!1);e&&W()},Ce=()=>{let e=!1;return{get defaultPrevented(){return e},preventDefault:()=>{e=!0}}},we=e=>{let t=A.get(e);if(!t||t.exiting)return;let r=t.toast.action?.value,i=Ce();t.toast.action?.onClick?.(i),a(n,`toast:action`,{id:e,value:r}),te?.(e,r),i.defaultPrevented||q(t)},Z=e=>{if(!(e instanceof Element))return;let t=e.closest(`[data-slot="toast-item"]`);if(!t||!f.contains(t))return;let n=A.get(t.getAttribute(`data-id`)??``);return n?.element===t?n:void 0},Q=ge({viewport:f,position:x,getEntry:Z,dismiss:e=>q(e)});M.push(h(f,`click`,e=>{let t=e.target;if(!t)return;let n=t.closest(`[data-slot="toast-close"]`);if(n){let e=Z(n);e&&q(e);return}let r=t.closest(`[data-slot="toast-action"]`);if(r){let e=Z(r);e&&we(e.id)}}));let Te=e=>z(e)||B();M.push(h(f,`pointerenter`,()=>{C&&R.set(`hover`,!0)}),h(f,`pointerleave`,()=>{C&&R.set(`hover`,!1)}),h(f,`focusin`,e=>{if(!w)return;let{relatedTarget:t,target:n}=e;t instanceof HTMLElement&&!f.contains(t)&&(P=t),R.set(`focus`,Te(n))}),h(f,`focusout`,e=>{w&&R.set(`focus`,Te(e.relatedTarget))}));let Ee=p.defaultView??window;M.push(h(Ee,`blur`,()=>R.set(`window`,!0)),h(Ee,`focus`,()=>R.set(`window`,!1)),h(p,`visibilitychange`,()=>R.set(`document`,p.visibilityState===`hidden`))),M.push(h(n,`toast:show`,e=>{let t=oe(e.detail);!t||j.isDestroyed||Y(t.id,t.patch)}),h(n,`toast:update`,e=>{let t=se(e.detail);t&&be(t.id,t.patch)}),h(n,`toast:dismiss`,e=>{let t=ce(e.detail);t&&ve(t)}),h(n,`toast:clear`,()=>{Se()})),j.onDestroy(()=>{M.forEach(e=>e()),Q.destroy(),L.destroy();for(let e of A.values())e.destroy();A.clear(),P=null,O.cleanup(),e(n,U,$)}),L.update();let $={show:ye,update:be,promise:xe,dismiss:ve,dismissAll:Se,get count(){return F().length},destroy:()=>{j.destroy()}};return _(n,U,$),$}function G(e=document){let t=[];for(let n of f(e,`toast`))p(n,U)||t.push(W(n));return t}export{G as create,W as createToast}; \ No newline at end of file + `,t},N=(e,t)=>{e.setAttribute(`data-state`,t),t===`open`?(e.setAttribute(`data-open`,``),e.removeAttribute(`data-closed`)):(e.setAttribute(`data-closed`,``),e.removeAttribute(`data-open`))},P=(e,t)=>{t===`error`||t===`warning`?(e.setAttribute(`role`,`alert`),e.setAttribute(`aria-live`,`assertive`)):(e.setAttribute(`role`,`status`),e.setAttribute(`aria-live`,`polite`)),e.setAttribute(`aria-atomic`,`true`)};function fe(e,t){let{viewport:r}=t,a=(A(t.template)&&j(t.template)?t.template:M(r.ownerDocument)).content.cloneNode(!0),o=a.querySelector(`[data-slot="toast-item"]`),s=new WeakMap,c=i(),l=e,u=!1,d=t.paused,f=null,p=l.duration,m=0,h=(e,t)=>{let n=e.querySelector(`[data-slot="toast-title"]`),r=e.querySelector(`[data-slot="toast-description"]`),i=e.querySelector(`[data-slot="toast-action"]`),a=e.querySelector(`[data-slot="toast-close"]`);if(n&&(n.textContent=t.title,n.hidden=!1),r&&(t.description&&t.description.trim()!==``?(r.textContent=t.description,r.hidden=!1):(r.textContent=``,r.hidden=!0)),i&&(t.action?.label&&t.action.label.trim()!==``?(i.textContent=t.action.label,i.hidden=!1):(i.textContent=``,i.hidden=!0)),e.setAttribute(`data-type`,t.type),t.dismissible?e.removeAttribute(`data-dismissible`):e.setAttribute(`data-dismissible`,`false`),t.testId&&t.testId.trim()!==``?e.setAttribute(`data-testid`,t.testId):e.removeAttribute(`data-testid`),a){if(s.has(a)||s.set(a,a.getAttribute(`aria-label`)),t.closeButtonAriaLabel&&t.closeButtonAriaLabel.trim()!==``)a.setAttribute(`aria-label`,t.closeButtonAriaLabel);else{let e=s.get(a);e&&e.trim()!==``?a.setAttribute(`aria-label`,e):a.setAttribute(`aria-label`,`Close`)}a.getAttribute(`aria-label`)||a.setAttribute(`aria-label`,`Close`)}P(e,t.type)},g=()=>{c.cancelTimeout(f),f=null},_=()=>{if(!(!y.active||d||l.duration<=0||f!==null)){if(p<=0){t.onTimeout(y);return}m=Date.now(),f=c.trackTimeout(()=>{f=null,t.onTimeout(y)},p)}},v=n({element:o,win:r.ownerDocument.defaultView??window,onExitComplete:()=>{c.isDestroyed||t.onExitComplete(y)}});c.onDestroy(()=>{v.cleanup(),o.remove()});let y={get id(){return l.id},element:o,get toast(){return l},get active(){return!u&&!c.isDestroyed},get exiting(){return u},mount(){r.appendChild(a),c.trackRaf(()=>{c.trackRaf(()=>{y.active&&o.setAttribute(`data-mounted`,`true`)})}),_()},update(e){y.active&&(l=ae(l,e),h(o,l),e.duration!==void 0&&(g(),p=l.duration,_()))},setPaused(e){d===e||!y.active||(d=e,d?(f!==null&&(p=Math.max(0,p-(Date.now()-m))),g()):_())},dismiss(){y.active&&(u=!0,g(),o.setAttribute(`data-removed`,`true`),o.style.zIndex=`0`,o.style.pointerEvents=`none`,N(o,`closed`),v.exit())},destroy(){c.destroy()}};o.setAttribute(`data-id`,l.id),h(o,l);for(let e of[`mounted`,`removed`,`front`,`visible`,`swiping`,`swipe-out`])o.setAttribute(`data-${e}`,`false`);o.setAttribute(`data-expanded`,String(t.expanded));for(let e of[`amount-x`,`amount-y`,`end-x`,`end-y`])o.style.setProperty(`--toast-swipe-${e}`,`0px`);return N(o,`open`),y}const F=`data-toast-prev-tabindex`,I=`__none__`,pe=e=>{let t=getComputedStyle(e).getPropertyValue(`--toast-gap`).trim();if(!t)return 8;let n=Number.parseFloat(t);return Number.isFinite(n)?n:8},L=e=>{let t=getComputedStyle(e).getPropertyValue(`--toast-collapsed-peek`).trim();if(!t)return 14;let n=Number.parseFloat(t);return Number.isFinite(n)?Math.max(0,n):14},R=e=>{let t=e.cloneNode(!0);t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`inert`,``),t.style.width=getComputedStyle(e).width,t.style.height=`auto`,t.style.maxHeight=`none`,t.style.position=`absolute`,t.style.inset=`0 auto auto 0`,t.style.visibility=`hidden`,t.style.pointerEvents=`none`,t.style.transform=`none`,t.style.transition=`none`,t.style.animation=`none`,e.parentElement.append(t);try{return t.offsetHeight||t.getBoundingClientRect().height||e.offsetHeight||e.getBoundingClientRect().height}finally{t.remove()}},me=e=>{let t=u(e);return m(e)&&t.unshift(e),t.filter(e=>e.getAttribute(`aria-hidden`)!==`true`)},z=e=>{let t=[...e.querySelectorAll(`[${F}]`)];return e.hasAttribute(F)&&t.unshift(e),t},B=(e,t)=>{if(t){e.removeAttribute(`aria-hidden`),e.removeAttribute(`inert`);for(let t of z(e)){let e=t.getAttribute(F);t.removeAttribute(F),!e||e===I?t.removeAttribute(`tabindex`):t.setAttribute(`tabindex`,e)}return}for(let t of me(e)){if(!t.hasAttribute(F)){let e=t.getAttribute(`tabindex`);t.setAttribute(F,e===null?I:e)}t.setAttribute(`tabindex`,`-1`)}e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`inert`,``)};function he({viewport:e,limit:t,stackDirection:n,getItems:r,onLayout:i}){let a=e.ownerDocument,o=new Set,s=new WeakMap,c=!1;e.style.setProperty(`--toast-lift`,String(n));let l=t=>{t?e.setAttribute(`data-expanded`,``):e.removeAttribute(`data-expanded`);let n=t?e.style.getPropertyValue(`--toast-expanded-stack-size`):e.style.getPropertyValue(`--toast-collapsed-stack-size`);e.style.setProperty(`--toast-stack-size`,n.trim()===``?`0px`:n);for(let e of o)e.setAttribute(`data-expanded`,String(t))},u=()=>{if(c)return;let n=r(),o=n.length,l=o>0?pe(e):0,u=o>0?L(e):0,d=0,f=0,p=0,m=0;for(let e=0;e0&&s.set(r,h),e===0&&(m=h);let g=e*u;if(r.style.setProperty(`--toast-index`,String(e)),r.style.setProperty(`--toast-initial-height`,`${h}px`),r.style.setProperty(`--toast-offset`,`${d}px`),r.style.setProperty(`--toast-collapsed-offset-y`,`${g}px`),r.setAttribute(`data-front`,String(e===0)),r.setAttribute(`data-visible`,String(i)),r.setAttribute(`data-removed`,`false`),r.style.zIndex=String(o-e+1),r.style.pointerEvents=i?``:`none`,!i&&c){let e=a.activeElement;e instanceof HTMLElement&&r.contains(e)&&e.blur()}B(r,i),d+=h+l,i&&(p+=1,f+=h+l)}let h=p>0?Math.max(0,f-l):0,g=p>0?Math.max(0,m+u*(p-1)):0;e.style.setProperty(`--toast-count`,String(o)),e.style.setProperty(`--toast-front-height`,`${m}px`),e.style.setProperty(`--toast-expanded-stack-size`,`${h}px`),e.style.setProperty(`--toast-collapsed-stack-size`,`${g}px`),i()},d=typeof ResizeObserver<`u`?new ResizeObserver(u):null;return{update:u,setExpanded:l,observe(e){o.add(e),d?.observe(e)},unobserve(e){o.delete(e),d?.unobserve(e)},destroy(){c=!0,d?.disconnect(),o.clear(),e.removeAttribute(`data-expanded`)}}}const V=e=>{e.element.setAttribute(`data-swiping`,`false`),e.element.setAttribute(`data-swipe-out`,`false`);for(let t of[`amount-x`,`amount-y`,`end-x`,`end-y`])e.element.style.removeProperty(`--toast-swipe-${t}`)};function ge({viewport:e,position:t,getEntry:n,dismiss:i}){let a={x:t.endsWith(`left`)?-1:t.endsWith(`right`)?1:0,y:t.startsWith(`top`)?-1:1},o=a.x===0?[`y`]:[`x`,`y`],s=(e,t)=>e*t<0?e*.2:e,c=e=>e.active&&e.toast.dismissible;return r({element:e,axes:o,lockThreshold:12,capture:e=>e.element,start(e,t){if(t.closest(`[data-slot="toast-action"], [data-slot="toast-close"]`))return null;let r=n(t);return r&&c(r)?r:null},active:c,move(e,{axis:t,deltaX:n,deltaY:r}){let i=t===`x`?s(n,a.x):0,o=t===`y`?s(r,a.y):0;e.element.setAttribute(`data-swiping`,`true`),e.element.style.setProperty(`--toast-swipe-amount-x`,`${i}px`),e.element.style.setProperty(`--toast-swipe-amount-y`,`${o}px`)},release(e,{axis:t,deltaX:n,deltaY:r}){let o=t===`x`?n:r;if(o*a[t]<40){V(e);return}let s=t===`x`?e.element.offsetWidth:e.element.offsetHeight,c=a[t]*Math.max(Math.abs(o),s+16);e.element.setAttribute(`data-swiping`,`false`),e.element.setAttribute(`data-swipe-out`,`true`),e.element.style.setProperty(`--toast-swipe-end-x`,`${t===`x`?c:0}px`),e.element.style.setProperty(`--toast-swipe-end-y`,`${t===`y`?c:0}px`),i(e)},reset:V})}const H=new Set([`hover`,`focus`]);function _e({hasExitingEntries:e,setExpanded:t,setPaused:n}){let r=new Set,i=!1,a=!1,o=()=>[...r].some(e=>H.has(e)),s=()=>{i&&(o()||!e())&&(i=!1),t(o()||i);let s=r.size>0;s!==a&&(a=s,n(a))};return{get expanded(){return o()||i},get paused(){return a},set(t,n){n?r.add(t):r.delete(t)&&H.has(t)&&!o()&&e()&&(i=!0),s()},sync:s}}const U=`@data-slot/toast`;function W(n,r={}){let u=g(n,U,`[@data-slot/toast] createToast() called more than once for the same root. Returning the existing controller. Destroy it before rebinding with new options.`);if(u)return u;let f=d(n,`toast-viewport`);if(!f)throw Error(`Toast requires a toast-viewport slot`);let p=n.ownerDocument??document,m=d(n,`toast-template`),y=ne(r.limit??l(n,`limit`)),b=re(r.duration??l(n,`duration`),5e3),x=r.position??c(n,`position`,v)??`bottom-right`,C=r.pauseOnHover??s(n,`pauseOnHover`)??!0,w=r.pauseOnFocus??s(n,`pauseOnFocus`)??!0,T=r.portal??s(n,`portal`)??!1,E=r.onShow,ee=r.onDismiss,te=r.onAction,D=x.startsWith(`top`)?1:-1;n.setAttribute(`data-position`,x),f.setAttribute(`data-position`,x),f.hasAttribute(`role`)||f.setAttribute(`role`,`region`),f.hasAttribute(`aria-label`)||f.setAttribute(`aria-label`,`Notifications`);let O=t({content:f,root:n,enabled:T});T&&O.mount();let A=new Map,j=i(),M=[],N=0,P=null,F=()=>[...A.values()].filter(e=>e.active),I=e=>A.get(e.id)===e,pe=()=>[...A.values()].some(e=>e.exiting),L=he({viewport:f,limit:y,stackDirection:D,getItems:()=>F().reverse().map(e=>e.element),onLayout:()=>R.set(`focus`,w&&B())}),R=_e({hasExitingEntries:pe,setExpanded:e=>L.setExpanded(e),setPaused:e=>{for(let t of F())t.setPaused(e)}});p.visibilityState===`hidden`&&R.set(`document`,!0);let z=e=>{if(!(e instanceof Node)||!f.contains(e))return!1;if(!(e instanceof Element))return!0;let t=e.closest(`[data-slot="toast-item"]`);return!t||!f.contains(t)?!0:t.getAttribute(`data-visible`)===`true`&&t.getAttribute(`data-state`)===`open`},B=()=>z(p.activeElement),V=()=>{for(let e of F().reverse()){if(e.element.getAttribute(`data-visible`)!==`true`)continue;let t=me(e.element)[0];if(t)return o(t),!0}return!1},H=()=>P&&P.isConnected?(o(P),!0):!1,W=e=>{let t=p.activeElement;!(t instanceof HTMLElement)||!f.contains(t)||e&&!e.contains(t)||V()||H()||t.blur()},G=e=>{a(n,`toast:change`,{id:e,action:`dismiss`}),ee?.(e)},K=e=>{I(e)&&(Q.cancel(e),L.unobserve(e.element),e.destroy(),A.delete(e.id),L.update())},q=(e,t=!0)=>{!I(e)||!e.active||(Q.cancel(e),e.dismiss(),L.update(),t&&W(e.element),G(e.id))},ve=e=>{let t=A.get(e);t&&q(t)},J=()=>{let e=``;do N+=1,e=`toast-${N}`;while(A.has(e));return e},Y=(e,t)=>{let r=S(e)?e:J(),i=ae(ie(r,b),t),o=A.get(r),s=o?.active;o&&K(o),s&&G(r);let c=fe(i,{viewport:f,template:m,expanded:R.expanded,paused:R.paused,onTimeout:q,onExitComplete:K});if(j.isDestroyed)return c.destroy(),c;let l=A.get(r);return l&&K(l),A.set(r,c),c.mount(),L.observe(c.element),L.update(),I(c)&&c.active&&(a(n,`toast:change`,{id:r,action:`show`}),E?.(r)),c},ye=e=>j.isDestroyed?e.id??J():Y(e.id,e).id,X=(e,t)=>{!I(e)||!e.active||(e.update(t),e.toast.dismissible||Q.cancel(e),L.update())},be=(e,t)=>{let n=A.get(e);n&&X(n,t)},xe=(e,t)=>{let n=k(le(t.loading),{title:`Loading...`,type:`loading`,duration:0,description:t.description}),r=j.isDestroyed?void 0:Y(void 0,n),i=r?.id??J(),a=Promise.resolve().then(()=>typeof e==`function`?e():e).then(e=>{let n=k(ue(t.success,e),{title:`Success`,type:`success`,duration:b,description:t.description});return r&&X(r,n),e}).catch(e=>{let n=k(ue(t.error,e),{title:de(e),type:`error`,duration:b,description:t.description});throw r&&X(r,n),e});return a.catch(()=>{}),{id:i,unwrap:()=>a}},Se=()=>{let e=p.activeElement instanceof HTMLElement&&f.contains(p.activeElement);for(let e of F())q(e,!1);e&&W()},Ce=()=>{let e=!1;return{get defaultPrevented(){return e},preventDefault:()=>{e=!0}}},we=e=>{let t=A.get(e);if(!t||t.exiting)return;let r=t.toast.action?.value,i=Ce();t.toast.action?.onClick?.(i),a(n,`toast:action`,{id:e,value:r}),te?.(e,r),i.defaultPrevented||q(t)},Z=e=>{if(!(e instanceof Element))return;let t=e.closest(`[data-slot="toast-item"]`);if(!t||!f.contains(t))return;let n=A.get(t.getAttribute(`data-id`)??``);return n?.element===t?n:void 0},Q=ge({viewport:f,position:x,getEntry:Z,dismiss:e=>q(e)});M.push(h(f,`click`,e=>{let t=e.target;if(!t)return;let n=t.closest(`[data-slot="toast-close"]`);if(n){let e=Z(n);e&&q(e);return}let r=t.closest(`[data-slot="toast-action"]`);if(r){let e=Z(r);e&&we(e.id)}}));let Te=e=>z(e)||B();M.push(h(f,`pointerenter`,()=>{C&&R.set(`hover`,!0)}),h(f,`pointerleave`,()=>{C&&R.set(`hover`,!1)}),h(f,`focusin`,e=>{if(!w)return;let{relatedTarget:t,target:n}=e;t instanceof HTMLElement&&!f.contains(t)&&(P=t),R.set(`focus`,Te(n))}),h(f,`focusout`,e=>{w&&R.set(`focus`,Te(e.relatedTarget))}));let Ee=p.defaultView??window;M.push(h(Ee,`blur`,()=>R.set(`window`,!0)),h(Ee,`focus`,()=>R.set(`window`,!1)),h(p,`visibilitychange`,()=>R.set(`document`,p.visibilityState===`hidden`))),M.push(h(n,`toast:show`,e=>{let t=oe(e.detail);!t||j.isDestroyed||Y(t.id,t.patch)}),h(n,`toast:update`,e=>{let t=se(e.detail);t&&be(t.id,t.patch)}),h(n,`toast:dismiss`,e=>{let t=ce(e.detail);t&&ve(t)}),h(n,`toast:clear`,()=>{Se()})),j.onDestroy(()=>{M.forEach(e=>e()),Q.destroy(),L.destroy();for(let e of A.values())e.destroy();A.clear(),P=null,O.cleanup(),e(n,U,$)}),L.update();let $={show:ye,update:be,promise:xe,dismiss:ve,dismissAll:Se,get count(){return F().length},destroy:()=>{j.destroy()}};return _(n,U,$),$}function G(e=document){let t=[];for(let n of f(e,`toast`))p(n,U)||t.push(W(n));return t}export{G as create,W as createToast}; \ No newline at end of file diff --git a/liquid/assets/ui-licenses.json b/liquid/assets/ui-licenses.json index 7a2d25c66..240d386b4 100644 --- a/liquid/assets/ui-licenses.json +++ b/liquid/assets/ui-licenses.json @@ -8,7 +8,7 @@ "text": "MIT License\n\nCopyright (c) 2023 shadcn\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE." }, { - "name": "data-slot 1.1.2", + "name": "data-slot 1.1.3", "text": "MIT License\n\nCopyright (c) 2026 Bejamas\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE." } ] diff --git a/liquid/assets/ui-manifest.json b/liquid/assets/ui-manifest.json index 9a03d14f4..3a13d674d 100644 --- a/liquid/assets/ui-manifest.json +++ b/liquid/assets/ui-manifest.json @@ -4,14 +4,14 @@ "assets/ui-tokens.css": "55a8f2810ab4a1498ca3dd2f6e7dc89009c60e2402ddfcb95783b6eba996c374", "snippets/ui-base.liquid": "bc55195b5b6c82e63deeeed1255fd19b434c47866815f82b95b9202421256d34", "snippets/ui-init.liquid": "98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af", - "assets/ui-licenses.json": "a1fad640a342c9ccd79d233a3aed9631cbf5525ee81e67f49322d0a0f0c2effc", + "assets/ui-licenses.json": "874a6f264f1503b2e577aee651e7285fd6ac808f56cadf8c7d58914bf2396f49", "assets/ui-carousel.js": "3337447a9e0051cebbc1726bca7c7966de1035819fb8e0b676383b85f1917632", "assets/ui-controls.js": "cf51f6d8b23c93e30d3355e993ff21a1aee79f38facfa413bed64e9815df255d", "assets/ui-lifecycle.js": "78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6", "assets/ui-start.js": "738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500", "assets/data-slot-core.js": "d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6", "assets/data-slot-dialog.js": "a5201f452700d04145b5156cc46880d2b5bdf7521b03ff9521c3f7693ee1b5d5", - "assets/data-slot-command.js": "f7944120617676b14dfda2ea3f3e8a15767e0766d5312b4ed9519affe9b7444a", + "assets/data-slot-command.js": "299d99c1a5f7b646692575e5d48e3f7b9209d76119508116c1a216dc80d33d13", "assets/data-slot-navigation-menu.js": "f9b42a9bceca8e1103718d43aa5f0d141ab63d38278cb121e790a2c80e827b68", "assets/data-slot-accordion.js": "fe6b0ac2c87a2e31582e5e88c509e0b508f41d0065d0a420407999ad210e6a27", "assets/data-slot-tabs.js": "1f187134bba755cfda9d35cf9f16174c1a183862d32d100f270f4177033058c7", @@ -27,7 +27,7 @@ "assets/data-slot-select.js": "13d1a3fbe90f4b3b830d987b6a28267897faa3589bf00e64edca4938acbf406b", "assets/data-slot-slider.js": "0d10131aa95450aa1269234103ead8d805d6abdf9e0683510f4fcf58ab0f1efa", "assets/data-slot-switch.js": "0d5b09a89429880f61aeb540be5f87383ba5c6beb261ad468e9a6cf18e45b6a0", - "assets/data-slot-toast.js": "acfd86824d0ff37fbd62d0c48672e527d7391412780730e9a3a8d61268b3aaf2", + "assets/data-slot-toast.js": "817744d32eebe3bfc50df068715e0b572350ca53fe5ad0e04ec8646800e1caf0", "assets/data-slot-toggle.js": "7a651d578cb83be842c8e59fe1a2cd124594b1fd6c942faf0a33cf9e57326947", "assets/data-slot-toggle-group.js": "c1f2fc9712974e63e4e44c97ab2a1ec8bc3c3cb73c1afb4578b085fed11977f1", "assets/data-slot-tooltip.js": "5a9e51a54669153620eb3512e74487eac12ababe3331aff7dfed6c717b8b93c0", diff --git a/package.json b/package.json index f27cd2f08..43e3510fd 100644 --- a/package.json +++ b/package.json @@ -79,29 +79,29 @@ "@axe-core/playwright": "4.13.0", "@changesets/changelog-github": "^1.0.1", "@changesets/cli": "^3.0.3", - "@data-slot/accordion": "^1.1.2", - "@data-slot/alert-dialog": "^1.1.2", - "@data-slot/carousel": "^1.1.2", - "@data-slot/collapsible": "^1.1.2", - "@data-slot/combobox": "^1.1.2", - "@data-slot/command": "^1.1.2", - "@data-slot/core": "^1.1.2", - "@data-slot/dialog": "^1.1.2", - "@data-slot/drawer": "^1.1.2", - "@data-slot/dropdown-menu": "^1.1.2", - "@data-slot/hover-card": "^1.1.2", - "@data-slot/navigation-menu": "^1.1.2", - "@data-slot/popover": "^1.1.2", - "@data-slot/radio-group": "^1.1.2", - "@data-slot/resizable": "^1.1.2", - "@data-slot/select": "^1.1.2", - "@data-slot/slider": "^1.1.2", - "@data-slot/switch": "^1.1.2", - "@data-slot/tabs": "^1.1.2", - "@data-slot/toast": "^1.1.2", - "@data-slot/toggle": "^1.1.2", - "@data-slot/toggle-group": "^1.1.2", - "@data-slot/tooltip": "^1.1.2", + "@data-slot/accordion": "^1.1.3", + "@data-slot/alert-dialog": "^1.1.3", + "@data-slot/carousel": "^1.1.3", + "@data-slot/collapsible": "^1.1.3", + "@data-slot/combobox": "^1.1.3", + "@data-slot/command": "^1.1.3", + "@data-slot/core": "^1.1.3", + "@data-slot/dialog": "^1.1.3", + "@data-slot/drawer": "^1.1.3", + "@data-slot/dropdown-menu": "^1.1.3", + "@data-slot/hover-card": "^1.1.3", + "@data-slot/navigation-menu": "^1.1.3", + "@data-slot/popover": "^1.1.3", + "@data-slot/radio-group": "^1.1.3", + "@data-slot/resizable": "^1.1.3", + "@data-slot/select": "^1.1.3", + "@data-slot/slider": "^1.1.3", + "@data-slot/switch": "^1.1.3", + "@data-slot/tabs": "^1.1.3", + "@data-slot/toast": "^1.1.3", + "@data-slot/toggle": "^1.1.3", + "@data-slot/toggle-group": "^1.1.3", + "@data-slot/tooltip": "^1.1.3", "@eslint/js": "^10.0.1", "@fulldotdev/check": "0.4.0", "@ianvs/prettier-plugin-sort-imports": "^4.7.1", @@ -134,7 +134,7 @@ "prettier": "^3.9.9", "prettier-plugin-astro": "^1.1.0", "prettier-plugin-tailwindcss": "^0.8.1", - "shadcn": "^4.21.0", + "shadcn": "^4.23.0", "sharp": "^0.35.5", "simple-icons": "^16.33.0", "tailwindcss": "^4.3.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3d953b337..13cba01aa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -195,74 +195,74 @@ importers: specifier: ^3.0.3 version: 3.0.3 '@data-slot/accordion': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/alert-dialog': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/carousel': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/collapsible': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/combobox': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/command': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/core': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/dialog': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/drawer': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/dropdown-menu': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/hover-card': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/navigation-menu': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/popover': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/radio-group': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/resizable': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/select': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/slider': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/switch': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/tabs': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/toast': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/toggle': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/toggle-group': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@data-slot/tooltip': - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^1.1.3 + version: 1.1.3 '@eslint/js': specifier: ^10.0.1 version: 10.0.1(eslint@10.11.0(jiti@2.7.0)(supports-color@7.2.0)) @@ -360,8 +360,8 @@ importers: specifier: ^0.8.1 version: 0.8.1(@ianvs/prettier-plugin-sort-imports@4.7.1(@vue/compiler-sfc@3.5.44)(prettier@3.9.9)(supports-color@7.2.0))(@shopify/prettier-plugin-liquid@1.11.2(prettier@3.9.9))(prettier-plugin-astro@1.1.0(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)(prettier@3.9.9))(prettier@3.9.9) shadcn: - specifier: ^4.21.0 - version: 4.21.1(supports-color@7.2.0)(typescript@6.0.3) + specifier: ^4.23.0 + version: 4.23.0(supports-color@7.2.0) sharp: specifier: ^0.35.5 version: 0.35.5(@types/node@24.19.0) @@ -414,8 +414,8 @@ importers: specifier: ^19.3.0 version: 19.3.0(react@19.3.0) shadcn: - specifier: ^4.21.0 - version: 4.21.1(supports-color@7.2.0)(typescript@6.0.3) + specifier: ^4.23.0 + version: 4.23.0(supports-color@7.2.0) simple-icons: specifier: ^16.33.0 version: 16.33.0 @@ -960,74 +960,74 @@ packages: '@dabh/diagnostics@2.0.9': resolution: {integrity: sha512-R6siwR65Hm+3yfgP7o8DKhNvputQAwfoz9zTc3kyDudnomj2/BcLmD+uGQQPICjuFUp8ounPBU+jmKsocwVVAg==} - '@data-slot/accordion@1.1.2': - resolution: {integrity: sha512-V+hLbS1RwCmKLiJ6mNFjuwknuSQqPvErKi1SBmBbyiuZJ5s2Izm5Gvc9Sfbj+7bc81x0N+YaHn5GFYcQSZvfMA==} + '@data-slot/accordion@1.1.3': + resolution: {integrity: sha512-YShDuP3xIsqAXsqb4/YvXVBm47mz0ZKUAg0mbAmb82eVMGw1SuH62WMxTuKHY+qkn+Uy8hNpRpII9WujDsQGkw==} - '@data-slot/alert-dialog@1.1.2': - resolution: {integrity: sha512-gBBVJP1XW1F3MzoOiUcoaPROvozaEeI1WDp83er+LbXjWOA/8OLJlCu1GQnT2riDeoh56aqZmg9pwtG0MxriPg==} + '@data-slot/alert-dialog@1.1.3': + resolution: {integrity: sha512-VKYm3kj4wYiNYUebXjDF5DEzvZJR7zNaXFEkNUi2/OWeChDK6WXO+aJ/2V9PjuLl9m9V1Qp+hfwUulWpf9FdKQ==} - '@data-slot/carousel@1.1.2': - resolution: {integrity: sha512-m+fh8Ag6l0p79NgiVR4GsT5cZSnXmF5zk35L8mAUNZWPBqdR/qgZmARKsQJc+u5g+NuGpJet9J3ekdgNm7AYLQ==} + '@data-slot/carousel@1.1.3': + resolution: {integrity: sha512-jQv+2U4eT89eUGx3Ux0iwe0eOHE8ZWV+/oWT9BikHrRPN+oZjMaZBjc8AXsWlxaTEUq5y3QyIPDDluiAU7Ithg==} - '@data-slot/collapsible@1.1.2': - resolution: {integrity: sha512-dFf27UDHz+jcLtpcYIIP0eC/kk6c0NRGhvFNNpUhoCIr8A0HQ3RPVSYw2tgmRP5enIzkL/pXk/c+nKqGNcW52g==} + '@data-slot/collapsible@1.1.3': + resolution: {integrity: sha512-Cc2URYbZdeNZyfSG/RC/AOnB/yJ8D/iBUHP+suN034uhkSddp6lU4Ih/lnF8SwpH6yeYSbZm6/51HDN681jo5g==} - '@data-slot/combobox@1.1.2': - resolution: {integrity: sha512-8/3fW1G7dcW+rppIjIQsIl753ORk0+mJkVBX6G3h72AqZ/7v0AtpP48SRpJELyFShysHiX0ROVWrfueZnZGZIQ==} + '@data-slot/combobox@1.1.3': + resolution: {integrity: sha512-HAbNzedXFsHP8fHQ5DqVmuBzs6Bmva7Tf0STm6fE/K1ojuwqKVipyj+wD+YPfgKgLRn2rxY/BhxIVRF7aPLGmg==} - '@data-slot/command@1.1.2': - resolution: {integrity: sha512-xzenwtkOig9W40ZZxB6w5gfCp6NED+0/CbgjVRvl/SxOwaKY0ut5wZLzx87YckJdXTkJTT3nUFH5dWCr3/TVtw==} + '@data-slot/command@1.1.3': + resolution: {integrity: sha512-x8Itm/b8WaKvW75mLDdV04dUFlhM9dxZc1wMUuCHEnsztCdjKXTf0CrnZW7IIoNZPNBPSAYTCYheboCmIEYOOg==} - '@data-slot/core@1.1.2': - resolution: {integrity: sha512-xcxdiWJ/fPUqobE2PZdi96FIT/xASSsmtRtlyTWOro/mh5ZSJ8blB7t2anV12J7irNSKMov2+WpWFvAeikR5Vw==} + '@data-slot/core@1.1.3': + resolution: {integrity: sha512-997u23in9/+eH3x988adFnBFSucPYualy7EpZX23gegtNQJDuDgBNqiuCFFeX79gnawwnZfd1Gj6kTDbI3v7qg==} - '@data-slot/dialog@1.1.2': - resolution: {integrity: sha512-u8wYx8TtrV3Vaum+o685KCMZ1y+PciADIF1NgqAkupIe+0PVe7gyhlMtMhQxiCnurWZ6v3h1PRCTBlNWEaWhdQ==} + '@data-slot/dialog@1.1.3': + resolution: {integrity: sha512-yZGO0wP50/j0DPpCZzvVoRBi51sEbNVq5NGGFIbBFZp+WRd4sj84FegOqCIFWHT00SIKshj8UQA8qOs85Xcdzg==} - '@data-slot/drawer@1.1.2': - resolution: {integrity: sha512-WiBYU9uLBQSpWigbwbK6qhyma9sjP73nuNaz/ecoNccKYDLaShGxAzcmX0pqqZl7qcbyVeXfNyGLVHABCZru/g==} + '@data-slot/drawer@1.1.3': + resolution: {integrity: sha512-p12DQDpPbO7CSGSKch0eCzsdeToVZQMuCNJQhmLQibbRrzowKgQlYrA836XZIOZ0nEKSI+bx856MrwCuRFm+kQ==} - '@data-slot/dropdown-menu@1.1.2': - resolution: {integrity: sha512-xf0SaARlsLjkHJxoHE+cf+1dLOm8m30jDMP+YDYJ6EDMKCF7nzr0hBkM6w7ppOLWdw0Hu+WVvJJ8Yznl1xLOog==} + '@data-slot/dropdown-menu@1.1.3': + resolution: {integrity: sha512-dgU8vsXrgRJd1VCc1Ltq6GVYf8MQLSEYuA8zvQmobQnG31sD1wy0TJgSGC7YIYp2btxQQGk8C/TafAIstv88Nw==} - '@data-slot/hover-card@1.1.2': - resolution: {integrity: sha512-4f2PtAGp441vVpjHtC1+rcSlpVWE27yDut04QsBiD6eLvjYPovqk5WXn9H3s8N96pZf29ePwMYpozDllhu0kSQ==} + '@data-slot/hover-card@1.1.3': + resolution: {integrity: sha512-aPrCSTJR46jcqelM8jSEYMYDDEMQ/h0woS5/4sGpTQHCnwr9qTWqhAfdhR+O5WO3JmvM6OdiJEwMCpTGH7Fl/w==} - '@data-slot/navigation-menu@1.1.2': - resolution: {integrity: sha512-Ic15bj+2N595TQ1DBJ8HRaFj2h1oRP2tL+JAnLXYHixc/XwVPg4i1VhFPo9Szn52MxcjsHI20yqcdVpmvksGtw==} + '@data-slot/navigation-menu@1.1.3': + resolution: {integrity: sha512-/y8lb9uso4zHz+dySldre6+BHNHCHh2y8S5LM9pUfaKdgdKLJftVYpqee8Bzhnf3YFOHMRchcpSp+buXyYzU7w==} - '@data-slot/popover@1.1.2': - resolution: {integrity: sha512-UFeabt+V1Lt7MhUeiqbjcLPu8F1a+JJIwZ8nM/mEo8EZCTYnmF3h+cinMmxo7Y8zFc++OZyNlbmQIenB0k7NPQ==} + '@data-slot/popover@1.1.3': + resolution: {integrity: sha512-ukg8NMTN2ke+Ez289GvLqPgbj2Ah7fV42mOzfBb3KCpEa9KDoXvKns3qQDtlxtHQq+/vjtLvKbJsFj9W7lmZAw==} - '@data-slot/radio-group@1.1.2': - resolution: {integrity: sha512-F1oP0ZNqaygWSKE8I2BIpYbhw3i8yUVRiT3DECJZYl5LdhBSkfGzuNIVbJgZl8IGjgrNu46EVSwezaIoeU6oNA==} + '@data-slot/radio-group@1.1.3': + resolution: {integrity: sha512-8Kx3x3nWMB9IWA3U0pM7kyDC7UD5Br4qrMnSnnDbeetu0H4O1Pa8DPpgtyNRP6SVDgrZy+c5TMpwg6sCDZ71AA==} - '@data-slot/resizable@1.1.2': - resolution: {integrity: sha512-03jiq/Kdzw8kOymMP1IYrPect1ulu8CMIRf2JpfOygd2tYfZxUe9T/el6R+KtU8wYQfGYoK4d/GFcDICWCVhiA==} + '@data-slot/resizable@1.1.3': + resolution: {integrity: sha512-opaTKTgvQhbYWk/aRl4XoeywptSnq698sAqxuBUZJlu3Rh6z8H609spuH5bKP4VzOcap0HsW+Frazv/GV0jnLg==} - '@data-slot/select@1.1.2': - resolution: {integrity: sha512-aaFNFTqD9FiNbzWFfbxktLlo+N6YZugyl/Ig6nDSsZVL4aJMUhHcoDn8p8B1NleCUGhVeoJ8LMA4AJ27lb5hyA==} + '@data-slot/select@1.1.3': + resolution: {integrity: sha512-o90cowE4P9p6tgEeGEmkTdf+lGOusqekNOSokp0f62P+uqTJxZE9//JLed5Cji59C++6spI0JtlBAZmPXYw7hA==} - '@data-slot/slider@1.1.2': - resolution: {integrity: sha512-roZHvCQa7TFQzM+1IotwR6Bp4jp+GbEzAqOKVZUxf9waP9dwJ787RtNLRUu0K7TNVUlgkl3BkIwOktZByd42qQ==} + '@data-slot/slider@1.1.3': + resolution: {integrity: sha512-qWI0LdlOsJ4A9haNZFUo5QaQB9TpfdIqyJZJA+LhxtuDQBtX6kvDVoBzx4iriFZISipdvIjNwfGVRxat3aQQlQ==} - '@data-slot/switch@1.1.2': - resolution: {integrity: sha512-BKvX7hh/1Z5htdXIucDnNOBaLYog9w57fJOAhAUDRk6nzEqwZ86+F2W1iC06bJBX0huE5xOD2Qjb2io845iwaQ==} + '@data-slot/switch@1.1.3': + resolution: {integrity: sha512-LSjqxBd0/KWf/Ihp7gXFvu8DT/4/Wc4CdMYp52oCvaLFQyB5RuGSuPQe4I3JcL9pp7yout8dm2Jmn1RipbhftQ==} - '@data-slot/tabs@1.1.2': - resolution: {integrity: sha512-LHCfNDW5FNAjadqKtFniqlLQ+oab3mSwb8wpm8zHVljT6sGDrpii+w4bburoleJ2JhXKBHv1xMludFtA+C433A==} + '@data-slot/tabs@1.1.3': + resolution: {integrity: sha512-JiR28kCNudzP28w68D2JnTxhA5uwV7fK1/K6l/X8Kb3GrTqdmlV2G6fkf9kW2zLdAGmVPuflAWATUmZjkQhazA==} - '@data-slot/toast@1.1.2': - resolution: {integrity: sha512-dATEwBhMGemFNexaEMqf+qQq/S8Ms2jkTwzdh2ptlz21rcoa/H9JlQ9tmXw352p2MWLeMvwTU2MbnjXnWfPiKw==} + '@data-slot/toast@1.1.3': + resolution: {integrity: sha512-cLjgsRgvUfCAbAwcs2olI7piII7D1ccsM0jfW8WD5Whnk3qK4vMMCNKB3xtXdm6oO4K6hmO1ibexQfXA8O0iPQ==} - '@data-slot/toggle-group@1.1.2': - resolution: {integrity: sha512-b3EoaXwb4pTvN3F14fGAWNTfrX6aeEHv+gy9rviDVJjeQZKGMVoWgKBXEcKjGzVi+Jk6o+Qtk2HZfqHIj0zFvA==} + '@data-slot/toggle-group@1.1.3': + resolution: {integrity: sha512-2KBYR5BTprfnD8z4QjCBTFHYfHWXCFmxKVsEQimJjCjd3DEyrRmotzCXLDkyMos/RLPNiiFATRpfqLXdJcL10w==} - '@data-slot/toggle@1.1.2': - resolution: {integrity: sha512-Cd076I5PhOKqVQjTpb82ukLdMAPL3WJf5IRW+hUX35L1efl3QZOwiqMpVmp7/rtCs1FLU596A1dKgiOfyDVgdw==} + '@data-slot/toggle@1.1.3': + resolution: {integrity: sha512-2tFf5eeaN9yOXbJkJId2iAd252RJl36mnlSt9fEXhBj67Dgq6zxf/uEnleczN8/0RAUFn5bFj1T7q1UoL20eHg==} - '@data-slot/tooltip@1.1.2': - resolution: {integrity: sha512-LNBHFrSNUV6cNJEwtAiIMC5SMVDCCX1MmzY/T1YJHGpNQtbJJ+TI+D5yZ36ATLZ1gdW1v1MRoa6BCALIBDCyxQ==} + '@data-slot/tooltip@1.1.3': + resolution: {integrity: sha512-230FisGPlF6yrEKOWzHVa5TwWqOP/AKDZV9VmEXGUGsn8tpy9Ge9yb6iAU2zY1H/lp45SQSizMg7/VY6zk+lRQ==} '@date-fns/tz@1.5.0': resolution: {integrity: sha512-lwYN/vDPeNRULcepoE/LO2Pgx+7/RV+S9ARfbc9lr2DtGkOD7pAiruHvbR1RX3Qyf6ja47EWJDMsNK5vK08DJg==} @@ -1472,12 +1472,6 @@ packages: engines: {node: '>=24'} hasBin: true - '@hono/node-server@2.1.3': - resolution: {integrity: sha512-TA//nWMqPhbfdfneACk6t5a9eqbS9lABEPyKn0/xZTah3H3U2XaVg85rJFl0/Fyit0I552YDHgXGVSf3GwqbUw==} - engines: {node: '>=20'} - peerDependencies: - hono: ^4 - '@html-validate/stylish@6.0.0': resolution: {integrity: sha512-d1/lI3qIXhGVJF3+MmKEBn1dRX6U4Z+BDaOdDI3E6SXcO+OQ7hC/3mSo6BIjwQlcuV6NdDOKm6QCrzIQL1EezQ==} engines: {node: ^22.16.0 || >= 24.0.0} @@ -1897,15 +1891,13 @@ packages: '@mdx-js/mdx@3.1.1': resolution: {integrity: sha512-f6ZO2ifpwAQIpzGWaBQT2TXxPv6z3RBzQKpVftEWN78Vl/YweF1uwussDx8ECAXVtr3Rs89fKyG9YlzUs9DyGQ==} - '@modelcontextprotocol/sdk@1.32.2': - resolution: {integrity: sha512-SWsVtH/0vULSQStoZ6xxH2K09Li8fXYTMC64ZeogCdpZ3XSi1eCPOByV1OpuJxuI3OcmHhosDWYyii07tpPsLw==} - engines: {node: '>=18'} - peerDependencies: - '@cfworker/json-schema': ^4.1.1 - zod: ^3.25 || ^4.0 - peerDependenciesMeta: - '@cfworker/json-schema': - optional: true + '@modelcontextprotocol/core@2.4.0': + resolution: {integrity: sha512-z8QBKqdfXLPzkLQuG4xp8hrVEMm1PZ1IgxMN2sMbJiFiAKOWXnAzogXn2W4aqIBlP1ea6U5yiqVquvUNM1Cj6Q==} + engines: {node: '>=20'} + + '@modelcontextprotocol/server@2.4.0': + resolution: {integrity: sha512-rgR9yxSaAJ+bcsi/XroT/S2AfPiIWloXAnrdfYSCms9ivVju0ishu/wW0J21Ho6+ZOR1r7RyeRbjiRuF87ix5Q==} + engines: {node: '>=20'} '@napi-rs/wasm-runtime@1.2.4': resolution: {integrity: sha512-AJxoUD2/15ESHbvpcyjU274nsAPLuOtPHCk0vKJM5pj//Fg/B1FXNWjPnXTT9PymCYYiHo4zPj0ZomXBKhoy7g==} @@ -2759,8 +2751,8 @@ packages: '@sec-ant/readable-stream@0.4.1': resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==} - '@shadcn/registry@0.1.0': - resolution: {integrity: sha512-eMF6tPNi9SWZgPvqBvPQFhJN7gV9PcjRdF3kPiiWo5yZJocWqVgxFuspCHrOij3bIJ797NIGZ+j/v7AiXfA6qg==} + '@shadcn/registry@0.2.1': + resolution: {integrity: sha512-wMvZ3DGdnhCwtpeFbwKybSGfCcP52bZX77jMKgZvupmirgyA5KRLlkeQXkI2RGHIaD8TX2iWe2wcIEjjqzg2FQ==} engines: {node: '>=20.18.1'} '@shikijs/core@4.5.0': @@ -3161,10 +3153,6 @@ packages: resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} engines: {node: '>=6.5'} - accepts@2.0.0: - resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} - engines: {node: '>= 0.6'} - acorn-import-attributes@1.9.5: resolution: {integrity: sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==} peerDependencies: @@ -3204,9 +3192,6 @@ packages: ajv-formats@2.1.1: resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} - ajv-formats@3.0.1: - resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} - ajv-i18n@4.2.0: resolution: {integrity: sha512-v/ei2UkCEeuKNXh8RToiFsUclmU+G57LO1Oo22OagNMENIw+Yb8eMwvHu7Vn9fmkjJyv6XclhJ8TbuigSglPkg==} peerDependencies: @@ -3435,10 +3420,6 @@ packages: bindings@1.5.0: resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==} - body-parser@2.3.0: - resolution: {integrity: sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==} - engines: {node: '>=18'} - boolbase@1.0.0: resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} @@ -3478,10 +3459,6 @@ packages: resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} engines: {node: '>=18'} - bytes@3.1.2: - resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} - engines: {node: '>= 0.8'} - cac@7.1.0: resolution: {integrity: sha512-LMDU/U2yA4IPIY8KT0NsNPWEYZvAMkbgyspxJ6btJaYV+WMDOHAZCmB0lsTObiHaRS1V/ztKAl7+TSkTqXyeoA==} engines: {node: '>=20.19.0'} @@ -3504,10 +3481,6 @@ packages: callsite@1.0.0: resolution: {integrity: sha512-0vdNRFXn5q+dtOqjfFtmtlI9N2eVZ7LMyEV2iKC5mEEFvSg/69Ml6b/WU2qF8W1nLRa0wiSrDT3Y5jOHZCwKPQ==} - callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} - engines: {node: '>=6'} - caniuse-lite@1.0.30001814: resolution: {integrity: sha512-/Uaf1lAzr59XcMpW0o96WoEfr+VXK2OX4U9AgFoiSHsVJ4HppnIFUjtYzsyDH2+tgANaQb2/oxYGwCPapN1FpA==} @@ -3675,32 +3648,12 @@ packages: resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==} engines: {node: ^14.18.0 || >=16.10.0} - content-disposition@1.1.0: - resolution: {integrity: sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==} - engines: {node: '>=18'} - - content-type@1.0.5: - resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} - engines: {node: '>= 0.6'} - - content-type@2.1.0: - resolution: {integrity: sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==} - engines: {node: '>=18'} - convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} cookie-es@1.2.3: resolution: {integrity: sha512-lXVyvUvrNXblMqzIRrxHb57UUVmqsSWlxqt3XIjCkUP0wDAf6uicO6KMbEgYrMNtEvWgWHwe42CKxPu9MYAnWw==} - cookie-signature@1.2.2: - resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==} - engines: {node: '>=6.6.0'} - - cookie@0.7.2: - resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} - engines: {node: '>= 0.6'} - cookie@2.0.1: resolution: {integrity: sha512-yuToqVvRrj6pfDXREyQAAv8SkAEk/8GS3jQRTiUMm66TVtBYmqQeoEjL2Lmq8Rpo6271vH76InTChTitEAm65w==} engines: {node: '>=22'} @@ -3715,19 +3668,6 @@ packages: core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} - cors@2.8.6: - resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==} - engines: {node: '>= 0.10'} - - cosmiconfig@9.0.2: - resolution: {integrity: sha512-gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==} - engines: {node: '>=14'} - peerDependencies: - typescript: '>=4.9.5' - peerDependenciesMeta: - typescript: - optional: true - crc-32@1.2.2: resolution: {integrity: sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==} engines: {node: '>=0.8'} @@ -3875,10 +3815,6 @@ packages: defu@6.1.7: resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} - depd@2.0.0: - resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} - engines: {node: '>= 0.8'} - dequal@2.0.3: resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} engines: {node: '>=6'} @@ -3996,9 +3932,6 @@ packages: ecdsa-sig-formatter@1.0.11: resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==} - ee-first@1.1.1: - resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} - electron-to-chromium@1.5.443: resolution: {integrity: sha512-TDJG36L9A3CWWwZ97HKaE+Iz1sW80pNp6sAU0owzCIV3Zc9eVyRqZK8Vz6NKuMIU8WjP0pIkoqCa0VRf/yFD0Q==} @@ -4039,10 +3972,6 @@ packages: enabled@2.0.0: resolution: {integrity: sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==} - encodeurl@2.0.0: - resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} - engines: {node: '>= 0.8'} - enhanced-resolve@5.26.0: resolution: {integrity: sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==} engines: {node: '>=10.13.0'} @@ -4075,9 +4004,6 @@ packages: resolution: {integrity: sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - error-ex@1.3.4: - resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==} - es-abstract-get@1.0.0: resolution: {integrity: sha512-6PMWXpdhshVvFp+FoWYs1EvG1Nj0tvk0dZM+XcK0xMEM1czRVcP6ohqPWHy6qPagSpC8j4+p89WXlT+xXJs/fg==} engines: {node: '>= 0.4'} @@ -4275,14 +4201,6 @@ packages: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} - eventsource-parser@3.1.1: - resolution: {integrity: sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==} - engines: {node: '>=18.0.0'} - - eventsource@3.0.7: - resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==} - engines: {node: '>=18.0.0'} - execa@5.1.1: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} @@ -4295,16 +4213,6 @@ packages: resolution: {integrity: sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==} engines: {node: ^18.19.0 || >=20.5.0} - express-rate-limit@8.7.0: - resolution: {integrity: sha512-hOwV7WOxXfjRpAM1DSJWZDXx3GhplwD8IfwuwvogD8i1Qnkgosw/H45s4ZnFAUHDAhPjlY9hLBvJhKmGMyY26g==} - engines: {node: '>= 16'} - peerDependencies: - express: '>= 4.11' - - express@5.2.1: - resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==} - engines: {node: '>= 18'} - extend@3.0.2: resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} @@ -4397,10 +4305,6 @@ packages: resolution: {integrity: sha512-xdMtCAODmPloU9qtmPcdBV9Kd27NtMse+4ayThxqIHUES5Z2S6bGpap5PpdmNM56ub7y3i1eyr+vJJIIgWGKmA==} engines: {node: '>=18'} - finalhandler@2.1.1: - resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==} - engines: {node: '>= 18.0.0'} - find-proc@0.2.0: resolution: {integrity: sha512-a6h2nTrgB3g5Wrn4au9Ux4kMk7IJtyF6oA8uGn+mk3weLZssUtc1cp6meHIzzuW2o1srrBAxzkmXLbqjRkgB6w==} engines: {node: ^20.19.0 || >=22.12.0} @@ -4454,14 +4358,6 @@ packages: resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} engines: {node: '>=12.20.0'} - forwarded@0.2.0: - resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} - engines: {node: '>= 0.6'} - - fresh@2.0.0: - resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} - engines: {node: '>= 0.8'} - fs-extra@11.4.1: resolution: {integrity: sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==} engines: {node: '>=14.14'} @@ -4669,10 +4565,6 @@ packages: hermes-parser@0.25.1: resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} - hono@4.13.12: - resolution: {integrity: sha512-6E2QDAc9Ick9Sq77ZrGS/dk2WUYni91aufTw6LJKpV7w8kW5/GxVUc650FOADOmlwg3K+f7Pun6XlV+pYmW6gw==} - engines: {node: '>=16.9.0'} - hookified@1.15.1: resolution: {integrity: sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==} @@ -4743,10 +4635,6 @@ packages: http-cache-semantics@4.2.0: resolution: {integrity: sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==} - http-errors@2.0.1: - resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==} - engines: {node: '>= 0.8'} - http-shutdown@1.2.2: resolution: {integrity: sha512-S9wWkJ/VSY9/k4qcjG318bqJNruzE4HySUhFYknwmu6LBP97KLLfwNf+n4V1BHurvFNkSKLFnK/RsuUnRTf9Vw==} engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} @@ -4771,10 +4659,6 @@ packages: resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==} engines: {node: '>=18.18.0'} - iconv-lite@0.7.3: - resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} - engines: {node: '>=0.10.0'} - ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} @@ -4786,10 +4670,6 @@ packages: resolution: {integrity: sha512-YChdK5txDjwGUvgR7oCJcLGkwi3LDh8Zx8tS7ndYciLEg/oOCL26VUBSUEtgS7EjiybcBqFxh5j0rAdDX7/bbg==} engines: {node: '>= 4'} - import-fresh@3.3.1: - resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} - engines: {node: '>=6'} - import-in-the-middle@3.5.2: resolution: {integrity: sha512-WseIA/4o56+GYO3RmlOPvejYi771OFeJEeK/ejROsr9bdjW+E5NXTOD1Di8TL40Qgg3JJX9aa97Hf8iiSVIKZw==} engines: {node: '>=18'} @@ -4827,10 +4707,6 @@ packages: resolution: {integrity: sha512-7H/2gFSIitxc0hG3nOI1glS8QLo/EHBFFLk8vEUjXY/xu0AdL8jZ9U1IzO2PUm0d2D/ofQcAifb0g6OBkt8U7w==} engines: {node: '>= 12'} - ipaddr.js@1.9.1: - resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} - engines: {node: '>= 0.10'} - ipx@3.1.2: resolution: {integrity: sha512-9RzTAiZ3wJwCGqqeSl1vCizRAfhT9S2cMWG/mOW4t7e7Hyyu3PoYS8+GRWLb75qo1pVgs5CQapwrXherEWDt3A==} hasBin: true @@ -4848,9 +4724,6 @@ packages: resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==} engines: {node: '>= 0.4'} - is-arrayish@0.2.1: - resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} - is-async-function@2.1.1: resolution: {integrity: sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==} engines: {node: '>= 0.4'} @@ -4977,9 +4850,6 @@ packages: resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} engines: {node: '>=12'} - is-promise@4.0.0: - resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==} - is-regex@1.2.1: resolution: {integrity: sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==} engines: {node: '>= 0.4'} @@ -5079,9 +4949,6 @@ packages: jju@1.4.0: resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} - jose@6.2.12: - resolution: {integrity: sha512-9NiFmJEex0sy2Dk58j2UGBSHgUs2ypF9eZSu4L6vjOX3Dp96Sw1F3uL+H+D1sx02jZZdzUT0HgvCy59CuvXcWw==} - js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -5094,9 +4961,6 @@ packages: engines: {node: '>=6'} hasBin: true - json-parse-even-better-errors@2.3.1: - resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} - json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} @@ -5106,9 +4970,6 @@ packages: json-schema-typed@7.0.3: resolution: {integrity: sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==} - json-schema-typed@8.0.2: - resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==} - json-stable-stringify-without-jsonify@1.0.1: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} @@ -5349,9 +5210,6 @@ packages: line-column@1.0.2: resolution: {integrity: sha512-Ktrjk5noGYlHsVnYWh62FLVs4hTb8A3e+vucNZMgPeAOITdshMSgv4cCZQeRDjm7+goqmo6+liZwTXo+U3sVww==} - lines-and-columns@1.2.4: - resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} - liquidjs@10.27.2: resolution: {integrity: sha512-kvknfAEtOHjHkAAv7GxLEJh8ghpMQm3Fc4uWVyF7hERSTsSRsdC7saWs0p5aDG7GDcWsu5o+T4232O+8KZO55w==} engines: {node: '>=16'} @@ -5523,14 +5381,6 @@ packages: mdn-data@2.27.1: resolution: {integrity: sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==} - media-typer@1.1.1: - resolution: {integrity: sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==} - engines: {node: '>= 0.8'} - - merge-descriptors@2.0.0: - resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==} - engines: {node: '>=18'} - merge-options@3.0.4: resolution: {integrity: sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ==} engines: {node: '>=10'} @@ -5731,10 +5581,6 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - negotiator@1.1.0: - resolution: {integrity: sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==} - engines: {node: '>=18'} - neotraverse@1.0.1: resolution: {integrity: sha512-WmmLty1YWwJl9yZi77v2dVIV6X2kuYV8YYBI/G3LWGKdGHmHUvL1z7FW0iDvEvGAwNEoc5x1tOOOyDnf5jJw/w==} engines: {node: '>= 10'} @@ -5833,10 +5679,6 @@ packages: nth-check@2.1.1: resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} - object-assign@4.1.1: - resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} - engines: {node: '>=0.10.0'} - object-inspect@1.13.4: resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} engines: {node: '>= 0.4'} @@ -5875,10 +5717,6 @@ packages: ohash@2.0.12: resolution: {integrity: sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==} - on-finished@2.4.1: - resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} - engines: {node: '>= 0.8'} - once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} @@ -5989,10 +5827,6 @@ packages: package-manager-detector@1.8.0: resolution: {integrity: sha512-yQA4H19AmPEoMUeavPMDIe1higySl/gH/yaQrkT/s07Qp+7pp2hYz30N3z2l5BkjVkF9Ow6o0wjJamm2y7Sn0A==} - parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} - engines: {node: '>=6'} - parse-entities@4.0.2: resolution: {integrity: sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==} @@ -6004,10 +5838,6 @@ packages: resolution: {integrity: sha512-OL/zLggRp8mFhKL0rNORUTR4yBYujK/uU+xZL+/0Rgm2QE4nLO9v8PzEweSJEbMGKmDRjJE4R3IMJlL2di4JeQ==} engines: {node: '>= 18'} - parse-json@5.2.0: - resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} - engines: {node: '>=8'} - parse-json@8.3.0: resolution: {integrity: sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==} engines: {node: '>=18'} @@ -6025,10 +5855,6 @@ packages: parse5@8.0.1: resolution: {integrity: sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==} - parseurl@1.3.3: - resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} - engines: {node: '>= 0.8'} - path-browserify@1.0.1: resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} @@ -6063,9 +5889,6 @@ packages: resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} engines: {node: 18 || 20 || >=22} - path-to-regexp@8.4.2: - resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==} - path-type@6.0.0: resolution: {integrity: sha512-Vj7sf++t5pBD637NSfkxpHSMfWaeig5+DKWLhcqIYx6mWQz5hdJTGDVMQiJcw1ZYkhs7AazKDGpRVji1LJCZUQ==} engines: {node: '>=18'} @@ -6096,10 +5919,6 @@ packages: picoquery@2.5.0: resolution: {integrity: sha512-j1kgOFxtaCyoFCkpoYG2Oj3OdGakadO7HZ7o5CqyRazlmBekKhbDoUnNnXASE07xSY4nDImWZkrZv7toSxMi/g==} - pkce-challenge@5.0.1: - resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==} - engines: {node: '>=16.20.0'} - pkg-up@3.1.0: resolution: {integrity: sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==} engines: {node: '>=8'} @@ -6270,10 +6089,6 @@ packages: property-information@7.2.0: resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==} - proxy-addr@2.0.8: - resolution: {integrity: sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==} - engines: {node: '>= 0.10'} - punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} @@ -6282,10 +6097,6 @@ packages: resolution: {integrity: sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==} engines: {node: '>=20'} - qs@6.17.1: - resolution: {integrity: sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==} - engines: {node: '>=0.6'} - query-selector-shadow-dom@1.0.1: resolution: {integrity: sha512-lT5yCqEBgfoMYpf3F2xQRK7zEr1rhIIZuceDK6+xRkJQ4NMbHTwXqk4NkwDwQMNqXgG9r9fyHnzwNVs6zV5KRw==} @@ -6298,14 +6109,6 @@ packages: radix3@1.1.2: resolution: {integrity: sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==} - range-parser@1.3.0: - resolution: {integrity: sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==} - engines: {node: '>= 0.6'} - - raw-body@3.0.2: - resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} - engines: {node: '>= 0.10'} - react-dom@19.3.0: resolution: {integrity: sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==} peerDependencies: @@ -6474,10 +6277,6 @@ packages: reselect@5.3.0: resolution: {integrity: sha512-XGoLeRAVzUTcJ1qkxPQhDJyIZ5d6zzZD9nT7AEZOaaU9UbWclhycElmhO+VD5bFeLuzhPBaOV2oXC8uG35ZSpg==} - resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} - engines: {node: '>=4'} - resolve-from@5.0.0: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} @@ -6528,10 +6327,6 @@ packages: engines: {node: ^20.19.0 || >=22.12.0} hasBin: true - router@2.2.0: - resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} - engines: {node: '>= 18'} - run-applescript@7.1.0: resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} engines: {node: '>=18'} @@ -6564,9 +6359,6 @@ packages: resolution: {integrity: sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==} engines: {node: '>=10'} - safer-buffer@2.1.2: - resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} - sass-formatter@0.8.0: resolution: {integrity: sha512-Nf4eMGE2O5vnJG7KPCRyksWS9gVKSYoUWtPeMXRRxwZSPVQhSGtL602xVYS65LvMkHmkvKa7xpauF0+/5pPwrg==} hasBin: true @@ -6590,14 +6382,6 @@ packages: engines: {node: '>=10'} hasBin: true - send@1.2.1: - resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==} - engines: {node: '>= 18'} - - serve-static@2.2.1: - resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} - engines: {node: '>= 18'} - set-function-length@1.2.2: resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} @@ -6610,11 +6394,8 @@ packages: resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==} engines: {node: '>= 0.4'} - setprototypeof@1.2.0: - resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} - - shadcn@4.21.1: - resolution: {integrity: sha512-keQmMdKI1eLKTtYpwFwrFfFegsskOpUgt1l3aF359pbCFt0taq0TMuZ75yK+q/StcV2YvjmBMenrs0diWoezXQ==} + shadcn@4.23.0: + resolution: {integrity: sha512-lKgq7QPFgkV/6EOrMCwvEn7ZAw/YnM/grhxzJmK4cZdw3E4F3Ut2EmWvrn2E+vzJp1y/76mxU185OSkXo9Ff+Q==} engines: {node: '>=20.18.1'} hasBin: true @@ -6730,10 +6511,6 @@ packages: stack-trace@0.0.10: resolution: {integrity: sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==} - statuses@2.0.2: - resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} - engines: {node: '>= 0.8'} - std-env@4.3.0: resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==} @@ -6918,10 +6695,6 @@ packages: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} - toidentifier@1.0.1: - resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} - engines: {node: '>=0.6'} - toml@4.3.0: resolution: {integrity: sha512-lVb8X9BsPVuH0M4BKeS91tXAmJvCjQ5UIyAbQFaxkKGyUFK2RPkhwaFSQH8vbpl1d23eu/IBH+dwVMHWaq9A5A==} engines: {node: '>=20'} @@ -6973,10 +6746,6 @@ packages: resolution: {integrity: sha512-NoSdpq/WEiAg5sjmBkmV/hfxv6HJH4NqPNrqjtSO5CwRmpsDfaf4begxW34KdJykH/l1yHtwBWQkCRdoXO8mPA==} engines: {node: '>=20'} - type-is@2.1.0: - resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==} - engines: {node: '>= 18'} - typed-array-buffer@1.0.3: resolution: {integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==} engines: {node: '>= 0.4'} @@ -7104,10 +6873,6 @@ packages: resolution: {integrity: sha512-6bc58dPYhCMHHuwxldQxO3RRNZ4eCogZ/st++0+fcC1nr0jiGUtAdBJ2qzmLQWSxbtz42pWt4QQMiZ9HvZf5cg==} engines: {node: '>=0.10.0'} - unpipe@1.0.0: - resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} - engines: {node: '>= 0.8'} - unstorage@1.17.5: resolution: {integrity: sha512-0i3iqvRfx29hkNntHyQvJTpf5W9dQ9ZadSoRU8+xVlhVtT7jAX57fazYO9EHvcRCfBCyi5YRya7XCDOsbTgkPg==} peerDependencies: @@ -7297,10 +7062,6 @@ packages: resolution: {integrity: sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==} engines: {node: ^20.17.0 || >=22.9.0} - vary@1.1.2: - resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} - engines: {node: '>= 0.8'} - verkit@0.4.1: resolution: {integrity: sha512-mMVzj0TXExtVdlDEq+Mzp0eyOuyznNpFobNM3uAqe3HVm/Ps2c+u17BligMkZjZCA6EiXpoon8iRTer3iu40SQ==} engines: {node: '>=18.12.0'} @@ -7683,11 +7444,6 @@ packages: resolution: {integrity: sha512-dSvYKdvLsAHCDqPOhIwk/q5CvuWtTB3Dgpoe0uVEFjTzIOAmsQpprX25InCvrvJsirEbu1OHyy67n/kAj1Sw/w==} engines: {node: '>=18'} - zod-to-json-schema@3.25.2: - resolution: {integrity: sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==} - peerDependencies: - zod: ^3.25.28 || ^4 - zod-validation-error@4.0.2: resolution: {integrity: sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==} engines: {node: '>=18.0.0'} @@ -8333,95 +8089,95 @@ snapshots: enabled: 2.0.0 kuler: 2.0.0 - '@data-slot/accordion@1.1.2': + '@data-slot/accordion@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/alert-dialog@1.1.2': + '@data-slot/alert-dialog@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/carousel@1.1.2': + '@data-slot/carousel@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/collapsible@1.1.2': + '@data-slot/collapsible@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/combobox@1.1.2': + '@data-slot/combobox@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/command@1.1.2': + '@data-slot/command@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/core@1.1.2': {} + '@data-slot/core@1.1.3': {} - '@data-slot/dialog@1.1.2': + '@data-slot/dialog@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/drawer@1.1.2': + '@data-slot/drawer@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/dropdown-menu@1.1.2': + '@data-slot/dropdown-menu@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/hover-card@1.1.2': + '@data-slot/hover-card@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/navigation-menu@1.1.2': + '@data-slot/navigation-menu@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/popover@1.1.2': + '@data-slot/popover@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/radio-group@1.1.2': + '@data-slot/radio-group@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/resizable@1.1.2': + '@data-slot/resizable@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/select@1.1.2': + '@data-slot/select@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/slider@1.1.2': + '@data-slot/slider@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/switch@1.1.2': + '@data-slot/switch@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/tabs@1.1.2': + '@data-slot/tabs@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/toast@1.1.2': + '@data-slot/toast@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/toggle-group@1.1.2': + '@data-slot/toggle-group@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/toggle@1.1.2': + '@data-slot/toggle@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 - '@data-slot/tooltip@1.1.2': + '@data-slot/tooltip@1.1.3': dependencies: - '@data-slot/core': 1.1.2 + '@data-slot/core': 1.1.3 '@date-fns/tz@1.5.0': optional: true @@ -8750,10 +8506,6 @@ snapshots: - supports-color - vitest - '@hono/node-server@2.1.3(hono@4.13.12)': - dependencies: - hono: 4.13.12 - '@html-validate/stylish@6.0.0': {} '@humanfs/core@0.19.2': @@ -9087,27 +8839,14 @@ snapshots: transitivePeerDependencies: - supports-color - '@modelcontextprotocol/sdk@1.32.2(supports-color@7.2.0)(zod@3.25.76)': + '@modelcontextprotocol/core@2.4.0': dependencies: - '@hono/node-server': 2.1.3(hono@4.13.12) - ajv: 8.20.0 - ajv-formats: 3.0.1 - content-type: 1.0.5 - cors: 2.8.6 - cross-spawn: 7.0.6 - eventsource: 3.0.7 - eventsource-parser: 3.1.1 - express: 5.2.1(supports-color@7.2.0) - express-rate-limit: 8.7.0(express@5.2.1(supports-color@7.2.0))(supports-color@7.2.0) - hono: 4.13.12 - jose: 6.2.12 - json-schema-typed: 8.0.2 - pkce-challenge: 5.0.1 - raw-body: 3.0.2 - zod: 3.25.76 - zod-to-json-schema: 3.25.2(zod@3.25.76) - transitivePeerDependencies: - - supports-color + zod: 4.6.5 + + '@modelcontextprotocol/server@2.4.0': + dependencies: + '@modelcontextprotocol/core': 2.4.0 + zod: 4.6.5 '@napi-rs/wasm-runtime@1.2.4(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)': dependencies: @@ -9939,7 +9678,7 @@ snapshots: '@sec-ant/readable-stream@0.4.1': {} - '@shadcn/registry@0.1.0(supports-color@7.2.0)(typescript@6.0.3)': + '@shadcn/registry@0.2.1(supports-color@7.2.0)': dependencies: '@babel/core': 7.29.7(supports-color@7.2.0) '@babel/parser': 7.29.9 @@ -9947,7 +9686,7 @@ snapshots: '@babel/preset-typescript': 7.29.7(@babel/core@7.29.7(supports-color@7.2.0))(supports-color@7.2.0) '@dotenvx/dotenvx': 1.75.1 cn: 0.2.6 - cosmiconfig: 9.0.2(typescript@6.0.3) + code-block-writer: 13.0.3 deepmerge: 4.3.1 execa: 9.6.1 fast-glob: 3.3.3 @@ -9955,19 +9694,17 @@ snapshots: fuzzysort: 3.1.0 kleur: 4.1.5 ora: 8.2.0 - postcss: 8.5.28 + postcss: 8.5.33 prompts: 2.4.2 recast: 0.23.21 socks: 2.8.10 stringify-object: 5.0.0 - ts-morph: 26.0.0 tsconfig-paths: 4.2.0 type-fest: 4.41.0 undici: 7.30.2 - zod: 3.25.76 + zod: 4.6.5 transitivePeerDependencies: - supports-color - - typescript '@shikijs/core@4.5.0': dependencies: @@ -10483,11 +10220,6 @@ snapshots: dependencies: event-target-shim: 5.0.1 - accepts@2.0.0: - dependencies: - mime-types: 3.0.2 - negotiator: 1.1.0 - acorn-import-attributes@1.9.5(acorn@8.18.0): dependencies: acorn: 8.18.0 @@ -10516,10 +10248,6 @@ snapshots: dependencies: ajv: 8.20.0 - ajv-formats@3.0.1: - dependencies: - ajv: 8.20.0 - ajv-i18n@4.2.0(ajv@8.20.0): dependencies: ajv: 8.20.0 @@ -10839,20 +10567,6 @@ snapshots: dependencies: file-uri-to-path: 1.0.0 - body-parser@2.3.0(supports-color@7.2.0): - dependencies: - bytes: 3.1.2 - content-type: 2.1.0 - debug: 4.4.3(supports-color@7.2.0) - http-errors: 2.0.1 - iconv-lite: 0.7.3 - on-finished: 2.4.1 - qs: 6.17.1 - raw-body: 3.0.2 - type-is: 2.1.0 - transitivePeerDependencies: - - supports-color - boolbase@1.0.0: {} brace-expansion@1.1.21: @@ -10895,8 +10609,6 @@ snapshots: dependencies: run-applescript: 7.1.0 - bytes@3.1.2: {} - cac@7.1.0: {} cacheable@2.5.0: @@ -10926,8 +10638,6 @@ snapshots: callsite@1.0.0: {} - callsites@3.1.0: {} - caniuse-lite@1.0.30001814: {} ccount@2.0.1: {} @@ -11075,20 +10785,10 @@ snapshots: consola@3.4.2: {} - content-disposition@1.1.0: {} - - content-type@1.0.5: {} - - content-type@2.1.0: {} - convert-source-map@2.0.0: {} cookie-es@1.2.3: {} - cookie-signature@1.2.2: {} - - cookie@0.7.2: {} - cookie@2.0.1: {} copy-file@11.1.0: @@ -11100,20 +10800,6 @@ snapshots: core-util-is@1.0.3: {} - cors@2.8.6: - dependencies: - object-assign: 4.1.1 - vary: 1.1.2 - - cosmiconfig@9.0.2(typescript@6.0.3): - dependencies: - env-paths: 2.2.1 - import-fresh: 3.3.1 - js-yaml: 4.3.2 - parse-json: 5.2.0 - optionalDependencies: - typescript: 6.0.3 - crc-32@1.2.2: {} crc32-stream@7.0.1: @@ -11249,8 +10935,6 @@ snapshots: defu@6.1.7: {} - depd@2.0.0: {} - dequal@2.0.3: {} destr@2.0.5: {} @@ -11373,8 +11057,6 @@ snapshots: dependencies: safe-buffer: 5.2.1 - ee-first@1.1.1: {} - electron-to-chromium@1.5.443: {} embla-carousel-auto-scroll@8.6.0(embla-carousel@8.6.0): @@ -11408,8 +11090,6 @@ snapshots: enabled@2.0.0: {} - encodeurl@2.0.0: {} - enhanced-resolve@5.26.0: dependencies: graceful-fs: 4.2.11 @@ -11432,10 +11112,6 @@ snapshots: env-paths@3.0.0: {} - error-ex@1.3.4: - dependencies: - is-arrayish: 0.2.1 - es-abstract-get@1.0.0: dependencies: es-errors: 1.3.0 @@ -11788,12 +11464,6 @@ snapshots: events@3.3.0: {} - eventsource-parser@3.1.1: {} - - eventsource@3.0.7: - dependencies: - eventsource-parser: 3.1.1 - execa@5.1.1: dependencies: cross-spawn: 7.0.6 @@ -11833,47 +11503,6 @@ snapshots: strip-final-newline: 4.0.0 yoctocolors: 2.2.0 - express-rate-limit@8.7.0(express@5.2.1(supports-color@7.2.0))(supports-color@7.2.0): - dependencies: - debug: 4.4.3(supports-color@7.2.0) - express: 5.2.1(supports-color@7.2.0) - ip-address: 10.7.2 - transitivePeerDependencies: - - supports-color - - express@5.2.1(supports-color@7.2.0): - dependencies: - accepts: 2.0.0 - body-parser: 2.3.0(supports-color@7.2.0) - content-disposition: 1.1.0 - content-type: 1.0.5 - cookie: 0.7.2 - cookie-signature: 1.2.2 - debug: 4.4.3(supports-color@7.2.0) - depd: 2.0.0 - encodeurl: 2.0.0 - escape-html: 1.0.3 - etag: 1.8.1 - finalhandler: 2.1.1(supports-color@7.2.0) - fresh: 2.0.0 - http-errors: 2.0.1 - merge-descriptors: 2.0.0 - mime-types: 3.0.2 - on-finished: 2.4.1 - once: 1.4.0 - parseurl: 1.3.3 - proxy-addr: 2.0.8 - qs: 6.17.1 - range-parser: 1.3.0 - router: 2.2.0(supports-color@7.2.0) - send: 1.2.1(supports-color@7.2.0) - serve-static: 2.2.1(supports-color@7.2.0) - statuses: 2.0.2 - type-is: 2.1.0 - vary: 1.1.2 - transitivePeerDependencies: - - supports-color - extend@3.0.2: {} fast-deep-equal@3.1.3: {} @@ -11967,17 +11596,6 @@ snapshots: filter-obj@6.1.0: {} - finalhandler@2.1.1(supports-color@7.2.0): - dependencies: - debug: 4.4.3(supports-color@7.2.0) - encodeurl: 2.0.0 - escape-html: 1.0.3 - on-finished: 2.4.1 - parseurl: 1.3.3 - statuses: 2.0.2 - transitivePeerDependencies: - - supports-color - find-proc@0.2.0: {} find-up-simple@1.0.1: {} @@ -12030,10 +11648,6 @@ snapshots: dependencies: fetch-blob: 3.2.0 - forwarded@0.2.0: {} - - fresh@2.0.0: {} - fs-extra@11.4.1: dependencies: graceful-fs: 4.2.11 @@ -12336,8 +11950,6 @@ snapshots: dependencies: hermes-estree: 0.25.1 - hono@4.13.12: {} - hookified@1.15.1: {} hookified@2.2.0: {} @@ -12376,14 +11988,6 @@ snapshots: http-cache-semantics@4.2.0: {} - http-errors@2.0.1: - dependencies: - depd: 2.0.0 - inherits: 2.0.4 - setprototypeof: 1.2.0 - statuses: 2.0.2 - toidentifier: 1.0.1 - http-shutdown@1.2.2: {} https-proxy-agent@7.0.6(supports-color@7.2.0): @@ -12401,21 +12005,12 @@ snapshots: human-signals@8.0.1: {} - iconv-lite@0.7.3: - dependencies: - safer-buffer: 2.1.2 - ieee754@1.2.1: {} ignore@5.3.2: {} ignore@7.0.11: {} - import-fresh@3.3.1: - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 - import-in-the-middle@3.5.2: dependencies: cjs-module-lexer: 2.3.0 @@ -12447,8 +12042,6 @@ snapshots: ip-address@10.7.2: {} - ipaddr.js@1.9.1: {} - ipx@3.1.2(@netlify/blobs@11.1.4(supports-color@7.2.0)): dependencies: '@fastify/accept-negotiator': 2.1.1 @@ -12504,8 +12097,6 @@ snapshots: call-bound: 1.0.4 get-intrinsic: 1.3.0 - is-arrayish@0.2.1: {} - is-async-function@2.1.1: dependencies: async-function: 1.0.0 @@ -12605,8 +12196,6 @@ snapshots: is-plain-obj@4.1.0: {} - is-promise@4.0.0: {} - is-regex@1.2.1: dependencies: call-bound: 1.0.4 @@ -12686,8 +12275,6 @@ snapshots: jju@1.4.0: {} - jose@6.2.12: {} - js-tokens@4.0.0: {} js-yaml@4.3.2: @@ -12696,16 +12283,12 @@ snapshots: jsesc@3.1.0: {} - json-parse-even-better-errors@2.3.1: {} - json-schema-traverse@0.4.1: {} json-schema-traverse@1.0.0: {} json-schema-typed@7.0.3: {} - json-schema-typed@8.0.2: {} - json-stable-stringify-without-jsonify@1.0.1: {} json5@2.2.3: {} @@ -12914,8 +12497,6 @@ snapshots: isarray: 1.0.0 isobject: 2.1.0 - lines-and-columns@1.2.4: {} - liquidjs@10.27.2: dependencies: commander: 10.0.1 @@ -13218,10 +12799,6 @@ snapshots: mdn-data@2.27.1: {} - media-typer@1.1.1: {} - - merge-descriptors@2.0.0: {} - merge-options@3.0.4: dependencies: is-plain-obj: 2.1.0 @@ -13558,10 +13135,6 @@ snapshots: natural-compare@1.4.0: {} - negotiator@1.1.0: - dependencies: - content-type: 2.1.0 - neotraverse@1.0.1: {} next-themes@0.4.6(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0): @@ -13648,8 +13221,6 @@ snapshots: dependencies: boolbase: 1.0.0 - object-assign@4.1.1: {} - object-inspect@1.13.4: {} object-keys@1.1.1: {} @@ -13696,10 +13267,6 @@ snapshots: ohash@2.0.12: {} - on-finished@2.4.1: - dependencies: - ee-first: 1.1.1 - once@1.4.0: dependencies: wrappy: 1.0.2 @@ -13870,10 +13437,6 @@ snapshots: package-manager-detector@1.8.0: {} - parent-module@1.0.1: - dependencies: - callsites: 3.1.0 - parse-entities@4.0.2: dependencies: '@types/unist': 2.0.11 @@ -13891,13 +13454,6 @@ snapshots: es-module-lexer: 1.7.0 slashes: 3.0.12 - parse-json@5.2.0: - dependencies: - '@babel/code-frame': 7.29.7 - error-ex: 1.3.4 - json-parse-even-better-errors: 2.3.1 - lines-and-columns: 1.2.4 - parse-json@8.3.0: dependencies: '@babel/code-frame': 7.29.7 @@ -13923,8 +13479,6 @@ snapshots: dependencies: entities: 8.1.0 - parseurl@1.3.3: {} - path-browserify@1.0.1: {} path-exists@3.0.0: {} @@ -13946,8 +13500,6 @@ snapshots: lru-cache: 11.5.3 minipass: 7.1.3 - path-to-regexp@8.4.2: {} - path-type@6.0.0: {} pathe@2.0.3: {} @@ -13966,8 +13518,6 @@ snapshots: picoquery@2.5.0: {} - pkce-challenge@5.0.1: {} - pkg-up@3.1.0: dependencies: find-up: 3.0.0 @@ -14097,22 +13647,12 @@ snapshots: property-information@7.2.0: {} - proxy-addr@2.0.8: - dependencies: - forwarded: 0.2.0 - ipaddr.js: 1.9.1 - punycode@2.3.1: {} qified@0.10.1: dependencies: hookified: 2.2.0 - qs@6.17.1: - dependencies: - es-define-property: 1.0.1 - side-channel: 1.1.1 - query-selector-shadow-dom@1.0.1: {} queue-microtask@1.2.3: {} @@ -14121,15 +13661,6 @@ snapshots: radix3@1.1.2: {} - range-parser@1.3.0: {} - - raw-body@3.0.2: - dependencies: - bytes: 3.1.2 - http-errors: 2.0.1 - iconv-lite: 0.7.3 - unpipe: 1.0.0 - react-dom@19.3.0(react@19.3.0): dependencies: react: 19.3.0 @@ -14380,8 +13911,6 @@ snapshots: reselect@5.3.0: {} - resolve-from@4.0.0: {} - resolve-from@5.0.0: {} resolve-pkg-maps@1.0.0: {} @@ -14474,16 +14003,6 @@ snapshots: '@rolldown/binding-win32-arm64-msvc': 1.2.19 '@rolldown/binding-win32-x64-msvc': 1.2.19 - router@2.2.0(supports-color@7.2.0): - dependencies: - debug: 4.4.3(supports-color@7.2.0) - depd: 2.0.0 - is-promise: 4.0.0 - parseurl: 1.3.3 - path-to-regexp: 8.4.2 - transitivePeerDependencies: - - supports-color - run-applescript@7.1.0: {} run-parallel@1.2.0: @@ -14517,8 +14036,6 @@ snapshots: safe-stable-stringify@2.5.0: {} - safer-buffer@2.1.2: {} - sass-formatter@0.8.0: dependencies: suf-log: 2.5.3 @@ -14548,31 +14065,6 @@ snapshots: semver@7.8.5: {} - send@1.2.1(supports-color@7.2.0): - dependencies: - debug: 4.4.3(supports-color@7.2.0) - encodeurl: 2.0.0 - escape-html: 1.0.3 - etag: 1.8.1 - fresh: 2.0.0 - http-errors: 2.0.1 - mime-types: 3.0.2 - ms: 2.1.3 - on-finished: 2.4.1 - range-parser: 1.3.0 - statuses: 2.0.2 - transitivePeerDependencies: - - supports-color - - serve-static@2.2.1(supports-color@7.2.0): - dependencies: - encodeurl: 2.0.0 - escape-html: 1.0.3 - parseurl: 1.3.3 - send: 1.2.1(supports-color@7.2.0) - transitivePeerDependencies: - - supports-color - set-function-length@1.2.2: dependencies: define-data-property: 1.1.4 @@ -14595,22 +14087,19 @@ snapshots: es-errors: 1.3.0 es-object-atoms: 1.1.2 - setprototypeof@1.2.0: {} - - shadcn@4.21.1(supports-color@7.2.0)(typescript@6.0.3): + shadcn@4.23.0(supports-color@7.2.0): dependencies: '@babel/core': 7.29.7(supports-color@7.2.0) '@babel/parser': 7.29.9 '@babel/plugin-transform-typescript': 7.29.9(@babel/core@7.29.7(supports-color@7.2.0))(supports-color@7.2.0) '@babel/preset-typescript': 7.29.7(@babel/core@7.29.7(supports-color@7.2.0))(supports-color@7.2.0) '@dotenvx/dotenvx': 1.75.1 - '@modelcontextprotocol/sdk': 1.32.2(supports-color@7.2.0)(zod@3.25.76) - '@shadcn/registry': 0.1.0(supports-color@7.2.0)(typescript@6.0.3) + '@modelcontextprotocol/server': 2.4.0 + '@shadcn/registry': 0.2.1(supports-color@7.2.0) '@types/validate-npm-package-name': 4.0.2 browserslist: 4.29.3 cn: 0.2.6 commander: 14.0.3 - cosmiconfig: 9.0.2(typescript@6.0.3) dedent: 1.7.2 deepmerge: 4.3.1 diff: 8.0.4 @@ -14621,7 +14110,7 @@ snapshots: kleur: 4.1.5 open: 11.0.4 ora: 8.2.0 - postcss: 8.5.28 + postcss: 8.5.33 postcss-selector-parser: 7.1.6 prompts: 2.4.2 recast: 0.23.21 @@ -14631,13 +14120,10 @@ snapshots: tsconfig-paths: 4.2.0 undici: 7.30.2 validate-npm-package-name: 7.0.2 - zod: 3.25.76 - zod-to-json-schema: 3.25.2(zod@3.25.76) + zod: 4.6.5 transitivePeerDependencies: - - '@cfworker/json-schema' - babel-plugin-macros - supports-color - - typescript sharp@0.34.5: dependencies: @@ -14805,8 +14291,6 @@ snapshots: stack-trace@0.0.10: {} - statuses@2.0.2: {} - std-env@4.3.0: {} stdin-discarder@0.2.2: {} @@ -15018,8 +14502,6 @@ snapshots: dependencies: is-number: 7.0.0 - toidentifier@1.0.1: {} - toml@4.3.0: {} tomlify-j0.4@3.0.0: {} @@ -15065,12 +14547,6 @@ snapshots: dependencies: tagged-tag: 1.0.0 - type-is@2.1.0: - dependencies: - content-type: 2.1.0 - media-typer: 1.1.1 - mime-types: 3.0.2 - typed-array-buffer@1.0.3: dependencies: call-bound: 1.0.4 @@ -15221,8 +14697,6 @@ snapshots: dependencies: normalize-path: 2.1.1 - unpipe@1.0.0: {} - unstorage@1.17.5(@netlify/blobs@11.1.4(supports-color@7.2.0)): dependencies: anymatch: 3.1.3 @@ -15301,8 +14775,6 @@ snapshots: validate-npm-package-name@7.0.2: {} - vary@1.1.2: {} - verkit@0.4.1: {} vfile-location@5.0.3: @@ -15661,10 +15133,6 @@ snapshots: normalize-path: 3.0.0 readable-stream: 4.8.0 - zod-to-json-schema@3.25.2(zod@3.25.76): - dependencies: - zod: 3.25.76 - zod-validation-error@4.0.2(zod@4.6.5): dependencies: zod: 4.6.5 diff --git a/public/r/liquid/components.json b/public/r/liquid/components.json index 9c61872ec..53e33ade5 100644 --- a/public/r/liquid/components.json +++ b/public/r/liquid/components.json @@ -74,7 +74,7 @@ }, { "path": "assets/ui-manifest.json", - "content": "{\n \"registry\": \"https://ui.full.dev/r/liquid/\",\n \"files\": {\n \"assets/ui-tokens.css\": \"55a8f2810ab4a1498ca3dd2f6e7dc89009c60e2402ddfcb95783b6eba996c374\",\n \"snippets/ui-base.liquid\": \"bc55195b5b6c82e63deeeed1255fd19b434c47866815f82b95b9202421256d34\",\n \"snippets/ui-init.liquid\": \"98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af\",\n \"assets/ui-licenses.json\": \"a1fad640a342c9ccd79d233a3aed9631cbf5525ee81e67f49322d0a0f0c2effc\",\n \"assets/ui-carousel.js\": \"3337447a9e0051cebbc1726bca7c7966de1035819fb8e0b676383b85f1917632\",\n \"assets/ui-controls.js\": \"cf51f6d8b23c93e30d3355e993ff21a1aee79f38facfa413bed64e9815df255d\",\n \"assets/ui-lifecycle.js\": \"78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6\",\n \"assets/ui-start.js\": \"738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500\",\n \"assets/data-slot-core.js\": \"d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6\",\n \"assets/data-slot-dialog.js\": \"a5201f452700d04145b5156cc46880d2b5bdf7521b03ff9521c3f7693ee1b5d5\",\n \"assets/data-slot-command.js\": \"f7944120617676b14dfda2ea3f3e8a15767e0766d5312b4ed9519affe9b7444a\",\n \"assets/data-slot-navigation-menu.js\": \"f9b42a9bceca8e1103718d43aa5f0d141ab63d38278cb121e790a2c80e827b68\",\n \"assets/data-slot-accordion.js\": \"fe6b0ac2c87a2e31582e5e88c509e0b508f41d0065d0a420407999ad210e6a27\",\n \"assets/data-slot-tabs.js\": \"1f187134bba755cfda9d35cf9f16174c1a183862d32d100f270f4177033058c7\",\n \"assets/data-slot-combobox.js\": \"b5f2ed9d65a43d836c59c0d4dc33c16ab12ef9fa05d510078b5d62517d854db6\",\n \"assets/data-slot-carousel.js\": \"d83ef938d3b62dc3652b123428ca2261e03fb2ba1133992b0f5545a974238d03\",\n \"assets/data-slot-alert-dialog.js\": \"1caee9a86bb2a816ea32bc1a48b82f3cc588ec3c563ebc443f836ab1dae2f618\",\n \"assets/data-slot-collapsible.js\": \"c42f76e3dfeff4570eb2f5104434fbffd3ef55710833e888965c590ce59f4f9f\",\n \"assets/data-slot-drawer.js\": \"c9343b26ea27193cc1d2da3e41bf452005bc2e534151fa1a762b2b6535de28d0\",\n \"assets/data-slot-dropdown-menu.js\": \"543c5717c9ba8363bbab4c0a11005980d75d4baaed79cf7123c7bcfe3ec8720b\",\n \"assets/data-slot-hover-card.js\": \"86e1bfa5d4822f180f3501ca7cc51bf044d4e917a7ebdb7a10b70006dba6467f\",\n \"assets/data-slot-popover.js\": \"526e30d663381329a7a6394eae886224024034d0abf96f888c932bb4b8c1b1cb\",\n \"assets/data-slot-radio-group.js\": \"7a9b90166de80d79ee42aa2df73e4d8179e9d291cb30b3095c7d8332375b0499\",\n \"assets/data-slot-select.js\": \"13d1a3fbe90f4b3b830d987b6a28267897faa3589bf00e64edca4938acbf406b\",\n \"assets/data-slot-slider.js\": \"0d10131aa95450aa1269234103ead8d805d6abdf9e0683510f4fcf58ab0f1efa\",\n \"assets/data-slot-switch.js\": \"0d5b09a89429880f61aeb540be5f87383ba5c6beb261ad468e9a6cf18e45b6a0\",\n \"assets/data-slot-toast.js\": \"acfd86824d0ff37fbd62d0c48672e527d7391412780730e9a3a8d61268b3aaf2\",\n \"assets/data-slot-toggle.js\": \"7a651d578cb83be842c8e59fe1a2cd124594b1fd6c942faf0a33cf9e57326947\",\n \"assets/data-slot-toggle-group.js\": \"c1f2fc9712974e63e4e44c97ab2a1ec8bc3c3cb73c1afb4578b085fed11977f1\",\n \"assets/data-slot-tooltip.js\": \"5a9e51a54669153620eb3512e74487eac12ababe3331aff7dfed6c717b8b93c0\",\n \"snippets/ui-runtime.liquid\": \"62ae98f4ad16dc0ca406d96bbabb373cd30a63dd385e3614da0dcd2e63d0f17c\",\n \"assets/ui-motion.js\": \"2252a6794ddb162b73ee1640af212292b8c520e98ae09ea862b479078f81d3d1\",\n \"snippets/ui-banner.liquid\": \"9965b12e9a2036aca6e35f1327da8a240c894a6fd91d99f37e77107818d271a3\",\n \"snippets/ui-tabs.liquid\": \"5b57bb3d6400e44ef9343f7b45d9baf2d8581d678ccc64764be60164160687eb\",\n \"snippets/ui-form.liquid\": \"1c002d21c441e217a8f3d64268d429c97e4785af118eb7f7abb5ff1c3d10a3b6\",\n \"assets/ui-form.css\": \"ab0dd70553818fe0799e393f6811e949884eca9f44d9ceff4c2b333c0bf724b4\",\n \"snippets/ui-select.liquid\": \"2d8c99759161a024285d1b54c0ca166dc7b13c97596497351253e945b5e52ee2\",\n \"snippets/ui-field.liquid\": \"cf73aaaf3e27bc9d121dd089317610fbd08b9550a1d5fb0738337c6817879309\",\n \"assets/ui-field.css\": \"96f846a52ab0b832a9eca70ef430e5fd14664a3367d04842de320a82e622722b\",\n \"snippets/ui-item.liquid\": \"fe03c1a3e6df09192c3ac7a08520b0fc1c629a597a029d193ff91655cb7ceac0\",\n \"snippets/ui-spinner.liquid\": \"84d48693f10cb8af4549cc0d71cd847a85da0e111f2ad64dae309c128c2a8c4a\",\n \"snippets/ui-video.liquid\": \"14acea7c523198269a9165270decac21a43a5d69bf12bd248a76aceb2e9b26ed\",\n \"assets/ui-video.css\": \"c1572853f48474f6291a70ccdb1085512700fc3dcbbdaebd71374b838ec67fee\",\n \"snippets/ui-button.liquid\": \"d0b4ad1b574f10f986a7d5b2719a16c4ba29b80887962b9a8b6464afef6fe54c\",\n \"snippets/ui-toggle.liquid\": \"c86100cf7c163c0d5bc81976fd794788f68fab2ebc5c0887d8042958ce020912\",\n \"snippets/ui-logo.liquid\": \"5d6de7be3f7aab9e05c9533afef39ea0e9dce1b4ee12a13bf7b82780c973b126\",\n \"snippets/ui-kbd.liquid\": \"024f34ed2932d183671f7fa44ff724a70ec17b766cf7e0d3f565f46f33ab2cf2\",\n \"snippets/ui-rating.liquid\": \"aa57adc5a5508b368da78023b242694e6ce924b6e9e5407c141a5030a414bf1d\",\n \"assets/ui-rating.css\": \"e5efea2a9edaea78522f20ebd9e9d01abe8a2fcd310c193239adf80ec33b4975\",\n \"snippets/ui-tooltip.liquid\": \"d2863a0da3090c73dda10d8615b84fc50fab64373a466fbf4e4e743cfb083c96\",\n \"snippets/ui-avatar.liquid\": \"9bfb5d5f535857cc45f31afbc91c855e94972bab07ad3b4fe2dc0d241106385d\",\n \"snippets/ui-empty.liquid\": \"0e7fb5b68d50abcf7213304034762b4dd535c791dd6f4dc517100145e04b0cde\",\n \"snippets/ui-alert-dialog.liquid\": \"f739374035ffa0f3bca2c4b6d946710751c8268c8f1dde535251be9c2c7b0cd0\",\n \"snippets/ui-navigation-menu.liquid\": \"52aecbb36b0031810a85a99f5d4439e852dc1ba3a872b9525dd75c8df8b5a84e\",\n \"assets/ui-navigation-menu.css\": \"29a47ce0eb549e58cc8195dcb656bd2cef56360178c76acfc2d481a110463ca6\",\n \"snippets/ui-typography.liquid\": \"b03dc93c4de6636164a206c95979caa6fe9ab7cf8d1c24d75611416259da7979\",\n \"assets/ui-typography.css\": \"0daa86d256566ab8065411682cb8c90aa3b3eab6e62fbd8165dac1147e4edde9\",\n \"snippets/ui-toc.liquid\": \"04038e0870112b2335b80b4092814915105b31d08cdd36ecf1f4de1761f66acf\",\n \"snippets/ui-icon.liquid\": \"ca75a9485eb33cdb31a3a4e2e5ca03ce74d4995dbd1696d964832a87602bf3ca\",\n \"assets/ui-icon.css\": \"cfb1a47905cbd9c25b635c96926a77f8eed983a4aca62fdce758345dcc792add\",\n \"snippets/ui-combobox.liquid\": \"bacd605b44237512a74d34119d01432440b76ae60218dae6a6f37f98b32e3e00\",\n \"snippets/ui-toast.liquid\": \"bb032d90d6084fb15e12da22777635b80d09a06402513c46c89e853e3ede0405\",\n \"assets/ui-toast.css\": \"c322fab210a202fa434695025550495dbdc93e688ed7ae39303fea9830864d0b\",\n \"snippets/ui-header.liquid\": \"cc14effb4e3b6c4ac397e306e4ebd270a31b3415cc12ffbeb6cd38f411eaba80\",\n \"snippets/ui-command.liquid\": \"4a37f59dc0039fa1505de764472212d6cd7c4e5c52b737a1700e928db286f233\",\n \"snippets/ui-accordion.liquid\": \"4b58c83ae13e14e03a3129a2dccbd02eeafa90c1e48edbbf9af2dc412bf3aabf\",\n \"assets/ui-accordion.css\": \"430924440bd0f1d49ceb72baffc77404c9411c31c24b940d75861daba2649e83\",\n \"snippets/ui-slider.liquid\": \"f2de1fb9099de77bf291455447bc86b2578781e7cf0efdf12117fb4575e0b0e6\",\n \"snippets/ui-input.liquid\": \"d29e280ce1d08c7450902e69a73a0b7aa125f1cb662c50dbfc80a4a4fef0a85e\",\n \"snippets/ui-input-group.liquid\": \"b862a0c63e23dc7ae4ffe3a8e057a87f38fa8e6c8842ddf3c86b826de0283d70\",\n \"snippets/ui-triggers.liquid\": \"ba9c7b802fb0a2aba0e9cc145a9dd44134964afb53e5363cf9e0ae138b906cc9\",\n \"snippets/ui-toggle-group.liquid\": \"2d61e0b9bc746e05834157f5a75d23123f02bc2df737412e4f6099844afc4f49\",\n \"snippets/ui-dialog.liquid\": \"779bbcd609a69ed29a984df1f26f9ed80fd24d71c4ee3ead5f4daa055b28e9fb\",\n \"snippets/ui-drawer.liquid\": \"16120fdd70fac393470c3936223e78ad5f81164e2b7616fd075e8e82098a17d5\",\n \"snippets/ui-badge.liquid\": \"14b826127eaedd2f5acac0ca74fbe403ef18b08ca6651995c0bf0501210d55f6\",\n \"snippets/ui-alert.liquid\": \"392bf006b427178d4699272115317e0db934d881be9534b4638c492fa1825a83\",\n \"snippets/ui-table.liquid\": \"6599d8b3bd193761571c2b71e499f78546ba5c2768d4e0a0a60cd0e348632e5b\",\n \"snippets/ui-breadcrumb.liquid\": \"dafdeaf03286b386c90f8e72777de1946fba4718ee568bd85ca7bc768483a3ca\",\n \"snippets/ui-aspect-ratio.liquid\": \"c8aae05fcd76af7ae768aedafd7e758533e2b52135b00ff72940896ad793f177\",\n \"snippets/ui-price.liquid\": \"96156754aee3a04aa3ae7084a14470000213e8be14468c4937e9f3a87e348234\",\n \"assets/ui-price.css\": \"95c947e219621102b704164e48a83e381e6e2b27b99311a294e076745b39a36f\",\n \"snippets/ui-radio-group.liquid\": \"af9978e18716cc86d03ed21dece8304992e74a4fab88e12069b0648cfd944492\",\n \"snippets/ui-checkbox.liquid\": \"0e4dd1738b355c5a93533e0b813e2e6c72f7491c289d65aa7b6435be1c599006\",\n \"snippets/ui-switch.liquid\": \"84ed60c777e77daec8b5fe6f2ee434877d51224235dc1bc2e17927cd182fe646\",\n \"snippets/ui-skeleton.liquid\": \"1e30245f6577f73d28f4badbc293934656882a29d5dec1d2f74ef95f3bcede2c\",\n \"snippets/ui-separator.liquid\": \"90b1d2795666b6c51f35645ca8d07659f2c4868fe9553e233cddb4e962095f6e\",\n \"snippets/ui-card.liquid\": \"581a46843f1280ebace0423ee84289b40fbd46142e6a9ab3940f63eca0e4c5f2\",\n \"assets/ui-card.css\": \"ee7e4192ec814066d0c9838f810ae4ca267b9f071b7fa945c43226d46b0f8dc9\",\n \"snippets/ui-pagination.liquid\": \"30943c00686e1a23d92865465b38c964e059b14ae3a20fb7fe151824a73773eb\",\n \"snippets/ui-popup.liquid\": \"840f938aa2a331e4e7d55c659f25e841dcfb1bf5c5cadace6263243352ff8359\",\n \"snippets/ui-sheet.liquid\": \"0de705bed685bf78fa3af4517c947b38d62a1aa56bf29356c0a201b64db17614\",\n \"snippets/ui-carousel.liquid\": \"59dc0c06b2a9f2f779ca22b3ff4b005071d4909aba052d6f8f0a1aa19e84c2ce\",\n \"assets/ui-carousel.css\": \"5317c251b3d3599ba330947fc9709ea50acfb858a5d7e08573b5d34ada2f3bf4\",\n \"snippets/ui-attachment.liquid\": \"6881df7cdb1b27462d8cce7c17c0b4ed4dd860d62535e1daa81378a57bb69ddf\",\n \"snippets/ui-marquee.liquid\": \"47d5df8f1ff46a2cd48a132986c2ba199c9e19b485e62fc3e0d19091d4baaab1\",\n \"assets/ui-marquee.css\": \"ef13b83f3dbcd6685fcee3dba14238386d0f34bc2266a5326c0b6f2d40a23fce\",\n \"snippets/ui-invalid-controls.liquid\": \"a169e8244cc86f5431f902f7a73b37188051ba8f2ef3e323830462dae5aed066\",\n \"snippets/ui-section.liquid\": \"da358cd87447457f3675b035b48556103d86cd11e0b2240ae2800e4c9ea54bdc\",\n \"assets/ui-section.css\": \"f4936a02aaf1927ccced898886857855e4b5e95fafe5c2a52748ecbbe87b6621\",\n \"snippets/ui-button-group.liquid\": \"a2790f8da0f8b37acc1ed558ba1548ea250a5b93e1b2dfbd11eb150f3f02783a\",\n \"snippets/ui-collapsible.liquid\": \"e6107a03d00b8cc75bb03206e64b9aa7f2989d982c0408b398b62067c6df450a\",\n \"snippets/ui-dropdown-menu.liquid\": \"25b31e09e3e7bfee9a397ca4de6e310754844c55e71639eadba917b0f4e6d2e5\",\n \"snippets/ui-popover.liquid\": \"44ff93d72eaad409f56f8a84ce25715e2c3633f2ac49ba7a414767c6dbe2ee47\",\n \"snippets/ui-hover-card.liquid\": \"ba4133d352fa14296743138c99f3694015bafe953751b8e42155f047c4beb9f0\",\n \"snippets/ui.liquid\": \"30679056b2eafefbaeef5ecd271604951676893a65a8eccb0f970c787a67b900\"\n }\n}\n", + "content": "{\n \"registry\": \"https://ui.full.dev/r/liquid/\",\n \"files\": {\n \"assets/ui-tokens.css\": \"55a8f2810ab4a1498ca3dd2f6e7dc89009c60e2402ddfcb95783b6eba996c374\",\n \"snippets/ui-base.liquid\": \"bc55195b5b6c82e63deeeed1255fd19b434c47866815f82b95b9202421256d34\",\n \"snippets/ui-init.liquid\": \"98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af\",\n \"assets/ui-licenses.json\": \"874a6f264f1503b2e577aee651e7285fd6ac808f56cadf8c7d58914bf2396f49\",\n \"assets/ui-carousel.js\": \"3337447a9e0051cebbc1726bca7c7966de1035819fb8e0b676383b85f1917632\",\n \"assets/ui-controls.js\": \"cf51f6d8b23c93e30d3355e993ff21a1aee79f38facfa413bed64e9815df255d\",\n \"assets/ui-lifecycle.js\": \"78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6\",\n \"assets/ui-start.js\": \"738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500\",\n \"assets/data-slot-core.js\": \"d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6\",\n \"assets/data-slot-dialog.js\": \"a5201f452700d04145b5156cc46880d2b5bdf7521b03ff9521c3f7693ee1b5d5\",\n \"assets/data-slot-command.js\": \"299d99c1a5f7b646692575e5d48e3f7b9209d76119508116c1a216dc80d33d13\",\n \"assets/data-slot-navigation-menu.js\": \"f9b42a9bceca8e1103718d43aa5f0d141ab63d38278cb121e790a2c80e827b68\",\n \"assets/data-slot-accordion.js\": \"fe6b0ac2c87a2e31582e5e88c509e0b508f41d0065d0a420407999ad210e6a27\",\n \"assets/data-slot-tabs.js\": \"1f187134bba755cfda9d35cf9f16174c1a183862d32d100f270f4177033058c7\",\n \"assets/data-slot-combobox.js\": \"b5f2ed9d65a43d836c59c0d4dc33c16ab12ef9fa05d510078b5d62517d854db6\",\n \"assets/data-slot-carousel.js\": \"d83ef938d3b62dc3652b123428ca2261e03fb2ba1133992b0f5545a974238d03\",\n \"assets/data-slot-alert-dialog.js\": \"1caee9a86bb2a816ea32bc1a48b82f3cc588ec3c563ebc443f836ab1dae2f618\",\n \"assets/data-slot-collapsible.js\": \"c42f76e3dfeff4570eb2f5104434fbffd3ef55710833e888965c590ce59f4f9f\",\n \"assets/data-slot-drawer.js\": \"c9343b26ea27193cc1d2da3e41bf452005bc2e534151fa1a762b2b6535de28d0\",\n \"assets/data-slot-dropdown-menu.js\": \"543c5717c9ba8363bbab4c0a11005980d75d4baaed79cf7123c7bcfe3ec8720b\",\n \"assets/data-slot-hover-card.js\": \"86e1bfa5d4822f180f3501ca7cc51bf044d4e917a7ebdb7a10b70006dba6467f\",\n \"assets/data-slot-popover.js\": \"526e30d663381329a7a6394eae886224024034d0abf96f888c932bb4b8c1b1cb\",\n \"assets/data-slot-radio-group.js\": \"7a9b90166de80d79ee42aa2df73e4d8179e9d291cb30b3095c7d8332375b0499\",\n \"assets/data-slot-select.js\": \"13d1a3fbe90f4b3b830d987b6a28267897faa3589bf00e64edca4938acbf406b\",\n \"assets/data-slot-slider.js\": \"0d10131aa95450aa1269234103ead8d805d6abdf9e0683510f4fcf58ab0f1efa\",\n \"assets/data-slot-switch.js\": \"0d5b09a89429880f61aeb540be5f87383ba5c6beb261ad468e9a6cf18e45b6a0\",\n \"assets/data-slot-toast.js\": \"817744d32eebe3bfc50df068715e0b572350ca53fe5ad0e04ec8646800e1caf0\",\n \"assets/data-slot-toggle.js\": \"7a651d578cb83be842c8e59fe1a2cd124594b1fd6c942faf0a33cf9e57326947\",\n \"assets/data-slot-toggle-group.js\": \"c1f2fc9712974e63e4e44c97ab2a1ec8bc3c3cb73c1afb4578b085fed11977f1\",\n \"assets/data-slot-tooltip.js\": \"5a9e51a54669153620eb3512e74487eac12ababe3331aff7dfed6c717b8b93c0\",\n \"snippets/ui-runtime.liquid\": \"62ae98f4ad16dc0ca406d96bbabb373cd30a63dd385e3614da0dcd2e63d0f17c\",\n \"assets/ui-motion.js\": \"2252a6794ddb162b73ee1640af212292b8c520e98ae09ea862b479078f81d3d1\",\n \"snippets/ui-banner.liquid\": \"9965b12e9a2036aca6e35f1327da8a240c894a6fd91d99f37e77107818d271a3\",\n \"snippets/ui-tabs.liquid\": \"5b57bb3d6400e44ef9343f7b45d9baf2d8581d678ccc64764be60164160687eb\",\n \"snippets/ui-form.liquid\": \"1c002d21c441e217a8f3d64268d429c97e4785af118eb7f7abb5ff1c3d10a3b6\",\n \"assets/ui-form.css\": \"ab0dd70553818fe0799e393f6811e949884eca9f44d9ceff4c2b333c0bf724b4\",\n \"snippets/ui-select.liquid\": \"2d8c99759161a024285d1b54c0ca166dc7b13c97596497351253e945b5e52ee2\",\n \"snippets/ui-field.liquid\": \"cf73aaaf3e27bc9d121dd089317610fbd08b9550a1d5fb0738337c6817879309\",\n \"assets/ui-field.css\": \"96f846a52ab0b832a9eca70ef430e5fd14664a3367d04842de320a82e622722b\",\n \"snippets/ui-item.liquid\": \"fe03c1a3e6df09192c3ac7a08520b0fc1c629a597a029d193ff91655cb7ceac0\",\n \"snippets/ui-spinner.liquid\": \"84d48693f10cb8af4549cc0d71cd847a85da0e111f2ad64dae309c128c2a8c4a\",\n \"snippets/ui-video.liquid\": \"14acea7c523198269a9165270decac21a43a5d69bf12bd248a76aceb2e9b26ed\",\n \"assets/ui-video.css\": \"c1572853f48474f6291a70ccdb1085512700fc3dcbbdaebd71374b838ec67fee\",\n \"snippets/ui-button.liquid\": \"d0b4ad1b574f10f986a7d5b2719a16c4ba29b80887962b9a8b6464afef6fe54c\",\n \"snippets/ui-toggle.liquid\": \"c86100cf7c163c0d5bc81976fd794788f68fab2ebc5c0887d8042958ce020912\",\n \"snippets/ui-logo.liquid\": \"5d6de7be3f7aab9e05c9533afef39ea0e9dce1b4ee12a13bf7b82780c973b126\",\n \"snippets/ui-kbd.liquid\": \"024f34ed2932d183671f7fa44ff724a70ec17b766cf7e0d3f565f46f33ab2cf2\",\n \"snippets/ui-rating.liquid\": \"aa57adc5a5508b368da78023b242694e6ce924b6e9e5407c141a5030a414bf1d\",\n \"assets/ui-rating.css\": \"e5efea2a9edaea78522f20ebd9e9d01abe8a2fcd310c193239adf80ec33b4975\",\n \"snippets/ui-tooltip.liquid\": \"d2863a0da3090c73dda10d8615b84fc50fab64373a466fbf4e4e743cfb083c96\",\n \"snippets/ui-avatar.liquid\": \"9bfb5d5f535857cc45f31afbc91c855e94972bab07ad3b4fe2dc0d241106385d\",\n \"snippets/ui-empty.liquid\": \"0e7fb5b68d50abcf7213304034762b4dd535c791dd6f4dc517100145e04b0cde\",\n \"snippets/ui-alert-dialog.liquid\": \"f739374035ffa0f3bca2c4b6d946710751c8268c8f1dde535251be9c2c7b0cd0\",\n \"snippets/ui-navigation-menu.liquid\": \"52aecbb36b0031810a85a99f5d4439e852dc1ba3a872b9525dd75c8df8b5a84e\",\n \"assets/ui-navigation-menu.css\": \"29a47ce0eb549e58cc8195dcb656bd2cef56360178c76acfc2d481a110463ca6\",\n \"snippets/ui-typography.liquid\": \"b03dc93c4de6636164a206c95979caa6fe9ab7cf8d1c24d75611416259da7979\",\n \"assets/ui-typography.css\": \"0daa86d256566ab8065411682cb8c90aa3b3eab6e62fbd8165dac1147e4edde9\",\n \"snippets/ui-toc.liquid\": \"04038e0870112b2335b80b4092814915105b31d08cdd36ecf1f4de1761f66acf\",\n \"snippets/ui-icon.liquid\": \"ca75a9485eb33cdb31a3a4e2e5ca03ce74d4995dbd1696d964832a87602bf3ca\",\n \"assets/ui-icon.css\": \"cfb1a47905cbd9c25b635c96926a77f8eed983a4aca62fdce758345dcc792add\",\n \"snippets/ui-combobox.liquid\": \"bacd605b44237512a74d34119d01432440b76ae60218dae6a6f37f98b32e3e00\",\n \"snippets/ui-toast.liquid\": \"bb032d90d6084fb15e12da22777635b80d09a06402513c46c89e853e3ede0405\",\n \"assets/ui-toast.css\": \"c322fab210a202fa434695025550495dbdc93e688ed7ae39303fea9830864d0b\",\n \"snippets/ui-header.liquid\": \"cc14effb4e3b6c4ac397e306e4ebd270a31b3415cc12ffbeb6cd38f411eaba80\",\n \"snippets/ui-command.liquid\": \"4a37f59dc0039fa1505de764472212d6cd7c4e5c52b737a1700e928db286f233\",\n \"snippets/ui-accordion.liquid\": \"4b58c83ae13e14e03a3129a2dccbd02eeafa90c1e48edbbf9af2dc412bf3aabf\",\n \"assets/ui-accordion.css\": \"430924440bd0f1d49ceb72baffc77404c9411c31c24b940d75861daba2649e83\",\n \"snippets/ui-slider.liquid\": \"f2de1fb9099de77bf291455447bc86b2578781e7cf0efdf12117fb4575e0b0e6\",\n \"snippets/ui-input.liquid\": \"d29e280ce1d08c7450902e69a73a0b7aa125f1cb662c50dbfc80a4a4fef0a85e\",\n \"snippets/ui-input-group.liquid\": \"b862a0c63e23dc7ae4ffe3a8e057a87f38fa8e6c8842ddf3c86b826de0283d70\",\n \"snippets/ui-triggers.liquid\": \"ba9c7b802fb0a2aba0e9cc145a9dd44134964afb53e5363cf9e0ae138b906cc9\",\n \"snippets/ui-toggle-group.liquid\": \"2d61e0b9bc746e05834157f5a75d23123f02bc2df737412e4f6099844afc4f49\",\n \"snippets/ui-dialog.liquid\": \"779bbcd609a69ed29a984df1f26f9ed80fd24d71c4ee3ead5f4daa055b28e9fb\",\n \"snippets/ui-drawer.liquid\": \"16120fdd70fac393470c3936223e78ad5f81164e2b7616fd075e8e82098a17d5\",\n \"snippets/ui-badge.liquid\": \"14b826127eaedd2f5acac0ca74fbe403ef18b08ca6651995c0bf0501210d55f6\",\n \"snippets/ui-alert.liquid\": \"392bf006b427178d4699272115317e0db934d881be9534b4638c492fa1825a83\",\n \"snippets/ui-table.liquid\": \"6599d8b3bd193761571c2b71e499f78546ba5c2768d4e0a0a60cd0e348632e5b\",\n \"snippets/ui-breadcrumb.liquid\": \"dafdeaf03286b386c90f8e72777de1946fba4718ee568bd85ca7bc768483a3ca\",\n \"snippets/ui-aspect-ratio.liquid\": \"c8aae05fcd76af7ae768aedafd7e758533e2b52135b00ff72940896ad793f177\",\n \"snippets/ui-price.liquid\": \"96156754aee3a04aa3ae7084a14470000213e8be14468c4937e9f3a87e348234\",\n \"assets/ui-price.css\": \"95c947e219621102b704164e48a83e381e6e2b27b99311a294e076745b39a36f\",\n \"snippets/ui-radio-group.liquid\": \"af9978e18716cc86d03ed21dece8304992e74a4fab88e12069b0648cfd944492\",\n \"snippets/ui-checkbox.liquid\": \"0e4dd1738b355c5a93533e0b813e2e6c72f7491c289d65aa7b6435be1c599006\",\n \"snippets/ui-switch.liquid\": \"84ed60c777e77daec8b5fe6f2ee434877d51224235dc1bc2e17927cd182fe646\",\n \"snippets/ui-skeleton.liquid\": \"1e30245f6577f73d28f4badbc293934656882a29d5dec1d2f74ef95f3bcede2c\",\n \"snippets/ui-separator.liquid\": \"90b1d2795666b6c51f35645ca8d07659f2c4868fe9553e233cddb4e962095f6e\",\n \"snippets/ui-card.liquid\": \"581a46843f1280ebace0423ee84289b40fbd46142e6a9ab3940f63eca0e4c5f2\",\n \"assets/ui-card.css\": \"ee7e4192ec814066d0c9838f810ae4ca267b9f071b7fa945c43226d46b0f8dc9\",\n \"snippets/ui-pagination.liquid\": \"30943c00686e1a23d92865465b38c964e059b14ae3a20fb7fe151824a73773eb\",\n \"snippets/ui-popup.liquid\": \"840f938aa2a331e4e7d55c659f25e841dcfb1bf5c5cadace6263243352ff8359\",\n \"snippets/ui-sheet.liquid\": \"0de705bed685bf78fa3af4517c947b38d62a1aa56bf29356c0a201b64db17614\",\n \"snippets/ui-carousel.liquid\": \"59dc0c06b2a9f2f779ca22b3ff4b005071d4909aba052d6f8f0a1aa19e84c2ce\",\n \"assets/ui-carousel.css\": \"5317c251b3d3599ba330947fc9709ea50acfb858a5d7e08573b5d34ada2f3bf4\",\n \"snippets/ui-attachment.liquid\": \"6881df7cdb1b27462d8cce7c17c0b4ed4dd860d62535e1daa81378a57bb69ddf\",\n \"snippets/ui-marquee.liquid\": \"47d5df8f1ff46a2cd48a132986c2ba199c9e19b485e62fc3e0d19091d4baaab1\",\n \"assets/ui-marquee.css\": \"ef13b83f3dbcd6685fcee3dba14238386d0f34bc2266a5326c0b6f2d40a23fce\",\n \"snippets/ui-invalid-controls.liquid\": \"a169e8244cc86f5431f902f7a73b37188051ba8f2ef3e323830462dae5aed066\",\n \"snippets/ui-section.liquid\": \"da358cd87447457f3675b035b48556103d86cd11e0b2240ae2800e4c9ea54bdc\",\n \"assets/ui-section.css\": \"f4936a02aaf1927ccced898886857855e4b5e95fafe5c2a52748ecbbe87b6621\",\n \"snippets/ui-button-group.liquid\": \"a2790f8da0f8b37acc1ed558ba1548ea250a5b93e1b2dfbd11eb150f3f02783a\",\n \"snippets/ui-collapsible.liquid\": \"e6107a03d00b8cc75bb03206e64b9aa7f2989d982c0408b398b62067c6df450a\",\n \"snippets/ui-dropdown-menu.liquid\": \"25b31e09e3e7bfee9a397ca4de6e310754844c55e71639eadba917b0f4e6d2e5\",\n \"snippets/ui-popover.liquid\": \"44ff93d72eaad409f56f8a84ce25715e2c3633f2ac49ba7a414767c6dbe2ee47\",\n \"snippets/ui-hover-card.liquid\": \"ba4133d352fa14296743138c99f3694015bafe953751b8e42155f047c4beb9f0\",\n \"snippets/ui.liquid\": \"30679056b2eafefbaeef5ecd271604951676893a65a8eccb0f970c787a67b900\"\n }\n}\n", "type": "registry:file", "target": "~/assets/ui-manifest.json" } diff --git a/public/r/liquid/init.json b/public/r/liquid/init.json index a9cf286fb..40634ec54 100644 --- a/public/r/liquid/init.json +++ b/public/r/liquid/init.json @@ -25,7 +25,7 @@ }, { "path": "assets/ui-licenses.json", - "content": "[\n {\n \"name\": \"Fulldev UI\",\n \"text\": \"MIT License\\n\\nCopyright (c) 2024 Fulldev, Sil Veltman\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy\\nof this software and associated documentation files (the \\\"Software\\\"), to deal\\nin the Software without restriction, including without limitation the rights\\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\ncopies of the Software, and to permit persons to whom the Software is\\nfurnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all\\ncopies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\nSOFTWARE.\"\n },\n {\n \"name\": \"shadcn/ui (derived Vega styles)\",\n \"text\": \"MIT License\\n\\nCopyright (c) 2023 shadcn\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy\\nof this software and associated documentation files (the \\\"Software\\\"), to deal\\nin the Software without restriction, including without limitation the rights\\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\ncopies of the Software, and to permit persons to whom the Software is\\nfurnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all\\ncopies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\nSOFTWARE.\"\n },\n {\n \"name\": \"data-slot 1.1.2\",\n \"text\": \"MIT License\\n\\nCopyright (c) 2026 Bejamas\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy\\nof this software and associated documentation files (the \\\"Software\\\"), to deal\\nin the Software without restriction, including without limitation the rights\\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\ncopies of the Software, and to permit persons to whom the Software is\\nfurnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all\\ncopies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\nSOFTWARE.\"\n }\n]\n", + "content": "[\n {\n \"name\": \"Fulldev UI\",\n \"text\": \"MIT License\\n\\nCopyright (c) 2024 Fulldev, Sil Veltman\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy\\nof this software and associated documentation files (the \\\"Software\\\"), to deal\\nin the Software without restriction, including without limitation the rights\\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\ncopies of the Software, and to permit persons to whom the Software is\\nfurnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all\\ncopies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\nSOFTWARE.\"\n },\n {\n \"name\": \"shadcn/ui (derived Vega styles)\",\n \"text\": \"MIT License\\n\\nCopyright (c) 2023 shadcn\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy\\nof this software and associated documentation files (the \\\"Software\\\"), to deal\\nin the Software without restriction, including without limitation the rights\\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\ncopies of the Software, and to permit persons to whom the Software is\\nfurnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all\\ncopies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\nSOFTWARE.\"\n },\n {\n \"name\": \"data-slot 1.1.3\",\n \"text\": \"MIT License\\n\\nCopyright (c) 2026 Bejamas\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy\\nof this software and associated documentation files (the \\\"Software\\\"), to deal\\nin the Software without restriction, including without limitation the rights\\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\ncopies of the Software, and to permit persons to whom the Software is\\nfurnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all\\ncopies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\nSOFTWARE.\"\n }\n]\n", "type": "registry:file", "target": "~/assets/ui-licenses.json" } diff --git a/public/r/liquid/runtime.json b/public/r/liquid/runtime.json index c35b73379..fb3213799 100644 --- a/public/r/liquid/runtime.json +++ b/public/r/liquid/runtime.json @@ -45,7 +45,7 @@ }, { "path": "assets/data-slot-command.js", - "content": "import{clearRootBinding as e,emit as t,ensureId as n,ensureItemVisibleInContainer as r,getDataBool as i,getDataString as a,getOwnedElements as o,getPart as s,getRoots as c,hasRootBinding as l,on as u,onRoot as d,reuseRootBinding as ee,setAria as f,setRootBinding as te}from\"@data-slot/core\";const p=.1,m=.999,h=/[\\\\/_+.#\"@\\[\\(\\{&]/,g=/[\\\\/_+.#\"@\\[\\(\\{&]/g,_=/[\\s-]/,v=/[\\s-]/g;function y(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?1:.99;let s=`${i},${a}`,c=o[s];if(c!==void 0)return c;let l=r.charAt(a),u=n.indexOf(l,i),d=0;for(;u>=0;){let s=y(e,t,n,r,u+1,a+1,o);if(s>d){if(u===i)s*=1;else if(h.test(e.charAt(u-1))){s*=.8;let t=e.slice(i,u-1).match(g);t&&i>0&&(s*=m**+t.length)}else if(_.test(e.charAt(u-1))){s*=.9;let t=e.slice(i,u-1).match(v);t&&i>0&&(s*=m**+t.length)}else s*=.17,i>0&&(s*=m**+(u-i));e.charAt(u)!==t.charAt(a)&&(s*=.9999)}if(ss&&(s=i*p)}s>d&&(d=s),u=n.indexOf(l,u+1)}return o[s]=d,d}function b(e){return e.toLowerCase().replace(v,` `)}function ne(e,t,n=[]){let r=n.length>0?`${e} ${n.join(` `)}`:e;return y(r,t,b(r),b(t),0,0,{})}const x=Symbol(`data-slot.command.authored-value`),S=Symbol(`data-slot.command.inferred-value`),C=e=>e==null?null:e.trim(),re=e=>e?e.split(/[,\\n]/).map(e=>e.trim()).filter(Boolean):[],ie=(e,t)=>Array.from(e.children).filter(e=>e instanceof HTMLElement&&e.getAttribute(`data-slot`)===t),ae=e=>{let t=e=>e.nodeType===Node.TEXT_NODE?e.textContent??``:!(e instanceof HTMLElement)||e.getAttribute(`data-slot`)===`command-shortcut`?``:Array.from(e.childNodes,t).join(``);return t(e).replace(/\\s+/g,` `).trim()},oe=e=>e.hasAttribute(`disabled`)||e.hasAttribute(`data-disabled`)||e.getAttribute(`aria-disabled`)===`true`,se=(e,t)=>{let n=e,r=e.hasAttribute(`data-value`);if(n[x]===void 0&&(n[x]=r),r?n[x]||(n[x]=C(e.getAttribute(`data-value`))!==n[S]):n[x]=!1,n[x])return{authored:!0,value:C(e.getAttribute(`data-value`))};let i=t();return n[S]=i,i===null?e.removeAttribute(`data-value`):e.setAttribute(`data-value`,i),{authored:!1,value:i}},w=`@data-slot/command`,T=`[data-slot=\"command-item\"]`,E=`[data-slot=\"command-group\"]`,ce=`[data-slot=\"command-separator\"]`,le=[`input:not([type=\"hidden\"])`,`textarea`,`select`,`button`,`a[href]`,`summary`,`audio[controls]`,`video[controls]`,`[contenteditable=\"\"]`,`[contenteditable=\"true\"]`,`[contenteditable=\"plaintext-only\"]`,`[tabindex]:not([tabindex=\"-1\"])`].join(`, `),ue=(e,t,n)=>t.trim()?ne(e,t,n??[]):1,de=(e,t)=>{let n=e;for(;n&&n.parentElement&&n.parentElement!==t;)n=n.parentElement;return n?.parentElement===t?n:null},D=e=>Array.from(e.children).filter(e=>e instanceof HTMLElement);function O(c,l={}){let p=ee(c,w,`[@data-slot/command] createCommand() called more than once for the same root. Returning the existing controller. Destroy it before rebinding with new options.`);if(p)return p;let m=c,h=s(c,`command-input`),g=s(c,`command-list`);if(!h||!g)throw Error(`Command requires command-input and command-list slots`);let _=o(c,g,`[data-slot=\"command-empty\"]`)[0]??null,v=l.label??a(m,`label`)??`Command Menu`,y=l.shouldFilter??i(m,`shouldFilter`)??!0,b=l.loop??i(m,`loop`)??!1,ne=l.disablePointerSelection??i(m,`disablePointerSelection`)??!1,x=l.vimBindings??i(m,`vimBindings`)??!0,S=l.filter??ue,O=l.onValueChange,fe=l.onSearchChange,pe=l.onSelect,k=C(l.defaultValue??a(m,`defaultValue`)),A=l.defaultSearch??a(m,`defaultSearch`)??``,j=[],M=[],N=[],P=new Map,F=new Map,I=0,L=[],R=null,z=null,B=!1,V=!1,me=!1,H=[],U=new Map,W=!1,he=n(h,`command-input`),ge=n(g,`command-list`);m.hasAttribute(`tabindex`)||(m.tabIndex=-1,me=!0),h.setAttribute(`role`,`combobox`),h.setAttribute(`aria-autocomplete`,`list`),h.setAttribute(`aria-expanded`,`true`),h.setAttribute(`aria-controls`,ge),h.setAttribute(`autocomplete`,`off`),h.setAttribute(`autocorrect`,`off`),h.spellcheck=!1,g.setAttribute(`role`,`listbox`),g.tabIndex=-1;let _e=document.querySelector(`label[for=\"${CSS.escape(he)}\"]`);if(_e){let e=n(_e,`command-label`),t=h.getAttribute(`aria-labelledby`);h.setAttribute(`aria-labelledby`,t?`${t} ${e}`:e),g.setAttribute(`aria-labelledby`,e)}else !h.hasAttribute(`aria-label`)&&!h.hasAttribute(`aria-labelledby`)&&(h.setAttribute(`aria-label`,v),g.setAttribute(`aria-label`,`Suggestions`));let ve=()=>{document.activeElement!==h&&h.focus({preventScroll:!0})},ye=e=>{if(!(e instanceof HTMLElement)||!m.contains(e))return null;let t=e.closest(le);return t instanceof HTMLElement&&m.contains(t)?t:null},be=e=>{R?.disconnect();try{return e()}finally{He()}},xe=()=>{g.style.setProperty(`--command-list-height`,`${g.scrollHeight.toFixed(1)}px`)},Se=(e,t)=>{let n=e.filter(e=>t.includes(e));for(let e of t){if(n.includes(e))continue;let r=t.indexOf(e),i=!1;for(let a=r-1;a>=0;--a){let r=t[a];if(!r)continue;let o=n.indexOf(r);if(o!==-1){n.splice(o+1,0,e),i=!0;break}}if(!i){for(let a=r+1;a{H=D(g),U=new Map(M.map(e=>[e.el,D(e.el)]))},we=()=>{H=Se(H,D(g)),U=new Map(M.map(e=>[e.el,Se(U.get(e.el)??[],D(e.el))]))},G=(e,t)=>{let n=new Set(t.filter(t=>t.parentElement===e)),r=e.firstElementChild;for(let t of[...n,...D(e).filter(e=>!n.has(e))])t===r?r=r.nextElementSibling:e.insertBefore(t,r)},Te=e=>new Map(e.map((e,t)=>[e,t])),Ee=()=>{for(let e of M)G(e.el,U.get(e.el)??[]);G(g,H)},K=()=>k===null?null:j.find(e=>e.value===k&&!e.el.hidden&&!(e.group?.el.hidden??!1))?.el??null,De=()=>{for(let e of j){let t=e.value===k&&k!==null;e.el.hasAttribute(`data-selected`)!==t&&(f(e.el,`selected`,t),t?e.el.setAttribute(`data-selected`,`true`):e.el.removeAttribute(`data-selected`))}let e=K();e?(h.setAttribute(`aria-activedescendant`,e.id),g.setAttribute(`aria-activedescendant`,e.id)):(h.removeAttribute(`aria-activedescendant`),g.removeAttribute(`aria-activedescendant`))},Oe=()=>{k===null?m.removeAttribute(`data-value`):m.setAttribute(`data-value`,k),A?m.setAttribute(`data-search`,A):m.removeAttribute(`data-search`)},ke=()=>[...g.querySelectorAll(T)].map(e=>P.get(e)??null).filter(e=>e!==null&&!e.el.hidden&&!(e.group?.el.hidden??!1)),q=()=>ke().filter(e=>!e.disabled),Ae=(e,n,r)=>{!r||e===n||(t(m,`command:change`,{value:n}),O?.(n))},je=()=>{let e=K();e&&r(e,g)},J=(e,t={})=>{let n=C(e),r=k,i=t.emit??!0,a=t.ensureVisible??!1;return k=n,De(),Oe(),a&&je(),(document.activeElement===h||document.activeElement===m)&&ve(),Ae(r,k,i),r!==k},Me=()=>{j=[],M=[],P=new Map,F=new Map;for(let e of o(m,g,E)){let t=ie(e,`command-group-heading`)[0]??null,r={el:e,heading:t,value:se(e,()=>C(t?.textContent)??n(e,`command-group`)).value??n(e,`command-group`),forceMount:i(e,`forceMount`)??!1,maxRank:0};if(F.set(e,r),M.push(r),e.setAttribute(`role`,`group`),t){let r=n(t,`command-group-heading`);e.setAttribute(`aria-labelledby`,r)}else e.removeAttribute(`aria-labelledby`)}for(let e of o(m,g,T)){let t=e.closest(E),r=t instanceof HTMLElement&&t.closest(`[data-slot=\"command\"]`)===m?F.get(t)??null:null,a={el:e,value:se(e,()=>C(e.getAttribute(`data-label`))??C(ae(e))).value,keywords:re(e.getAttribute(`data-keywords`)??void 0),disabled:oe(e),forceMount:i(e,`forceMount`)??!1,rank:0,group:r};P.set(e,a),j.push(a),n(e,`command-item`),e.setAttribute(`role`,`option`),f(e,`selected`,!1),f(e,`disabled`,a.disabled||null),e.removeAttribute(`data-selected`)}N=o(m,g,ce);for(let e of N)e.setAttribute(`role`,`separator`)},Ne=()=>{let e=A.length>0,t=y&&e;I=0;for(let e of M)e.maxRank=0;for(let e of j)e.rank=t&&e.value!==null?S(e.value,A,e.keywords):1,e.rank>0&&(I+=1),e.el.hidden=!(e.forceMount||e.group?.forceMount||e.rank>0),e.group&&e.rank>e.group.maxRank&&(e.group.maxRank=e.rank);for(let e of M)e.el.hidden=t&&!e.forceMount&&e.maxRank<=0;for(let t of N)t.hidden=e&&!(i(t,`alwaysRender`)??!1);_&&(_.hidden=I>0)},Pe=()=>{if(!y||!A)return;let e=H.filter(e=>e.parentElement===g),t=Te(e),n=new Map,r=new Map;for(let e of j){if(e.group!==null)continue;let t=de(e.el,g);t&&(n.set(t,Math.max(n.get(t)??0,e.rank)),e.el.hidden||r.set(t,Math.max(r.get(t)??0,e.rank)))}let i=new Set([...n.keys(),...M.map(e=>e.el)]),a=[...Array.from(r,([e,t])=>({el:e,rank:t})),...M.filter(e=>!e.el.hidden).map(e=>({el:e.el,rank:e.maxRank}))].sort((e,n)=>n.rank===e.rank?(t.get(e.el)??2**53-1)-(t.get(n.el)??2**53-1):n.rank-e.rank),o=new Set(a.map(e=>e.el)),s=D(g).filter(e=>i.has(e)&&!o.has(e)),c=[...a.map(e=>e.el),...s],l=0;G(g,e.map(e=>i.has(e)?c[l++]??e:e));for(let e of M){let t=U.get(e.el)?.filter(t=>t.parentElement===e.el)??[],n=Te(t),r=new Set,i=new Map;for(let t of j){if(t.group!==e)continue;let n=de(t.el,e.el);n&&(r.add(n),t.el.hidden||i.set(n,Math.max(i.get(n)??0,t.rank)))}let a=Array.from(i,([e,t])=>({el:e,rank:t})).sort((e,t)=>t.rank===e.rank?(n.get(e.el)??2**53-1)-(n.get(t.el)??2**53-1):t.rank-e.rank),o=new Set(a.map(e=>e.el)),s=D(e.el).filter(e=>r.has(e)&&!o.has(e)),c=[...a.map(e=>e.el),...s],l=0,u=t.map(e=>r.has(e)?c[l++]??e:e);G(e.el,u)}},Fe=()=>{be(()=>{y&&A?(Ne(),Pe(),W=!0):(W&&Ee(),Ne(),W=!1),De(),Oe()}),z||xe()},Y=()=>{if(be(Me),W?we():Ce(),Fe(),!(typeof ResizeObserver>`u`)){z??=new ResizeObserver(xe),z.disconnect();for(let e of[g,...o(m,g,`${T}, ${E}, ${ce}, [data-slot=\"command-empty\"]`)])z.observe(e)}},Ie=(e=!0,t=!1)=>{J(q()[0]?.value??null,{emit:e,ensureVisible:t})},X=(e,n=!0,r=!0)=>{A!==e&&(A=e,h.value=e,Fe(),r&&Ie(n,!0),n&&(t(m,`command:search-change`,{search:A}),fe?.(A)))},Le=e=>{e.value===null||e.disabled||(J(e.value,{emit:!0}),t(m,`command:select`,{value:e.value}),pe?.(e.value))},Re=e=>{let t=P.get(e)??null;return t||(Y(),t=P.get(e)??null,t)},Z=e=>{let t=q()[e];t&&J(t.value,{emit:!0,ensureVisible:!0})},Q=e=>{let t=q();if(t.length===0)return;let n=t.findIndex(e=>e.value===k),r=t[n+e];b&&(r=n+e<0?t[t.length-1]:n+e===t.length?t[0]:t[n+e]),r&&J(r.value,{emit:!0,ensureVisible:!0})},ze=e=>{let t=K()?.closest(E);for(;t;){let n=e>0?t.nextElementSibling:t.previousElementSibling,r=null;for(;n;){if(n instanceof HTMLElement&&n.getAttribute(`data-slot`)===`command-group`&&!n.hidden){r=n;break}n=e>0?n.nextElementSibling:n.previousElementSibling}if(!r)break;let i=[...r.querySelectorAll(T)].map(e=>P.get(e)??null).find(e=>e!==null&&!e.disabled&&!e.el.hidden);if(i){J(i.value,{emit:!0,ensureVisible:!0});return}t=r}Q(e)},Be=e=>{if(e.defaultPrevented)return;let t=ye(e.target);if(t&&t!==h)return;let n=e.key.toLowerCase();if(e.isComposing||e.keyCode===229)return;let r=()=>{e.preventDefault(),e.metaKey?Z(q().length-1):e.altKey?ze(1):Q(1)},i=()=>{e.preventDefault(),e.metaKey?Z(0):e.altKey?ze(-1):Q(-1)};switch(n){case`arrowdown`:r();break;case`arrowup`:i();break;case`home`:e.preventDefault(),Z(0);break;case`end`:e.preventDefault(),Z(q().length-1);break;case`enter`:{let t=K(),n=t?P.get(t):null;if(!n||n.value===null)return;e.preventDefault(),Le(n);break}case`j`:case`n`:x&&e.ctrlKey&&r();break;case`k`:case`p`:x&&e.ctrlKey&&i();break}},Ve=()=>{B||V||(B=!0,queueMicrotask(()=>{if(B=!1,V)return;let e=K();Y();let t=e?P.get(e)??null:null;if(t&&t.value!==null&&!t.disabled&&!t.el.hidden&&!(t.group?.el.hidden??!1)){J(t.value,{emit:!0});return}if(k!==null){let e=q().find(e=>e.value===k)??null;if(e){J(e.value,{emit:!0});return}}J(q()[0]?.value??null,{emit:!0})}))},He=()=>{R&&R.observe(g,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:[`data-slot`,`data-value`,`data-label`,`data-keywords`,`data-disabled`,`disabled`,`aria-disabled`,`data-force-mount`,`data-always-render`]})};typeof MutationObserver<`u`&&(R=new MutationObserver(()=>{Ve()}),He()),h.value=A,Y(),(A||k===null)&&Ie(!1),L.push(u(h,`input`,()=>{X(h.value,!0,!0)})),L.push(u(m,`keydown`,e=>{Be(e)})),L.push(u(g,`pointermove`,e=>{if(ne)return;let t=e.target,n=t instanceof HTMLElement?t.closest(T):null;if(!(n instanceof HTMLElement))return;let r=Re(n);!r||r.disabled||n.hidden||r.group?.el.hidden||J(r.value,{emit:!0})})),L.push(u(g,`click`,e=>{let t=e.target,n=ye(t),r=t instanceof HTMLElement?t.closest(T):null;if(n&&n!==r||!(r instanceof HTMLElement))return;let i=Re(r);!i||i.disabled||i.value===null||r.hidden||i.group?.el.hidden||Le(i)})),L.push(d(m,`command:set`,e=>{let t=e.detail;t&&(t.search!==void 0&&X(String(t.search),!0,t.value===void 0),t.value!==void 0&&J(t.value,{emit:!0,ensureVisible:!0}))}));let $={get value(){return k},get search(){return A},select(e){J(e,{emit:!0,ensureVisible:!0})},setSearch(e){X(e,!0,!0)},destroy(){V=!0,R?.disconnect(),z?.disconnect(),L.forEach(e=>e()),L=[],me&&m.removeAttribute(`tabindex`),e(m,w,$)}};return te(m,w,$),$}function fe(e=document){let t=[];for(let n of c(e,`command`))l(n,w)||t.push(O(n));return t}export{fe as create,O as createCommand};", + "content": "import{clearRootBinding as e,emit as t,ensureId as n,ensureItemVisibleInContainer as r,getDataBool as i,getDataString as a,getOwnedElements as o,getPart as s,getRoots as c,hasRootBinding as l,on as u,onRoot as d,reuseRootBinding as ee,setAria as f,setRootBinding as te}from\"@data-slot/core\";const p=.1,m=.999,h=/[\\\\/_+.#\"@\\[\\(\\{&]/,g=/[\\\\/_+.#\"@\\[\\(\\{&]/g,_=/[\\s-]/,v=/[\\s-]/g;function y(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?1:.99;let s=`${i},${a}`,c=o[s];if(c!==void 0)return c;let l=r.charAt(a),u=n.indexOf(l,i),d=0;for(;u>=0;){let s=y(e,t,n,r,u+1,a+1,o);if(s>d){if(u===i)s*=1;else if(h.test(e.charAt(u-1))){s*=.8;let t=e.slice(i,u-1).match(g);t&&i>0&&(s*=m**+t.length)}else if(_.test(e.charAt(u-1))){s*=.9;let t=e.slice(i,u-1).match(v);t&&i>0&&(s*=m**+t.length)}else s*=.17,i>0&&(s*=m**+(u-i));e.charAt(u)!==t.charAt(a)&&(s*=.9999)}if(ss&&(s=i*p)}s>d&&(d=s),u=n.indexOf(l,u+1)}return o[s]=d,d}function b(e){return e.toLowerCase().replace(v,` `)}function ne(e,t,n=[]){let r=n.length>0?`${e} ${n.join(` `)}`:e;return y(r,t,b(r),b(t),0,0,{})}const x=Symbol(`data-slot.command.authored-value`),S=Symbol(`data-slot.command.inferred-value`),C=e=>e==null?null:e.trim(),re=e=>e?e.split(/[,\\n]/).map(e=>e.trim()).filter(Boolean):[],ie=(e,t)=>Array.from(e.children).filter(e=>e instanceof HTMLElement&&e.getAttribute(`data-slot`)===t),ae=e=>{let t=e=>e.nodeType===Node.TEXT_NODE?e.textContent??``:!(e instanceof HTMLElement)||e.getAttribute(`data-slot`)===`command-shortcut`?``:Array.from(e.childNodes,t).join(``);return t(e).replace(/\\s+/g,` `).trim()},oe=e=>e.hasAttribute(`disabled`)||e.hasAttribute(`data-disabled`)||e.getAttribute(`aria-disabled`)===`true`,se=(e,t)=>{let n=e,r=e.hasAttribute(`data-value`);if(n[x]===void 0&&(n[x]=r),r?n[x]||(n[x]=C(e.getAttribute(`data-value`))!==n[S]):n[x]=!1,n[x])return{authored:!0,value:C(e.getAttribute(`data-value`))};let i=t();return n[S]=i,i===null?e.removeAttribute(`data-value`):e.setAttribute(`data-value`,i),{authored:!1,value:i}},w=`@data-slot/command`,T=`[data-slot=\"command-item\"]`,E=`[data-slot=\"command-group\"]`,ce=`[data-slot=\"command-separator\"]`,le=[`input:not([type=\"hidden\"])`,`textarea`,`select`,`button`,`a[href]`,`summary`,`audio[controls]`,`video[controls]`,`[contenteditable=\"\"]`,`[contenteditable=\"true\"]`,`[contenteditable=\"plaintext-only\"]`,`[tabindex]:not([tabindex=\"-1\"])`].join(`, `),ue=(e,t,n)=>t.trim()?ne(e,t,n??[]):1,de=(e,t)=>{let n=e;for(;n&&n.parentElement&&n.parentElement!==t;)n=n.parentElement;return n?.parentElement===t?n:null},D=e=>Array.from(e.children).filter(e=>e instanceof HTMLElement);function O(c,l={}){let p=ee(c,w,`[@data-slot/command] createCommand() called more than once for the same root. Returning the existing controller. Destroy it before rebinding with new options.`);if(p)return p;let m=c,h=s(c,`command-input`),g=s(c,`command-list`);if(!h||!g)throw Error(`Command requires command-input and command-list slots`);let _=o(c,g,`[data-slot=\"command-empty\"]`)[0]??null,v=l.label??a(m,`label`)??`Command Menu`,y=l.shouldFilter??i(m,`shouldFilter`)??!0,b=l.loop??i(m,`loop`)??!1,ne=l.disablePointerSelection??i(m,`disablePointerSelection`)??!1,x=l.vimBindings??i(m,`vimBindings`)??!0,S=l.filter??ue,O=l.onValueChange,fe=l.onSearchChange,pe=l.onSelect,k=C(l.defaultValue??a(m,`defaultValue`)),A=l.defaultSearch??a(m,`defaultSearch`)??``,j=[],M=[],N=[],P=new Map,F=new Map,I=0,L=[],R=null,z=null,B=!1,V=!1,me=!1,H=[],U=new Map,W=!1,he=n(h,`command-input`),ge=n(g,`command-list`);m.hasAttribute(`tabindex`)||(m.tabIndex=-1,me=!0),h.setAttribute(`role`,`combobox`),h.setAttribute(`aria-autocomplete`,`list`),h.setAttribute(`aria-expanded`,`true`),h.setAttribute(`aria-controls`,ge),h.setAttribute(`autocomplete`,`off`),h.setAttribute(`autocorrect`,`off`),h.spellcheck=!1,g.setAttribute(`role`,`listbox`),g.tabIndex=-1;let _e=document.querySelector(`label[for=\"${CSS.escape(he)}\"]`);if(_e){let e=n(_e,`command-label`),t=h.getAttribute(`aria-labelledby`);h.setAttribute(`aria-labelledby`,t?`${t} ${e}`:e),g.setAttribute(`aria-labelledby`,e)}else !h.hasAttribute(`aria-label`)&&!h.hasAttribute(`aria-labelledby`)&&(h.setAttribute(`aria-label`,v),g.setAttribute(`aria-label`,`Suggestions`));let ve=()=>{document.activeElement!==h&&h.focus({preventScroll:!0})},ye=e=>{if(!(e instanceof HTMLElement)||!m.contains(e))return null;let t=e.closest(le);return t instanceof HTMLElement&&m.contains(t)?t:null},be=e=>{R?.disconnect();try{return e()}finally{He()}},xe=()=>{g.style.setProperty(`--command-list-height`,`${g.scrollHeight.toFixed(1)}px`)},Se=(e,t)=>{let n=e.filter(e=>t.includes(e));for(let e of t){if(n.includes(e))continue;let r=t.indexOf(e),i=!1;for(let a=r-1;a>=0;--a){let r=t[a];if(!r)continue;let o=n.indexOf(r);if(o!==-1){n.splice(o+1,0,e),i=!0;break}}if(!i){for(let a=r+1;a{H=D(g),U=new Map(M.map(e=>[e.el,D(e.el)]))},we=()=>{H=Se(H,D(g)),U=new Map(M.map(e=>[e.el,Se(U.get(e.el)??[],D(e.el))]))},G=(e,t)=>{let n=new Set(t.filter(t=>t.parentElement===e)),r=e.firstElementChild;for(let t of[...n,...D(e).filter(e=>!n.has(e))])t===r?r=r.nextElementSibling:e.insertBefore(t,r)},Te=e=>new Map(e.map((e,t)=>[e,t])),Ee=()=>{for(let e of M)G(e.el,U.get(e.el)??[]);G(g,H)},K=()=>k===null?null:j.find(e=>e.value===k&&!e.el.hidden&&!(e.group?.el.hidden??!1))?.el??null,De=()=>{for(let e of j){let t=e.value===k&&k!==null;e.el.hasAttribute(`data-selected`)!==t&&(f(e.el,`selected`,t),t?e.el.setAttribute(`data-selected`,`true`):e.el.removeAttribute(`data-selected`))}let e=K();e?(h.setAttribute(`aria-activedescendant`,e.id),g.setAttribute(`aria-activedescendant`,e.id)):(h.removeAttribute(`aria-activedescendant`),g.removeAttribute(`aria-activedescendant`))},Oe=()=>{k===null?m.removeAttribute(`data-value`):m.setAttribute(`data-value`,k),A?m.setAttribute(`data-search`,A):m.removeAttribute(`data-search`)},ke=()=>[...g.querySelectorAll(T)].map(e=>P.get(e)??null).filter(e=>e!==null&&!e.el.hidden&&!(e.group?.el.hidden??!1)),q=()=>ke().filter(e=>!e.disabled),Ae=(e,n,r)=>{!r||e===n||(t(m,`command:change`,{value:n}),O?.(n))},je=()=>{let e=K();e&&r(e,g)},J=(e,t={})=>{let n=C(e),r=k,i=t.emit??!0,a=t.ensureVisible??!1;return k=n,De(),Oe(),a&&je(),(document.activeElement===h||document.activeElement===m)&&ve(),Ae(r,k,i),r!==k},Me=()=>{j=[],M=[],P=new Map,F=new Map;for(let e of o(m,g,E)){let t=ie(e,`command-group-heading`)[0]??null,r={el:e,heading:t,value:se(e,()=>C(t?.textContent)??n(e,`command-group`)).value??n(e,`command-group`),forceMount:i(e,`forceMount`)??!1,maxRank:0};if(F.set(e,r),M.push(r),e.setAttribute(`role`,`group`),t){let r=n(t,`command-group-heading`);e.setAttribute(`aria-labelledby`,r)}else e.removeAttribute(`aria-labelledby`)}for(let e of o(m,g,T)){let t=e.closest(E),r=t instanceof HTMLElement&&t.closest(`[data-slot=\"command\"]`)===m?F.get(t)??null:null,a={el:e,value:se(e,()=>C(e.getAttribute(`data-label`))??C(ae(e))).value,keywords:re(e.getAttribute(`data-keywords`)??void 0),disabled:oe(e),forceMount:i(e,`forceMount`)??!1,rank:0,group:r};P.set(e,a),j.push(a),n(e,`command-item`),e.setAttribute(`role`,`option`),f(e,`selected`,!1),f(e,`disabled`,a.disabled||null),e.removeAttribute(`data-selected`)}N=o(m,g,ce);for(let e of N)e.setAttribute(`role`,`separator`)},Ne=()=>{let e=A.length>0,t=y&&e;I=0;for(let e of M)e.maxRank=0;for(let e of j)e.rank=t&&e.value!==null?S(e.value,A,e.keywords):1,e.rank>0&&(I+=1),e.el.hidden=!(e.forceMount||e.group?.forceMount||e.rank>0),e.group&&e.rank>e.group.maxRank&&(e.group.maxRank=e.rank);for(let e of M)e.el.hidden=t&&!e.forceMount&&e.maxRank<=0;for(let t of N)t.hidden=e&&!(i(t,`alwaysRender`)??!1);_&&(_.hidden=I>0)},Pe=()=>{if(!y||!A)return;let e=H.filter(e=>e.parentElement===g),t=Te(e),n=new Map,r=new Map;for(let e of j){if(e.group!==null)continue;let t=de(e.el,g);t&&(n.set(t,Math.max(n.get(t)??0,e.rank)),e.el.hidden||r.set(t,Math.max(r.get(t)??0,e.rank)))}let i=new Set([...n.keys(),...M.map(e=>e.el)]),a=[...Array.from(r,([e,t])=>({el:e,rank:t})),...M.filter(e=>!e.el.hidden).map(e=>({el:e.el,rank:e.maxRank}))].sort((e,n)=>n.rank===e.rank?(t.get(e.el)??2**53-1)-(t.get(n.el)??2**53-1):n.rank-e.rank),o=new Set(a.map(e=>e.el)),s=D(g).filter(e=>i.has(e)&&!o.has(e)),c=[...a.map(e=>e.el),...s],l=0;G(g,e.map(e=>i.has(e)?c[l++]??e:e));for(let e of M){let t=U.get(e.el)?.filter(t=>t.parentElement===e.el)??[],n=Te(t),r=new Set,i=new Map;for(let t of j){if(t.group!==e)continue;let n=de(t.el,e.el);n&&(r.add(n),t.el.hidden||i.set(n,Math.max(i.get(n)??0,t.rank)))}let a=Array.from(i,([e,t])=>({el:e,rank:t})).sort((e,t)=>t.rank===e.rank?(n.get(e.el)??2**53-1)-(n.get(t.el)??2**53-1):t.rank-e.rank),o=new Set(a.map(e=>e.el)),s=D(e.el).filter(e=>r.has(e)&&!o.has(e)),c=[...a.map(e=>e.el),...s],l=0,u=t.map(e=>r.has(e)?c[l++]??e:e);G(e.el,u)}},Fe=()=>{be(()=>{y&&A?(Ne(),Pe(),W=!0):(W&&Ee(),Ne(),W=!1),De(),Oe()}),typeof ResizeObserver>`u`&&xe()},Y=()=>{if(be(Me),W?we():Ce(),Fe(),!(typeof ResizeObserver>`u`)){z??=new ResizeObserver(xe),z.disconnect();for(let e of[g,...o(m,g,`${T}, ${E}, ${ce}, [data-slot=\"command-empty\"]`)])z.observe(e)}},Ie=(e=!0,t=!1)=>{J(q()[0]?.value??null,{emit:e,ensureVisible:t})},X=(e,n=!0,r=!0)=>{A!==e&&(A=e,h.value=e,Fe(),r&&Ie(n,!0),n&&(t(m,`command:search-change`,{search:A}),fe?.(A)))},Le=e=>{e.value===null||e.disabled||(J(e.value,{emit:!0}),t(m,`command:select`,{value:e.value}),pe?.(e.value))},Re=e=>{let t=P.get(e)??null;return t||(Y(),t=P.get(e)??null,t)},Z=e=>{let t=q()[e];t&&J(t.value,{emit:!0,ensureVisible:!0})},Q=e=>{let t=q();if(t.length===0)return;let n=t.findIndex(e=>e.value===k),r=t[n+e];b&&(r=n+e<0?t[t.length-1]:n+e===t.length?t[0]:t[n+e]),r&&J(r.value,{emit:!0,ensureVisible:!0})},ze=e=>{let t=K()?.closest(E);for(;t;){let n=e>0?t.nextElementSibling:t.previousElementSibling,r=null;for(;n;){if(n instanceof HTMLElement&&n.getAttribute(`data-slot`)===`command-group`&&!n.hidden){r=n;break}n=e>0?n.nextElementSibling:n.previousElementSibling}if(!r)break;let i=[...r.querySelectorAll(T)].map(e=>P.get(e)??null).find(e=>e!==null&&!e.disabled&&!e.el.hidden);if(i){J(i.value,{emit:!0,ensureVisible:!0});return}t=r}Q(e)},Be=e=>{if(e.defaultPrevented)return;let t=ye(e.target);if(t&&t!==h)return;let n=e.key.toLowerCase();if(e.isComposing||e.keyCode===229)return;let r=()=>{e.preventDefault(),e.metaKey?Z(q().length-1):e.altKey?ze(1):Q(1)},i=()=>{e.preventDefault(),e.metaKey?Z(0):e.altKey?ze(-1):Q(-1)};switch(n){case`arrowdown`:r();break;case`arrowup`:i();break;case`home`:e.preventDefault(),Z(0);break;case`end`:e.preventDefault(),Z(q().length-1);break;case`enter`:{let t=K(),n=t?P.get(t):null;if(!n||n.value===null)return;e.preventDefault(),Le(n);break}case`j`:case`n`:x&&e.ctrlKey&&r();break;case`k`:case`p`:x&&e.ctrlKey&&i();break}},Ve=()=>{B||V||(B=!0,queueMicrotask(()=>{if(B=!1,V)return;let e=K();Y();let t=e?P.get(e)??null:null;if(t&&t.value!==null&&!t.disabled&&!t.el.hidden&&!(t.group?.el.hidden??!1)){J(t.value,{emit:!0});return}if(k!==null){let e=q().find(e=>e.value===k)??null;if(e){J(e.value,{emit:!0});return}}J(q()[0]?.value??null,{emit:!0})}))},He=()=>{R&&R.observe(g,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:[`data-slot`,`data-value`,`data-label`,`data-keywords`,`data-disabled`,`disabled`,`aria-disabled`,`data-force-mount`,`data-always-render`]})};typeof MutationObserver<`u`&&(R=new MutationObserver(()=>{Ve()}),He()),h.value=A,Y(),(A||k===null)&&Ie(!1),L.push(u(h,`input`,()=>{X(h.value,!0,!0)})),L.push(u(m,`keydown`,e=>{Be(e)})),L.push(u(g,`pointermove`,e=>{if(ne)return;let t=e.target,n=t instanceof HTMLElement?t.closest(T):null;if(!(n instanceof HTMLElement))return;let r=Re(n);!r||r.disabled||n.hidden||r.group?.el.hidden||J(r.value,{emit:!0})})),L.push(u(g,`click`,e=>{let t=e.target,n=ye(t),r=t instanceof HTMLElement?t.closest(T):null;if(n&&n!==r||!(r instanceof HTMLElement))return;let i=Re(r);!i||i.disabled||i.value===null||r.hidden||i.group?.el.hidden||Le(i)})),L.push(d(m,`command:set`,e=>{let t=e.detail;t&&(t.search!==void 0&&X(String(t.search),!0,t.value===void 0),t.value!==void 0&&J(t.value,{emit:!0,ensureVisible:!0}))}));let $={get value(){return k},get search(){return A},select(e){J(e,{emit:!0,ensureVisible:!0})},setSearch(e){X(e,!0,!0)},destroy(){V=!0,R?.disconnect(),z?.disconnect(),L.forEach(e=>e()),L=[],me&&m.removeAttribute(`tabindex`),e(m,w,$)}};return te(m,w,$),$}function fe(e=document){let t=[];for(let n of c(e,`command`))l(n,w)||t.push(O(n));return t}export{fe as create,O as createCommand};", "type": "registry:file", "target": "~/assets/data-slot-command.js" }, @@ -141,7 +141,7 @@ }, { "path": "assets/data-slot-toast.js", - "content": "import{clearRootBinding as e,createPortalLifecycle as t,createPresenceLifecycle as n,createSwipeGesture as r,createTerminalLifecycle as i,emit as a,focusElement as o,getDataBool as s,getDataEnum as c,getDataNumber as l,getFocusable as u,getPart as d,getRoots as f,hasRootBinding as p,isFocusable as m,on as h,reuseRootBinding as g,setRootBinding as _}from\"@data-slot/core\";const v=[`top-left`,`top-center`,`top-right`,`bottom-left`,`bottom-center`,`bottom-right`],y=[`default`,`success`,`error`,`warning`,`info`,`loading`],b=e=>!!e&&typeof e==`object`,x=e=>typeof e==`string`,S=e=>typeof e==`string`&&e.trim()!==``,C=e=>typeof e==`boolean`,w=e=>typeof e==`number`&&Number.isFinite(e),T=e=>typeof e==`string`&&y.includes(e),E={title:S,description:x,type:T,duration:w,action:e=>b(e)&&S(e.label)&&(e.onClick===void 0||typeof e.onClick==`function`)&&(e.value===void 0||x(e.value)),dismissible:C,closeButtonAriaLabel:x,testId:x},ee=Object.keys(E),te=new Set([`description`,`action`,`closeButtonAriaLabel`,`testId`]),ne=e=>w(e)?Math.max(1,Math.trunc(e)):3,re=(e,t)=>w(e)?e<=0?0:Math.max(1,Math.trunc(e)):t,ie=(e,t)=>({id:e,title:``,type:`default`,duration:t,dismissible:!0}),D=(e,t)=>t===void 0?e:t??void 0,ae=(e,t)=>{let n=t.title??e.title;if(!S(n))throw Error(`Toast requires a non-empty title`);return{id:e.id,title:n,description:D(e.description,t.description),type:T(t.type)?t.type:e.type,duration:t.duration===void 0?e.duration:re(t.duration,e.duration),action:D(e.action,t.action),dismissible:t.dismissible??e.dismissible,closeButtonAriaLabel:D(e.closeButtonAriaLabel,t.closeButtonAriaLabel),testId:D(e.testId,t.testId)}},O=e=>{let t={};for(let n of ee){let r=e[n];(E[n](r)||r===null&&te.has(n))&&Object.assign(t,{[n]:r})}return t},oe=e=>{if(!b(e))return null;let t=O(e);return t.title?{id:S(e.id)?e.id:void 0,patch:t}:null},se=e=>{if(!b(e)||!S(e.id))return null;let t=O(e);return Object.keys(t).length>0?{id:e.id,patch:t}:null},ce=e=>S(e)?e:b(e)&&S(e.id)?e.id:null,le=e=>typeof e==`string`?{title:e}:e??{},ue=(e,t)=>le(typeof e==`function`?e(t):e),k=(e,t)=>{let{message:n,...r}=e;return{...r,title:S(e.title)?e.title:S(n)?n:t.title,description:e.description===void 0?t.description:e.description,type:e.type??t.type,duration:e.duration??t.duration}},de=e=>S(e)?e:e instanceof Error&&S(e.message)?e.message:`Error`,A=e=>e instanceof HTMLTemplateElement,j=e=>!!e.content.querySelector(`[data-slot=\"toast-item\"]`),M=e=>{let t=e.createElement(`template`);return t.innerHTML=`\n
  • \n \n \n \n \n
  • \n `,t},N=(e,t)=>{e.setAttribute(`data-state`,t),t===`open`?(e.setAttribute(`data-open`,``),e.removeAttribute(`data-closed`)):(e.setAttribute(`data-closed`,``),e.removeAttribute(`data-open`))},P=(e,t)=>{t===`error`||t===`warning`?(e.setAttribute(`role`,`alert`),e.setAttribute(`aria-live`,`assertive`)):(e.setAttribute(`role`,`status`),e.setAttribute(`aria-live`,`polite`)),e.setAttribute(`aria-atomic`,`true`)};function fe(e,t){let{viewport:r}=t,a=(A(t.template)&&j(t.template)?t.template:M(r.ownerDocument)).content.cloneNode(!0),o=a.querySelector(`[data-slot=\"toast-item\"]`),s=new WeakMap,c=i(),l=e,u=!1,d=t.paused,f=null,p=l.duration,m=0,h=(e,t)=>{let n=e.querySelector(`[data-slot=\"toast-title\"]`),r=e.querySelector(`[data-slot=\"toast-description\"]`),i=e.querySelector(`[data-slot=\"toast-action\"]`),a=e.querySelector(`[data-slot=\"toast-close\"]`);if(n&&(n.textContent=t.title,n.hidden=!1),r&&(t.description&&t.description.trim()!==``?(r.textContent=t.description,r.hidden=!1):(r.textContent=``,r.hidden=!0)),i&&(t.action?.label&&t.action.label.trim()!==``?(i.textContent=t.action.label,i.hidden=!1):(i.textContent=``,i.hidden=!0)),e.setAttribute(`data-type`,t.type),t.dismissible?e.removeAttribute(`data-dismissible`):e.setAttribute(`data-dismissible`,`false`),t.testId&&t.testId.trim()!==``?e.setAttribute(`data-testid`,t.testId):e.removeAttribute(`data-testid`),a){if(s.has(a)||s.set(a,a.getAttribute(`aria-label`)),t.closeButtonAriaLabel&&t.closeButtonAriaLabel.trim()!==``)a.setAttribute(`aria-label`,t.closeButtonAriaLabel);else{let e=s.get(a);e&&e.trim()!==``?a.setAttribute(`aria-label`,e):a.setAttribute(`aria-label`,`Close`)}a.getAttribute(`aria-label`)||a.setAttribute(`aria-label`,`Close`)}P(e,t.type)},g=()=>{c.cancelTimeout(f),f=null},_=()=>{if(!(!y.active||d||l.duration<=0||f!==null)){if(p<=0){t.onTimeout(y);return}m=Date.now(),f=c.trackTimeout(()=>{f=null,t.onTimeout(y)},p)}},v=n({element:o,win:r.ownerDocument.defaultView??window,onExitComplete:()=>{c.isDestroyed||t.onExitComplete(y)}});c.onDestroy(()=>{v.cleanup(),o.remove()});let y={get id(){return l.id},element:o,get toast(){return l},get active(){return!u&&!c.isDestroyed},get exiting(){return u},mount(){r.appendChild(a),c.trackRaf(()=>{c.trackRaf(()=>{y.active&&o.setAttribute(`data-mounted`,`true`)})}),_()},update(e){y.active&&(l=ae(l,e),h(o,l),e.duration!==void 0&&(g(),p=l.duration,_()))},setPaused(e){d===e||!y.active||(d=e,d?(f!==null&&(p=Math.max(0,p-(Date.now()-m))),g()):_())},dismiss(){y.active&&(u=!0,g(),o.setAttribute(`data-removed`,`true`),o.style.zIndex=`0`,o.style.pointerEvents=`none`,N(o,`closed`),v.exit())},destroy(){c.destroy()}};o.setAttribute(`data-id`,l.id),h(o,l);for(let e of[`mounted`,`removed`,`front`,`visible`,`swiping`,`swipe-out`])o.setAttribute(`data-${e}`,`false`);o.setAttribute(`data-expanded`,String(t.expanded));for(let e of[`amount-x`,`amount-y`,`end-x`,`end-y`])o.style.setProperty(`--toast-swipe-${e}`,`0px`);return N(o,`open`),y}const F=`data-toast-prev-tabindex`,I=`__none__`,pe=e=>{let t=getComputedStyle(e).getPropertyValue(`--toast-gap`).trim();if(!t)return 8;let n=Number.parseFloat(t);return Number.isFinite(n)?n:8},L=e=>{let t=getComputedStyle(e).getPropertyValue(`--toast-collapsed-peek`).trim();if(!t)return 14;let n=Number.parseFloat(t);return Number.isFinite(n)?Math.max(0,n):14},R=e=>{let t=e.cloneNode(!0);t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`inert`,``),t.style.width=getComputedStyle(e).width,t.style.height=`auto`,t.style.maxHeight=`none`,t.style.position=`absolute`,t.style.inset=`0 auto auto 0`,t.style.visibility=`hidden`,t.style.pointerEvents=`none`,t.style.transform=`none`,t.style.transition=`none`,t.style.animation=`none`,e.parentElement.append(t);try{return t.offsetHeight||t.getBoundingClientRect().height||e.offsetHeight||e.getBoundingClientRect().height}finally{t.remove()}},me=e=>{let t=u(e);return m(e)&&t.unshift(e),t.filter(e=>e.getAttribute(`aria-hidden`)!==`true`)},z=e=>{let t=[...e.querySelectorAll(`[${F}]`)];return e.hasAttribute(F)&&t.unshift(e),t},B=(e,t)=>{if(t){e.removeAttribute(`aria-hidden`),e.removeAttribute(`inert`);for(let t of z(e)){let e=t.getAttribute(F);t.removeAttribute(F),!e||e===I?t.removeAttribute(`tabindex`):t.setAttribute(`tabindex`,e)}return}for(let t of me(e)){if(!t.hasAttribute(F)){let e=t.getAttribute(`tabindex`);t.setAttribute(F,e===null?I:e)}t.setAttribute(`tabindex`,`-1`)}e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`inert`,``)};function he({viewport:e,limit:t,stackDirection:n,getItems:r,onLayout:i}){let a=e.ownerDocument,o=new Set,s=new WeakMap,c=!1;e.style.setProperty(`--toast-lift`,String(n));let l=t=>{t?e.setAttribute(`data-expanded`,``):e.removeAttribute(`data-expanded`);let n=t?e.style.getPropertyValue(`--toast-expanded-stack-size`):e.style.getPropertyValue(`--toast-collapsed-stack-size`);e.style.setProperty(`--toast-stack-size`,n.trim()===``?`0px`:n);for(let e of o)e.setAttribute(`data-expanded`,String(t))},u=()=>{if(c)return;let n=r(),o=pe(e),l=L(e),u=n.length,d=0,f=0,p=0,m=0;for(let e=0;e0&&s.set(r,h),e===0&&(m=h);let g=e*l;if(r.style.setProperty(`--toast-index`,String(e)),r.style.setProperty(`--toast-initial-height`,`${h}px`),r.style.setProperty(`--toast-offset`,`${d}px`),r.style.setProperty(`--toast-collapsed-offset-y`,`${g}px`),r.setAttribute(`data-front`,String(e===0)),r.setAttribute(`data-visible`,String(i)),r.setAttribute(`data-removed`,`false`),r.style.zIndex=String(u-e+1),r.style.pointerEvents=i?``:`none`,!i&&c){let e=a.activeElement;e instanceof HTMLElement&&r.contains(e)&&e.blur()}B(r,i),d+=h+o,i&&(p+=1,f+=h+o)}let h=p>0?Math.max(0,f-o):0,g=p>0?Math.max(0,m+l*(p-1)):0;e.style.setProperty(`--toast-count`,String(u)),e.style.setProperty(`--toast-front-height`,`${m}px`),e.style.setProperty(`--toast-expanded-stack-size`,`${h}px`),e.style.setProperty(`--toast-collapsed-stack-size`,`${g}px`),i()},d=typeof ResizeObserver<`u`?new ResizeObserver(u):null;return{update:u,setExpanded:l,observe(e){o.add(e),d?.observe(e)},unobserve(e){o.delete(e),d?.unobserve(e)},destroy(){c=!0,d?.disconnect(),o.clear(),e.removeAttribute(`data-expanded`)}}}const V=e=>{e.element.setAttribute(`data-swiping`,`false`),e.element.setAttribute(`data-swipe-out`,`false`);for(let t of[`amount-x`,`amount-y`,`end-x`,`end-y`])e.element.style.removeProperty(`--toast-swipe-${t}`)};function ge({viewport:e,position:t,getEntry:n,dismiss:i}){let a={x:t.endsWith(`left`)?-1:t.endsWith(`right`)?1:0,y:t.startsWith(`top`)?-1:1},o=a.x===0?[`y`]:[`x`,`y`],s=(e,t)=>e*t<0?e*.2:e,c=e=>e.active&&e.toast.dismissible;return r({element:e,axes:o,lockThreshold:12,capture:e=>e.element,start(e,t){if(t.closest(`[data-slot=\"toast-action\"], [data-slot=\"toast-close\"]`))return null;let r=n(t);return r&&c(r)?r:null},active:c,move(e,{axis:t,deltaX:n,deltaY:r}){let i=t===`x`?s(n,a.x):0,o=t===`y`?s(r,a.y):0;e.element.setAttribute(`data-swiping`,`true`),e.element.style.setProperty(`--toast-swipe-amount-x`,`${i}px`),e.element.style.setProperty(`--toast-swipe-amount-y`,`${o}px`)},release(e,{axis:t,deltaX:n,deltaY:r}){let o=t===`x`?n:r;if(o*a[t]<40){V(e);return}let s=t===`x`?e.element.offsetWidth:e.element.offsetHeight,c=a[t]*Math.max(Math.abs(o),s+16);e.element.setAttribute(`data-swiping`,`false`),e.element.setAttribute(`data-swipe-out`,`true`),e.element.style.setProperty(`--toast-swipe-end-x`,`${t===`x`?c:0}px`),e.element.style.setProperty(`--toast-swipe-end-y`,`${t===`y`?c:0}px`),i(e)},reset:V})}const H=new Set([`hover`,`focus`]);function _e({hasExitingEntries:e,setExpanded:t,setPaused:n}){let r=new Set,i=!1,a=!1,o=()=>[...r].some(e=>H.has(e)),s=()=>{i&&(o()||!e())&&(i=!1),t(o()||i);let s=r.size>0;s!==a&&(a=s,n(a))};return{get expanded(){return o()||i},get paused(){return a},set(t,n){n?r.add(t):r.delete(t)&&H.has(t)&&!o()&&e()&&(i=!0),s()},sync:s}}const U=`@data-slot/toast`;function W(n,r={}){let u=g(n,U,`[@data-slot/toast] createToast() called more than once for the same root. Returning the existing controller. Destroy it before rebinding with new options.`);if(u)return u;let f=d(n,`toast-viewport`);if(!f)throw Error(`Toast requires a toast-viewport slot`);let p=n.ownerDocument??document,m=d(n,`toast-template`),y=ne(r.limit??l(n,`limit`)),b=re(r.duration??l(n,`duration`),5e3),x=r.position??c(n,`position`,v)??`bottom-right`,C=r.pauseOnHover??s(n,`pauseOnHover`)??!0,w=r.pauseOnFocus??s(n,`pauseOnFocus`)??!0,T=r.portal??s(n,`portal`)??!1,E=r.onShow,ee=r.onDismiss,te=r.onAction,D=x.startsWith(`top`)?1:-1;n.setAttribute(`data-position`,x),f.setAttribute(`data-position`,x),f.hasAttribute(`role`)||f.setAttribute(`role`,`region`),f.hasAttribute(`aria-label`)||f.setAttribute(`aria-label`,`Notifications`);let O=t({content:f,root:n,enabled:T});T&&O.mount();let A=new Map,j=i(),M=[],N=0,P=null,F=()=>[...A.values()].filter(e=>e.active),I=e=>A.get(e.id)===e,pe=()=>[...A.values()].some(e=>e.exiting),L=he({viewport:f,limit:y,stackDirection:D,getItems:()=>F().reverse().map(e=>e.element),onLayout:()=>R.set(`focus`,w&&B())}),R=_e({hasExitingEntries:pe,setExpanded:e=>L.setExpanded(e),setPaused:e=>{for(let t of F())t.setPaused(e)}});p.visibilityState===`hidden`&&R.set(`document`,!0);let z=e=>{if(!(e instanceof Node)||!f.contains(e))return!1;if(!(e instanceof Element))return!0;let t=e.closest(`[data-slot=\"toast-item\"]`);return!t||!f.contains(t)?!0:t.getAttribute(`data-visible`)===`true`&&t.getAttribute(`data-state`)===`open`},B=()=>z(p.activeElement),V=()=>{for(let e of F().reverse()){if(e.element.getAttribute(`data-visible`)!==`true`)continue;let t=me(e.element)[0];if(t)return o(t),!0}return!1},H=()=>P&&P.isConnected?(o(P),!0):!1,W=e=>{let t=p.activeElement;!(t instanceof HTMLElement)||!f.contains(t)||e&&!e.contains(t)||V()||H()||t.blur()},G=e=>{a(n,`toast:change`,{id:e,action:`dismiss`}),ee?.(e)},K=e=>{I(e)&&(Q.cancel(e),L.unobserve(e.element),e.destroy(),A.delete(e.id),L.update())},q=(e,t=!0)=>{!I(e)||!e.active||(Q.cancel(e),e.dismiss(),L.update(),t&&W(e.element),G(e.id))},ve=e=>{let t=A.get(e);t&&q(t)},J=()=>{let e=``;do N+=1,e=`toast-${N}`;while(A.has(e));return e},Y=(e,t)=>{let r=S(e)?e:J(),i=ae(ie(r,b),t),o=A.get(r),s=o?.active;o&&K(o),s&&G(r);let c=fe(i,{viewport:f,template:m,expanded:R.expanded,paused:R.paused,onTimeout:q,onExitComplete:K});if(j.isDestroyed)return c.destroy(),c;let l=A.get(r);return l&&K(l),A.set(r,c),c.mount(),L.observe(c.element),L.update(),I(c)&&c.active&&(a(n,`toast:change`,{id:r,action:`show`}),E?.(r)),c},ye=e=>j.isDestroyed?e.id??J():Y(e.id,e).id,X=(e,t)=>{!I(e)||!e.active||(e.update(t),e.toast.dismissible||Q.cancel(e),L.update())},be=(e,t)=>{let n=A.get(e);n&&X(n,t)},xe=(e,t)=>{let n=k(le(t.loading),{title:`Loading...`,type:`loading`,duration:0,description:t.description}),r=j.isDestroyed?void 0:Y(void 0,n),i=r?.id??J(),a=Promise.resolve().then(()=>typeof e==`function`?e():e).then(e=>{let n=k(ue(t.success,e),{title:`Success`,type:`success`,duration:b,description:t.description});return r&&X(r,n),e}).catch(e=>{let n=k(ue(t.error,e),{title:de(e),type:`error`,duration:b,description:t.description});throw r&&X(r,n),e});return a.catch(()=>{}),{id:i,unwrap:()=>a}},Se=()=>{let e=p.activeElement instanceof HTMLElement&&f.contains(p.activeElement);for(let e of F())q(e,!1);e&&W()},Ce=()=>{let e=!1;return{get defaultPrevented(){return e},preventDefault:()=>{e=!0}}},we=e=>{let t=A.get(e);if(!t||t.exiting)return;let r=t.toast.action?.value,i=Ce();t.toast.action?.onClick?.(i),a(n,`toast:action`,{id:e,value:r}),te?.(e,r),i.defaultPrevented||q(t)},Z=e=>{if(!(e instanceof Element))return;let t=e.closest(`[data-slot=\"toast-item\"]`);if(!t||!f.contains(t))return;let n=A.get(t.getAttribute(`data-id`)??``);return n?.element===t?n:void 0},Q=ge({viewport:f,position:x,getEntry:Z,dismiss:e=>q(e)});M.push(h(f,`click`,e=>{let t=e.target;if(!t)return;let n=t.closest(`[data-slot=\"toast-close\"]`);if(n){let e=Z(n);e&&q(e);return}let r=t.closest(`[data-slot=\"toast-action\"]`);if(r){let e=Z(r);e&&we(e.id)}}));let Te=e=>z(e)||B();M.push(h(f,`pointerenter`,()=>{C&&R.set(`hover`,!0)}),h(f,`pointerleave`,()=>{C&&R.set(`hover`,!1)}),h(f,`focusin`,e=>{if(!w)return;let{relatedTarget:t,target:n}=e;t instanceof HTMLElement&&!f.contains(t)&&(P=t),R.set(`focus`,Te(n))}),h(f,`focusout`,e=>{w&&R.set(`focus`,Te(e.relatedTarget))}));let Ee=p.defaultView??window;M.push(h(Ee,`blur`,()=>R.set(`window`,!0)),h(Ee,`focus`,()=>R.set(`window`,!1)),h(p,`visibilitychange`,()=>R.set(`document`,p.visibilityState===`hidden`))),M.push(h(n,`toast:show`,e=>{let t=oe(e.detail);!t||j.isDestroyed||Y(t.id,t.patch)}),h(n,`toast:update`,e=>{let t=se(e.detail);t&&be(t.id,t.patch)}),h(n,`toast:dismiss`,e=>{let t=ce(e.detail);t&&ve(t)}),h(n,`toast:clear`,()=>{Se()})),j.onDestroy(()=>{M.forEach(e=>e()),Q.destroy(),L.destroy();for(let e of A.values())e.destroy();A.clear(),P=null,O.cleanup(),e(n,U,$)}),L.update();let $={show:ye,update:be,promise:xe,dismiss:ve,dismissAll:Se,get count(){return F().length},destroy:()=>{j.destroy()}};return _(n,U,$),$}function G(e=document){let t=[];for(let n of f(e,`toast`))p(n,U)||t.push(W(n));return t}export{G as create,W as createToast};", + "content": "import{clearRootBinding as e,createPortalLifecycle as t,createPresenceLifecycle as n,createSwipeGesture as r,createTerminalLifecycle as i,emit as a,focusElement as o,getDataBool as s,getDataEnum as c,getDataNumber as l,getFocusable as u,getPart as d,getRoots as f,hasRootBinding as p,isFocusable as m,on as h,reuseRootBinding as g,setRootBinding as _}from\"@data-slot/core\";const v=[`top-left`,`top-center`,`top-right`,`bottom-left`,`bottom-center`,`bottom-right`],y=[`default`,`success`,`error`,`warning`,`info`,`loading`],b=e=>!!e&&typeof e==`object`,x=e=>typeof e==`string`,S=e=>typeof e==`string`&&e.trim()!==``,C=e=>typeof e==`boolean`,w=e=>typeof e==`number`&&Number.isFinite(e),T=e=>typeof e==`string`&&y.includes(e),E={title:S,description:x,type:T,duration:w,action:e=>b(e)&&S(e.label)&&(e.onClick===void 0||typeof e.onClick==`function`)&&(e.value===void 0||x(e.value)),dismissible:C,closeButtonAriaLabel:x,testId:x},ee=Object.keys(E),te=new Set([`description`,`action`,`closeButtonAriaLabel`,`testId`]),ne=e=>w(e)?Math.max(1,Math.trunc(e)):3,re=(e,t)=>w(e)?e<=0?0:Math.max(1,Math.trunc(e)):t,ie=(e,t)=>({id:e,title:``,type:`default`,duration:t,dismissible:!0}),D=(e,t)=>t===void 0?e:t??void 0,ae=(e,t)=>{let n=t.title??e.title;if(!S(n))throw Error(`Toast requires a non-empty title`);return{id:e.id,title:n,description:D(e.description,t.description),type:T(t.type)?t.type:e.type,duration:t.duration===void 0?e.duration:re(t.duration,e.duration),action:D(e.action,t.action),dismissible:t.dismissible??e.dismissible,closeButtonAriaLabel:D(e.closeButtonAriaLabel,t.closeButtonAriaLabel),testId:D(e.testId,t.testId)}},O=e=>{let t={};for(let n of ee){let r=e[n];(E[n](r)||r===null&&te.has(n))&&Object.assign(t,{[n]:r})}return t},oe=e=>{if(!b(e))return null;let t=O(e);return t.title?{id:S(e.id)?e.id:void 0,patch:t}:null},se=e=>{if(!b(e)||!S(e.id))return null;let t=O(e);return Object.keys(t).length>0?{id:e.id,patch:t}:null},ce=e=>S(e)?e:b(e)&&S(e.id)?e.id:null,le=e=>typeof e==`string`?{title:e}:e??{},ue=(e,t)=>le(typeof e==`function`?e(t):e),k=(e,t)=>{let{message:n,...r}=e;return{...r,title:S(e.title)?e.title:S(n)?n:t.title,description:e.description===void 0?t.description:e.description,type:e.type??t.type,duration:e.duration??t.duration}},de=e=>S(e)?e:e instanceof Error&&S(e.message)?e.message:`Error`,A=e=>e instanceof HTMLTemplateElement,j=e=>!!e.content.querySelector(`[data-slot=\"toast-item\"]`),M=e=>{let t=e.createElement(`template`);return t.innerHTML=`\n
  • \n \n \n \n \n
  • \n `,t},N=(e,t)=>{e.setAttribute(`data-state`,t),t===`open`?(e.setAttribute(`data-open`,``),e.removeAttribute(`data-closed`)):(e.setAttribute(`data-closed`,``),e.removeAttribute(`data-open`))},P=(e,t)=>{t===`error`||t===`warning`?(e.setAttribute(`role`,`alert`),e.setAttribute(`aria-live`,`assertive`)):(e.setAttribute(`role`,`status`),e.setAttribute(`aria-live`,`polite`)),e.setAttribute(`aria-atomic`,`true`)};function fe(e,t){let{viewport:r}=t,a=(A(t.template)&&j(t.template)?t.template:M(r.ownerDocument)).content.cloneNode(!0),o=a.querySelector(`[data-slot=\"toast-item\"]`),s=new WeakMap,c=i(),l=e,u=!1,d=t.paused,f=null,p=l.duration,m=0,h=(e,t)=>{let n=e.querySelector(`[data-slot=\"toast-title\"]`),r=e.querySelector(`[data-slot=\"toast-description\"]`),i=e.querySelector(`[data-slot=\"toast-action\"]`),a=e.querySelector(`[data-slot=\"toast-close\"]`);if(n&&(n.textContent=t.title,n.hidden=!1),r&&(t.description&&t.description.trim()!==``?(r.textContent=t.description,r.hidden=!1):(r.textContent=``,r.hidden=!0)),i&&(t.action?.label&&t.action.label.trim()!==``?(i.textContent=t.action.label,i.hidden=!1):(i.textContent=``,i.hidden=!0)),e.setAttribute(`data-type`,t.type),t.dismissible?e.removeAttribute(`data-dismissible`):e.setAttribute(`data-dismissible`,`false`),t.testId&&t.testId.trim()!==``?e.setAttribute(`data-testid`,t.testId):e.removeAttribute(`data-testid`),a){if(s.has(a)||s.set(a,a.getAttribute(`aria-label`)),t.closeButtonAriaLabel&&t.closeButtonAriaLabel.trim()!==``)a.setAttribute(`aria-label`,t.closeButtonAriaLabel);else{let e=s.get(a);e&&e.trim()!==``?a.setAttribute(`aria-label`,e):a.setAttribute(`aria-label`,`Close`)}a.getAttribute(`aria-label`)||a.setAttribute(`aria-label`,`Close`)}P(e,t.type)},g=()=>{c.cancelTimeout(f),f=null},_=()=>{if(!(!y.active||d||l.duration<=0||f!==null)){if(p<=0){t.onTimeout(y);return}m=Date.now(),f=c.trackTimeout(()=>{f=null,t.onTimeout(y)},p)}},v=n({element:o,win:r.ownerDocument.defaultView??window,onExitComplete:()=>{c.isDestroyed||t.onExitComplete(y)}});c.onDestroy(()=>{v.cleanup(),o.remove()});let y={get id(){return l.id},element:o,get toast(){return l},get active(){return!u&&!c.isDestroyed},get exiting(){return u},mount(){r.appendChild(a),c.trackRaf(()=>{c.trackRaf(()=>{y.active&&o.setAttribute(`data-mounted`,`true`)})}),_()},update(e){y.active&&(l=ae(l,e),h(o,l),e.duration!==void 0&&(g(),p=l.duration,_()))},setPaused(e){d===e||!y.active||(d=e,d?(f!==null&&(p=Math.max(0,p-(Date.now()-m))),g()):_())},dismiss(){y.active&&(u=!0,g(),o.setAttribute(`data-removed`,`true`),o.style.zIndex=`0`,o.style.pointerEvents=`none`,N(o,`closed`),v.exit())},destroy(){c.destroy()}};o.setAttribute(`data-id`,l.id),h(o,l);for(let e of[`mounted`,`removed`,`front`,`visible`,`swiping`,`swipe-out`])o.setAttribute(`data-${e}`,`false`);o.setAttribute(`data-expanded`,String(t.expanded));for(let e of[`amount-x`,`amount-y`,`end-x`,`end-y`])o.style.setProperty(`--toast-swipe-${e}`,`0px`);return N(o,`open`),y}const F=`data-toast-prev-tabindex`,I=`__none__`,pe=e=>{let t=getComputedStyle(e).getPropertyValue(`--toast-gap`).trim();if(!t)return 8;let n=Number.parseFloat(t);return Number.isFinite(n)?n:8},L=e=>{let t=getComputedStyle(e).getPropertyValue(`--toast-collapsed-peek`).trim();if(!t)return 14;let n=Number.parseFloat(t);return Number.isFinite(n)?Math.max(0,n):14},R=e=>{let t=e.cloneNode(!0);t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`inert`,``),t.style.width=getComputedStyle(e).width,t.style.height=`auto`,t.style.maxHeight=`none`,t.style.position=`absolute`,t.style.inset=`0 auto auto 0`,t.style.visibility=`hidden`,t.style.pointerEvents=`none`,t.style.transform=`none`,t.style.transition=`none`,t.style.animation=`none`,e.parentElement.append(t);try{return t.offsetHeight||t.getBoundingClientRect().height||e.offsetHeight||e.getBoundingClientRect().height}finally{t.remove()}},me=e=>{let t=u(e);return m(e)&&t.unshift(e),t.filter(e=>e.getAttribute(`aria-hidden`)!==`true`)},z=e=>{let t=[...e.querySelectorAll(`[${F}]`)];return e.hasAttribute(F)&&t.unshift(e),t},B=(e,t)=>{if(t){e.removeAttribute(`aria-hidden`),e.removeAttribute(`inert`);for(let t of z(e)){let e=t.getAttribute(F);t.removeAttribute(F),!e||e===I?t.removeAttribute(`tabindex`):t.setAttribute(`tabindex`,e)}return}for(let t of me(e)){if(!t.hasAttribute(F)){let e=t.getAttribute(`tabindex`);t.setAttribute(F,e===null?I:e)}t.setAttribute(`tabindex`,`-1`)}e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`inert`,``)};function he({viewport:e,limit:t,stackDirection:n,getItems:r,onLayout:i}){let a=e.ownerDocument,o=new Set,s=new WeakMap,c=!1;e.style.setProperty(`--toast-lift`,String(n));let l=t=>{t?e.setAttribute(`data-expanded`,``):e.removeAttribute(`data-expanded`);let n=t?e.style.getPropertyValue(`--toast-expanded-stack-size`):e.style.getPropertyValue(`--toast-collapsed-stack-size`);e.style.setProperty(`--toast-stack-size`,n.trim()===``?`0px`:n);for(let e of o)e.setAttribute(`data-expanded`,String(t))},u=()=>{if(c)return;let n=r(),o=n.length,l=o>0?pe(e):0,u=o>0?L(e):0,d=0,f=0,p=0,m=0;for(let e=0;e0&&s.set(r,h),e===0&&(m=h);let g=e*u;if(r.style.setProperty(`--toast-index`,String(e)),r.style.setProperty(`--toast-initial-height`,`${h}px`),r.style.setProperty(`--toast-offset`,`${d}px`),r.style.setProperty(`--toast-collapsed-offset-y`,`${g}px`),r.setAttribute(`data-front`,String(e===0)),r.setAttribute(`data-visible`,String(i)),r.setAttribute(`data-removed`,`false`),r.style.zIndex=String(o-e+1),r.style.pointerEvents=i?``:`none`,!i&&c){let e=a.activeElement;e instanceof HTMLElement&&r.contains(e)&&e.blur()}B(r,i),d+=h+l,i&&(p+=1,f+=h+l)}let h=p>0?Math.max(0,f-l):0,g=p>0?Math.max(0,m+u*(p-1)):0;e.style.setProperty(`--toast-count`,String(o)),e.style.setProperty(`--toast-front-height`,`${m}px`),e.style.setProperty(`--toast-expanded-stack-size`,`${h}px`),e.style.setProperty(`--toast-collapsed-stack-size`,`${g}px`),i()},d=typeof ResizeObserver<`u`?new ResizeObserver(u):null;return{update:u,setExpanded:l,observe(e){o.add(e),d?.observe(e)},unobserve(e){o.delete(e),d?.unobserve(e)},destroy(){c=!0,d?.disconnect(),o.clear(),e.removeAttribute(`data-expanded`)}}}const V=e=>{e.element.setAttribute(`data-swiping`,`false`),e.element.setAttribute(`data-swipe-out`,`false`);for(let t of[`amount-x`,`amount-y`,`end-x`,`end-y`])e.element.style.removeProperty(`--toast-swipe-${t}`)};function ge({viewport:e,position:t,getEntry:n,dismiss:i}){let a={x:t.endsWith(`left`)?-1:t.endsWith(`right`)?1:0,y:t.startsWith(`top`)?-1:1},o=a.x===0?[`y`]:[`x`,`y`],s=(e,t)=>e*t<0?e*.2:e,c=e=>e.active&&e.toast.dismissible;return r({element:e,axes:o,lockThreshold:12,capture:e=>e.element,start(e,t){if(t.closest(`[data-slot=\"toast-action\"], [data-slot=\"toast-close\"]`))return null;let r=n(t);return r&&c(r)?r:null},active:c,move(e,{axis:t,deltaX:n,deltaY:r}){let i=t===`x`?s(n,a.x):0,o=t===`y`?s(r,a.y):0;e.element.setAttribute(`data-swiping`,`true`),e.element.style.setProperty(`--toast-swipe-amount-x`,`${i}px`),e.element.style.setProperty(`--toast-swipe-amount-y`,`${o}px`)},release(e,{axis:t,deltaX:n,deltaY:r}){let o=t===`x`?n:r;if(o*a[t]<40){V(e);return}let s=t===`x`?e.element.offsetWidth:e.element.offsetHeight,c=a[t]*Math.max(Math.abs(o),s+16);e.element.setAttribute(`data-swiping`,`false`),e.element.setAttribute(`data-swipe-out`,`true`),e.element.style.setProperty(`--toast-swipe-end-x`,`${t===`x`?c:0}px`),e.element.style.setProperty(`--toast-swipe-end-y`,`${t===`y`?c:0}px`),i(e)},reset:V})}const H=new Set([`hover`,`focus`]);function _e({hasExitingEntries:e,setExpanded:t,setPaused:n}){let r=new Set,i=!1,a=!1,o=()=>[...r].some(e=>H.has(e)),s=()=>{i&&(o()||!e())&&(i=!1),t(o()||i);let s=r.size>0;s!==a&&(a=s,n(a))};return{get expanded(){return o()||i},get paused(){return a},set(t,n){n?r.add(t):r.delete(t)&&H.has(t)&&!o()&&e()&&(i=!0),s()},sync:s}}const U=`@data-slot/toast`;function W(n,r={}){let u=g(n,U,`[@data-slot/toast] createToast() called more than once for the same root. Returning the existing controller. Destroy it before rebinding with new options.`);if(u)return u;let f=d(n,`toast-viewport`);if(!f)throw Error(`Toast requires a toast-viewport slot`);let p=n.ownerDocument??document,m=d(n,`toast-template`),y=ne(r.limit??l(n,`limit`)),b=re(r.duration??l(n,`duration`),5e3),x=r.position??c(n,`position`,v)??`bottom-right`,C=r.pauseOnHover??s(n,`pauseOnHover`)??!0,w=r.pauseOnFocus??s(n,`pauseOnFocus`)??!0,T=r.portal??s(n,`portal`)??!1,E=r.onShow,ee=r.onDismiss,te=r.onAction,D=x.startsWith(`top`)?1:-1;n.setAttribute(`data-position`,x),f.setAttribute(`data-position`,x),f.hasAttribute(`role`)||f.setAttribute(`role`,`region`),f.hasAttribute(`aria-label`)||f.setAttribute(`aria-label`,`Notifications`);let O=t({content:f,root:n,enabled:T});T&&O.mount();let A=new Map,j=i(),M=[],N=0,P=null,F=()=>[...A.values()].filter(e=>e.active),I=e=>A.get(e.id)===e,pe=()=>[...A.values()].some(e=>e.exiting),L=he({viewport:f,limit:y,stackDirection:D,getItems:()=>F().reverse().map(e=>e.element),onLayout:()=>R.set(`focus`,w&&B())}),R=_e({hasExitingEntries:pe,setExpanded:e=>L.setExpanded(e),setPaused:e=>{for(let t of F())t.setPaused(e)}});p.visibilityState===`hidden`&&R.set(`document`,!0);let z=e=>{if(!(e instanceof Node)||!f.contains(e))return!1;if(!(e instanceof Element))return!0;let t=e.closest(`[data-slot=\"toast-item\"]`);return!t||!f.contains(t)?!0:t.getAttribute(`data-visible`)===`true`&&t.getAttribute(`data-state`)===`open`},B=()=>z(p.activeElement),V=()=>{for(let e of F().reverse()){if(e.element.getAttribute(`data-visible`)!==`true`)continue;let t=me(e.element)[0];if(t)return o(t),!0}return!1},H=()=>P&&P.isConnected?(o(P),!0):!1,W=e=>{let t=p.activeElement;!(t instanceof HTMLElement)||!f.contains(t)||e&&!e.contains(t)||V()||H()||t.blur()},G=e=>{a(n,`toast:change`,{id:e,action:`dismiss`}),ee?.(e)},K=e=>{I(e)&&(Q.cancel(e),L.unobserve(e.element),e.destroy(),A.delete(e.id),L.update())},q=(e,t=!0)=>{!I(e)||!e.active||(Q.cancel(e),e.dismiss(),L.update(),t&&W(e.element),G(e.id))},ve=e=>{let t=A.get(e);t&&q(t)},J=()=>{let e=``;do N+=1,e=`toast-${N}`;while(A.has(e));return e},Y=(e,t)=>{let r=S(e)?e:J(),i=ae(ie(r,b),t),o=A.get(r),s=o?.active;o&&K(o),s&&G(r);let c=fe(i,{viewport:f,template:m,expanded:R.expanded,paused:R.paused,onTimeout:q,onExitComplete:K});if(j.isDestroyed)return c.destroy(),c;let l=A.get(r);return l&&K(l),A.set(r,c),c.mount(),L.observe(c.element),L.update(),I(c)&&c.active&&(a(n,`toast:change`,{id:r,action:`show`}),E?.(r)),c},ye=e=>j.isDestroyed?e.id??J():Y(e.id,e).id,X=(e,t)=>{!I(e)||!e.active||(e.update(t),e.toast.dismissible||Q.cancel(e),L.update())},be=(e,t)=>{let n=A.get(e);n&&X(n,t)},xe=(e,t)=>{let n=k(le(t.loading),{title:`Loading...`,type:`loading`,duration:0,description:t.description}),r=j.isDestroyed?void 0:Y(void 0,n),i=r?.id??J(),a=Promise.resolve().then(()=>typeof e==`function`?e():e).then(e=>{let n=k(ue(t.success,e),{title:`Success`,type:`success`,duration:b,description:t.description});return r&&X(r,n),e}).catch(e=>{let n=k(ue(t.error,e),{title:de(e),type:`error`,duration:b,description:t.description});throw r&&X(r,n),e});return a.catch(()=>{}),{id:i,unwrap:()=>a}},Se=()=>{let e=p.activeElement instanceof HTMLElement&&f.contains(p.activeElement);for(let e of F())q(e,!1);e&&W()},Ce=()=>{let e=!1;return{get defaultPrevented(){return e},preventDefault:()=>{e=!0}}},we=e=>{let t=A.get(e);if(!t||t.exiting)return;let r=t.toast.action?.value,i=Ce();t.toast.action?.onClick?.(i),a(n,`toast:action`,{id:e,value:r}),te?.(e,r),i.defaultPrevented||q(t)},Z=e=>{if(!(e instanceof Element))return;let t=e.closest(`[data-slot=\"toast-item\"]`);if(!t||!f.contains(t))return;let n=A.get(t.getAttribute(`data-id`)??``);return n?.element===t?n:void 0},Q=ge({viewport:f,position:x,getEntry:Z,dismiss:e=>q(e)});M.push(h(f,`click`,e=>{let t=e.target;if(!t)return;let n=t.closest(`[data-slot=\"toast-close\"]`);if(n){let e=Z(n);e&&q(e);return}let r=t.closest(`[data-slot=\"toast-action\"]`);if(r){let e=Z(r);e&&we(e.id)}}));let Te=e=>z(e)||B();M.push(h(f,`pointerenter`,()=>{C&&R.set(`hover`,!0)}),h(f,`pointerleave`,()=>{C&&R.set(`hover`,!1)}),h(f,`focusin`,e=>{if(!w)return;let{relatedTarget:t,target:n}=e;t instanceof HTMLElement&&!f.contains(t)&&(P=t),R.set(`focus`,Te(n))}),h(f,`focusout`,e=>{w&&R.set(`focus`,Te(e.relatedTarget))}));let Ee=p.defaultView??window;M.push(h(Ee,`blur`,()=>R.set(`window`,!0)),h(Ee,`focus`,()=>R.set(`window`,!1)),h(p,`visibilitychange`,()=>R.set(`document`,p.visibilityState===`hidden`))),M.push(h(n,`toast:show`,e=>{let t=oe(e.detail);!t||j.isDestroyed||Y(t.id,t.patch)}),h(n,`toast:update`,e=>{let t=se(e.detail);t&&be(t.id,t.patch)}),h(n,`toast:dismiss`,e=>{let t=ce(e.detail);t&&ve(t)}),h(n,`toast:clear`,()=>{Se()})),j.onDestroy(()=>{M.forEach(e=>e()),Q.destroy(),L.destroy();for(let e of A.values())e.destroy();A.clear(),P=null,O.cleanup(),e(n,U,$)}),L.update();let $={show:ye,update:be,promise:xe,dismiss:ve,dismissAll:Se,get count(){return F().length},destroy:()=>{j.destroy()}};return _(n,U,$),$}function G(e=document){let t=[];for(let n of f(e,`toast`))p(n,U)||t.push(W(n));return t}export{G as create,W as createToast};", "type": "registry:file", "target": "~/assets/data-slot-toast.js" }, diff --git a/public/r/styles/base-luma/accordion.json b/public/r/styles/base-luma/accordion.json index 8aa10e279..a7812e964 100644 --- a/public/r/styles/base-luma/accordion.json +++ b/public/r/styles/base-luma/accordion.json @@ -4,7 +4,7 @@ "title": "Accordion", "description": "A vertically stacked set of interactive headings that each reveal a section of content.", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-luma/alert-dialog.json b/public/r/styles/base-luma/alert-dialog.json index 89c4c6ab7..a04e6ed72 100644 --- a/public/r/styles/base-luma/alert-dialog.json +++ b/public/r/styles/base-luma/alert-dialog.json @@ -4,7 +4,7 @@ "title": "Alert Dialog", "description": "A modal dialog for important confirmations that expects a response.", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-luma/collapsible.json b/public/r/styles/base-luma/collapsible.json index beff3692c..83e95f354 100644 --- a/public/r/styles/base-luma/collapsible.json +++ b/public/r/styles/base-luma/collapsible.json @@ -4,7 +4,7 @@ "title": "Collapsible", "description": "An interactive component which expands/collapses a panel.", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-luma/combobox.json b/public/r/styles/base-luma/combobox.json index 646ecbb68..2ee145083 100644 --- a/public/r/styles/base-luma/combobox.json +++ b/public/r/styles/base-luma/combobox.json @@ -4,8 +4,8 @@ "title": "Combobox", "description": "Autocomplete input with a list of suggestions.", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-luma/command.json b/public/r/styles/base-luma/command.json index ff067f6d2..f8eaff9e9 100644 --- a/public/r/styles/base-luma/command.json +++ b/public/r/styles/base-luma/command.json @@ -4,9 +4,9 @@ "title": "Command", "description": "Command menu for search and quick actions.", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" diff --git a/public/r/styles/base-luma/dialog.json b/public/r/styles/base-luma/dialog.json index f8767e6d7..6ccf56145 100644 --- a/public/r/styles/base-luma/dialog.json +++ b/public/r/styles/base-luma/dialog.json @@ -4,7 +4,7 @@ "title": "Dialog", "description": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-luma/drawer.json b/public/r/styles/base-luma/drawer.json index b4beb4776..780a391ae 100644 --- a/public/r/styles/base-luma/drawer.json +++ b/public/r/styles/base-luma/drawer.json @@ -4,7 +4,7 @@ "title": "Drawer", "description": "A drawer component that slides in from any edge of the screen.", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-luma/dropdown-menu.json b/public/r/styles/base-luma/dropdown-menu.json index c7a598dfa..6e10e4fb5 100644 --- a/public/r/styles/base-luma/dropdown-menu.json +++ b/public/r/styles/base-luma/dropdown-menu.json @@ -4,7 +4,7 @@ "title": "Dropdown Menu", "description": "Displays a menu to the user, such as a set of actions or functions, triggered by a button.", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-luma/hover-card.json b/public/r/styles/base-luma/hover-card.json index af026df2f..82104de3b 100644 --- a/public/r/styles/base-luma/hover-card.json +++ b/public/r/styles/base-luma/hover-card.json @@ -4,8 +4,8 @@ "title": "Hover Card", "description": "For sighted users to preview content available behind a link.", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-luma/navigation-menu.json b/public/r/styles/base-luma/navigation-menu.json index 3db0843cc..fe67537d2 100644 --- a/public/r/styles/base-luma/navigation-menu.json +++ b/public/r/styles/base-luma/navigation-menu.json @@ -4,7 +4,7 @@ "title": "Navigation Menu", "description": "A collection of links for navigating websites.", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-luma/popover.json b/public/r/styles/base-luma/popover.json index e5df45afd..cb5cc89cb 100644 --- a/public/r/styles/base-luma/popover.json +++ b/public/r/styles/base-luma/popover.json @@ -4,7 +4,7 @@ "title": "Popover", "description": "Displays rich content in a floating layer, triggered by a button.", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-luma/radio-group.json b/public/r/styles/base-luma/radio-group.json index 44c8e4fe1..6249c800b 100644 --- a/public/r/styles/base-luma/radio-group.json +++ b/public/r/styles/base-luma/radio-group.json @@ -4,7 +4,7 @@ "title": "Radio Group", "description": "A set of checkable buttons, known as radio buttons, where no more than one of the buttons can be checked at a time.", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-luma/registry.json b/public/r/styles/base-luma/registry.json index ee42214e2..a91abf9b3 100644 --- a/public/r/styles/base-luma/registry.json +++ b/public/r/styles/base-luma/registry.json @@ -13,7 +13,7 @@ ], "docs": "https://ui.full.dev/components/accordion/", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ @@ -81,7 +81,7 @@ ], "docs": "https://ui.full.dev/components/alert-dialog/", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -432,7 +432,7 @@ ], "docs": "https://ui.full.dev/components/collapsible/", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { @@ -463,8 +463,8 @@ ], "docs": "https://ui.full.dev/components/combobox/", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -531,9 +531,9 @@ ], "docs": "https://ui.full.dev/components/command/", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" @@ -591,7 +591,7 @@ ], "docs": "https://ui.full.dev/components/dialog/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -654,7 +654,7 @@ ], "docs": "https://ui.full.dev/components/dropdown-menu/", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -873,8 +873,8 @@ ], "docs": "https://ui.full.dev/components/hover-card/", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { @@ -1258,7 +1258,7 @@ ], "docs": "https://ui.full.dev/components/navigation-menu/", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -1345,7 +1345,7 @@ ], "docs": "https://ui.full.dev/components/popover/", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { @@ -1440,7 +1440,7 @@ ], "docs": "https://ui.full.dev/components/radio-group/", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { @@ -1490,7 +1490,7 @@ ], "docs": "https://ui.full.dev/components/select/", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ @@ -1594,7 +1594,7 @@ ], "docs": "https://ui.full.dev/components/sheet/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1650,7 +1650,7 @@ ], "docs": "https://ui.full.dev/components/sidebar/", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1771,7 +1771,7 @@ ], "docs": "https://ui.full.dev/components/slider/", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { @@ -1837,7 +1837,7 @@ ], "docs": "https://ui.full.dev/components/switch/", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { @@ -1908,7 +1908,7 @@ ], "docs": "https://ui.full.dev/components/tabs/", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { @@ -1983,7 +1983,7 @@ ], "docs": "https://ui.full.dev/components/toggle/", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { @@ -2030,7 +2030,7 @@ ], "docs": "https://ui.full.dev/components/tooltip/", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { @@ -2165,7 +2165,7 @@ ], "docs": "https://ui.full.dev/components/drawer/", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -2255,7 +2255,7 @@ ], "docs": "https://ui.full.dev/components/resizable/", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { @@ -2286,7 +2286,7 @@ ], "docs": "https://ui.full.dev/components/toast/", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -2353,7 +2353,7 @@ ], "docs": "https://ui.full.dev/components/toggle-group/", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-luma/resizable.json b/public/r/styles/base-luma/resizable.json index 03981b9cf..785b93e53 100644 --- a/public/r/styles/base-luma/resizable.json +++ b/public/r/styles/base-luma/resizable.json @@ -4,7 +4,7 @@ "title": "Resizable", "description": "Accessible panel groups with pointer and keyboard resizing.", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-luma/select.json b/public/r/styles/base-luma/select.json index 074e5bc22..ab292261b 100644 --- a/public/r/styles/base-luma/select.json +++ b/public/r/styles/base-luma/select.json @@ -4,7 +4,7 @@ "title": "Select", "description": "Displays a list of options for the user to pick from, triggered by a button.", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-luma/sheet.json b/public/r/styles/base-luma/sheet.json index c1d1df178..1d8d0523a 100644 --- a/public/r/styles/base-luma/sheet.json +++ b/public/r/styles/base-luma/sheet.json @@ -4,7 +4,7 @@ "title": "Sheet", "description": "A sliding panel component that appears from the edge of the screen.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-luma/sidebar.json b/public/r/styles/base-luma/sidebar.json index fbd86becf..93a9f1b45 100644 --- a/public/r/styles/base-luma/sidebar.json +++ b/public/r/styles/base-luma/sidebar.json @@ -4,7 +4,7 @@ "title": "Sidebar", "description": "A composable, themeable, and customizable Astro sidebar component.", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-luma/slider.json b/public/r/styles/base-luma/slider.json index fd380d807..70c749684 100644 --- a/public/r/styles/base-luma/slider.json +++ b/public/r/styles/base-luma/slider.json @@ -4,7 +4,7 @@ "title": "Slider", "description": "An input where the user selects a value from within a given range.", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-luma/switch.json b/public/r/styles/base-luma/switch.json index e58a5ae22..8f97c3f9d 100644 --- a/public/r/styles/base-luma/switch.json +++ b/public/r/styles/base-luma/switch.json @@ -4,7 +4,7 @@ "title": "Switch", "description": "A control that switches a setting on or off.", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-luma/tabs.json b/public/r/styles/base-luma/tabs.json index 655b6087b..3250155ad 100644 --- a/public/r/styles/base-luma/tabs.json +++ b/public/r/styles/base-luma/tabs.json @@ -4,7 +4,7 @@ "title": "Tabs", "description": "A set of layered sections of content, known as tabs, that display one panel of content at a time.", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-luma/toast.json b/public/r/styles/base-luma/toast.json index d2f72c690..d86e3816f 100644 --- a/public/r/styles/base-luma/toast.json +++ b/public/r/styles/base-luma/toast.json @@ -4,7 +4,7 @@ "title": "Toast", "description": "A brief notification that appears without interrupting the user.", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-luma/toggle-group.json b/public/r/styles/base-luma/toggle-group.json index 8416e8c41..8b52d584f 100644 --- a/public/r/styles/base-luma/toggle-group.json +++ b/public/r/styles/base-luma/toggle-group.json @@ -4,7 +4,7 @@ "title": "Toggle Group", "description": "A set of two-state buttons that can be toggled independently or as a single choice.", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-luma/toggle.json b/public/r/styles/base-luma/toggle.json index 6f9b29c21..c67e41351 100644 --- a/public/r/styles/base-luma/toggle.json +++ b/public/r/styles/base-luma/toggle.json @@ -4,7 +4,7 @@ "title": "Toggle", "description": "A two-state button that can be either on or off.", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-luma/tooltip.json b/public/r/styles/base-luma/tooltip.json index 652678e27..ffdc3fe04 100644 --- a/public/r/styles/base-luma/tooltip.json +++ b/public/r/styles/base-luma/tooltip.json @@ -4,7 +4,7 @@ "title": "Tooltip", "description": "Displays contextual information when a user hovers or focuses a trigger.", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-lyra/accordion.json b/public/r/styles/base-lyra/accordion.json index 03d478756..6a53a8fe3 100644 --- a/public/r/styles/base-lyra/accordion.json +++ b/public/r/styles/base-lyra/accordion.json @@ -4,7 +4,7 @@ "title": "Accordion", "description": "A vertically stacked set of interactive headings that each reveal a section of content.", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-lyra/alert-dialog.json b/public/r/styles/base-lyra/alert-dialog.json index 3019b12bc..a66fb1756 100644 --- a/public/r/styles/base-lyra/alert-dialog.json +++ b/public/r/styles/base-lyra/alert-dialog.json @@ -4,7 +4,7 @@ "title": "Alert Dialog", "description": "A modal dialog for important confirmations that expects a response.", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-lyra/collapsible.json b/public/r/styles/base-lyra/collapsible.json index beff3692c..83e95f354 100644 --- a/public/r/styles/base-lyra/collapsible.json +++ b/public/r/styles/base-lyra/collapsible.json @@ -4,7 +4,7 @@ "title": "Collapsible", "description": "An interactive component which expands/collapses a panel.", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-lyra/combobox.json b/public/r/styles/base-lyra/combobox.json index bb776fda1..06c7cfcb0 100644 --- a/public/r/styles/base-lyra/combobox.json +++ b/public/r/styles/base-lyra/combobox.json @@ -4,8 +4,8 @@ "title": "Combobox", "description": "Autocomplete input with a list of suggestions.", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-lyra/command.json b/public/r/styles/base-lyra/command.json index 44bd21712..599035f3f 100644 --- a/public/r/styles/base-lyra/command.json +++ b/public/r/styles/base-lyra/command.json @@ -4,9 +4,9 @@ "title": "Command", "description": "Command menu for search and quick actions.", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" diff --git a/public/r/styles/base-lyra/dialog.json b/public/r/styles/base-lyra/dialog.json index 2d2f44cdd..870093143 100644 --- a/public/r/styles/base-lyra/dialog.json +++ b/public/r/styles/base-lyra/dialog.json @@ -4,7 +4,7 @@ "title": "Dialog", "description": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-lyra/drawer.json b/public/r/styles/base-lyra/drawer.json index a5024f4e4..95abd28cb 100644 --- a/public/r/styles/base-lyra/drawer.json +++ b/public/r/styles/base-lyra/drawer.json @@ -4,7 +4,7 @@ "title": "Drawer", "description": "A drawer component that slides in from any edge of the screen.", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-lyra/dropdown-menu.json b/public/r/styles/base-lyra/dropdown-menu.json index db6d0674d..fa2852493 100644 --- a/public/r/styles/base-lyra/dropdown-menu.json +++ b/public/r/styles/base-lyra/dropdown-menu.json @@ -4,7 +4,7 @@ "title": "Dropdown Menu", "description": "Displays a menu to the user, such as a set of actions or functions, triggered by a button.", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-lyra/hover-card.json b/public/r/styles/base-lyra/hover-card.json index 7ca8723d4..d93d27343 100644 --- a/public/r/styles/base-lyra/hover-card.json +++ b/public/r/styles/base-lyra/hover-card.json @@ -4,8 +4,8 @@ "title": "Hover Card", "description": "For sighted users to preview content available behind a link.", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-lyra/navigation-menu.json b/public/r/styles/base-lyra/navigation-menu.json index 51feb85ce..02ed111fd 100644 --- a/public/r/styles/base-lyra/navigation-menu.json +++ b/public/r/styles/base-lyra/navigation-menu.json @@ -4,7 +4,7 @@ "title": "Navigation Menu", "description": "A collection of links for navigating websites.", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-lyra/popover.json b/public/r/styles/base-lyra/popover.json index 598437115..0b46105f3 100644 --- a/public/r/styles/base-lyra/popover.json +++ b/public/r/styles/base-lyra/popover.json @@ -4,7 +4,7 @@ "title": "Popover", "description": "Displays rich content in a floating layer, triggered by a button.", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-lyra/radio-group.json b/public/r/styles/base-lyra/radio-group.json index f108dfc93..141fbedc6 100644 --- a/public/r/styles/base-lyra/radio-group.json +++ b/public/r/styles/base-lyra/radio-group.json @@ -4,7 +4,7 @@ "title": "Radio Group", "description": "A set of checkable buttons, known as radio buttons, where no more than one of the buttons can be checked at a time.", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-lyra/registry.json b/public/r/styles/base-lyra/registry.json index 5f4f21362..5ac1a0665 100644 --- a/public/r/styles/base-lyra/registry.json +++ b/public/r/styles/base-lyra/registry.json @@ -13,7 +13,7 @@ ], "docs": "https://ui.full.dev/components/accordion/", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ @@ -81,7 +81,7 @@ ], "docs": "https://ui.full.dev/components/alert-dialog/", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -432,7 +432,7 @@ ], "docs": "https://ui.full.dev/components/collapsible/", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { @@ -463,8 +463,8 @@ ], "docs": "https://ui.full.dev/components/combobox/", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -531,9 +531,9 @@ ], "docs": "https://ui.full.dev/components/command/", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" @@ -591,7 +591,7 @@ ], "docs": "https://ui.full.dev/components/dialog/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -654,7 +654,7 @@ ], "docs": "https://ui.full.dev/components/dropdown-menu/", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -873,8 +873,8 @@ ], "docs": "https://ui.full.dev/components/hover-card/", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { @@ -1258,7 +1258,7 @@ ], "docs": "https://ui.full.dev/components/navigation-menu/", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -1345,7 +1345,7 @@ ], "docs": "https://ui.full.dev/components/popover/", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { @@ -1440,7 +1440,7 @@ ], "docs": "https://ui.full.dev/components/radio-group/", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { @@ -1490,7 +1490,7 @@ ], "docs": "https://ui.full.dev/components/select/", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ @@ -1594,7 +1594,7 @@ ], "docs": "https://ui.full.dev/components/sheet/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1650,7 +1650,7 @@ ], "docs": "https://ui.full.dev/components/sidebar/", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1771,7 +1771,7 @@ ], "docs": "https://ui.full.dev/components/slider/", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { @@ -1837,7 +1837,7 @@ ], "docs": "https://ui.full.dev/components/switch/", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { @@ -1908,7 +1908,7 @@ ], "docs": "https://ui.full.dev/components/tabs/", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { @@ -1983,7 +1983,7 @@ ], "docs": "https://ui.full.dev/components/toggle/", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { @@ -2030,7 +2030,7 @@ ], "docs": "https://ui.full.dev/components/tooltip/", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { @@ -2165,7 +2165,7 @@ ], "docs": "https://ui.full.dev/components/drawer/", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -2255,7 +2255,7 @@ ], "docs": "https://ui.full.dev/components/resizable/", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { @@ -2286,7 +2286,7 @@ ], "docs": "https://ui.full.dev/components/toast/", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -2353,7 +2353,7 @@ ], "docs": "https://ui.full.dev/components/toggle-group/", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-lyra/resizable.json b/public/r/styles/base-lyra/resizable.json index b8c0fb751..619a1c987 100644 --- a/public/r/styles/base-lyra/resizable.json +++ b/public/r/styles/base-lyra/resizable.json @@ -4,7 +4,7 @@ "title": "Resizable", "description": "Accessible panel groups with pointer and keyboard resizing.", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-lyra/select.json b/public/r/styles/base-lyra/select.json index e2ef56418..bd351dc3e 100644 --- a/public/r/styles/base-lyra/select.json +++ b/public/r/styles/base-lyra/select.json @@ -4,7 +4,7 @@ "title": "Select", "description": "Displays a list of options for the user to pick from, triggered by a button.", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-lyra/sheet.json b/public/r/styles/base-lyra/sheet.json index 91793d9fc..d9d7f4f60 100644 --- a/public/r/styles/base-lyra/sheet.json +++ b/public/r/styles/base-lyra/sheet.json @@ -4,7 +4,7 @@ "title": "Sheet", "description": "A sliding panel component that appears from the edge of the screen.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-lyra/sidebar.json b/public/r/styles/base-lyra/sidebar.json index 42e05409e..046ad0df3 100644 --- a/public/r/styles/base-lyra/sidebar.json +++ b/public/r/styles/base-lyra/sidebar.json @@ -4,7 +4,7 @@ "title": "Sidebar", "description": "A composable, themeable, and customizable Astro sidebar component.", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-lyra/slider.json b/public/r/styles/base-lyra/slider.json index 1feae0a69..eab0de117 100644 --- a/public/r/styles/base-lyra/slider.json +++ b/public/r/styles/base-lyra/slider.json @@ -4,7 +4,7 @@ "title": "Slider", "description": "An input where the user selects a value from within a given range.", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-lyra/switch.json b/public/r/styles/base-lyra/switch.json index 29ca8ccae..070374d8d 100644 --- a/public/r/styles/base-lyra/switch.json +++ b/public/r/styles/base-lyra/switch.json @@ -4,7 +4,7 @@ "title": "Switch", "description": "A control that switches a setting on or off.", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-lyra/tabs.json b/public/r/styles/base-lyra/tabs.json index 0f4752d03..1c554a29d 100644 --- a/public/r/styles/base-lyra/tabs.json +++ b/public/r/styles/base-lyra/tabs.json @@ -4,7 +4,7 @@ "title": "Tabs", "description": "A set of layered sections of content, known as tabs, that display one panel of content at a time.", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-lyra/toast.json b/public/r/styles/base-lyra/toast.json index 5b680444c..3c1a5a1b9 100644 --- a/public/r/styles/base-lyra/toast.json +++ b/public/r/styles/base-lyra/toast.json @@ -4,7 +4,7 @@ "title": "Toast", "description": "A brief notification that appears without interrupting the user.", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-lyra/toggle-group.json b/public/r/styles/base-lyra/toggle-group.json index 49e8ed6f0..c6899f526 100644 --- a/public/r/styles/base-lyra/toggle-group.json +++ b/public/r/styles/base-lyra/toggle-group.json @@ -4,7 +4,7 @@ "title": "Toggle Group", "description": "A set of two-state buttons that can be toggled independently or as a single choice.", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-lyra/toggle.json b/public/r/styles/base-lyra/toggle.json index 30233cf46..d90107409 100644 --- a/public/r/styles/base-lyra/toggle.json +++ b/public/r/styles/base-lyra/toggle.json @@ -4,7 +4,7 @@ "title": "Toggle", "description": "A two-state button that can be either on or off.", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-lyra/tooltip.json b/public/r/styles/base-lyra/tooltip.json index dd2dc0c44..d3fdd8ca3 100644 --- a/public/r/styles/base-lyra/tooltip.json +++ b/public/r/styles/base-lyra/tooltip.json @@ -4,7 +4,7 @@ "title": "Tooltip", "description": "Displays contextual information when a user hovers or focuses a trigger.", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-maia/accordion.json b/public/r/styles/base-maia/accordion.json index 8aa10e279..a7812e964 100644 --- a/public/r/styles/base-maia/accordion.json +++ b/public/r/styles/base-maia/accordion.json @@ -4,7 +4,7 @@ "title": "Accordion", "description": "A vertically stacked set of interactive headings that each reveal a section of content.", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-maia/alert-dialog.json b/public/r/styles/base-maia/alert-dialog.json index a8f12fd12..69a44b969 100644 --- a/public/r/styles/base-maia/alert-dialog.json +++ b/public/r/styles/base-maia/alert-dialog.json @@ -4,7 +4,7 @@ "title": "Alert Dialog", "description": "A modal dialog for important confirmations that expects a response.", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-maia/collapsible.json b/public/r/styles/base-maia/collapsible.json index beff3692c..83e95f354 100644 --- a/public/r/styles/base-maia/collapsible.json +++ b/public/r/styles/base-maia/collapsible.json @@ -4,7 +4,7 @@ "title": "Collapsible", "description": "An interactive component which expands/collapses a panel.", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-maia/combobox.json b/public/r/styles/base-maia/combobox.json index 3196e27a5..30b4873ca 100644 --- a/public/r/styles/base-maia/combobox.json +++ b/public/r/styles/base-maia/combobox.json @@ -4,8 +4,8 @@ "title": "Combobox", "description": "Autocomplete input with a list of suggestions.", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-maia/command.json b/public/r/styles/base-maia/command.json index a0a932b4e..281e6cbc4 100644 --- a/public/r/styles/base-maia/command.json +++ b/public/r/styles/base-maia/command.json @@ -4,9 +4,9 @@ "title": "Command", "description": "Command menu for search and quick actions.", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" diff --git a/public/r/styles/base-maia/dialog.json b/public/r/styles/base-maia/dialog.json index 67d168a1f..9ea5507b4 100644 --- a/public/r/styles/base-maia/dialog.json +++ b/public/r/styles/base-maia/dialog.json @@ -4,7 +4,7 @@ "title": "Dialog", "description": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-maia/drawer.json b/public/r/styles/base-maia/drawer.json index f5f4667f3..fd0976db9 100644 --- a/public/r/styles/base-maia/drawer.json +++ b/public/r/styles/base-maia/drawer.json @@ -4,7 +4,7 @@ "title": "Drawer", "description": "A drawer component that slides in from any edge of the screen.", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-maia/dropdown-menu.json b/public/r/styles/base-maia/dropdown-menu.json index 85cb7ad59..5880a5fbf 100644 --- a/public/r/styles/base-maia/dropdown-menu.json +++ b/public/r/styles/base-maia/dropdown-menu.json @@ -4,7 +4,7 @@ "title": "Dropdown Menu", "description": "Displays a menu to the user, such as a set of actions or functions, triggered by a button.", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-maia/hover-card.json b/public/r/styles/base-maia/hover-card.json index d0f758eca..001cdfdda 100644 --- a/public/r/styles/base-maia/hover-card.json +++ b/public/r/styles/base-maia/hover-card.json @@ -4,8 +4,8 @@ "title": "Hover Card", "description": "For sighted users to preview content available behind a link.", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-maia/navigation-menu.json b/public/r/styles/base-maia/navigation-menu.json index 128d24446..7a1d12def 100644 --- a/public/r/styles/base-maia/navigation-menu.json +++ b/public/r/styles/base-maia/navigation-menu.json @@ -4,7 +4,7 @@ "title": "Navigation Menu", "description": "A collection of links for navigating websites.", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-maia/popover.json b/public/r/styles/base-maia/popover.json index 91cbff198..1377eca1f 100644 --- a/public/r/styles/base-maia/popover.json +++ b/public/r/styles/base-maia/popover.json @@ -4,7 +4,7 @@ "title": "Popover", "description": "Displays rich content in a floating layer, triggered by a button.", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-maia/radio-group.json b/public/r/styles/base-maia/radio-group.json index 62491c23e..5c922ae20 100644 --- a/public/r/styles/base-maia/radio-group.json +++ b/public/r/styles/base-maia/radio-group.json @@ -4,7 +4,7 @@ "title": "Radio Group", "description": "A set of checkable buttons, known as radio buttons, where no more than one of the buttons can be checked at a time.", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-maia/registry.json b/public/r/styles/base-maia/registry.json index c2bb2bef2..34d319d54 100644 --- a/public/r/styles/base-maia/registry.json +++ b/public/r/styles/base-maia/registry.json @@ -13,7 +13,7 @@ ], "docs": "https://ui.full.dev/components/accordion/", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ @@ -81,7 +81,7 @@ ], "docs": "https://ui.full.dev/components/alert-dialog/", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -432,7 +432,7 @@ ], "docs": "https://ui.full.dev/components/collapsible/", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { @@ -463,8 +463,8 @@ ], "docs": "https://ui.full.dev/components/combobox/", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -531,9 +531,9 @@ ], "docs": "https://ui.full.dev/components/command/", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" @@ -591,7 +591,7 @@ ], "docs": "https://ui.full.dev/components/dialog/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -654,7 +654,7 @@ ], "docs": "https://ui.full.dev/components/dropdown-menu/", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -873,8 +873,8 @@ ], "docs": "https://ui.full.dev/components/hover-card/", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { @@ -1258,7 +1258,7 @@ ], "docs": "https://ui.full.dev/components/navigation-menu/", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -1345,7 +1345,7 @@ ], "docs": "https://ui.full.dev/components/popover/", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { @@ -1440,7 +1440,7 @@ ], "docs": "https://ui.full.dev/components/radio-group/", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { @@ -1490,7 +1490,7 @@ ], "docs": "https://ui.full.dev/components/select/", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ @@ -1594,7 +1594,7 @@ ], "docs": "https://ui.full.dev/components/sheet/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1650,7 +1650,7 @@ ], "docs": "https://ui.full.dev/components/sidebar/", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1771,7 +1771,7 @@ ], "docs": "https://ui.full.dev/components/slider/", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { @@ -1837,7 +1837,7 @@ ], "docs": "https://ui.full.dev/components/switch/", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { @@ -1908,7 +1908,7 @@ ], "docs": "https://ui.full.dev/components/tabs/", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { @@ -1983,7 +1983,7 @@ ], "docs": "https://ui.full.dev/components/toggle/", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { @@ -2030,7 +2030,7 @@ ], "docs": "https://ui.full.dev/components/tooltip/", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { @@ -2165,7 +2165,7 @@ ], "docs": "https://ui.full.dev/components/drawer/", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -2255,7 +2255,7 @@ ], "docs": "https://ui.full.dev/components/resizable/", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { @@ -2286,7 +2286,7 @@ ], "docs": "https://ui.full.dev/components/toast/", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -2353,7 +2353,7 @@ ], "docs": "https://ui.full.dev/components/toggle-group/", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-maia/resizable.json b/public/r/styles/base-maia/resizable.json index 03981b9cf..785b93e53 100644 --- a/public/r/styles/base-maia/resizable.json +++ b/public/r/styles/base-maia/resizable.json @@ -4,7 +4,7 @@ "title": "Resizable", "description": "Accessible panel groups with pointer and keyboard resizing.", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-maia/select.json b/public/r/styles/base-maia/select.json index e4e4a0110..c1673463d 100644 --- a/public/r/styles/base-maia/select.json +++ b/public/r/styles/base-maia/select.json @@ -4,7 +4,7 @@ "title": "Select", "description": "Displays a list of options for the user to pick from, triggered by a button.", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-maia/sheet.json b/public/r/styles/base-maia/sheet.json index 05dd72742..329a496c8 100644 --- a/public/r/styles/base-maia/sheet.json +++ b/public/r/styles/base-maia/sheet.json @@ -4,7 +4,7 @@ "title": "Sheet", "description": "A sliding panel component that appears from the edge of the screen.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-maia/sidebar.json b/public/r/styles/base-maia/sidebar.json index 505eefb46..7702e1ac5 100644 --- a/public/r/styles/base-maia/sidebar.json +++ b/public/r/styles/base-maia/sidebar.json @@ -4,7 +4,7 @@ "title": "Sidebar", "description": "A composable, themeable, and customizable Astro sidebar component.", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-maia/slider.json b/public/r/styles/base-maia/slider.json index 92b2a55bd..7fc99c156 100644 --- a/public/r/styles/base-maia/slider.json +++ b/public/r/styles/base-maia/slider.json @@ -4,7 +4,7 @@ "title": "Slider", "description": "An input where the user selects a value from within a given range.", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-maia/switch.json b/public/r/styles/base-maia/switch.json index 4bd1a2515..c83b900c4 100644 --- a/public/r/styles/base-maia/switch.json +++ b/public/r/styles/base-maia/switch.json @@ -4,7 +4,7 @@ "title": "Switch", "description": "A control that switches a setting on or off.", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-maia/tabs.json b/public/r/styles/base-maia/tabs.json index 246a1ee88..49fde8074 100644 --- a/public/r/styles/base-maia/tabs.json +++ b/public/r/styles/base-maia/tabs.json @@ -4,7 +4,7 @@ "title": "Tabs", "description": "A set of layered sections of content, known as tabs, that display one panel of content at a time.", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-maia/toast.json b/public/r/styles/base-maia/toast.json index d2f72c690..d86e3816f 100644 --- a/public/r/styles/base-maia/toast.json +++ b/public/r/styles/base-maia/toast.json @@ -4,7 +4,7 @@ "title": "Toast", "description": "A brief notification that appears without interrupting the user.", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-maia/toggle-group.json b/public/r/styles/base-maia/toggle-group.json index d48f87e56..7a27f0752 100644 --- a/public/r/styles/base-maia/toggle-group.json +++ b/public/r/styles/base-maia/toggle-group.json @@ -4,7 +4,7 @@ "title": "Toggle Group", "description": "A set of two-state buttons that can be toggled independently or as a single choice.", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-maia/toggle.json b/public/r/styles/base-maia/toggle.json index 3cb821f25..32855038b 100644 --- a/public/r/styles/base-maia/toggle.json +++ b/public/r/styles/base-maia/toggle.json @@ -4,7 +4,7 @@ "title": "Toggle", "description": "A two-state button that can be either on or off.", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-maia/tooltip.json b/public/r/styles/base-maia/tooltip.json index c314ec9d0..e7a6d1257 100644 --- a/public/r/styles/base-maia/tooltip.json +++ b/public/r/styles/base-maia/tooltip.json @@ -4,7 +4,7 @@ "title": "Tooltip", "description": "Displays contextual information when a user hovers or focuses a trigger.", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-mira/accordion.json b/public/r/styles/base-mira/accordion.json index 0e801d202..2504480e1 100644 --- a/public/r/styles/base-mira/accordion.json +++ b/public/r/styles/base-mira/accordion.json @@ -4,7 +4,7 @@ "title": "Accordion", "description": "A vertically stacked set of interactive headings that each reveal a section of content.", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-mira/alert-dialog.json b/public/r/styles/base-mira/alert-dialog.json index b4ca701b5..00da30c7e 100644 --- a/public/r/styles/base-mira/alert-dialog.json +++ b/public/r/styles/base-mira/alert-dialog.json @@ -4,7 +4,7 @@ "title": "Alert Dialog", "description": "A modal dialog for important confirmations that expects a response.", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-mira/collapsible.json b/public/r/styles/base-mira/collapsible.json index beff3692c..83e95f354 100644 --- a/public/r/styles/base-mira/collapsible.json +++ b/public/r/styles/base-mira/collapsible.json @@ -4,7 +4,7 @@ "title": "Collapsible", "description": "An interactive component which expands/collapses a panel.", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-mira/combobox.json b/public/r/styles/base-mira/combobox.json index 615d03b08..2dfc407cc 100644 --- a/public/r/styles/base-mira/combobox.json +++ b/public/r/styles/base-mira/combobox.json @@ -4,8 +4,8 @@ "title": "Combobox", "description": "Autocomplete input with a list of suggestions.", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-mira/command.json b/public/r/styles/base-mira/command.json index 66377de98..2862d9a52 100644 --- a/public/r/styles/base-mira/command.json +++ b/public/r/styles/base-mira/command.json @@ -4,9 +4,9 @@ "title": "Command", "description": "Command menu for search and quick actions.", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" diff --git a/public/r/styles/base-mira/dialog.json b/public/r/styles/base-mira/dialog.json index edec3acc8..4da535170 100644 --- a/public/r/styles/base-mira/dialog.json +++ b/public/r/styles/base-mira/dialog.json @@ -4,7 +4,7 @@ "title": "Dialog", "description": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-mira/drawer.json b/public/r/styles/base-mira/drawer.json index e136ecc91..b92a46078 100644 --- a/public/r/styles/base-mira/drawer.json +++ b/public/r/styles/base-mira/drawer.json @@ -4,7 +4,7 @@ "title": "Drawer", "description": "A drawer component that slides in from any edge of the screen.", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-mira/dropdown-menu.json b/public/r/styles/base-mira/dropdown-menu.json index a63d4258c..4eafeca73 100644 --- a/public/r/styles/base-mira/dropdown-menu.json +++ b/public/r/styles/base-mira/dropdown-menu.json @@ -4,7 +4,7 @@ "title": "Dropdown Menu", "description": "Displays a menu to the user, such as a set of actions or functions, triggered by a button.", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-mira/hover-card.json b/public/r/styles/base-mira/hover-card.json index dc90bc750..e06f50a22 100644 --- a/public/r/styles/base-mira/hover-card.json +++ b/public/r/styles/base-mira/hover-card.json @@ -4,8 +4,8 @@ "title": "Hover Card", "description": "For sighted users to preview content available behind a link.", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-mira/navigation-menu.json b/public/r/styles/base-mira/navigation-menu.json index cf6e3f636..63c1df8a3 100644 --- a/public/r/styles/base-mira/navigation-menu.json +++ b/public/r/styles/base-mira/navigation-menu.json @@ -4,7 +4,7 @@ "title": "Navigation Menu", "description": "A collection of links for navigating websites.", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-mira/popover.json b/public/r/styles/base-mira/popover.json index 80617ed76..34d276a86 100644 --- a/public/r/styles/base-mira/popover.json +++ b/public/r/styles/base-mira/popover.json @@ -4,7 +4,7 @@ "title": "Popover", "description": "Displays rich content in a floating layer, triggered by a button.", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-mira/radio-group.json b/public/r/styles/base-mira/radio-group.json index 62491c23e..5c922ae20 100644 --- a/public/r/styles/base-mira/radio-group.json +++ b/public/r/styles/base-mira/radio-group.json @@ -4,7 +4,7 @@ "title": "Radio Group", "description": "A set of checkable buttons, known as radio buttons, where no more than one of the buttons can be checked at a time.", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-mira/registry.json b/public/r/styles/base-mira/registry.json index d36fc2bf9..c5534d20c 100644 --- a/public/r/styles/base-mira/registry.json +++ b/public/r/styles/base-mira/registry.json @@ -13,7 +13,7 @@ ], "docs": "https://ui.full.dev/components/accordion/", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ @@ -81,7 +81,7 @@ ], "docs": "https://ui.full.dev/components/alert-dialog/", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -432,7 +432,7 @@ ], "docs": "https://ui.full.dev/components/collapsible/", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { @@ -463,8 +463,8 @@ ], "docs": "https://ui.full.dev/components/combobox/", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -531,9 +531,9 @@ ], "docs": "https://ui.full.dev/components/command/", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" @@ -591,7 +591,7 @@ ], "docs": "https://ui.full.dev/components/dialog/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -654,7 +654,7 @@ ], "docs": "https://ui.full.dev/components/dropdown-menu/", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -873,8 +873,8 @@ ], "docs": "https://ui.full.dev/components/hover-card/", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { @@ -1258,7 +1258,7 @@ ], "docs": "https://ui.full.dev/components/navigation-menu/", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -1345,7 +1345,7 @@ ], "docs": "https://ui.full.dev/components/popover/", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { @@ -1440,7 +1440,7 @@ ], "docs": "https://ui.full.dev/components/radio-group/", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { @@ -1490,7 +1490,7 @@ ], "docs": "https://ui.full.dev/components/select/", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ @@ -1594,7 +1594,7 @@ ], "docs": "https://ui.full.dev/components/sheet/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1650,7 +1650,7 @@ ], "docs": "https://ui.full.dev/components/sidebar/", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1771,7 +1771,7 @@ ], "docs": "https://ui.full.dev/components/slider/", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { @@ -1837,7 +1837,7 @@ ], "docs": "https://ui.full.dev/components/switch/", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { @@ -1908,7 +1908,7 @@ ], "docs": "https://ui.full.dev/components/tabs/", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { @@ -1983,7 +1983,7 @@ ], "docs": "https://ui.full.dev/components/toggle/", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { @@ -2030,7 +2030,7 @@ ], "docs": "https://ui.full.dev/components/tooltip/", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { @@ -2165,7 +2165,7 @@ ], "docs": "https://ui.full.dev/components/drawer/", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -2255,7 +2255,7 @@ ], "docs": "https://ui.full.dev/components/resizable/", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { @@ -2286,7 +2286,7 @@ ], "docs": "https://ui.full.dev/components/toast/", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -2353,7 +2353,7 @@ ], "docs": "https://ui.full.dev/components/toggle-group/", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-mira/resizable.json b/public/r/styles/base-mira/resizable.json index 03981b9cf..785b93e53 100644 --- a/public/r/styles/base-mira/resizable.json +++ b/public/r/styles/base-mira/resizable.json @@ -4,7 +4,7 @@ "title": "Resizable", "description": "Accessible panel groups with pointer and keyboard resizing.", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-mira/select.json b/public/r/styles/base-mira/select.json index 83629d6d8..39cd6c0f1 100644 --- a/public/r/styles/base-mira/select.json +++ b/public/r/styles/base-mira/select.json @@ -4,7 +4,7 @@ "title": "Select", "description": "Displays a list of options for the user to pick from, triggered by a button.", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-mira/sheet.json b/public/r/styles/base-mira/sheet.json index 415322e39..6d7413681 100644 --- a/public/r/styles/base-mira/sheet.json +++ b/public/r/styles/base-mira/sheet.json @@ -4,7 +4,7 @@ "title": "Sheet", "description": "A sliding panel component that appears from the edge of the screen.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-mira/sidebar.json b/public/r/styles/base-mira/sidebar.json index 027864111..97fdc06b0 100644 --- a/public/r/styles/base-mira/sidebar.json +++ b/public/r/styles/base-mira/sidebar.json @@ -4,7 +4,7 @@ "title": "Sidebar", "description": "A composable, themeable, and customizable Astro sidebar component.", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-mira/slider.json b/public/r/styles/base-mira/slider.json index 94af523da..eae65d8f5 100644 --- a/public/r/styles/base-mira/slider.json +++ b/public/r/styles/base-mira/slider.json @@ -4,7 +4,7 @@ "title": "Slider", "description": "An input where the user selects a value from within a given range.", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-mira/switch.json b/public/r/styles/base-mira/switch.json index 780ed33c5..f07016fc8 100644 --- a/public/r/styles/base-mira/switch.json +++ b/public/r/styles/base-mira/switch.json @@ -4,7 +4,7 @@ "title": "Switch", "description": "A control that switches a setting on or off.", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-mira/tabs.json b/public/r/styles/base-mira/tabs.json index 502f2c65b..c0f7e6068 100644 --- a/public/r/styles/base-mira/tabs.json +++ b/public/r/styles/base-mira/tabs.json @@ -4,7 +4,7 @@ "title": "Tabs", "description": "A set of layered sections of content, known as tabs, that display one panel of content at a time.", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-mira/toast.json b/public/r/styles/base-mira/toast.json index 5e677b424..6d36ac302 100644 --- a/public/r/styles/base-mira/toast.json +++ b/public/r/styles/base-mira/toast.json @@ -4,7 +4,7 @@ "title": "Toast", "description": "A brief notification that appears without interrupting the user.", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-mira/toggle-group.json b/public/r/styles/base-mira/toggle-group.json index 3867e1c2c..6d2dad1df 100644 --- a/public/r/styles/base-mira/toggle-group.json +++ b/public/r/styles/base-mira/toggle-group.json @@ -4,7 +4,7 @@ "title": "Toggle Group", "description": "A set of two-state buttons that can be toggled independently or as a single choice.", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-mira/toggle.json b/public/r/styles/base-mira/toggle.json index a06c3d7e3..498698170 100644 --- a/public/r/styles/base-mira/toggle.json +++ b/public/r/styles/base-mira/toggle.json @@ -4,7 +4,7 @@ "title": "Toggle", "description": "A two-state button that can be either on or off.", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-mira/tooltip.json b/public/r/styles/base-mira/tooltip.json index e8c2f3653..9928e8b88 100644 --- a/public/r/styles/base-mira/tooltip.json +++ b/public/r/styles/base-mira/tooltip.json @@ -4,7 +4,7 @@ "title": "Tooltip", "description": "Displays contextual information when a user hovers or focuses a trigger.", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-nova/accordion.json b/public/r/styles/base-nova/accordion.json index e07aa560b..51554b0cd 100644 --- a/public/r/styles/base-nova/accordion.json +++ b/public/r/styles/base-nova/accordion.json @@ -4,7 +4,7 @@ "title": "Accordion", "description": "A vertically stacked set of interactive headings that each reveal a section of content.", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-nova/alert-dialog.json b/public/r/styles/base-nova/alert-dialog.json index 4125cea9c..9493c27a7 100644 --- a/public/r/styles/base-nova/alert-dialog.json +++ b/public/r/styles/base-nova/alert-dialog.json @@ -4,7 +4,7 @@ "title": "Alert Dialog", "description": "A modal dialog for important confirmations that expects a response.", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-nova/collapsible.json b/public/r/styles/base-nova/collapsible.json index beff3692c..83e95f354 100644 --- a/public/r/styles/base-nova/collapsible.json +++ b/public/r/styles/base-nova/collapsible.json @@ -4,7 +4,7 @@ "title": "Collapsible", "description": "An interactive component which expands/collapses a panel.", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-nova/combobox.json b/public/r/styles/base-nova/combobox.json index 713e4b536..c97da1cfb 100644 --- a/public/r/styles/base-nova/combobox.json +++ b/public/r/styles/base-nova/combobox.json @@ -4,8 +4,8 @@ "title": "Combobox", "description": "Autocomplete input with a list of suggestions.", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-nova/command.json b/public/r/styles/base-nova/command.json index 79e09dd33..9d422e744 100644 --- a/public/r/styles/base-nova/command.json +++ b/public/r/styles/base-nova/command.json @@ -4,9 +4,9 @@ "title": "Command", "description": "Command menu for search and quick actions.", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" diff --git a/public/r/styles/base-nova/dialog.json b/public/r/styles/base-nova/dialog.json index 7815479a7..71eab1eec 100644 --- a/public/r/styles/base-nova/dialog.json +++ b/public/r/styles/base-nova/dialog.json @@ -4,7 +4,7 @@ "title": "Dialog", "description": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-nova/drawer.json b/public/r/styles/base-nova/drawer.json index 85186fa0e..79884b6fe 100644 --- a/public/r/styles/base-nova/drawer.json +++ b/public/r/styles/base-nova/drawer.json @@ -4,7 +4,7 @@ "title": "Drawer", "description": "A drawer component that slides in from any edge of the screen.", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-nova/dropdown-menu.json b/public/r/styles/base-nova/dropdown-menu.json index 4c9b590b6..9630db90c 100644 --- a/public/r/styles/base-nova/dropdown-menu.json +++ b/public/r/styles/base-nova/dropdown-menu.json @@ -4,7 +4,7 @@ "title": "Dropdown Menu", "description": "Displays a menu to the user, such as a set of actions or functions, triggered by a button.", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-nova/hover-card.json b/public/r/styles/base-nova/hover-card.json index f5976bbd2..41a4b6e57 100644 --- a/public/r/styles/base-nova/hover-card.json +++ b/public/r/styles/base-nova/hover-card.json @@ -4,8 +4,8 @@ "title": "Hover Card", "description": "For sighted users to preview content available behind a link.", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-nova/navigation-menu.json b/public/r/styles/base-nova/navigation-menu.json index dc3fa4577..e3b0c2070 100644 --- a/public/r/styles/base-nova/navigation-menu.json +++ b/public/r/styles/base-nova/navigation-menu.json @@ -4,7 +4,7 @@ "title": "Navigation Menu", "description": "A collection of links for navigating websites.", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-nova/popover.json b/public/r/styles/base-nova/popover.json index 30c22e4df..8ac610a98 100644 --- a/public/r/styles/base-nova/popover.json +++ b/public/r/styles/base-nova/popover.json @@ -4,7 +4,7 @@ "title": "Popover", "description": "Displays rich content in a floating layer, triggered by a button.", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-nova/radio-group.json b/public/r/styles/base-nova/radio-group.json index f108dfc93..141fbedc6 100644 --- a/public/r/styles/base-nova/radio-group.json +++ b/public/r/styles/base-nova/radio-group.json @@ -4,7 +4,7 @@ "title": "Radio Group", "description": "A set of checkable buttons, known as radio buttons, where no more than one of the buttons can be checked at a time.", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-nova/registry.json b/public/r/styles/base-nova/registry.json index c2520628b..baa1d54a1 100644 --- a/public/r/styles/base-nova/registry.json +++ b/public/r/styles/base-nova/registry.json @@ -13,7 +13,7 @@ ], "docs": "https://ui.full.dev/components/accordion/", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ @@ -81,7 +81,7 @@ ], "docs": "https://ui.full.dev/components/alert-dialog/", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -432,7 +432,7 @@ ], "docs": "https://ui.full.dev/components/collapsible/", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { @@ -463,8 +463,8 @@ ], "docs": "https://ui.full.dev/components/combobox/", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -531,9 +531,9 @@ ], "docs": "https://ui.full.dev/components/command/", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" @@ -591,7 +591,7 @@ ], "docs": "https://ui.full.dev/components/dialog/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -654,7 +654,7 @@ ], "docs": "https://ui.full.dev/components/dropdown-menu/", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -873,8 +873,8 @@ ], "docs": "https://ui.full.dev/components/hover-card/", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { @@ -1258,7 +1258,7 @@ ], "docs": "https://ui.full.dev/components/navigation-menu/", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -1345,7 +1345,7 @@ ], "docs": "https://ui.full.dev/components/popover/", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { @@ -1440,7 +1440,7 @@ ], "docs": "https://ui.full.dev/components/radio-group/", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { @@ -1490,7 +1490,7 @@ ], "docs": "https://ui.full.dev/components/select/", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ @@ -1594,7 +1594,7 @@ ], "docs": "https://ui.full.dev/components/sheet/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1650,7 +1650,7 @@ ], "docs": "https://ui.full.dev/components/sidebar/", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1771,7 +1771,7 @@ ], "docs": "https://ui.full.dev/components/slider/", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { @@ -1837,7 +1837,7 @@ ], "docs": "https://ui.full.dev/components/switch/", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { @@ -1908,7 +1908,7 @@ ], "docs": "https://ui.full.dev/components/tabs/", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { @@ -1983,7 +1983,7 @@ ], "docs": "https://ui.full.dev/components/toggle/", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { @@ -2030,7 +2030,7 @@ ], "docs": "https://ui.full.dev/components/tooltip/", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { @@ -2165,7 +2165,7 @@ ], "docs": "https://ui.full.dev/components/drawer/", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -2255,7 +2255,7 @@ ], "docs": "https://ui.full.dev/components/resizable/", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { @@ -2286,7 +2286,7 @@ ], "docs": "https://ui.full.dev/components/toast/", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -2353,7 +2353,7 @@ ], "docs": "https://ui.full.dev/components/toggle-group/", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-nova/resizable.json b/public/r/styles/base-nova/resizable.json index 03981b9cf..785b93e53 100644 --- a/public/r/styles/base-nova/resizable.json +++ b/public/r/styles/base-nova/resizable.json @@ -4,7 +4,7 @@ "title": "Resizable", "description": "Accessible panel groups with pointer and keyboard resizing.", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-nova/select.json b/public/r/styles/base-nova/select.json index 7923f2667..a42c3bc7f 100644 --- a/public/r/styles/base-nova/select.json +++ b/public/r/styles/base-nova/select.json @@ -4,7 +4,7 @@ "title": "Select", "description": "Displays a list of options for the user to pick from, triggered by a button.", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-nova/sheet.json b/public/r/styles/base-nova/sheet.json index 5a859036f..da7dbf925 100644 --- a/public/r/styles/base-nova/sheet.json +++ b/public/r/styles/base-nova/sheet.json @@ -4,7 +4,7 @@ "title": "Sheet", "description": "A sliding panel component that appears from the edge of the screen.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-nova/sidebar.json b/public/r/styles/base-nova/sidebar.json index 3298d7fd3..987055775 100644 --- a/public/r/styles/base-nova/sidebar.json +++ b/public/r/styles/base-nova/sidebar.json @@ -4,7 +4,7 @@ "title": "Sidebar", "description": "A composable, themeable, and customizable Astro sidebar component.", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-nova/slider.json b/public/r/styles/base-nova/slider.json index defd8c41b..5ba55adc9 100644 --- a/public/r/styles/base-nova/slider.json +++ b/public/r/styles/base-nova/slider.json @@ -4,7 +4,7 @@ "title": "Slider", "description": "An input where the user selects a value from within a given range.", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-nova/switch.json b/public/r/styles/base-nova/switch.json index 352ee664e..375ccc014 100644 --- a/public/r/styles/base-nova/switch.json +++ b/public/r/styles/base-nova/switch.json @@ -4,7 +4,7 @@ "title": "Switch", "description": "A control that switches a setting on or off.", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-nova/tabs.json b/public/r/styles/base-nova/tabs.json index e8f807405..97a3d04b1 100644 --- a/public/r/styles/base-nova/tabs.json +++ b/public/r/styles/base-nova/tabs.json @@ -4,7 +4,7 @@ "title": "Tabs", "description": "A set of layered sections of content, known as tabs, that display one panel of content at a time.", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-nova/toast.json b/public/r/styles/base-nova/toast.json index d2f72c690..d86e3816f 100644 --- a/public/r/styles/base-nova/toast.json +++ b/public/r/styles/base-nova/toast.json @@ -4,7 +4,7 @@ "title": "Toast", "description": "A brief notification that appears without interrupting the user.", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-nova/toggle-group.json b/public/r/styles/base-nova/toggle-group.json index 2aabe2fba..5caa0ee97 100644 --- a/public/r/styles/base-nova/toggle-group.json +++ b/public/r/styles/base-nova/toggle-group.json @@ -4,7 +4,7 @@ "title": "Toggle Group", "description": "A set of two-state buttons that can be toggled independently or as a single choice.", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-nova/toggle.json b/public/r/styles/base-nova/toggle.json index 633ba7895..5b5068d09 100644 --- a/public/r/styles/base-nova/toggle.json +++ b/public/r/styles/base-nova/toggle.json @@ -4,7 +4,7 @@ "title": "Toggle", "description": "A two-state button that can be either on or off.", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-nova/tooltip.json b/public/r/styles/base-nova/tooltip.json index e8c2f3653..9928e8b88 100644 --- a/public/r/styles/base-nova/tooltip.json +++ b/public/r/styles/base-nova/tooltip.json @@ -4,7 +4,7 @@ "title": "Tooltip", "description": "Displays contextual information when a user hovers or focuses a trigger.", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-rhea/accordion.json b/public/r/styles/base-rhea/accordion.json index 8aa10e279..a7812e964 100644 --- a/public/r/styles/base-rhea/accordion.json +++ b/public/r/styles/base-rhea/accordion.json @@ -4,7 +4,7 @@ "title": "Accordion", "description": "A vertically stacked set of interactive headings that each reveal a section of content.", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-rhea/alert-dialog.json b/public/r/styles/base-rhea/alert-dialog.json index 1355c7856..78b9245a9 100644 --- a/public/r/styles/base-rhea/alert-dialog.json +++ b/public/r/styles/base-rhea/alert-dialog.json @@ -4,7 +4,7 @@ "title": "Alert Dialog", "description": "A modal dialog for important confirmations that expects a response.", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-rhea/collapsible.json b/public/r/styles/base-rhea/collapsible.json index beff3692c..83e95f354 100644 --- a/public/r/styles/base-rhea/collapsible.json +++ b/public/r/styles/base-rhea/collapsible.json @@ -4,7 +4,7 @@ "title": "Collapsible", "description": "An interactive component which expands/collapses a panel.", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-rhea/combobox.json b/public/r/styles/base-rhea/combobox.json index 4d16c704a..25ef853de 100644 --- a/public/r/styles/base-rhea/combobox.json +++ b/public/r/styles/base-rhea/combobox.json @@ -4,8 +4,8 @@ "title": "Combobox", "description": "Autocomplete input with a list of suggestions.", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-rhea/command.json b/public/r/styles/base-rhea/command.json index 0396f2840..d814c70fa 100644 --- a/public/r/styles/base-rhea/command.json +++ b/public/r/styles/base-rhea/command.json @@ -4,9 +4,9 @@ "title": "Command", "description": "Command menu for search and quick actions.", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" diff --git a/public/r/styles/base-rhea/dialog.json b/public/r/styles/base-rhea/dialog.json index fd625ff36..efda77956 100644 --- a/public/r/styles/base-rhea/dialog.json +++ b/public/r/styles/base-rhea/dialog.json @@ -4,7 +4,7 @@ "title": "Dialog", "description": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-rhea/drawer.json b/public/r/styles/base-rhea/drawer.json index 1c219db43..a393bd088 100644 --- a/public/r/styles/base-rhea/drawer.json +++ b/public/r/styles/base-rhea/drawer.json @@ -4,7 +4,7 @@ "title": "Drawer", "description": "A drawer component that slides in from any edge of the screen.", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-rhea/dropdown-menu.json b/public/r/styles/base-rhea/dropdown-menu.json index 199a8372f..f5b240e5f 100644 --- a/public/r/styles/base-rhea/dropdown-menu.json +++ b/public/r/styles/base-rhea/dropdown-menu.json @@ -4,7 +4,7 @@ "title": "Dropdown Menu", "description": "Displays a menu to the user, such as a set of actions or functions, triggered by a button.", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-rhea/hover-card.json b/public/r/styles/base-rhea/hover-card.json index af026df2f..82104de3b 100644 --- a/public/r/styles/base-rhea/hover-card.json +++ b/public/r/styles/base-rhea/hover-card.json @@ -4,8 +4,8 @@ "title": "Hover Card", "description": "For sighted users to preview content available behind a link.", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-rhea/navigation-menu.json b/public/r/styles/base-rhea/navigation-menu.json index cc1f75cf9..fe1a9ad0f 100644 --- a/public/r/styles/base-rhea/navigation-menu.json +++ b/public/r/styles/base-rhea/navigation-menu.json @@ -4,7 +4,7 @@ "title": "Navigation Menu", "description": "A collection of links for navigating websites.", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-rhea/popover.json b/public/r/styles/base-rhea/popover.json index e5df45afd..cb5cc89cb 100644 --- a/public/r/styles/base-rhea/popover.json +++ b/public/r/styles/base-rhea/popover.json @@ -4,7 +4,7 @@ "title": "Popover", "description": "Displays rich content in a floating layer, triggered by a button.", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-rhea/radio-group.json b/public/r/styles/base-rhea/radio-group.json index cf8f8dc50..9f47b6770 100644 --- a/public/r/styles/base-rhea/radio-group.json +++ b/public/r/styles/base-rhea/radio-group.json @@ -4,7 +4,7 @@ "title": "Radio Group", "description": "A set of checkable buttons, known as radio buttons, where no more than one of the buttons can be checked at a time.", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-rhea/registry.json b/public/r/styles/base-rhea/registry.json index 1d9d85ac5..7d5b2f011 100644 --- a/public/r/styles/base-rhea/registry.json +++ b/public/r/styles/base-rhea/registry.json @@ -13,7 +13,7 @@ ], "docs": "https://ui.full.dev/components/accordion/", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ @@ -81,7 +81,7 @@ ], "docs": "https://ui.full.dev/components/alert-dialog/", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -432,7 +432,7 @@ ], "docs": "https://ui.full.dev/components/collapsible/", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { @@ -463,8 +463,8 @@ ], "docs": "https://ui.full.dev/components/combobox/", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -531,9 +531,9 @@ ], "docs": "https://ui.full.dev/components/command/", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" @@ -591,7 +591,7 @@ ], "docs": "https://ui.full.dev/components/dialog/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -654,7 +654,7 @@ ], "docs": "https://ui.full.dev/components/dropdown-menu/", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -873,8 +873,8 @@ ], "docs": "https://ui.full.dev/components/hover-card/", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { @@ -1258,7 +1258,7 @@ ], "docs": "https://ui.full.dev/components/navigation-menu/", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -1345,7 +1345,7 @@ ], "docs": "https://ui.full.dev/components/popover/", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { @@ -1440,7 +1440,7 @@ ], "docs": "https://ui.full.dev/components/radio-group/", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { @@ -1490,7 +1490,7 @@ ], "docs": "https://ui.full.dev/components/select/", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ @@ -1594,7 +1594,7 @@ ], "docs": "https://ui.full.dev/components/sheet/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1650,7 +1650,7 @@ ], "docs": "https://ui.full.dev/components/sidebar/", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1771,7 +1771,7 @@ ], "docs": "https://ui.full.dev/components/slider/", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { @@ -1837,7 +1837,7 @@ ], "docs": "https://ui.full.dev/components/switch/", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { @@ -1908,7 +1908,7 @@ ], "docs": "https://ui.full.dev/components/tabs/", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { @@ -1983,7 +1983,7 @@ ], "docs": "https://ui.full.dev/components/toggle/", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { @@ -2030,7 +2030,7 @@ ], "docs": "https://ui.full.dev/components/tooltip/", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { @@ -2165,7 +2165,7 @@ ], "docs": "https://ui.full.dev/components/drawer/", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -2255,7 +2255,7 @@ ], "docs": "https://ui.full.dev/components/resizable/", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { @@ -2286,7 +2286,7 @@ ], "docs": "https://ui.full.dev/components/toast/", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -2353,7 +2353,7 @@ ], "docs": "https://ui.full.dev/components/toggle-group/", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-rhea/resizable.json b/public/r/styles/base-rhea/resizable.json index 03981b9cf..785b93e53 100644 --- a/public/r/styles/base-rhea/resizable.json +++ b/public/r/styles/base-rhea/resizable.json @@ -4,7 +4,7 @@ "title": "Resizable", "description": "Accessible panel groups with pointer and keyboard resizing.", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-rhea/select.json b/public/r/styles/base-rhea/select.json index 1d6a829e3..3b5ac7a3a 100644 --- a/public/r/styles/base-rhea/select.json +++ b/public/r/styles/base-rhea/select.json @@ -4,7 +4,7 @@ "title": "Select", "description": "Displays a list of options for the user to pick from, triggered by a button.", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-rhea/sheet.json b/public/r/styles/base-rhea/sheet.json index c1d1df178..1d8d0523a 100644 --- a/public/r/styles/base-rhea/sheet.json +++ b/public/r/styles/base-rhea/sheet.json @@ -4,7 +4,7 @@ "title": "Sheet", "description": "A sliding panel component that appears from the edge of the screen.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-rhea/sidebar.json b/public/r/styles/base-rhea/sidebar.json index 4549d148e..7419a56e6 100644 --- a/public/r/styles/base-rhea/sidebar.json +++ b/public/r/styles/base-rhea/sidebar.json @@ -4,7 +4,7 @@ "title": "Sidebar", "description": "A composable, themeable, and customizable Astro sidebar component.", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-rhea/slider.json b/public/r/styles/base-rhea/slider.json index d007e49c6..0c40aa65c 100644 --- a/public/r/styles/base-rhea/slider.json +++ b/public/r/styles/base-rhea/slider.json @@ -4,7 +4,7 @@ "title": "Slider", "description": "An input where the user selects a value from within a given range.", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-rhea/switch.json b/public/r/styles/base-rhea/switch.json index ab35263c8..bbd400ff3 100644 --- a/public/r/styles/base-rhea/switch.json +++ b/public/r/styles/base-rhea/switch.json @@ -4,7 +4,7 @@ "title": "Switch", "description": "A control that switches a setting on or off.", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-rhea/tabs.json b/public/r/styles/base-rhea/tabs.json index 31ac8b5d9..ded068d83 100644 --- a/public/r/styles/base-rhea/tabs.json +++ b/public/r/styles/base-rhea/tabs.json @@ -4,7 +4,7 @@ "title": "Tabs", "description": "A set of layered sections of content, known as tabs, that display one panel of content at a time.", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-rhea/toast.json b/public/r/styles/base-rhea/toast.json index 5a23298ff..9ef60083a 100644 --- a/public/r/styles/base-rhea/toast.json +++ b/public/r/styles/base-rhea/toast.json @@ -4,7 +4,7 @@ "title": "Toast", "description": "A brief notification that appears without interrupting the user.", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-rhea/toggle-group.json b/public/r/styles/base-rhea/toggle-group.json index 6dfe1f25d..9459c6ac0 100644 --- a/public/r/styles/base-rhea/toggle-group.json +++ b/public/r/styles/base-rhea/toggle-group.json @@ -4,7 +4,7 @@ "title": "Toggle Group", "description": "A set of two-state buttons that can be toggled independently or as a single choice.", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-rhea/toggle.json b/public/r/styles/base-rhea/toggle.json index 842dd5511..1089c5540 100644 --- a/public/r/styles/base-rhea/toggle.json +++ b/public/r/styles/base-rhea/toggle.json @@ -4,7 +4,7 @@ "title": "Toggle", "description": "A two-state button that can be either on or off.", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-rhea/tooltip.json b/public/r/styles/base-rhea/tooltip.json index 652678e27..ffdc3fe04 100644 --- a/public/r/styles/base-rhea/tooltip.json +++ b/public/r/styles/base-rhea/tooltip.json @@ -4,7 +4,7 @@ "title": "Tooltip", "description": "Displays contextual information when a user hovers or focuses a trigger.", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-sera/accordion.json b/public/r/styles/base-sera/accordion.json index 69a8e8816..d790d8320 100644 --- a/public/r/styles/base-sera/accordion.json +++ b/public/r/styles/base-sera/accordion.json @@ -4,7 +4,7 @@ "title": "Accordion", "description": "A vertically stacked set of interactive headings that each reveal a section of content.", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-sera/alert-dialog.json b/public/r/styles/base-sera/alert-dialog.json index c44910cdf..1b0a2037c 100644 --- a/public/r/styles/base-sera/alert-dialog.json +++ b/public/r/styles/base-sera/alert-dialog.json @@ -4,7 +4,7 @@ "title": "Alert Dialog", "description": "A modal dialog for important confirmations that expects a response.", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-sera/collapsible.json b/public/r/styles/base-sera/collapsible.json index beff3692c..83e95f354 100644 --- a/public/r/styles/base-sera/collapsible.json +++ b/public/r/styles/base-sera/collapsible.json @@ -4,7 +4,7 @@ "title": "Collapsible", "description": "An interactive component which expands/collapses a panel.", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-sera/combobox.json b/public/r/styles/base-sera/combobox.json index ef6469094..48638b92a 100644 --- a/public/r/styles/base-sera/combobox.json +++ b/public/r/styles/base-sera/combobox.json @@ -4,8 +4,8 @@ "title": "Combobox", "description": "Autocomplete input with a list of suggestions.", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-sera/command.json b/public/r/styles/base-sera/command.json index 1443d04e8..8ab0f3baa 100644 --- a/public/r/styles/base-sera/command.json +++ b/public/r/styles/base-sera/command.json @@ -4,9 +4,9 @@ "title": "Command", "description": "Command menu for search and quick actions.", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" diff --git a/public/r/styles/base-sera/dialog.json b/public/r/styles/base-sera/dialog.json index f42333b83..fee281648 100644 --- a/public/r/styles/base-sera/dialog.json +++ b/public/r/styles/base-sera/dialog.json @@ -4,7 +4,7 @@ "title": "Dialog", "description": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-sera/drawer.json b/public/r/styles/base-sera/drawer.json index fe5ba93cf..17b45b644 100644 --- a/public/r/styles/base-sera/drawer.json +++ b/public/r/styles/base-sera/drawer.json @@ -4,7 +4,7 @@ "title": "Drawer", "description": "A drawer component that slides in from any edge of the screen.", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-sera/dropdown-menu.json b/public/r/styles/base-sera/dropdown-menu.json index 445dfdbfe..c24944f37 100644 --- a/public/r/styles/base-sera/dropdown-menu.json +++ b/public/r/styles/base-sera/dropdown-menu.json @@ -4,7 +4,7 @@ "title": "Dropdown Menu", "description": "Displays a menu to the user, such as a set of actions or functions, triggered by a button.", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-sera/hover-card.json b/public/r/styles/base-sera/hover-card.json index 8d8fbf99d..d29d21d53 100644 --- a/public/r/styles/base-sera/hover-card.json +++ b/public/r/styles/base-sera/hover-card.json @@ -4,8 +4,8 @@ "title": "Hover Card", "description": "For sighted users to preview content available behind a link.", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-sera/navigation-menu.json b/public/r/styles/base-sera/navigation-menu.json index a8837ce88..7e4c81123 100644 --- a/public/r/styles/base-sera/navigation-menu.json +++ b/public/r/styles/base-sera/navigation-menu.json @@ -4,7 +4,7 @@ "title": "Navigation Menu", "description": "A collection of links for navigating websites.", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-sera/popover.json b/public/r/styles/base-sera/popover.json index e3fb8791d..922da9bbc 100644 --- a/public/r/styles/base-sera/popover.json +++ b/public/r/styles/base-sera/popover.json @@ -4,7 +4,7 @@ "title": "Popover", "description": "Displays rich content in a floating layer, triggered by a button.", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-sera/radio-group.json b/public/r/styles/base-sera/radio-group.json index 0afc71bd8..5621026b1 100644 --- a/public/r/styles/base-sera/radio-group.json +++ b/public/r/styles/base-sera/radio-group.json @@ -4,7 +4,7 @@ "title": "Radio Group", "description": "A set of checkable buttons, known as radio buttons, where no more than one of the buttons can be checked at a time.", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-sera/registry.json b/public/r/styles/base-sera/registry.json index 1ee79fae1..a3c51bdda 100644 --- a/public/r/styles/base-sera/registry.json +++ b/public/r/styles/base-sera/registry.json @@ -13,7 +13,7 @@ ], "docs": "https://ui.full.dev/components/accordion/", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ @@ -81,7 +81,7 @@ ], "docs": "https://ui.full.dev/components/alert-dialog/", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -432,7 +432,7 @@ ], "docs": "https://ui.full.dev/components/collapsible/", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { @@ -463,8 +463,8 @@ ], "docs": "https://ui.full.dev/components/combobox/", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -531,9 +531,9 @@ ], "docs": "https://ui.full.dev/components/command/", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" @@ -591,7 +591,7 @@ ], "docs": "https://ui.full.dev/components/dialog/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -654,7 +654,7 @@ ], "docs": "https://ui.full.dev/components/dropdown-menu/", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -873,8 +873,8 @@ ], "docs": "https://ui.full.dev/components/hover-card/", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { @@ -1258,7 +1258,7 @@ ], "docs": "https://ui.full.dev/components/navigation-menu/", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -1345,7 +1345,7 @@ ], "docs": "https://ui.full.dev/components/popover/", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { @@ -1440,7 +1440,7 @@ ], "docs": "https://ui.full.dev/components/radio-group/", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { @@ -1490,7 +1490,7 @@ ], "docs": "https://ui.full.dev/components/select/", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ @@ -1594,7 +1594,7 @@ ], "docs": "https://ui.full.dev/components/sheet/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1650,7 +1650,7 @@ ], "docs": "https://ui.full.dev/components/sidebar/", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1771,7 +1771,7 @@ ], "docs": "https://ui.full.dev/components/slider/", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { @@ -1837,7 +1837,7 @@ ], "docs": "https://ui.full.dev/components/switch/", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { @@ -1908,7 +1908,7 @@ ], "docs": "https://ui.full.dev/components/tabs/", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { @@ -1983,7 +1983,7 @@ ], "docs": "https://ui.full.dev/components/toggle/", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { @@ -2030,7 +2030,7 @@ ], "docs": "https://ui.full.dev/components/tooltip/", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { @@ -2165,7 +2165,7 @@ ], "docs": "https://ui.full.dev/components/drawer/", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -2255,7 +2255,7 @@ ], "docs": "https://ui.full.dev/components/resizable/", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { @@ -2286,7 +2286,7 @@ ], "docs": "https://ui.full.dev/components/toast/", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -2353,7 +2353,7 @@ ], "docs": "https://ui.full.dev/components/toggle-group/", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-sera/resizable.json b/public/r/styles/base-sera/resizable.json index b8c0fb751..619a1c987 100644 --- a/public/r/styles/base-sera/resizable.json +++ b/public/r/styles/base-sera/resizable.json @@ -4,7 +4,7 @@ "title": "Resizable", "description": "Accessible panel groups with pointer and keyboard resizing.", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-sera/select.json b/public/r/styles/base-sera/select.json index 13de0345d..7fd3ef25a 100644 --- a/public/r/styles/base-sera/select.json +++ b/public/r/styles/base-sera/select.json @@ -4,7 +4,7 @@ "title": "Select", "description": "Displays a list of options for the user to pick from, triggered by a button.", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-sera/sheet.json b/public/r/styles/base-sera/sheet.json index 02037e72f..a2ff4abe0 100644 --- a/public/r/styles/base-sera/sheet.json +++ b/public/r/styles/base-sera/sheet.json @@ -4,7 +4,7 @@ "title": "Sheet", "description": "A sliding panel component that appears from the edge of the screen.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-sera/sidebar.json b/public/r/styles/base-sera/sidebar.json index e09abf030..5928fc1c6 100644 --- a/public/r/styles/base-sera/sidebar.json +++ b/public/r/styles/base-sera/sidebar.json @@ -4,7 +4,7 @@ "title": "Sidebar", "description": "A composable, themeable, and customizable Astro sidebar component.", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-sera/slider.json b/public/r/styles/base-sera/slider.json index 09ae13c8d..c45968955 100644 --- a/public/r/styles/base-sera/slider.json +++ b/public/r/styles/base-sera/slider.json @@ -4,7 +4,7 @@ "title": "Slider", "description": "An input where the user selects a value from within a given range.", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-sera/switch.json b/public/r/styles/base-sera/switch.json index 086a10084..70ea69d89 100644 --- a/public/r/styles/base-sera/switch.json +++ b/public/r/styles/base-sera/switch.json @@ -4,7 +4,7 @@ "title": "Switch", "description": "A control that switches a setting on or off.", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-sera/tabs.json b/public/r/styles/base-sera/tabs.json index 9d1d089e2..b768ea6b3 100644 --- a/public/r/styles/base-sera/tabs.json +++ b/public/r/styles/base-sera/tabs.json @@ -4,7 +4,7 @@ "title": "Tabs", "description": "A set of layered sections of content, known as tabs, that display one panel of content at a time.", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-sera/toast.json b/public/r/styles/base-sera/toast.json index a67a93294..39bd88e22 100644 --- a/public/r/styles/base-sera/toast.json +++ b/public/r/styles/base-sera/toast.json @@ -4,7 +4,7 @@ "title": "Toast", "description": "A brief notification that appears without interrupting the user.", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-sera/toggle-group.json b/public/r/styles/base-sera/toggle-group.json index df779aa09..990eaa64d 100644 --- a/public/r/styles/base-sera/toggle-group.json +++ b/public/r/styles/base-sera/toggle-group.json @@ -4,7 +4,7 @@ "title": "Toggle Group", "description": "A set of two-state buttons that can be toggled independently or as a single choice.", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-sera/toggle.json b/public/r/styles/base-sera/toggle.json index 878efe486..5e9844bc0 100644 --- a/public/r/styles/base-sera/toggle.json +++ b/public/r/styles/base-sera/toggle.json @@ -4,7 +4,7 @@ "title": "Toggle", "description": "A two-state button that can be either on or off.", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-sera/tooltip.json b/public/r/styles/base-sera/tooltip.json index dd2dc0c44..d3fdd8ca3 100644 --- a/public/r/styles/base-sera/tooltip.json +++ b/public/r/styles/base-sera/tooltip.json @@ -4,7 +4,7 @@ "title": "Tooltip", "description": "Displays contextual information when a user hovers or focuses a trigger.", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-vega/accordion.json b/public/r/styles/base-vega/accordion.json index d10a0434e..1a07df29c 100644 --- a/public/r/styles/base-vega/accordion.json +++ b/public/r/styles/base-vega/accordion.json @@ -4,7 +4,7 @@ "title": "Accordion", "description": "A vertically stacked set of interactive headings that each reveal a section of content.", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-vega/alert-dialog.json b/public/r/styles/base-vega/alert-dialog.json index 98a8a3ae0..aaf80c616 100644 --- a/public/r/styles/base-vega/alert-dialog.json +++ b/public/r/styles/base-vega/alert-dialog.json @@ -4,7 +4,7 @@ "title": "Alert Dialog", "description": "A modal dialog for important confirmations that expects a response.", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-vega/collapsible.json b/public/r/styles/base-vega/collapsible.json index beff3692c..83e95f354 100644 --- a/public/r/styles/base-vega/collapsible.json +++ b/public/r/styles/base-vega/collapsible.json @@ -4,7 +4,7 @@ "title": "Collapsible", "description": "An interactive component which expands/collapses a panel.", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-vega/combobox.json b/public/r/styles/base-vega/combobox.json index 5f75c5e1e..0be0377df 100644 --- a/public/r/styles/base-vega/combobox.json +++ b/public/r/styles/base-vega/combobox.json @@ -4,8 +4,8 @@ "title": "Combobox", "description": "Autocomplete input with a list of suggestions.", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-vega/command.json b/public/r/styles/base-vega/command.json index 5cdabf837..f691b9ca7 100644 --- a/public/r/styles/base-vega/command.json +++ b/public/r/styles/base-vega/command.json @@ -4,9 +4,9 @@ "title": "Command", "description": "Command menu for search and quick actions.", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" diff --git a/public/r/styles/base-vega/dialog.json b/public/r/styles/base-vega/dialog.json index a3eb10dd5..00af2ffb4 100644 --- a/public/r/styles/base-vega/dialog.json +++ b/public/r/styles/base-vega/dialog.json @@ -4,7 +4,7 @@ "title": "Dialog", "description": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-vega/drawer.json b/public/r/styles/base-vega/drawer.json index cf8e91d0b..3fceb13b8 100644 --- a/public/r/styles/base-vega/drawer.json +++ b/public/r/styles/base-vega/drawer.json @@ -4,7 +4,7 @@ "title": "Drawer", "description": "A drawer component that slides in from any edge of the screen.", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" diff --git a/public/r/styles/base-vega/dropdown-menu.json b/public/r/styles/base-vega/dropdown-menu.json index c8e05f046..4cad9305f 100644 --- a/public/r/styles/base-vega/dropdown-menu.json +++ b/public/r/styles/base-vega/dropdown-menu.json @@ -4,7 +4,7 @@ "title": "Dropdown Menu", "description": "Displays a menu to the user, such as a set of actions or functions, triggered by a button.", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-vega/hover-card.json b/public/r/styles/base-vega/hover-card.json index 6567bba4a..bc1f2f8e9 100644 --- a/public/r/styles/base-vega/hover-card.json +++ b/public/r/styles/base-vega/hover-card.json @@ -4,8 +4,8 @@ "title": "Hover Card", "description": "For sighted users to preview content available behind a link.", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-vega/navigation-menu.json b/public/r/styles/base-vega/navigation-menu.json index 9311ceb2c..bf85e43b3 100644 --- a/public/r/styles/base-vega/navigation-menu.json +++ b/public/r/styles/base-vega/navigation-menu.json @@ -4,7 +4,7 @@ "title": "Navigation Menu", "description": "A collection of links for navigating websites.", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-vega/popover.json b/public/r/styles/base-vega/popover.json index f054804b9..3944475c7 100644 --- a/public/r/styles/base-vega/popover.json +++ b/public/r/styles/base-vega/popover.json @@ -4,7 +4,7 @@ "title": "Popover", "description": "Displays rich content in a floating layer, triggered by a button.", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-vega/radio-group.json b/public/r/styles/base-vega/radio-group.json index 62491c23e..5c922ae20 100644 --- a/public/r/styles/base-vega/radio-group.json +++ b/public/r/styles/base-vega/radio-group.json @@ -4,7 +4,7 @@ "title": "Radio Group", "description": "A set of checkable buttons, known as radio buttons, where no more than one of the buttons can be checked at a time.", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-vega/registry.json b/public/r/styles/base-vega/registry.json index 19cd0846d..0371fcb41 100644 --- a/public/r/styles/base-vega/registry.json +++ b/public/r/styles/base-vega/registry.json @@ -13,7 +13,7 @@ ], "docs": "https://ui.full.dev/components/accordion/", "dependencies": [ - "@data-slot/accordion@^1.1.2", + "@data-slot/accordion@^1.1.3", "@lucide/astro" ], "files": [ @@ -81,7 +81,7 @@ ], "docs": "https://ui.full.dev/components/alert-dialog/", "dependencies": [ - "@data-slot/alert-dialog@^1.1.2" + "@data-slot/alert-dialog@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -432,7 +432,7 @@ ], "docs": "https://ui.full.dev/components/collapsible/", "dependencies": [ - "@data-slot/collapsible@^1.1.2" + "@data-slot/collapsible@^1.1.3" ], "files": [ { @@ -463,8 +463,8 @@ ], "docs": "https://ui.full.dev/components/combobox/", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -531,9 +531,9 @@ ], "docs": "https://ui.full.dev/components/command/", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": [ "@fulldev/dialog" @@ -591,7 +591,7 @@ ], "docs": "https://ui.full.dev/components/dialog/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -654,7 +654,7 @@ ], "docs": "https://ui.full.dev/components/dropdown-menu/", "dependencies": [ - "@data-slot/dropdown-menu@^1.1.2", + "@data-slot/dropdown-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -873,8 +873,8 @@ ], "docs": "https://ui.full.dev/components/hover-card/", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { @@ -1258,7 +1258,7 @@ ], "docs": "https://ui.full.dev/components/navigation-menu/", "dependencies": [ - "@data-slot/navigation-menu@^1.1.2", + "@data-slot/navigation-menu@^1.1.3", "@lucide/astro" ], "files": [ @@ -1345,7 +1345,7 @@ ], "docs": "https://ui.full.dev/components/popover/", "dependencies": [ - "@data-slot/popover@^1.1.2" + "@data-slot/popover@^1.1.3" ], "files": [ { @@ -1440,7 +1440,7 @@ ], "docs": "https://ui.full.dev/components/radio-group/", "dependencies": [ - "@data-slot/radio-group@^1.1.2" + "@data-slot/radio-group@^1.1.3" ], "files": [ { @@ -1490,7 +1490,7 @@ ], "docs": "https://ui.full.dev/components/select/", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ @@ -1594,7 +1594,7 @@ ], "docs": "https://ui.full.dev/components/sheet/", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1650,7 +1650,7 @@ ], "docs": "https://ui.full.dev/components/sidebar/", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -1771,7 +1771,7 @@ ], "docs": "https://ui.full.dev/components/slider/", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { @@ -1837,7 +1837,7 @@ ], "docs": "https://ui.full.dev/components/switch/", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { @@ -1908,7 +1908,7 @@ ], "docs": "https://ui.full.dev/components/tabs/", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { @@ -1983,7 +1983,7 @@ ], "docs": "https://ui.full.dev/components/toggle/", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { @@ -2030,7 +2030,7 @@ ], "docs": "https://ui.full.dev/components/tooltip/", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { @@ -2165,7 +2165,7 @@ ], "docs": "https://ui.full.dev/components/drawer/", "dependencies": [ - "@data-slot/drawer@^1.1.2" + "@data-slot/drawer@^1.1.3" ], "registryDependencies": [ "@fulldev/button" @@ -2255,7 +2255,7 @@ ], "docs": "https://ui.full.dev/components/resizable/", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { @@ -2286,7 +2286,7 @@ ], "docs": "https://ui.full.dev/components/toast/", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ @@ -2353,7 +2353,7 @@ ], "docs": "https://ui.full.dev/components/toggle-group/", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-vega/resizable.json b/public/r/styles/base-vega/resizable.json index 03981b9cf..785b93e53 100644 --- a/public/r/styles/base-vega/resizable.json +++ b/public/r/styles/base-vega/resizable.json @@ -4,7 +4,7 @@ "title": "Resizable", "description": "Accessible panel groups with pointer and keyboard resizing.", "dependencies": [ - "@data-slot/resizable@^1.1.2" + "@data-slot/resizable@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-vega/select.json b/public/r/styles/base-vega/select.json index 4f993a253..4e96409f3 100644 --- a/public/r/styles/base-vega/select.json +++ b/public/r/styles/base-vega/select.json @@ -4,7 +4,7 @@ "title": "Select", "description": "Displays a list of options for the user to pick from, triggered by a button.", "dependencies": [ - "@data-slot/select@^1.1.2", + "@data-slot/select@^1.1.3", "@lucide/astro" ], "files": [ diff --git a/public/r/styles/base-vega/sheet.json b/public/r/styles/base-vega/sheet.json index 326e6bb9f..59c7688c5 100644 --- a/public/r/styles/base-vega/sheet.json +++ b/public/r/styles/base-vega/sheet.json @@ -4,7 +4,7 @@ "title": "Sheet", "description": "A sliding panel component that appears from the edge of the screen.", "dependencies": [ - "@data-slot/dialog@^1.1.2", + "@data-slot/dialog@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-vega/sidebar.json b/public/r/styles/base-vega/sidebar.json index 92c526d21..071f6b5fb 100644 --- a/public/r/styles/base-vega/sidebar.json +++ b/public/r/styles/base-vega/sidebar.json @@ -4,7 +4,7 @@ "title": "Sidebar", "description": "A composable, themeable, and customizable Astro sidebar component.", "dependencies": [ - "@data-slot/tooltip@^1.1.2", + "@data-slot/tooltip@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-vega/slider.json b/public/r/styles/base-vega/slider.json index 6ef9d408f..04da4a2f1 100644 --- a/public/r/styles/base-vega/slider.json +++ b/public/r/styles/base-vega/slider.json @@ -4,7 +4,7 @@ "title": "Slider", "description": "An input where the user selects a value from within a given range.", "dependencies": [ - "@data-slot/slider@^1.1.2" + "@data-slot/slider@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-vega/switch.json b/public/r/styles/base-vega/switch.json index ceca23f86..776308047 100644 --- a/public/r/styles/base-vega/switch.json +++ b/public/r/styles/base-vega/switch.json @@ -4,7 +4,7 @@ "title": "Switch", "description": "A control that switches a setting on or off.", "dependencies": [ - "@data-slot/switch@^1.1.2" + "@data-slot/switch@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-vega/tabs.json b/public/r/styles/base-vega/tabs.json index abfb73ed8..6d2156f87 100644 --- a/public/r/styles/base-vega/tabs.json +++ b/public/r/styles/base-vega/tabs.json @@ -4,7 +4,7 @@ "title": "Tabs", "description": "A set of layered sections of content, known as tabs, that display one panel of content at a time.", "dependencies": [ - "@data-slot/tabs@^1.1.2" + "@data-slot/tabs@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-vega/toast.json b/public/r/styles/base-vega/toast.json index d2f72c690..d86e3816f 100644 --- a/public/r/styles/base-vega/toast.json +++ b/public/r/styles/base-vega/toast.json @@ -4,7 +4,7 @@ "title": "Toast", "description": "A brief notification that appears without interrupting the user.", "dependencies": [ - "@data-slot/toast@^1.1.2", + "@data-slot/toast@^1.1.3", "@lucide/astro" ], "registryDependencies": [ diff --git a/public/r/styles/base-vega/toggle-group.json b/public/r/styles/base-vega/toggle-group.json index 1a13c9a73..89141cb3d 100644 --- a/public/r/styles/base-vega/toggle-group.json +++ b/public/r/styles/base-vega/toggle-group.json @@ -4,7 +4,7 @@ "title": "Toggle Group", "description": "A set of two-state buttons that can be toggled independently or as a single choice.", "dependencies": [ - "@data-slot/toggle-group@^1.1.2" + "@data-slot/toggle-group@^1.1.3" ], "registryDependencies": [ "@fulldev/toggle" diff --git a/public/r/styles/base-vega/toggle.json b/public/r/styles/base-vega/toggle.json index c8460fd1a..497a4c7ff 100644 --- a/public/r/styles/base-vega/toggle.json +++ b/public/r/styles/base-vega/toggle.json @@ -4,7 +4,7 @@ "title": "Toggle", "description": "A two-state button that can be either on or off.", "dependencies": [ - "@data-slot/toggle@^1.1.2" + "@data-slot/toggle@^1.1.3" ], "files": [ { diff --git a/public/r/styles/base-vega/tooltip.json b/public/r/styles/base-vega/tooltip.json index e8c2f3653..9928e8b88 100644 --- a/public/r/styles/base-vega/tooltip.json +++ b/public/r/styles/base-vega/tooltip.json @@ -4,7 +4,7 @@ "title": "Tooltip", "description": "Displays contextual information when a user hovers or focuses a trigger.", "dependencies": [ - "@data-slot/tooltip@^1.1.2" + "@data-slot/tooltip@^1.1.3" ], "files": [ { diff --git a/react/package.json b/react/package.json index 7d28437e2..9789a26c3 100644 --- a/react/package.json +++ b/react/package.json @@ -17,7 +17,7 @@ "next-themes": "^0.4.6", "react": "^19.3.0", "react-dom": "^19.3.0", - "shadcn": "^4.21.0", + "shadcn": "^4.23.0", "simple-icons": "^16.33.0", "tw-animate-css": "^1.4.0" }, diff --git a/registry.json b/registry.json index 4298d8a31..3204250c0 100644 --- a/registry.json +++ b/registry.json @@ -10,7 +10,7 @@ "description": "A vertically stacked set of interactive headings that each reveal a section of content.", "categories": ["ui"], "docs": "https://ui.full.dev/components/accordion/", - "dependencies": ["@data-slot/accordion@^1.1.2", "@lucide/astro"], + "dependencies": ["@data-slot/accordion@^1.1.3", "@lucide/astro"], "files": [ { "path": "src/components/ui/accordion/accordion.astro", @@ -71,7 +71,7 @@ "description": "A modal dialog for important confirmations that expects a response.", "categories": ["ui"], "docs": "https://ui.full.dev/components/alert-dialog/", - "dependencies": ["@data-slot/alert-dialog@^1.1.2"], + "dependencies": ["@data-slot/alert-dialog@^1.1.3"], "registryDependencies": ["@fulldev/button"], "files": [ { @@ -391,7 +391,7 @@ "description": "An interactive component which expands/collapses a panel.", "categories": ["ui"], "docs": "https://ui.full.dev/components/collapsible/", - "dependencies": ["@data-slot/collapsible@^1.1.2"], + "dependencies": ["@data-slot/collapsible@^1.1.3"], "files": [ { "path": "src/components/ui/collapsible/collapsible.astro", @@ -419,8 +419,8 @@ "categories": ["ui"], "docs": "https://ui.full.dev/components/combobox/", "dependencies": [ - "@data-slot/combobox@^1.1.2", - "@data-slot/core@^1.1.2", + "@data-slot/combobox@^1.1.3", + "@data-slot/core@^1.1.3", "@lucide/astro" ], "registryDependencies": ["@fulldev/input-group"], @@ -483,9 +483,9 @@ "categories": ["ui"], "docs": "https://ui.full.dev/components/command/", "dependencies": [ - "@data-slot/command@^1.1.2", + "@data-slot/command@^1.1.3", "@lucide/astro", - "@data-slot/core@^1.1.2" + "@data-slot/core@^1.1.3" ], "registryDependencies": ["@fulldev/dialog"], "files": [ @@ -538,7 +538,7 @@ "description": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.", "categories": ["ui"], "docs": "https://ui.full.dev/components/dialog/", - "dependencies": ["@data-slot/dialog@^1.1.2", "@lucide/astro"], + "dependencies": ["@data-slot/dialog@^1.1.3", "@lucide/astro"], "registryDependencies": ["@fulldev/button"], "files": [ { @@ -594,7 +594,7 @@ "description": "Displays a menu to the user, such as a set of actions or functions, triggered by a button.", "categories": ["ui"], "docs": "https://ui.full.dev/components/dropdown-menu/", - "dependencies": ["@data-slot/dropdown-menu@^1.1.2", "@lucide/astro"], + "dependencies": ["@data-slot/dropdown-menu@^1.1.3", "@lucide/astro"], "files": [ { "path": "src/components/ui/dropdown-menu/dropdown-menu.astro", @@ -793,8 +793,8 @@ "categories": ["ui"], "docs": "https://ui.full.dev/components/hover-card/", "dependencies": [ - "@data-slot/hover-card@^1.1.2", - "@data-slot/core@^1.1.2" + "@data-slot/hover-card@^1.1.3", + "@data-slot/core@^1.1.3" ], "files": [ { @@ -1137,7 +1137,7 @@ "description": "A collection of links for navigating websites.", "categories": ["ui"], "docs": "https://ui.full.dev/components/navigation-menu/", - "dependencies": ["@data-slot/navigation-menu@^1.1.2", "@lucide/astro"], + "dependencies": ["@data-slot/navigation-menu@^1.1.3", "@lucide/astro"], "files": [ { "path": "src/components/ui/navigation-menu/navigation-menu.astro", @@ -1215,7 +1215,7 @@ "description": "Displays rich content in a floating layer, triggered by a button.", "categories": ["ui"], "docs": "https://ui.full.dev/components/popover/", - "dependencies": ["@data-slot/popover@^1.1.2"], + "dependencies": ["@data-slot/popover@^1.1.3"], "files": [ { "path": "src/components/ui/popover/popover.astro", @@ -1302,7 +1302,7 @@ "description": "A set of checkable buttons, known as radio buttons, where no more than one of the buttons can be checked at a time.", "categories": ["ui"], "docs": "https://ui.full.dev/components/radio-group/", - "dependencies": ["@data-slot/radio-group@^1.1.2"], + "dependencies": ["@data-slot/radio-group@^1.1.3"], "files": [ { "path": "src/components/ui/radio-group/radio-group.astro", @@ -1344,7 +1344,7 @@ "description": "Displays a list of options for the user to pick from, triggered by a button.", "categories": ["ui"], "docs": "https://ui.full.dev/components/select/", - "dependencies": ["@data-slot/select@^1.1.2", "@lucide/astro"], + "dependencies": ["@data-slot/select@^1.1.3", "@lucide/astro"], "files": [ { "path": "src/components/ui/select/select.astro", @@ -1439,7 +1439,7 @@ "description": "A sliding panel component that appears from the edge of the screen.", "categories": ["ui"], "docs": "https://ui.full.dev/components/sheet/", - "dependencies": ["@data-slot/dialog@^1.1.2", "@lucide/astro"], + "dependencies": ["@data-slot/dialog@^1.1.3", "@lucide/astro"], "registryDependencies": ["@fulldev/button", "@fulldev/dialog"], "files": [ { @@ -1487,7 +1487,7 @@ "description": "A composable, themeable, and customizable Astro sidebar component.", "categories": ["ui"], "docs": "https://ui.full.dev/components/sidebar/", - "dependencies": ["@data-slot/tooltip@^1.1.2", "@lucide/astro"], + "dependencies": ["@data-slot/tooltip@^1.1.3", "@lucide/astro"], "registryDependencies": [ "@fulldev/layout", "@fulldev/button", @@ -1603,7 +1603,7 @@ "description": "An input where the user selects a value from within a given range.", "categories": ["ui"], "docs": "https://ui.full.dev/components/slider/", - "dependencies": ["@data-slot/slider@^1.1.2"], + "dependencies": ["@data-slot/slider@^1.1.3"], "files": [ { "path": "src/components/ui/slider/slider.astro", @@ -1659,7 +1659,7 @@ "description": "A control that switches a setting on or off.", "categories": ["ui"], "docs": "https://ui.full.dev/components/switch/", - "dependencies": ["@data-slot/switch@^1.1.2"], + "dependencies": ["@data-slot/switch@^1.1.3"], "files": [ { "path": "src/components/ui/switch/switch.astro", @@ -1724,7 +1724,7 @@ "description": "A set of layered sections of content, known as tabs, that display one panel of content at a time.", "categories": ["ui"], "docs": "https://ui.full.dev/components/tabs/", - "dependencies": ["@data-slot/tabs@^1.1.2"], + "dependencies": ["@data-slot/tabs@^1.1.3"], "files": [ { "path": "src/components/ui/tabs/tabs.astro", @@ -1793,7 +1793,7 @@ "description": "A two-state button that can be either on or off.", "categories": ["ui"], "docs": "https://ui.full.dev/components/toggle/", - "dependencies": ["@data-slot/toggle@^1.1.2"], + "dependencies": ["@data-slot/toggle@^1.1.3"], "files": [ { "path": "src/components/ui/toggle/toggle.astro", @@ -1834,7 +1834,7 @@ "description": "Displays contextual information when a user hovers or focuses a trigger.", "categories": ["ui"], "docs": "https://ui.full.dev/components/tooltip/", - "dependencies": ["@data-slot/tooltip@^1.1.2"], + "dependencies": ["@data-slot/tooltip@^1.1.3"], "files": [ { "path": "src/components/ui/tooltip/tooltip.astro", @@ -1961,7 +1961,7 @@ "description": "A drawer component that slides in from any edge of the screen.", "categories": ["ui"], "docs": "https://ui.full.dev/components/drawer/", - "dependencies": ["@data-slot/drawer@^1.1.2"], + "dependencies": ["@data-slot/drawer@^1.1.3"], "registryDependencies": ["@fulldev/button"], "files": [ { @@ -2045,7 +2045,7 @@ "description": "Accessible panel groups with pointer and keyboard resizing.", "categories": ["ui"], "docs": "https://ui.full.dev/components/resizable/", - "dependencies": ["@data-slot/resizable@^1.1.2"], + "dependencies": ["@data-slot/resizable@^1.1.3"], "files": [ { "path": "src/components/ui/resizable/index.ts", @@ -2072,7 +2072,7 @@ "description": "A brief notification that appears without interrupting the user.", "categories": ["ui"], "docs": "https://ui.full.dev/components/toast/", - "dependencies": ["@data-slot/toast@^1.1.2", "@lucide/astro"], + "dependencies": ["@data-slot/toast@^1.1.3", "@lucide/astro"], "registryDependencies": ["@fulldev/button"], "files": [ { @@ -2132,7 +2132,7 @@ "description": "A set of two-state buttons that can be toggled independently or as a single choice.", "categories": ["ui"], "docs": "https://ui.full.dev/components/toggle-group/", - "dependencies": ["@data-slot/toggle-group@^1.1.2"], + "dependencies": ["@data-slot/toggle-group@^1.1.3"], "registryDependencies": ["@fulldev/toggle"], "files": [ { From 4a6d52890831eb9a5cfa3e98b0f4015952726c11 Mon Sep 17 00:00:00 2001 From: Sil Date: Thu, 26 Nov 2026 17:24:02 +0100 Subject: [PATCH 02/32] Add number field, swatch and carousel indicator on Astro, React and Liquid Fix the Liquid native select arrow padding and input group addon alignment. Co-Authored-By: Claude Opus 5.5 --- liquid/assets/ui-carousel.css | 31 +++++++ liquid/assets/ui-carousel.js | 10 +++ liquid/assets/ui-controls.js | 30 +++++++ liquid/assets/ui-manifest.json | 14 +-- liquid/contracts.json | 13 ++- liquid/examples/carousel.liquid | 46 ++++++++++ liquid/examples/dependencies.json | 4 +- liquid/examples/number-field.liquid | 65 ++++++++++++++ liquid/examples/swatch.liquid | 25 ++++++ liquid/registry.json | 40 ++++++++- liquid/snippets/ui-input-group.liquid | 39 ++++++-- liquid/snippets/ui-input.liquid | 4 +- liquid/snippets/ui-number-field.liquid | 21 +++++ liquid/snippets/ui-swatch.liquid | 19 ++++ liquid/snippets/ui.liquid | 2 + public/r/liquid/carousel.json | 2 +- public/r/liquid/components.json | 8 +- public/r/liquid/input-group.json | 2 +- public/r/liquid/input.json | 2 +- public/r/liquid/number-field.json | 23 +++++ public/r/liquid/registry.json | 42 ++++++++- public/r/liquid/runtime.json | 4 +- public/r/liquid/swatch.json | 19 ++++ .../styles/base-luma/carousel-indicator.json | 24 +++++ .../r/react/styles/base-luma/components.json | 3 + .../react/styles/base-luma/number-field.json | 26 ++++++ public/r/react/styles/base-luma/registry.json | 68 ++++++++++++++ public/r/react/styles/base-luma/swatch.json | 21 +++++ .../styles/base-lyra/carousel-indicator.json | 24 +++++ .../r/react/styles/base-lyra/components.json | 3 + .../react/styles/base-lyra/number-field.json | 26 ++++++ public/r/react/styles/base-lyra/registry.json | 68 ++++++++++++++ public/r/react/styles/base-lyra/swatch.json | 21 +++++ .../styles/base-maia/carousel-indicator.json | 24 +++++ .../r/react/styles/base-maia/components.json | 3 + .../react/styles/base-maia/number-field.json | 26 ++++++ public/r/react/styles/base-maia/registry.json | 68 ++++++++++++++ public/r/react/styles/base-maia/swatch.json | 21 +++++ .../styles/base-mira/carousel-indicator.json | 24 +++++ .../r/react/styles/base-mira/components.json | 3 + .../react/styles/base-mira/number-field.json | 26 ++++++ public/r/react/styles/base-mira/registry.json | 68 ++++++++++++++ public/r/react/styles/base-mira/swatch.json | 21 +++++ .../styles/base-nova/carousel-indicator.json | 24 +++++ .../r/react/styles/base-nova/components.json | 3 + .../react/styles/base-nova/number-field.json | 26 ++++++ public/r/react/styles/base-nova/registry.json | 68 ++++++++++++++ public/r/react/styles/base-nova/swatch.json | 21 +++++ .../styles/base-rhea/carousel-indicator.json | 24 +++++ .../r/react/styles/base-rhea/components.json | 3 + .../react/styles/base-rhea/number-field.json | 26 ++++++ public/r/react/styles/base-rhea/registry.json | 68 ++++++++++++++ public/r/react/styles/base-rhea/swatch.json | 21 +++++ .../styles/base-sera/carousel-indicator.json | 24 +++++ .../r/react/styles/base-sera/components.json | 3 + .../react/styles/base-sera/number-field.json | 26 ++++++ public/r/react/styles/base-sera/registry.json | 68 ++++++++++++++ public/r/react/styles/base-sera/swatch.json | 21 +++++ .../styles/base-vega/carousel-indicator.json | 24 +++++ .../r/react/styles/base-vega/components.json | 3 + .../react/styles/base-vega/number-field.json | 26 ++++++ public/r/react/styles/base-vega/registry.json | 68 ++++++++++++++ public/r/react/styles/base-vega/swatch.json | 21 +++++ public/r/styles/base-luma/carousel.json | 9 +- public/r/styles/base-luma/components.json | 2 + public/r/styles/base-luma/input-group.json | 2 +- public/r/styles/base-luma/number-field.json | 44 +++++++++ public/r/styles/base-luma/registry.json | 64 +++++++++++++ public/r/styles/base-luma/swatch.json | 23 +++++ public/r/styles/base-lyra/carousel.json | 9 +- public/r/styles/base-lyra/components.json | 2 + public/r/styles/base-lyra/input-group.json | 2 +- public/r/styles/base-lyra/number-field.json | 44 +++++++++ public/r/styles/base-lyra/registry.json | 64 +++++++++++++ public/r/styles/base-lyra/swatch.json | 23 +++++ public/r/styles/base-maia/carousel.json | 9 +- public/r/styles/base-maia/components.json | 2 + public/r/styles/base-maia/input-group.json | 2 +- public/r/styles/base-maia/number-field.json | 44 +++++++++ public/r/styles/base-maia/registry.json | 64 +++++++++++++ public/r/styles/base-maia/swatch.json | 23 +++++ public/r/styles/base-mira/carousel.json | 9 +- public/r/styles/base-mira/components.json | 2 + public/r/styles/base-mira/input-group.json | 2 +- public/r/styles/base-mira/number-field.json | 44 +++++++++ public/r/styles/base-mira/registry.json | 64 +++++++++++++ public/r/styles/base-mira/swatch.json | 23 +++++ public/r/styles/base-nova/carousel.json | 9 +- public/r/styles/base-nova/components.json | 2 + public/r/styles/base-nova/input-group.json | 2 +- public/r/styles/base-nova/number-field.json | 44 +++++++++ public/r/styles/base-nova/registry.json | 64 +++++++++++++ public/r/styles/base-nova/swatch.json | 23 +++++ public/r/styles/base-rhea/carousel.json | 9 +- public/r/styles/base-rhea/components.json | 2 + public/r/styles/base-rhea/input-group.json | 2 +- public/r/styles/base-rhea/number-field.json | 44 +++++++++ public/r/styles/base-rhea/registry.json | 64 +++++++++++++ public/r/styles/base-rhea/swatch.json | 23 +++++ public/r/styles/base-sera/carousel.json | 9 +- public/r/styles/base-sera/components.json | 2 + public/r/styles/base-sera/input-group.json | 2 +- public/r/styles/base-sera/number-field.json | 44 +++++++++ public/r/styles/base-sera/registry.json | 64 +++++++++++++ public/r/styles/base-sera/swatch.json | 23 +++++ public/r/styles/base-vega/carousel.json | 9 +- public/r/styles/base-vega/components.json | 2 + public/r/styles/base-vega/input-group.json | 2 +- public/r/styles/base-vega/number-field.json | 44 +++++++++ public/r/styles/base-vega/registry.json | 64 +++++++++++++ public/r/styles/base-vega/swatch.json | 23 +++++ react/README.md | 2 +- react/gallery/ui/carousel-indicator.tsx | 36 ++++++++ react/gallery/ui/number-field.tsx | 22 +++++ react/gallery/ui/swatch.tsx | 23 +++++ react/registry.json | 50 +++++++++++ .../src/components/ui/carousel-indicator.tsx | 55 ++++++++++++ react/src/components/ui/number-field.tsx | 83 +++++++++++++++++ react/src/components/ui/swatch.tsx | 32 +++++++ react/src/components/ui/toggle-group.tsx | 89 +++++++++++++++++++ react/src/components/ui/toggle.tsx | 43 +++++++++ registry.json | 56 ++++++++++++ registry/styles/fulldev/style-luma.css | 10 +++ registry/styles/fulldev/style-lyra.css | 10 +++ registry/styles/fulldev/style-maia.css | 10 +++ registry/styles/fulldev/style-mira.css | 10 +++ registry/styles/fulldev/style-nova.css | 10 +++ registry/styles/fulldev/style-rhea.css | 10 +++ registry/styles/fulldev/style-sera.css | 10 +++ registry/styles/fulldev/style-vega.css | 10 +++ skills/fulldev-ui/SKILL.md | 2 + .../ui/carousel/carousel-indicator.astro | 36 ++++++++ src/components/ui/carousel/carousel.astro | 30 +++++++ src/components/ui/carousel/index.ts | 1 + .../ui/input-group/input-group.astro | 8 +- src/components/ui/number-field/index.ts | 4 + .../number-field/number-field-decrement.astro | 27 ++++++ .../number-field/number-field-increment.astro | 27 ++++++ .../ui/number-field/number-field-input.astro | 21 +++++ .../ui/number-field/number-field.astro | 58 ++++++++++++ src/components/ui/swatch/index.ts | 1 + src/components/ui/swatch/swatch.astro | 36 ++++++++ src/content/pages/components/carousel.mdx | 48 +++++++++- src/content/pages/components/number-field.mdx | 76 ++++++++++++++++ src/content/pages/components/swatch.mdx | 59 ++++++++++++ .../pages/liquid/components/carousel.mdx | 4 +- .../pages/liquid/components/number-field.mdx | 40 +++++++++ .../pages/liquid/components/swatch.mdx | 39 ++++++++ .../react/components/carousel-indicator.mdx | 42 +++++++++ .../pages/react/components/number-field.mdx | 42 +++++++++ src/content/pages/react/components/swatch.mdx | 33 +++++++ tests/extension.test.mjs | 3 + 152 files changed, 3906 insertions(+), 55 deletions(-) create mode 100644 liquid/examples/number-field.liquid create mode 100644 liquid/examples/swatch.liquid create mode 100644 liquid/snippets/ui-number-field.liquid create mode 100644 liquid/snippets/ui-swatch.liquid create mode 100644 public/r/liquid/number-field.json create mode 100644 public/r/liquid/swatch.json create mode 100644 public/r/react/styles/base-luma/carousel-indicator.json create mode 100644 public/r/react/styles/base-luma/number-field.json create mode 100644 public/r/react/styles/base-luma/swatch.json create mode 100644 public/r/react/styles/base-lyra/carousel-indicator.json create mode 100644 public/r/react/styles/base-lyra/number-field.json create mode 100644 public/r/react/styles/base-lyra/swatch.json create mode 100644 public/r/react/styles/base-maia/carousel-indicator.json create mode 100644 public/r/react/styles/base-maia/number-field.json create mode 100644 public/r/react/styles/base-maia/swatch.json create mode 100644 public/r/react/styles/base-mira/carousel-indicator.json create mode 100644 public/r/react/styles/base-mira/number-field.json create mode 100644 public/r/react/styles/base-mira/swatch.json create mode 100644 public/r/react/styles/base-nova/carousel-indicator.json create mode 100644 public/r/react/styles/base-nova/number-field.json create mode 100644 public/r/react/styles/base-nova/swatch.json create mode 100644 public/r/react/styles/base-rhea/carousel-indicator.json create mode 100644 public/r/react/styles/base-rhea/number-field.json create mode 100644 public/r/react/styles/base-rhea/swatch.json create mode 100644 public/r/react/styles/base-sera/carousel-indicator.json create mode 100644 public/r/react/styles/base-sera/number-field.json create mode 100644 public/r/react/styles/base-sera/swatch.json create mode 100644 public/r/react/styles/base-vega/carousel-indicator.json create mode 100644 public/r/react/styles/base-vega/number-field.json create mode 100644 public/r/react/styles/base-vega/swatch.json create mode 100644 public/r/styles/base-luma/number-field.json create mode 100644 public/r/styles/base-luma/swatch.json create mode 100644 public/r/styles/base-lyra/number-field.json create mode 100644 public/r/styles/base-lyra/swatch.json create mode 100644 public/r/styles/base-maia/number-field.json create mode 100644 public/r/styles/base-maia/swatch.json create mode 100644 public/r/styles/base-mira/number-field.json create mode 100644 public/r/styles/base-mira/swatch.json create mode 100644 public/r/styles/base-nova/number-field.json create mode 100644 public/r/styles/base-nova/swatch.json create mode 100644 public/r/styles/base-rhea/number-field.json create mode 100644 public/r/styles/base-rhea/swatch.json create mode 100644 public/r/styles/base-sera/number-field.json create mode 100644 public/r/styles/base-sera/swatch.json create mode 100644 public/r/styles/base-vega/number-field.json create mode 100644 public/r/styles/base-vega/swatch.json create mode 100644 react/gallery/ui/carousel-indicator.tsx create mode 100644 react/gallery/ui/number-field.tsx create mode 100644 react/gallery/ui/swatch.tsx create mode 100644 react/src/components/ui/carousel-indicator.tsx create mode 100644 react/src/components/ui/number-field.tsx create mode 100644 react/src/components/ui/swatch.tsx create mode 100644 react/src/components/ui/toggle-group.tsx create mode 100644 react/src/components/ui/toggle.tsx create mode 100644 src/components/ui/carousel/carousel-indicator.astro create mode 100644 src/components/ui/number-field/index.ts create mode 100644 src/components/ui/number-field/number-field-decrement.astro create mode 100644 src/components/ui/number-field/number-field-increment.astro create mode 100644 src/components/ui/number-field/number-field-input.astro create mode 100644 src/components/ui/number-field/number-field.astro create mode 100644 src/components/ui/swatch/index.ts create mode 100644 src/components/ui/swatch/swatch.astro create mode 100644 src/content/pages/components/number-field.mdx create mode 100644 src/content/pages/components/swatch.mdx create mode 100644 src/content/pages/liquid/components/number-field.mdx create mode 100644 src/content/pages/liquid/components/swatch.mdx create mode 100644 src/content/pages/react/components/carousel-indicator.mdx create mode 100644 src/content/pages/react/components/number-field.mdx create mode 100644 src/content/pages/react/components/swatch.mdx diff --git a/liquid/assets/ui-carousel.css b/liquid/assets/ui-carousel.css index 5743f2723..cb32cd974 100644 --- a/liquid/assets/ui-carousel.css +++ b/liquid/assets/ui-carousel.css @@ -30,6 +30,37 @@ padding-left: var(--gutter); scroll-snap-align: start; } +/* A thumbnail that shows its slide, as data-slot's carousel-indicator with a zero-based data-index. + A link to the slide's id also works without JavaScript. The controller marks the current one. */ +[data-slot='carousel-indicator'] { + position: relative; + display: block; + flex-shrink: 0; + overflow: hidden; + padding: 0; + border: 0; + border-radius: var(--radius-md); + background: var(--muted); + color: inherit; + cursor: pointer; + outline: 2px solid transparent; + outline-offset: 2px; + transition: + outline-color 150ms, + box-shadow 150ms; +} +[data-slot='carousel-indicator']:focus-visible { + box-shadow: var(--focus-ring); +} +[data-slot='carousel-indicator'][aria-current='true'] { + outline-color: var(--foreground); +} +[data-slot='carousel-indicator'] > :is(img, svg) { + display: block; + width: 100%; + height: 100%; + object-fit: cover; +} .carousel__controls { display: flex; gap: 8px; diff --git a/liquid/assets/ui-carousel.js b/liquid/assets/ui-carousel.js index 3c524eb92..32b6bbb8b 100644 --- a/liquid/assets/ui-carousel.js +++ b/liquid/assets/ui-carousel.js @@ -30,7 +30,16 @@ export function initializeCarousel(root) { queueMicrotask(translate); }); observer.observe(content, { childList: true }); + // A thumbnail can link to its slide's id, which works without JavaScript. Once the controller runs, + // a plain click only scrolls the carousel, so the page does not jump to the slide. + const onClick = (event) => { + const link = event.target instanceof Element ? event.target.closest('a[data-slot="carousel-indicator"]') : null; + if (!link || link.closest('[data-slot="carousel"]') !== root) return; + if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return; + event.preventDefault(); + }; const carousel = createCarousel(root, { slides: 'multiple', drag: true, loop: false }); + root.addEventListener('click', onClick); translate(); for (const button of root.querySelectorAll('[data-slot="carousel-previous"], [data-slot="carousel-next"]')) button.hidden = false; @@ -38,6 +47,7 @@ export function initializeCarousel(root) { carousel.destroy = () => { destroyed = true; observer.disconnect(); + root.removeEventListener('click', onClick); destroy(); }; return carousel; diff --git a/liquid/assets/ui-controls.js b/liquid/assets/ui-controls.js index 78a765184..c8141ff72 100644 --- a/liquid/assets/ui-controls.js +++ b/liquid/assets/ui-controls.js @@ -164,6 +164,34 @@ function initializeToaster({ createToast }, root) { }; } +// A number field's buttons step its native input, as its arrow keys do, and fire the input and change +// events that typing fires, so a form or cart script sees one kind of change. Without JavaScript the +// input still works on its own. +function initializeNumberField(_, root) { + const input = root.querySelector('[data-slot="number-field-input"]'); + const events = new AbortController(); + const step = (direction) => { + if (!input || input.disabled || input.readOnly) return; + const value = input.value; + try { + if (direction < 0) input.stepDown(); + else input.stepUp(); + } catch { + return; + } + if (input.value === value) return; + input.dispatchEvent(new Event('input', { bubbles: true })); + input.dispatchEvent(new Event('change', { bubbles: true })); + }; + for (const [slot, direction] of [ + ['number-field-decrement', -1], + ['number-field-increment', 1], + ]) + for (const button of root.querySelectorAll(`[data-slot="${slot}"]`)) + button.addEventListener('click', () => step(direction), { signal: events.signal }); + return { destroy: () => events.abort() }; +} + // Each entry loads its data-slot package, then starts one root with it and returns a controller // with destroy(). theme.js starts the root only if it is still current once the package has // loaded. Select, tooltip and hover card keep their closed content connected (eager), so nested @@ -192,4 +220,6 @@ export const controls = { 'alert-dialog': [() => import('@data-slot/alert-dialog'), initializeAlertDialog], drawer: [() => import('@data-slot/drawer'), ({ createDrawer }, root) => createDrawer(root)], toast: [() => import('@data-slot/toast'), initializeToaster], + // data-slot leaves a number field to the native input, so this entry loads no package. + 'number-field': [async () => ({}), initializeNumberField], }; diff --git a/liquid/assets/ui-manifest.json b/liquid/assets/ui-manifest.json index 3a13d674d..8aedddb89 100644 --- a/liquid/assets/ui-manifest.json +++ b/liquid/assets/ui-manifest.json @@ -5,8 +5,8 @@ "snippets/ui-base.liquid": "bc55195b5b6c82e63deeeed1255fd19b434c47866815f82b95b9202421256d34", "snippets/ui-init.liquid": "98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af", "assets/ui-licenses.json": "874a6f264f1503b2e577aee651e7285fd6ac808f56cadf8c7d58914bf2396f49", - "assets/ui-carousel.js": "3337447a9e0051cebbc1726bca7c7966de1035819fb8e0b676383b85f1917632", - "assets/ui-controls.js": "cf51f6d8b23c93e30d3355e993ff21a1aee79f38facfa413bed64e9815df255d", + "assets/ui-carousel.js": "eab87bbe966ee48b1a0b57c617b5d00b7426af03339bd17c4614c50b3c0a9394", + "assets/ui-controls.js": "04389fd2b166031d999245af7397137d7f119bd35f48029b18ecfb33c0fbc48b", "assets/ui-lifecycle.js": "78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6", "assets/ui-start.js": "738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500", "assets/data-slot-core.js": "d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6", @@ -69,8 +69,8 @@ "snippets/ui-accordion.liquid": "4b58c83ae13e14e03a3129a2dccbd02eeafa90c1e48edbbf9af2dc412bf3aabf", "assets/ui-accordion.css": "430924440bd0f1d49ceb72baffc77404c9411c31c24b940d75861daba2649e83", "snippets/ui-slider.liquid": "f2de1fb9099de77bf291455447bc86b2578781e7cf0efdf12117fb4575e0b0e6", - "snippets/ui-input.liquid": "d29e280ce1d08c7450902e69a73a0b7aa125f1cb662c50dbfc80a4a4fef0a85e", - "snippets/ui-input-group.liquid": "b862a0c63e23dc7ae4ffe3a8e057a87f38fa8e6c8842ddf3c86b826de0283d70", + "snippets/ui-input.liquid": "5f4b2adf298e84ef5845fb123b0753dd76294731da657fe395313ad7fe3f01a9", + "snippets/ui-input-group.liquid": "cdcef16153019f7e24bedcccb05e0cf540b002eb1bffb98d409c7aae5eb4d010", "snippets/ui-triggers.liquid": "ba9c7b802fb0a2aba0e9cc145a9dd44134964afb53e5363cf9e0ae138b906cc9", "snippets/ui-toggle-group.liquid": "2d61e0b9bc746e05834157f5a75d23123f02bc2df737412e4f6099844afc4f49", "snippets/ui-dialog.liquid": "779bbcd609a69ed29a984df1f26f9ed80fd24d71c4ee3ead5f4daa055b28e9fb", @@ -93,7 +93,7 @@ "snippets/ui-popup.liquid": "840f938aa2a331e4e7d55c659f25e841dcfb1bf5c5cadace6263243352ff8359", "snippets/ui-sheet.liquid": "0de705bed685bf78fa3af4517c947b38d62a1aa56bf29356c0a201b64db17614", "snippets/ui-carousel.liquid": "59dc0c06b2a9f2f779ca22b3ff4b005071d4909aba052d6f8f0a1aa19e84c2ce", - "assets/ui-carousel.css": "5317c251b3d3599ba330947fc9709ea50acfb858a5d7e08573b5d34ada2f3bf4", + "assets/ui-carousel.css": "04274e5fa2383386e70d8e4c01fbbb0b12a4ffe3f74c92d59b992474ffa975f4", "snippets/ui-attachment.liquid": "6881df7cdb1b27462d8cce7c17c0b4ed4dd860d62535e1daa81378a57bb69ddf", "snippets/ui-marquee.liquid": "47d5df8f1ff46a2cd48a132986c2ba199c9e19b485e62fc3e0d19091d4baaab1", "assets/ui-marquee.css": "ef13b83f3dbcd6685fcee3dba14238386d0f34bc2266a5326c0b6f2d40a23fce", @@ -105,6 +105,8 @@ "snippets/ui-dropdown-menu.liquid": "25b31e09e3e7bfee9a397ca4de6e310754844c55e71639eadba917b0f4e6d2e5", "snippets/ui-popover.liquid": "44ff93d72eaad409f56f8a84ce25715e2c3633f2ac49ba7a414767c6dbe2ee47", "snippets/ui-hover-card.liquid": "ba4133d352fa14296743138c99f3694015bafe953751b8e42155f047c4beb9f0", - "snippets/ui.liquid": "30679056b2eafefbaeef5ecd271604951676893a65a8eccb0f970c787a67b900" + "snippets/ui-number-field.liquid": "1ff75778c8bc4889564726baf7471f3d1dfe21eedb352d37283002791c71c9c1", + "snippets/ui-swatch.liquid": "9a39fc70974416ba933e90d799e6a805ba1f490c7b48d9a7e25d50caae596e7d", + "snippets/ui.liquid": "569e78bf6f84cdc7b1f7b5ba2681e1e52c6f5d02c4fe4ade16e580bffb963ae0" } } diff --git a/liquid/contracts.json b/liquid/contracts.json index 11d4bea52..3b93d9207 100644 --- a/liquid/contracts.json +++ b/liquid/contracts.json @@ -3,6 +3,7 @@ "${name}", "${n}", "${r}", + "${slot}", "${t}", "accordion", "accordion-content", @@ -43,6 +44,7 @@ "navigation-menu-indicator", "navigation-menu-item", "navigation-menu-trigger", + "number-field-input", "radio-group-indicator", "select-group", "select-item", @@ -242,7 +244,8 @@ ], "input-group": [ "input-group", - "input-group-addon" + "input-group-addon", + "number-field" ], "triggers": [ "alert-dialog", @@ -390,6 +393,7 @@ "carousel": [ "carousel", "carousel-content", + "carousel-indicator", "carousel-item" ], "attachment": [ @@ -424,5 +428,12 @@ "button-group", "button-group-separator", "button-group-text" + ], + "number-field": [ + "number-field", + "number-field-input" + ], + "swatch": [ + "swatch" ] } diff --git a/liquid/examples/carousel.liquid b/liquid/examples/carousel.liquid index e6c54205a..3a58f2901 100644 --- a/liquid/examples/carousel.liquid +++ b/liquid/examples/carousel.liquid @@ -10,3 +10,49 @@ + +
    +
    + + + +
    +
    + 1 + 2 + 3 +
    +
    diff --git a/liquid/examples/dependencies.json b/liquid/examples/dependencies.json index cffa3c477..ef28f61e5 100644 --- a/liquid/examples/dependencies.json +++ b/liquid/examples/dependencies.json @@ -56,5 +56,7 @@ "hover-card": ["hover-card", "typography", "button"], "marquee": ["marquee"], "section": ["section"], - "button-group": ["button-group"] + "button-group": ["button-group"], + "number-field": ["number-field", "field"], + "swatch": ["swatch", "toggle", "field"] } diff --git a/liquid/examples/number-field.liquid b/liquid/examples/number-field.liquid new file mode 100644 index 000000000..baa9a7bda --- /dev/null +++ b/liquid/examples/number-field.liquid @@ -0,0 +1,65 @@ +
    + +
    +
    + +
    + +
    + +
    +
    +
    diff --git a/liquid/examples/swatch.liquid b/liquid/examples/swatch.liquid new file mode 100644 index 000000000..c7fccdc30 --- /dev/null +++ b/liquid/examples/swatch.liquid @@ -0,0 +1,25 @@ +
    + Color + +
    diff --git a/liquid/registry.json b/liquid/registry.json index a03405cf4..0486eed2c 100644 --- a/liquid/registry.json +++ b/liquid/registry.json @@ -1269,6 +1269,42 @@ "registryDependencies": ["https://ui.full.dev/r/liquid/field.json"], "files": [] }, + { + "name": "number-field", + "type": "registry:item", + "title": "Number Field", + "description": "Native Liquid number field with readable CSS and shared data-slot parts.", + "docs": "https://ui.full.dev/liquid/components/number-field/", + "registryDependencies": [ + "https://ui.full.dev/r/liquid/init.json", + "https://ui.full.dev/r/liquid/input.json", + "https://ui.full.dev/r/liquid/input-group.json", + "https://ui.full.dev/r/liquid/button.json", + "https://ui.full.dev/r/liquid/runtime.json" + ], + "files": [ + { + "path": "snippets/ui-number-field.liquid", + "type": "registry:file", + "target": "~/snippets/ui-number-field.liquid" + } + ] + }, + { + "name": "swatch", + "type": "registry:item", + "title": "Swatch", + "description": "Native Liquid swatch with readable CSS and shared data-slot parts.", + "docs": "https://ui.full.dev/liquid/components/swatch/", + "registryDependencies": ["https://ui.full.dev/r/liquid/init.json"], + "files": [ + { + "path": "snippets/ui-swatch.liquid", + "type": "registry:file", + "target": "~/snippets/ui-swatch.liquid" + } + ] + }, { "name": "components", "type": "registry:item", @@ -1334,7 +1370,9 @@ "https://ui.full.dev/r/liquid/collapsible.json", "https://ui.full.dev/r/liquid/dropdown-menu.json", "https://ui.full.dev/r/liquid/popover.json", - "https://ui.full.dev/r/liquid/hover-card.json" + "https://ui.full.dev/r/liquid/hover-card.json", + "https://ui.full.dev/r/liquid/number-field.json", + "https://ui.full.dev/r/liquid/swatch.json" ], "files": [ { diff --git a/liquid/snippets/ui-input-group.liquid b/liquid/snippets/ui-input-group.liquid index 26000a661..18df64a08 100644 --- a/liquid/snippets/ui-input-group.liquid +++ b/liquid/snippets/ui-input-group.liquid @@ -4,8 +4,8 @@ {% stylesheet %} /* An input with addons inside one border, as Fulldev UI's input group. The input keeps the slot of - its own component, such as combobox-input. */ - [data-slot='input-group'] { + its own component, such as combobox-input. A number field is an input group with step buttons. */ + :is([data-slot='input-group'], [data-slot='number-field']) { display: flex; align-items: center; width: 100%; @@ -19,14 +19,14 @@ border-color 150ms, box-shadow 150ms; } - [data-slot='input-group'][data-size='sm'] { + :is([data-slot='input-group'], [data-slot='number-field'])[data-size='sm'] { height: calc(var(--spacing) * 8); } - [data-slot='input-group']:has(> input:focus-visible) { + :is([data-slot='input-group'], [data-slot='number-field']):has(> input:focus-visible) { border-color: var(--ring); box-shadow: var(--focus-ring); } - [data-slot='input-group'] > input { + :is([data-slot='input-group'], [data-slot='number-field']) > input { flex: 1; height: 100%; border: 0; @@ -34,18 +34,43 @@ background: transparent; box-shadow: none; } - [data-slot='input-group'] > input:focus-visible { + :is([data-slot='input-group'], [data-slot='number-field']) > input:focus-visible { box-shadow: none; } + /* An addon sits at the start, or at the end with data-align='inline-end', as in Fulldev UI. A + button in it moves a little closer to the edge, and the input gives up some of its padding on + the addon's side. */ [data-slot='input-group-addon'] { display: flex; align-items: center; gap: calc(var(--spacing) * 2); - padding-right: calc(var(--spacing) * 2); + padding-left: calc(var(--spacing) * 2); color: var(--muted-foreground); font-size: 0.875rem; font-weight: 500; } + [data-slot='input-group-addon'][data-align='inline-end'] { + padding-right: calc(var(--spacing) * 2); + padding-left: 0; + } + [data-slot='input-group-addon']:not([data-align='inline-end']):has(> button) { + margin-left: calc(var(--spacing) * -1); + } + [data-slot='input-group-addon'][data-align='inline-end']:has(> button) { + margin-right: calc(var(--spacing) * -1); + } + :is([data-slot='input-group'], [data-slot='number-field']):has( + > [data-slot='input-group-addon']:not([data-align='inline-end']) + ) + > input { + padding-left: calc(var(--spacing) * 1.5); + } + :is([data-slot='input-group'], [data-slot='number-field']):has( + > [data-slot='input-group-addon'][data-align='inline-end'] + ) + > input { + padding-right: calc(var(--spacing) * 1.5); + } [data-slot='input-group-addon'] > .icon { width: calc(var(--spacing) * 4); height: calc(var(--spacing) * 4); diff --git a/liquid/snippets/ui-input.liquid b/liquid/snippets/ui-input.liquid index 4c11100d5..8e91a60b1 100644 --- a/liquid/snippets/ui-input.liquid +++ b/liquid/snippets/ui-input.liquid @@ -54,7 +54,9 @@ resize: vertical; field-sizing: content; } - select { + /* The native-select slot outranks a bare select in the rule above, so this rule names it too, or + its padding hides the text under the arrow. */ + :is(select, [data-slot='native-select']) { appearance: none; padding-right: calc(var(--spacing) * 8); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); diff --git a/liquid/snippets/ui-number-field.liquid b/liquid/snippets/ui-number-field.liquid new file mode 100644 index 000000000..ea9f72a62 --- /dev/null +++ b/liquid/snippets/ui-number-field.liquid @@ -0,0 +1,21 @@ +{% doc %} + Fulldev UI number field styles. Use native markup with its data-slot parts. +{% enddoc %} + +{% stylesheet %} + /* A native number input with decrement and increment buttons in input group addons, such as a + quantity. The input works on its own; the runtime connects the buttons. */ + [data-slot='number-field'] { + width: calc(var(--spacing) * 32); + } + [data-slot='number-field'] > [data-slot='number-field-input'] { + text-align: center; + font-variant-numeric: tabular-nums; + appearance: textfield; + } + [data-slot='number-field-input']::-webkit-inner-spin-button, + [data-slot='number-field-input']::-webkit-outer-spin-button { + margin: 0; + appearance: none; + } +{% endstylesheet %} diff --git a/liquid/snippets/ui-swatch.liquid b/liquid/snippets/ui-swatch.liquid new file mode 100644 index 000000000..6c61eac01 --- /dev/null +++ b/liquid/snippets/ui-swatch.liquid @@ -0,0 +1,19 @@ +{% doc %} + Fulldev UI swatch styles. Use native markup with its data-slot parts. +{% enddoc %} + +{% stylesheet %} + /* A color or pattern beside an option or filter value, such as Shopify's swatch.color or + swatch.image. Set the background in a style attribute; the faint inner ring keeps white and + black visible on any background. It is decorative, so the value's name stays in text. */ + [data-slot='swatch'] { + display: inline-block; + flex-shrink: 0; + width: calc(var(--spacing) * 4); + height: calc(var(--spacing) * 4); + border-radius: 999px; + background-position: center; + background-size: cover; + box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--foreground) 15%, transparent); + } +{% endstylesheet %} diff --git a/liquid/snippets/ui.liquid b/liquid/snippets/ui.liquid index bea8bebd4..5dadb7ab1 100644 --- a/liquid/snippets/ui.liquid +++ b/liquid/snippets/ui.liquid @@ -63,6 +63,8 @@ {% render 'ui-dropdown-menu' %} {% render 'ui-popover' %} {% render 'ui-hover-card' %} +{% render 'ui-number-field' %} +{% render 'ui-swatch' %} {% if runtime != false %} {% render 'ui-runtime' %} {% endif %} diff --git a/public/r/liquid/carousel.json b/public/r/liquid/carousel.json index 0d154b3ce..130e1a8f2 100644 --- a/public/r/liquid/carousel.json +++ b/public/r/liquid/carousel.json @@ -17,7 +17,7 @@ }, { "path": "assets/ui-carousel.css", - "content": "[data-slot='carousel'] {\n position: relative;\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n/* The strip bleeds into the gutters. Each item's box starts at a scroll position and insets its\n content by the gutter, so the controller's positions and the snap points line up with the\n section's columns; the end padding keeps the last item off the edge. It is the containing block\n of absolutely positioned content in the cards, such as screen reader labels, so its overflow\n clips them and they cannot widen the page. */\n[data-slot='carousel-content'] {\n position: relative;\n display: flex;\n margin-inline: calc(var(--gutter) * -1);\n padding-inline-end: var(--gutter);\n overflow-x: auto;\n scroll-snap-type: x mandatory;\n scrollbar-width: none;\n}\n[data-slot='carousel-content']::-webkit-scrollbar {\n display: none;\n}\n[data-slot='carousel'][data-dragging='true'] [data-slot='carousel-content'] {\n cursor: grabbing;\n}\n[data-slot='carousel-item'] {\n flex: 0 0 calc(100% / var(--carousel-columns, 1));\n min-width: 0;\n padding-left: var(--gutter);\n scroll-snap-align: start;\n}\n.carousel__controls {\n display: flex;\n gap: 8px;\n}\n.carousel__controls[data-align='end'] {\n justify-content: flex-end;\n}\n.carousel__controls[data-align='center'] {\n justify-content: center;\n}\n.carousel__controls:not(:has(button:not([hidden]))) {\n display: none;\n}\n.carousel__button[data-button] {\n border-radius: 50%;\n}\n@media (max-width: 1023px) {\n [data-slot='carousel-item'] {\n flex-basis: calc(100% / var(--carousel-columns-tablet, 1));\n }\n}\n@media (max-width: 767px) {\n [data-slot='carousel-item'] {\n flex-basis: calc(100% / var(--carousel-columns-mobile, 1));\n }\n}\n", + "content": "[data-slot='carousel'] {\n position: relative;\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n/* The strip bleeds into the gutters. Each item's box starts at a scroll position and insets its\n content by the gutter, so the controller's positions and the snap points line up with the\n section's columns; the end padding keeps the last item off the edge. It is the containing block\n of absolutely positioned content in the cards, such as screen reader labels, so its overflow\n clips them and they cannot widen the page. */\n[data-slot='carousel-content'] {\n position: relative;\n display: flex;\n margin-inline: calc(var(--gutter) * -1);\n padding-inline-end: var(--gutter);\n overflow-x: auto;\n scroll-snap-type: x mandatory;\n scrollbar-width: none;\n}\n[data-slot='carousel-content']::-webkit-scrollbar {\n display: none;\n}\n[data-slot='carousel'][data-dragging='true'] [data-slot='carousel-content'] {\n cursor: grabbing;\n}\n[data-slot='carousel-item'] {\n flex: 0 0 calc(100% / var(--carousel-columns, 1));\n min-width: 0;\n padding-left: var(--gutter);\n scroll-snap-align: start;\n}\n/* A thumbnail that shows its slide, as data-slot's carousel-indicator with a zero-based data-index.\n A link to the slide's id also works without JavaScript. The controller marks the current one. */\n[data-slot='carousel-indicator'] {\n position: relative;\n display: block;\n flex-shrink: 0;\n overflow: hidden;\n padding: 0;\n border: 0;\n border-radius: var(--radius-md);\n background: var(--muted);\n color: inherit;\n cursor: pointer;\n outline: 2px solid transparent;\n outline-offset: 2px;\n transition:\n outline-color 150ms,\n box-shadow 150ms;\n}\n[data-slot='carousel-indicator']:focus-visible {\n box-shadow: var(--focus-ring);\n}\n[data-slot='carousel-indicator'][aria-current='true'] {\n outline-color: var(--foreground);\n}\n[data-slot='carousel-indicator'] > :is(img, svg) {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.carousel__controls {\n display: flex;\n gap: 8px;\n}\n.carousel__controls[data-align='end'] {\n justify-content: flex-end;\n}\n.carousel__controls[data-align='center'] {\n justify-content: center;\n}\n.carousel__controls:not(:has(button:not([hidden]))) {\n display: none;\n}\n.carousel__button[data-button] {\n border-radius: 50%;\n}\n@media (max-width: 1023px) {\n [data-slot='carousel-item'] {\n flex-basis: calc(100% / var(--carousel-columns-tablet, 1));\n }\n}\n@media (max-width: 767px) {\n [data-slot='carousel-item'] {\n flex-basis: calc(100% / var(--carousel-columns-mobile, 1));\n }\n}\n", "type": "registry:file", "target": "~/assets/ui-carousel.css" } diff --git a/public/r/liquid/components.json b/public/r/liquid/components.json index 53e33ade5..e122c324e 100644 --- a/public/r/liquid/components.json +++ b/public/r/liquid/components.json @@ -63,18 +63,20 @@ "https://ui.full.dev/r/liquid/collapsible.json", "https://ui.full.dev/r/liquid/dropdown-menu.json", "https://ui.full.dev/r/liquid/popover.json", - "https://ui.full.dev/r/liquid/hover-card.json" + "https://ui.full.dev/r/liquid/hover-card.json", + "https://ui.full.dev/r/liquid/number-field.json", + "https://ui.full.dev/r/liquid/swatch.json" ], "files": [ { "path": "snippets/ui.liquid", - "content": "{% doc %}\n All Fulldev UI styles. Render once in the head before theme styles.\n\n @param {boolean} [runtime] - False when the theme owns its import map and initialization.\n{% enddoc %}\n\n{% render 'ui-init' %}\n{% render 'ui-banner' %}\n{% render 'ui-tabs' %}\n{% render 'ui-form' %}\n{% render 'ui-select' %}\n{% render 'ui-field' %}\n{% render 'ui-item' %}\n{% render 'ui-spinner' %}\n{% render 'ui-video' %}\n{% render 'ui-button' %}\n{% render 'ui-toggle' %}\n{% render 'ui-logo' %}\n{% render 'ui-kbd' %}\n{% render 'ui-rating' %}\n{% render 'ui-tooltip' %}\n{% render 'ui-avatar' %}\n{% render 'ui-empty' %}\n{% render 'ui-alert-dialog' %}\n{% render 'ui-navigation-menu' %}\n{% render 'ui-typography' %}\n{% render 'ui-toc' %}\n{% render 'ui-icon' %}\n{% render 'ui-combobox' %}\n{% render 'ui-toast' %}\n{% render 'ui-header' %}\n{% render 'ui-command' %}\n{% render 'ui-accordion' %}\n{% render 'ui-slider' %}\n{% render 'ui-input' %}\n{% render 'ui-input-group' %}\n{% render 'ui-triggers' %}\n{% render 'ui-toggle-group' %}\n{% render 'ui-dialog' %}\n{% render 'ui-drawer' %}\n{% render 'ui-badge' %}\n{% render 'ui-alert' %}\n{% render 'ui-table' %}\n{% render 'ui-breadcrumb' %}\n{% render 'ui-aspect-ratio' %}\n{% render 'ui-price' %}\n{% render 'ui-radio-group' %}\n{% render 'ui-checkbox' %}\n{% render 'ui-switch' %}\n{% render 'ui-skeleton' %}\n{% render 'ui-separator' %}\n{% render 'ui-card' %}\n{% render 'ui-pagination' %}\n{% render 'ui-popup' %}\n{% render 'ui-sheet' %}\n{% render 'ui-carousel' %}\n{% render 'ui-attachment' %}\n{% render 'ui-marquee' %}\n{% render 'ui-invalid-controls' %}\n{% render 'ui-section' %}\n{% render 'ui-button-group' %}\n{% render 'ui-collapsible' %}\n{% render 'ui-dropdown-menu' %}\n{% render 'ui-popover' %}\n{% render 'ui-hover-card' %}\n{% if runtime != false %}\n {% render 'ui-runtime' %}\n{% endif %}\n", + "content": "{% doc %}\n All Fulldev UI styles. Render once in the head before theme styles.\n\n @param {boolean} [runtime] - False when the theme owns its import map and initialization.\n{% enddoc %}\n\n{% render 'ui-init' %}\n{% render 'ui-banner' %}\n{% render 'ui-tabs' %}\n{% render 'ui-form' %}\n{% render 'ui-select' %}\n{% render 'ui-field' %}\n{% render 'ui-item' %}\n{% render 'ui-spinner' %}\n{% render 'ui-video' %}\n{% render 'ui-button' %}\n{% render 'ui-toggle' %}\n{% render 'ui-logo' %}\n{% render 'ui-kbd' %}\n{% render 'ui-rating' %}\n{% render 'ui-tooltip' %}\n{% render 'ui-avatar' %}\n{% render 'ui-empty' %}\n{% render 'ui-alert-dialog' %}\n{% render 'ui-navigation-menu' %}\n{% render 'ui-typography' %}\n{% render 'ui-toc' %}\n{% render 'ui-icon' %}\n{% render 'ui-combobox' %}\n{% render 'ui-toast' %}\n{% render 'ui-header' %}\n{% render 'ui-command' %}\n{% render 'ui-accordion' %}\n{% render 'ui-slider' %}\n{% render 'ui-input' %}\n{% render 'ui-input-group' %}\n{% render 'ui-triggers' %}\n{% render 'ui-toggle-group' %}\n{% render 'ui-dialog' %}\n{% render 'ui-drawer' %}\n{% render 'ui-badge' %}\n{% render 'ui-alert' %}\n{% render 'ui-table' %}\n{% render 'ui-breadcrumb' %}\n{% render 'ui-aspect-ratio' %}\n{% render 'ui-price' %}\n{% render 'ui-radio-group' %}\n{% render 'ui-checkbox' %}\n{% render 'ui-switch' %}\n{% render 'ui-skeleton' %}\n{% render 'ui-separator' %}\n{% render 'ui-card' %}\n{% render 'ui-pagination' %}\n{% render 'ui-popup' %}\n{% render 'ui-sheet' %}\n{% render 'ui-carousel' %}\n{% render 'ui-attachment' %}\n{% render 'ui-marquee' %}\n{% render 'ui-invalid-controls' %}\n{% render 'ui-section' %}\n{% render 'ui-button-group' %}\n{% render 'ui-collapsible' %}\n{% render 'ui-dropdown-menu' %}\n{% render 'ui-popover' %}\n{% render 'ui-hover-card' %}\n{% render 'ui-number-field' %}\n{% render 'ui-swatch' %}\n{% if runtime != false %}\n {% render 'ui-runtime' %}\n{% endif %}\n", "type": "registry:file", "target": "~/snippets/ui.liquid" }, { "path": "assets/ui-manifest.json", - "content": "{\n \"registry\": \"https://ui.full.dev/r/liquid/\",\n \"files\": {\n \"assets/ui-tokens.css\": \"55a8f2810ab4a1498ca3dd2f6e7dc89009c60e2402ddfcb95783b6eba996c374\",\n \"snippets/ui-base.liquid\": \"bc55195b5b6c82e63deeeed1255fd19b434c47866815f82b95b9202421256d34\",\n \"snippets/ui-init.liquid\": \"98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af\",\n \"assets/ui-licenses.json\": \"874a6f264f1503b2e577aee651e7285fd6ac808f56cadf8c7d58914bf2396f49\",\n \"assets/ui-carousel.js\": \"3337447a9e0051cebbc1726bca7c7966de1035819fb8e0b676383b85f1917632\",\n \"assets/ui-controls.js\": \"cf51f6d8b23c93e30d3355e993ff21a1aee79f38facfa413bed64e9815df255d\",\n \"assets/ui-lifecycle.js\": \"78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6\",\n \"assets/ui-start.js\": \"738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500\",\n \"assets/data-slot-core.js\": \"d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6\",\n \"assets/data-slot-dialog.js\": \"a5201f452700d04145b5156cc46880d2b5bdf7521b03ff9521c3f7693ee1b5d5\",\n \"assets/data-slot-command.js\": \"299d99c1a5f7b646692575e5d48e3f7b9209d76119508116c1a216dc80d33d13\",\n \"assets/data-slot-navigation-menu.js\": \"f9b42a9bceca8e1103718d43aa5f0d141ab63d38278cb121e790a2c80e827b68\",\n \"assets/data-slot-accordion.js\": \"fe6b0ac2c87a2e31582e5e88c509e0b508f41d0065d0a420407999ad210e6a27\",\n \"assets/data-slot-tabs.js\": \"1f187134bba755cfda9d35cf9f16174c1a183862d32d100f270f4177033058c7\",\n \"assets/data-slot-combobox.js\": \"b5f2ed9d65a43d836c59c0d4dc33c16ab12ef9fa05d510078b5d62517d854db6\",\n \"assets/data-slot-carousel.js\": \"d83ef938d3b62dc3652b123428ca2261e03fb2ba1133992b0f5545a974238d03\",\n \"assets/data-slot-alert-dialog.js\": \"1caee9a86bb2a816ea32bc1a48b82f3cc588ec3c563ebc443f836ab1dae2f618\",\n \"assets/data-slot-collapsible.js\": \"c42f76e3dfeff4570eb2f5104434fbffd3ef55710833e888965c590ce59f4f9f\",\n \"assets/data-slot-drawer.js\": \"c9343b26ea27193cc1d2da3e41bf452005bc2e534151fa1a762b2b6535de28d0\",\n \"assets/data-slot-dropdown-menu.js\": \"543c5717c9ba8363bbab4c0a11005980d75d4baaed79cf7123c7bcfe3ec8720b\",\n \"assets/data-slot-hover-card.js\": \"86e1bfa5d4822f180f3501ca7cc51bf044d4e917a7ebdb7a10b70006dba6467f\",\n \"assets/data-slot-popover.js\": \"526e30d663381329a7a6394eae886224024034d0abf96f888c932bb4b8c1b1cb\",\n \"assets/data-slot-radio-group.js\": \"7a9b90166de80d79ee42aa2df73e4d8179e9d291cb30b3095c7d8332375b0499\",\n \"assets/data-slot-select.js\": \"13d1a3fbe90f4b3b830d987b6a28267897faa3589bf00e64edca4938acbf406b\",\n \"assets/data-slot-slider.js\": \"0d10131aa95450aa1269234103ead8d805d6abdf9e0683510f4fcf58ab0f1efa\",\n \"assets/data-slot-switch.js\": \"0d5b09a89429880f61aeb540be5f87383ba5c6beb261ad468e9a6cf18e45b6a0\",\n \"assets/data-slot-toast.js\": \"817744d32eebe3bfc50df068715e0b572350ca53fe5ad0e04ec8646800e1caf0\",\n \"assets/data-slot-toggle.js\": \"7a651d578cb83be842c8e59fe1a2cd124594b1fd6c942faf0a33cf9e57326947\",\n \"assets/data-slot-toggle-group.js\": \"c1f2fc9712974e63e4e44c97ab2a1ec8bc3c3cb73c1afb4578b085fed11977f1\",\n \"assets/data-slot-tooltip.js\": \"5a9e51a54669153620eb3512e74487eac12ababe3331aff7dfed6c717b8b93c0\",\n \"snippets/ui-runtime.liquid\": \"62ae98f4ad16dc0ca406d96bbabb373cd30a63dd385e3614da0dcd2e63d0f17c\",\n \"assets/ui-motion.js\": \"2252a6794ddb162b73ee1640af212292b8c520e98ae09ea862b479078f81d3d1\",\n \"snippets/ui-banner.liquid\": \"9965b12e9a2036aca6e35f1327da8a240c894a6fd91d99f37e77107818d271a3\",\n \"snippets/ui-tabs.liquid\": \"5b57bb3d6400e44ef9343f7b45d9baf2d8581d678ccc64764be60164160687eb\",\n \"snippets/ui-form.liquid\": \"1c002d21c441e217a8f3d64268d429c97e4785af118eb7f7abb5ff1c3d10a3b6\",\n \"assets/ui-form.css\": \"ab0dd70553818fe0799e393f6811e949884eca9f44d9ceff4c2b333c0bf724b4\",\n \"snippets/ui-select.liquid\": \"2d8c99759161a024285d1b54c0ca166dc7b13c97596497351253e945b5e52ee2\",\n \"snippets/ui-field.liquid\": \"cf73aaaf3e27bc9d121dd089317610fbd08b9550a1d5fb0738337c6817879309\",\n \"assets/ui-field.css\": \"96f846a52ab0b832a9eca70ef430e5fd14664a3367d04842de320a82e622722b\",\n \"snippets/ui-item.liquid\": \"fe03c1a3e6df09192c3ac7a08520b0fc1c629a597a029d193ff91655cb7ceac0\",\n \"snippets/ui-spinner.liquid\": \"84d48693f10cb8af4549cc0d71cd847a85da0e111f2ad64dae309c128c2a8c4a\",\n \"snippets/ui-video.liquid\": \"14acea7c523198269a9165270decac21a43a5d69bf12bd248a76aceb2e9b26ed\",\n \"assets/ui-video.css\": \"c1572853f48474f6291a70ccdb1085512700fc3dcbbdaebd71374b838ec67fee\",\n \"snippets/ui-button.liquid\": \"d0b4ad1b574f10f986a7d5b2719a16c4ba29b80887962b9a8b6464afef6fe54c\",\n \"snippets/ui-toggle.liquid\": \"c86100cf7c163c0d5bc81976fd794788f68fab2ebc5c0887d8042958ce020912\",\n \"snippets/ui-logo.liquid\": \"5d6de7be3f7aab9e05c9533afef39ea0e9dce1b4ee12a13bf7b82780c973b126\",\n \"snippets/ui-kbd.liquid\": \"024f34ed2932d183671f7fa44ff724a70ec17b766cf7e0d3f565f46f33ab2cf2\",\n \"snippets/ui-rating.liquid\": \"aa57adc5a5508b368da78023b242694e6ce924b6e9e5407c141a5030a414bf1d\",\n \"assets/ui-rating.css\": \"e5efea2a9edaea78522f20ebd9e9d01abe8a2fcd310c193239adf80ec33b4975\",\n \"snippets/ui-tooltip.liquid\": \"d2863a0da3090c73dda10d8615b84fc50fab64373a466fbf4e4e743cfb083c96\",\n \"snippets/ui-avatar.liquid\": \"9bfb5d5f535857cc45f31afbc91c855e94972bab07ad3b4fe2dc0d241106385d\",\n \"snippets/ui-empty.liquid\": \"0e7fb5b68d50abcf7213304034762b4dd535c791dd6f4dc517100145e04b0cde\",\n \"snippets/ui-alert-dialog.liquid\": \"f739374035ffa0f3bca2c4b6d946710751c8268c8f1dde535251be9c2c7b0cd0\",\n \"snippets/ui-navigation-menu.liquid\": \"52aecbb36b0031810a85a99f5d4439e852dc1ba3a872b9525dd75c8df8b5a84e\",\n \"assets/ui-navigation-menu.css\": \"29a47ce0eb549e58cc8195dcb656bd2cef56360178c76acfc2d481a110463ca6\",\n \"snippets/ui-typography.liquid\": \"b03dc93c4de6636164a206c95979caa6fe9ab7cf8d1c24d75611416259da7979\",\n \"assets/ui-typography.css\": \"0daa86d256566ab8065411682cb8c90aa3b3eab6e62fbd8165dac1147e4edde9\",\n \"snippets/ui-toc.liquid\": \"04038e0870112b2335b80b4092814915105b31d08cdd36ecf1f4de1761f66acf\",\n \"snippets/ui-icon.liquid\": \"ca75a9485eb33cdb31a3a4e2e5ca03ce74d4995dbd1696d964832a87602bf3ca\",\n \"assets/ui-icon.css\": \"cfb1a47905cbd9c25b635c96926a77f8eed983a4aca62fdce758345dcc792add\",\n \"snippets/ui-combobox.liquid\": \"bacd605b44237512a74d34119d01432440b76ae60218dae6a6f37f98b32e3e00\",\n \"snippets/ui-toast.liquid\": \"bb032d90d6084fb15e12da22777635b80d09a06402513c46c89e853e3ede0405\",\n \"assets/ui-toast.css\": \"c322fab210a202fa434695025550495dbdc93e688ed7ae39303fea9830864d0b\",\n \"snippets/ui-header.liquid\": \"cc14effb4e3b6c4ac397e306e4ebd270a31b3415cc12ffbeb6cd38f411eaba80\",\n \"snippets/ui-command.liquid\": \"4a37f59dc0039fa1505de764472212d6cd7c4e5c52b737a1700e928db286f233\",\n \"snippets/ui-accordion.liquid\": \"4b58c83ae13e14e03a3129a2dccbd02eeafa90c1e48edbbf9af2dc412bf3aabf\",\n \"assets/ui-accordion.css\": \"430924440bd0f1d49ceb72baffc77404c9411c31c24b940d75861daba2649e83\",\n \"snippets/ui-slider.liquid\": \"f2de1fb9099de77bf291455447bc86b2578781e7cf0efdf12117fb4575e0b0e6\",\n \"snippets/ui-input.liquid\": \"d29e280ce1d08c7450902e69a73a0b7aa125f1cb662c50dbfc80a4a4fef0a85e\",\n \"snippets/ui-input-group.liquid\": \"b862a0c63e23dc7ae4ffe3a8e057a87f38fa8e6c8842ddf3c86b826de0283d70\",\n \"snippets/ui-triggers.liquid\": \"ba9c7b802fb0a2aba0e9cc145a9dd44134964afb53e5363cf9e0ae138b906cc9\",\n \"snippets/ui-toggle-group.liquid\": \"2d61e0b9bc746e05834157f5a75d23123f02bc2df737412e4f6099844afc4f49\",\n \"snippets/ui-dialog.liquid\": \"779bbcd609a69ed29a984df1f26f9ed80fd24d71c4ee3ead5f4daa055b28e9fb\",\n \"snippets/ui-drawer.liquid\": \"16120fdd70fac393470c3936223e78ad5f81164e2b7616fd075e8e82098a17d5\",\n \"snippets/ui-badge.liquid\": \"14b826127eaedd2f5acac0ca74fbe403ef18b08ca6651995c0bf0501210d55f6\",\n \"snippets/ui-alert.liquid\": \"392bf006b427178d4699272115317e0db934d881be9534b4638c492fa1825a83\",\n \"snippets/ui-table.liquid\": \"6599d8b3bd193761571c2b71e499f78546ba5c2768d4e0a0a60cd0e348632e5b\",\n \"snippets/ui-breadcrumb.liquid\": \"dafdeaf03286b386c90f8e72777de1946fba4718ee568bd85ca7bc768483a3ca\",\n \"snippets/ui-aspect-ratio.liquid\": \"c8aae05fcd76af7ae768aedafd7e758533e2b52135b00ff72940896ad793f177\",\n \"snippets/ui-price.liquid\": \"96156754aee3a04aa3ae7084a14470000213e8be14468c4937e9f3a87e348234\",\n \"assets/ui-price.css\": \"95c947e219621102b704164e48a83e381e6e2b27b99311a294e076745b39a36f\",\n \"snippets/ui-radio-group.liquid\": \"af9978e18716cc86d03ed21dece8304992e74a4fab88e12069b0648cfd944492\",\n \"snippets/ui-checkbox.liquid\": \"0e4dd1738b355c5a93533e0b813e2e6c72f7491c289d65aa7b6435be1c599006\",\n \"snippets/ui-switch.liquid\": \"84ed60c777e77daec8b5fe6f2ee434877d51224235dc1bc2e17927cd182fe646\",\n \"snippets/ui-skeleton.liquid\": \"1e30245f6577f73d28f4badbc293934656882a29d5dec1d2f74ef95f3bcede2c\",\n \"snippets/ui-separator.liquid\": \"90b1d2795666b6c51f35645ca8d07659f2c4868fe9553e233cddb4e962095f6e\",\n \"snippets/ui-card.liquid\": \"581a46843f1280ebace0423ee84289b40fbd46142e6a9ab3940f63eca0e4c5f2\",\n \"assets/ui-card.css\": \"ee7e4192ec814066d0c9838f810ae4ca267b9f071b7fa945c43226d46b0f8dc9\",\n \"snippets/ui-pagination.liquid\": \"30943c00686e1a23d92865465b38c964e059b14ae3a20fb7fe151824a73773eb\",\n \"snippets/ui-popup.liquid\": \"840f938aa2a331e4e7d55c659f25e841dcfb1bf5c5cadace6263243352ff8359\",\n \"snippets/ui-sheet.liquid\": \"0de705bed685bf78fa3af4517c947b38d62a1aa56bf29356c0a201b64db17614\",\n \"snippets/ui-carousel.liquid\": \"59dc0c06b2a9f2f779ca22b3ff4b005071d4909aba052d6f8f0a1aa19e84c2ce\",\n \"assets/ui-carousel.css\": \"5317c251b3d3599ba330947fc9709ea50acfb858a5d7e08573b5d34ada2f3bf4\",\n \"snippets/ui-attachment.liquid\": \"6881df7cdb1b27462d8cce7c17c0b4ed4dd860d62535e1daa81378a57bb69ddf\",\n \"snippets/ui-marquee.liquid\": \"47d5df8f1ff46a2cd48a132986c2ba199c9e19b485e62fc3e0d19091d4baaab1\",\n \"assets/ui-marquee.css\": \"ef13b83f3dbcd6685fcee3dba14238386d0f34bc2266a5326c0b6f2d40a23fce\",\n \"snippets/ui-invalid-controls.liquid\": \"a169e8244cc86f5431f902f7a73b37188051ba8f2ef3e323830462dae5aed066\",\n \"snippets/ui-section.liquid\": \"da358cd87447457f3675b035b48556103d86cd11e0b2240ae2800e4c9ea54bdc\",\n \"assets/ui-section.css\": \"f4936a02aaf1927ccced898886857855e4b5e95fafe5c2a52748ecbbe87b6621\",\n \"snippets/ui-button-group.liquid\": \"a2790f8da0f8b37acc1ed558ba1548ea250a5b93e1b2dfbd11eb150f3f02783a\",\n \"snippets/ui-collapsible.liquid\": \"e6107a03d00b8cc75bb03206e64b9aa7f2989d982c0408b398b62067c6df450a\",\n \"snippets/ui-dropdown-menu.liquid\": \"25b31e09e3e7bfee9a397ca4de6e310754844c55e71639eadba917b0f4e6d2e5\",\n \"snippets/ui-popover.liquid\": \"44ff93d72eaad409f56f8a84ce25715e2c3633f2ac49ba7a414767c6dbe2ee47\",\n \"snippets/ui-hover-card.liquid\": \"ba4133d352fa14296743138c99f3694015bafe953751b8e42155f047c4beb9f0\",\n \"snippets/ui.liquid\": \"30679056b2eafefbaeef5ecd271604951676893a65a8eccb0f970c787a67b900\"\n }\n}\n", + "content": "{\n \"registry\": \"https://ui.full.dev/r/liquid/\",\n \"files\": {\n \"assets/ui-tokens.css\": \"55a8f2810ab4a1498ca3dd2f6e7dc89009c60e2402ddfcb95783b6eba996c374\",\n \"snippets/ui-base.liquid\": \"bc55195b5b6c82e63deeeed1255fd19b434c47866815f82b95b9202421256d34\",\n \"snippets/ui-init.liquid\": \"98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af\",\n \"assets/ui-licenses.json\": \"874a6f264f1503b2e577aee651e7285fd6ac808f56cadf8c7d58914bf2396f49\",\n \"assets/ui-carousel.js\": \"eab87bbe966ee48b1a0b57c617b5d00b7426af03339bd17c4614c50b3c0a9394\",\n \"assets/ui-controls.js\": \"04389fd2b166031d999245af7397137d7f119bd35f48029b18ecfb33c0fbc48b\",\n \"assets/ui-lifecycle.js\": \"78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6\",\n \"assets/ui-start.js\": \"738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500\",\n \"assets/data-slot-core.js\": \"d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6\",\n \"assets/data-slot-dialog.js\": \"a5201f452700d04145b5156cc46880d2b5bdf7521b03ff9521c3f7693ee1b5d5\",\n \"assets/data-slot-command.js\": \"299d99c1a5f7b646692575e5d48e3f7b9209d76119508116c1a216dc80d33d13\",\n \"assets/data-slot-navigation-menu.js\": \"f9b42a9bceca8e1103718d43aa5f0d141ab63d38278cb121e790a2c80e827b68\",\n \"assets/data-slot-accordion.js\": \"fe6b0ac2c87a2e31582e5e88c509e0b508f41d0065d0a420407999ad210e6a27\",\n \"assets/data-slot-tabs.js\": \"1f187134bba755cfda9d35cf9f16174c1a183862d32d100f270f4177033058c7\",\n \"assets/data-slot-combobox.js\": \"b5f2ed9d65a43d836c59c0d4dc33c16ab12ef9fa05d510078b5d62517d854db6\",\n \"assets/data-slot-carousel.js\": \"d83ef938d3b62dc3652b123428ca2261e03fb2ba1133992b0f5545a974238d03\",\n \"assets/data-slot-alert-dialog.js\": \"1caee9a86bb2a816ea32bc1a48b82f3cc588ec3c563ebc443f836ab1dae2f618\",\n \"assets/data-slot-collapsible.js\": \"c42f76e3dfeff4570eb2f5104434fbffd3ef55710833e888965c590ce59f4f9f\",\n \"assets/data-slot-drawer.js\": \"c9343b26ea27193cc1d2da3e41bf452005bc2e534151fa1a762b2b6535de28d0\",\n \"assets/data-slot-dropdown-menu.js\": \"543c5717c9ba8363bbab4c0a11005980d75d4baaed79cf7123c7bcfe3ec8720b\",\n \"assets/data-slot-hover-card.js\": \"86e1bfa5d4822f180f3501ca7cc51bf044d4e917a7ebdb7a10b70006dba6467f\",\n \"assets/data-slot-popover.js\": \"526e30d663381329a7a6394eae886224024034d0abf96f888c932bb4b8c1b1cb\",\n \"assets/data-slot-radio-group.js\": \"7a9b90166de80d79ee42aa2df73e4d8179e9d291cb30b3095c7d8332375b0499\",\n \"assets/data-slot-select.js\": \"13d1a3fbe90f4b3b830d987b6a28267897faa3589bf00e64edca4938acbf406b\",\n \"assets/data-slot-slider.js\": \"0d10131aa95450aa1269234103ead8d805d6abdf9e0683510f4fcf58ab0f1efa\",\n \"assets/data-slot-switch.js\": \"0d5b09a89429880f61aeb540be5f87383ba5c6beb261ad468e9a6cf18e45b6a0\",\n \"assets/data-slot-toast.js\": \"817744d32eebe3bfc50df068715e0b572350ca53fe5ad0e04ec8646800e1caf0\",\n \"assets/data-slot-toggle.js\": \"7a651d578cb83be842c8e59fe1a2cd124594b1fd6c942faf0a33cf9e57326947\",\n \"assets/data-slot-toggle-group.js\": \"c1f2fc9712974e63e4e44c97ab2a1ec8bc3c3cb73c1afb4578b085fed11977f1\",\n \"assets/data-slot-tooltip.js\": \"5a9e51a54669153620eb3512e74487eac12ababe3331aff7dfed6c717b8b93c0\",\n \"snippets/ui-runtime.liquid\": \"62ae98f4ad16dc0ca406d96bbabb373cd30a63dd385e3614da0dcd2e63d0f17c\",\n \"assets/ui-motion.js\": \"2252a6794ddb162b73ee1640af212292b8c520e98ae09ea862b479078f81d3d1\",\n \"snippets/ui-banner.liquid\": \"9965b12e9a2036aca6e35f1327da8a240c894a6fd91d99f37e77107818d271a3\",\n \"snippets/ui-tabs.liquid\": \"5b57bb3d6400e44ef9343f7b45d9baf2d8581d678ccc64764be60164160687eb\",\n \"snippets/ui-form.liquid\": \"1c002d21c441e217a8f3d64268d429c97e4785af118eb7f7abb5ff1c3d10a3b6\",\n \"assets/ui-form.css\": \"ab0dd70553818fe0799e393f6811e949884eca9f44d9ceff4c2b333c0bf724b4\",\n \"snippets/ui-select.liquid\": \"2d8c99759161a024285d1b54c0ca166dc7b13c97596497351253e945b5e52ee2\",\n \"snippets/ui-field.liquid\": \"cf73aaaf3e27bc9d121dd089317610fbd08b9550a1d5fb0738337c6817879309\",\n \"assets/ui-field.css\": \"96f846a52ab0b832a9eca70ef430e5fd14664a3367d04842de320a82e622722b\",\n \"snippets/ui-item.liquid\": \"fe03c1a3e6df09192c3ac7a08520b0fc1c629a597a029d193ff91655cb7ceac0\",\n \"snippets/ui-spinner.liquid\": \"84d48693f10cb8af4549cc0d71cd847a85da0e111f2ad64dae309c128c2a8c4a\",\n \"snippets/ui-video.liquid\": \"14acea7c523198269a9165270decac21a43a5d69bf12bd248a76aceb2e9b26ed\",\n \"assets/ui-video.css\": \"c1572853f48474f6291a70ccdb1085512700fc3dcbbdaebd71374b838ec67fee\",\n \"snippets/ui-button.liquid\": \"d0b4ad1b574f10f986a7d5b2719a16c4ba29b80887962b9a8b6464afef6fe54c\",\n \"snippets/ui-toggle.liquid\": \"c86100cf7c163c0d5bc81976fd794788f68fab2ebc5c0887d8042958ce020912\",\n \"snippets/ui-logo.liquid\": \"5d6de7be3f7aab9e05c9533afef39ea0e9dce1b4ee12a13bf7b82780c973b126\",\n \"snippets/ui-kbd.liquid\": \"024f34ed2932d183671f7fa44ff724a70ec17b766cf7e0d3f565f46f33ab2cf2\",\n \"snippets/ui-rating.liquid\": \"aa57adc5a5508b368da78023b242694e6ce924b6e9e5407c141a5030a414bf1d\",\n \"assets/ui-rating.css\": \"e5efea2a9edaea78522f20ebd9e9d01abe8a2fcd310c193239adf80ec33b4975\",\n \"snippets/ui-tooltip.liquid\": \"d2863a0da3090c73dda10d8615b84fc50fab64373a466fbf4e4e743cfb083c96\",\n \"snippets/ui-avatar.liquid\": \"9bfb5d5f535857cc45f31afbc91c855e94972bab07ad3b4fe2dc0d241106385d\",\n \"snippets/ui-empty.liquid\": \"0e7fb5b68d50abcf7213304034762b4dd535c791dd6f4dc517100145e04b0cde\",\n \"snippets/ui-alert-dialog.liquid\": \"f739374035ffa0f3bca2c4b6d946710751c8268c8f1dde535251be9c2c7b0cd0\",\n \"snippets/ui-navigation-menu.liquid\": \"52aecbb36b0031810a85a99f5d4439e852dc1ba3a872b9525dd75c8df8b5a84e\",\n \"assets/ui-navigation-menu.css\": \"29a47ce0eb549e58cc8195dcb656bd2cef56360178c76acfc2d481a110463ca6\",\n \"snippets/ui-typography.liquid\": \"b03dc93c4de6636164a206c95979caa6fe9ab7cf8d1c24d75611416259da7979\",\n \"assets/ui-typography.css\": \"0daa86d256566ab8065411682cb8c90aa3b3eab6e62fbd8165dac1147e4edde9\",\n \"snippets/ui-toc.liquid\": \"04038e0870112b2335b80b4092814915105b31d08cdd36ecf1f4de1761f66acf\",\n \"snippets/ui-icon.liquid\": \"ca75a9485eb33cdb31a3a4e2e5ca03ce74d4995dbd1696d964832a87602bf3ca\",\n \"assets/ui-icon.css\": \"cfb1a47905cbd9c25b635c96926a77f8eed983a4aca62fdce758345dcc792add\",\n \"snippets/ui-combobox.liquid\": \"bacd605b44237512a74d34119d01432440b76ae60218dae6a6f37f98b32e3e00\",\n \"snippets/ui-toast.liquid\": \"bb032d90d6084fb15e12da22777635b80d09a06402513c46c89e853e3ede0405\",\n \"assets/ui-toast.css\": \"c322fab210a202fa434695025550495dbdc93e688ed7ae39303fea9830864d0b\",\n \"snippets/ui-header.liquid\": \"cc14effb4e3b6c4ac397e306e4ebd270a31b3415cc12ffbeb6cd38f411eaba80\",\n \"snippets/ui-command.liquid\": \"4a37f59dc0039fa1505de764472212d6cd7c4e5c52b737a1700e928db286f233\",\n \"snippets/ui-accordion.liquid\": \"4b58c83ae13e14e03a3129a2dccbd02eeafa90c1e48edbbf9af2dc412bf3aabf\",\n \"assets/ui-accordion.css\": \"430924440bd0f1d49ceb72baffc77404c9411c31c24b940d75861daba2649e83\",\n \"snippets/ui-slider.liquid\": \"f2de1fb9099de77bf291455447bc86b2578781e7cf0efdf12117fb4575e0b0e6\",\n \"snippets/ui-input.liquid\": \"5f4b2adf298e84ef5845fb123b0753dd76294731da657fe395313ad7fe3f01a9\",\n \"snippets/ui-input-group.liquid\": \"cdcef16153019f7e24bedcccb05e0cf540b002eb1bffb98d409c7aae5eb4d010\",\n \"snippets/ui-triggers.liquid\": \"ba9c7b802fb0a2aba0e9cc145a9dd44134964afb53e5363cf9e0ae138b906cc9\",\n \"snippets/ui-toggle-group.liquid\": \"2d61e0b9bc746e05834157f5a75d23123f02bc2df737412e4f6099844afc4f49\",\n \"snippets/ui-dialog.liquid\": \"779bbcd609a69ed29a984df1f26f9ed80fd24d71c4ee3ead5f4daa055b28e9fb\",\n \"snippets/ui-drawer.liquid\": \"16120fdd70fac393470c3936223e78ad5f81164e2b7616fd075e8e82098a17d5\",\n \"snippets/ui-badge.liquid\": \"14b826127eaedd2f5acac0ca74fbe403ef18b08ca6651995c0bf0501210d55f6\",\n \"snippets/ui-alert.liquid\": \"392bf006b427178d4699272115317e0db934d881be9534b4638c492fa1825a83\",\n \"snippets/ui-table.liquid\": \"6599d8b3bd193761571c2b71e499f78546ba5c2768d4e0a0a60cd0e348632e5b\",\n \"snippets/ui-breadcrumb.liquid\": \"dafdeaf03286b386c90f8e72777de1946fba4718ee568bd85ca7bc768483a3ca\",\n \"snippets/ui-aspect-ratio.liquid\": \"c8aae05fcd76af7ae768aedafd7e758533e2b52135b00ff72940896ad793f177\",\n \"snippets/ui-price.liquid\": \"96156754aee3a04aa3ae7084a14470000213e8be14468c4937e9f3a87e348234\",\n \"assets/ui-price.css\": \"95c947e219621102b704164e48a83e381e6e2b27b99311a294e076745b39a36f\",\n \"snippets/ui-radio-group.liquid\": \"af9978e18716cc86d03ed21dece8304992e74a4fab88e12069b0648cfd944492\",\n \"snippets/ui-checkbox.liquid\": \"0e4dd1738b355c5a93533e0b813e2e6c72f7491c289d65aa7b6435be1c599006\",\n \"snippets/ui-switch.liquid\": \"84ed60c777e77daec8b5fe6f2ee434877d51224235dc1bc2e17927cd182fe646\",\n \"snippets/ui-skeleton.liquid\": \"1e30245f6577f73d28f4badbc293934656882a29d5dec1d2f74ef95f3bcede2c\",\n \"snippets/ui-separator.liquid\": \"90b1d2795666b6c51f35645ca8d07659f2c4868fe9553e233cddb4e962095f6e\",\n \"snippets/ui-card.liquid\": \"581a46843f1280ebace0423ee84289b40fbd46142e6a9ab3940f63eca0e4c5f2\",\n \"assets/ui-card.css\": \"ee7e4192ec814066d0c9838f810ae4ca267b9f071b7fa945c43226d46b0f8dc9\",\n \"snippets/ui-pagination.liquid\": \"30943c00686e1a23d92865465b38c964e059b14ae3a20fb7fe151824a73773eb\",\n \"snippets/ui-popup.liquid\": \"840f938aa2a331e4e7d55c659f25e841dcfb1bf5c5cadace6263243352ff8359\",\n \"snippets/ui-sheet.liquid\": \"0de705bed685bf78fa3af4517c947b38d62a1aa56bf29356c0a201b64db17614\",\n \"snippets/ui-carousel.liquid\": \"59dc0c06b2a9f2f779ca22b3ff4b005071d4909aba052d6f8f0a1aa19e84c2ce\",\n \"assets/ui-carousel.css\": \"04274e5fa2383386e70d8e4c01fbbb0b12a4ffe3f74c92d59b992474ffa975f4\",\n \"snippets/ui-attachment.liquid\": \"6881df7cdb1b27462d8cce7c17c0b4ed4dd860d62535e1daa81378a57bb69ddf\",\n \"snippets/ui-marquee.liquid\": \"47d5df8f1ff46a2cd48a132986c2ba199c9e19b485e62fc3e0d19091d4baaab1\",\n \"assets/ui-marquee.css\": \"ef13b83f3dbcd6685fcee3dba14238386d0f34bc2266a5326c0b6f2d40a23fce\",\n \"snippets/ui-invalid-controls.liquid\": \"a169e8244cc86f5431f902f7a73b37188051ba8f2ef3e323830462dae5aed066\",\n \"snippets/ui-section.liquid\": \"da358cd87447457f3675b035b48556103d86cd11e0b2240ae2800e4c9ea54bdc\",\n \"assets/ui-section.css\": \"f4936a02aaf1927ccced898886857855e4b5e95fafe5c2a52748ecbbe87b6621\",\n \"snippets/ui-button-group.liquid\": \"a2790f8da0f8b37acc1ed558ba1548ea250a5b93e1b2dfbd11eb150f3f02783a\",\n \"snippets/ui-collapsible.liquid\": \"e6107a03d00b8cc75bb03206e64b9aa7f2989d982c0408b398b62067c6df450a\",\n \"snippets/ui-dropdown-menu.liquid\": \"25b31e09e3e7bfee9a397ca4de6e310754844c55e71639eadba917b0f4e6d2e5\",\n \"snippets/ui-popover.liquid\": \"44ff93d72eaad409f56f8a84ce25715e2c3633f2ac49ba7a414767c6dbe2ee47\",\n \"snippets/ui-hover-card.liquid\": \"ba4133d352fa14296743138c99f3694015bafe953751b8e42155f047c4beb9f0\",\n \"snippets/ui-number-field.liquid\": \"1ff75778c8bc4889564726baf7471f3d1dfe21eedb352d37283002791c71c9c1\",\n \"snippets/ui-swatch.liquid\": \"9a39fc70974416ba933e90d799e6a805ba1f490c7b48d9a7e25d50caae596e7d\",\n \"snippets/ui.liquid\": \"569e78bf6f84cdc7b1f7b5ba2681e1e52c6f5d02c4fe4ade16e580bffb963ae0\"\n }\n}\n", "type": "registry:file", "target": "~/assets/ui-manifest.json" } diff --git a/public/r/liquid/input-group.json b/public/r/liquid/input-group.json index 5531def8c..20340cf09 100644 --- a/public/r/liquid/input-group.json +++ b/public/r/liquid/input-group.json @@ -11,7 +11,7 @@ "files": [ { "path": "snippets/ui-input-group.liquid", - "content": "{% doc %}\n Fulldev UI input-group styles. Use native markup with its data-slot parts.\n{% enddoc %}\n\n{% stylesheet %}\n /* An input with addons inside one border, as Fulldev UI's input group. The input keeps the slot of\n its own component, such as combobox-input. */\n [data-slot='input-group'] {\n display: flex;\n align-items: center;\n width: 100%;\n min-width: 0;\n height: calc(var(--spacing) * 9);\n border: 1px solid var(--input);\n border-radius: var(--radius-md);\n background-color: light-dark(transparent, color-mix(in oklch, var(--input) 30%, transparent));\n box-shadow: var(--shadow-xs);\n transition:\n border-color 150ms,\n box-shadow 150ms;\n }\n [data-slot='input-group'][data-size='sm'] {\n height: calc(var(--spacing) * 8);\n }\n [data-slot='input-group']:has(> input:focus-visible) {\n border-color: var(--ring);\n box-shadow: var(--focus-ring);\n }\n [data-slot='input-group'] > input {\n flex: 1;\n height: 100%;\n border: 0;\n border-radius: 0;\n background: transparent;\n box-shadow: none;\n }\n [data-slot='input-group'] > input:focus-visible {\n box-shadow: none;\n }\n [data-slot='input-group-addon'] {\n display: flex;\n align-items: center;\n gap: calc(var(--spacing) * 2);\n padding-right: calc(var(--spacing) * 2);\n color: var(--muted-foreground);\n font-size: 0.875rem;\n font-weight: 500;\n }\n [data-slot='input-group-addon'] > .icon {\n width: calc(var(--spacing) * 4);\n height: calc(var(--spacing) * 4);\n }\n{% endstylesheet %}\n", + "content": "{% doc %}\n Fulldev UI input-group styles. Use native markup with its data-slot parts.\n{% enddoc %}\n\n{% stylesheet %}\n /* An input with addons inside one border, as Fulldev UI's input group. The input keeps the slot of\n its own component, such as combobox-input. A number field is an input group with step buttons. */\n :is([data-slot='input-group'], [data-slot='number-field']) {\n display: flex;\n align-items: center;\n width: 100%;\n min-width: 0;\n height: calc(var(--spacing) * 9);\n border: 1px solid var(--input);\n border-radius: var(--radius-md);\n background-color: light-dark(transparent, color-mix(in oklch, var(--input) 30%, transparent));\n box-shadow: var(--shadow-xs);\n transition:\n border-color 150ms,\n box-shadow 150ms;\n }\n :is([data-slot='input-group'], [data-slot='number-field'])[data-size='sm'] {\n height: calc(var(--spacing) * 8);\n }\n :is([data-slot='input-group'], [data-slot='number-field']):has(> input:focus-visible) {\n border-color: var(--ring);\n box-shadow: var(--focus-ring);\n }\n :is([data-slot='input-group'], [data-slot='number-field']) > input {\n flex: 1;\n height: 100%;\n border: 0;\n border-radius: 0;\n background: transparent;\n box-shadow: none;\n }\n :is([data-slot='input-group'], [data-slot='number-field']) > input:focus-visible {\n box-shadow: none;\n }\n /* An addon sits at the start, or at the end with data-align='inline-end', as in Fulldev UI. A\n button in it moves a little closer to the edge, and the input gives up some of its padding on\n the addon's side. */\n [data-slot='input-group-addon'] {\n display: flex;\n align-items: center;\n gap: calc(var(--spacing) * 2);\n padding-left: calc(var(--spacing) * 2);\n color: var(--muted-foreground);\n font-size: 0.875rem;\n font-weight: 500;\n }\n [data-slot='input-group-addon'][data-align='inline-end'] {\n padding-right: calc(var(--spacing) * 2);\n padding-left: 0;\n }\n [data-slot='input-group-addon']:not([data-align='inline-end']):has(> button) {\n margin-left: calc(var(--spacing) * -1);\n }\n [data-slot='input-group-addon'][data-align='inline-end']:has(> button) {\n margin-right: calc(var(--spacing) * -1);\n }\n :is([data-slot='input-group'], [data-slot='number-field']):has(\n > [data-slot='input-group-addon']:not([data-align='inline-end'])\n )\n > input {\n padding-left: calc(var(--spacing) * 1.5);\n }\n :is([data-slot='input-group'], [data-slot='number-field']):has(\n > [data-slot='input-group-addon'][data-align='inline-end']\n )\n > input {\n padding-right: calc(var(--spacing) * 1.5);\n }\n [data-slot='input-group-addon'] > .icon {\n width: calc(var(--spacing) * 4);\n height: calc(var(--spacing) * 4);\n }\n{% endstylesheet %}\n", "type": "registry:file", "target": "~/snippets/ui-input-group.liquid" } diff --git a/public/r/liquid/input.json b/public/r/liquid/input.json index 322211562..d55d64a70 100644 --- a/public/r/liquid/input.json +++ b/public/r/liquid/input.json @@ -9,7 +9,7 @@ "files": [ { "path": "snippets/ui-input.liquid", - "content": "{% doc %}\n Fulldev UI input styles. Use native markup with its data-slot parts.\n{% enddoc %}\n\n{% stylesheet %}\n input:where(:not([type='hidden'], [type='checkbox'], [type='radio'], [type='range'], [type='submit'])),\n [data-slot='input'],\n [data-slot='native-select'],\n select,\n [data-slot='textarea'],\n textarea {\n width: 100%;\n min-width: 0;\n height: calc(var(--spacing) * 9);\n padding: var(--spacing) calc(var(--spacing) * 2.5);\n border: 1px solid var(--input);\n border-radius: var(--radius-md);\n background-color: light-dark(transparent, color-mix(in oklch, var(--input) 30%, transparent));\n font-size: 1rem;\n line-height: 1.5;\n box-shadow: var(--shadow-xs);\n outline: none;\n transition:\n color 150ms,\n border-color 150ms,\n box-shadow 150ms;\n }\n input::placeholder,\n textarea::placeholder {\n color: var(--muted-foreground);\n }\n input:where(:not([type='hidden'], [type='checkbox'], [type='radio'])):focus-visible,\n select:focus-visible,\n textarea:focus-visible {\n border-color: var(--ring);\n box-shadow: var(--focus-ring);\n }\n :is(input, select, textarea)[aria-invalid='true'] {\n border-color: light-dark(var(--destructive), color-mix(in oklch, var(--destructive) 50%, transparent));\n box-shadow: 0 0 0 3px\n light-dark(\n color-mix(in oklch, var(--destructive) 20%, transparent),\n color-mix(in oklch, var(--destructive) 40%, transparent)\n );\n }\n :is(input, select, textarea):disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n textarea {\n height: auto;\n min-height: calc(var(--spacing) * 16);\n padding-block: calc(var(--spacing) * 2);\n resize: vertical;\n field-sizing: content;\n }\n select {\n appearance: none;\n padding-right: calc(var(--spacing) * 8);\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 10px center;\n }\n :is(input, select)[data-size='sm'] {\n height: calc(var(--spacing) * 8);\n }\n input[type='checkbox'],\n input[type='radio'] {\n width: calc(var(--spacing) * 4);\n height: calc(var(--spacing) * 4);\n margin: 0;\n accent-color: var(--primary);\n }\n @media (min-width: 768px) {\n input:where(:not([type='hidden'], [type='checkbox'], [type='radio'], [type='range'], [type='submit'])),\n [data-slot='input'],\n [data-slot='native-select'],\n select,\n [data-slot='textarea'],\n textarea {\n font-size: 0.875rem;\n }\n }\n{% endstylesheet %}\n", + "content": "{% doc %}\n Fulldev UI input styles. Use native markup with its data-slot parts.\n{% enddoc %}\n\n{% stylesheet %}\n input:where(:not([type='hidden'], [type='checkbox'], [type='radio'], [type='range'], [type='submit'])),\n [data-slot='input'],\n [data-slot='native-select'],\n select,\n [data-slot='textarea'],\n textarea {\n width: 100%;\n min-width: 0;\n height: calc(var(--spacing) * 9);\n padding: var(--spacing) calc(var(--spacing) * 2.5);\n border: 1px solid var(--input);\n border-radius: var(--radius-md);\n background-color: light-dark(transparent, color-mix(in oklch, var(--input) 30%, transparent));\n font-size: 1rem;\n line-height: 1.5;\n box-shadow: var(--shadow-xs);\n outline: none;\n transition:\n color 150ms,\n border-color 150ms,\n box-shadow 150ms;\n }\n input::placeholder,\n textarea::placeholder {\n color: var(--muted-foreground);\n }\n input:where(:not([type='hidden'], [type='checkbox'], [type='radio'])):focus-visible,\n select:focus-visible,\n textarea:focus-visible {\n border-color: var(--ring);\n box-shadow: var(--focus-ring);\n }\n :is(input, select, textarea)[aria-invalid='true'] {\n border-color: light-dark(var(--destructive), color-mix(in oklch, var(--destructive) 50%, transparent));\n box-shadow: 0 0 0 3px\n light-dark(\n color-mix(in oklch, var(--destructive) 20%, transparent),\n color-mix(in oklch, var(--destructive) 40%, transparent)\n );\n }\n :is(input, select, textarea):disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n textarea {\n height: auto;\n min-height: calc(var(--spacing) * 16);\n padding-block: calc(var(--spacing) * 2);\n resize: vertical;\n field-sizing: content;\n }\n /* The native-select slot outranks a bare select in the rule above, so this rule names it too, or\n its padding hides the text under the arrow. */\n :is(select, [data-slot='native-select']) {\n appearance: none;\n padding-right: calc(var(--spacing) * 8);\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 10px center;\n }\n :is(input, select)[data-size='sm'] {\n height: calc(var(--spacing) * 8);\n }\n input[type='checkbox'],\n input[type='radio'] {\n width: calc(var(--spacing) * 4);\n height: calc(var(--spacing) * 4);\n margin: 0;\n accent-color: var(--primary);\n }\n @media (min-width: 768px) {\n input:where(:not([type='hidden'], [type='checkbox'], [type='radio'], [type='range'], [type='submit'])),\n [data-slot='input'],\n [data-slot='native-select'],\n select,\n [data-slot='textarea'],\n textarea {\n font-size: 0.875rem;\n }\n }\n{% endstylesheet %}\n", "type": "registry:file", "target": "~/snippets/ui-input.liquid" } diff --git a/public/r/liquid/number-field.json b/public/r/liquid/number-field.json new file mode 100644 index 000000000..45e7fd6d9 --- /dev/null +++ b/public/r/liquid/number-field.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "Native Liquid number field with readable CSS and shared data-slot parts.", + "registryDependencies": [ + "https://ui.full.dev/r/liquid/init.json", + "https://ui.full.dev/r/liquid/input.json", + "https://ui.full.dev/r/liquid/input-group.json", + "https://ui.full.dev/r/liquid/button.json", + "https://ui.full.dev/r/liquid/runtime.json" + ], + "files": [ + { + "path": "snippets/ui-number-field.liquid", + "content": "{% doc %}\n Fulldev UI number field styles. Use native markup with its data-slot parts.\n{% enddoc %}\n\n{% stylesheet %}\n /* A native number input with decrement and increment buttons in input group addons, such as a\n quantity. The input works on its own; the runtime connects the buttons. */\n [data-slot='number-field'] {\n width: calc(var(--spacing) * 32);\n }\n [data-slot='number-field'] > [data-slot='number-field-input'] {\n text-align: center;\n font-variant-numeric: tabular-nums;\n appearance: textfield;\n }\n [data-slot='number-field-input']::-webkit-inner-spin-button,\n [data-slot='number-field-input']::-webkit-outer-spin-button {\n margin: 0;\n appearance: none;\n }\n{% endstylesheet %}\n", + "type": "registry:file", + "target": "~/snippets/ui-number-field.liquid" + } + ], + "docs": "https://ui.full.dev/liquid/components/number-field/", + "type": "registry:item" +} \ No newline at end of file diff --git a/public/r/liquid/registry.json b/public/r/liquid/registry.json index 795cbbce0..77f265433 100644 --- a/public/r/liquid/registry.json +++ b/public/r/liquid/registry.json @@ -1329,6 +1329,44 @@ ], "files": [] }, + { + "name": "number-field", + "type": "registry:item", + "title": "Number Field", + "description": "Native Liquid number field with readable CSS and shared data-slot parts.", + "docs": "https://ui.full.dev/liquid/components/number-field/", + "registryDependencies": [ + "https://ui.full.dev/r/liquid/init.json", + "https://ui.full.dev/r/liquid/input.json", + "https://ui.full.dev/r/liquid/input-group.json", + "https://ui.full.dev/r/liquid/button.json", + "https://ui.full.dev/r/liquid/runtime.json" + ], + "files": [ + { + "path": "snippets/ui-number-field.liquid", + "type": "registry:file", + "target": "~/snippets/ui-number-field.liquid" + } + ] + }, + { + "name": "swatch", + "type": "registry:item", + "title": "Swatch", + "description": "Native Liquid swatch with readable CSS and shared data-slot parts.", + "docs": "https://ui.full.dev/liquid/components/swatch/", + "registryDependencies": [ + "https://ui.full.dev/r/liquid/init.json" + ], + "files": [ + { + "path": "snippets/ui-swatch.liquid", + "type": "registry:file", + "target": "~/snippets/ui-swatch.liquid" + } + ] + }, { "name": "components", "type": "registry:item", @@ -1394,7 +1432,9 @@ "https://ui.full.dev/r/liquid/collapsible.json", "https://ui.full.dev/r/liquid/dropdown-menu.json", "https://ui.full.dev/r/liquid/popover.json", - "https://ui.full.dev/r/liquid/hover-card.json" + "https://ui.full.dev/r/liquid/hover-card.json", + "https://ui.full.dev/r/liquid/number-field.json", + "https://ui.full.dev/r/liquid/swatch.json" ], "files": [ { diff --git a/public/r/liquid/runtime.json b/public/r/liquid/runtime.json index fb3213799..77ae029b2 100644 --- a/public/r/liquid/runtime.json +++ b/public/r/liquid/runtime.json @@ -9,13 +9,13 @@ "files": [ { "path": "assets/ui-carousel.js", - "content": "import { createCarousel } from '@data-slot/carousel';\n\n// @data-slot/carousel owns scrolling, snapping, dragging, the arrow keys and the previous and next\n// buttons, and keeps every visible card interactive. It writes English ARIA descriptions and slide\n// labels, so the translated ones from Liquid are put back after binding and slide updates.\nexport function initializeCarousel(root) {\n const content = root.querySelector('[data-slot=\"carousel-content\"]');\n const items = () => [...content.children].filter((item) => item.matches('[data-slot=\"carousel-item\"]'));\n const rootDescription = root.getAttribute('aria-roledescription');\n const descriptions = new WeakMap(items().map((item) => [item, item.getAttribute('aria-roledescription')]));\n let destroyed = false;\n const translate = () => {\n if (destroyed) return;\n if (rootDescription) root.setAttribute('aria-roledescription', rootDescription);\n const slides = items();\n const template = root.dataset.slideLabel;\n slides.forEach((item, index) => {\n const description = descriptions.get(item);\n if (description) item.setAttribute('aria-roledescription', description);\n if (template)\n item.setAttribute('aria-label', template.replace('[index]', index + 1).replace('[total]', slides.length));\n });\n };\n // Observe first to capture authored descriptions before data-slot rewrites them.\n const observer = new MutationObserver((mutations) => {\n for (const mutation of mutations)\n for (const node of mutation.addedNodes)\n if (node instanceof Element && node.matches('[data-slot=\"carousel-item\"]'))\n descriptions.set(node, node.getAttribute('aria-roledescription'));\n queueMicrotask(translate);\n });\n observer.observe(content, { childList: true });\n const carousel = createCarousel(root, { slides: 'multiple', drag: true, loop: false });\n translate();\n for (const button of root.querySelectorAll('[data-slot=\"carousel-previous\"], [data-slot=\"carousel-next\"]'))\n button.hidden = false;\n const destroy = carousel.destroy.bind(carousel);\n carousel.destroy = () => {\n destroyed = true;\n observer.disconnect();\n destroy();\n };\n return carousel;\n}\n", + "content": "import { createCarousel } from '@data-slot/carousel';\n\n// @data-slot/carousel owns scrolling, snapping, dragging, the arrow keys and the previous and next\n// buttons, and keeps every visible card interactive. It writes English ARIA descriptions and slide\n// labels, so the translated ones from Liquid are put back after binding and slide updates.\nexport function initializeCarousel(root) {\n const content = root.querySelector('[data-slot=\"carousel-content\"]');\n const items = () => [...content.children].filter((item) => item.matches('[data-slot=\"carousel-item\"]'));\n const rootDescription = root.getAttribute('aria-roledescription');\n const descriptions = new WeakMap(items().map((item) => [item, item.getAttribute('aria-roledescription')]));\n let destroyed = false;\n const translate = () => {\n if (destroyed) return;\n if (rootDescription) root.setAttribute('aria-roledescription', rootDescription);\n const slides = items();\n const template = root.dataset.slideLabel;\n slides.forEach((item, index) => {\n const description = descriptions.get(item);\n if (description) item.setAttribute('aria-roledescription', description);\n if (template)\n item.setAttribute('aria-label', template.replace('[index]', index + 1).replace('[total]', slides.length));\n });\n };\n // Observe first to capture authored descriptions before data-slot rewrites them.\n const observer = new MutationObserver((mutations) => {\n for (const mutation of mutations)\n for (const node of mutation.addedNodes)\n if (node instanceof Element && node.matches('[data-slot=\"carousel-item\"]'))\n descriptions.set(node, node.getAttribute('aria-roledescription'));\n queueMicrotask(translate);\n });\n observer.observe(content, { childList: true });\n // A thumbnail can link to its slide's id, which works without JavaScript. Once the controller runs,\n // a plain click only scrolls the carousel, so the page does not jump to the slide.\n const onClick = (event) => {\n const link = event.target instanceof Element ? event.target.closest('a[data-slot=\"carousel-indicator\"]') : null;\n if (!link || link.closest('[data-slot=\"carousel\"]') !== root) return;\n if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n event.preventDefault();\n };\n const carousel = createCarousel(root, { slides: 'multiple', drag: true, loop: false });\n root.addEventListener('click', onClick);\n translate();\n for (const button of root.querySelectorAll('[data-slot=\"carousel-previous\"], [data-slot=\"carousel-next\"]'))\n button.hidden = false;\n const destroy = carousel.destroy.bind(carousel);\n carousel.destroy = () => {\n destroyed = true;\n observer.disconnect();\n root.removeEventListener('click', onClick);\n destroy();\n };\n return carousel;\n}\n", "type": "registry:file", "target": "~/assets/ui-carousel.js" }, { "path": "assets/ui-controls.js", - "content": "// The data-slot controllers that few pages use, imported when theme.js finds their markup. Each\n// entry starts one root and returns its controller with destroy(). Behavior is the vendored\n// controller's; the adapters here only connect it to native forms and theme state.\n\n// A composite input renders hidden after its native fallback, such as a select or radio inputs,\n// which the form submits until the controller runs. Then the fallback leaves the document, so\n// labels and the form see only the field the controller generates, and the fallback's id moves to\n// the labelled element, so a label[for] still reaches the control. start() creates the controller\n// with the fallback's reset default and the value a shopper chose while it loaded; its destroy()\n// writes the current value back, and the fallback returns with its own reset default.\nfunction replaceFallback(root, labelled, start) {\n const fallback = root.previousElementSibling?.matches('[data-fallback]') ? root.previousElementSibling : null;\n const attributes = ['id', 'aria-labelledby'].map((name) => [name, labelled.getAttribute(name)]);\n const restore = () => {\n root.hidden = true;\n for (const [name, value] of attributes) {\n if (value === null) labelled.removeAttribute(name);\n else labelled.setAttribute(name, value);\n }\n if (fallback) root.before(fallback);\n };\n fallback?.remove();\n if (fallback?.id) labelled.id = fallback.id;\n root.hidden = false;\n let controller;\n try {\n controller = start(fallback);\n } catch (error) {\n restore();\n throw error;\n }\n return {\n destroy() {\n controller.destroy();\n restore();\n },\n };\n}\n\nfunction initializeSelect({ createSelect }, root) {\n return replaceFallback(root, root.querySelector('[data-slot=\"select-trigger\"]'), (select) => {\n const options = [...(select?.options ?? [])];\n const initial = options.find((option) => option.defaultSelected) ?? options.find((option) => !option.disabled);\n const controller = createSelect(root, { mountStrategy: 'eager', defaultValue: initial?.value || undefined });\n const value = select?.value || null;\n if (select && value !== controller.value) root.dispatchEvent(new CustomEvent('select:set', { detail: { value } }));\n return {\n destroy() {\n if (select) select.value = controller.value ?? '';\n controller.destroy();\n },\n };\n });\n}\n\nfunction initializeRadioGroup({ createRadioGroup }, root) {\n return replaceFallback(root, root, (fallback) => {\n const inputs = [...(fallback?.querySelectorAll('input[type=\"radio\"]') ?? [])];\n const initial = inputs.find((input) => input.defaultChecked)?.value ?? '';\n const controller = createRadioGroup(root, fallback ? { defaultValue: initial } : {});\n const value = inputs.find((input) => input.checked)?.value ?? null;\n if (fallback && value !== controller.value) {\n if (value === null) controller.clear();\n else controller.select(value);\n }\n return {\n destroy() {\n for (const input of inputs) input.checked = input.value === controller.value;\n controller.destroy();\n },\n };\n });\n}\n\nfunction initializeSwitch({ createSwitch }, root) {\n return replaceFallback(root, root, (checkbox) => {\n const controller = createSwitch(root, checkbox ? { defaultChecked: checkbox.defaultChecked } : {});\n if (checkbox) controller.setChecked(checkbox.checked);\n return {\n destroy() {\n if (checkbox) checkbox.checked = controller.checked;\n controller.destroy();\n },\n };\n });\n}\n\n// The slider has no form field of its own, so its native range inputs stay in the form, hidden,\n// and follow its value. A form reset moves the slider back to the inputs' reset values.\nfunction initializeSlider({ createSlider }, root) {\n const fallback = root.previousElementSibling?.matches('[data-fallback]') ? root.previousElementSibling : null;\n const inputs = fallback ? [...fallback.querySelectorAll('input[type=\"range\"]')] : [];\n const read = () => (inputs.length > 1 ? inputs.map((input) => Number(input.value)) : Number(inputs[0]?.value));\n const write = (value) => {\n [value].flat().forEach((number, index) => {\n if (!inputs[index] || inputs[index].value === String(number)) return;\n inputs[index].value = String(number);\n inputs[index].dispatchEvent(new Event('input', { bubbles: true }));\n });\n };\n const slider = createSlider(root, {\n ...(inputs.length ? { defaultValue: read() } : {}),\n onValueChange: write,\n onValueCommit: () => inputs.forEach((input) => input.dispatchEvent(new Event('change', { bubbles: true }))),\n });\n const events = new AbortController();\n inputs[0]?.form?.addEventListener('reset', () => setTimeout(() => slider.setValue(read())), {\n signal: events.signal,\n });\n if (fallback) fallback.hidden = true;\n root.hidden = false;\n return {\n destroy() {\n events.abort();\n slider.destroy();\n root.hidden = true;\n if (fallback) fallback.hidden = false;\n },\n };\n}\n\n// The action of an alert dialog is a native link or submit or reset button, and the controller\n// leaves closing to the caller. A link closes the dialog on click; a submit or reset button once its\n// form submits or resets, so an invalid form keeps its native validation and the dialog stays open.\nfunction initializeAlertDialog({ createAlertDialog }, root) {\n const dialog = createAlertDialog(root);\n const events = new AbortController();\n for (const action of root.querySelectorAll('[data-slot=\"alert-dialog-action\"]')) {\n action.addEventListener(\n 'click',\n () => {\n const form = ['submit', 'reset'].includes(action.type) ? action.form : null;\n if (form) form.addEventListener(action.type, () => dialog.close(), { once: true, signal: events.signal });\n else dialog.close();\n },\n { signal: events.signal },\n );\n }\n return {\n destroy() {\n events.abort();\n dialog.destroy();\n },\n };\n}\n\n// Buttons inside a toaster show a toast with their translated title and description. Like other\n// triggers that only open a popup, they show once the component has started (data-enhanced).\nfunction initializeToaster({ createToast }, root) {\n const toaster = createToast(root);\n const events = new AbortController();\n for (const button of root.querySelectorAll('[data-toast-title]')) {\n button.addEventListener(\n 'click',\n () => toaster.show({ title: button.dataset.toastTitle, description: button.dataset.toastDescription }),\n { signal: events.signal },\n );\n }\n return {\n destroy() {\n events.abort();\n toaster.destroy();\n },\n };\n}\n\n// Each entry loads its data-slot package, then starts one root with it and returns a controller\n// with destroy(). theme.js starts the root only if it is still current once the package has\n// loaded. Select, tooltip and hover card keep their closed content connected (eager), so nested\n// components and the lifecycle in theme.js never see it leave the document.\nexport const controls = {\n select: [() => import('@data-slot/select'), initializeSelect],\n 'radio-group': [() => import('@data-slot/radio-group'), initializeRadioGroup],\n switch: [() => import('@data-slot/switch'), initializeSwitch],\n slider: [() => import('@data-slot/slider'), initializeSlider],\n toggle: [() => import('@data-slot/toggle'), ({ createToggle }, root) => createToggle(root)],\n 'toggle-group': [() => import('@data-slot/toggle-group'), ({ createToggleGroup }, root) => createToggleGroup(root)],\n collapsible: [() => import('@data-slot/collapsible'), ({ createCollapsible }, root) => createCollapsible(root)],\n popover: [() => import('@data-slot/popover'), ({ createPopover }, root) => createPopover(root)],\n 'hover-card': [\n () => import('@data-slot/hover-card'),\n ({ createHoverCard }, root) => createHoverCard(root, { mountStrategy: 'eager' }),\n ],\n tooltip: [\n () => import('@data-slot/tooltip'),\n ({ createTooltip }, root) => createTooltip(root, { mountStrategy: 'eager' }),\n ],\n 'dropdown-menu': [\n () => import('@data-slot/dropdown-menu'),\n ({ createDropdownMenu }, root) => createDropdownMenu(root),\n ],\n 'alert-dialog': [() => import('@data-slot/alert-dialog'), initializeAlertDialog],\n drawer: [() => import('@data-slot/drawer'), ({ createDrawer }, root) => createDrawer(root)],\n toast: [() => import('@data-slot/toast'), initializeToaster],\n};\n", + "content": "// The data-slot controllers that few pages use, imported when theme.js finds their markup. Each\n// entry starts one root and returns its controller with destroy(). Behavior is the vendored\n// controller's; the adapters here only connect it to native forms and theme state.\n\n// A composite input renders hidden after its native fallback, such as a select or radio inputs,\n// which the form submits until the controller runs. Then the fallback leaves the document, so\n// labels and the form see only the field the controller generates, and the fallback's id moves to\n// the labelled element, so a label[for] still reaches the control. start() creates the controller\n// with the fallback's reset default and the value a shopper chose while it loaded; its destroy()\n// writes the current value back, and the fallback returns with its own reset default.\nfunction replaceFallback(root, labelled, start) {\n const fallback = root.previousElementSibling?.matches('[data-fallback]') ? root.previousElementSibling : null;\n const attributes = ['id', 'aria-labelledby'].map((name) => [name, labelled.getAttribute(name)]);\n const restore = () => {\n root.hidden = true;\n for (const [name, value] of attributes) {\n if (value === null) labelled.removeAttribute(name);\n else labelled.setAttribute(name, value);\n }\n if (fallback) root.before(fallback);\n };\n fallback?.remove();\n if (fallback?.id) labelled.id = fallback.id;\n root.hidden = false;\n let controller;\n try {\n controller = start(fallback);\n } catch (error) {\n restore();\n throw error;\n }\n return {\n destroy() {\n controller.destroy();\n restore();\n },\n };\n}\n\nfunction initializeSelect({ createSelect }, root) {\n return replaceFallback(root, root.querySelector('[data-slot=\"select-trigger\"]'), (select) => {\n const options = [...(select?.options ?? [])];\n const initial = options.find((option) => option.defaultSelected) ?? options.find((option) => !option.disabled);\n const controller = createSelect(root, { mountStrategy: 'eager', defaultValue: initial?.value || undefined });\n const value = select?.value || null;\n if (select && value !== controller.value) root.dispatchEvent(new CustomEvent('select:set', { detail: { value } }));\n return {\n destroy() {\n if (select) select.value = controller.value ?? '';\n controller.destroy();\n },\n };\n });\n}\n\nfunction initializeRadioGroup({ createRadioGroup }, root) {\n return replaceFallback(root, root, (fallback) => {\n const inputs = [...(fallback?.querySelectorAll('input[type=\"radio\"]') ?? [])];\n const initial = inputs.find((input) => input.defaultChecked)?.value ?? '';\n const controller = createRadioGroup(root, fallback ? { defaultValue: initial } : {});\n const value = inputs.find((input) => input.checked)?.value ?? null;\n if (fallback && value !== controller.value) {\n if (value === null) controller.clear();\n else controller.select(value);\n }\n return {\n destroy() {\n for (const input of inputs) input.checked = input.value === controller.value;\n controller.destroy();\n },\n };\n });\n}\n\nfunction initializeSwitch({ createSwitch }, root) {\n return replaceFallback(root, root, (checkbox) => {\n const controller = createSwitch(root, checkbox ? { defaultChecked: checkbox.defaultChecked } : {});\n if (checkbox) controller.setChecked(checkbox.checked);\n return {\n destroy() {\n if (checkbox) checkbox.checked = controller.checked;\n controller.destroy();\n },\n };\n });\n}\n\n// The slider has no form field of its own, so its native range inputs stay in the form, hidden,\n// and follow its value. A form reset moves the slider back to the inputs' reset values.\nfunction initializeSlider({ createSlider }, root) {\n const fallback = root.previousElementSibling?.matches('[data-fallback]') ? root.previousElementSibling : null;\n const inputs = fallback ? [...fallback.querySelectorAll('input[type=\"range\"]')] : [];\n const read = () => (inputs.length > 1 ? inputs.map((input) => Number(input.value)) : Number(inputs[0]?.value));\n const write = (value) => {\n [value].flat().forEach((number, index) => {\n if (!inputs[index] || inputs[index].value === String(number)) return;\n inputs[index].value = String(number);\n inputs[index].dispatchEvent(new Event('input', { bubbles: true }));\n });\n };\n const slider = createSlider(root, {\n ...(inputs.length ? { defaultValue: read() } : {}),\n onValueChange: write,\n onValueCommit: () => inputs.forEach((input) => input.dispatchEvent(new Event('change', { bubbles: true }))),\n });\n const events = new AbortController();\n inputs[0]?.form?.addEventListener('reset', () => setTimeout(() => slider.setValue(read())), {\n signal: events.signal,\n });\n if (fallback) fallback.hidden = true;\n root.hidden = false;\n return {\n destroy() {\n events.abort();\n slider.destroy();\n root.hidden = true;\n if (fallback) fallback.hidden = false;\n },\n };\n}\n\n// The action of an alert dialog is a native link or submit or reset button, and the controller\n// leaves closing to the caller. A link closes the dialog on click; a submit or reset button once its\n// form submits or resets, so an invalid form keeps its native validation and the dialog stays open.\nfunction initializeAlertDialog({ createAlertDialog }, root) {\n const dialog = createAlertDialog(root);\n const events = new AbortController();\n for (const action of root.querySelectorAll('[data-slot=\"alert-dialog-action\"]')) {\n action.addEventListener(\n 'click',\n () => {\n const form = ['submit', 'reset'].includes(action.type) ? action.form : null;\n if (form) form.addEventListener(action.type, () => dialog.close(), { once: true, signal: events.signal });\n else dialog.close();\n },\n { signal: events.signal },\n );\n }\n return {\n destroy() {\n events.abort();\n dialog.destroy();\n },\n };\n}\n\n// Buttons inside a toaster show a toast with their translated title and description. Like other\n// triggers that only open a popup, they show once the component has started (data-enhanced).\nfunction initializeToaster({ createToast }, root) {\n const toaster = createToast(root);\n const events = new AbortController();\n for (const button of root.querySelectorAll('[data-toast-title]')) {\n button.addEventListener(\n 'click',\n () => toaster.show({ title: button.dataset.toastTitle, description: button.dataset.toastDescription }),\n { signal: events.signal },\n );\n }\n return {\n destroy() {\n events.abort();\n toaster.destroy();\n },\n };\n}\n\n// A number field's buttons step its native input, as its arrow keys do, and fire the input and change\n// events that typing fires, so a form or cart script sees one kind of change. Without JavaScript the\n// input still works on its own.\nfunction initializeNumberField(_, root) {\n const input = root.querySelector('[data-slot=\"number-field-input\"]');\n const events = new AbortController();\n const step = (direction) => {\n if (!input || input.disabled || input.readOnly) return;\n const value = input.value;\n try {\n if (direction < 0) input.stepDown();\n else input.stepUp();\n } catch {\n return;\n }\n if (input.value === value) return;\n input.dispatchEvent(new Event('input', { bubbles: true }));\n input.dispatchEvent(new Event('change', { bubbles: true }));\n };\n for (const [slot, direction] of [\n ['number-field-decrement', -1],\n ['number-field-increment', 1],\n ])\n for (const button of root.querySelectorAll(`[data-slot=\"${slot}\"]`))\n button.addEventListener('click', () => step(direction), { signal: events.signal });\n return { destroy: () => events.abort() };\n}\n\n// Each entry loads its data-slot package, then starts one root with it and returns a controller\n// with destroy(). theme.js starts the root only if it is still current once the package has\n// loaded. Select, tooltip and hover card keep their closed content connected (eager), so nested\n// components and the lifecycle in theme.js never see it leave the document.\nexport const controls = {\n select: [() => import('@data-slot/select'), initializeSelect],\n 'radio-group': [() => import('@data-slot/radio-group'), initializeRadioGroup],\n switch: [() => import('@data-slot/switch'), initializeSwitch],\n slider: [() => import('@data-slot/slider'), initializeSlider],\n toggle: [() => import('@data-slot/toggle'), ({ createToggle }, root) => createToggle(root)],\n 'toggle-group': [() => import('@data-slot/toggle-group'), ({ createToggleGroup }, root) => createToggleGroup(root)],\n collapsible: [() => import('@data-slot/collapsible'), ({ createCollapsible }, root) => createCollapsible(root)],\n popover: [() => import('@data-slot/popover'), ({ createPopover }, root) => createPopover(root)],\n 'hover-card': [\n () => import('@data-slot/hover-card'),\n ({ createHoverCard }, root) => createHoverCard(root, { mountStrategy: 'eager' }),\n ],\n tooltip: [\n () => import('@data-slot/tooltip'),\n ({ createTooltip }, root) => createTooltip(root, { mountStrategy: 'eager' }),\n ],\n 'dropdown-menu': [\n () => import('@data-slot/dropdown-menu'),\n ({ createDropdownMenu }, root) => createDropdownMenu(root),\n ],\n 'alert-dialog': [() => import('@data-slot/alert-dialog'), initializeAlertDialog],\n drawer: [() => import('@data-slot/drawer'), ({ createDrawer }, root) => createDrawer(root)],\n toast: [() => import('@data-slot/toast'), initializeToaster],\n // data-slot leaves a number field to the native input, so this entry loads no package.\n 'number-field': [async () => ({}), initializeNumberField],\n};\n", "type": "registry:file", "target": "~/assets/ui-controls.js" }, diff --git a/public/r/liquid/swatch.json b/public/r/liquid/swatch.json new file mode 100644 index 000000000..3d953fe90 --- /dev/null +++ b/public/r/liquid/swatch.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "Native Liquid swatch with readable CSS and shared data-slot parts.", + "registryDependencies": [ + "https://ui.full.dev/r/liquid/init.json" + ], + "files": [ + { + "path": "snippets/ui-swatch.liquid", + "content": "{% doc %}\n Fulldev UI swatch styles. Use native markup with its data-slot parts.\n{% enddoc %}\n\n{% stylesheet %}\n /* A color or pattern beside an option or filter value, such as Shopify's swatch.color or\n swatch.image. Set the background in a style attribute; the faint inner ring keeps white and\n black visible on any background. It is decorative, so the value's name stays in text. */\n [data-slot='swatch'] {\n display: inline-block;\n flex-shrink: 0;\n width: calc(var(--spacing) * 4);\n height: calc(var(--spacing) * 4);\n border-radius: 999px;\n background-position: center;\n background-size: cover;\n box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--foreground) 15%, transparent);\n }\n{% endstylesheet %}\n", + "type": "registry:file", + "target": "~/snippets/ui-swatch.liquid" + } + ], + "docs": "https://ui.full.dev/liquid/components/swatch/", + "type": "registry:item" +} \ No newline at end of file diff --git a/public/r/react/styles/base-luma/carousel-indicator.json b/public/r/react/styles/base-luma/carousel-indicator.json new file mode 100644 index 000000000..376f0a2e5 --- /dev/null +++ b/public/r/react/styles/base-luma/carousel-indicator.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "carousel-indicator", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\n\nimport { useCarousel } from \"@/components/ui/carousel\"\n\nfunction CarouselIndicator({\n className,\n index,\n onClick,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n ...props\n}: React.ComponentProps<\"button\"> & {\n index: number\n}) {\n const { api } = useCarousel()\n const [selected, setSelected] = React.useState(0)\n\n React.useEffect(() => {\n if (!api) return\n const update = () => setSelected(api.selectedScrollSnap())\n update()\n api.on(\"select\", update)\n api.on(\"reInit\", update)\n return () => {\n api.off(\"select\", update)\n api.off(\"reInit\", update)\n }\n }, [api])\n\n const active = selected === index\n\n return (\n img]:size-full [&>img]:object-cover\",\n className\n )}\n onClick={(event) => {\n onClick?.(event)\n if (!event.defaultPrevented) api?.scrollTo(index)\n }}\n {...props}\n />\n )\n}\n\nexport { CarouselIndicator }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-luma/components.json b/public/r/react/styles/base-luma/components.json index 186310c74..5892a1c6e 100644 --- a/public/r/react/styles/base-luma/components.json +++ b/public/r/react/styles/base-luma/components.json @@ -5,14 +5,17 @@ "description": "Installs every Fulldev UI React extra.", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-luma/number-field.json b/public/r/react/styles/base-luma/number-field.json new file mode 100644 index 000000000..191601333 --- /dev/null +++ b/public/r/react/styles/base-luma/number-field.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-luma/registry.json b/public/r/react/styles/base-luma/registry.json index c482710d7..37ca4a434 100644 --- a/public/r/react/styles/base-luma/registry.json +++ b/public/r/react/styles/base-luma/registry.json @@ -3,6 +3,71 @@ "name": "fulldev-react", "homepage": "https://ui.full.dev/react/", "items": [ + { + "name": "carousel-indicator", + "type": "registry:ui", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -11,14 +76,17 @@ "docs": "https://ui.full.dev/react/components/", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-luma/swatch.json b/public/r/react/styles/base-luma/swatch.json new file mode 100644 index 000000000..3b467cfd5 --- /dev/null +++ b/public/r/react/styles/base-luma/swatch.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "content": "import * as React from \"react\"\nimport { cn } from \"cn\"\n\nfunction Swatch({\n className,\n color,\n image,\n style,\n ...props\n}: React.ComponentProps<\"span\"> & {\n color?: string\n image?: string\n}) {\n return (\n \n )\n}\n\nexport { Swatch }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-lyra/carousel-indicator.json b/public/r/react/styles/base-lyra/carousel-indicator.json new file mode 100644 index 000000000..beaee9e61 --- /dev/null +++ b/public/r/react/styles/base-lyra/carousel-indicator.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "carousel-indicator", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\n\nimport { useCarousel } from \"@/components/ui/carousel\"\n\nfunction CarouselIndicator({\n className,\n index,\n onClick,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n ...props\n}: React.ComponentProps<\"button\"> & {\n index: number\n}) {\n const { api } = useCarousel()\n const [selected, setSelected] = React.useState(0)\n\n React.useEffect(() => {\n if (!api) return\n const update = () => setSelected(api.selectedScrollSnap())\n update()\n api.on(\"select\", update)\n api.on(\"reInit\", update)\n return () => {\n api.off(\"select\", update)\n api.off(\"reInit\", update)\n }\n }, [api])\n\n const active = selected === index\n\n return (\n img]:size-full [&>img]:object-cover\",\n className\n )}\n onClick={(event) => {\n onClick?.(event)\n if (!event.defaultPrevented) api?.scrollTo(index)\n }}\n {...props}\n />\n )\n}\n\nexport { CarouselIndicator }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-lyra/components.json b/public/r/react/styles/base-lyra/components.json index 186310c74..5892a1c6e 100644 --- a/public/r/react/styles/base-lyra/components.json +++ b/public/r/react/styles/base-lyra/components.json @@ -5,14 +5,17 @@ "description": "Installs every Fulldev UI React extra.", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-lyra/number-field.json b/public/r/react/styles/base-lyra/number-field.json new file mode 100644 index 000000000..3e56dccb6 --- /dev/null +++ b/public/r/react/styles/base-lyra/number-field.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-lyra/registry.json b/public/r/react/styles/base-lyra/registry.json index c482710d7..37ca4a434 100644 --- a/public/r/react/styles/base-lyra/registry.json +++ b/public/r/react/styles/base-lyra/registry.json @@ -3,6 +3,71 @@ "name": "fulldev-react", "homepage": "https://ui.full.dev/react/", "items": [ + { + "name": "carousel-indicator", + "type": "registry:ui", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -11,14 +76,17 @@ "docs": "https://ui.full.dev/react/components/", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-lyra/swatch.json b/public/r/react/styles/base-lyra/swatch.json new file mode 100644 index 000000000..3b467cfd5 --- /dev/null +++ b/public/r/react/styles/base-lyra/swatch.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "content": "import * as React from \"react\"\nimport { cn } from \"cn\"\n\nfunction Swatch({\n className,\n color,\n image,\n style,\n ...props\n}: React.ComponentProps<\"span\"> & {\n color?: string\n image?: string\n}) {\n return (\n \n )\n}\n\nexport { Swatch }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-maia/carousel-indicator.json b/public/r/react/styles/base-maia/carousel-indicator.json new file mode 100644 index 000000000..376f0a2e5 --- /dev/null +++ b/public/r/react/styles/base-maia/carousel-indicator.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "carousel-indicator", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\n\nimport { useCarousel } from \"@/components/ui/carousel\"\n\nfunction CarouselIndicator({\n className,\n index,\n onClick,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n ...props\n}: React.ComponentProps<\"button\"> & {\n index: number\n}) {\n const { api } = useCarousel()\n const [selected, setSelected] = React.useState(0)\n\n React.useEffect(() => {\n if (!api) return\n const update = () => setSelected(api.selectedScrollSnap())\n update()\n api.on(\"select\", update)\n api.on(\"reInit\", update)\n return () => {\n api.off(\"select\", update)\n api.off(\"reInit\", update)\n }\n }, [api])\n\n const active = selected === index\n\n return (\n img]:size-full [&>img]:object-cover\",\n className\n )}\n onClick={(event) => {\n onClick?.(event)\n if (!event.defaultPrevented) api?.scrollTo(index)\n }}\n {...props}\n />\n )\n}\n\nexport { CarouselIndicator }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-maia/components.json b/public/r/react/styles/base-maia/components.json index 186310c74..5892a1c6e 100644 --- a/public/r/react/styles/base-maia/components.json +++ b/public/r/react/styles/base-maia/components.json @@ -5,14 +5,17 @@ "description": "Installs every Fulldev UI React extra.", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-maia/number-field.json b/public/r/react/styles/base-maia/number-field.json new file mode 100644 index 000000000..ed93d058b --- /dev/null +++ b/public/r/react/styles/base-maia/number-field.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-maia/registry.json b/public/r/react/styles/base-maia/registry.json index c482710d7..37ca4a434 100644 --- a/public/r/react/styles/base-maia/registry.json +++ b/public/r/react/styles/base-maia/registry.json @@ -3,6 +3,71 @@ "name": "fulldev-react", "homepage": "https://ui.full.dev/react/", "items": [ + { + "name": "carousel-indicator", + "type": "registry:ui", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -11,14 +76,17 @@ "docs": "https://ui.full.dev/react/components/", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-maia/swatch.json b/public/r/react/styles/base-maia/swatch.json new file mode 100644 index 000000000..3b467cfd5 --- /dev/null +++ b/public/r/react/styles/base-maia/swatch.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "content": "import * as React from \"react\"\nimport { cn } from \"cn\"\n\nfunction Swatch({\n className,\n color,\n image,\n style,\n ...props\n}: React.ComponentProps<\"span\"> & {\n color?: string\n image?: string\n}) {\n return (\n \n )\n}\n\nexport { Swatch }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-mira/carousel-indicator.json b/public/r/react/styles/base-mira/carousel-indicator.json new file mode 100644 index 000000000..b57c60c2d --- /dev/null +++ b/public/r/react/styles/base-mira/carousel-indicator.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "carousel-indicator", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\n\nimport { useCarousel } from \"@/components/ui/carousel\"\n\nfunction CarouselIndicator({\n className,\n index,\n onClick,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n ...props\n}: React.ComponentProps<\"button\"> & {\n index: number\n}) {\n const { api } = useCarousel()\n const [selected, setSelected] = React.useState(0)\n\n React.useEffect(() => {\n if (!api) return\n const update = () => setSelected(api.selectedScrollSnap())\n update()\n api.on(\"select\", update)\n api.on(\"reInit\", update)\n return () => {\n api.off(\"select\", update)\n api.off(\"reInit\", update)\n }\n }, [api])\n\n const active = selected === index\n\n return (\n img]:size-full [&>img]:object-cover\",\n className\n )}\n onClick={(event) => {\n onClick?.(event)\n if (!event.defaultPrevented) api?.scrollTo(index)\n }}\n {...props}\n />\n )\n}\n\nexport { CarouselIndicator }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-mira/components.json b/public/r/react/styles/base-mira/components.json index 186310c74..5892a1c6e 100644 --- a/public/r/react/styles/base-mira/components.json +++ b/public/r/react/styles/base-mira/components.json @@ -5,14 +5,17 @@ "description": "Installs every Fulldev UI React extra.", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-mira/number-field.json b/public/r/react/styles/base-mira/number-field.json new file mode 100644 index 000000000..439616400 --- /dev/null +++ b/public/r/react/styles/base-mira/number-field.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-mira/registry.json b/public/r/react/styles/base-mira/registry.json index c482710d7..37ca4a434 100644 --- a/public/r/react/styles/base-mira/registry.json +++ b/public/r/react/styles/base-mira/registry.json @@ -3,6 +3,71 @@ "name": "fulldev-react", "homepage": "https://ui.full.dev/react/", "items": [ + { + "name": "carousel-indicator", + "type": "registry:ui", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -11,14 +76,17 @@ "docs": "https://ui.full.dev/react/components/", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-mira/swatch.json b/public/r/react/styles/base-mira/swatch.json new file mode 100644 index 000000000..3b467cfd5 --- /dev/null +++ b/public/r/react/styles/base-mira/swatch.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "content": "import * as React from \"react\"\nimport { cn } from \"cn\"\n\nfunction Swatch({\n className,\n color,\n image,\n style,\n ...props\n}: React.ComponentProps<\"span\"> & {\n color?: string\n image?: string\n}) {\n return (\n \n )\n}\n\nexport { Swatch }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-nova/carousel-indicator.json b/public/r/react/styles/base-nova/carousel-indicator.json new file mode 100644 index 000000000..3a1d0fdcf --- /dev/null +++ b/public/r/react/styles/base-nova/carousel-indicator.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "carousel-indicator", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\n\nimport { useCarousel } from \"@/components/ui/carousel\"\n\nfunction CarouselIndicator({\n className,\n index,\n onClick,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n ...props\n}: React.ComponentProps<\"button\"> & {\n index: number\n}) {\n const { api } = useCarousel()\n const [selected, setSelected] = React.useState(0)\n\n React.useEffect(() => {\n if (!api) return\n const update = () => setSelected(api.selectedScrollSnap())\n update()\n api.on(\"select\", update)\n api.on(\"reInit\", update)\n return () => {\n api.off(\"select\", update)\n api.off(\"reInit\", update)\n }\n }, [api])\n\n const active = selected === index\n\n return (\n img]:size-full [&>img]:object-cover\",\n className\n )}\n onClick={(event) => {\n onClick?.(event)\n if (!event.defaultPrevented) api?.scrollTo(index)\n }}\n {...props}\n />\n )\n}\n\nexport { CarouselIndicator }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-nova/components.json b/public/r/react/styles/base-nova/components.json index 186310c74..5892a1c6e 100644 --- a/public/r/react/styles/base-nova/components.json +++ b/public/r/react/styles/base-nova/components.json @@ -5,14 +5,17 @@ "description": "Installs every Fulldev UI React extra.", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-nova/number-field.json b/public/r/react/styles/base-nova/number-field.json new file mode 100644 index 000000000..729b82051 --- /dev/null +++ b/public/r/react/styles/base-nova/number-field.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-nova/registry.json b/public/r/react/styles/base-nova/registry.json index c482710d7..37ca4a434 100644 --- a/public/r/react/styles/base-nova/registry.json +++ b/public/r/react/styles/base-nova/registry.json @@ -3,6 +3,71 @@ "name": "fulldev-react", "homepage": "https://ui.full.dev/react/", "items": [ + { + "name": "carousel-indicator", + "type": "registry:ui", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -11,14 +76,17 @@ "docs": "https://ui.full.dev/react/components/", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-nova/swatch.json b/public/r/react/styles/base-nova/swatch.json new file mode 100644 index 000000000..3b467cfd5 --- /dev/null +++ b/public/r/react/styles/base-nova/swatch.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "content": "import * as React from \"react\"\nimport { cn } from \"cn\"\n\nfunction Swatch({\n className,\n color,\n image,\n style,\n ...props\n}: React.ComponentProps<\"span\"> & {\n color?: string\n image?: string\n}) {\n return (\n \n )\n}\n\nexport { Swatch }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-rhea/carousel-indicator.json b/public/r/react/styles/base-rhea/carousel-indicator.json new file mode 100644 index 000000000..376f0a2e5 --- /dev/null +++ b/public/r/react/styles/base-rhea/carousel-indicator.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "carousel-indicator", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\n\nimport { useCarousel } from \"@/components/ui/carousel\"\n\nfunction CarouselIndicator({\n className,\n index,\n onClick,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n ...props\n}: React.ComponentProps<\"button\"> & {\n index: number\n}) {\n const { api } = useCarousel()\n const [selected, setSelected] = React.useState(0)\n\n React.useEffect(() => {\n if (!api) return\n const update = () => setSelected(api.selectedScrollSnap())\n update()\n api.on(\"select\", update)\n api.on(\"reInit\", update)\n return () => {\n api.off(\"select\", update)\n api.off(\"reInit\", update)\n }\n }, [api])\n\n const active = selected === index\n\n return (\n img]:size-full [&>img]:object-cover\",\n className\n )}\n onClick={(event) => {\n onClick?.(event)\n if (!event.defaultPrevented) api?.scrollTo(index)\n }}\n {...props}\n />\n )\n}\n\nexport { CarouselIndicator }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-rhea/components.json b/public/r/react/styles/base-rhea/components.json index 186310c74..5892a1c6e 100644 --- a/public/r/react/styles/base-rhea/components.json +++ b/public/r/react/styles/base-rhea/components.json @@ -5,14 +5,17 @@ "description": "Installs every Fulldev UI React extra.", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-rhea/number-field.json b/public/r/react/styles/base-rhea/number-field.json new file mode 100644 index 000000000..6cf2b21ef --- /dev/null +++ b/public/r/react/styles/base-rhea/number-field.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-rhea/registry.json b/public/r/react/styles/base-rhea/registry.json index c482710d7..37ca4a434 100644 --- a/public/r/react/styles/base-rhea/registry.json +++ b/public/r/react/styles/base-rhea/registry.json @@ -3,6 +3,71 @@ "name": "fulldev-react", "homepage": "https://ui.full.dev/react/", "items": [ + { + "name": "carousel-indicator", + "type": "registry:ui", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -11,14 +76,17 @@ "docs": "https://ui.full.dev/react/components/", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-rhea/swatch.json b/public/r/react/styles/base-rhea/swatch.json new file mode 100644 index 000000000..3b467cfd5 --- /dev/null +++ b/public/r/react/styles/base-rhea/swatch.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "content": "import * as React from \"react\"\nimport { cn } from \"cn\"\n\nfunction Swatch({\n className,\n color,\n image,\n style,\n ...props\n}: React.ComponentProps<\"span\"> & {\n color?: string\n image?: string\n}) {\n return (\n \n )\n}\n\nexport { Swatch }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-sera/carousel-indicator.json b/public/r/react/styles/base-sera/carousel-indicator.json new file mode 100644 index 000000000..beaee9e61 --- /dev/null +++ b/public/r/react/styles/base-sera/carousel-indicator.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "carousel-indicator", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\n\nimport { useCarousel } from \"@/components/ui/carousel\"\n\nfunction CarouselIndicator({\n className,\n index,\n onClick,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n ...props\n}: React.ComponentProps<\"button\"> & {\n index: number\n}) {\n const { api } = useCarousel()\n const [selected, setSelected] = React.useState(0)\n\n React.useEffect(() => {\n if (!api) return\n const update = () => setSelected(api.selectedScrollSnap())\n update()\n api.on(\"select\", update)\n api.on(\"reInit\", update)\n return () => {\n api.off(\"select\", update)\n api.off(\"reInit\", update)\n }\n }, [api])\n\n const active = selected === index\n\n return (\n img]:size-full [&>img]:object-cover\",\n className\n )}\n onClick={(event) => {\n onClick?.(event)\n if (!event.defaultPrevented) api?.scrollTo(index)\n }}\n {...props}\n />\n )\n}\n\nexport { CarouselIndicator }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-sera/components.json b/public/r/react/styles/base-sera/components.json index 186310c74..5892a1c6e 100644 --- a/public/r/react/styles/base-sera/components.json +++ b/public/r/react/styles/base-sera/components.json @@ -5,14 +5,17 @@ "description": "Installs every Fulldev UI React extra.", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-sera/number-field.json b/public/r/react/styles/base-sera/number-field.json new file mode 100644 index 000000000..ba238efc1 --- /dev/null +++ b/public/r/react/styles/base-sera/number-field.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n [data-align=inline-start]]/input-group:pl-2 group-has-[>[data-align=inline-end]]/input-group:pr-2 w-full min-w-0 flex-1 text-center tabular-nums outline-none placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-sera/registry.json b/public/r/react/styles/base-sera/registry.json index c482710d7..37ca4a434 100644 --- a/public/r/react/styles/base-sera/registry.json +++ b/public/r/react/styles/base-sera/registry.json @@ -3,6 +3,71 @@ "name": "fulldev-react", "homepage": "https://ui.full.dev/react/", "items": [ + { + "name": "carousel-indicator", + "type": "registry:ui", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -11,14 +76,17 @@ "docs": "https://ui.full.dev/react/components/", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-sera/swatch.json b/public/r/react/styles/base-sera/swatch.json new file mode 100644 index 000000000..3b467cfd5 --- /dev/null +++ b/public/r/react/styles/base-sera/swatch.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "content": "import * as React from \"react\"\nimport { cn } from \"cn\"\n\nfunction Swatch({\n className,\n color,\n image,\n style,\n ...props\n}: React.ComponentProps<\"span\"> & {\n color?: string\n image?: string\n}) {\n return (\n \n )\n}\n\nexport { Swatch }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-vega/carousel-indicator.json b/public/r/react/styles/base-vega/carousel-indicator.json new file mode 100644 index 000000000..3a1d0fdcf --- /dev/null +++ b/public/r/react/styles/base-vega/carousel-indicator.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "carousel-indicator", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\n\nimport { useCarousel } from \"@/components/ui/carousel\"\n\nfunction CarouselIndicator({\n className,\n index,\n onClick,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n ...props\n}: React.ComponentProps<\"button\"> & {\n index: number\n}) {\n const { api } = useCarousel()\n const [selected, setSelected] = React.useState(0)\n\n React.useEffect(() => {\n if (!api) return\n const update = () => setSelected(api.selectedScrollSnap())\n update()\n api.on(\"select\", update)\n api.on(\"reInit\", update)\n return () => {\n api.off(\"select\", update)\n api.off(\"reInit\", update)\n }\n }, [api])\n\n const active = selected === index\n\n return (\n img]:size-full [&>img]:object-cover\",\n className\n )}\n onClick={(event) => {\n onClick?.(event)\n if (!event.defaultPrevented) api?.scrollTo(index)\n }}\n {...props}\n />\n )\n}\n\nexport { CarouselIndicator }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-vega/components.json b/public/r/react/styles/base-vega/components.json index 186310c74..5892a1c6e 100644 --- a/public/r/react/styles/base-vega/components.json +++ b/public/r/react/styles/base-vega/components.json @@ -5,14 +5,17 @@ "description": "Installs every Fulldev UI React extra.", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-vega/number-field.json b/public/r/react/styles/base-vega/number-field.json new file mode 100644 index 000000000..99d038008 --- /dev/null +++ b/public/r/react/styles/base-vega/number-field.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/react/styles/base-vega/registry.json b/public/r/react/styles/base-vega/registry.json index c482710d7..37ca4a434 100644 --- a/public/r/react/styles/base-vega/registry.json +++ b/public/r/react/styles/base-vega/registry.json @@ -3,6 +3,71 @@ "name": "fulldev-react", "homepage": "https://ui.full.dev/react/", "items": [ + { + "name": "carousel-indicator", + "type": "registry:ui", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "dependencies": [ + "cn" + ], + "registryDependencies": [ + "carousel" + ], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/number-field/", + "dependencies": [ + "@base-ui/react", + "cn", + "lucide-react" + ], + "registryDependencies": [ + "input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -11,14 +76,17 @@ "docs": "https://ui.full.dev/react/components/", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/public/r/react/styles/base-vega/swatch.json b/public/r/react/styles/base-vega/swatch.json new file mode 100644 index 000000000..3b467cfd5 --- /dev/null +++ b/public/r/react/styles/base-vega/swatch.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "dependencies": [ + "cn" + ], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "content": "import * as React from \"react\"\nimport { cn } from \"cn\"\n\nfunction Swatch({\n className,\n color,\n image,\n style,\n ...props\n}: React.ComponentProps<\"span\"> & {\n color?: string\n image?: string\n}) {\n return (\n \n )\n}\n\nexport { Swatch }\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/react/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-luma/carousel.json b/public/r/styles/base-luma/carousel.json index 5584f6f46..5d89b980e 100644 --- a/public/r/styles/base-luma/carousel.json +++ b/public/r/styles/base-luma/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -36,9 +36,14 @@ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronLeftIcon from \"@lucide/astro/icons/chevron-left\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = Omit, \"type\"> & ButtonVariantProps\n\nconst {\n class: className,\n variant = \"outline\",\n size = \"icon-sm\",\n disabled,\n \"data-slot\": dataSlot = \"carousel-previous\",\n ...props\n} = Astro.props\n---\n\n\n \n \n Previous slide\n \n\n", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = \"href\" in Astro.props ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", - "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\n", + "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\nexport { default as CarouselIndicator } from \"./carousel-indicator.astro\"\n", "type": "registry:ui" } ], diff --git a/public/r/styles/base-luma/components.json b/public/r/styles/base-luma/components.json index deba8a378..afa1c5624 100644 --- a/public/r/styles/base-luma/components.json +++ b/public/r/styles/base-luma/components.json @@ -42,6 +42,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -57,6 +58,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-luma/input-group.json b/public/r/styles/base-luma/input-group.json index b86453e97..77f6147e5 100644 --- a/public/r/styles/base-luma/input-group.json +++ b/public/r/styles/base-luma/input-group.json @@ -11,7 +11,7 @@ "files": [ { "path": "src/components/ui/input-group/input-group.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"input-group\",\n ...props\n} = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-luma/number-field.json b/public/r/styles/base-luma/number-field.json new file mode 100644 index 000000000..89bc17f76 --- /dev/null +++ b/public/r/styles/base-luma/number-field.json @@ -0,0 +1,44 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport MinusIcon from \"@lucide/astro/icons/minus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Decrease\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport PlusIcon from \"@lucide/astro/icons/plus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Increase\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "content": "export { default as NumberField } from \"./number-field.astro\"\nexport { default as NumberFieldDecrement } from \"./number-field-decrement.astro\"\nexport { default as NumberFieldInput } from \"./number-field-input.astro\"\nexport { default as NumberFieldIncrement } from \"./number-field-increment.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-luma/registry.json b/public/r/styles/base-luma/registry.json index a91abf9b3..cf5551971 100644 --- a/public/r/styles/base-luma/registry.json +++ b/public/r/styles/base-luma/registry.json @@ -1242,6 +1242,10 @@ "path": "src/components/ui/carousel/carousel-previous.astro", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", "type": "registry:ui" @@ -2533,6 +2537,64 @@ } ] }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/number-field/", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/swatch/", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -2578,6 +2640,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -2593,6 +2656,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-luma/swatch.json b/public/r/styles/base-luma/swatch.json new file mode 100644 index 000000000..38b2cc8eb --- /dev/null +++ b/public/r/styles/base-luma/swatch.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\"> & {\n color?: string\n image?: string\n}\n\nconst { class: className, color, image, style, ...props } = Astro.props\n\nconst background = {\n \"background-color\": color,\n \"background-image\": image ? `url(${JSON.stringify(image)})` : undefined,\n}\nconst backgroundText = Object.entries(background)\n .filter(([, value]) => value)\n .map(([property, value]) => `${property}: ${value}`)\n .join(\"; \")\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "content": "export { default as Swatch } from \"./swatch.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-lyra/carousel.json b/public/r/styles/base-lyra/carousel.json index 98dcc9dde..775cad417 100644 --- a/public/r/styles/base-lyra/carousel.json +++ b/public/r/styles/base-lyra/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -36,9 +36,14 @@ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronLeftIcon from \"@lucide/astro/icons/chevron-left\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = Omit, \"type\"> & ButtonVariantProps\n\nconst {\n class: className,\n variant = \"outline\",\n size = \"icon-sm\",\n disabled,\n \"data-slot\": dataSlot = \"carousel-previous\",\n ...props\n} = Astro.props\n---\n\n\n \n \n Previous slide\n \n\n", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = \"href\" in Astro.props ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", - "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\n", + "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\nexport { default as CarouselIndicator } from \"./carousel-indicator.astro\"\n", "type": "registry:ui" } ], diff --git a/public/r/styles/base-lyra/components.json b/public/r/styles/base-lyra/components.json index deba8a378..afa1c5624 100644 --- a/public/r/styles/base-lyra/components.json +++ b/public/r/styles/base-lyra/components.json @@ -42,6 +42,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -57,6 +58,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-lyra/input-group.json b/public/r/styles/base-lyra/input-group.json index 439695ecb..5a3f01d77 100644 --- a/public/r/styles/base-lyra/input-group.json +++ b/public/r/styles/base-lyra/input-group.json @@ -11,7 +11,7 @@ "files": [ { "path": "src/components/ui/input-group/input-group.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"input-group\",\n ...props\n} = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-lyra/number-field.json b/public/r/styles/base-lyra/number-field.json new file mode 100644 index 000000000..89bc17f76 --- /dev/null +++ b/public/r/styles/base-lyra/number-field.json @@ -0,0 +1,44 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport MinusIcon from \"@lucide/astro/icons/minus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Decrease\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport PlusIcon from \"@lucide/astro/icons/plus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Increase\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "content": "export { default as NumberField } from \"./number-field.astro\"\nexport { default as NumberFieldDecrement } from \"./number-field-decrement.astro\"\nexport { default as NumberFieldInput } from \"./number-field-input.astro\"\nexport { default as NumberFieldIncrement } from \"./number-field-increment.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-lyra/registry.json b/public/r/styles/base-lyra/registry.json index 5ac1a0665..7f588acd3 100644 --- a/public/r/styles/base-lyra/registry.json +++ b/public/r/styles/base-lyra/registry.json @@ -1242,6 +1242,10 @@ "path": "src/components/ui/carousel/carousel-previous.astro", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", "type": "registry:ui" @@ -2533,6 +2537,64 @@ } ] }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/number-field/", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/swatch/", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -2578,6 +2640,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -2593,6 +2656,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-lyra/swatch.json b/public/r/styles/base-lyra/swatch.json new file mode 100644 index 000000000..38b2cc8eb --- /dev/null +++ b/public/r/styles/base-lyra/swatch.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\"> & {\n color?: string\n image?: string\n}\n\nconst { class: className, color, image, style, ...props } = Astro.props\n\nconst background = {\n \"background-color\": color,\n \"background-image\": image ? `url(${JSON.stringify(image)})` : undefined,\n}\nconst backgroundText = Object.entries(background)\n .filter(([, value]) => value)\n .map(([property, value]) => `${property}: ${value}`)\n .join(\"; \")\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "content": "export { default as Swatch } from \"./swatch.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-maia/carousel.json b/public/r/styles/base-maia/carousel.json index 5584f6f46..5d89b980e 100644 --- a/public/r/styles/base-maia/carousel.json +++ b/public/r/styles/base-maia/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -36,9 +36,14 @@ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronLeftIcon from \"@lucide/astro/icons/chevron-left\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = Omit, \"type\"> & ButtonVariantProps\n\nconst {\n class: className,\n variant = \"outline\",\n size = \"icon-sm\",\n disabled,\n \"data-slot\": dataSlot = \"carousel-previous\",\n ...props\n} = Astro.props\n---\n\n\n \n \n Previous slide\n \n\n", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = \"href\" in Astro.props ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", - "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\n", + "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\nexport { default as CarouselIndicator } from \"./carousel-indicator.astro\"\n", "type": "registry:ui" } ], diff --git a/public/r/styles/base-maia/components.json b/public/r/styles/base-maia/components.json index deba8a378..afa1c5624 100644 --- a/public/r/styles/base-maia/components.json +++ b/public/r/styles/base-maia/components.json @@ -42,6 +42,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -57,6 +58,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-maia/input-group.json b/public/r/styles/base-maia/input-group.json index e74511dd0..26c388a1b 100644 --- a/public/r/styles/base-maia/input-group.json +++ b/public/r/styles/base-maia/input-group.json @@ -11,7 +11,7 @@ "files": [ { "path": "src/components/ui/input-group/input-group.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"input-group\",\n ...props\n} = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-maia/number-field.json b/public/r/styles/base-maia/number-field.json new file mode 100644 index 000000000..89bc17f76 --- /dev/null +++ b/public/r/styles/base-maia/number-field.json @@ -0,0 +1,44 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport MinusIcon from \"@lucide/astro/icons/minus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Decrease\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport PlusIcon from \"@lucide/astro/icons/plus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Increase\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "content": "export { default as NumberField } from \"./number-field.astro\"\nexport { default as NumberFieldDecrement } from \"./number-field-decrement.astro\"\nexport { default as NumberFieldInput } from \"./number-field-input.astro\"\nexport { default as NumberFieldIncrement } from \"./number-field-increment.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-maia/registry.json b/public/r/styles/base-maia/registry.json index 34d319d54..dfb7c48f9 100644 --- a/public/r/styles/base-maia/registry.json +++ b/public/r/styles/base-maia/registry.json @@ -1242,6 +1242,10 @@ "path": "src/components/ui/carousel/carousel-previous.astro", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", "type": "registry:ui" @@ -2533,6 +2537,64 @@ } ] }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/number-field/", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/swatch/", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -2578,6 +2640,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -2593,6 +2656,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-maia/swatch.json b/public/r/styles/base-maia/swatch.json new file mode 100644 index 000000000..38b2cc8eb --- /dev/null +++ b/public/r/styles/base-maia/swatch.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\"> & {\n color?: string\n image?: string\n}\n\nconst { class: className, color, image, style, ...props } = Astro.props\n\nconst background = {\n \"background-color\": color,\n \"background-image\": image ? `url(${JSON.stringify(image)})` : undefined,\n}\nconst backgroundText = Object.entries(background)\n .filter(([, value]) => value)\n .map(([property, value]) => `${property}: ${value}`)\n .join(\"; \")\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "content": "export { default as Swatch } from \"./swatch.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-mira/carousel.json b/public/r/styles/base-mira/carousel.json index 5584f6f46..ecf227cb2 100644 --- a/public/r/styles/base-mira/carousel.json +++ b/public/r/styles/base-mira/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -36,9 +36,14 @@ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronLeftIcon from \"@lucide/astro/icons/chevron-left\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = Omit, \"type\"> & ButtonVariantProps\n\nconst {\n class: className,\n variant = \"outline\",\n size = \"icon-sm\",\n disabled,\n \"data-slot\": dataSlot = \"carousel-previous\",\n ...props\n} = Astro.props\n---\n\n\n \n \n Previous slide\n \n\n", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = \"href\" in Astro.props ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", - "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\n", + "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\nexport { default as CarouselIndicator } from \"./carousel-indicator.astro\"\n", "type": "registry:ui" } ], diff --git a/public/r/styles/base-mira/components.json b/public/r/styles/base-mira/components.json index deba8a378..afa1c5624 100644 --- a/public/r/styles/base-mira/components.json +++ b/public/r/styles/base-mira/components.json @@ -42,6 +42,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -57,6 +58,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-mira/input-group.json b/public/r/styles/base-mira/input-group.json index 716bc7799..4b04552eb 100644 --- a/public/r/styles/base-mira/input-group.json +++ b/public/r/styles/base-mira/input-group.json @@ -11,7 +11,7 @@ "files": [ { "path": "src/components/ui/input-group/input-group.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"input-group\",\n ...props\n} = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-mira/number-field.json b/public/r/styles/base-mira/number-field.json new file mode 100644 index 000000000..89bc17f76 --- /dev/null +++ b/public/r/styles/base-mira/number-field.json @@ -0,0 +1,44 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport MinusIcon from \"@lucide/astro/icons/minus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Decrease\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport PlusIcon from \"@lucide/astro/icons/plus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Increase\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "content": "export { default as NumberField } from \"./number-field.astro\"\nexport { default as NumberFieldDecrement } from \"./number-field-decrement.astro\"\nexport { default as NumberFieldInput } from \"./number-field-input.astro\"\nexport { default as NumberFieldIncrement } from \"./number-field-increment.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-mira/registry.json b/public/r/styles/base-mira/registry.json index c5534d20c..76ca1918d 100644 --- a/public/r/styles/base-mira/registry.json +++ b/public/r/styles/base-mira/registry.json @@ -1242,6 +1242,10 @@ "path": "src/components/ui/carousel/carousel-previous.astro", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", "type": "registry:ui" @@ -2533,6 +2537,64 @@ } ] }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/number-field/", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/swatch/", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -2578,6 +2640,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -2593,6 +2656,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-mira/swatch.json b/public/r/styles/base-mira/swatch.json new file mode 100644 index 000000000..38b2cc8eb --- /dev/null +++ b/public/r/styles/base-mira/swatch.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\"> & {\n color?: string\n image?: string\n}\n\nconst { class: className, color, image, style, ...props } = Astro.props\n\nconst background = {\n \"background-color\": color,\n \"background-image\": image ? `url(${JSON.stringify(image)})` : undefined,\n}\nconst backgroundText = Object.entries(background)\n .filter(([, value]) => value)\n .map(([property, value]) => `${property}: ${value}`)\n .join(\"; \")\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "content": "export { default as Swatch } from \"./swatch.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-nova/carousel.json b/public/r/styles/base-nova/carousel.json index 5584f6f46..6647b3830 100644 --- a/public/r/styles/base-nova/carousel.json +++ b/public/r/styles/base-nova/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -36,9 +36,14 @@ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronLeftIcon from \"@lucide/astro/icons/chevron-left\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = Omit, \"type\"> & ButtonVariantProps\n\nconst {\n class: className,\n variant = \"outline\",\n size = \"icon-sm\",\n disabled,\n \"data-slot\": dataSlot = \"carousel-previous\",\n ...props\n} = Astro.props\n---\n\n\n \n \n Previous slide\n \n\n", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = \"href\" in Astro.props ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", - "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\n", + "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\nexport { default as CarouselIndicator } from \"./carousel-indicator.astro\"\n", "type": "registry:ui" } ], diff --git a/public/r/styles/base-nova/components.json b/public/r/styles/base-nova/components.json index deba8a378..afa1c5624 100644 --- a/public/r/styles/base-nova/components.json +++ b/public/r/styles/base-nova/components.json @@ -42,6 +42,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -57,6 +58,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-nova/input-group.json b/public/r/styles/base-nova/input-group.json index 00a123732..e04ba1cb5 100644 --- a/public/r/styles/base-nova/input-group.json +++ b/public/r/styles/base-nova/input-group.json @@ -11,7 +11,7 @@ "files": [ { "path": "src/components/ui/input-group/input-group.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"input-group\",\n ...props\n} = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-nova/number-field.json b/public/r/styles/base-nova/number-field.json new file mode 100644 index 000000000..89bc17f76 --- /dev/null +++ b/public/r/styles/base-nova/number-field.json @@ -0,0 +1,44 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport MinusIcon from \"@lucide/astro/icons/minus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Decrease\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport PlusIcon from \"@lucide/astro/icons/plus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Increase\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "content": "export { default as NumberField } from \"./number-field.astro\"\nexport { default as NumberFieldDecrement } from \"./number-field-decrement.astro\"\nexport { default as NumberFieldInput } from \"./number-field-input.astro\"\nexport { default as NumberFieldIncrement } from \"./number-field-increment.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-nova/registry.json b/public/r/styles/base-nova/registry.json index baa1d54a1..e31613606 100644 --- a/public/r/styles/base-nova/registry.json +++ b/public/r/styles/base-nova/registry.json @@ -1242,6 +1242,10 @@ "path": "src/components/ui/carousel/carousel-previous.astro", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", "type": "registry:ui" @@ -2533,6 +2537,64 @@ } ] }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/number-field/", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/swatch/", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -2578,6 +2640,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -2593,6 +2656,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-nova/swatch.json b/public/r/styles/base-nova/swatch.json new file mode 100644 index 000000000..38b2cc8eb --- /dev/null +++ b/public/r/styles/base-nova/swatch.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\"> & {\n color?: string\n image?: string\n}\n\nconst { class: className, color, image, style, ...props } = Astro.props\n\nconst background = {\n \"background-color\": color,\n \"background-image\": image ? `url(${JSON.stringify(image)})` : undefined,\n}\nconst backgroundText = Object.entries(background)\n .filter(([, value]) => value)\n .map(([property, value]) => `${property}: ${value}`)\n .join(\"; \")\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "content": "export { default as Swatch } from \"./swatch.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-rhea/carousel.json b/public/r/styles/base-rhea/carousel.json index 7ffbdcdf5..9307899e1 100644 --- a/public/r/styles/base-rhea/carousel.json +++ b/public/r/styles/base-rhea/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -36,9 +36,14 @@ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronLeftIcon from \"@lucide/astro/icons/chevron-left\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = Omit, \"type\"> & ButtonVariantProps\n\nconst {\n class: className,\n variant = \"outline\",\n size = \"icon-sm\",\n disabled,\n \"data-slot\": dataSlot = \"carousel-previous\",\n ...props\n} = Astro.props\n---\n\n\n \n \n Previous slide\n \n\n", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = \"href\" in Astro.props ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", - "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\n", + "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\nexport { default as CarouselIndicator } from \"./carousel-indicator.astro\"\n", "type": "registry:ui" } ], diff --git a/public/r/styles/base-rhea/components.json b/public/r/styles/base-rhea/components.json index deba8a378..afa1c5624 100644 --- a/public/r/styles/base-rhea/components.json +++ b/public/r/styles/base-rhea/components.json @@ -42,6 +42,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -57,6 +58,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-rhea/input-group.json b/public/r/styles/base-rhea/input-group.json index 0cc480cab..7deb1b7bc 100644 --- a/public/r/styles/base-rhea/input-group.json +++ b/public/r/styles/base-rhea/input-group.json @@ -11,7 +11,7 @@ "files": [ { "path": "src/components/ui/input-group/input-group.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"input-group\",\n ...props\n} = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-rhea/number-field.json b/public/r/styles/base-rhea/number-field.json new file mode 100644 index 000000000..89bc17f76 --- /dev/null +++ b/public/r/styles/base-rhea/number-field.json @@ -0,0 +1,44 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport MinusIcon from \"@lucide/astro/icons/minus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Decrease\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport PlusIcon from \"@lucide/astro/icons/plus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Increase\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "content": "export { default as NumberField } from \"./number-field.astro\"\nexport { default as NumberFieldDecrement } from \"./number-field-decrement.astro\"\nexport { default as NumberFieldInput } from \"./number-field-input.astro\"\nexport { default as NumberFieldIncrement } from \"./number-field-increment.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-rhea/registry.json b/public/r/styles/base-rhea/registry.json index 7d5b2f011..6d3e28f80 100644 --- a/public/r/styles/base-rhea/registry.json +++ b/public/r/styles/base-rhea/registry.json @@ -1242,6 +1242,10 @@ "path": "src/components/ui/carousel/carousel-previous.astro", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", "type": "registry:ui" @@ -2533,6 +2537,64 @@ } ] }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/number-field/", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/swatch/", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -2578,6 +2640,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -2593,6 +2656,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-rhea/swatch.json b/public/r/styles/base-rhea/swatch.json new file mode 100644 index 000000000..38b2cc8eb --- /dev/null +++ b/public/r/styles/base-rhea/swatch.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\"> & {\n color?: string\n image?: string\n}\n\nconst { class: className, color, image, style, ...props } = Astro.props\n\nconst background = {\n \"background-color\": color,\n \"background-image\": image ? `url(${JSON.stringify(image)})` : undefined,\n}\nconst backgroundText = Object.entries(background)\n .filter(([, value]) => value)\n .map(([property, value]) => `${property}: ${value}`)\n .join(\"; \")\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "content": "export { default as Swatch } from \"./swatch.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-sera/carousel.json b/public/r/styles/base-sera/carousel.json index 98dcc9dde..775cad417 100644 --- a/public/r/styles/base-sera/carousel.json +++ b/public/r/styles/base-sera/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -36,9 +36,14 @@ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronLeftIcon from \"@lucide/astro/icons/chevron-left\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = Omit, \"type\"> & ButtonVariantProps\n\nconst {\n class: className,\n variant = \"outline\",\n size = \"icon-sm\",\n disabled,\n \"data-slot\": dataSlot = \"carousel-previous\",\n ...props\n} = Astro.props\n---\n\n\n \n \n Previous slide\n \n\n", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = \"href\" in Astro.props ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", - "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\n", + "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\nexport { default as CarouselIndicator } from \"./carousel-indicator.astro\"\n", "type": "registry:ui" } ], diff --git a/public/r/styles/base-sera/components.json b/public/r/styles/base-sera/components.json index deba8a378..afa1c5624 100644 --- a/public/r/styles/base-sera/components.json +++ b/public/r/styles/base-sera/components.json @@ -42,6 +42,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -57,6 +58,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-sera/input-group.json b/public/r/styles/base-sera/input-group.json index c17fcb569..f59e2da25 100644 --- a/public/r/styles/base-sera/input-group.json +++ b/public/r/styles/base-sera/input-group.json @@ -11,7 +11,7 @@ "files": [ { "path": "src/components/ui/input-group/input-group.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"input-group\",\n ...props\n} = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-sera/number-field.json b/public/r/styles/base-sera/number-field.json new file mode 100644 index 000000000..89bc17f76 --- /dev/null +++ b/public/r/styles/base-sera/number-field.json @@ -0,0 +1,44 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport MinusIcon from \"@lucide/astro/icons/minus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Decrease\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport PlusIcon from \"@lucide/astro/icons/plus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Increase\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "content": "export { default as NumberField } from \"./number-field.astro\"\nexport { default as NumberFieldDecrement } from \"./number-field-decrement.astro\"\nexport { default as NumberFieldInput } from \"./number-field-input.astro\"\nexport { default as NumberFieldIncrement } from \"./number-field-increment.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-sera/registry.json b/public/r/styles/base-sera/registry.json index a3c51bdda..c9a00494f 100644 --- a/public/r/styles/base-sera/registry.json +++ b/public/r/styles/base-sera/registry.json @@ -1242,6 +1242,10 @@ "path": "src/components/ui/carousel/carousel-previous.astro", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", "type": "registry:ui" @@ -2533,6 +2537,64 @@ } ] }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/number-field/", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/swatch/", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -2578,6 +2640,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -2593,6 +2656,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-sera/swatch.json b/public/r/styles/base-sera/swatch.json new file mode 100644 index 000000000..38b2cc8eb --- /dev/null +++ b/public/r/styles/base-sera/swatch.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\"> & {\n color?: string\n image?: string\n}\n\nconst { class: className, color, image, style, ...props } = Astro.props\n\nconst background = {\n \"background-color\": color,\n \"background-image\": image ? `url(${JSON.stringify(image)})` : undefined,\n}\nconst backgroundText = Object.entries(background)\n .filter(([, value]) => value)\n .map(([property, value]) => `${property}: ${value}`)\n .join(\"; \")\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "content": "export { default as Swatch } from \"./swatch.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-vega/carousel.json b/public/r/styles/base-vega/carousel.json index 5584f6f46..6647b3830 100644 --- a/public/r/styles/base-vega/carousel.json +++ b/public/r/styles/base-vega/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -36,9 +36,14 @@ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronLeftIcon from \"@lucide/astro/icons/chevron-left\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = Omit, \"type\"> & ButtonVariantProps\n\nconst {\n class: className,\n variant = \"outline\",\n size = \"icon-sm\",\n disabled,\n \"data-slot\": dataSlot = \"carousel-previous\",\n ...props\n} = Astro.props\n---\n\n\n \n \n Previous slide\n \n\n", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = \"href\" in Astro.props ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", - "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\n", + "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\nexport { default as CarouselIndicator } from \"./carousel-indicator.astro\"\n", "type": "registry:ui" } ], diff --git a/public/r/styles/base-vega/components.json b/public/r/styles/base-vega/components.json index deba8a378..afa1c5624 100644 --- a/public/r/styles/base-vega/components.json +++ b/public/r/styles/base-vega/components.json @@ -42,6 +42,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -57,6 +58,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-vega/input-group.json b/public/r/styles/base-vega/input-group.json index b3fc8ff26..03d42772f 100644 --- a/public/r/styles/base-vega/input-group.json +++ b/public/r/styles/base-vega/input-group.json @@ -11,7 +11,7 @@ "files": [ { "path": "src/components/ui/input-group/input-group.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"input-group\",\n ...props\n} = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-vega/number-field.json b/public/r/styles/base-vega/number-field.json new file mode 100644 index 000000000..89bc17f76 --- /dev/null +++ b/public/r/styles/base-vega/number-field.json @@ -0,0 +1,44 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "number-field", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport MinusIcon from \"@lucide/astro/icons/minus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Decrease\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport PlusIcon from \"@lucide/astro/icons/plus\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst {\n \"aria-label\": ariaLabel = \"Increase\",\n size = \"icon-xs\",\n ...props\n} = Astro.props\n---\n\n\n \n \n \n \n \n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "content": "export { default as NumberField } from \"./number-field.astro\"\nexport { default as NumberFieldDecrement } from \"./number-field-decrement.astro\"\nexport { default as NumberFieldInput } from \"./number-field-input.astro\"\nexport { default as NumberFieldIncrement } from \"./number-field-increment.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/number-field/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/public/r/styles/base-vega/registry.json b/public/r/styles/base-vega/registry.json index 0371fcb41..925e68e5f 100644 --- a/public/r/styles/base-vega/registry.json +++ b/public/r/styles/base-vega/registry.json @@ -1242,6 +1242,10 @@ "path": "src/components/ui/carousel/carousel-previous.astro", "type": "registry:ui" }, + { + "path": "src/components/ui/carousel/carousel-indicator.astro", + "type": "registry:ui" + }, { "path": "src/components/ui/carousel/index.ts", "type": "registry:ui" @@ -2533,6 +2537,64 @@ } ] }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/number-field/", + "dependencies": [ + "@lucide/astro" + ], + "registryDependencies": [ + "@fulldev/input-group" + ], + "files": [ + { + "path": "src/components/ui/number-field/number-field.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-decrement.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-increment.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/number-field-input.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/number-field/index.ts", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": [ + "ui" + ], + "docs": "https://ui.full.dev/components/swatch/", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -2578,6 +2640,7 @@ "@fulldev/marquee", "@fulldev/native-select", "@fulldev/navigation-menu", + "@fulldev/number-field", "@fulldev/pagination", "@fulldev/popover", "@fulldev/price", @@ -2593,6 +2656,7 @@ "@fulldev/skeleton", "@fulldev/slider", "@fulldev/spinner", + "@fulldev/swatch", "@fulldev/switch", "@fulldev/table", "@fulldev/tabs", diff --git a/public/r/styles/base-vega/swatch.json b/public/r/styles/base-vega/swatch.json new file mode 100644 index 000000000..38b2cc8eb --- /dev/null +++ b/public/r/styles/base-vega/swatch.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "swatch", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "files": [ + { + "path": "src/components/ui/swatch/swatch.astro", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\"> & {\n color?: string\n image?: string\n}\n\nconst { class: className, color, image, style, ...props } = Astro.props\n\nconst background = {\n \"background-color\": color,\n \"background-image\": image ? `url(${JSON.stringify(image)})` : undefined,\n}\nconst backgroundText = Object.entries(background)\n .filter(([, value]) => value)\n .map(([property, value]) => `${property}: ${value}`)\n .join(\"; \")\n---\n\n\n", + "type": "registry:ui" + }, + { + "path": "src/components/ui/swatch/index.ts", + "content": "export { default as Swatch } from \"./swatch.astro\"\n", + "type": "registry:ui" + } + ], + "docs": "https://ui.full.dev/components/swatch/", + "categories": [ + "ui" + ], + "type": "registry:ui" +} \ No newline at end of file diff --git a/react/README.md b/react/README.md index d091efb8f..b53a0fe3f 100644 --- a/react/README.md +++ b/react/README.md @@ -2,7 +2,7 @@ Fulldev extras and blocks for React projects that use [shadcn/ui](https://ui.shadcn.com) for Base UI. It extends shadcn/ui and does not replace it: the standard components, such as Button and Dialog, come from the official shadcn/ui registry and docs. -- Extras: banner, header, icon, layout, logo, marquee, price, rating, section, theme toggle, table of contents, typography and video. +- Extras: banner, carousel indicator, header, icon, layout, logo, marquee, number field, price, rating, section, swatch, theme toggle, table of contents, typography and video. - Blocks: every Fulldev UI block, as `.tsx` files. Docs: [ui.full.dev/react](https://ui.full.dev/react/). diff --git a/react/gallery/ui/carousel-indicator.tsx b/react/gallery/ui/carousel-indicator.tsx new file mode 100644 index 000000000..5aa6dfdb9 --- /dev/null +++ b/react/gallery/ui/carousel-indicator.tsx @@ -0,0 +1,36 @@ +import { + Carousel, + CarouselContent, + CarouselItem, +} from "@/components/ui/carousel" +import { CarouselIndicator } from "@/components/ui/carousel-indicator" + +export default function Demo() { + return ( +
    + + + {[1, 2, 3].map((number) => ( + +
    + {number} +
    +
    + ))} +
    +
    + {[1, 2, 3].map((number, index) => ( + + {number} + + ))} +
    +
    +
    + ) +} diff --git a/react/gallery/ui/number-field.tsx b/react/gallery/ui/number-field.tsx new file mode 100644 index 000000000..9a9840337 --- /dev/null +++ b/react/gallery/ui/number-field.tsx @@ -0,0 +1,22 @@ +import { Label } from "@/components/ui/label" +import { + NumberField, + NumberFieldDecrement, + NumberFieldIncrement, + NumberFieldInput, +} from "@/components/ui/number-field" + +export default function Demo() { + return ( +
    +
    + + + + + + +
    +
    + ) +} diff --git a/react/gallery/ui/swatch.tsx b/react/gallery/ui/swatch.tsx new file mode 100644 index 000000000..58c8c8ab2 --- /dev/null +++ b/react/gallery/ui/swatch.tsx @@ -0,0 +1,23 @@ +import { Swatch } from "@/components/ui/swatch" +import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group" + +export default function Demo() { + return ( +
    + + + + Navy + + + + Sand + + + + White + + +
    + ) +} diff --git a/react/registry.json b/react/registry.json index 4a0c2192e..eb043bfdc 100644 --- a/react/registry.json +++ b/react/registry.json @@ -3,6 +3,53 @@ "name": "fulldev-react", "homepage": "https://ui.full.dev/react/", "items": [ + { + "name": "carousel-indicator", + "type": "registry:ui", + "title": "Carousel Indicator", + "description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.", + "categories": ["ui"], + "docs": "https://ui.full.dev/react/components/carousel-indicator/", + "dependencies": ["cn"], + "registryDependencies": ["carousel"], + "files": [ + { + "path": "src/components/ui/carousel-indicator.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "number-field", + "type": "registry:ui", + "title": "Number Field", + "description": "A number input with decrement and increment buttons.", + "categories": ["ui"], + "docs": "https://ui.full.dev/react/components/number-field/", + "dependencies": ["@base-ui/react", "cn", "lucide-react"], + "registryDependencies": ["input-group"], + "files": [ + { + "path": "src/components/ui/number-field.tsx", + "type": "registry:ui" + } + ] + }, + { + "name": "swatch", + "type": "registry:ui", + "title": "Swatch", + "description": "A color or pattern beside an option or filter value.", + "categories": ["ui"], + "docs": "https://ui.full.dev/react/components/swatch/", + "dependencies": ["cn"], + "files": [ + { + "path": "src/components/ui/swatch.tsx", + "type": "registry:ui" + } + ] + }, { "name": "components", "type": "registry:item", @@ -11,14 +58,17 @@ "docs": "https://ui.full.dev/react/components/", "registryDependencies": [ "@fulldev/banner", + "@fulldev/carousel-indicator", "@fulldev/header", "@fulldev/icon", "@fulldev/layout", "@fulldev/logo", "@fulldev/marquee", + "@fulldev/number-field", "@fulldev/price", "@fulldev/rating", "@fulldev/section", + "@fulldev/swatch", "@fulldev/theme-toggle", "@fulldev/toc", "@fulldev/typography", diff --git a/react/src/components/ui/carousel-indicator.tsx b/react/src/components/ui/carousel-indicator.tsx new file mode 100644 index 000000000..8d9071b14 --- /dev/null +++ b/react/src/components/ui/carousel-indicator.tsx @@ -0,0 +1,55 @@ +"use client" + +import * as React from "react" +import { cn } from "cn" + +import { useCarousel } from "@/components/ui/carousel" + +function CarouselIndicator({ + className, + index, + onClick, + "aria-label": ariaLabel = `Go to slide ${index + 1}`, + ...props +}: React.ComponentProps<"button"> & { + index: number +}) { + const { api } = useCarousel() + const [selected, setSelected] = React.useState(0) + + React.useEffect(() => { + if (!api) return + const update = () => setSelected(api.selectedScrollSnap()) + update() + api.on("select", update) + api.on("reInit", update) + return () => { + api.off("select", update) + api.off("reInit", update) + } + }, [api]) + + const active = selected === index + + return ( + + + +
    + +
    + +
    +
    + + +
    +
    1 + 2 +
    ` + document.body.append(container) + const input = container.querySelector("input") + window.quantityEvents = [] + for (const type of ["input", "change"]) + input.addEventListener(type, () => + window.quantityEvents.push(`${type} ${input.value}`) + ) + }) + const root = page.locator("#storefront-regression") + await root.locator('[data-slot="number-field"][data-enhanced]').waitFor() + const increase = root.getByRole("button", { name: "Increase" }) + for (let click = 0; click < 3; click++) await increase.click() + await root.getByRole("button", { name: "Decrease" }).click() + assert.equal( + await root.getByRole("spinbutton", { name: "Quantity" }).inputValue(), + "2" + ) + // The third click is past max, so it changes nothing and fires nothing. + assert.deepEqual(await page.evaluate(() => window.quantityEvents), [ + "input 2", + "change 2", + "input 3", + "change 3", + "input 2", + "change 2", + ]) + + await root.locator('[data-slot="carousel"][data-enhanced]').waitFor() + const current = () => + root + .locator('[data-slot="carousel-indicator"][aria-current="true"]') + .getAttribute("aria-label") + assert.equal(await current(), "Show image 1") + await root.getByRole("link", { name: "Show image 2" }).click() + await page.waitForFunction( + () => + document + .querySelector( + '#storefront-regression [data-slot="carousel-indicator"][data-index="1"]' + ) + ?.getAttribute("aria-current") === "true" + ) + assert.equal(await current(), "Show image 2") + // A plain click scrolls the carousel instead of following the link. + assert.equal(new URL(page.url()).hash, "") + } finally { + await browser.close() + } + }) +} diff --git a/tests/browser/react-previews.test.mjs b/tests/browser/react-previews.test.mjs index 98b0daa77..f70b2911d 100644 --- a/tests/browser/react-previews.test.mjs +++ b/tests/browser/react-previews.test.mjs @@ -229,3 +229,39 @@ test("a header's mobile menu fits its preview frame", async () => { } await page.close() }) + +test("the React number field and carousel indicator work in their previews", async () => { + const page = await browser.newPage() + try { + const frameWith = async (selector) => { + await page.waitForFunction( + (selector) => + Array.from( + { length: frames.length }, + (_, index) => frames[index] + ).some((frame) => frame.document.querySelector(selector)), + selector + ) + for (const frame of page.frames()) + if (await frame.locator(selector).count()) return frame + } + await page.goto(`${origin}/react/components/number-field/`) + const field = await frameWith("[data-slot=number-field]") + await field.getByRole("button", { name: "Increase quantity" }).click() + assert.equal( + await field.getByRole("textbox", { name: "Quantity" }).inputValue(), + "2" + ) + await page.goto(`${origin}/react/components/carousel-indicator/`) + const gallery = await frameWith("[data-slot=carousel-indicator]") + await gallery.getByRole("button", { name: "Show image 3" }).click() + await gallery.waitForFunction( + () => + document + .querySelector('[data-slot=carousel-indicator][data-index="2"]') + ?.getAttribute("aria-current") === "true" + ) + } finally { + await page.close() + } +}) diff --git a/tests/registry.test.mjs b/tests/registry.test.mjs index fd3ba3dd7..b6947eae7 100644 --- a/tests/registry.test.mjs +++ b/tests/registry.test.mjs @@ -75,19 +75,23 @@ test("menu surfaces carry the shadcn/ui menu hooks", () => { }) // The shadcn CLI's own menu transform, on one className string. It takes a -// ts-morph source file; this one holds a single className attribute. +// source file with its text; this one holds a single className attribute. async function shadcnMenu(classes, menuColor) { - let text = `"${classes}"` - const attribute = { - getNameNode: () => ({ getText: () => "className" }), - getInitializer: () => ({ getText: () => text }), - setInitializer: (value) => (text = value), - } + let text = `export const a =
    \n` await transformMenu({ - sourceFile: { getDescendantsOfKind: () => [attribute] }, + sourceFile: { + getFullText: () => text, + applyTextChanges: (changes) => { + for (const { span, newText } of changes) + text = + text.slice(0, span.start) + + newText + + text.slice(span.start + span.length) + }, + }, config: { menuColor }, }) - return text.slice(1, -1) + return text.match(/className="([^"]*)"/)[1] } test("menu colors give the classes the shadcn CLI installs", async () => { From 420bd06a7587307ef6d875d831811c1db50add04 Mon Sep 17 00:00:00 2001 From: Sil Date: Thu, 26 Nov 2026 17:37:20 +0100 Subject: [PATCH 04/32] Count the two new Liquid components in the catalog test Co-Authored-By: Claude Opus 5.5 --- tests/browser/liquid-docs.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/browser/liquid-docs.test.mjs b/tests/browser/liquid-docs.test.mjs index 190ea7e05..49541c812 100644 --- a/tests/browser/liquid-docs.test.mjs +++ b/tests/browser/liquid-docs.test.mjs @@ -155,7 +155,7 @@ for (const [name, engine] of Object.entries({ chromium, firefox, webkit })) { await page .locator("main section a[href^='/liquid/components/']") .count(), - 58 + 60 ) await page.getByRole("button", { name: "Open menu", exact: true }).click() await page From 11add1b9c08c0a2d96c3983b2a0f498245441e05 Mon Sep 17 00:00:00 2001 From: Sil Date: Thu, 26 Nov 2026 17:40:49 +0100 Subject: [PATCH 05/32] Keep input group slots in the number field, delegate Liquid clicks and infer addon sides Co-Authored-By: Claude Opus 5.5 --- .changeset/storefront-parts.md | 2 +- liquid/assets/ui-controls.js | 46 ++++++++++--------- liquid/assets/ui-manifest.json | 6 +-- liquid/contracts.json | 8 ++-- liquid/examples/number-field.liquid | 2 +- liquid/snippets/ui-input-group.liquid | 30 ++++++------ liquid/snippets/ui-number-field.liquid | 13 ++++-- public/r/liquid/components.json | 2 +- public/r/liquid/input-group.json | 2 +- public/r/liquid/number-field.json | 2 +- public/r/liquid/runtime.json | 2 +- .../react/styles/base-luma/number-field.json | 2 +- .../react/styles/base-lyra/number-field.json | 2 +- .../react/styles/base-maia/number-field.json | 2 +- .../react/styles/base-mira/number-field.json | 2 +- .../react/styles/base-nova/number-field.json | 2 +- .../react/styles/base-rhea/number-field.json | 2 +- .../react/styles/base-sera/number-field.json | 2 +- .../react/styles/base-vega/number-field.json | 2 +- public/r/styles/base-luma/carousel.json | 2 +- public/r/styles/base-luma/number-field.json | 4 +- public/r/styles/base-lyra/carousel.json | 2 +- public/r/styles/base-lyra/number-field.json | 4 +- public/r/styles/base-maia/carousel.json | 2 +- public/r/styles/base-maia/number-field.json | 4 +- public/r/styles/base-mira/carousel.json | 2 +- public/r/styles/base-mira/number-field.json | 4 +- public/r/styles/base-nova/carousel.json | 2 +- public/r/styles/base-nova/number-field.json | 4 +- public/r/styles/base-rhea/carousel.json | 2 +- public/r/styles/base-rhea/number-field.json | 4 +- public/r/styles/base-sera/carousel.json | 2 +- public/r/styles/base-sera/number-field.json | 4 +- public/r/styles/base-vega/carousel.json | 2 +- public/r/styles/base-vega/number-field.json | 4 +- react/src/components/ui/number-field.tsx | 12 +++-- src/components/ui/carousel/carousel.astro | 5 +- .../ui/number-field/number-field-input.astro | 1 - .../ui/number-field/number-field.astro | 11 +---- .../pages/liquid/components/number-field.mdx | 2 +- tests/browser/liquid-regressions.test.mjs | 20 +++++++- 41 files changed, 128 insertions(+), 102 deletions(-) diff --git a/.changeset/storefront-parts.md b/.changeset/storefront-parts.md index edd55672a..c91a0343d 100644 --- a/.changeset/storefront-parts.md +++ b/.changeset/storefront-parts.md @@ -2,4 +2,4 @@ "fulldev-ui": minor --- -Add three storefront parts in Astro, React and native Liquid: `NumberField`, a number input with decrement and increment buttons for quantities; `Swatch`, a color or image beside an option or filter value; and `CarouselIndicator`, a thumbnail that shows its slide, for a product gallery. In Astro and Liquid the number field is a native `` in an input group, as data-slot leaves number fields to the browser, and its buttons fire `input` and `change`; in React it is Base UI's NumberField. An indicator can link to its slide's id, so it also works without JavaScript. In React, `CarouselIndicator` goes inside the official shadcn/ui carousel. Astro `InputGroup` takes a `data-slot`. In Liquid, a native select keeps its text clear of the arrow, and an input group addon sits at the start unless it has `data-align='inline-end'`, as in Astro, so a start icon no longer touches the border. Data-slot packages move to 1.1.3. +Add three storefront parts in Astro, React and native Liquid: `NumberField`, a number input with decrement and increment buttons for quantities; `Swatch`, a color or image beside an option or filter value; and `CarouselIndicator`, a thumbnail that shows its slide, for a product gallery. In Astro and Liquid the number field is a native `` in an input group, as data-slot leaves number fields to the browser, and its buttons fire `input` and `change`; in React it is Base UI's NumberField. An indicator can link to its slide's id, so it also works without JavaScript. In React, `CarouselIndicator` goes inside the official shadcn/ui carousel. Astro `InputGroup` takes a `data-slot`. In Liquid, a native select keeps its text clear of the arrow, and an input group addon before the input gets its padding at the start, so a start icon no longer touches the border; `data-align='inline-start'` or `'inline-end'` names the side, as in Astro. Data-slot packages move to 1.1.3. diff --git a/liquid/assets/ui-controls.js b/liquid/assets/ui-controls.js index c8141ff72..efd40935d 100644 --- a/liquid/assets/ui-controls.js +++ b/liquid/assets/ui-controls.js @@ -165,30 +165,34 @@ function initializeToaster({ createToast }, root) { } // A number field's buttons step its native input, as its arrow keys do, and fire the input and change -// events that typing fires, so a form or cart script sees one kind of change. Without JavaScript the +// events that typing fires, so a form or cart script sees one kind of change. Clicks are read on the +// root, so buttons and an input that a cart refresh replaces keep working. Without JavaScript the // input still works on its own. function initializeNumberField(_, root) { - const input = root.querySelector('[data-slot="number-field-input"]'); const events = new AbortController(); - const step = (direction) => { - if (!input || input.disabled || input.readOnly) return; - const value = input.value; - try { - if (direction < 0) input.stepDown(); - else input.stepUp(); - } catch { - return; - } - if (input.value === value) return; - input.dispatchEvent(new Event('input', { bubbles: true })); - input.dispatchEvent(new Event('change', { bubbles: true })); - }; - for (const [slot, direction] of [ - ['number-field-decrement', -1], - ['number-field-increment', 1], - ]) - for (const button of root.querySelectorAll(`[data-slot="${slot}"]`)) - button.addEventListener('click', () => step(direction), { signal: events.signal }); + root.addEventListener( + 'click', + (event) => { + const button = + event.target instanceof Element + ? event.target.closest('[data-slot="number-field-decrement"], [data-slot="number-field-increment"]') + : null; + const input = root.querySelector('input'); + if (!button || button.closest('[data-slot="number-field"]') !== root || button.disabled) return; + if (!input || input.disabled || input.readOnly) return; + const value = input.value; + try { + if (button.dataset.slot === 'number-field-decrement') input.stepDown(); + else input.stepUp(); + } catch { + return; + } + if (input.value === value) return; + input.dispatchEvent(new Event('input', { bubbles: true })); + input.dispatchEvent(new Event('change', { bubbles: true })); + }, + { signal: events.signal }, + ); return { destroy: () => events.abort() }; } diff --git a/liquid/assets/ui-manifest.json b/liquid/assets/ui-manifest.json index 8aedddb89..a4aee5dc9 100644 --- a/liquid/assets/ui-manifest.json +++ b/liquid/assets/ui-manifest.json @@ -6,7 +6,7 @@ "snippets/ui-init.liquid": "98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af", "assets/ui-licenses.json": "874a6f264f1503b2e577aee651e7285fd6ac808f56cadf8c7d58914bf2396f49", "assets/ui-carousel.js": "eab87bbe966ee48b1a0b57c617b5d00b7426af03339bd17c4614c50b3c0a9394", - "assets/ui-controls.js": "04389fd2b166031d999245af7397137d7f119bd35f48029b18ecfb33c0fbc48b", + "assets/ui-controls.js": "430d957133782d3e35bda7ac6237f85489cf8a747b782e7a61ec590d898e1552", "assets/ui-lifecycle.js": "78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6", "assets/ui-start.js": "738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500", "assets/data-slot-core.js": "d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6", @@ -70,7 +70,7 @@ "assets/ui-accordion.css": "430924440bd0f1d49ceb72baffc77404c9411c31c24b940d75861daba2649e83", "snippets/ui-slider.liquid": "f2de1fb9099de77bf291455447bc86b2578781e7cf0efdf12117fb4575e0b0e6", "snippets/ui-input.liquid": "5f4b2adf298e84ef5845fb123b0753dd76294731da657fe395313ad7fe3f01a9", - "snippets/ui-input-group.liquid": "cdcef16153019f7e24bedcccb05e0cf540b002eb1bffb98d409c7aae5eb4d010", + "snippets/ui-input-group.liquid": "162ec34e82f924a5e3791d93603ba39f4ae94792ea26f20344e074a26393ea98", "snippets/ui-triggers.liquid": "ba9c7b802fb0a2aba0e9cc145a9dd44134964afb53e5363cf9e0ae138b906cc9", "snippets/ui-toggle-group.liquid": "2d61e0b9bc746e05834157f5a75d23123f02bc2df737412e4f6099844afc4f49", "snippets/ui-dialog.liquid": "779bbcd609a69ed29a984df1f26f9ed80fd24d71c4ee3ead5f4daa055b28e9fb", @@ -105,7 +105,7 @@ "snippets/ui-dropdown-menu.liquid": "25b31e09e3e7bfee9a397ca4de6e310754844c55e71639eadba917b0f4e6d2e5", "snippets/ui-popover.liquid": "44ff93d72eaad409f56f8a84ce25715e2c3633f2ac49ba7a414767c6dbe2ee47", "snippets/ui-hover-card.liquid": "ba4133d352fa14296743138c99f3694015bafe953751b8e42155f047c4beb9f0", - "snippets/ui-number-field.liquid": "1ff75778c8bc4889564726baf7471f3d1dfe21eedb352d37283002791c71c9c1", + "snippets/ui-number-field.liquid": "1af5071b4905534767d78ccacf71cb1ebdf91fc527a108869b872b1de84cd1b4", "snippets/ui-swatch.liquid": "9a39fc70974416ba933e90d799e6a805ba1f490c7b48d9a7e25d50caae596e7d", "snippets/ui.liquid": "569e78bf6f84cdc7b1f7b5ba2681e1e52c6f5d02c4fe4ade16e580bffb963ae0" } diff --git a/liquid/contracts.json b/liquid/contracts.json index 3b93d9207..1c2ecf10e 100644 --- a/liquid/contracts.json +++ b/liquid/contracts.json @@ -3,7 +3,6 @@ "${name}", "${n}", "${r}", - "${slot}", "${t}", "accordion", "accordion-content", @@ -44,7 +43,9 @@ "navigation-menu-indicator", "navigation-menu-item", "navigation-menu-trigger", - "number-field-input", + "number-field", + "number-field-decrement", + "number-field-increment", "radio-group-indicator", "select-group", "select-item", @@ -431,7 +432,8 @@ ], "number-field": [ "number-field", - "number-field-input" + "number-field-decrement", + "number-field-increment" ], "swatch": [ "swatch" diff --git a/liquid/examples/number-field.liquid b/liquid/examples/number-field.liquid index baa9a7bda..92db34cab 100644 --- a/liquid/examples/number-field.liquid +++ b/liquid/examples/number-field.liquid @@ -27,7 +27,7 @@
    input:focus-visible { box-shadow: none; } - /* An addon sits at the start, or at the end with data-align='inline-end', as in Fulldev UI. A - button in it moves a little closer to the edge, and the input gives up some of its padding on - the addon's side. */ + /* An addon before the input sits at the start and one after it at the end; data-align='inline-start' + or 'inline-end' names the side, as in Fulldev UI. A button in it moves a little closer to the + edge, and the input gives up some of its padding on the addon's side. */ [data-slot='input-group-addon'] { display: flex; align-items: center; gap: calc(var(--spacing) * 2); - padding-left: calc(var(--spacing) * 2); color: var(--muted-foreground); font-size: 0.875rem; font-weight: 500; } - [data-slot='input-group-addon'][data-align='inline-end'] { + [data-slot='input-group-addon']:is([data-align='inline-start'], :not([data-align]):has(~ input)) { + padding-left: calc(var(--spacing) * 2); + } + [data-slot='input-group-addon']:is([data-align='inline-end'], input ~ :not([data-align])) { padding-right: calc(var(--spacing) * 2); - padding-left: 0; } - [data-slot='input-group-addon']:not([data-align='inline-end']):has(> button) { + [data-slot='input-group-addon']:is([data-align='inline-start'], :not([data-align]):has(~ input)):has(> button) { margin-left: calc(var(--spacing) * -1); } - [data-slot='input-group-addon'][data-align='inline-end']:has(> button) { + [data-slot='input-group-addon']:is([data-align='inline-end'], input ~ :not([data-align])):has(> button) { margin-right: calc(var(--spacing) * -1); } - :is([data-slot='input-group'], [data-slot='number-field']):has( - > [data-slot='input-group-addon']:not([data-align='inline-end']) - ) - > input { + :is([data-slot='input-group'], [data-slot='number-field']) + > [data-slot='input-group-addon']:not([data-align='inline-end']) + ~ input { padding-left: calc(var(--spacing) * 1.5); } - :is([data-slot='input-group'], [data-slot='number-field']):has( - > [data-slot='input-group-addon'][data-align='inline-end'] - ) - > input { + :is([data-slot='input-group'], [data-slot='number-field']) + > input:has(~ [data-slot='input-group-addon']:not([data-align='inline-start'])) { padding-right: calc(var(--spacing) * 1.5); } [data-slot='input-group-addon'] > .icon { diff --git a/liquid/snippets/ui-number-field.liquid b/liquid/snippets/ui-number-field.liquid index ea9f72a62..e20eba149 100644 --- a/liquid/snippets/ui-number-field.liquid +++ b/liquid/snippets/ui-number-field.liquid @@ -4,18 +4,23 @@ {% stylesheet %} /* A native number input with decrement and increment buttons in input group addons, such as a - quantity. The input works on its own; the runtime connects the buttons. */ + quantity. The input works on its own. The runtime connects the buttons, so they stay invisible, + and out of the tab order, until it has started. */ [data-slot='number-field'] { width: calc(var(--spacing) * 32); } - [data-slot='number-field'] > [data-slot='number-field-input'] { + [data-slot='number-field'] > input { text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; } - [data-slot='number-field-input']::-webkit-inner-spin-button, - [data-slot='number-field-input']::-webkit-outer-spin-button { + [data-slot='number-field'] > input::-webkit-inner-spin-button, + [data-slot='number-field'] > input::-webkit-outer-spin-button { margin: 0; appearance: none; } + [data-slot='number-field']:not([data-enhanced]) + :is([data-slot='number-field-decrement'], [data-slot='number-field-increment']) { + visibility: hidden; + } {% endstylesheet %} diff --git a/public/r/liquid/components.json b/public/r/liquid/components.json index e122c324e..dbfaa7726 100644 --- a/public/r/liquid/components.json +++ b/public/r/liquid/components.json @@ -76,7 +76,7 @@ }, { "path": "assets/ui-manifest.json", - "content": "{\n \"registry\": \"https://ui.full.dev/r/liquid/\",\n \"files\": {\n \"assets/ui-tokens.css\": \"55a8f2810ab4a1498ca3dd2f6e7dc89009c60e2402ddfcb95783b6eba996c374\",\n \"snippets/ui-base.liquid\": \"bc55195b5b6c82e63deeeed1255fd19b434c47866815f82b95b9202421256d34\",\n \"snippets/ui-init.liquid\": \"98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af\",\n \"assets/ui-licenses.json\": \"874a6f264f1503b2e577aee651e7285fd6ac808f56cadf8c7d58914bf2396f49\",\n \"assets/ui-carousel.js\": \"eab87bbe966ee48b1a0b57c617b5d00b7426af03339bd17c4614c50b3c0a9394\",\n \"assets/ui-controls.js\": \"04389fd2b166031d999245af7397137d7f119bd35f48029b18ecfb33c0fbc48b\",\n \"assets/ui-lifecycle.js\": \"78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6\",\n \"assets/ui-start.js\": \"738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500\",\n \"assets/data-slot-core.js\": \"d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6\",\n \"assets/data-slot-dialog.js\": \"a5201f452700d04145b5156cc46880d2b5bdf7521b03ff9521c3f7693ee1b5d5\",\n \"assets/data-slot-command.js\": \"299d99c1a5f7b646692575e5d48e3f7b9209d76119508116c1a216dc80d33d13\",\n \"assets/data-slot-navigation-menu.js\": \"f9b42a9bceca8e1103718d43aa5f0d141ab63d38278cb121e790a2c80e827b68\",\n \"assets/data-slot-accordion.js\": \"fe6b0ac2c87a2e31582e5e88c509e0b508f41d0065d0a420407999ad210e6a27\",\n \"assets/data-slot-tabs.js\": \"1f187134bba755cfda9d35cf9f16174c1a183862d32d100f270f4177033058c7\",\n \"assets/data-slot-combobox.js\": \"b5f2ed9d65a43d836c59c0d4dc33c16ab12ef9fa05d510078b5d62517d854db6\",\n \"assets/data-slot-carousel.js\": \"d83ef938d3b62dc3652b123428ca2261e03fb2ba1133992b0f5545a974238d03\",\n \"assets/data-slot-alert-dialog.js\": \"1caee9a86bb2a816ea32bc1a48b82f3cc588ec3c563ebc443f836ab1dae2f618\",\n \"assets/data-slot-collapsible.js\": \"c42f76e3dfeff4570eb2f5104434fbffd3ef55710833e888965c590ce59f4f9f\",\n \"assets/data-slot-drawer.js\": \"c9343b26ea27193cc1d2da3e41bf452005bc2e534151fa1a762b2b6535de28d0\",\n \"assets/data-slot-dropdown-menu.js\": \"543c5717c9ba8363bbab4c0a11005980d75d4baaed79cf7123c7bcfe3ec8720b\",\n \"assets/data-slot-hover-card.js\": \"86e1bfa5d4822f180f3501ca7cc51bf044d4e917a7ebdb7a10b70006dba6467f\",\n \"assets/data-slot-popover.js\": \"526e30d663381329a7a6394eae886224024034d0abf96f888c932bb4b8c1b1cb\",\n \"assets/data-slot-radio-group.js\": \"7a9b90166de80d79ee42aa2df73e4d8179e9d291cb30b3095c7d8332375b0499\",\n \"assets/data-slot-select.js\": \"13d1a3fbe90f4b3b830d987b6a28267897faa3589bf00e64edca4938acbf406b\",\n \"assets/data-slot-slider.js\": \"0d10131aa95450aa1269234103ead8d805d6abdf9e0683510f4fcf58ab0f1efa\",\n \"assets/data-slot-switch.js\": \"0d5b09a89429880f61aeb540be5f87383ba5c6beb261ad468e9a6cf18e45b6a0\",\n \"assets/data-slot-toast.js\": \"817744d32eebe3bfc50df068715e0b572350ca53fe5ad0e04ec8646800e1caf0\",\n \"assets/data-slot-toggle.js\": \"7a651d578cb83be842c8e59fe1a2cd124594b1fd6c942faf0a33cf9e57326947\",\n \"assets/data-slot-toggle-group.js\": \"c1f2fc9712974e63e4e44c97ab2a1ec8bc3c3cb73c1afb4578b085fed11977f1\",\n \"assets/data-slot-tooltip.js\": \"5a9e51a54669153620eb3512e74487eac12ababe3331aff7dfed6c717b8b93c0\",\n \"snippets/ui-runtime.liquid\": \"62ae98f4ad16dc0ca406d96bbabb373cd30a63dd385e3614da0dcd2e63d0f17c\",\n \"assets/ui-motion.js\": \"2252a6794ddb162b73ee1640af212292b8c520e98ae09ea862b479078f81d3d1\",\n \"snippets/ui-banner.liquid\": \"9965b12e9a2036aca6e35f1327da8a240c894a6fd91d99f37e77107818d271a3\",\n \"snippets/ui-tabs.liquid\": \"5b57bb3d6400e44ef9343f7b45d9baf2d8581d678ccc64764be60164160687eb\",\n \"snippets/ui-form.liquid\": \"1c002d21c441e217a8f3d64268d429c97e4785af118eb7f7abb5ff1c3d10a3b6\",\n \"assets/ui-form.css\": \"ab0dd70553818fe0799e393f6811e949884eca9f44d9ceff4c2b333c0bf724b4\",\n \"snippets/ui-select.liquid\": \"2d8c99759161a024285d1b54c0ca166dc7b13c97596497351253e945b5e52ee2\",\n \"snippets/ui-field.liquid\": \"cf73aaaf3e27bc9d121dd089317610fbd08b9550a1d5fb0738337c6817879309\",\n \"assets/ui-field.css\": \"96f846a52ab0b832a9eca70ef430e5fd14664a3367d04842de320a82e622722b\",\n \"snippets/ui-item.liquid\": \"fe03c1a3e6df09192c3ac7a08520b0fc1c629a597a029d193ff91655cb7ceac0\",\n \"snippets/ui-spinner.liquid\": \"84d48693f10cb8af4549cc0d71cd847a85da0e111f2ad64dae309c128c2a8c4a\",\n \"snippets/ui-video.liquid\": \"14acea7c523198269a9165270decac21a43a5d69bf12bd248a76aceb2e9b26ed\",\n \"assets/ui-video.css\": \"c1572853f48474f6291a70ccdb1085512700fc3dcbbdaebd71374b838ec67fee\",\n \"snippets/ui-button.liquid\": \"d0b4ad1b574f10f986a7d5b2719a16c4ba29b80887962b9a8b6464afef6fe54c\",\n \"snippets/ui-toggle.liquid\": \"c86100cf7c163c0d5bc81976fd794788f68fab2ebc5c0887d8042958ce020912\",\n \"snippets/ui-logo.liquid\": \"5d6de7be3f7aab9e05c9533afef39ea0e9dce1b4ee12a13bf7b82780c973b126\",\n \"snippets/ui-kbd.liquid\": \"024f34ed2932d183671f7fa44ff724a70ec17b766cf7e0d3f565f46f33ab2cf2\",\n \"snippets/ui-rating.liquid\": \"aa57adc5a5508b368da78023b242694e6ce924b6e9e5407c141a5030a414bf1d\",\n \"assets/ui-rating.css\": \"e5efea2a9edaea78522f20ebd9e9d01abe8a2fcd310c193239adf80ec33b4975\",\n \"snippets/ui-tooltip.liquid\": \"d2863a0da3090c73dda10d8615b84fc50fab64373a466fbf4e4e743cfb083c96\",\n \"snippets/ui-avatar.liquid\": \"9bfb5d5f535857cc45f31afbc91c855e94972bab07ad3b4fe2dc0d241106385d\",\n \"snippets/ui-empty.liquid\": \"0e7fb5b68d50abcf7213304034762b4dd535c791dd6f4dc517100145e04b0cde\",\n \"snippets/ui-alert-dialog.liquid\": \"f739374035ffa0f3bca2c4b6d946710751c8268c8f1dde535251be9c2c7b0cd0\",\n \"snippets/ui-navigation-menu.liquid\": \"52aecbb36b0031810a85a99f5d4439e852dc1ba3a872b9525dd75c8df8b5a84e\",\n \"assets/ui-navigation-menu.css\": \"29a47ce0eb549e58cc8195dcb656bd2cef56360178c76acfc2d481a110463ca6\",\n \"snippets/ui-typography.liquid\": \"b03dc93c4de6636164a206c95979caa6fe9ab7cf8d1c24d75611416259da7979\",\n \"assets/ui-typography.css\": \"0daa86d256566ab8065411682cb8c90aa3b3eab6e62fbd8165dac1147e4edde9\",\n \"snippets/ui-toc.liquid\": \"04038e0870112b2335b80b4092814915105b31d08cdd36ecf1f4de1761f66acf\",\n \"snippets/ui-icon.liquid\": \"ca75a9485eb33cdb31a3a4e2e5ca03ce74d4995dbd1696d964832a87602bf3ca\",\n \"assets/ui-icon.css\": \"cfb1a47905cbd9c25b635c96926a77f8eed983a4aca62fdce758345dcc792add\",\n \"snippets/ui-combobox.liquid\": \"bacd605b44237512a74d34119d01432440b76ae60218dae6a6f37f98b32e3e00\",\n \"snippets/ui-toast.liquid\": \"bb032d90d6084fb15e12da22777635b80d09a06402513c46c89e853e3ede0405\",\n \"assets/ui-toast.css\": \"c322fab210a202fa434695025550495dbdc93e688ed7ae39303fea9830864d0b\",\n \"snippets/ui-header.liquid\": \"cc14effb4e3b6c4ac397e306e4ebd270a31b3415cc12ffbeb6cd38f411eaba80\",\n \"snippets/ui-command.liquid\": \"4a37f59dc0039fa1505de764472212d6cd7c4e5c52b737a1700e928db286f233\",\n \"snippets/ui-accordion.liquid\": \"4b58c83ae13e14e03a3129a2dccbd02eeafa90c1e48edbbf9af2dc412bf3aabf\",\n \"assets/ui-accordion.css\": \"430924440bd0f1d49ceb72baffc77404c9411c31c24b940d75861daba2649e83\",\n \"snippets/ui-slider.liquid\": \"f2de1fb9099de77bf291455447bc86b2578781e7cf0efdf12117fb4575e0b0e6\",\n \"snippets/ui-input.liquid\": \"5f4b2adf298e84ef5845fb123b0753dd76294731da657fe395313ad7fe3f01a9\",\n \"snippets/ui-input-group.liquid\": \"cdcef16153019f7e24bedcccb05e0cf540b002eb1bffb98d409c7aae5eb4d010\",\n \"snippets/ui-triggers.liquid\": \"ba9c7b802fb0a2aba0e9cc145a9dd44134964afb53e5363cf9e0ae138b906cc9\",\n \"snippets/ui-toggle-group.liquid\": \"2d61e0b9bc746e05834157f5a75d23123f02bc2df737412e4f6099844afc4f49\",\n \"snippets/ui-dialog.liquid\": \"779bbcd609a69ed29a984df1f26f9ed80fd24d71c4ee3ead5f4daa055b28e9fb\",\n \"snippets/ui-drawer.liquid\": \"16120fdd70fac393470c3936223e78ad5f81164e2b7616fd075e8e82098a17d5\",\n \"snippets/ui-badge.liquid\": \"14b826127eaedd2f5acac0ca74fbe403ef18b08ca6651995c0bf0501210d55f6\",\n \"snippets/ui-alert.liquid\": \"392bf006b427178d4699272115317e0db934d881be9534b4638c492fa1825a83\",\n \"snippets/ui-table.liquid\": \"6599d8b3bd193761571c2b71e499f78546ba5c2768d4e0a0a60cd0e348632e5b\",\n \"snippets/ui-breadcrumb.liquid\": \"dafdeaf03286b386c90f8e72777de1946fba4718ee568bd85ca7bc768483a3ca\",\n \"snippets/ui-aspect-ratio.liquid\": \"c8aae05fcd76af7ae768aedafd7e758533e2b52135b00ff72940896ad793f177\",\n \"snippets/ui-price.liquid\": \"96156754aee3a04aa3ae7084a14470000213e8be14468c4937e9f3a87e348234\",\n \"assets/ui-price.css\": \"95c947e219621102b704164e48a83e381e6e2b27b99311a294e076745b39a36f\",\n \"snippets/ui-radio-group.liquid\": \"af9978e18716cc86d03ed21dece8304992e74a4fab88e12069b0648cfd944492\",\n \"snippets/ui-checkbox.liquid\": \"0e4dd1738b355c5a93533e0b813e2e6c72f7491c289d65aa7b6435be1c599006\",\n \"snippets/ui-switch.liquid\": \"84ed60c777e77daec8b5fe6f2ee434877d51224235dc1bc2e17927cd182fe646\",\n \"snippets/ui-skeleton.liquid\": \"1e30245f6577f73d28f4badbc293934656882a29d5dec1d2f74ef95f3bcede2c\",\n \"snippets/ui-separator.liquid\": \"90b1d2795666b6c51f35645ca8d07659f2c4868fe9553e233cddb4e962095f6e\",\n \"snippets/ui-card.liquid\": \"581a46843f1280ebace0423ee84289b40fbd46142e6a9ab3940f63eca0e4c5f2\",\n \"assets/ui-card.css\": \"ee7e4192ec814066d0c9838f810ae4ca267b9f071b7fa945c43226d46b0f8dc9\",\n \"snippets/ui-pagination.liquid\": \"30943c00686e1a23d92865465b38c964e059b14ae3a20fb7fe151824a73773eb\",\n \"snippets/ui-popup.liquid\": \"840f938aa2a331e4e7d55c659f25e841dcfb1bf5c5cadace6263243352ff8359\",\n \"snippets/ui-sheet.liquid\": \"0de705bed685bf78fa3af4517c947b38d62a1aa56bf29356c0a201b64db17614\",\n \"snippets/ui-carousel.liquid\": \"59dc0c06b2a9f2f779ca22b3ff4b005071d4909aba052d6f8f0a1aa19e84c2ce\",\n \"assets/ui-carousel.css\": \"04274e5fa2383386e70d8e4c01fbbb0b12a4ffe3f74c92d59b992474ffa975f4\",\n \"snippets/ui-attachment.liquid\": \"6881df7cdb1b27462d8cce7c17c0b4ed4dd860d62535e1daa81378a57bb69ddf\",\n \"snippets/ui-marquee.liquid\": \"47d5df8f1ff46a2cd48a132986c2ba199c9e19b485e62fc3e0d19091d4baaab1\",\n \"assets/ui-marquee.css\": \"ef13b83f3dbcd6685fcee3dba14238386d0f34bc2266a5326c0b6f2d40a23fce\",\n \"snippets/ui-invalid-controls.liquid\": \"a169e8244cc86f5431f902f7a73b37188051ba8f2ef3e323830462dae5aed066\",\n \"snippets/ui-section.liquid\": \"da358cd87447457f3675b035b48556103d86cd11e0b2240ae2800e4c9ea54bdc\",\n \"assets/ui-section.css\": \"f4936a02aaf1927ccced898886857855e4b5e95fafe5c2a52748ecbbe87b6621\",\n \"snippets/ui-button-group.liquid\": \"a2790f8da0f8b37acc1ed558ba1548ea250a5b93e1b2dfbd11eb150f3f02783a\",\n \"snippets/ui-collapsible.liquid\": \"e6107a03d00b8cc75bb03206e64b9aa7f2989d982c0408b398b62067c6df450a\",\n \"snippets/ui-dropdown-menu.liquid\": \"25b31e09e3e7bfee9a397ca4de6e310754844c55e71639eadba917b0f4e6d2e5\",\n \"snippets/ui-popover.liquid\": \"44ff93d72eaad409f56f8a84ce25715e2c3633f2ac49ba7a414767c6dbe2ee47\",\n \"snippets/ui-hover-card.liquid\": \"ba4133d352fa14296743138c99f3694015bafe953751b8e42155f047c4beb9f0\",\n \"snippets/ui-number-field.liquid\": \"1ff75778c8bc4889564726baf7471f3d1dfe21eedb352d37283002791c71c9c1\",\n \"snippets/ui-swatch.liquid\": \"9a39fc70974416ba933e90d799e6a805ba1f490c7b48d9a7e25d50caae596e7d\",\n \"snippets/ui.liquid\": \"569e78bf6f84cdc7b1f7b5ba2681e1e52c6f5d02c4fe4ade16e580bffb963ae0\"\n }\n}\n", + "content": "{\n \"registry\": \"https://ui.full.dev/r/liquid/\",\n \"files\": {\n \"assets/ui-tokens.css\": \"55a8f2810ab4a1498ca3dd2f6e7dc89009c60e2402ddfcb95783b6eba996c374\",\n \"snippets/ui-base.liquid\": \"bc55195b5b6c82e63deeeed1255fd19b434c47866815f82b95b9202421256d34\",\n \"snippets/ui-init.liquid\": \"98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af\",\n \"assets/ui-licenses.json\": \"874a6f264f1503b2e577aee651e7285fd6ac808f56cadf8c7d58914bf2396f49\",\n \"assets/ui-carousel.js\": \"eab87bbe966ee48b1a0b57c617b5d00b7426af03339bd17c4614c50b3c0a9394\",\n \"assets/ui-controls.js\": \"430d957133782d3e35bda7ac6237f85489cf8a747b782e7a61ec590d898e1552\",\n \"assets/ui-lifecycle.js\": \"78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6\",\n \"assets/ui-start.js\": \"738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500\",\n \"assets/data-slot-core.js\": \"d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6\",\n \"assets/data-slot-dialog.js\": \"a5201f452700d04145b5156cc46880d2b5bdf7521b03ff9521c3f7693ee1b5d5\",\n \"assets/data-slot-command.js\": \"299d99c1a5f7b646692575e5d48e3f7b9209d76119508116c1a216dc80d33d13\",\n \"assets/data-slot-navigation-menu.js\": \"f9b42a9bceca8e1103718d43aa5f0d141ab63d38278cb121e790a2c80e827b68\",\n \"assets/data-slot-accordion.js\": \"fe6b0ac2c87a2e31582e5e88c509e0b508f41d0065d0a420407999ad210e6a27\",\n \"assets/data-slot-tabs.js\": \"1f187134bba755cfda9d35cf9f16174c1a183862d32d100f270f4177033058c7\",\n \"assets/data-slot-combobox.js\": \"b5f2ed9d65a43d836c59c0d4dc33c16ab12ef9fa05d510078b5d62517d854db6\",\n \"assets/data-slot-carousel.js\": \"d83ef938d3b62dc3652b123428ca2261e03fb2ba1133992b0f5545a974238d03\",\n \"assets/data-slot-alert-dialog.js\": \"1caee9a86bb2a816ea32bc1a48b82f3cc588ec3c563ebc443f836ab1dae2f618\",\n \"assets/data-slot-collapsible.js\": \"c42f76e3dfeff4570eb2f5104434fbffd3ef55710833e888965c590ce59f4f9f\",\n \"assets/data-slot-drawer.js\": \"c9343b26ea27193cc1d2da3e41bf452005bc2e534151fa1a762b2b6535de28d0\",\n \"assets/data-slot-dropdown-menu.js\": \"543c5717c9ba8363bbab4c0a11005980d75d4baaed79cf7123c7bcfe3ec8720b\",\n \"assets/data-slot-hover-card.js\": \"86e1bfa5d4822f180f3501ca7cc51bf044d4e917a7ebdb7a10b70006dba6467f\",\n \"assets/data-slot-popover.js\": \"526e30d663381329a7a6394eae886224024034d0abf96f888c932bb4b8c1b1cb\",\n \"assets/data-slot-radio-group.js\": \"7a9b90166de80d79ee42aa2df73e4d8179e9d291cb30b3095c7d8332375b0499\",\n \"assets/data-slot-select.js\": \"13d1a3fbe90f4b3b830d987b6a28267897faa3589bf00e64edca4938acbf406b\",\n \"assets/data-slot-slider.js\": \"0d10131aa95450aa1269234103ead8d805d6abdf9e0683510f4fcf58ab0f1efa\",\n \"assets/data-slot-switch.js\": \"0d5b09a89429880f61aeb540be5f87383ba5c6beb261ad468e9a6cf18e45b6a0\",\n \"assets/data-slot-toast.js\": \"817744d32eebe3bfc50df068715e0b572350ca53fe5ad0e04ec8646800e1caf0\",\n \"assets/data-slot-toggle.js\": \"7a651d578cb83be842c8e59fe1a2cd124594b1fd6c942faf0a33cf9e57326947\",\n \"assets/data-slot-toggle-group.js\": \"c1f2fc9712974e63e4e44c97ab2a1ec8bc3c3cb73c1afb4578b085fed11977f1\",\n \"assets/data-slot-tooltip.js\": \"5a9e51a54669153620eb3512e74487eac12ababe3331aff7dfed6c717b8b93c0\",\n \"snippets/ui-runtime.liquid\": \"62ae98f4ad16dc0ca406d96bbabb373cd30a63dd385e3614da0dcd2e63d0f17c\",\n \"assets/ui-motion.js\": \"2252a6794ddb162b73ee1640af212292b8c520e98ae09ea862b479078f81d3d1\",\n \"snippets/ui-banner.liquid\": \"9965b12e9a2036aca6e35f1327da8a240c894a6fd91d99f37e77107818d271a3\",\n \"snippets/ui-tabs.liquid\": \"5b57bb3d6400e44ef9343f7b45d9baf2d8581d678ccc64764be60164160687eb\",\n \"snippets/ui-form.liquid\": \"1c002d21c441e217a8f3d64268d429c97e4785af118eb7f7abb5ff1c3d10a3b6\",\n \"assets/ui-form.css\": \"ab0dd70553818fe0799e393f6811e949884eca9f44d9ceff4c2b333c0bf724b4\",\n \"snippets/ui-select.liquid\": \"2d8c99759161a024285d1b54c0ca166dc7b13c97596497351253e945b5e52ee2\",\n \"snippets/ui-field.liquid\": \"cf73aaaf3e27bc9d121dd089317610fbd08b9550a1d5fb0738337c6817879309\",\n \"assets/ui-field.css\": \"96f846a52ab0b832a9eca70ef430e5fd14664a3367d04842de320a82e622722b\",\n \"snippets/ui-item.liquid\": \"fe03c1a3e6df09192c3ac7a08520b0fc1c629a597a029d193ff91655cb7ceac0\",\n \"snippets/ui-spinner.liquid\": \"84d48693f10cb8af4549cc0d71cd847a85da0e111f2ad64dae309c128c2a8c4a\",\n \"snippets/ui-video.liquid\": \"14acea7c523198269a9165270decac21a43a5d69bf12bd248a76aceb2e9b26ed\",\n \"assets/ui-video.css\": \"c1572853f48474f6291a70ccdb1085512700fc3dcbbdaebd71374b838ec67fee\",\n \"snippets/ui-button.liquid\": \"d0b4ad1b574f10f986a7d5b2719a16c4ba29b80887962b9a8b6464afef6fe54c\",\n \"snippets/ui-toggle.liquid\": \"c86100cf7c163c0d5bc81976fd794788f68fab2ebc5c0887d8042958ce020912\",\n \"snippets/ui-logo.liquid\": \"5d6de7be3f7aab9e05c9533afef39ea0e9dce1b4ee12a13bf7b82780c973b126\",\n \"snippets/ui-kbd.liquid\": \"024f34ed2932d183671f7fa44ff724a70ec17b766cf7e0d3f565f46f33ab2cf2\",\n \"snippets/ui-rating.liquid\": \"aa57adc5a5508b368da78023b242694e6ce924b6e9e5407c141a5030a414bf1d\",\n \"assets/ui-rating.css\": \"e5efea2a9edaea78522f20ebd9e9d01abe8a2fcd310c193239adf80ec33b4975\",\n \"snippets/ui-tooltip.liquid\": \"d2863a0da3090c73dda10d8615b84fc50fab64373a466fbf4e4e743cfb083c96\",\n \"snippets/ui-avatar.liquid\": \"9bfb5d5f535857cc45f31afbc91c855e94972bab07ad3b4fe2dc0d241106385d\",\n \"snippets/ui-empty.liquid\": \"0e7fb5b68d50abcf7213304034762b4dd535c791dd6f4dc517100145e04b0cde\",\n \"snippets/ui-alert-dialog.liquid\": \"f739374035ffa0f3bca2c4b6d946710751c8268c8f1dde535251be9c2c7b0cd0\",\n \"snippets/ui-navigation-menu.liquid\": \"52aecbb36b0031810a85a99f5d4439e852dc1ba3a872b9525dd75c8df8b5a84e\",\n \"assets/ui-navigation-menu.css\": \"29a47ce0eb549e58cc8195dcb656bd2cef56360178c76acfc2d481a110463ca6\",\n \"snippets/ui-typography.liquid\": \"b03dc93c4de6636164a206c95979caa6fe9ab7cf8d1c24d75611416259da7979\",\n \"assets/ui-typography.css\": \"0daa86d256566ab8065411682cb8c90aa3b3eab6e62fbd8165dac1147e4edde9\",\n \"snippets/ui-toc.liquid\": \"04038e0870112b2335b80b4092814915105b31d08cdd36ecf1f4de1761f66acf\",\n \"snippets/ui-icon.liquid\": \"ca75a9485eb33cdb31a3a4e2e5ca03ce74d4995dbd1696d964832a87602bf3ca\",\n \"assets/ui-icon.css\": \"cfb1a47905cbd9c25b635c96926a77f8eed983a4aca62fdce758345dcc792add\",\n \"snippets/ui-combobox.liquid\": \"bacd605b44237512a74d34119d01432440b76ae60218dae6a6f37f98b32e3e00\",\n \"snippets/ui-toast.liquid\": \"bb032d90d6084fb15e12da22777635b80d09a06402513c46c89e853e3ede0405\",\n \"assets/ui-toast.css\": \"c322fab210a202fa434695025550495dbdc93e688ed7ae39303fea9830864d0b\",\n \"snippets/ui-header.liquid\": \"cc14effb4e3b6c4ac397e306e4ebd270a31b3415cc12ffbeb6cd38f411eaba80\",\n \"snippets/ui-command.liquid\": \"4a37f59dc0039fa1505de764472212d6cd7c4e5c52b737a1700e928db286f233\",\n \"snippets/ui-accordion.liquid\": \"4b58c83ae13e14e03a3129a2dccbd02eeafa90c1e48edbbf9af2dc412bf3aabf\",\n \"assets/ui-accordion.css\": \"430924440bd0f1d49ceb72baffc77404c9411c31c24b940d75861daba2649e83\",\n \"snippets/ui-slider.liquid\": \"f2de1fb9099de77bf291455447bc86b2578781e7cf0efdf12117fb4575e0b0e6\",\n \"snippets/ui-input.liquid\": \"5f4b2adf298e84ef5845fb123b0753dd76294731da657fe395313ad7fe3f01a9\",\n \"snippets/ui-input-group.liquid\": \"162ec34e82f924a5e3791d93603ba39f4ae94792ea26f20344e074a26393ea98\",\n \"snippets/ui-triggers.liquid\": \"ba9c7b802fb0a2aba0e9cc145a9dd44134964afb53e5363cf9e0ae138b906cc9\",\n \"snippets/ui-toggle-group.liquid\": \"2d61e0b9bc746e05834157f5a75d23123f02bc2df737412e4f6099844afc4f49\",\n \"snippets/ui-dialog.liquid\": \"779bbcd609a69ed29a984df1f26f9ed80fd24d71c4ee3ead5f4daa055b28e9fb\",\n \"snippets/ui-drawer.liquid\": \"16120fdd70fac393470c3936223e78ad5f81164e2b7616fd075e8e82098a17d5\",\n \"snippets/ui-badge.liquid\": \"14b826127eaedd2f5acac0ca74fbe403ef18b08ca6651995c0bf0501210d55f6\",\n \"snippets/ui-alert.liquid\": \"392bf006b427178d4699272115317e0db934d881be9534b4638c492fa1825a83\",\n \"snippets/ui-table.liquid\": \"6599d8b3bd193761571c2b71e499f78546ba5c2768d4e0a0a60cd0e348632e5b\",\n \"snippets/ui-breadcrumb.liquid\": \"dafdeaf03286b386c90f8e72777de1946fba4718ee568bd85ca7bc768483a3ca\",\n \"snippets/ui-aspect-ratio.liquid\": \"c8aae05fcd76af7ae768aedafd7e758533e2b52135b00ff72940896ad793f177\",\n \"snippets/ui-price.liquid\": \"96156754aee3a04aa3ae7084a14470000213e8be14468c4937e9f3a87e348234\",\n \"assets/ui-price.css\": \"95c947e219621102b704164e48a83e381e6e2b27b99311a294e076745b39a36f\",\n \"snippets/ui-radio-group.liquid\": \"af9978e18716cc86d03ed21dece8304992e74a4fab88e12069b0648cfd944492\",\n \"snippets/ui-checkbox.liquid\": \"0e4dd1738b355c5a93533e0b813e2e6c72f7491c289d65aa7b6435be1c599006\",\n \"snippets/ui-switch.liquid\": \"84ed60c777e77daec8b5fe6f2ee434877d51224235dc1bc2e17927cd182fe646\",\n \"snippets/ui-skeleton.liquid\": \"1e30245f6577f73d28f4badbc293934656882a29d5dec1d2f74ef95f3bcede2c\",\n \"snippets/ui-separator.liquid\": \"90b1d2795666b6c51f35645ca8d07659f2c4868fe9553e233cddb4e962095f6e\",\n \"snippets/ui-card.liquid\": \"581a46843f1280ebace0423ee84289b40fbd46142e6a9ab3940f63eca0e4c5f2\",\n \"assets/ui-card.css\": \"ee7e4192ec814066d0c9838f810ae4ca267b9f071b7fa945c43226d46b0f8dc9\",\n \"snippets/ui-pagination.liquid\": \"30943c00686e1a23d92865465b38c964e059b14ae3a20fb7fe151824a73773eb\",\n \"snippets/ui-popup.liquid\": \"840f938aa2a331e4e7d55c659f25e841dcfb1bf5c5cadace6263243352ff8359\",\n \"snippets/ui-sheet.liquid\": \"0de705bed685bf78fa3af4517c947b38d62a1aa56bf29356c0a201b64db17614\",\n \"snippets/ui-carousel.liquid\": \"59dc0c06b2a9f2f779ca22b3ff4b005071d4909aba052d6f8f0a1aa19e84c2ce\",\n \"assets/ui-carousel.css\": \"04274e5fa2383386e70d8e4c01fbbb0b12a4ffe3f74c92d59b992474ffa975f4\",\n \"snippets/ui-attachment.liquid\": \"6881df7cdb1b27462d8cce7c17c0b4ed4dd860d62535e1daa81378a57bb69ddf\",\n \"snippets/ui-marquee.liquid\": \"47d5df8f1ff46a2cd48a132986c2ba199c9e19b485e62fc3e0d19091d4baaab1\",\n \"assets/ui-marquee.css\": \"ef13b83f3dbcd6685fcee3dba14238386d0f34bc2266a5326c0b6f2d40a23fce\",\n \"snippets/ui-invalid-controls.liquid\": \"a169e8244cc86f5431f902f7a73b37188051ba8f2ef3e323830462dae5aed066\",\n \"snippets/ui-section.liquid\": \"da358cd87447457f3675b035b48556103d86cd11e0b2240ae2800e4c9ea54bdc\",\n \"assets/ui-section.css\": \"f4936a02aaf1927ccced898886857855e4b5e95fafe5c2a52748ecbbe87b6621\",\n \"snippets/ui-button-group.liquid\": \"a2790f8da0f8b37acc1ed558ba1548ea250a5b93e1b2dfbd11eb150f3f02783a\",\n \"snippets/ui-collapsible.liquid\": \"e6107a03d00b8cc75bb03206e64b9aa7f2989d982c0408b398b62067c6df450a\",\n \"snippets/ui-dropdown-menu.liquid\": \"25b31e09e3e7bfee9a397ca4de6e310754844c55e71639eadba917b0f4e6d2e5\",\n \"snippets/ui-popover.liquid\": \"44ff93d72eaad409f56f8a84ce25715e2c3633f2ac49ba7a414767c6dbe2ee47\",\n \"snippets/ui-hover-card.liquid\": \"ba4133d352fa14296743138c99f3694015bafe953751b8e42155f047c4beb9f0\",\n \"snippets/ui-number-field.liquid\": \"1af5071b4905534767d78ccacf71cb1ebdf91fc527a108869b872b1de84cd1b4\",\n \"snippets/ui-swatch.liquid\": \"9a39fc70974416ba933e90d799e6a805ba1f490c7b48d9a7e25d50caae596e7d\",\n \"snippets/ui.liquid\": \"569e78bf6f84cdc7b1f7b5ba2681e1e52c6f5d02c4fe4ade16e580bffb963ae0\"\n }\n}\n", "type": "registry:file", "target": "~/assets/ui-manifest.json" } diff --git a/public/r/liquid/input-group.json b/public/r/liquid/input-group.json index 20340cf09..f83037491 100644 --- a/public/r/liquid/input-group.json +++ b/public/r/liquid/input-group.json @@ -11,7 +11,7 @@ "files": [ { "path": "snippets/ui-input-group.liquid", - "content": "{% doc %}\n Fulldev UI input-group styles. Use native markup with its data-slot parts.\n{% enddoc %}\n\n{% stylesheet %}\n /* An input with addons inside one border, as Fulldev UI's input group. The input keeps the slot of\n its own component, such as combobox-input. A number field is an input group with step buttons. */\n :is([data-slot='input-group'], [data-slot='number-field']) {\n display: flex;\n align-items: center;\n width: 100%;\n min-width: 0;\n height: calc(var(--spacing) * 9);\n border: 1px solid var(--input);\n border-radius: var(--radius-md);\n background-color: light-dark(transparent, color-mix(in oklch, var(--input) 30%, transparent));\n box-shadow: var(--shadow-xs);\n transition:\n border-color 150ms,\n box-shadow 150ms;\n }\n :is([data-slot='input-group'], [data-slot='number-field'])[data-size='sm'] {\n height: calc(var(--spacing) * 8);\n }\n :is([data-slot='input-group'], [data-slot='number-field']):has(> input:focus-visible) {\n border-color: var(--ring);\n box-shadow: var(--focus-ring);\n }\n :is([data-slot='input-group'], [data-slot='number-field']) > input {\n flex: 1;\n height: 100%;\n border: 0;\n border-radius: 0;\n background: transparent;\n box-shadow: none;\n }\n :is([data-slot='input-group'], [data-slot='number-field']) > input:focus-visible {\n box-shadow: none;\n }\n /* An addon sits at the start, or at the end with data-align='inline-end', as in Fulldev UI. A\n button in it moves a little closer to the edge, and the input gives up some of its padding on\n the addon's side. */\n [data-slot='input-group-addon'] {\n display: flex;\n align-items: center;\n gap: calc(var(--spacing) * 2);\n padding-left: calc(var(--spacing) * 2);\n color: var(--muted-foreground);\n font-size: 0.875rem;\n font-weight: 500;\n }\n [data-slot='input-group-addon'][data-align='inline-end'] {\n padding-right: calc(var(--spacing) * 2);\n padding-left: 0;\n }\n [data-slot='input-group-addon']:not([data-align='inline-end']):has(> button) {\n margin-left: calc(var(--spacing) * -1);\n }\n [data-slot='input-group-addon'][data-align='inline-end']:has(> button) {\n margin-right: calc(var(--spacing) * -1);\n }\n :is([data-slot='input-group'], [data-slot='number-field']):has(\n > [data-slot='input-group-addon']:not([data-align='inline-end'])\n )\n > input {\n padding-left: calc(var(--spacing) * 1.5);\n }\n :is([data-slot='input-group'], [data-slot='number-field']):has(\n > [data-slot='input-group-addon'][data-align='inline-end']\n )\n > input {\n padding-right: calc(var(--spacing) * 1.5);\n }\n [data-slot='input-group-addon'] > .icon {\n width: calc(var(--spacing) * 4);\n height: calc(var(--spacing) * 4);\n }\n{% endstylesheet %}\n", + "content": "{% doc %}\n Fulldev UI input-group styles. Use native markup with its data-slot parts.\n{% enddoc %}\n\n{% stylesheet %}\n /* An input with addons inside one border, as Fulldev UI's input group. The input keeps the slot of\n its own component, such as combobox-input. A number field is an input group with step buttons. */\n :is([data-slot='input-group'], [data-slot='number-field']) {\n display: flex;\n align-items: center;\n width: 100%;\n min-width: 0;\n height: calc(var(--spacing) * 9);\n border: 1px solid var(--input);\n border-radius: var(--radius-md);\n background-color: light-dark(transparent, color-mix(in oklch, var(--input) 30%, transparent));\n box-shadow: var(--shadow-xs);\n transition:\n border-color 150ms,\n box-shadow 150ms;\n }\n :is([data-slot='input-group'], [data-slot='number-field'])[data-size='sm'] {\n height: calc(var(--spacing) * 8);\n }\n :is([data-slot='input-group'], [data-slot='number-field']):has(> input:focus-visible) {\n border-color: var(--ring);\n box-shadow: var(--focus-ring);\n }\n :is([data-slot='input-group'], [data-slot='number-field']) > input {\n flex: 1;\n height: 100%;\n border: 0;\n border-radius: 0;\n background: transparent;\n box-shadow: none;\n }\n :is([data-slot='input-group'], [data-slot='number-field']) > input:focus-visible {\n box-shadow: none;\n }\n /* An addon before the input sits at the start and one after it at the end; data-align='inline-start'\n or 'inline-end' names the side, as in Fulldev UI. A button in it moves a little closer to the\n edge, and the input gives up some of its padding on the addon's side. */\n [data-slot='input-group-addon'] {\n display: flex;\n align-items: center;\n gap: calc(var(--spacing) * 2);\n color: var(--muted-foreground);\n font-size: 0.875rem;\n font-weight: 500;\n }\n [data-slot='input-group-addon']:is([data-align='inline-start'], :not([data-align]):has(~ input)) {\n padding-left: calc(var(--spacing) * 2);\n }\n [data-slot='input-group-addon']:is([data-align='inline-end'], input ~ :not([data-align])) {\n padding-right: calc(var(--spacing) * 2);\n }\n [data-slot='input-group-addon']:is([data-align='inline-start'], :not([data-align]):has(~ input)):has(> button) {\n margin-left: calc(var(--spacing) * -1);\n }\n [data-slot='input-group-addon']:is([data-align='inline-end'], input ~ :not([data-align])):has(> button) {\n margin-right: calc(var(--spacing) * -1);\n }\n :is([data-slot='input-group'], [data-slot='number-field'])\n > [data-slot='input-group-addon']:not([data-align='inline-end'])\n ~ input {\n padding-left: calc(var(--spacing) * 1.5);\n }\n :is([data-slot='input-group'], [data-slot='number-field'])\n > input:has(~ [data-slot='input-group-addon']:not([data-align='inline-start'])) {\n padding-right: calc(var(--spacing) * 1.5);\n }\n [data-slot='input-group-addon'] > .icon {\n width: calc(var(--spacing) * 4);\n height: calc(var(--spacing) * 4);\n }\n{% endstylesheet %}\n", "type": "registry:file", "target": "~/snippets/ui-input-group.liquid" } diff --git a/public/r/liquid/number-field.json b/public/r/liquid/number-field.json index 45e7fd6d9..18c6782cf 100644 --- a/public/r/liquid/number-field.json +++ b/public/r/liquid/number-field.json @@ -13,7 +13,7 @@ "files": [ { "path": "snippets/ui-number-field.liquid", - "content": "{% doc %}\n Fulldev UI number field styles. Use native markup with its data-slot parts.\n{% enddoc %}\n\n{% stylesheet %}\n /* A native number input with decrement and increment buttons in input group addons, such as a\n quantity. The input works on its own; the runtime connects the buttons. */\n [data-slot='number-field'] {\n width: calc(var(--spacing) * 32);\n }\n [data-slot='number-field'] > [data-slot='number-field-input'] {\n text-align: center;\n font-variant-numeric: tabular-nums;\n appearance: textfield;\n }\n [data-slot='number-field-input']::-webkit-inner-spin-button,\n [data-slot='number-field-input']::-webkit-outer-spin-button {\n margin: 0;\n appearance: none;\n }\n{% endstylesheet %}\n", + "content": "{% doc %}\n Fulldev UI number field styles. Use native markup with its data-slot parts.\n{% enddoc %}\n\n{% stylesheet %}\n /* A native number input with decrement and increment buttons in input group addons, such as a\n quantity. The input works on its own. The runtime connects the buttons, so they stay invisible,\n and out of the tab order, until it has started. */\n [data-slot='number-field'] {\n width: calc(var(--spacing) * 32);\n }\n [data-slot='number-field'] > input {\n text-align: center;\n font-variant-numeric: tabular-nums;\n appearance: textfield;\n }\n [data-slot='number-field'] > input::-webkit-inner-spin-button,\n [data-slot='number-field'] > input::-webkit-outer-spin-button {\n margin: 0;\n appearance: none;\n }\n [data-slot='number-field']:not([data-enhanced])\n :is([data-slot='number-field-decrement'], [data-slot='number-field-increment']) {\n visibility: hidden;\n }\n{% endstylesheet %}\n", "type": "registry:file", "target": "~/snippets/ui-number-field.liquid" } diff --git a/public/r/liquid/runtime.json b/public/r/liquid/runtime.json index 77ae029b2..5e1aea5f2 100644 --- a/public/r/liquid/runtime.json +++ b/public/r/liquid/runtime.json @@ -15,7 +15,7 @@ }, { "path": "assets/ui-controls.js", - "content": "// The data-slot controllers that few pages use, imported when theme.js finds their markup. Each\n// entry starts one root and returns its controller with destroy(). Behavior is the vendored\n// controller's; the adapters here only connect it to native forms and theme state.\n\n// A composite input renders hidden after its native fallback, such as a select or radio inputs,\n// which the form submits until the controller runs. Then the fallback leaves the document, so\n// labels and the form see only the field the controller generates, and the fallback's id moves to\n// the labelled element, so a label[for] still reaches the control. start() creates the controller\n// with the fallback's reset default and the value a shopper chose while it loaded; its destroy()\n// writes the current value back, and the fallback returns with its own reset default.\nfunction replaceFallback(root, labelled, start) {\n const fallback = root.previousElementSibling?.matches('[data-fallback]') ? root.previousElementSibling : null;\n const attributes = ['id', 'aria-labelledby'].map((name) => [name, labelled.getAttribute(name)]);\n const restore = () => {\n root.hidden = true;\n for (const [name, value] of attributes) {\n if (value === null) labelled.removeAttribute(name);\n else labelled.setAttribute(name, value);\n }\n if (fallback) root.before(fallback);\n };\n fallback?.remove();\n if (fallback?.id) labelled.id = fallback.id;\n root.hidden = false;\n let controller;\n try {\n controller = start(fallback);\n } catch (error) {\n restore();\n throw error;\n }\n return {\n destroy() {\n controller.destroy();\n restore();\n },\n };\n}\n\nfunction initializeSelect({ createSelect }, root) {\n return replaceFallback(root, root.querySelector('[data-slot=\"select-trigger\"]'), (select) => {\n const options = [...(select?.options ?? [])];\n const initial = options.find((option) => option.defaultSelected) ?? options.find((option) => !option.disabled);\n const controller = createSelect(root, { mountStrategy: 'eager', defaultValue: initial?.value || undefined });\n const value = select?.value || null;\n if (select && value !== controller.value) root.dispatchEvent(new CustomEvent('select:set', { detail: { value } }));\n return {\n destroy() {\n if (select) select.value = controller.value ?? '';\n controller.destroy();\n },\n };\n });\n}\n\nfunction initializeRadioGroup({ createRadioGroup }, root) {\n return replaceFallback(root, root, (fallback) => {\n const inputs = [...(fallback?.querySelectorAll('input[type=\"radio\"]') ?? [])];\n const initial = inputs.find((input) => input.defaultChecked)?.value ?? '';\n const controller = createRadioGroup(root, fallback ? { defaultValue: initial } : {});\n const value = inputs.find((input) => input.checked)?.value ?? null;\n if (fallback && value !== controller.value) {\n if (value === null) controller.clear();\n else controller.select(value);\n }\n return {\n destroy() {\n for (const input of inputs) input.checked = input.value === controller.value;\n controller.destroy();\n },\n };\n });\n}\n\nfunction initializeSwitch({ createSwitch }, root) {\n return replaceFallback(root, root, (checkbox) => {\n const controller = createSwitch(root, checkbox ? { defaultChecked: checkbox.defaultChecked } : {});\n if (checkbox) controller.setChecked(checkbox.checked);\n return {\n destroy() {\n if (checkbox) checkbox.checked = controller.checked;\n controller.destroy();\n },\n };\n });\n}\n\n// The slider has no form field of its own, so its native range inputs stay in the form, hidden,\n// and follow its value. A form reset moves the slider back to the inputs' reset values.\nfunction initializeSlider({ createSlider }, root) {\n const fallback = root.previousElementSibling?.matches('[data-fallback]') ? root.previousElementSibling : null;\n const inputs = fallback ? [...fallback.querySelectorAll('input[type=\"range\"]')] : [];\n const read = () => (inputs.length > 1 ? inputs.map((input) => Number(input.value)) : Number(inputs[0]?.value));\n const write = (value) => {\n [value].flat().forEach((number, index) => {\n if (!inputs[index] || inputs[index].value === String(number)) return;\n inputs[index].value = String(number);\n inputs[index].dispatchEvent(new Event('input', { bubbles: true }));\n });\n };\n const slider = createSlider(root, {\n ...(inputs.length ? { defaultValue: read() } : {}),\n onValueChange: write,\n onValueCommit: () => inputs.forEach((input) => input.dispatchEvent(new Event('change', { bubbles: true }))),\n });\n const events = new AbortController();\n inputs[0]?.form?.addEventListener('reset', () => setTimeout(() => slider.setValue(read())), {\n signal: events.signal,\n });\n if (fallback) fallback.hidden = true;\n root.hidden = false;\n return {\n destroy() {\n events.abort();\n slider.destroy();\n root.hidden = true;\n if (fallback) fallback.hidden = false;\n },\n };\n}\n\n// The action of an alert dialog is a native link or submit or reset button, and the controller\n// leaves closing to the caller. A link closes the dialog on click; a submit or reset button once its\n// form submits or resets, so an invalid form keeps its native validation and the dialog stays open.\nfunction initializeAlertDialog({ createAlertDialog }, root) {\n const dialog = createAlertDialog(root);\n const events = new AbortController();\n for (const action of root.querySelectorAll('[data-slot=\"alert-dialog-action\"]')) {\n action.addEventListener(\n 'click',\n () => {\n const form = ['submit', 'reset'].includes(action.type) ? action.form : null;\n if (form) form.addEventListener(action.type, () => dialog.close(), { once: true, signal: events.signal });\n else dialog.close();\n },\n { signal: events.signal },\n );\n }\n return {\n destroy() {\n events.abort();\n dialog.destroy();\n },\n };\n}\n\n// Buttons inside a toaster show a toast with their translated title and description. Like other\n// triggers that only open a popup, they show once the component has started (data-enhanced).\nfunction initializeToaster({ createToast }, root) {\n const toaster = createToast(root);\n const events = new AbortController();\n for (const button of root.querySelectorAll('[data-toast-title]')) {\n button.addEventListener(\n 'click',\n () => toaster.show({ title: button.dataset.toastTitle, description: button.dataset.toastDescription }),\n { signal: events.signal },\n );\n }\n return {\n destroy() {\n events.abort();\n toaster.destroy();\n },\n };\n}\n\n// A number field's buttons step its native input, as its arrow keys do, and fire the input and change\n// events that typing fires, so a form or cart script sees one kind of change. Without JavaScript the\n// input still works on its own.\nfunction initializeNumberField(_, root) {\n const input = root.querySelector('[data-slot=\"number-field-input\"]');\n const events = new AbortController();\n const step = (direction) => {\n if (!input || input.disabled || input.readOnly) return;\n const value = input.value;\n try {\n if (direction < 0) input.stepDown();\n else input.stepUp();\n } catch {\n return;\n }\n if (input.value === value) return;\n input.dispatchEvent(new Event('input', { bubbles: true }));\n input.dispatchEvent(new Event('change', { bubbles: true }));\n };\n for (const [slot, direction] of [\n ['number-field-decrement', -1],\n ['number-field-increment', 1],\n ])\n for (const button of root.querySelectorAll(`[data-slot=\"${slot}\"]`))\n button.addEventListener('click', () => step(direction), { signal: events.signal });\n return { destroy: () => events.abort() };\n}\n\n// Each entry loads its data-slot package, then starts one root with it and returns a controller\n// with destroy(). theme.js starts the root only if it is still current once the package has\n// loaded. Select, tooltip and hover card keep their closed content connected (eager), so nested\n// components and the lifecycle in theme.js never see it leave the document.\nexport const controls = {\n select: [() => import('@data-slot/select'), initializeSelect],\n 'radio-group': [() => import('@data-slot/radio-group'), initializeRadioGroup],\n switch: [() => import('@data-slot/switch'), initializeSwitch],\n slider: [() => import('@data-slot/slider'), initializeSlider],\n toggle: [() => import('@data-slot/toggle'), ({ createToggle }, root) => createToggle(root)],\n 'toggle-group': [() => import('@data-slot/toggle-group'), ({ createToggleGroup }, root) => createToggleGroup(root)],\n collapsible: [() => import('@data-slot/collapsible'), ({ createCollapsible }, root) => createCollapsible(root)],\n popover: [() => import('@data-slot/popover'), ({ createPopover }, root) => createPopover(root)],\n 'hover-card': [\n () => import('@data-slot/hover-card'),\n ({ createHoverCard }, root) => createHoverCard(root, { mountStrategy: 'eager' }),\n ],\n tooltip: [\n () => import('@data-slot/tooltip'),\n ({ createTooltip }, root) => createTooltip(root, { mountStrategy: 'eager' }),\n ],\n 'dropdown-menu': [\n () => import('@data-slot/dropdown-menu'),\n ({ createDropdownMenu }, root) => createDropdownMenu(root),\n ],\n 'alert-dialog': [() => import('@data-slot/alert-dialog'), initializeAlertDialog],\n drawer: [() => import('@data-slot/drawer'), ({ createDrawer }, root) => createDrawer(root)],\n toast: [() => import('@data-slot/toast'), initializeToaster],\n // data-slot leaves a number field to the native input, so this entry loads no package.\n 'number-field': [async () => ({}), initializeNumberField],\n};\n", + "content": "// The data-slot controllers that few pages use, imported when theme.js finds their markup. Each\n// entry starts one root and returns its controller with destroy(). Behavior is the vendored\n// controller's; the adapters here only connect it to native forms and theme state.\n\n// A composite input renders hidden after its native fallback, such as a select or radio inputs,\n// which the form submits until the controller runs. Then the fallback leaves the document, so\n// labels and the form see only the field the controller generates, and the fallback's id moves to\n// the labelled element, so a label[for] still reaches the control. start() creates the controller\n// with the fallback's reset default and the value a shopper chose while it loaded; its destroy()\n// writes the current value back, and the fallback returns with its own reset default.\nfunction replaceFallback(root, labelled, start) {\n const fallback = root.previousElementSibling?.matches('[data-fallback]') ? root.previousElementSibling : null;\n const attributes = ['id', 'aria-labelledby'].map((name) => [name, labelled.getAttribute(name)]);\n const restore = () => {\n root.hidden = true;\n for (const [name, value] of attributes) {\n if (value === null) labelled.removeAttribute(name);\n else labelled.setAttribute(name, value);\n }\n if (fallback) root.before(fallback);\n };\n fallback?.remove();\n if (fallback?.id) labelled.id = fallback.id;\n root.hidden = false;\n let controller;\n try {\n controller = start(fallback);\n } catch (error) {\n restore();\n throw error;\n }\n return {\n destroy() {\n controller.destroy();\n restore();\n },\n };\n}\n\nfunction initializeSelect({ createSelect }, root) {\n return replaceFallback(root, root.querySelector('[data-slot=\"select-trigger\"]'), (select) => {\n const options = [...(select?.options ?? [])];\n const initial = options.find((option) => option.defaultSelected) ?? options.find((option) => !option.disabled);\n const controller = createSelect(root, { mountStrategy: 'eager', defaultValue: initial?.value || undefined });\n const value = select?.value || null;\n if (select && value !== controller.value) root.dispatchEvent(new CustomEvent('select:set', { detail: { value } }));\n return {\n destroy() {\n if (select) select.value = controller.value ?? '';\n controller.destroy();\n },\n };\n });\n}\n\nfunction initializeRadioGroup({ createRadioGroup }, root) {\n return replaceFallback(root, root, (fallback) => {\n const inputs = [...(fallback?.querySelectorAll('input[type=\"radio\"]') ?? [])];\n const initial = inputs.find((input) => input.defaultChecked)?.value ?? '';\n const controller = createRadioGroup(root, fallback ? { defaultValue: initial } : {});\n const value = inputs.find((input) => input.checked)?.value ?? null;\n if (fallback && value !== controller.value) {\n if (value === null) controller.clear();\n else controller.select(value);\n }\n return {\n destroy() {\n for (const input of inputs) input.checked = input.value === controller.value;\n controller.destroy();\n },\n };\n });\n}\n\nfunction initializeSwitch({ createSwitch }, root) {\n return replaceFallback(root, root, (checkbox) => {\n const controller = createSwitch(root, checkbox ? { defaultChecked: checkbox.defaultChecked } : {});\n if (checkbox) controller.setChecked(checkbox.checked);\n return {\n destroy() {\n if (checkbox) checkbox.checked = controller.checked;\n controller.destroy();\n },\n };\n });\n}\n\n// The slider has no form field of its own, so its native range inputs stay in the form, hidden,\n// and follow its value. A form reset moves the slider back to the inputs' reset values.\nfunction initializeSlider({ createSlider }, root) {\n const fallback = root.previousElementSibling?.matches('[data-fallback]') ? root.previousElementSibling : null;\n const inputs = fallback ? [...fallback.querySelectorAll('input[type=\"range\"]')] : [];\n const read = () => (inputs.length > 1 ? inputs.map((input) => Number(input.value)) : Number(inputs[0]?.value));\n const write = (value) => {\n [value].flat().forEach((number, index) => {\n if (!inputs[index] || inputs[index].value === String(number)) return;\n inputs[index].value = String(number);\n inputs[index].dispatchEvent(new Event('input', { bubbles: true }));\n });\n };\n const slider = createSlider(root, {\n ...(inputs.length ? { defaultValue: read() } : {}),\n onValueChange: write,\n onValueCommit: () => inputs.forEach((input) => input.dispatchEvent(new Event('change', { bubbles: true }))),\n });\n const events = new AbortController();\n inputs[0]?.form?.addEventListener('reset', () => setTimeout(() => slider.setValue(read())), {\n signal: events.signal,\n });\n if (fallback) fallback.hidden = true;\n root.hidden = false;\n return {\n destroy() {\n events.abort();\n slider.destroy();\n root.hidden = true;\n if (fallback) fallback.hidden = false;\n },\n };\n}\n\n// The action of an alert dialog is a native link or submit or reset button, and the controller\n// leaves closing to the caller. A link closes the dialog on click; a submit or reset button once its\n// form submits or resets, so an invalid form keeps its native validation and the dialog stays open.\nfunction initializeAlertDialog({ createAlertDialog }, root) {\n const dialog = createAlertDialog(root);\n const events = new AbortController();\n for (const action of root.querySelectorAll('[data-slot=\"alert-dialog-action\"]')) {\n action.addEventListener(\n 'click',\n () => {\n const form = ['submit', 'reset'].includes(action.type) ? action.form : null;\n if (form) form.addEventListener(action.type, () => dialog.close(), { once: true, signal: events.signal });\n else dialog.close();\n },\n { signal: events.signal },\n );\n }\n return {\n destroy() {\n events.abort();\n dialog.destroy();\n },\n };\n}\n\n// Buttons inside a toaster show a toast with their translated title and description. Like other\n// triggers that only open a popup, they show once the component has started (data-enhanced).\nfunction initializeToaster({ createToast }, root) {\n const toaster = createToast(root);\n const events = new AbortController();\n for (const button of root.querySelectorAll('[data-toast-title]')) {\n button.addEventListener(\n 'click',\n () => toaster.show({ title: button.dataset.toastTitle, description: button.dataset.toastDescription }),\n { signal: events.signal },\n );\n }\n return {\n destroy() {\n events.abort();\n toaster.destroy();\n },\n };\n}\n\n// A number field's buttons step its native input, as its arrow keys do, and fire the input and change\n// events that typing fires, so a form or cart script sees one kind of change. Clicks are read on the\n// root, so buttons and an input that a cart refresh replaces keep working. Without JavaScript the\n// input still works on its own.\nfunction initializeNumberField(_, root) {\n const events = new AbortController();\n root.addEventListener(\n 'click',\n (event) => {\n const button =\n event.target instanceof Element\n ? event.target.closest('[data-slot=\"number-field-decrement\"], [data-slot=\"number-field-increment\"]')\n : null;\n const input = root.querySelector('input');\n if (!button || button.closest('[data-slot=\"number-field\"]') !== root || button.disabled) return;\n if (!input || input.disabled || input.readOnly) return;\n const value = input.value;\n try {\n if (button.dataset.slot === 'number-field-decrement') input.stepDown();\n else input.stepUp();\n } catch {\n return;\n }\n if (input.value === value) return;\n input.dispatchEvent(new Event('input', { bubbles: true }));\n input.dispatchEvent(new Event('change', { bubbles: true }));\n },\n { signal: events.signal },\n );\n return { destroy: () => events.abort() };\n}\n\n// Each entry loads its data-slot package, then starts one root with it and returns a controller\n// with destroy(). theme.js starts the root only if it is still current once the package has\n// loaded. Select, tooltip and hover card keep their closed content connected (eager), so nested\n// components and the lifecycle in theme.js never see it leave the document.\nexport const controls = {\n select: [() => import('@data-slot/select'), initializeSelect],\n 'radio-group': [() => import('@data-slot/radio-group'), initializeRadioGroup],\n switch: [() => import('@data-slot/switch'), initializeSwitch],\n slider: [() => import('@data-slot/slider'), initializeSlider],\n toggle: [() => import('@data-slot/toggle'), ({ createToggle }, root) => createToggle(root)],\n 'toggle-group': [() => import('@data-slot/toggle-group'), ({ createToggleGroup }, root) => createToggleGroup(root)],\n collapsible: [() => import('@data-slot/collapsible'), ({ createCollapsible }, root) => createCollapsible(root)],\n popover: [() => import('@data-slot/popover'), ({ createPopover }, root) => createPopover(root)],\n 'hover-card': [\n () => import('@data-slot/hover-card'),\n ({ createHoverCard }, root) => createHoverCard(root, { mountStrategy: 'eager' }),\n ],\n tooltip: [\n () => import('@data-slot/tooltip'),\n ({ createTooltip }, root) => createTooltip(root, { mountStrategy: 'eager' }),\n ],\n 'dropdown-menu': [\n () => import('@data-slot/dropdown-menu'),\n ({ createDropdownMenu }, root) => createDropdownMenu(root),\n ],\n 'alert-dialog': [() => import('@data-slot/alert-dialog'), initializeAlertDialog],\n drawer: [() => import('@data-slot/drawer'), ({ createDrawer }, root) => createDrawer(root)],\n toast: [() => import('@data-slot/toast'), initializeToaster],\n // data-slot leaves a number field to the native input, so this entry loads no package.\n 'number-field': [async () => ({}), initializeNumberField],\n};\n", "type": "registry:file", "target": "~/assets/ui-controls.js" }, diff --git a/public/r/react/styles/base-luma/number-field.json b/public/r/react/styles/base-luma/number-field.json index 191601333..dabef39fd 100644 --- a/public/r/react/styles/base-luma/number-field.json +++ b/public/r/react/styles/base-luma/number-field.json @@ -14,7 +14,7 @@ "files": [ { "path": "src/components/ui/number-field.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({\n className,\n disabled,\n ...props\n}: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", "type": "registry:ui" } ], diff --git a/public/r/react/styles/base-lyra/number-field.json b/public/r/react/styles/base-lyra/number-field.json index 3e56dccb6..aeb14b323 100644 --- a/public/r/react/styles/base-lyra/number-field.json +++ b/public/r/react/styles/base-lyra/number-field.json @@ -14,7 +14,7 @@ "files": [ { "path": "src/components/ui/number-field.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({\n className,\n disabled,\n ...props\n}: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", "type": "registry:ui" } ], diff --git a/public/r/react/styles/base-maia/number-field.json b/public/r/react/styles/base-maia/number-field.json index ed93d058b..b6bfcea14 100644 --- a/public/r/react/styles/base-maia/number-field.json +++ b/public/r/react/styles/base-maia/number-field.json @@ -14,7 +14,7 @@ "files": [ { "path": "src/components/ui/number-field.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({\n className,\n disabled,\n ...props\n}: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", "type": "registry:ui" } ], diff --git a/public/r/react/styles/base-mira/number-field.json b/public/r/react/styles/base-mira/number-field.json index 439616400..b49963a5a 100644 --- a/public/r/react/styles/base-mira/number-field.json +++ b/public/r/react/styles/base-mira/number-field.json @@ -14,7 +14,7 @@ "files": [ { "path": "src/components/ui/number-field.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({\n className,\n disabled,\n ...props\n}: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", "type": "registry:ui" } ], diff --git a/public/r/react/styles/base-nova/number-field.json b/public/r/react/styles/base-nova/number-field.json index 729b82051..690722f99 100644 --- a/public/r/react/styles/base-nova/number-field.json +++ b/public/r/react/styles/base-nova/number-field.json @@ -14,7 +14,7 @@ "files": [ { "path": "src/components/ui/number-field.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({\n className,\n disabled,\n ...props\n}: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", "type": "registry:ui" } ], diff --git a/public/r/react/styles/base-rhea/number-field.json b/public/r/react/styles/base-rhea/number-field.json index 6cf2b21ef..1c13f4ae8 100644 --- a/public/r/react/styles/base-rhea/number-field.json +++ b/public/r/react/styles/base-rhea/number-field.json @@ -14,7 +14,7 @@ "files": [ { "path": "src/components/ui/number-field.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({\n className,\n disabled,\n ...props\n}: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", "type": "registry:ui" } ], diff --git a/public/r/react/styles/base-sera/number-field.json b/public/r/react/styles/base-sera/number-field.json index ba238efc1..6032d65f9 100644 --- a/public/r/react/styles/base-sera/number-field.json +++ b/public/r/react/styles/base-sera/number-field.json @@ -14,7 +14,7 @@ "files": [ { "path": "src/components/ui/number-field.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n [data-align=inline-start]]/input-group:pl-2 group-has-[>[data-align=inline-end]]/input-group:pr-2 w-full min-w-0 flex-1 text-center tabular-nums outline-none placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({\n className,\n disabled,\n ...props\n}: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n [data-align=inline-start]]/input-group:pl-2 group-has-[>[data-align=inline-end]]/input-group:pr-2 w-full min-w-0 flex-1 text-center tabular-nums outline-none placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", "type": "registry:ui" } ], diff --git a/public/r/react/styles/base-vega/number-field.json b/public/r/react/styles/base-vega/number-field.json index 99d038008..9c0bea88c 100644 --- a/public/r/react/styles/base-vega/number-field.json +++ b/public/r/react/styles/base-vega/number-field.json @@ -14,7 +14,7 @@ "files": [ { "path": "src/components/ui/number-field.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none has-[[data-slot=number-field-input]:focus-visible]:border-ring has-[[data-slot=number-field-input]:focus-visible]:ring-3 has-[[data-slot=number-field-input]:focus-visible]:ring-ring/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({\n className,\n disabled,\n ...props\n}: NumberFieldPrimitive.Root.Props) {\n return (\n [data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: NumberFieldPrimitive.Input.Props) {\n return (\n \n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n \n }\n {...props}\n >\n {children ?? }\n \n \n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n", "type": "registry:ui" } ], diff --git a/public/r/styles/base-luma/carousel.json b/public/r/styles/base-luma/carousel.json index 5d89b980e..990e19084 100644 --- a/public/r/styles/base-luma/carousel.json +++ b/public/r/styles/base-luma/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-luma/number-field.json b/public/r/styles/base-luma/number-field.json index 89bc17f76..193ccddc0 100644 --- a/public/r/styles/base-luma/number-field.json +++ b/public/r/styles/base-luma/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -27,7 +27,7 @@ }, { "path": "src/components/ui/number-field/number-field-input.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-lyra/carousel.json b/public/r/styles/base-lyra/carousel.json index 775cad417..90a7c7d0c 100644 --- a/public/r/styles/base-lyra/carousel.json +++ b/public/r/styles/base-lyra/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-lyra/number-field.json b/public/r/styles/base-lyra/number-field.json index 89bc17f76..193ccddc0 100644 --- a/public/r/styles/base-lyra/number-field.json +++ b/public/r/styles/base-lyra/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -27,7 +27,7 @@ }, { "path": "src/components/ui/number-field/number-field-input.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-maia/carousel.json b/public/r/styles/base-maia/carousel.json index 5d89b980e..990e19084 100644 --- a/public/r/styles/base-maia/carousel.json +++ b/public/r/styles/base-maia/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-maia/number-field.json b/public/r/styles/base-maia/number-field.json index 89bc17f76..193ccddc0 100644 --- a/public/r/styles/base-maia/number-field.json +++ b/public/r/styles/base-maia/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -27,7 +27,7 @@ }, { "path": "src/components/ui/number-field/number-field-input.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-mira/carousel.json b/public/r/styles/base-mira/carousel.json index ecf227cb2..f37c4f802 100644 --- a/public/r/styles/base-mira/carousel.json +++ b/public/r/styles/base-mira/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-mira/number-field.json b/public/r/styles/base-mira/number-field.json index 89bc17f76..193ccddc0 100644 --- a/public/r/styles/base-mira/number-field.json +++ b/public/r/styles/base-mira/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -27,7 +27,7 @@ }, { "path": "src/components/ui/number-field/number-field-input.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-nova/carousel.json b/public/r/styles/base-nova/carousel.json index 6647b3830..ee9eca713 100644 --- a/public/r/styles/base-nova/carousel.json +++ b/public/r/styles/base-nova/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-nova/number-field.json b/public/r/styles/base-nova/number-field.json index 89bc17f76..193ccddc0 100644 --- a/public/r/styles/base-nova/number-field.json +++ b/public/r/styles/base-nova/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -27,7 +27,7 @@ }, { "path": "src/components/ui/number-field/number-field-input.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-rhea/carousel.json b/public/r/styles/base-rhea/carousel.json index 9307899e1..34b8073f7 100644 --- a/public/r/styles/base-rhea/carousel.json +++ b/public/r/styles/base-rhea/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-rhea/number-field.json b/public/r/styles/base-rhea/number-field.json index 89bc17f76..193ccddc0 100644 --- a/public/r/styles/base-rhea/number-field.json +++ b/public/r/styles/base-rhea/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -27,7 +27,7 @@ }, { "path": "src/components/ui/number-field/number-field-input.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-sera/carousel.json b/public/r/styles/base-sera/carousel.json index 775cad417..90a7c7d0c 100644 --- a/public/r/styles/base-sera/carousel.json +++ b/public/r/styles/base-sera/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-sera/number-field.json b/public/r/styles/base-sera/number-field.json index 89bc17f76..193ccddc0 100644 --- a/public/r/styles/base-sera/number-field.json +++ b/public/r/styles/base-sera/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -27,7 +27,7 @@ }, { "path": "src/components/ui/number-field/number-field-input.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-vega/carousel.json b/public/r/styles/base-vega/carousel.json index 6647b3830..ee9eca713 100644 --- a/public/r/styles/base-vega/carousel.json +++ b/public/r/styles/base-vega/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-vega/number-field.json b/public/r/styles/base-vega/number-field.json index 89bc17f76..193ccddc0 100644 --- a/public/r/styles/base-vega/number-field.json +++ b/public/r/styles/base-vega/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroup } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, ...props } = Astro.props\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -27,7 +27,7 @@ }, { "path": "src/components/ui/number-field/number-field-input.astro", - "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", + "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { InputGroupInput } from \"@/components/ui/input-group\"\n\ntype Props = ComponentProps\n\nconst { class: className, inputmode = \"numeric\", ...props } = Astro.props\n---\n\n\n", "type": "registry:ui" }, { diff --git a/react/src/components/ui/number-field.tsx b/react/src/components/ui/number-field.tsx index 3ff75c043..080787cb1 100644 --- a/react/src/components/ui/number-field.tsx +++ b/react/src/components/ui/number-field.tsx @@ -7,13 +7,19 @@ import { MinusIcon, PlusIcon } from "lucide-react" import { InputGroupAddon, InputGroupButton } from "@/components/ui/input-group" -function NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props) { +function NumberField({ + className, + disabled, + ...props +}: NumberFieldPrimitive.Root.Props) { return ( api.scrollPrev(jump()) const onNext = () => api.scrollNext(jump()) // An indicator that links to its slide scrolls the carousel on a plain - // click instead of moving the page. + // click instead of moving the page. When Embla does not take the + // click, such as at a breakpoint where it is inactive, the link works. const onIndicator = (event: MouseEvent) => { const indicator = event.currentTarget as HTMLElement const index = Number(indicator.dataset.index) @@ -124,8 +125,8 @@ const resolvedOpts: EmblaOptionsType = { event.altKey) ) return - event.preventDefault() api.scrollTo(index, jump()) + if (api.selectedScrollSnap() === index) event.preventDefault() } const onKeyDown = (event: KeyboardEvent) => { const target = event.target diff --git a/src/components/ui/number-field/number-field-input.astro b/src/components/ui/number-field/number-field-input.astro index ce67d9103..a62ad590e 100644 --- a/src/components/ui/number-field/number-field-input.astro +++ b/src/components/ui/number-field/number-field-input.astro @@ -10,7 +10,6 @@ const { class: className, inputmode = "numeric", ...props } = Astro.props --- const { class: className, ...props } = Astro.props --- - + @@ -38,7 +31,7 @@ const { class: className, ...props } = Astro.props const input = button .closest('[data-slot="number-field"]') - ?.querySelector('[data-slot="number-field-input"]') + ?.querySelector("input") if (!(input instanceof HTMLInputElement)) return if (input.disabled || input.readOnly) return diff --git a/src/content/pages/liquid/components/number-field.mdx b/src/content/pages/liquid/components/number-field.mdx index de6d51ec6..359934aaa 100644 --- a/src/content/pages/liquid/components/number-field.mdx +++ b/src/content/pages/liquid/components/number-field.mdx @@ -35,6 +35,6 @@ A number field is an input group around a native ``, such a ## Parts -`number-field`, `number-field-decrement`, `number-field-input`, `number-field-increment`. +`number-field`, `number-field-decrement`, `number-field-increment`, with `input-group-addon` around the buttons and a native `input`. [Component source](https://github.com/fulldotdev/ui/tree/main/liquid/snippets/ui-number-field.liquid) · [Theming](/liquid/docs/theming/) diff --git a/tests/browser/liquid-regressions.test.mjs b/tests/browser/liquid-regressions.test.mjs index 884c86f8f..ad1e7c900 100644 --- a/tests/browser/liquid-regressions.test.mjs +++ b/tests/browser/liquid-regressions.test.mjs @@ -173,7 +173,7 @@ for (const [name, type] of Object.entries({ chromium, firefox, webkit })) {
    - +
    @@ -203,6 +203,22 @@ for (const [name, type] of Object.entries({ chromium, firefox, webkit })) { await root.getByRole("spinbutton", { name: "Quantity" }).inputValue(), "2" ) + // A cart refresh can replace the buttons and input inside the root. + await root.locator('[data-slot="number-field"]').evaluate((field) => { + const markup = field.innerHTML + field.innerHTML = markup + const input = field.querySelector("input") + input.value = "2" + for (const type of ["input", "change"]) + input.addEventListener(type, () => + window.quantityEvents.push(`${type} ${input.value}`) + ) + }) + await root.getByRole("button", { name: "Increase" }).click() + assert.equal( + await root.getByRole("spinbutton", { name: "Quantity" }).inputValue(), + "3" + ) // The third click is past max, so it changes nothing and fires nothing. assert.deepEqual(await page.evaluate(() => window.quantityEvents), [ "input 2", @@ -211,6 +227,8 @@ for (const [name, type] of Object.entries({ chromium, firefox, webkit })) { "change 3", "input 2", "change 2", + "input 3", + "change 3", ]) await root.locator('[data-slot="carousel"][data-enhanced]').waitFor() From 7d145ac5cf9b9ce31af23de890c2a59b94b0d3aa Mon Sep 17 00:00:00 2001 From: Sil Date: Thu, 26 Nov 2026 17:46:01 +0100 Subject: [PATCH 06/32] Disable number field buttons at their bounds, start Embla on a linked slide, show swatches in a filter Co-Authored-By: Claude Opus 5.5 --- liquid/assets/ui-controls.js | 37 ++++++-- liquid/assets/ui-manifest.json | 6 +- liquid/examples/number-field.liquid | 2 + liquid/snippets/ui-input-group.liquid | 8 ++ liquid/snippets/ui-number-field.liquid | 4 +- public/r/liquid/components.json | 2 +- public/r/liquid/input-group.json | 2 +- public/r/liquid/number-field.json | 2 +- public/r/liquid/runtime.json | 2 +- .../styles/base-luma/carousel-indicator.json | 2 +- .../styles/base-lyra/carousel-indicator.json | 2 +- .../styles/base-maia/carousel-indicator.json | 2 +- .../styles/base-mira/carousel-indicator.json | 2 +- .../styles/base-nova/carousel-indicator.json | 2 +- .../styles/base-rhea/carousel-indicator.json | 2 +- .../styles/base-sera/carousel-indicator.json | 2 +- .../styles/base-vega/carousel-indicator.json | 2 +- public/r/styles/base-luma/carousel.json | 4 +- public/r/styles/base-luma/input-group.json | 2 +- public/r/styles/base-luma/number-field.json | 6 +- public/r/styles/base-lyra/carousel.json | 4 +- public/r/styles/base-lyra/input-group.json | 2 +- public/r/styles/base-lyra/number-field.json | 6 +- public/r/styles/base-maia/carousel.json | 4 +- public/r/styles/base-maia/input-group.json | 2 +- public/r/styles/base-maia/number-field.json | 6 +- public/r/styles/base-mira/carousel.json | 4 +- public/r/styles/base-mira/input-group.json | 2 +- public/r/styles/base-mira/number-field.json | 6 +- public/r/styles/base-nova/carousel.json | 4 +- public/r/styles/base-nova/input-group.json | 2 +- public/r/styles/base-nova/number-field.json | 6 +- public/r/styles/base-rhea/carousel.json | 4 +- public/r/styles/base-rhea/input-group.json | 2 +- public/r/styles/base-rhea/number-field.json | 6 +- public/r/styles/base-sera/carousel.json | 4 +- public/r/styles/base-sera/input-group.json | 2 +- public/r/styles/base-sera/number-field.json | 6 +- public/r/styles/base-vega/carousel.json | 4 +- public/r/styles/base-vega/input-group.json | 2 +- public/r/styles/base-vega/number-field.json | 6 +- react/gallery/ui/swatch.tsx | 38 ++++---- .../src/components/ui/carousel-indicator.tsx | 8 +- react/src/components/ui/checkbox.tsx | 27 ++++++ react/src/components/ui/toggle-group.tsx | 89 ------------------- react/src/components/ui/toggle.tsx | 43 --------- registry/styles/adapted/style-luma.css | 4 + registry/styles/adapted/style-lyra.css | 4 + registry/styles/adapted/style-maia.css | 4 + registry/styles/adapted/style-mira.css | 4 + registry/styles/adapted/style-nova.css | 4 + registry/styles/adapted/style-rhea.css | 4 + registry/styles/adapted/style-sera.css | 4 + registry/styles/adapted/style-vega.css | 4 + scripts/registry-adapt.mjs | 15 ++++ .../ui/carousel/carousel-indicator.astro | 2 +- src/components/ui/carousel/carousel.astro | 14 +++ .../ui/input-group/input-group.astro | 8 +- .../number-field/number-field-decrement.astro | 4 + .../number-field/number-field-increment.astro | 4 + .../ui/number-field/number-field.astro | 70 ++++++++++++--- src/content/pages/components/swatch.mdx | 38 ++++---- .../pages/liquid/components/carousel.mdx | 2 +- tests/browser/liquid-regressions.test.mjs | 10 ++- 64 files changed, 323 insertions(+), 258 deletions(-) create mode 100644 react/src/components/ui/checkbox.tsx delete mode 100644 react/src/components/ui/toggle-group.tsx delete mode 100644 react/src/components/ui/toggle.tsx diff --git a/liquid/assets/ui-controls.js b/liquid/assets/ui-controls.js index efd40935d..4ed264566 100644 --- a/liquid/assets/ui-controls.js +++ b/liquid/assets/ui-controls.js @@ -165,11 +165,28 @@ function initializeToaster({ createToast }, root) { } // A number field's buttons step its native input, as its arrow keys do, and fire the input and change -// events that typing fires, so a form or cart script sees one kind of change. Clicks are read on the -// root, so buttons and an input that a cart refresh replaces keep working. Without JavaScript the -// input still works on its own. +// events that typing fires, so a form or cart script sees one kind of change. As in Base UI, they are +// disabled at the input's bounds and while it is disabled or read-only. Events are read on the root, +// so buttons and an input that a cart refresh replaces keep working. Without JavaScript the input +// still works on its own. function initializeNumberField(_, root) { const events = new AbortController(); + const buttons = () => + root.querySelectorAll('[data-slot="number-field-decrement"], [data-slot="number-field-increment"]'); + const sync = () => { + const input = root.querySelector('input'); + if (!input) return; + const value = input.valueAsNumber; + const locked = input.disabled || input.readOnly; + for (const button of buttons()) { + const decrement = button.dataset.slot === 'number-field-decrement'; + const bound = decrement ? input.min : input.max; + button.disabled = + locked || + (bound !== '' && !Number.isNaN(value) && (decrement ? value <= Number(bound) : value >= Number(bound))); + } + }; + const options = { signal: events.signal }; root.addEventListener( 'click', (event) => { @@ -191,9 +208,19 @@ function initializeNumberField(_, root) { input.dispatchEvent(new Event('input', { bubbles: true })); input.dispatchEvent(new Event('change', { bubbles: true })); }, - { signal: events.signal }, + options, ); - return { destroy: () => events.abort() }; + root.addEventListener('input', sync, options); + root.addEventListener('change', sync, options); + // A form reset restores the input after the event. + root.closest('form')?.addEventListener('reset', () => setTimeout(sync), options); + sync(); + return { + destroy() { + events.abort(); + for (const button of buttons()) button.disabled = false; + }, + }; } // Each entry loads its data-slot package, then starts one root with it and returns a controller diff --git a/liquid/assets/ui-manifest.json b/liquid/assets/ui-manifest.json index a4aee5dc9..540fd4c96 100644 --- a/liquid/assets/ui-manifest.json +++ b/liquid/assets/ui-manifest.json @@ -6,7 +6,7 @@ "snippets/ui-init.liquid": "98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af", "assets/ui-licenses.json": "874a6f264f1503b2e577aee651e7285fd6ac808f56cadf8c7d58914bf2396f49", "assets/ui-carousel.js": "eab87bbe966ee48b1a0b57c617b5d00b7426af03339bd17c4614c50b3c0a9394", - "assets/ui-controls.js": "430d957133782d3e35bda7ac6237f85489cf8a747b782e7a61ec590d898e1552", + "assets/ui-controls.js": "270236821e023c700ad4d734ba63e37ae5a3af9f0e348d1910b2d968fffac433", "assets/ui-lifecycle.js": "78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6", "assets/ui-start.js": "738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500", "assets/data-slot-core.js": "d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6", @@ -70,7 +70,7 @@ "assets/ui-accordion.css": "430924440bd0f1d49ceb72baffc77404c9411c31c24b940d75861daba2649e83", "snippets/ui-slider.liquid": "f2de1fb9099de77bf291455447bc86b2578781e7cf0efdf12117fb4575e0b0e6", "snippets/ui-input.liquid": "5f4b2adf298e84ef5845fb123b0753dd76294731da657fe395313ad7fe3f01a9", - "snippets/ui-input-group.liquid": "162ec34e82f924a5e3791d93603ba39f4ae94792ea26f20344e074a26393ea98", + "snippets/ui-input-group.liquid": "ce5ac3e37e92fc284780370d06601c3a400638f19710e655d5e4e1e2fc34b797", "snippets/ui-triggers.liquid": "ba9c7b802fb0a2aba0e9cc145a9dd44134964afb53e5363cf9e0ae138b906cc9", "snippets/ui-toggle-group.liquid": "2d61e0b9bc746e05834157f5a75d23123f02bc2df737412e4f6099844afc4f49", "snippets/ui-dialog.liquid": "779bbcd609a69ed29a984df1f26f9ed80fd24d71c4ee3ead5f4daa055b28e9fb", @@ -105,7 +105,7 @@ "snippets/ui-dropdown-menu.liquid": "25b31e09e3e7bfee9a397ca4de6e310754844c55e71639eadba917b0f4e6d2e5", "snippets/ui-popover.liquid": "44ff93d72eaad409f56f8a84ce25715e2c3633f2ac49ba7a414767c6dbe2ee47", "snippets/ui-hover-card.liquid": "ba4133d352fa14296743138c99f3694015bafe953751b8e42155f047c4beb9f0", - "snippets/ui-number-field.liquid": "1af5071b4905534767d78ccacf71cb1ebdf91fc527a108869b872b1de84cd1b4", + "snippets/ui-number-field.liquid": "544bbc038d11fe0f3d7ddd4c1af7b6c76f2a726f1aa63cd94fc44ee7e79b2fbf", "snippets/ui-swatch.liquid": "9a39fc70974416ba933e90d799e6a805ba1f490c7b48d9a7e25d50caae596e7d", "snippets/ui.liquid": "569e78bf6f84cdc7b1f7b5ba2681e1e52c6f5d02c4fe4ade16e580bffb963ae0" } diff --git a/liquid/examples/number-field.liquid b/liquid/examples/number-field.liquid index 92db34cab..a18835eb0 100644 --- a/liquid/examples/number-field.liquid +++ b/liquid/examples/number-field.liquid @@ -5,6 +5,7 @@ \n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-luma/number-field.json b/public/r/styles/base-luma/number-field.json index ccb2a0b45..37bffaec5 100644 --- a/public/r/styles/base-luma/number-field.json +++ b/public/r/styles/base-luma/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-lyra/carousel.json b/public/r/styles/base-lyra/carousel.json index 34e4c1990..509018193 100644 --- a/public/r/styles/base-lyra/carousel.json +++ b/public/r/styles/base-lyra/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -38,7 +38,7 @@ }, { "path": "src/components/ui/carousel/carousel-indicator.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = Astro.props.href ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> & {\n index: number\n}\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-lyra/number-field.json b/public/r/styles/base-lyra/number-field.json index a7fedefe6..6d133d15c 100644 --- a/public/r/styles/base-lyra/number-field.json +++ b/public/r/styles/base-lyra/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-maia/carousel.json b/public/r/styles/base-maia/carousel.json index 43f6dc8a0..f7501931a 100644 --- a/public/r/styles/base-maia/carousel.json +++ b/public/r/styles/base-maia/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -38,7 +38,7 @@ }, { "path": "src/components/ui/carousel/carousel-indicator.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = Astro.props.href ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> & {\n index: number\n}\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-maia/number-field.json b/public/r/styles/base-maia/number-field.json index ae0069d84..fa71c90dd 100644 --- a/public/r/styles/base-maia/number-field.json +++ b/public/r/styles/base-maia/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-mira/carousel.json b/public/r/styles/base-mira/carousel.json index 3dd2d0894..5bb2738de 100644 --- a/public/r/styles/base-mira/carousel.json +++ b/public/r/styles/base-mira/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -38,7 +38,7 @@ }, { "path": "src/components/ui/carousel/carousel-indicator.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = Astro.props.href ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> & {\n index: number\n}\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-mira/number-field.json b/public/r/styles/base-mira/number-field.json index 31e5b317f..9976f70f5 100644 --- a/public/r/styles/base-mira/number-field.json +++ b/public/r/styles/base-mira/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-nova/carousel.json b/public/r/styles/base-nova/carousel.json index d2fe99c7a..ae3f89ef0 100644 --- a/public/r/styles/base-nova/carousel.json +++ b/public/r/styles/base-nova/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -38,7 +38,7 @@ }, { "path": "src/components/ui/carousel/carousel-indicator.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = Astro.props.href ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> & {\n index: number\n}\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-nova/number-field.json b/public/r/styles/base-nova/number-field.json index f748f438f..5deb090e1 100644 --- a/public/r/styles/base-nova/number-field.json +++ b/public/r/styles/base-nova/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-rhea/carousel.json b/public/r/styles/base-rhea/carousel.json index 073571698..af6d595e6 100644 --- a/public/r/styles/base-rhea/carousel.json +++ b/public/r/styles/base-rhea/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -38,7 +38,7 @@ }, { "path": "src/components/ui/carousel/carousel-indicator.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = Astro.props.href ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> & {\n index: number\n}\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-rhea/number-field.json b/public/r/styles/base-rhea/number-field.json index 1a86045f0..c24afa61a 100644 --- a/public/r/styles/base-rhea/number-field.json +++ b/public/r/styles/base-rhea/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-sera/carousel.json b/public/r/styles/base-sera/carousel.json index 34e4c1990..509018193 100644 --- a/public/r/styles/base-sera/carousel.json +++ b/public/r/styles/base-sera/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -38,7 +38,7 @@ }, { "path": "src/components/ui/carousel/carousel-indicator.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = Astro.props.href ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> & {\n index: number\n}\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-sera/number-field.json b/public/r/styles/base-sera/number-field.json index 5e1b3f755..581e2a923 100644 --- a/public/r/styles/base-sera/number-field.json +++ b/public/r/styles/base-sera/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-vega/carousel.json b/public/r/styles/base-vega/carousel.json index d2fe99c7a..ae3f89ef0 100644 --- a/public/r/styles/base-vega/carousel.json +++ b/public/r/styles/base-vega/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { @@ -38,7 +38,7 @@ }, { "path": "src/components/ui/carousel/carousel-indicator.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> &\n Omit, \"type\"> & {\n index: number\n }\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n\n// A link to the slide's id also works without JavaScript.\nconst Tag = Astro.props.href ? \"a\" : \"button\"\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit, \"type\"> & {\n index: number\n}\n\nconst {\n class: className,\n index,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n \"data-slot\": dataSlot = \"carousel-indicator\",\n ...props\n} = Astro.props\n---\n\nimg]:size-full [&>img]:object-cover\",\n className\n )}\n {...props}\n>\n \n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-vega/number-field.json b/public/r/styles/base-vega/number-field.json index 4339b0997..9183a1672 100644 --- a/public/r/styles/base-vega/number-field.json +++ b/public/r/styles/base-vega/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/src/components/ui/carousel/carousel-indicator.astro b/src/components/ui/carousel/carousel-indicator.astro index 570faa17c..5871ea661 100644 --- a/src/components/ui/carousel/carousel-indicator.astro +++ b/src/components/ui/carousel/carousel-indicator.astro @@ -3,10 +3,9 @@ import type { HTMLAttributes } from "astro/types" import { cn } from "@/lib/utils" -type Props = Omit, "type"> & - Omit, "type"> & { - index: number - } +type Props = Omit, "type"> & { + index: number +} const { class: className, @@ -15,13 +14,10 @@ const { "data-slot": dataSlot = "carousel-indicator", ...props } = Astro.props - -// A link to the slide's id also works without JavaScript. -const Tag = Astro.props.href ? "a" : "button" --- - - + diff --git a/src/components/ui/carousel/carousel.astro b/src/components/ui/carousel/carousel.astro index 5b05e114a..7f36f1931 100644 --- a/src/components/ui/carousel/carousel.astro +++ b/src/components/ui/carousel/carousel.astro @@ -69,29 +69,8 @@ const resolvedOpts: EmblaOptionsType = { root.dataset.carouselOptions || "{}" ) const api = EmblaCarousel(viewport, opts) - // Whether Embla runs at the current breakpoint. When it does not, the - // slides and links keep their native scrolling. + // Whether Embla runs at the current breakpoint. const active = () => api.internalEngine().options.active !== false - // A link to a slide, such as a thumbnail clicked before this script - // ran, scrolls the viewport natively. Embla moves the track instead, so - // it shows that slide's scroll position from an unscrolled viewport. - if (active()) { - viewport.scrollLeft = 0 - viewport.scrollTop = 0 - let hash = location.hash.slice(1) - try { - hash = decodeURIComponent(hash) - } catch { - // Keep a malformed hash as it is. - } - const slide = hash - ? api.slideNodes().findIndex((node) => node.id === hash) - : -1 - const snap = api - .internalEngine() - .slideRegistry.findIndex((group) => group.includes(slide)) - if (slide >= 0 && snap >= 0) api.scrollTo(snap, true) - } root.__fulldevCarouselApi = api const previous = getParts(root, "previous") const next = getParts(root, "next") @@ -137,25 +116,10 @@ const resolvedOpts: EmblaOptionsType = { window.matchMedia("(prefers-reduced-motion: reduce)").matches const onPrevious = () => api.scrollPrev(jump()) const onNext = () => api.scrollNext(jump()) - // An indicator that links to its slide scrolls the carousel on a plain - // click instead of moving the page. Where Embla is inactive, the link - // works as a link. const onIndicator = (event: MouseEvent) => { const indicator = event.currentTarget as HTMLElement const index = Number(indicator.dataset.index) - if (!Number.isInteger(index)) return - if ( - indicator instanceof HTMLAnchorElement && - (event.button !== 0 || - event.metaKey || - event.ctrlKey || - event.shiftKey || - event.altKey) - ) - return - if (!active() || index >= api.scrollSnapList().length) return - event.preventDefault() - api.scrollTo(index, jump()) + if (Number.isInteger(index)) api.scrollTo(index, jump()) } const onKeyDown = (event: KeyboardEvent) => { const target = event.target diff --git a/src/components/ui/number-field/number-field.astro b/src/components/ui/number-field/number-field.astro index cbf2c35f7..586fb3389 100644 --- a/src/components/ui/number-field/number-field.astro +++ b/src/components/ui/number-field/number-field.astro @@ -23,28 +23,38 @@ const { class: className, ...props } = Astro.props \n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-luma/number-field.json b/public/r/styles/base-luma/number-field.json index 37bffaec5..94105516d 100644 --- a/public/r/styles/base-luma/number-field.json +++ b/public/r/styles/base-luma/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-lyra/carousel.json b/public/r/styles/base-lyra/carousel.json index 509018193..138a1b57e 100644 --- a/public/r/styles/base-lyra/carousel.json +++ b/public/r/styles/base-lyra/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-lyra/number-field.json b/public/r/styles/base-lyra/number-field.json index 6d133d15c..3e26dcef2 100644 --- a/public/r/styles/base-lyra/number-field.json +++ b/public/r/styles/base-lyra/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-maia/carousel.json b/public/r/styles/base-maia/carousel.json index f7501931a..0e46f3c13 100644 --- a/public/r/styles/base-maia/carousel.json +++ b/public/r/styles/base-maia/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-maia/number-field.json b/public/r/styles/base-maia/number-field.json index fa71c90dd..b95cb0292 100644 --- a/public/r/styles/base-maia/number-field.json +++ b/public/r/styles/base-maia/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-mira/carousel.json b/public/r/styles/base-mira/carousel.json index 5bb2738de..feeb3280c 100644 --- a/public/r/styles/base-mira/carousel.json +++ b/public/r/styles/base-mira/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-mira/number-field.json b/public/r/styles/base-mira/number-field.json index 9976f70f5..7de8872be 100644 --- a/public/r/styles/base-mira/number-field.json +++ b/public/r/styles/base-mira/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-nova/carousel.json b/public/r/styles/base-nova/carousel.json index ae3f89ef0..8a6689802 100644 --- a/public/r/styles/base-nova/carousel.json +++ b/public/r/styles/base-nova/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-nova/number-field.json b/public/r/styles/base-nova/number-field.json index 5deb090e1..da99e5dbc 100644 --- a/public/r/styles/base-nova/number-field.json +++ b/public/r/styles/base-nova/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-rhea/carousel.json b/public/r/styles/base-rhea/carousel.json index af6d595e6..59a1c84e2 100644 --- a/public/r/styles/base-rhea/carousel.json +++ b/public/r/styles/base-rhea/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-rhea/number-field.json b/public/r/styles/base-rhea/number-field.json index c24afa61a..3b6517fd3 100644 --- a/public/r/styles/base-rhea/number-field.json +++ b/public/r/styles/base-rhea/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-sera/carousel.json b/public/r/styles/base-sera/carousel.json index 509018193..138a1b57e 100644 --- a/public/r/styles/base-sera/carousel.json +++ b/public/r/styles/base-sera/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-sera/number-field.json b/public/r/styles/base-sera/number-field.json index 581e2a923..52301bb82 100644 --- a/public/r/styles/base-sera/number-field.json +++ b/public/r/styles/base-sera/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-vega/carousel.json b/public/r/styles/base-vega/carousel.json index ae3f89ef0..8a6689802 100644 --- a/public/r/styles/base-vega/carousel.json +++ b/public/r/styles/base-vega/carousel.json @@ -13,7 +13,7 @@ "files": [ { "path": "src/components/ui/carousel/carousel.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/public/r/styles/base-vega/number-field.json b/public/r/styles/base-vega/number-field.json index 9183a1672..b4f763e60 100644 --- a/public/r/styles/base-vega/number-field.json +++ b/public/r/styles/base-vega/number-field.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/number-field/number-field.astro", - "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", + "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n>\n \n\n\n\n", "type": "registry:ui" }, { diff --git a/src/components/ui/carousel/carousel.astro b/src/components/ui/carousel/carousel.astro index 7f36f1931..ab5487814 100644 --- a/src/components/ui/carousel/carousel.astro +++ b/src/components/ui/carousel/carousel.astro @@ -104,7 +104,7 @@ const resolvedOpts: EmblaOptionsType = { const positions = api.scrollSnapList().length for (const indicator of indicators) { const index = Number(indicator.dataset.index) - indicator.hidden = active() && index >= positions + indicator.hidden = active() && (index < 0 || index >= positions) const current = index === selected indicator.dataset.state = current ? "active" : "inactive" if (current) indicator.setAttribute("aria-current", "true") @@ -119,7 +119,7 @@ const resolvedOpts: EmblaOptionsType = { const onIndicator = (event: MouseEvent) => { const indicator = event.currentTarget as HTMLElement const index = Number(indicator.dataset.index) - if (Number.isInteger(index)) api.scrollTo(index, jump()) + if (Number.isInteger(index) && index >= 0) api.scrollTo(index, jump()) } const onKeyDown = (event: KeyboardEvent) => { const target = event.target diff --git a/src/components/ui/number-field/number-field.astro b/src/components/ui/number-field/number-field.astro index 586fb3389..dc4c4c73d 100644 --- a/src/components/ui/number-field/number-field.astro +++ b/src/components/ui/number-field/number-field.astro @@ -25,9 +25,8 @@ const { class: className, ...props } = Astro.props // input and change events that typing fires. As in Base UI, they are left // out of the tab order, where the input's arrow keys step, and disabled when // a step would not change the value: at a bound, or while the input is - // disabled or read-only. They follow new attributes and replaced markup; - // a script that sets the value property fires input or change. Without - // JavaScript the input still works on its own. + // disabled or read-only. They follow new attributes and replaced markup. + // Without JavaScript the input still works on its own. const buttons = (root: Element) => root.querySelectorAll( '[data-slot="number-field-decrement"], [data-slot="number-field-increment"]' @@ -46,18 +45,6 @@ const { class: className, ...props } = Astro.props } return probe.value !== input.value } - const sync = (root: Element) => { - const input = root.querySelector("input") - if (!input) return - for (const button of buttons(root)) { - if (button.dataset.manualDisabled === "true") continue - const disabled = !canStep( - input, - button.dataset.slot === "number-field-decrement" - ) - if (button.disabled !== disabled) button.disabled = disabled - } - } const observed = new WeakSet() const observer = new MutationObserver((mutations) => { const roots = new Set() @@ -74,27 +61,33 @@ const { class: className, ...props } = Astro.props } for (const root of roots) sync(root) }) + // Syncs the buttons, and data-disabled for the input group look, and + // follows the root's later changes. + const sync = (root: Element) => { + const input = root.querySelector("input") + if (!input) return + if (input.disabled) root.setAttribute("data-disabled", "true") + else root.removeAttribute("data-disabled") + for (const button of buttons(root)) { + if (button.dataset.manualDisabled === "true") continue + const disabled = !canStep( + input, + button.dataset.slot === "number-field-decrement" + ) + if (button.disabled !== disabled) button.disabled = disabled + } + if (observed.has(root)) return + observed.add(root) + observer.observe(root, { + childList: true, + subtree: true, + attributes: true, + attributeFilter: ["min", "max", "step", "value", "disabled", "readonly"], + }) + } const syncAll = () => { - for (const root of document.querySelectorAll( - '[data-slot="number-field"]' - )) { + for (const root of document.querySelectorAll('[data-slot="number-field"]')) sync(root) - if (observed.has(root)) continue - observed.add(root) - observer.observe(root, { - childList: true, - subtree: true, - attributes: true, - attributeFilter: [ - "min", - "max", - "step", - "value", - "disabled", - "readonly", - ], - }) - } } if (!document.documentElement.dataset.numberFieldBound) { @@ -129,7 +122,9 @@ const { class: className, ...props } = Astro.props input.dispatchEvent(new Event("input", { bubbles: true })) input.dispatchEvent(new Event("change", { bubbles: true })) }) - for (const type of ["input", "change"]) + // A pointer or focus that reaches the field first also syncs it, for a + // field added later or a value a script set without an event. + for (const type of ["input", "change", "pointerover", "focusin"]) document.addEventListener(type, (event) => { const root = event.target instanceof Element && diff --git a/src/content/pages/components/carousel.mdx b/src/content/pages/components/carousel.mdx index 5032c0077..d8fe04b66 100644 --- a/src/content/pages/components/carousel.mdx +++ b/src/content/pages/components/carousel.mdx @@ -85,7 +85,8 @@ Use the `orientation` prop to set the scroll axis. Give a vertical `CarouselIndicator` shows the slide at its zero-based `index`, such as a thumbnail in a product gallery. The current one gets `aria-current="true"` and `data-state="active"`. The index counts scroll positions, which are the slides -when one shows at a time; an indicator without a position is hidden. +when one shows at a time; an indicator without a position is hidden. Give it a +size, such as `size-14`; an image inside fills it. ```astro live --- diff --git a/src/content/pages/liquid/components/carousel.mdx b/src/content/pages/liquid/components/carousel.mdx index 14b031a6c..4dbf3f99e 100644 --- a/src/content/pages/liquid/components/carousel.mdx +++ b/src/content/pages/liquid/components/carousel.mdx @@ -29,7 +29,7 @@ After this install, render these once in the layout head before theme overrides The preview and its Usage tab render the same native Liquid source. Use `data-slot` for parts, `data-variant` for variants and `data-size` for sizes. Keep your store's labels, translations and Shopify data in your theme. -The second carousel is a product gallery: one slide at a time with `carousel-indicator` thumbnails. Give each indicator the zero-based `data-index` of its slide; the controller scrolls to that slide on click and marks the current one with `aria-current`. The index counts scroll positions, which are the slides when one shows at a time; an indicator without a position is hidden. Make an indicator a link to its slide's `id` so it also works without JavaScript; once the runtime runs, a plain click scrolls the carousel without moving the page. To show a variant's image, send `carousel:set` with its index: `root.dispatchEvent(new CustomEvent('carousel:set', { detail: { index } }))`. +The second carousel is a product gallery: one slide at a time with `carousel-indicator` thumbnails. Give each indicator the zero-based `data-index` of its slide; the controller scrolls to that slide on click and marks the current one with `aria-current`. The index counts scroll positions, which are the slides when one shows at a time; an indicator without a position is hidden. Give it a width and an aspect ratio; an image inside fills it. Make an indicator a link to its slide's `id` so it also works without JavaScript; once the runtime runs, a plain click scrolls the carousel without moving the page. To show a variant's image, send `carousel:set` with its index: `root.dispatchEvent(new CustomEvent('carousel:set', { detail: { index } }))`. ## Parts diff --git a/src/content/pages/react/components/carousel-indicator.mdx b/src/content/pages/react/components/carousel-indicator.mdx index fa4434e2d..39e9f49fb 100644 --- a/src/content/pages/react/components/carousel-indicator.mdx +++ b/src/content/pages/react/components/carousel-indicator.mdx @@ -35,7 +35,9 @@ import { CarouselIndicator } from "@/components/ui/carousel-indicator" `CarouselIndicator` goes inside `Carousel` and scrolls to the zero-based `index`, such as a thumbnail in a product gallery. The current one gets `aria-current="true"` and `data-state="active"`. The index counts scroll -positions, which are the slides when one shows at a time. +positions, which are the slides when one shows at a time; an indicator without +a position is hidden. Give it a size, such as `size-14`; an image inside fills +it. ## API Reference From 1e2a50f4571f676589be7e221ba2ceb62540a5e8 Mon Sep 17 00:00:00 2001 From: Sil Date: Thu, 26 Nov 2026 18:30:55 +0100 Subject: [PATCH 14/32] Keep focus while a step button is pressed, delegate Astro indicator clicks, hide indicators while Embla is inactive Co-Authored-By: Claude Opus 5.5 --- liquid/assets/ui-controls.js | 13 ++++++++++ liquid/assets/ui-manifest.json | 2 +- public/r/liquid/components.json | 2 +- public/r/liquid/runtime.json | 2 +- .../styles/base-luma/carousel-indicator.json | 2 +- .../styles/base-lyra/carousel-indicator.json | 2 +- .../styles/base-maia/carousel-indicator.json | 2 +- .../styles/base-mira/carousel-indicator.json | 2 +- .../styles/base-nova/carousel-indicator.json | 2 +- .../styles/base-rhea/carousel-indicator.json | 2 +- .../styles/base-sera/carousel-indicator.json | 2 +- .../styles/base-vega/carousel-indicator.json | 2 +- public/r/styles/base-luma/carousel.json | 2 +- public/r/styles/base-luma/number-field.json | 2 +- public/r/styles/base-lyra/carousel.json | 2 +- public/r/styles/base-lyra/number-field.json | 2 +- public/r/styles/base-maia/carousel.json | 2 +- public/r/styles/base-maia/number-field.json | 2 +- public/r/styles/base-mira/carousel.json | 2 +- public/r/styles/base-mira/number-field.json | 2 +- public/r/styles/base-nova/carousel.json | 2 +- public/r/styles/base-nova/number-field.json | 2 +- public/r/styles/base-rhea/carousel.json | 2 +- public/r/styles/base-rhea/number-field.json | 2 +- public/r/styles/base-sera/carousel.json | 2 +- public/r/styles/base-sera/number-field.json | 2 +- public/r/styles/base-vega/carousel.json | 2 +- public/r/styles/base-vega/number-field.json | 2 +- .../src/components/ui/carousel-indicator.tsx | 10 +++++--- src/components/ui/carousel/carousel.astro | 24 +++++++++++-------- .../ui/number-field/number-field.astro | 12 ++++++++++ 31 files changed, 73 insertions(+), 40 deletions(-) diff --git a/liquid/assets/ui-controls.js b/liquid/assets/ui-controls.js index 9485b3f69..c7dceb7c4 100644 --- a/liquid/assets/ui-controls.js +++ b/liquid/assets/ui-controls.js @@ -219,6 +219,19 @@ function initializeNumberField(_, root) { }, options, ); + // Pressing a button keeps the focus where it is, so a typed value is not committed by a blur, and a + // cart that refreshes on change, before the click steps it. + root.addEventListener( + 'mousedown', + (event) => { + if ( + event.target instanceof Element && + event.target.closest('[data-slot="number-field-decrement"], [data-slot="number-field-increment"]') + ) + event.preventDefault(); + }, + options, + ); // A pointer or focus that reaches the field first also syncs it, for a value a script set without an event. for (const type of ['input', 'change', 'pointerover', 'focusin']) root.addEventListener(type, sync, options); // A form reset restores the input after the event, also for an input in a form elsewhere. diff --git a/liquid/assets/ui-manifest.json b/liquid/assets/ui-manifest.json index 2ac3d4cee..771f4473e 100644 --- a/liquid/assets/ui-manifest.json +++ b/liquid/assets/ui-manifest.json @@ -6,7 +6,7 @@ "snippets/ui-init.liquid": "98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af", "assets/ui-licenses.json": "874a6f264f1503b2e577aee651e7285fd6ac808f56cadf8c7d58914bf2396f49", "assets/ui-carousel.js": "749ad4112b6b2506386a6fa6c4b111ae87b22f85838cfd2f5e249631d1115b55", - "assets/ui-controls.js": "131ea21dd2769dbec0042da14b37d6e6488a18b0a60dea03fc0e529210cc4f72", + "assets/ui-controls.js": "19258aecd9b13498d233b3f74416a095eafd6416cf4965bdc49e1b2dfb0a63f4", "assets/ui-lifecycle.js": "78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6", "assets/ui-start.js": "738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500", "assets/data-slot-core.js": "d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6", diff --git a/public/r/liquid/components.json b/public/r/liquid/components.json index ed8731604..e9e180eb7 100644 --- a/public/r/liquid/components.json +++ b/public/r/liquid/components.json @@ -76,7 +76,7 @@ }, { "path": "assets/ui-manifest.json", - "content": "{\n \"registry\": \"https://ui.full.dev/r/liquid/\",\n \"files\": {\n \"assets/ui-tokens.css\": \"55a8f2810ab4a1498ca3dd2f6e7dc89009c60e2402ddfcb95783b6eba996c374\",\n \"snippets/ui-base.liquid\": \"bc55195b5b6c82e63deeeed1255fd19b434c47866815f82b95b9202421256d34\",\n \"snippets/ui-init.liquid\": \"98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af\",\n \"assets/ui-licenses.json\": \"874a6f264f1503b2e577aee651e7285fd6ac808f56cadf8c7d58914bf2396f49\",\n \"assets/ui-carousel.js\": \"749ad4112b6b2506386a6fa6c4b111ae87b22f85838cfd2f5e249631d1115b55\",\n \"assets/ui-controls.js\": \"131ea21dd2769dbec0042da14b37d6e6488a18b0a60dea03fc0e529210cc4f72\",\n \"assets/ui-lifecycle.js\": \"78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6\",\n \"assets/ui-start.js\": \"738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500\",\n \"assets/data-slot-core.js\": \"d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6\",\n \"assets/data-slot-dialog.js\": \"a5201f452700d04145b5156cc46880d2b5bdf7521b03ff9521c3f7693ee1b5d5\",\n \"assets/data-slot-command.js\": \"299d99c1a5f7b646692575e5d48e3f7b9209d76119508116c1a216dc80d33d13\",\n \"assets/data-slot-navigation-menu.js\": \"f9b42a9bceca8e1103718d43aa5f0d141ab63d38278cb121e790a2c80e827b68\",\n \"assets/data-slot-accordion.js\": \"fe6b0ac2c87a2e31582e5e88c509e0b508f41d0065d0a420407999ad210e6a27\",\n \"assets/data-slot-tabs.js\": \"1f187134bba755cfda9d35cf9f16174c1a183862d32d100f270f4177033058c7\",\n \"assets/data-slot-combobox.js\": \"b5f2ed9d65a43d836c59c0d4dc33c16ab12ef9fa05d510078b5d62517d854db6\",\n \"assets/data-slot-carousel.js\": \"d83ef938d3b62dc3652b123428ca2261e03fb2ba1133992b0f5545a974238d03\",\n \"assets/data-slot-alert-dialog.js\": \"1caee9a86bb2a816ea32bc1a48b82f3cc588ec3c563ebc443f836ab1dae2f618\",\n \"assets/data-slot-collapsible.js\": \"c42f76e3dfeff4570eb2f5104434fbffd3ef55710833e888965c590ce59f4f9f\",\n \"assets/data-slot-drawer.js\": \"c9343b26ea27193cc1d2da3e41bf452005bc2e534151fa1a762b2b6535de28d0\",\n \"assets/data-slot-dropdown-menu.js\": \"543c5717c9ba8363bbab4c0a11005980d75d4baaed79cf7123c7bcfe3ec8720b\",\n \"assets/data-slot-hover-card.js\": \"86e1bfa5d4822f180f3501ca7cc51bf044d4e917a7ebdb7a10b70006dba6467f\",\n \"assets/data-slot-popover.js\": \"526e30d663381329a7a6394eae886224024034d0abf96f888c932bb4b8c1b1cb\",\n \"assets/data-slot-radio-group.js\": \"7a9b90166de80d79ee42aa2df73e4d8179e9d291cb30b3095c7d8332375b0499\",\n \"assets/data-slot-select.js\": \"13d1a3fbe90f4b3b830d987b6a28267897faa3589bf00e64edca4938acbf406b\",\n \"assets/data-slot-slider.js\": \"0d10131aa95450aa1269234103ead8d805d6abdf9e0683510f4fcf58ab0f1efa\",\n \"assets/data-slot-switch.js\": \"0d5b09a89429880f61aeb540be5f87383ba5c6beb261ad468e9a6cf18e45b6a0\",\n \"assets/data-slot-toast.js\": \"817744d32eebe3bfc50df068715e0b572350ca53fe5ad0e04ec8646800e1caf0\",\n \"assets/data-slot-toggle.js\": \"7a651d578cb83be842c8e59fe1a2cd124594b1fd6c942faf0a33cf9e57326947\",\n \"assets/data-slot-toggle-group.js\": \"c1f2fc9712974e63e4e44c97ab2a1ec8bc3c3cb73c1afb4578b085fed11977f1\",\n \"assets/data-slot-tooltip.js\": \"5a9e51a54669153620eb3512e74487eac12ababe3331aff7dfed6c717b8b93c0\",\n \"snippets/ui-runtime.liquid\": \"62ae98f4ad16dc0ca406d96bbabb373cd30a63dd385e3614da0dcd2e63d0f17c\",\n \"assets/ui-motion.js\": \"2252a6794ddb162b73ee1640af212292b8c520e98ae09ea862b479078f81d3d1\",\n \"snippets/ui-banner.liquid\": \"9965b12e9a2036aca6e35f1327da8a240c894a6fd91d99f37e77107818d271a3\",\n \"snippets/ui-tabs.liquid\": \"5b57bb3d6400e44ef9343f7b45d9baf2d8581d678ccc64764be60164160687eb\",\n \"snippets/ui-form.liquid\": \"1c002d21c441e217a8f3d64268d429c97e4785af118eb7f7abb5ff1c3d10a3b6\",\n \"assets/ui-form.css\": \"ab0dd70553818fe0799e393f6811e949884eca9f44d9ceff4c2b333c0bf724b4\",\n \"snippets/ui-select.liquid\": \"2d8c99759161a024285d1b54c0ca166dc7b13c97596497351253e945b5e52ee2\",\n \"snippets/ui-field.liquid\": \"cf73aaaf3e27bc9d121dd089317610fbd08b9550a1d5fb0738337c6817879309\",\n \"assets/ui-field.css\": \"96f846a52ab0b832a9eca70ef430e5fd14664a3367d04842de320a82e622722b\",\n \"snippets/ui-item.liquid\": \"fe03c1a3e6df09192c3ac7a08520b0fc1c629a597a029d193ff91655cb7ceac0\",\n \"snippets/ui-spinner.liquid\": \"84d48693f10cb8af4549cc0d71cd847a85da0e111f2ad64dae309c128c2a8c4a\",\n \"snippets/ui-video.liquid\": \"14acea7c523198269a9165270decac21a43a5d69bf12bd248a76aceb2e9b26ed\",\n \"assets/ui-video.css\": \"c1572853f48474f6291a70ccdb1085512700fc3dcbbdaebd71374b838ec67fee\",\n \"snippets/ui-button.liquid\": \"d0b4ad1b574f10f986a7d5b2719a16c4ba29b80887962b9a8b6464afef6fe54c\",\n \"snippets/ui-toggle.liquid\": \"c86100cf7c163c0d5bc81976fd794788f68fab2ebc5c0887d8042958ce020912\",\n \"snippets/ui-logo.liquid\": \"5d6de7be3f7aab9e05c9533afef39ea0e9dce1b4ee12a13bf7b82780c973b126\",\n \"snippets/ui-kbd.liquid\": \"024f34ed2932d183671f7fa44ff724a70ec17b766cf7e0d3f565f46f33ab2cf2\",\n \"snippets/ui-rating.liquid\": \"aa57adc5a5508b368da78023b242694e6ce924b6e9e5407c141a5030a414bf1d\",\n \"assets/ui-rating.css\": \"e5efea2a9edaea78522f20ebd9e9d01abe8a2fcd310c193239adf80ec33b4975\",\n \"snippets/ui-tooltip.liquid\": \"d2863a0da3090c73dda10d8615b84fc50fab64373a466fbf4e4e743cfb083c96\",\n \"snippets/ui-avatar.liquid\": \"9bfb5d5f535857cc45f31afbc91c855e94972bab07ad3b4fe2dc0d241106385d\",\n \"snippets/ui-empty.liquid\": \"0e7fb5b68d50abcf7213304034762b4dd535c791dd6f4dc517100145e04b0cde\",\n \"snippets/ui-alert-dialog.liquid\": \"f739374035ffa0f3bca2c4b6d946710751c8268c8f1dde535251be9c2c7b0cd0\",\n \"snippets/ui-navigation-menu.liquid\": \"52aecbb36b0031810a85a99f5d4439e852dc1ba3a872b9525dd75c8df8b5a84e\",\n \"assets/ui-navigation-menu.css\": \"29a47ce0eb549e58cc8195dcb656bd2cef56360178c76acfc2d481a110463ca6\",\n \"snippets/ui-typography.liquid\": \"b03dc93c4de6636164a206c95979caa6fe9ab7cf8d1c24d75611416259da7979\",\n \"assets/ui-typography.css\": \"0daa86d256566ab8065411682cb8c90aa3b3eab6e62fbd8165dac1147e4edde9\",\n \"snippets/ui-toc.liquid\": \"04038e0870112b2335b80b4092814915105b31d08cdd36ecf1f4de1761f66acf\",\n \"snippets/ui-icon.liquid\": \"ca75a9485eb33cdb31a3a4e2e5ca03ce74d4995dbd1696d964832a87602bf3ca\",\n \"assets/ui-icon.css\": \"cfb1a47905cbd9c25b635c96926a77f8eed983a4aca62fdce758345dcc792add\",\n \"snippets/ui-combobox.liquid\": \"bacd605b44237512a74d34119d01432440b76ae60218dae6a6f37f98b32e3e00\",\n \"snippets/ui-toast.liquid\": \"bb032d90d6084fb15e12da22777635b80d09a06402513c46c89e853e3ede0405\",\n \"assets/ui-toast.css\": \"c322fab210a202fa434695025550495dbdc93e688ed7ae39303fea9830864d0b\",\n \"snippets/ui-header.liquid\": \"cc14effb4e3b6c4ac397e306e4ebd270a31b3415cc12ffbeb6cd38f411eaba80\",\n \"snippets/ui-command.liquid\": \"4a37f59dc0039fa1505de764472212d6cd7c4e5c52b737a1700e928db286f233\",\n \"snippets/ui-accordion.liquid\": \"4b58c83ae13e14e03a3129a2dccbd02eeafa90c1e48edbbf9af2dc412bf3aabf\",\n \"assets/ui-accordion.css\": \"430924440bd0f1d49ceb72baffc77404c9411c31c24b940d75861daba2649e83\",\n \"snippets/ui-slider.liquid\": \"f2de1fb9099de77bf291455447bc86b2578781e7cf0efdf12117fb4575e0b0e6\",\n \"snippets/ui-input.liquid\": \"5f4b2adf298e84ef5845fb123b0753dd76294731da657fe395313ad7fe3f01a9\",\n \"snippets/ui-input-group.liquid\": \"ac2c0b7db90c0ad0bfe3e11b7673f9fe2241c49f2ddac49a43218bc0e9b9f742\",\n \"snippets/ui-triggers.liquid\": \"ba9c7b802fb0a2aba0e9cc145a9dd44134964afb53e5363cf9e0ae138b906cc9\",\n \"snippets/ui-toggle-group.liquid\": \"2d61e0b9bc746e05834157f5a75d23123f02bc2df737412e4f6099844afc4f49\",\n \"snippets/ui-dialog.liquid\": \"779bbcd609a69ed29a984df1f26f9ed80fd24d71c4ee3ead5f4daa055b28e9fb\",\n \"snippets/ui-drawer.liquid\": \"16120fdd70fac393470c3936223e78ad5f81164e2b7616fd075e8e82098a17d5\",\n \"snippets/ui-badge.liquid\": \"14b826127eaedd2f5acac0ca74fbe403ef18b08ca6651995c0bf0501210d55f6\",\n \"snippets/ui-alert.liquid\": \"392bf006b427178d4699272115317e0db934d881be9534b4638c492fa1825a83\",\n \"snippets/ui-table.liquid\": \"6599d8b3bd193761571c2b71e499f78546ba5c2768d4e0a0a60cd0e348632e5b\",\n \"snippets/ui-breadcrumb.liquid\": \"dafdeaf03286b386c90f8e72777de1946fba4718ee568bd85ca7bc768483a3ca\",\n \"snippets/ui-aspect-ratio.liquid\": \"c8aae05fcd76af7ae768aedafd7e758533e2b52135b00ff72940896ad793f177\",\n \"snippets/ui-price.liquid\": \"96156754aee3a04aa3ae7084a14470000213e8be14468c4937e9f3a87e348234\",\n \"assets/ui-price.css\": \"95c947e219621102b704164e48a83e381e6e2b27b99311a294e076745b39a36f\",\n \"snippets/ui-radio-group.liquid\": \"af9978e18716cc86d03ed21dece8304992e74a4fab88e12069b0648cfd944492\",\n \"snippets/ui-checkbox.liquid\": \"0e4dd1738b355c5a93533e0b813e2e6c72f7491c289d65aa7b6435be1c599006\",\n \"snippets/ui-switch.liquid\": \"84ed60c777e77daec8b5fe6f2ee434877d51224235dc1bc2e17927cd182fe646\",\n \"snippets/ui-skeleton.liquid\": \"1e30245f6577f73d28f4badbc293934656882a29d5dec1d2f74ef95f3bcede2c\",\n \"snippets/ui-separator.liquid\": \"90b1d2795666b6c51f35645ca8d07659f2c4868fe9553e233cddb4e962095f6e\",\n \"snippets/ui-card.liquid\": \"581a46843f1280ebace0423ee84289b40fbd46142e6a9ab3940f63eca0e4c5f2\",\n \"assets/ui-card.css\": \"ee7e4192ec814066d0c9838f810ae4ca267b9f071b7fa945c43226d46b0f8dc9\",\n \"snippets/ui-pagination.liquid\": \"30943c00686e1a23d92865465b38c964e059b14ae3a20fb7fe151824a73773eb\",\n \"snippets/ui-popup.liquid\": \"840f938aa2a331e4e7d55c659f25e841dcfb1bf5c5cadace6263243352ff8359\",\n \"snippets/ui-sheet.liquid\": \"0de705bed685bf78fa3af4517c947b38d62a1aa56bf29356c0a201b64db17614\",\n \"snippets/ui-carousel.liquid\": \"59dc0c06b2a9f2f779ca22b3ff4b005071d4909aba052d6f8f0a1aa19e84c2ce\",\n \"assets/ui-carousel.css\": \"04274e5fa2383386e70d8e4c01fbbb0b12a4ffe3f74c92d59b992474ffa975f4\",\n \"snippets/ui-attachment.liquid\": \"6881df7cdb1b27462d8cce7c17c0b4ed4dd860d62535e1daa81378a57bb69ddf\",\n \"snippets/ui-marquee.liquid\": \"47d5df8f1ff46a2cd48a132986c2ba199c9e19b485e62fc3e0d19091d4baaab1\",\n \"assets/ui-marquee.css\": \"ef13b83f3dbcd6685fcee3dba14238386d0f34bc2266a5326c0b6f2d40a23fce\",\n \"snippets/ui-invalid-controls.liquid\": \"a169e8244cc86f5431f902f7a73b37188051ba8f2ef3e323830462dae5aed066\",\n \"snippets/ui-section.liquid\": \"da358cd87447457f3675b035b48556103d86cd11e0b2240ae2800e4c9ea54bdc\",\n \"assets/ui-section.css\": \"f4936a02aaf1927ccced898886857855e4b5e95fafe5c2a52748ecbbe87b6621\",\n \"snippets/ui-button-group.liquid\": \"a2790f8da0f8b37acc1ed558ba1548ea250a5b93e1b2dfbd11eb150f3f02783a\",\n \"snippets/ui-collapsible.liquid\": \"e6107a03d00b8cc75bb03206e64b9aa7f2989d982c0408b398b62067c6df450a\",\n \"snippets/ui-dropdown-menu.liquid\": \"25b31e09e3e7bfee9a397ca4de6e310754844c55e71639eadba917b0f4e6d2e5\",\n \"snippets/ui-popover.liquid\": \"44ff93d72eaad409f56f8a84ce25715e2c3633f2ac49ba7a414767c6dbe2ee47\",\n \"snippets/ui-hover-card.liquid\": \"ba4133d352fa14296743138c99f3694015bafe953751b8e42155f047c4beb9f0\",\n \"snippets/ui-number-field.liquid\": \"544bbc038d11fe0f3d7ddd4c1af7b6c76f2a726f1aa63cd94fc44ee7e79b2fbf\",\n \"snippets/ui-swatch.liquid\": \"9a39fc70974416ba933e90d799e6a805ba1f490c7b48d9a7e25d50caae596e7d\",\n \"snippets/ui.liquid\": \"569e78bf6f84cdc7b1f7b5ba2681e1e52c6f5d02c4fe4ade16e580bffb963ae0\"\n }\n}\n", + "content": "{\n \"registry\": \"https://ui.full.dev/r/liquid/\",\n \"files\": {\n \"assets/ui-tokens.css\": \"55a8f2810ab4a1498ca3dd2f6e7dc89009c60e2402ddfcb95783b6eba996c374\",\n \"snippets/ui-base.liquid\": \"bc55195b5b6c82e63deeeed1255fd19b434c47866815f82b95b9202421256d34\",\n \"snippets/ui-init.liquid\": \"98f56067cf51e4cb2cd3e10ede7c00304c73ce57fe5b5a0270c0d8a9e448f7af\",\n \"assets/ui-licenses.json\": \"874a6f264f1503b2e577aee651e7285fd6ac808f56cadf8c7d58914bf2396f49\",\n \"assets/ui-carousel.js\": \"749ad4112b6b2506386a6fa6c4b111ae87b22f85838cfd2f5e249631d1115b55\",\n \"assets/ui-controls.js\": \"19258aecd9b13498d233b3f74416a095eafd6416cf4965bdc49e1b2dfb0a63f4\",\n \"assets/ui-lifecycle.js\": \"78c975473620171c01b1289bf5cdce56a5626c847437fa5168fb91a4300260d6\",\n \"assets/ui-start.js\": \"738d7e171b5d7993bfd0a169e4382b2db08340f52a87059b94d27e1fe3606500\",\n \"assets/data-slot-core.js\": \"d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6\",\n \"assets/data-slot-dialog.js\": \"a5201f452700d04145b5156cc46880d2b5bdf7521b03ff9521c3f7693ee1b5d5\",\n \"assets/data-slot-command.js\": \"299d99c1a5f7b646692575e5d48e3f7b9209d76119508116c1a216dc80d33d13\",\n \"assets/data-slot-navigation-menu.js\": \"f9b42a9bceca8e1103718d43aa5f0d141ab63d38278cb121e790a2c80e827b68\",\n \"assets/data-slot-accordion.js\": \"fe6b0ac2c87a2e31582e5e88c509e0b508f41d0065d0a420407999ad210e6a27\",\n \"assets/data-slot-tabs.js\": \"1f187134bba755cfda9d35cf9f16174c1a183862d32d100f270f4177033058c7\",\n \"assets/data-slot-combobox.js\": \"b5f2ed9d65a43d836c59c0d4dc33c16ab12ef9fa05d510078b5d62517d854db6\",\n \"assets/data-slot-carousel.js\": \"d83ef938d3b62dc3652b123428ca2261e03fb2ba1133992b0f5545a974238d03\",\n \"assets/data-slot-alert-dialog.js\": \"1caee9a86bb2a816ea32bc1a48b82f3cc588ec3c563ebc443f836ab1dae2f618\",\n \"assets/data-slot-collapsible.js\": \"c42f76e3dfeff4570eb2f5104434fbffd3ef55710833e888965c590ce59f4f9f\",\n \"assets/data-slot-drawer.js\": \"c9343b26ea27193cc1d2da3e41bf452005bc2e534151fa1a762b2b6535de28d0\",\n \"assets/data-slot-dropdown-menu.js\": \"543c5717c9ba8363bbab4c0a11005980d75d4baaed79cf7123c7bcfe3ec8720b\",\n \"assets/data-slot-hover-card.js\": \"86e1bfa5d4822f180f3501ca7cc51bf044d4e917a7ebdb7a10b70006dba6467f\",\n \"assets/data-slot-popover.js\": \"526e30d663381329a7a6394eae886224024034d0abf96f888c932bb4b8c1b1cb\",\n \"assets/data-slot-radio-group.js\": \"7a9b90166de80d79ee42aa2df73e4d8179e9d291cb30b3095c7d8332375b0499\",\n \"assets/data-slot-select.js\": \"13d1a3fbe90f4b3b830d987b6a28267897faa3589bf00e64edca4938acbf406b\",\n \"assets/data-slot-slider.js\": \"0d10131aa95450aa1269234103ead8d805d6abdf9e0683510f4fcf58ab0f1efa\",\n \"assets/data-slot-switch.js\": \"0d5b09a89429880f61aeb540be5f87383ba5c6beb261ad468e9a6cf18e45b6a0\",\n \"assets/data-slot-toast.js\": \"817744d32eebe3bfc50df068715e0b572350ca53fe5ad0e04ec8646800e1caf0\",\n \"assets/data-slot-toggle.js\": \"7a651d578cb83be842c8e59fe1a2cd124594b1fd6c942faf0a33cf9e57326947\",\n \"assets/data-slot-toggle-group.js\": \"c1f2fc9712974e63e4e44c97ab2a1ec8bc3c3cb73c1afb4578b085fed11977f1\",\n \"assets/data-slot-tooltip.js\": \"5a9e51a54669153620eb3512e74487eac12ababe3331aff7dfed6c717b8b93c0\",\n \"snippets/ui-runtime.liquid\": \"62ae98f4ad16dc0ca406d96bbabb373cd30a63dd385e3614da0dcd2e63d0f17c\",\n \"assets/ui-motion.js\": \"2252a6794ddb162b73ee1640af212292b8c520e98ae09ea862b479078f81d3d1\",\n \"snippets/ui-banner.liquid\": \"9965b12e9a2036aca6e35f1327da8a240c894a6fd91d99f37e77107818d271a3\",\n \"snippets/ui-tabs.liquid\": \"5b57bb3d6400e44ef9343f7b45d9baf2d8581d678ccc64764be60164160687eb\",\n \"snippets/ui-form.liquid\": \"1c002d21c441e217a8f3d64268d429c97e4785af118eb7f7abb5ff1c3d10a3b6\",\n \"assets/ui-form.css\": \"ab0dd70553818fe0799e393f6811e949884eca9f44d9ceff4c2b333c0bf724b4\",\n \"snippets/ui-select.liquid\": \"2d8c99759161a024285d1b54c0ca166dc7b13c97596497351253e945b5e52ee2\",\n \"snippets/ui-field.liquid\": \"cf73aaaf3e27bc9d121dd089317610fbd08b9550a1d5fb0738337c6817879309\",\n \"assets/ui-field.css\": \"96f846a52ab0b832a9eca70ef430e5fd14664a3367d04842de320a82e622722b\",\n \"snippets/ui-item.liquid\": \"fe03c1a3e6df09192c3ac7a08520b0fc1c629a597a029d193ff91655cb7ceac0\",\n \"snippets/ui-spinner.liquid\": \"84d48693f10cb8af4549cc0d71cd847a85da0e111f2ad64dae309c128c2a8c4a\",\n \"snippets/ui-video.liquid\": \"14acea7c523198269a9165270decac21a43a5d69bf12bd248a76aceb2e9b26ed\",\n \"assets/ui-video.css\": \"c1572853f48474f6291a70ccdb1085512700fc3dcbbdaebd71374b838ec67fee\",\n \"snippets/ui-button.liquid\": \"d0b4ad1b574f10f986a7d5b2719a16c4ba29b80887962b9a8b6464afef6fe54c\",\n \"snippets/ui-toggle.liquid\": \"c86100cf7c163c0d5bc81976fd794788f68fab2ebc5c0887d8042958ce020912\",\n \"snippets/ui-logo.liquid\": \"5d6de7be3f7aab9e05c9533afef39ea0e9dce1b4ee12a13bf7b82780c973b126\",\n \"snippets/ui-kbd.liquid\": \"024f34ed2932d183671f7fa44ff724a70ec17b766cf7e0d3f565f46f33ab2cf2\",\n \"snippets/ui-rating.liquid\": \"aa57adc5a5508b368da78023b242694e6ce924b6e9e5407c141a5030a414bf1d\",\n \"assets/ui-rating.css\": \"e5efea2a9edaea78522f20ebd9e9d01abe8a2fcd310c193239adf80ec33b4975\",\n \"snippets/ui-tooltip.liquid\": \"d2863a0da3090c73dda10d8615b84fc50fab64373a466fbf4e4e743cfb083c96\",\n \"snippets/ui-avatar.liquid\": \"9bfb5d5f535857cc45f31afbc91c855e94972bab07ad3b4fe2dc0d241106385d\",\n \"snippets/ui-empty.liquid\": \"0e7fb5b68d50abcf7213304034762b4dd535c791dd6f4dc517100145e04b0cde\",\n \"snippets/ui-alert-dialog.liquid\": \"f739374035ffa0f3bca2c4b6d946710751c8268c8f1dde535251be9c2c7b0cd0\",\n \"snippets/ui-navigation-menu.liquid\": \"52aecbb36b0031810a85a99f5d4439e852dc1ba3a872b9525dd75c8df8b5a84e\",\n \"assets/ui-navigation-menu.css\": \"29a47ce0eb549e58cc8195dcb656bd2cef56360178c76acfc2d481a110463ca6\",\n \"snippets/ui-typography.liquid\": \"b03dc93c4de6636164a206c95979caa6fe9ab7cf8d1c24d75611416259da7979\",\n \"assets/ui-typography.css\": \"0daa86d256566ab8065411682cb8c90aa3b3eab6e62fbd8165dac1147e4edde9\",\n \"snippets/ui-toc.liquid\": \"04038e0870112b2335b80b4092814915105b31d08cdd36ecf1f4de1761f66acf\",\n \"snippets/ui-icon.liquid\": \"ca75a9485eb33cdb31a3a4e2e5ca03ce74d4995dbd1696d964832a87602bf3ca\",\n \"assets/ui-icon.css\": \"cfb1a47905cbd9c25b635c96926a77f8eed983a4aca62fdce758345dcc792add\",\n \"snippets/ui-combobox.liquid\": \"bacd605b44237512a74d34119d01432440b76ae60218dae6a6f37f98b32e3e00\",\n \"snippets/ui-toast.liquid\": \"bb032d90d6084fb15e12da22777635b80d09a06402513c46c89e853e3ede0405\",\n \"assets/ui-toast.css\": \"c322fab210a202fa434695025550495dbdc93e688ed7ae39303fea9830864d0b\",\n \"snippets/ui-header.liquid\": \"cc14effb4e3b6c4ac397e306e4ebd270a31b3415cc12ffbeb6cd38f411eaba80\",\n \"snippets/ui-command.liquid\": \"4a37f59dc0039fa1505de764472212d6cd7c4e5c52b737a1700e928db286f233\",\n \"snippets/ui-accordion.liquid\": \"4b58c83ae13e14e03a3129a2dccbd02eeafa90c1e48edbbf9af2dc412bf3aabf\",\n \"assets/ui-accordion.css\": \"430924440bd0f1d49ceb72baffc77404c9411c31c24b940d75861daba2649e83\",\n \"snippets/ui-slider.liquid\": \"f2de1fb9099de77bf291455447bc86b2578781e7cf0efdf12117fb4575e0b0e6\",\n \"snippets/ui-input.liquid\": \"5f4b2adf298e84ef5845fb123b0753dd76294731da657fe395313ad7fe3f01a9\",\n \"snippets/ui-input-group.liquid\": \"ac2c0b7db90c0ad0bfe3e11b7673f9fe2241c49f2ddac49a43218bc0e9b9f742\",\n \"snippets/ui-triggers.liquid\": \"ba9c7b802fb0a2aba0e9cc145a9dd44134964afb53e5363cf9e0ae138b906cc9\",\n \"snippets/ui-toggle-group.liquid\": \"2d61e0b9bc746e05834157f5a75d23123f02bc2df737412e4f6099844afc4f49\",\n \"snippets/ui-dialog.liquid\": \"779bbcd609a69ed29a984df1f26f9ed80fd24d71c4ee3ead5f4daa055b28e9fb\",\n \"snippets/ui-drawer.liquid\": \"16120fdd70fac393470c3936223e78ad5f81164e2b7616fd075e8e82098a17d5\",\n \"snippets/ui-badge.liquid\": \"14b826127eaedd2f5acac0ca74fbe403ef18b08ca6651995c0bf0501210d55f6\",\n \"snippets/ui-alert.liquid\": \"392bf006b427178d4699272115317e0db934d881be9534b4638c492fa1825a83\",\n \"snippets/ui-table.liquid\": \"6599d8b3bd193761571c2b71e499f78546ba5c2768d4e0a0a60cd0e348632e5b\",\n \"snippets/ui-breadcrumb.liquid\": \"dafdeaf03286b386c90f8e72777de1946fba4718ee568bd85ca7bc768483a3ca\",\n \"snippets/ui-aspect-ratio.liquid\": \"c8aae05fcd76af7ae768aedafd7e758533e2b52135b00ff72940896ad793f177\",\n \"snippets/ui-price.liquid\": \"96156754aee3a04aa3ae7084a14470000213e8be14468c4937e9f3a87e348234\",\n \"assets/ui-price.css\": \"95c947e219621102b704164e48a83e381e6e2b27b99311a294e076745b39a36f\",\n \"snippets/ui-radio-group.liquid\": \"af9978e18716cc86d03ed21dece8304992e74a4fab88e12069b0648cfd944492\",\n \"snippets/ui-checkbox.liquid\": \"0e4dd1738b355c5a93533e0b813e2e6c72f7491c289d65aa7b6435be1c599006\",\n \"snippets/ui-switch.liquid\": \"84ed60c777e77daec8b5fe6f2ee434877d51224235dc1bc2e17927cd182fe646\",\n \"snippets/ui-skeleton.liquid\": \"1e30245f6577f73d28f4badbc293934656882a29d5dec1d2f74ef95f3bcede2c\",\n \"snippets/ui-separator.liquid\": \"90b1d2795666b6c51f35645ca8d07659f2c4868fe9553e233cddb4e962095f6e\",\n \"snippets/ui-card.liquid\": \"581a46843f1280ebace0423ee84289b40fbd46142e6a9ab3940f63eca0e4c5f2\",\n \"assets/ui-card.css\": \"ee7e4192ec814066d0c9838f810ae4ca267b9f071b7fa945c43226d46b0f8dc9\",\n \"snippets/ui-pagination.liquid\": \"30943c00686e1a23d92865465b38c964e059b14ae3a20fb7fe151824a73773eb\",\n \"snippets/ui-popup.liquid\": \"840f938aa2a331e4e7d55c659f25e841dcfb1bf5c5cadace6263243352ff8359\",\n \"snippets/ui-sheet.liquid\": \"0de705bed685bf78fa3af4517c947b38d62a1aa56bf29356c0a201b64db17614\",\n \"snippets/ui-carousel.liquid\": \"59dc0c06b2a9f2f779ca22b3ff4b005071d4909aba052d6f8f0a1aa19e84c2ce\",\n \"assets/ui-carousel.css\": \"04274e5fa2383386e70d8e4c01fbbb0b12a4ffe3f74c92d59b992474ffa975f4\",\n \"snippets/ui-attachment.liquid\": \"6881df7cdb1b27462d8cce7c17c0b4ed4dd860d62535e1daa81378a57bb69ddf\",\n \"snippets/ui-marquee.liquid\": \"47d5df8f1ff46a2cd48a132986c2ba199c9e19b485e62fc3e0d19091d4baaab1\",\n \"assets/ui-marquee.css\": \"ef13b83f3dbcd6685fcee3dba14238386d0f34bc2266a5326c0b6f2d40a23fce\",\n \"snippets/ui-invalid-controls.liquid\": \"a169e8244cc86f5431f902f7a73b37188051ba8f2ef3e323830462dae5aed066\",\n \"snippets/ui-section.liquid\": \"da358cd87447457f3675b035b48556103d86cd11e0b2240ae2800e4c9ea54bdc\",\n \"assets/ui-section.css\": \"f4936a02aaf1927ccced898886857855e4b5e95fafe5c2a52748ecbbe87b6621\",\n \"snippets/ui-button-group.liquid\": \"a2790f8da0f8b37acc1ed558ba1548ea250a5b93e1b2dfbd11eb150f3f02783a\",\n \"snippets/ui-collapsible.liquid\": \"e6107a03d00b8cc75bb03206e64b9aa7f2989d982c0408b398b62067c6df450a\",\n \"snippets/ui-dropdown-menu.liquid\": \"25b31e09e3e7bfee9a397ca4de6e310754844c55e71639eadba917b0f4e6d2e5\",\n \"snippets/ui-popover.liquid\": \"44ff93d72eaad409f56f8a84ce25715e2c3633f2ac49ba7a414767c6dbe2ee47\",\n \"snippets/ui-hover-card.liquid\": \"ba4133d352fa14296743138c99f3694015bafe953751b8e42155f047c4beb9f0\",\n \"snippets/ui-number-field.liquid\": \"544bbc038d11fe0f3d7ddd4c1af7b6c76f2a726f1aa63cd94fc44ee7e79b2fbf\",\n \"snippets/ui-swatch.liquid\": \"9a39fc70974416ba933e90d799e6a805ba1f490c7b48d9a7e25d50caae596e7d\",\n \"snippets/ui.liquid\": \"569e78bf6f84cdc7b1f7b5ba2681e1e52c6f5d02c4fe4ade16e580bffb963ae0\"\n }\n}\n", "type": "registry:file", "target": "~/assets/ui-manifest.json" } diff --git a/public/r/liquid/runtime.json b/public/r/liquid/runtime.json index fa61aa9fd..979840980 100644 --- a/public/r/liquid/runtime.json +++ b/public/r/liquid/runtime.json @@ -15,7 +15,7 @@ }, { "path": "assets/ui-controls.js", - "content": "// The data-slot controllers that few pages use, imported when theme.js finds their markup. Each\n// entry starts one root and returns its controller with destroy(). Behavior is the vendored\n// controller's; the adapters here only connect it to native forms and theme state.\n\n// A composite input renders hidden after its native fallback, such as a select or radio inputs,\n// which the form submits until the controller runs. Then the fallback leaves the document, so\n// labels and the form see only the field the controller generates, and the fallback's id moves to\n// the labelled element, so a label[for] still reaches the control. start() creates the controller\n// with the fallback's reset default and the value a shopper chose while it loaded; its destroy()\n// writes the current value back, and the fallback returns with its own reset default.\nfunction replaceFallback(root, labelled, start) {\n const fallback = root.previousElementSibling?.matches('[data-fallback]') ? root.previousElementSibling : null;\n const attributes = ['id', 'aria-labelledby'].map((name) => [name, labelled.getAttribute(name)]);\n const restore = () => {\n root.hidden = true;\n for (const [name, value] of attributes) {\n if (value === null) labelled.removeAttribute(name);\n else labelled.setAttribute(name, value);\n }\n if (fallback) root.before(fallback);\n };\n fallback?.remove();\n if (fallback?.id) labelled.id = fallback.id;\n root.hidden = false;\n let controller;\n try {\n controller = start(fallback);\n } catch (error) {\n restore();\n throw error;\n }\n return {\n destroy() {\n controller.destroy();\n restore();\n },\n };\n}\n\nfunction initializeSelect({ createSelect }, root) {\n return replaceFallback(root, root.querySelector('[data-slot=\"select-trigger\"]'), (select) => {\n const options = [...(select?.options ?? [])];\n const initial = options.find((option) => option.defaultSelected) ?? options.find((option) => !option.disabled);\n const controller = createSelect(root, { mountStrategy: 'eager', defaultValue: initial?.value || undefined });\n const value = select?.value || null;\n if (select && value !== controller.value) root.dispatchEvent(new CustomEvent('select:set', { detail: { value } }));\n return {\n destroy() {\n if (select) select.value = controller.value ?? '';\n controller.destroy();\n },\n };\n });\n}\n\nfunction initializeRadioGroup({ createRadioGroup }, root) {\n return replaceFallback(root, root, (fallback) => {\n const inputs = [...(fallback?.querySelectorAll('input[type=\"radio\"]') ?? [])];\n const initial = inputs.find((input) => input.defaultChecked)?.value ?? '';\n const controller = createRadioGroup(root, fallback ? { defaultValue: initial } : {});\n const value = inputs.find((input) => input.checked)?.value ?? null;\n if (fallback && value !== controller.value) {\n if (value === null) controller.clear();\n else controller.select(value);\n }\n return {\n destroy() {\n for (const input of inputs) input.checked = input.value === controller.value;\n controller.destroy();\n },\n };\n });\n}\n\nfunction initializeSwitch({ createSwitch }, root) {\n return replaceFallback(root, root, (checkbox) => {\n const controller = createSwitch(root, checkbox ? { defaultChecked: checkbox.defaultChecked } : {});\n if (checkbox) controller.setChecked(checkbox.checked);\n return {\n destroy() {\n if (checkbox) checkbox.checked = controller.checked;\n controller.destroy();\n },\n };\n });\n}\n\n// The slider has no form field of its own, so its native range inputs stay in the form, hidden,\n// and follow its value. A form reset moves the slider back to the inputs' reset values.\nfunction initializeSlider({ createSlider }, root) {\n const fallback = root.previousElementSibling?.matches('[data-fallback]') ? root.previousElementSibling : null;\n const inputs = fallback ? [...fallback.querySelectorAll('input[type=\"range\"]')] : [];\n const read = () => (inputs.length > 1 ? inputs.map((input) => Number(input.value)) : Number(inputs[0]?.value));\n const write = (value) => {\n [value].flat().forEach((number, index) => {\n if (!inputs[index] || inputs[index].value === String(number)) return;\n inputs[index].value = String(number);\n inputs[index].dispatchEvent(new Event('input', { bubbles: true }));\n });\n };\n const slider = createSlider(root, {\n ...(inputs.length ? { defaultValue: read() } : {}),\n onValueChange: write,\n onValueCommit: () => inputs.forEach((input) => input.dispatchEvent(new Event('change', { bubbles: true }))),\n });\n const events = new AbortController();\n inputs[0]?.form?.addEventListener('reset', () => setTimeout(() => slider.setValue(read())), {\n signal: events.signal,\n });\n if (fallback) fallback.hidden = true;\n root.hidden = false;\n return {\n destroy() {\n events.abort();\n slider.destroy();\n root.hidden = true;\n if (fallback) fallback.hidden = false;\n },\n };\n}\n\n// The action of an alert dialog is a native link or submit or reset button, and the controller\n// leaves closing to the caller. A link closes the dialog on click; a submit or reset button once its\n// form submits or resets, so an invalid form keeps its native validation and the dialog stays open.\nfunction initializeAlertDialog({ createAlertDialog }, root) {\n const dialog = createAlertDialog(root);\n const events = new AbortController();\n for (const action of root.querySelectorAll('[data-slot=\"alert-dialog-action\"]')) {\n action.addEventListener(\n 'click',\n () => {\n const form = ['submit', 'reset'].includes(action.type) ? action.form : null;\n if (form) form.addEventListener(action.type, () => dialog.close(), { once: true, signal: events.signal });\n else dialog.close();\n },\n { signal: events.signal },\n );\n }\n return {\n destroy() {\n events.abort();\n dialog.destroy();\n },\n };\n}\n\n// Buttons inside a toaster show a toast with their translated title and description. Like other\n// triggers that only open a popup, they show once the component has started (data-enhanced).\nfunction initializeToaster({ createToast }, root) {\n const toaster = createToast(root);\n const events = new AbortController();\n for (const button of root.querySelectorAll('[data-toast-title]')) {\n button.addEventListener(\n 'click',\n () => toaster.show({ title: button.dataset.toastTitle, description: button.dataset.toastDescription }),\n { signal: events.signal },\n );\n }\n return {\n destroy() {\n events.abort();\n toaster.destroy();\n },\n };\n}\n\n// A number field's buttons step its native input, as its arrow keys do, and fire the input and change\n// events that typing fires, so a form or cart script sees one kind of change. As in Base UI, the\n// runtime disables them when a step would not change the value: at a bound, or while the input is\n// disabled or read-only. They follow new attributes, such as a variant's bounds, and markup a cart\n// refresh replaces; a script that sets the value property fires input or change. Disable the input\n// to disable the field. Without JavaScript the input still works on its own.\nfunction initializeNumberField(_, root) {\n const events = new AbortController();\n const options = { signal: events.signal };\n const buttons = () =>\n root.querySelectorAll('[data-slot=\"number-field-decrement\"], [data-slot=\"number-field-increment\"]');\n // Steps a detached copy, so min, max and step apply as the browser applies them.\n const canStep = (input, decrement) => {\n if (input.disabled || input.readOnly) return false;\n const probe = input.cloneNode();\n probe.value = input.value;\n try {\n if (decrement) probe.stepDown();\n else probe.stepUp();\n } catch {\n return false;\n }\n return probe.value !== input.value;\n };\n const sync = () => {\n const input = root.querySelector('input');\n if (!input) return;\n for (const button of buttons()) {\n const disabled = !canStep(input, button.dataset.slot === 'number-field-decrement');\n if (button.disabled !== disabled) button.disabled = disabled;\n }\n };\n root.addEventListener(\n 'click',\n (event) => {\n const button =\n event.target instanceof Element\n ? event.target.closest('[data-slot=\"number-field-decrement\"], [data-slot=\"number-field-increment\"]')\n : null;\n const input = root.querySelector('input');\n if (!button || button.closest('[data-slot=\"number-field\"]') !== root || button.disabled) return;\n if (!input || input.disabled || input.readOnly) return;\n const value = input.value;\n try {\n if (button.dataset.slot === 'number-field-decrement') input.stepDown();\n else input.stepUp();\n } catch {\n return;\n }\n if (input.value === value) return;\n input.dispatchEvent(new Event('input', { bubbles: true }));\n input.dispatchEvent(new Event('change', { bubbles: true }));\n },\n options,\n );\n // A pointer or focus that reaches the field first also syncs it, for a value a script set without an event.\n for (const type of ['input', 'change', 'pointerover', 'focusin']) root.addEventListener(type, sync, options);\n // A form reset restores the input after the event, also for an input in a form elsewhere.\n document.addEventListener(\n 'reset',\n (event) => {\n if (root.querySelector('input')?.form === event.target) setTimeout(sync);\n },\n options,\n );\n const observer = new MutationObserver((mutations) => {\n if (mutations.some((mutation) => mutation.type === 'childList' || mutation.target instanceof HTMLInputElement))\n sync();\n });\n observer.observe(root, {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: ['min', 'max', 'step', 'value', 'disabled', 'readonly'],\n });\n sync();\n return {\n destroy() {\n events.abort();\n observer.disconnect();\n for (const button of buttons()) button.disabled = false;\n },\n };\n}\n\n// Each entry loads its data-slot package, then starts one root with it and returns a controller\n// with destroy(). theme.js starts the root only if it is still current once the package has\n// loaded. Select, tooltip and hover card keep their closed content connected (eager), so nested\n// components and the lifecycle in theme.js never see it leave the document.\nexport const controls = {\n select: [() => import('@data-slot/select'), initializeSelect],\n 'radio-group': [() => import('@data-slot/radio-group'), initializeRadioGroup],\n switch: [() => import('@data-slot/switch'), initializeSwitch],\n slider: [() => import('@data-slot/slider'), initializeSlider],\n toggle: [() => import('@data-slot/toggle'), ({ createToggle }, root) => createToggle(root)],\n 'toggle-group': [() => import('@data-slot/toggle-group'), ({ createToggleGroup }, root) => createToggleGroup(root)],\n collapsible: [() => import('@data-slot/collapsible'), ({ createCollapsible }, root) => createCollapsible(root)],\n popover: [() => import('@data-slot/popover'), ({ createPopover }, root) => createPopover(root)],\n 'hover-card': [\n () => import('@data-slot/hover-card'),\n ({ createHoverCard }, root) => createHoverCard(root, { mountStrategy: 'eager' }),\n ],\n tooltip: [\n () => import('@data-slot/tooltip'),\n ({ createTooltip }, root) => createTooltip(root, { mountStrategy: 'eager' }),\n ],\n 'dropdown-menu': [\n () => import('@data-slot/dropdown-menu'),\n ({ createDropdownMenu }, root) => createDropdownMenu(root),\n ],\n 'alert-dialog': [() => import('@data-slot/alert-dialog'), initializeAlertDialog],\n drawer: [() => import('@data-slot/drawer'), ({ createDrawer }, root) => createDrawer(root)],\n toast: [() => import('@data-slot/toast'), initializeToaster],\n // data-slot leaves a number field to the native input, so this entry loads no package.\n 'number-field': [async () => ({}), initializeNumberField],\n};\n", + "content": "// The data-slot controllers that few pages use, imported when theme.js finds their markup. Each\n// entry starts one root and returns its controller with destroy(). Behavior is the vendored\n// controller's; the adapters here only connect it to native forms and theme state.\n\n// A composite input renders hidden after its native fallback, such as a select or radio inputs,\n// which the form submits until the controller runs. Then the fallback leaves the document, so\n// labels and the form see only the field the controller generates, and the fallback's id moves to\n// the labelled element, so a label[for] still reaches the control. start() creates the controller\n// with the fallback's reset default and the value a shopper chose while it loaded; its destroy()\n// writes the current value back, and the fallback returns with its own reset default.\nfunction replaceFallback(root, labelled, start) {\n const fallback = root.previousElementSibling?.matches('[data-fallback]') ? root.previousElementSibling : null;\n const attributes = ['id', 'aria-labelledby'].map((name) => [name, labelled.getAttribute(name)]);\n const restore = () => {\n root.hidden = true;\n for (const [name, value] of attributes) {\n if (value === null) labelled.removeAttribute(name);\n else labelled.setAttribute(name, value);\n }\n if (fallback) root.before(fallback);\n };\n fallback?.remove();\n if (fallback?.id) labelled.id = fallback.id;\n root.hidden = false;\n let controller;\n try {\n controller = start(fallback);\n } catch (error) {\n restore();\n throw error;\n }\n return {\n destroy() {\n controller.destroy();\n restore();\n },\n };\n}\n\nfunction initializeSelect({ createSelect }, root) {\n return replaceFallback(root, root.querySelector('[data-slot=\"select-trigger\"]'), (select) => {\n const options = [...(select?.options ?? [])];\n const initial = options.find((option) => option.defaultSelected) ?? options.find((option) => !option.disabled);\n const controller = createSelect(root, { mountStrategy: 'eager', defaultValue: initial?.value || undefined });\n const value = select?.value || null;\n if (select && value !== controller.value) root.dispatchEvent(new CustomEvent('select:set', { detail: { value } }));\n return {\n destroy() {\n if (select) select.value = controller.value ?? '';\n controller.destroy();\n },\n };\n });\n}\n\nfunction initializeRadioGroup({ createRadioGroup }, root) {\n return replaceFallback(root, root, (fallback) => {\n const inputs = [...(fallback?.querySelectorAll('input[type=\"radio\"]') ?? [])];\n const initial = inputs.find((input) => input.defaultChecked)?.value ?? '';\n const controller = createRadioGroup(root, fallback ? { defaultValue: initial } : {});\n const value = inputs.find((input) => input.checked)?.value ?? null;\n if (fallback && value !== controller.value) {\n if (value === null) controller.clear();\n else controller.select(value);\n }\n return {\n destroy() {\n for (const input of inputs) input.checked = input.value === controller.value;\n controller.destroy();\n },\n };\n });\n}\n\nfunction initializeSwitch({ createSwitch }, root) {\n return replaceFallback(root, root, (checkbox) => {\n const controller = createSwitch(root, checkbox ? { defaultChecked: checkbox.defaultChecked } : {});\n if (checkbox) controller.setChecked(checkbox.checked);\n return {\n destroy() {\n if (checkbox) checkbox.checked = controller.checked;\n controller.destroy();\n },\n };\n });\n}\n\n// The slider has no form field of its own, so its native range inputs stay in the form, hidden,\n// and follow its value. A form reset moves the slider back to the inputs' reset values.\nfunction initializeSlider({ createSlider }, root) {\n const fallback = root.previousElementSibling?.matches('[data-fallback]') ? root.previousElementSibling : null;\n const inputs = fallback ? [...fallback.querySelectorAll('input[type=\"range\"]')] : [];\n const read = () => (inputs.length > 1 ? inputs.map((input) => Number(input.value)) : Number(inputs[0]?.value));\n const write = (value) => {\n [value].flat().forEach((number, index) => {\n if (!inputs[index] || inputs[index].value === String(number)) return;\n inputs[index].value = String(number);\n inputs[index].dispatchEvent(new Event('input', { bubbles: true }));\n });\n };\n const slider = createSlider(root, {\n ...(inputs.length ? { defaultValue: read() } : {}),\n onValueChange: write,\n onValueCommit: () => inputs.forEach((input) => input.dispatchEvent(new Event('change', { bubbles: true }))),\n });\n const events = new AbortController();\n inputs[0]?.form?.addEventListener('reset', () => setTimeout(() => slider.setValue(read())), {\n signal: events.signal,\n });\n if (fallback) fallback.hidden = true;\n root.hidden = false;\n return {\n destroy() {\n events.abort();\n slider.destroy();\n root.hidden = true;\n if (fallback) fallback.hidden = false;\n },\n };\n}\n\n// The action of an alert dialog is a native link or submit or reset button, and the controller\n// leaves closing to the caller. A link closes the dialog on click; a submit or reset button once its\n// form submits or resets, so an invalid form keeps its native validation and the dialog stays open.\nfunction initializeAlertDialog({ createAlertDialog }, root) {\n const dialog = createAlertDialog(root);\n const events = new AbortController();\n for (const action of root.querySelectorAll('[data-slot=\"alert-dialog-action\"]')) {\n action.addEventListener(\n 'click',\n () => {\n const form = ['submit', 'reset'].includes(action.type) ? action.form : null;\n if (form) form.addEventListener(action.type, () => dialog.close(), { once: true, signal: events.signal });\n else dialog.close();\n },\n { signal: events.signal },\n );\n }\n return {\n destroy() {\n events.abort();\n dialog.destroy();\n },\n };\n}\n\n// Buttons inside a toaster show a toast with their translated title and description. Like other\n// triggers that only open a popup, they show once the component has started (data-enhanced).\nfunction initializeToaster({ createToast }, root) {\n const toaster = createToast(root);\n const events = new AbortController();\n for (const button of root.querySelectorAll('[data-toast-title]')) {\n button.addEventListener(\n 'click',\n () => toaster.show({ title: button.dataset.toastTitle, description: button.dataset.toastDescription }),\n { signal: events.signal },\n );\n }\n return {\n destroy() {\n events.abort();\n toaster.destroy();\n },\n };\n}\n\n// A number field's buttons step its native input, as its arrow keys do, and fire the input and change\n// events that typing fires, so a form or cart script sees one kind of change. As in Base UI, the\n// runtime disables them when a step would not change the value: at a bound, or while the input is\n// disabled or read-only. They follow new attributes, such as a variant's bounds, and markup a cart\n// refresh replaces; a script that sets the value property fires input or change. Disable the input\n// to disable the field. Without JavaScript the input still works on its own.\nfunction initializeNumberField(_, root) {\n const events = new AbortController();\n const options = { signal: events.signal };\n const buttons = () =>\n root.querySelectorAll('[data-slot=\"number-field-decrement\"], [data-slot=\"number-field-increment\"]');\n // Steps a detached copy, so min, max and step apply as the browser applies them.\n const canStep = (input, decrement) => {\n if (input.disabled || input.readOnly) return false;\n const probe = input.cloneNode();\n probe.value = input.value;\n try {\n if (decrement) probe.stepDown();\n else probe.stepUp();\n } catch {\n return false;\n }\n return probe.value !== input.value;\n };\n const sync = () => {\n const input = root.querySelector('input');\n if (!input) return;\n for (const button of buttons()) {\n const disabled = !canStep(input, button.dataset.slot === 'number-field-decrement');\n if (button.disabled !== disabled) button.disabled = disabled;\n }\n };\n root.addEventListener(\n 'click',\n (event) => {\n const button =\n event.target instanceof Element\n ? event.target.closest('[data-slot=\"number-field-decrement\"], [data-slot=\"number-field-increment\"]')\n : null;\n const input = root.querySelector('input');\n if (!button || button.closest('[data-slot=\"number-field\"]') !== root || button.disabled) return;\n if (!input || input.disabled || input.readOnly) return;\n const value = input.value;\n try {\n if (button.dataset.slot === 'number-field-decrement') input.stepDown();\n else input.stepUp();\n } catch {\n return;\n }\n if (input.value === value) return;\n input.dispatchEvent(new Event('input', { bubbles: true }));\n input.dispatchEvent(new Event('change', { bubbles: true }));\n },\n options,\n );\n // Pressing a button keeps the focus where it is, so a typed value is not committed by a blur, and a\n // cart that refreshes on change, before the click steps it.\n root.addEventListener(\n 'mousedown',\n (event) => {\n if (\n event.target instanceof Element &&\n event.target.closest('[data-slot=\"number-field-decrement\"], [data-slot=\"number-field-increment\"]')\n )\n event.preventDefault();\n },\n options,\n );\n // A pointer or focus that reaches the field first also syncs it, for a value a script set without an event.\n for (const type of ['input', 'change', 'pointerover', 'focusin']) root.addEventListener(type, sync, options);\n // A form reset restores the input after the event, also for an input in a form elsewhere.\n document.addEventListener(\n 'reset',\n (event) => {\n if (root.querySelector('input')?.form === event.target) setTimeout(sync);\n },\n options,\n );\n const observer = new MutationObserver((mutations) => {\n if (mutations.some((mutation) => mutation.type === 'childList' || mutation.target instanceof HTMLInputElement))\n sync();\n });\n observer.observe(root, {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: ['min', 'max', 'step', 'value', 'disabled', 'readonly'],\n });\n sync();\n return {\n destroy() {\n events.abort();\n observer.disconnect();\n for (const button of buttons()) button.disabled = false;\n },\n };\n}\n\n// Each entry loads its data-slot package, then starts one root with it and returns a controller\n// with destroy(). theme.js starts the root only if it is still current once the package has\n// loaded. Select, tooltip and hover card keep their closed content connected (eager), so nested\n// components and the lifecycle in theme.js never see it leave the document.\nexport const controls = {\n select: [() => import('@data-slot/select'), initializeSelect],\n 'radio-group': [() => import('@data-slot/radio-group'), initializeRadioGroup],\n switch: [() => import('@data-slot/switch'), initializeSwitch],\n slider: [() => import('@data-slot/slider'), initializeSlider],\n toggle: [() => import('@data-slot/toggle'), ({ createToggle }, root) => createToggle(root)],\n 'toggle-group': [() => import('@data-slot/toggle-group'), ({ createToggleGroup }, root) => createToggleGroup(root)],\n collapsible: [() => import('@data-slot/collapsible'), ({ createCollapsible }, root) => createCollapsible(root)],\n popover: [() => import('@data-slot/popover'), ({ createPopover }, root) => createPopover(root)],\n 'hover-card': [\n () => import('@data-slot/hover-card'),\n ({ createHoverCard }, root) => createHoverCard(root, { mountStrategy: 'eager' }),\n ],\n tooltip: [\n () => import('@data-slot/tooltip'),\n ({ createTooltip }, root) => createTooltip(root, { mountStrategy: 'eager' }),\n ],\n 'dropdown-menu': [\n () => import('@data-slot/dropdown-menu'),\n ({ createDropdownMenu }, root) => createDropdownMenu(root),\n ],\n 'alert-dialog': [() => import('@data-slot/alert-dialog'), initializeAlertDialog],\n drawer: [() => import('@data-slot/drawer'), ({ createDrawer }, root) => createDrawer(root)],\n toast: [() => import('@data-slot/toast'), initializeToaster],\n // data-slot leaves a number field to the native input, so this entry loads no package.\n 'number-field': [async () => ({}), initializeNumberField],\n};\n", "type": "registry:file", "target": "~/assets/ui-controls.js" }, diff --git a/public/r/react/styles/base-luma/carousel-indicator.json b/public/r/react/styles/base-luma/carousel-indicator.json index 494042edf..42c41df86 100644 --- a/public/r/react/styles/base-luma/carousel-indicator.json +++ b/public/r/react/styles/base-luma/carousel-indicator.json @@ -12,7 +12,7 @@ "files": [ { "path": "src/components/ui/carousel-indicator.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\n\nimport { useCarousel } from \"@/components/ui/carousel\"\n\nfunction CarouselIndicator({\n className,\n index,\n onClick,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n ...props\n}: React.ComponentProps<\"button\"> & {\n index: number\n}) {\n const { api, opts } = useCarousel()\n const [selected, setSelected] = React.useState(opts?.startIndex ?? 0)\n const [positions, setPositions] = React.useState()\n\n React.useEffect(() => {\n if (!api) return\n const update = () => {\n setSelected(api.selectedScrollSnap())\n setPositions(api.scrollSnapList().length)\n }\n update()\n api.on(\"select\", update)\n api.on(\"reInit\", update)\n return () => {\n api.off(\"select\", update)\n api.off(\"reInit\", update)\n }\n }, [api])\n\n const active = selected === index\n // As in data-slot, an indicator without a scroll position, such as the last\n // thumbnails when several slides show, is hidden.\n const hidden = positions !== undefined && index >= positions\n\n return (\n