@adamosuiteservices/ui 2.18.5 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/accordion-rounded.cjs +8 -8
- package/dist/accordion-rounded.js +12 -12
- package/dist/alert.cjs +32 -23
- package/dist/alert.js +53 -43
- package/dist/amount-input.cjs +8 -0
- package/dist/amount-input.js +191 -0
- package/dist/avatar.cjs +7 -7
- package/dist/avatar.js +18 -18
- package/dist/badge.cjs +24 -28
- package/dist/badge.js +45 -42
- package/dist/breadcrumb.cjs +2 -3
- package/dist/breadcrumb.js +16 -17
- package/dist/button-CXFZVTXF.cjs +87 -0
- package/dist/button-dT8nqgU3.js +156 -0
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/{calendar-xBaFu2sB.js → calendar-6NvJv-sP.js} +238 -239
- package/dist/{calendar-Dorq3-wv.cjs → calendar-B8S5a0TG.cjs} +20 -22
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.js +1 -1
- package/dist/card.cjs +3 -3
- package/dist/card.js +4 -4
- package/dist/checkbox-BBlvCoB1.cjs +24 -0
- package/dist/{checkbox-DL_jFvgl.js → checkbox-BuzBXARX.js} +54 -52
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/colors.css +1 -1
- package/dist/combobox-B002BLsg.js +692 -0
- package/dist/combobox-B2BkUl7v.cjs +57 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.js +1 -1
- package/dist/components/layout/sidebar/sidebar.d.ts +2 -1
- package/dist/components/layout/toaster/toaster.d.ts +1 -1
- package/dist/components/ui/alert/alert.d.ts +1 -1
- package/dist/components/ui/amount-input/amount-input.d.ts +32 -0
- package/dist/components/ui/amount-input/index.d.ts +1 -0
- package/dist/components/ui/badge/badge.d.ts +3 -2
- package/dist/components/ui/calendar/calendar.d.ts +1 -1
- package/dist/components/ui/combobox/combobox.d.ts +3 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +3 -1
- package/dist/components/ui/selectable-card/index.d.ts +1 -0
- package/dist/components/ui/selectable-card/selectable-card.d.ts +22 -0
- package/dist/components/ui/timeline/index.d.ts +1 -0
- package/dist/components/ui/timeline/timeline.d.ts +30 -0
- package/dist/components/ui/typography/typography.d.ts +1 -1
- package/dist/context-menu.cjs +18 -19
- package/dist/context-menu.js +36 -37
- package/dist/date-picker-selector.cjs +1 -1
- package/dist/date-picker-selector.js +3 -3
- package/dist/dialog.cjs +7 -9
- package/dist/dialog.js +36 -38
- package/dist/dropdown-menu.cjs +57 -36
- package/dist/dropdown-menu.js +205 -172
- package/dist/field.cjs +12 -7
- package/dist/field.js +51 -45
- package/dist/file-upload-v2.cjs +11 -5
- package/dist/file-upload-v2.js +75 -60
- package/dist/file-upload.cjs +11 -5
- package/dist/file-upload.js +117 -109
- package/dist/index-BBT2EGq8.js +18 -0
- package/dist/index-DCsgSkBj.cjs +1 -0
- package/dist/input-8sEO5zwD.js +44 -0
- package/dist/input-AONeSXcs.cjs +22 -0
- package/dist/input-group-13VFVAxD.cjs +86 -0
- package/dist/input-group-D4S18xiq.js +240 -0
- package/dist/input-group.cjs +1 -84
- package/dist/input-group.js +7 -234
- package/dist/input-otp.cjs +5 -7
- package/dist/input-otp.js +58 -60
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/kbd.cjs +6 -7
- package/dist/kbd.js +14 -15
- package/dist/{label-DqfX9cHc.cjs → label-B7Z1D5-Q.cjs} +5 -4
- package/dist/{label-C6zVnc3d.js → label-_BWRIH7C.js} +14 -13
- package/dist/label.cjs +1 -1
- package/dist/label.js +1 -1
- package/dist/pagination.cjs +5 -5
- package/dist/pagination.js +18 -18
- package/dist/radio-group.cjs +12 -9
- package/dist/radio-group.js +65 -62
- package/dist/select.cjs +18 -16
- package/dist/select.js +17 -15
- package/dist/selectable-card.cjs +29 -0
- package/dist/selectable-card.js +129 -0
- package/dist/separator-DXdc7LcC.cjs +7 -0
- package/dist/{separator-CsaqP20m.js → separator-DZfXXbNt.js} +1 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +1 -1
- package/dist/{sheet-C9vce0ut.js → sheet-DNwg4a6M.js} +8 -5
- package/dist/{sheet-Cnq7TCzu.cjs → sheet-va7o2x0w.cjs} +10 -10
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/sidebar.cjs +10 -10
- package/dist/sidebar.js +83 -92
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch.cjs +2 -4
- package/dist/switch.js +71 -73
- package/dist/table.cjs +14 -14
- package/dist/table.js +12 -12
- package/dist/tabs-underline.cjs +11 -15
- package/dist/tabs-underline.js +20 -24
- package/dist/tabs.cjs +10 -14
- package/dist/tabs.js +20 -24
- package/dist/tailwind-colors.css +1 -1
- package/dist/tailwind-theme.css +1 -1
- package/dist/textarea-BSooGyp-.cjs +18 -0
- package/dist/textarea-D_sj6ivo.js +39 -0
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/themes.css +1 -1
- package/dist/timeline.cjs +4 -0
- package/dist/timeline.js +189 -0
- package/dist/toaster.cjs +5 -4
- package/dist/toaster.js +33 -32
- package/dist/toggle.cjs +4 -4
- package/dist/toggle.js +17 -17
- package/dist/tooltip.cjs +5 -6
- package/dist/tooltip.js +4 -5
- package/docs/components/layout/sidebar.md +81 -53
- package/docs/components/layout/toaster.md +35 -55
- package/docs/components/ui/accordion-rounded.md +12 -11
- package/docs/components/ui/alert.md +66 -36
- package/docs/components/ui/amount-input.md +229 -0
- package/docs/components/ui/avatar.md +28 -32
- package/docs/components/ui/badge.md +85 -32
- package/docs/components/ui/breadcrumb.md +5 -7
- package/docs/components/ui/button-group.md +16 -16
- package/docs/components/ui/button.md +23 -36
- package/docs/components/ui/calendar.md +54 -27
- package/docs/components/ui/card.md +5 -4
- package/docs/components/ui/checkbox.md +3 -3
- package/docs/components/ui/combobox.md +35 -1
- package/docs/components/ui/command.md +7 -7
- package/docs/components/ui/context-menu.md +14 -15
- package/docs/components/ui/date-picker-selector.md +31 -31
- package/docs/components/ui/dialog.md +47 -49
- package/docs/components/ui/dropdown-menu.md +34 -37
- package/docs/components/ui/field.md +25 -31
- package/docs/components/ui/file-upload-v2.md +11 -0
- package/docs/components/ui/file-upload.md +105 -108
- package/docs/components/ui/hover-card.md +28 -6
- package/docs/components/ui/icon.md +10 -9
- package/docs/components/ui/input-group.md +9 -9
- package/docs/components/ui/input.md +30 -33
- package/docs/components/ui/kbd.md +10 -9
- package/docs/components/ui/label.md +6 -6
- package/docs/components/ui/pagination.md +3 -3
- package/docs/components/ui/popover.md +1 -0
- package/docs/components/ui/progress.md +3 -3
- package/docs/components/ui/radio-group.md +18 -6
- package/docs/components/ui/scroll-area.md +4 -4
- package/docs/components/ui/select.md +14 -12
- package/docs/components/ui/selectable-card.md +204 -0
- package/docs/components/ui/separator.md +4 -4
- package/docs/components/ui/sheet.md +21 -3
- package/docs/components/ui/slider.md +3 -3
- package/docs/components/ui/switch.md +7 -7
- package/docs/components/ui/table.md +7 -4
- package/docs/components/ui/tabs-underline.md +36 -36
- package/docs/components/ui/tabs.md +6 -4
- package/docs/components/ui/textarea.md +6 -4
- package/docs/components/ui/timeline.md +214 -0
- package/docs/components/ui/toggle.md +1 -1
- package/docs/components/ui/tooltip.md +3 -3
- package/llm.txt +7 -4
- package/package.json +13 -1
- package/dist/button-BnUlAtuD.js +0 -132
- package/dist/button-CFJs0esR.cjs +0 -63
- package/dist/checkbox-3RIZX2HF.cjs +0 -22
- package/dist/combobox-MkeJiTXj.js +0 -637
- package/dist/combobox-jJRxvUsB.cjs +0 -40
- package/dist/input-BCiOr4Fy.js +0 -44
- package/dist/input-Bz5k4w94.cjs +0 -22
- package/dist/separator-CCGaTo09.cjs +0 -7
- package/dist/textarea-BRCnIxdB.js +0 -33
- package/dist/textarea-DkFUS_oS.cjs +0 -14
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use client";"use strict";const c=require("./jsx-runtime-BB_1_6y_.cjs"),Pe=require("./button-CXFZVTXF.cjs"),$e=require("./checkbox-BBlvCoB1.cjs"),le=require("./icon-B7joBr0A.cjs"),P=require("./index-DoxiiusW.cjs"),H=require("react"),ce=require("./index-Ca99LLZF.cjs"),T=require("./index-CocSS1YK.cjs"),Y=require("./index-WIv2ndLu.cjs"),ie=require("./index-_XxjJPRD.cjs"),fe=require("./popover-cGp_rNLg.cjs");function qe(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const h=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,h.get?h:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const l=qe(H);var ye=1,Me=.9,De=.8,ze=.17,pe=.1,xe=.999,Te=.9999,Fe=.99,Ve=/[\\\/_+.#"@\[\(\{&]/,Ke=/[\\\/_+.#"@\[\(\{&]/g,Oe=/[\s-]/,Re=/[\s-]/g;function ve(e,n,r,h,o,m,f){if(m===n.length)return o===e.length?ye:Fe;var x=`${o},${m}`;if(f[x]!==void 0)return f[x];for(var b=h.charAt(m),s=r.indexOf(b,o),E=0,d,w,S,N;s>=0;)d=ve(e,n,r,h,s+1,m+1,f),d>E&&(s===o?d*=ye:Ve.test(e.charAt(s-1))?(d*=De,S=e.slice(o,s-1).match(Ke),S&&o>0&&(d*=Math.pow(xe,S.length))):Oe.test(e.charAt(s-1))?(d*=Me,N=e.slice(o,s-1).match(Re),N&&o>0&&(d*=Math.pow(xe,N.length))):(d*=ze,o>0&&(d*=Math.pow(xe,s-o))),e.charAt(s)!==n.charAt(m)&&(d*=Te)),(d<pe&&r.charAt(s-1)===h.charAt(m+1)||h.charAt(m+1)===h.charAt(m)&&r.charAt(s-1)!==h.charAt(m))&&(w=ve(e,n,r,h,s+1,m+2,f),w*pe>d&&(d=w*pe)),d>E&&(E=d),s=r.indexOf(b,s+1);return f[x]=E,E}function Ee(e){return e.toLowerCase().replace(Re," ")}function _e(e,n,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,ve(e,n,Ee(e),Ee(n),0,0,{})}var ae='[cmdk-group=""]',he='[cmdk-group-items=""]',We='[cmdk-group-heading=""]',we='[cmdk-item=""]',je=`${we}:not([aria-disabled="true"])`,ge="cmdk-item-select",J="data-value",Be=(e,n,r)=>_e(e,n,r),Ie=l.createContext(void 0),oe=()=>l.useContext(Ie),Se=l.createContext(void 0),be=()=>l.useContext(Se),ke=l.createContext(void 0),Ce=l.forwardRef((e,n)=>{let r=X(()=>{var t,u;return{search:"",value:(u=(t=e.value)!=null?t:e.defaultValue)!=null?u:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),h=X(()=>new Set),o=X(()=>new Map),m=X(()=>new Map),f=X(()=>new Set),x=Ae(e),{label:b,children:s,value:E,onValueChange:d,filter:w,shouldFilter:S,loop:N,disablePointerSelection:F=!1,vimBindings:L=!0,...k}=e,_=Y.useId(),V=Y.useId(),W=Y.useId(),$=l.useRef(null),R=rt();O(()=>{if(E!==void 0){let t=E.trim();r.current.value=t,p.emit()}},[E]),O(()=>{R(6,G)},[]);let p=l.useMemo(()=>({subscribe:t=>(f.current.add(t),()=>f.current.delete(t)),snapshot:()=>r.current,setState:(t,u,v)=>{var i,g,j,a;if(!Object.is(r.current[t],u)){if(r.current[t]=u,t==="search")Z(),se(),R(1,C);else if(t==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(W);y?y.focus():(i=document.getElementById(_))==null||i.focus()}if(R(7,()=>{var y;r.current.selectedItemId=(y=A())==null?void 0:y.id,p.emit()}),v||R(5,G),((g=x.current)==null?void 0:g.value)!==void 0){let y=u??"";(a=(j=x.current).onValueChange)==null||a.call(j,y);return}}p.emit()}},emit:()=>{f.current.forEach(t=>t())}}),[]),B=l.useMemo(()=>({value:(t,u,v)=>{var i;u!==((i=m.current.get(t))==null?void 0:i.value)&&(m.current.set(t,{value:u,keywords:v}),r.current.filtered.items.set(t,q(u,v)),R(2,()=>{se(),p.emit()}))},item:(t,u)=>(h.current.add(t),u&&(o.current.has(u)?o.current.get(u).add(t):o.current.set(u,new Set([t]))),R(3,()=>{Z(),se(),r.current.value||C(),p.emit()}),()=>{m.current.delete(t),h.current.delete(t),r.current.filtered.items.delete(t);let v=A();R(4,()=>{Z(),v?.getAttribute("id")===t&&C(),p.emit()})}),group:t=>(o.current.has(t)||o.current.set(t,new Set),()=>{m.current.delete(t),o.current.delete(t)}),filter:()=>x.current.shouldFilter,label:b||e["aria-label"],getDisablePointerSelection:()=>x.current.disablePointerSelection,listId:_,inputId:W,labelId:V,listInnerRef:$}),[]);function q(t,u){var v,i;let g=(i=(v=x.current)==null?void 0:v.filter)!=null?i:Be;return t?g(t,r.current.search,u):0}function se(){if(!r.current.search||x.current.shouldFilter===!1)return;let t=r.current.filtered.items,u=[];r.current.filtered.groups.forEach(i=>{let g=o.current.get(i),j=0;g.forEach(a=>{let y=t.get(a);j=Math.max(y,j)}),u.push([i,j])});let v=$.current;M().sort((i,g)=>{var j,a;let y=i.getAttribute("id"),I=g.getAttribute("id");return((j=t.get(I))!=null?j:0)-((a=t.get(y))!=null?a:0)}).forEach(i=>{let g=i.closest(he);g?g.appendChild(i.parentElement===g?i:i.closest(`${he} > *`)):v.appendChild(i.parentElement===v?i:i.closest(`${he} > *`))}),u.sort((i,g)=>g[1]-i[1]).forEach(i=>{var g;let j=(g=$.current)==null?void 0:g.querySelector(`${ae}[${J}="${encodeURIComponent(i[0])}"]`);j?.parentElement.appendChild(j)})}function C(){let t=M().find(v=>v.getAttribute("aria-disabled")!=="true"),u=t?.getAttribute(J);p.setState("value",u||void 0)}function Z(){var t,u,v,i;if(!r.current.search||x.current.shouldFilter===!1){r.current.filtered.count=h.current.size;return}r.current.filtered.groups=new Set;let g=0;for(let j of h.current){let a=(u=(t=m.current.get(j))==null?void 0:t.value)!=null?u:"",y=(i=(v=m.current.get(j))==null?void 0:v.keywords)!=null?i:[],I=q(a,y);r.current.filtered.items.set(j,I),I>0&&g++}for(let[j,a]of o.current)for(let y of a)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(j);break}r.current.filtered.count=g}function G(){var t,u,v;let i=A();i&&(((t=i.parentElement)==null?void 0:t.firstChild)===i&&((v=(u=i.closest(ae))==null?void 0:u.querySelector(We))==null||v.scrollIntoView({block:"nearest"})),i.scrollIntoView({block:"nearest"}))}function A(){var t;return(t=$.current)==null?void 0:t.querySelector(`${we}[aria-selected="true"]`)}function M(){var t;return Array.from(((t=$.current)==null?void 0:t.querySelectorAll(je))||[])}function ee(t){let u=M()[t];u&&p.setState("value",u.getAttribute(J))}function D(t){var u;let v=A(),i=M(),g=i.findIndex(a=>a===v),j=i[g+t];(u=x.current)!=null&&u.loop&&(j=g+t<0?i[i.length-1]:g+t===i.length?i[0]:i[g+t]),j&&p.setState("value",j.getAttribute(J))}function te(t){let u=A(),v=u?.closest(ae),i;for(;v&&!i;)v=t>0?et(v,ae):tt(v,ae),i=v?.querySelector(je);i?p.setState("value",i.getAttribute(J)):D(t)}let U=()=>ee(M().length-1),ue=t=>{t.preventDefault(),t.metaKey?U():t.altKey?te(1):D(1)},re=t=>{t.preventDefault(),t.metaKey?ee(0):t.altKey?te(-1):D(-1)};return l.createElement(T.Primitive.div,{ref:n,tabIndex:-1,...k,"cmdk-root":"",onKeyDown:t=>{var u;(u=k.onKeyDown)==null||u.call(k,t);let v=t.nativeEvent.isComposing||t.keyCode===229;if(!(t.defaultPrevented||v))switch(t.key){case"n":case"j":{L&&t.ctrlKey&&ue(t);break}case"ArrowDown":{ue(t);break}case"p":case"k":{L&&t.ctrlKey&&re(t);break}case"ArrowUp":{re(t);break}case"Home":{t.preventDefault(),ee(0);break}case"End":{t.preventDefault(),U();break}case"Enter":{t.preventDefault();let i=A();if(i){let g=new Event(ge);i.dispatchEvent(g)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:B.inputId,id:B.labelId,style:at},b),me(e,t=>l.createElement(Se.Provider,{value:p},l.createElement(Ie.Provider,{value:B},t))))}),Ge=l.forwardRef((e,n)=>{var r,h;let o=Y.useId(),m=l.useRef(null),f=l.useContext(ke),x=oe(),b=Ae(e),s=(h=(r=b.current)==null?void 0:r.forceMount)!=null?h:f?.forceMount;O(()=>{if(!s)return x.item(o,f?.id)},[s]);let E=Ne(o,m,[e.value,e.children,m],e.keywords),d=be(),w=z(R=>R.value&&R.value===E.current),S=z(R=>s||x.filter()===!1?!0:R.search?R.filtered.items.get(o)>0:!0);l.useEffect(()=>{let R=m.current;if(!(!R||e.disabled))return R.addEventListener(ge,N),()=>R.removeEventListener(ge,N)},[S,e.onSelect,e.disabled]);function N(){var R,p;F(),(p=(R=b.current).onSelect)==null||p.call(R,E.current)}function F(){d.setState("value",E.current,!0)}if(!S)return null;let{disabled:L,value:k,onSelect:_,forceMount:V,keywords:W,...$}=e;return l.createElement(T.Primitive.div,{ref:ie.composeRefs(m,n),...$,id:o,"cmdk-item":"",role:"option","aria-disabled":!!L,"aria-selected":!!w,"data-disabled":!!L,"data-selected":!!w,onPointerMove:L||x.getDisablePointerSelection()?void 0:F,onClick:L?void 0:N},e.children)}),Ue=l.forwardRef((e,n)=>{let{heading:r,children:h,forceMount:o,...m}=e,f=Y.useId(),x=l.useRef(null),b=l.useRef(null),s=Y.useId(),E=oe(),d=z(S=>o||E.filter()===!1?!0:S.search?S.filtered.groups.has(f):!0);O(()=>E.group(f),[]),Ne(f,x,[e.value,e.heading,b]);let w=l.useMemo(()=>({id:f,forceMount:o}),[o]);return l.createElement(T.Primitive.div,{ref:ie.composeRefs(x,n),...m,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},r&&l.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:s},r),me(e,S=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?s:void 0},l.createElement(ke.Provider,{value:w},S))))}),He=l.forwardRef((e,n)=>{let{alwaysRender:r,...h}=e,o=l.useRef(null),m=z(f=>!f.search);return!r&&!m?null:l.createElement(T.Primitive.div,{ref:ie.composeRefs(o,n),...h,"cmdk-separator":"",role:"separator"})}),Je=l.forwardRef((e,n)=>{let{onValueChange:r,...h}=e,o=e.value!=null,m=be(),f=z(s=>s.search),x=z(s=>s.selectedItemId),b=oe();return l.useEffect(()=>{e.value!=null&&m.setState("search",e.value)},[e.value]),l.createElement(T.Primitive.input,{ref:n,...h,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":x,id:b.inputId,type:"text",value:o?e.value:f,onChange:s=>{o||m.setState("search",s.target.value),r?.(s.target.value)}})}),Xe=l.forwardRef((e,n)=>{let{children:r,label:h="Suggestions",...o}=e,m=l.useRef(null),f=l.useRef(null),x=z(s=>s.selectedItemId),b=oe();return l.useEffect(()=>{if(f.current&&m.current){let s=f.current,E=m.current,d,w=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let S=s.offsetHeight;E.style.setProperty("--cmdk-list-height",S.toFixed(1)+"px")})});return w.observe(s),()=>{cancelAnimationFrame(d),w.unobserve(s)}}},[]),l.createElement(T.Primitive.div,{ref:ie.composeRefs(m,n),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":x,"aria-label":h,id:b.listId},me(e,s=>l.createElement("div",{ref:ie.composeRefs(f,b.listInnerRef),"cmdk-list-sizer":""},s)))}),Ye=l.forwardRef((e,n)=>{let{open:r,onOpenChange:h,overlayClassName:o,contentClassName:m,container:f,...x}=e;return l.createElement(ce.Root,{open:r,onOpenChange:h},l.createElement(ce.Portal,{container:f},l.createElement(ce.Overlay,{"cmdk-overlay":"",className:o}),l.createElement(ce.Content,{"aria-label":e.label,"cmdk-dialog":"",className:m},l.createElement(Ce,{ref:n,...x}))))}),Qe=l.forwardRef((e,n)=>z(r=>r.filtered.count===0)?l.createElement(T.Primitive.div,{ref:n,...e,"cmdk-empty":"",role:"presentation"}):null),Ze=l.forwardRef((e,n)=>{let{progress:r,children:h,label:o="Loading...",...m}=e;return l.createElement(T.Primitive.div,{ref:n,...m,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},me(e,f=>l.createElement("div",{"aria-hidden":!0},f)))}),Q=Object.assign(Ce,{List:Xe,Item:Ge,Input:Je,Group:Ue,Separator:He,Dialog:Ye,Empty:Qe,Loading:Ze});function et(e,n){let r=e.nextElementSibling;for(;r;){if(r.matches(n))return r;r=r.nextElementSibling}}function tt(e,n){let r=e.previousElementSibling;for(;r;){if(r.matches(n))return r;r=r.previousElementSibling}}function Ae(e){let n=l.useRef(e);return O(()=>{n.current=e}),n}var O=typeof window>"u"?l.useEffect:l.useLayoutEffect;function X(e){let n=l.useRef();return n.current===void 0&&(n.current=e()),n}function z(e){let n=be(),r=()=>e(n.snapshot());return l.useSyncExternalStore(n.subscribe,r,r)}function Ne(e,n,r,h=[]){let o=l.useRef(),m=oe();return O(()=>{var f;let x=(()=>{var s;for(let E of r){if(typeof E=="string")return E.trim();if(typeof E=="object"&&"current"in E)return E.current?(s=E.current.textContent)==null?void 0:s.trim():o.current}})(),b=h.map(s=>s.trim());m.value(e,x,b),(f=n.current)==null||f.setAttribute(J,x),o.current=x}),o}var rt=()=>{let[e,n]=l.useState(),r=X(()=>new Map);return O(()=>{r.current.forEach(h=>h()),r.current=new Map},[e]),(h,o)=>{r.current.set(h,o),n({})}};function nt(e){let n=e.type;return typeof n=="function"?n(e.props):"render"in n?n.render(e.props):e}function me({asChild:e,children:n},r){return e&&l.isValidElement(n)?l.cloneElement(nt(n),{ref:n.ref},r(n.props.children)):r(n)}var at={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function lt({className:e,...n}){return c.jsxRuntimeExports.jsx(Q,{"data-slot":"command",className:P.cn(`
|
|
2
|
+
adm:flex adm:h-full adm:w-full adm:flex-col adm:overflow-hidden
|
|
3
|
+
adm:rounded-md adm:bg-popover adm:text-popover-foreground
|
|
4
|
+
`,e),...n})}function it({className:e,...n}){return c.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:`
|
|
5
|
+
adm:flex adm:h-10 adm:items-center adm:gap-2
|
|
6
|
+
adm:rounded-t-[calc(var(--radius)-1px)] adm:border-b adm:px-3
|
|
7
|
+
adm:*:data-[slot=icon]:shrink-0 adm:*:data-[slot=icon]:text-2xl
|
|
8
|
+
adm:*:data-[slot=icon]:opacity-50
|
|
9
|
+
`,children:[c.jsxRuntimeExports.jsx(le.Icon,{symbol:"search"}),c.jsxRuntimeExports.jsx(Q.Input,{"data-slot":"command-input",className:P.cn(`
|
|
10
|
+
adm:flex adm:h-10 adm:w-full adm:rounded-md adm:bg-transparent
|
|
11
|
+
adm:py-3 adm:text-sm adm:outline-hidden
|
|
12
|
+
adm:placeholder:text-muted-foreground
|
|
13
|
+
adm:disabled:cursor-not-allowed adm:disabled:opacity-50
|
|
14
|
+
`,e),...n})]})}function ot({className:e,...n}){return c.jsxRuntimeExports.jsx(Q.List,{"data-slot":"command-list",className:P.cn(`
|
|
15
|
+
adm:max-h-[300px] adm:scroll-py-1 adm:overflow-x-hidden
|
|
16
|
+
adm:overflow-y-auto
|
|
17
|
+
`,e),...n})}function st({className:e,...n}){return c.jsxRuntimeExports.jsx(Q.Empty,{"data-slot":"command-empty",className:P.cn("adm:py-6 adm:text-center adm:text-sm",e),...n})}function ut({className:e,...n}){return c.jsxRuntimeExports.jsx(Q.Group,{"data-slot":"command-group",className:P.cn(`
|
|
18
|
+
adm:overflow-hidden adm:text-foreground
|
|
19
|
+
adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:px-2
|
|
20
|
+
adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:py-1.5
|
|
21
|
+
adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:text-xs
|
|
22
|
+
adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:font-medium
|
|
23
|
+
adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:text-muted-foreground
|
|
24
|
+
adm:[&_[data-slot=command-item]:last-of-type]:rounded-b-[calc(var(--radius)-1px)]
|
|
25
|
+
adm:[&_[data-slot=command-item]:last-of-type]:border-b-0
|
|
26
|
+
`,e),...n})}function dt({className:e,...n}){return c.jsxRuntimeExports.jsx(Q.Item,{"data-slot":"command-item",className:P.cn(`
|
|
27
|
+
adm:relative adm:flex adm:min-h-11 adm:cursor-default adm:items-center
|
|
28
|
+
adm:gap-3 adm:border-b adm:border-divider adm:px-4 adm:text-sm
|
|
29
|
+
adm:outline-hidden adm:select-none
|
|
30
|
+
adm:data-[disabled=true]:pointer-events-none
|
|
31
|
+
adm:data-[disabled=true]:opacity-50
|
|
32
|
+
adm:data-[selected=true]:bg-muted
|
|
33
|
+
adm:data-[selected=true]:text-foreground
|
|
34
|
+
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
35
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
36
|
+
adm:[&_svg:not([class*=text-])]:text-muted-foreground
|
|
37
|
+
`,e),...n})}function ct({searchable:e,multiple:n,icon:r,value:h,onValueChange:o,labels:m,options:f,classNames:x,selectedFeedback:b="checkbox",alwaysShowPlaceholder:s=!1,valuePosition:E="right",renders:d,ref:w,"aria-invalid":S,disabled:N,searchBy:F="both",filter:L,exclusiveOption:k}){const _=H.useRef(null),[V,W]=H.useState(!1),[$,R]=H.useState(n?[]:""),p=h!==void 0?h:$,B=a=>k===a,q=H.useCallback(a=>{o?o(a):R(a)},[o]);H.useEffect(()=>{if(n&&k&&Array.isArray(p)&&p.length>1){const a=p.includes(k),y=p.filter(I=>I!==k);a&&y.length>0&&(console.warn(`Combobox: Initial value contains exclusive option "${k}" mixed with others. Auto-correcting to only exclusive option.`),q([k]))}k&&!f.find(a=>a.value===k)&&console.warn(`Combobox: exclusiveOption "${k}" not found in options. Exclusive behavior will be disabled.`)},[p,k,n,f,q]);const C={...{placeholder:"Select options...",searchPlaceholder:"Search options...",noItemsFound:"No options found.",multipleSelected:a=>`${a} options selected`},...m},Z=(a,y,I)=>{const K=y.toLowerCase().trim(),de=a.toLowerCase().trim();return L?L(a,y,I):F==="label"&&I&&I.length>0?I[0].toLowerCase().trim().includes(K)?1:0:F==="value"?de.includes(K)?1:0:F==="both"&&(I&&I.length>0&&I[0].toLowerCase().trim().includes(K)||de.includes(K))?1:0},G=()=>n&&Array.isArray(p)?p.length===0?null:p.length===1?f.find(a=>a.value===p[0])?.label:C.multipleSelected?.(p.length)||`${p.length} options selected`:!n&&typeof p=="string"&&p?f.find(a=>a.value===p)?.label:null,A=()=>n&&Array.isArray(p)?p.length>0:typeof p=="string"&&p!=="",M=a=>n&&Array.isArray(p)?p.includes(a):p===a,ee=a=>{if(n){const y=Array.isArray(p)?p:[];if(y.includes(a)){const ne=y.filter(Le=>Le!==a);q(ne);return}if(B(a)){q([a]);return}const de=[...y.filter(ne=>!B(ne)),a];q(de)}else q(a===p?"":a),W(!1)},D=a=>{const y=M(a),I=f.find(K=>K.value===a);return d?.selectedFeedback?d.selectedFeedback({option:I,isSelected:y,type:b}):b==="check"?c.jsxRuntimeExports.jsx("span",{className:P.cn(`
|
|
38
|
+
adm:absolute adm:right-2 adm:flex adm:size-3.5 adm:items-center
|
|
39
|
+
adm:justify-center
|
|
40
|
+
`,x?.check),children:y&&c.jsxRuntimeExports.jsx(le.Icon,{symbol:"check",className:"adm:text-xl adm:text-success"})}):c.jsxRuntimeExports.jsx($e.Checkbox,{checked:y,className:x?.checkbox})},te=()=>d?.placeholder?d.placeholder({text:C.placeholder||"",hasValue:A()}):c.jsxRuntimeExports.jsx("span",{className:`
|
|
41
|
+
adm:opacity-70
|
|
42
|
+
adm:group-disabled:opacity-100
|
|
43
|
+
`,children:C.placeholder}),U=()=>d?.displayValue?d.displayValue({text:G()??null,value:p}):c.jsxRuntimeExports.jsx("span",{children:G()}),ue=()=>s?c.jsxRuntimeExports.jsxs("span",{className:"adm:flex adm:items-center adm:gap-2",children:[r&&c.jsxRuntimeExports.jsx(le.Icon,{symbol:r,className:`
|
|
44
|
+
adm:opacity-50
|
|
45
|
+
adm:group-disabled:opacity-100
|
|
46
|
+
`}),te(),A()&&E==="left"&&U()]}):c.jsxRuntimeExports.jsxs("span",{className:"adm:flex adm:items-center adm:gap-2",children:[r&&c.jsxRuntimeExports.jsx(le.Icon,{symbol:r,className:`
|
|
47
|
+
adm:opacity-50
|
|
48
|
+
adm:group-disabled:opacity-100
|
|
49
|
+
`}),A()?U():te()]}),re=()=>d?.triggerIcon?d.triggerIcon({open:V}):c.jsxRuntimeExports.jsx(le.Icon,{symbol:"expand_more",className:`
|
|
50
|
+
adm:opacity-50
|
|
51
|
+
adm:group-disabled:opacity-100
|
|
52
|
+
`}),t=()=>s&&A()&&E==="right"?c.jsxRuntimeExports.jsxs("span",{className:"adm:flex adm:items-center adm:gap-2",children:[U(),re()]}):c.jsxRuntimeExports.jsx("span",{className:"adm:flex adm:items-center adm:gap-2",children:re()}),u=()=>d?.trigger?d.trigger({open:V,value:p,displayText:G()||"",placeholder:C.placeholder||"",hasValue:A(),icon:r}):c.jsxRuntimeExports.jsxs(Pe.Button,{ref:a=>{_.current=a,w&&(typeof w=="function"?w(a):w.current=a)},variant:"outline",role:"combobox","aria-expanded":V,"aria-invalid":S,disabled:N,className:P.cn(`
|
|
53
|
+
adm:group adm:justify-between adm:rounded-md adm:font-normal
|
|
54
|
+
adm:hover:bg-muted
|
|
55
|
+
`,x?.trigger),children:[ue(),t()]}),v=()=>e?d?.searchInput?d.searchInput({placeholder:C.searchPlaceholder||""}):c.jsxRuntimeExports.jsx(it,{placeholder:C.searchPlaceholder,className:x?.input}):null,i=()=>d?.empty?d.empty({text:C.noItemsFound||""}):c.jsxRuntimeExports.jsx(c.jsxRuntimeExports.Fragment,{children:C.noItemsFound}),g=a=>d?.optionLabel?d.optionLabel({option:a}):c.jsxRuntimeExports.jsx(c.jsxRuntimeExports.Fragment,{children:a.label}),j=a=>d?.option?c.jsxRuntimeExports.jsx("div",{children:d.option({option:a,isSelected:M(a.value),selectedFeedback:b})},a.value):c.jsxRuntimeExports.jsx(dt,{value:a.value,keywords:[a.label],onSelect:ee,disabled:a.disabled,className:P.cn(x?.item,b==="check"&&"adm:pr-10",a.supportiveText&&`
|
|
56
|
+
adm:flex-col adm:items-start adm:gap-2 adm:py-3
|
|
57
|
+
`),children:a.supportiveText?c.jsxRuntimeExports.jsxs(c.jsxRuntimeExports.Fragment,{children:[c.jsxRuntimeExports.jsxs("div",{className:"adm:flex adm:w-full adm:items-center adm:gap-3",children:[b==="checkbox"&&D(a.value),c.jsxRuntimeExports.jsx("span",{className:"adm:flex-1",children:g(a)}),b==="check"&&D(a.value)]}),c.jsxRuntimeExports.jsx("p",{className:"adm:w-full adm:text-sm adm:text-muted-foreground",children:a.supportiveText})]}):c.jsxRuntimeExports.jsxs(c.jsxRuntimeExports.Fragment,{children:[b==="checkbox"&&D(a.value),g(a),b==="check"&&D(a.value)]})},a.value);return c.jsxRuntimeExports.jsxs(fe.Popover,{open:V,onOpenChange:W,children:[c.jsxRuntimeExports.jsx(fe.PopoverTrigger,{asChild:!0,children:u()}),c.jsxRuntimeExports.jsx(fe.PopoverContent,{align:"start",className:P.cn("adm:p-0",x?.popover),style:{minWidth:_.current?.offsetWidth},children:c.jsxRuntimeExports.jsxs(lt,{filter:Z,className:x?.command,children:[v(),c.jsxRuntimeExports.jsxs(ot,{className:x?.list,children:[c.jsxRuntimeExports.jsx(st,{className:x?.empty,children:i()}),c.jsxRuntimeExports.jsx(ut,{className:x?.group,children:f.map(a=>j(a))})]})]})})]})}exports.Combobox=ct;
|
package/dist/combobox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./combobox-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./combobox-B2BkUl7v.cjs");exports.Combobox=o.Combobox;
|
package/dist/combobox.js
CHANGED
|
@@ -16,8 +16,9 @@ declare function SidebarFooter({ className, children, ...props }: PropsWithChild
|
|
|
16
16
|
declare function SidebarMenu({ asChild, className, ...props }: PropsWithChildren<ComponentProps<"div">> & {
|
|
17
17
|
asChild?: boolean;
|
|
18
18
|
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
declare function SidebarMenuItem({ asChild, className, ...props }: ComponentProps<"button"> & {
|
|
19
|
+
declare function SidebarMenuItem({ asChild, isActive, className, ...props }: ComponentProps<"button"> & {
|
|
20
20
|
asChild?: boolean;
|
|
21
|
+
isActive?: boolean;
|
|
21
22
|
}): import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
declare function useSidebarContext(): SidebarContextType;
|
|
23
24
|
export { Sidebar, SidebarContent, SidebarInset, SidebarTrigger, SidebarTopBar, SidebarHeader, SidebarFooter, SidebarMenu, SidebarMenuItem, useSidebarContext, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { AnimationEventHandler } from 'react';
|
|
3
3
|
export declare const toastVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "success" | "warning" | "destructive" | "info" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export declare const TOAST_AUTO_CLOSE_DEFAULT = 3000;
|
|
7
7
|
export type Toast = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const alertVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "success" | "warning" | "destructive" | null | undefined;
|
|
4
|
+
variant?: "default" | "success" | "warning" | "destructive" | "info" | null | undefined;
|
|
5
5
|
border?: "transparent" | "default" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
declare function Alert({ className, variant, border, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { InputGroupButton } from '../input-group';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const REGION_CURRENCY_MAP: Record<string, string>;
|
|
4
|
+
declare function getRegionFromLocale(locale: string): string | null;
|
|
5
|
+
declare function getCurrencySymbol(currencyCode: string): string;
|
|
6
|
+
declare function formatAmount(raw: string, locale: string, minimumFractionDigits: number, maximumFractionDigits: number): string;
|
|
7
|
+
type AmountInputContainerProps = Readonly<React.ComponentProps<"div"> & {
|
|
8
|
+
/** When true, applies disabled styling to addons inside the container. */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
declare function AmountInputContainer({ className, disabled, ...props }: AmountInputContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
type AmountInputFlagProps = Readonly<{
|
|
13
|
+
/** BCP 47 locale tag (e.g. "es-CO", "de-DE"). Derives the regional flag and currency symbol. */
|
|
14
|
+
locale: string;
|
|
15
|
+
/** Override the derived currency symbol. */
|
|
16
|
+
currencySymbol?: string;
|
|
17
|
+
}>;
|
|
18
|
+
declare function AmountInputFlag({ locale, currencySymbol: symbolProp }: AmountInputFlagProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
type AmountInputProps = Readonly<Omit<React.ComponentProps<"input">, "type" | "value" | "defaultValue" | "onChange"> & {
|
|
20
|
+
value?: number | string;
|
|
21
|
+
defaultValue?: number | string;
|
|
22
|
+
/** Called on blur with the parsed numeric value, or undefined if empty/invalid. */
|
|
23
|
+
onValueChange?: (value: number | undefined) => void;
|
|
24
|
+
/** Locale used for number formatting. Defaults to "en-US". */
|
|
25
|
+
locale?: string;
|
|
26
|
+
minimumFractionDigits?: number;
|
|
27
|
+
maximumFractionDigits?: number;
|
|
28
|
+
}>;
|
|
29
|
+
declare function AmountInput({ className, value: controlledValue, defaultValue, onValueChange, locale, minimumFractionDigits, maximumFractionDigits, disabled, onFocus, onBlur, ...props }: AmountInputProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
type AmountInputActionProps = Readonly<Omit<React.ComponentProps<typeof InputGroupButton>, "variant">>;
|
|
31
|
+
declare function AmountInputAction({ className, type, ...props }: AmountInputActionProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export { REGION_CURRENCY_MAP, getRegionFromLocale, getCurrencySymbol, formatAmount, AmountInput, AmountInputAction, AmountInputContainer, AmountInputFlag, type AmountInputActionProps, type AmountInputContainerProps, type AmountInputFlagProps, type AmountInputProps, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { REGION_CURRENCY_MAP, getRegionFromLocale, getCurrencySymbol, formatAmount, AmountInput, AmountInputAction, AmountInputContainer, AmountInputFlag, type AmountInputActionProps, type AmountInputContainerProps, type AmountInputFlagProps, type AmountInputProps, } from './amount-input';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "success" | "success-medium" | "warning" | "warning-medium" | "destructive" | "destructive-medium" | "outline" | "secondary" | "default-medium" | "waiting" | "waiting-medium" | "muted" | null | undefined;
|
|
4
|
+
variant?: "white" | "default" | "success" | "success-medium" | "warning" | "warning-medium" | "destructive" | "destructive-medium" | "outline" | "secondary" | "info" | "default-medium" | "waiting" | "waiting-medium" | "info-medium" | "muted" | null | undefined;
|
|
5
5
|
size?: "lg" | null | undefined;
|
|
6
|
+
shape?: "pill" | null | undefined;
|
|
6
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
declare function Badge({ className, variant, size, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
8
|
+
declare function Badge({ className, variant, size, shape, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
8
9
|
asChild?: boolean;
|
|
9
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export { Badge, badgeVariants };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from '../button';
|
|
2
2
|
import { DayPicker, DayButton } from 'react-day-picker';
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, locale, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
5
|
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,6 +9,8 @@ type ComboboxOption = {
|
|
|
9
9
|
label: string;
|
|
10
10
|
/** Whether the option is disabled and cannot be selected */
|
|
11
11
|
disabled?: boolean;
|
|
12
|
+
/** Optional supporting text displayed below the label */
|
|
13
|
+
supportiveText?: string;
|
|
12
14
|
};
|
|
13
15
|
/**
|
|
14
16
|
* Customizable text labels used throughout the combobox.
|
|
@@ -173,7 +175,7 @@ type ComboboxProps = Readonly<{
|
|
|
173
175
|
"aria-invalid"?: "true" | "false" | boolean;
|
|
174
176
|
/** Standard disabled prop */
|
|
175
177
|
disabled?: boolean;
|
|
176
|
-
/** Specifies which field(s) to search by: "
|
|
178
|
+
/** Specifies which field(s) to search by: "both" (default), "label", or "value" */
|
|
177
179
|
searchBy?: "label" | "value" | "both";
|
|
178
180
|
/** Custom filter function for advanced search behavior. Receives (value, search, keywords) and should return a number (0 = no match, >0 = match with ranking) */
|
|
179
181
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -2,7 +2,9 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>
|
|
5
|
+
declare function DropdownMenuTrigger({ className, size, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger> & {
|
|
6
|
+
size?: "sm" | "default";
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SelectableCard, SelectableCardDescription, SelectableCardGroup, SelectableCardTitle, type SelectableCardDescriptionProps, type SelectableCardGroupProps, type SelectableCardProps, type SelectableCardTitleProps, } from './selectable-card';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type SelectableCardGroupProps = Readonly<{
|
|
3
|
+
value?: string;
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
onValueChange?: (value: string) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
declare function SelectableCardGroup({ value: controlledValue, defaultValue, onValueChange, disabled, className, children, }: SelectableCardGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
type SelectableCardProps = Readonly<React.ComponentProps<"button"> & {
|
|
12
|
+
/** Required when used inside SelectableCardGroup */
|
|
13
|
+
value?: string;
|
|
14
|
+
/** Used directly when outside a group */
|
|
15
|
+
selected?: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
declare function SelectableCard({ className, value, selected: selectedProp, disabled, onClick, children, ...props }: SelectableCardProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
type SelectableCardTitleProps = Readonly<React.ComponentProps<"p">>;
|
|
19
|
+
declare function SelectableCardTitle({ className, ...props }: SelectableCardTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
type SelectableCardDescriptionProps = Readonly<React.ComponentProps<"p">>;
|
|
21
|
+
declare function SelectableCardDescription({ className, ...props }: SelectableCardDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export { SelectableCard, SelectableCardDescription, SelectableCardGroup, SelectableCardTitle, type SelectableCardDescriptionProps, type SelectableCardGroupProps, type SelectableCardProps, type SelectableCardTitleProps, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Timeline, TimelineContent, TimelineDescription, TimelineIndicator, TimelineItem, TimelineTime, TimelineTitle, type TimelineContentProps, type TimelineDescriptionProps, type TimelineIndicatorProps, type TimelineItemProps, type TimelineOrientation, type TimelineProps, type TimelineStatus, type TimelineTimeProps, type TimelineTitleProps, } from './timeline';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type TimelineStatus = "pending" | "active" | "complete";
|
|
3
|
+
type TimelineOrientation = "vertical" | "horizontal";
|
|
4
|
+
type TimelineProps = Readonly<React.ComponentProps<"ol"> & {
|
|
5
|
+
/** Layout direction. Defaults to "vertical". */
|
|
6
|
+
orientation?: TimelineOrientation;
|
|
7
|
+
/**
|
|
8
|
+
* Only applies when orientation="horizontal".
|
|
9
|
+
* true (default): collapses to vertical below the sm breakpoint (< 640 px).
|
|
10
|
+
* false: stays horizontal at all sizes with overflow-x scroll.
|
|
11
|
+
*/
|
|
12
|
+
responsive?: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
declare function Timeline({ className, orientation, responsive, children, ...props }: TimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
type TimelineItemProps = Readonly<React.ComponentProps<"li"> & {
|
|
16
|
+
/** Visual and semantic state of this step. Defaults to "pending". */
|
|
17
|
+
status?: TimelineStatus;
|
|
18
|
+
}>;
|
|
19
|
+
declare function TimelineItem({ className, status, ...props }: TimelineItemProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
type TimelineIndicatorProps = Readonly<React.ComponentProps<"div">>;
|
|
21
|
+
declare function TimelineIndicator({ className, ...props }: TimelineIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
type TimelineContentProps = Readonly<React.ComponentProps<"div">>;
|
|
23
|
+
declare function TimelineContent({ className, ...props }: TimelineContentProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
type TimelineTitleProps = Readonly<React.ComponentProps<"p">>;
|
|
25
|
+
declare function TimelineTitle({ className, ...props }: TimelineTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
type TimelineDescriptionProps = Readonly<React.ComponentProps<"p">>;
|
|
27
|
+
declare function TimelineDescription({ className, ...props }: TimelineDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
type TimelineTimeProps = Readonly<React.ComponentProps<"time">>;
|
|
29
|
+
declare function TimelineTime({ className, ...props }: TimelineTimeProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export { Timeline, TimelineContent, TimelineDescription, TimelineIndicator, TimelineItem, TimelineTime, TimelineTitle, type TimelineContentProps, type TimelineDescriptionProps, type TimelineIndicatorProps, type TimelineItemProps, type TimelineOrientation, type TimelineProps, type TimelineStatus, type TimelineTimeProps, type TimelineTitleProps, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
declare const typographyVariants: (props?: ({
|
|
3
|
-
variant?: "caption" | "sm" | "lg" | "
|
|
3
|
+
variant?: "caption" | "sm" | "lg" | "xs" | "md" | null | undefined;
|
|
4
4
|
color?: "default" | "success" | "warning" | "destructive" | "secondary" | "waiting" | "muted" | "primary" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
declare function Typography({ className, variant, color, asChild, ...props }: React.ComponentProps<"p"> & VariantProps<typeof typographyVariants> & {
|
package/dist/context-menu.cjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),B=require("react"),f=require("./index-BWaO7kQK.cjs"),H=require("./index-cwZN7ZY3.cjs"),F=require("./index-CocSS1YK.cjs"),d=require("./index-8iwAKZIp.cjs"),X=require("./index-CzY-WZXL.cjs"),h=require("./icon-B7joBr0A.cjs"),l=require("./index-DoxiiusW.cjs");function W(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=W(B);var R="ContextMenu",[K]=H.createContextScope(R,[d.createMenuScope]),u=d.createMenuScope(),[Y,b]=K(R),j=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:o,dir:r,modal:
|
|
2
|
-
adm:flex adm:h-
|
|
3
|
-
adm:
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),B=require("react"),f=require("./index-BWaO7kQK.cjs"),H=require("./index-cwZN7ZY3.cjs"),F=require("./index-CocSS1YK.cjs"),d=require("./index-8iwAKZIp.cjs"),X=require("./index-CzY-WZXL.cjs"),h=require("./icon-B7joBr0A.cjs"),l=require("./index-DoxiiusW.cjs");function W(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=W(B);var R="ContextMenu",[K]=H.createContextScope(R,[d.createMenuScope]),u=d.createMenuScope(),[Y,b]=K(R),j=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:o,dir:r,modal:c=!0}=e,[x,i]=s.useState(!1),C=u(t),v=X.useCallbackRef(o),m=s.useCallback(g=>{i(g),v(g)},[v]);return a.jsxRuntimeExports.jsx(Y,{scope:t,open:x,onOpenChange:m,modal:c,children:a.jsxRuntimeExports.jsx(d.Root3,{...C,dir:r,open:x,onOpenChange:m,modal:c,children:n})})};j.displayName=R;var E="ContextMenuTrigger",_=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:o=!1,...r}=e,c=b(E,n),x=u(n),i=s.useRef({x:0,y:0}),C=s.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),v=s.useRef(0),m=s.useCallback(()=>window.clearTimeout(v.current),[]),g=p=>{i.current={x:p.clientX,y:p.clientY},c.onOpenChange(!0)};return s.useEffect(()=>m,[m]),s.useEffect(()=>void(o&&m()),[o,m]),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(d.Anchor2,{...x,virtualRef:C}),a.jsxRuntimeExports.jsx(F.Primitive.span,{"data-state":c.open?"open":"closed","data-disabled":o?"":void 0,...r,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:o?e.onContextMenu:f.composeEventHandlers(e.onContextMenu,p=>{m(),g(p),p.preventDefault()}),onPointerDown:o?e.onPointerDown:f.composeEventHandlers(e.onPointerDown,M(p=>{m(),v.current=window.setTimeout(()=>g(p),700)})),onPointerMove:o?e.onPointerMove:f.composeEventHandlers(e.onPointerMove,M(m)),onPointerCancel:o?e.onPointerCancel:f.composeEventHandlers(e.onPointerCancel,M(m)),onPointerUp:o?e.onPointerUp:f.composeEventHandlers(e.onPointerUp,M(m))})]})});_.displayName=E;var J="ContextMenuPortal",S=e=>{const{__scopeContextMenu:t,...n}=e,o=u(t);return a.jsxRuntimeExports.jsx(d.Portal,{...o,...n})};S.displayName=J;var N="ContextMenuContent",P=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=b(N,n),c=u(n),x=s.useRef(!1);return a.jsxRuntimeExports.jsx(d.Content2,{...c,...o,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),!i.defaultPrevented&&x.current&&i.preventDefault(),x.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),!i.defaultPrevented&&!r.modal&&(x.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});P.displayName=N;var Q="ContextMenuGroup",I=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Group,{...r,...o,ref:t})});I.displayName=Q;var V="ContextMenuLabel",w=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Label,{...r,...o,ref:t})});w.displayName=V;var Z="ContextMenuItem",y=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Item2,{...r,...o,ref:t})});y.displayName=Z;var ee="ContextMenuCheckboxItem",O=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.CheckboxItem,{...r,...o,ref:t})});O.displayName=ee;var te="ContextMenuRadioGroup",T=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.RadioGroup,{...r,...o,ref:t})});T.displayName=te;var ne="ContextMenuRadioItem",A=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.RadioItem,{...r,...o,ref:t})});A.displayName=ne;var oe="ContextMenuItemIndicator",k=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.ItemIndicator,{...r,...o,ref:t})});k.displayName=oe;var ae="ContextMenuSeparator",G=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Separator,{...r,...o,ref:t})});G.displayName=ae;var re="ContextMenuArrow",se=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Arrow2,{...r,...o,ref:t})});se.displayName=re;var $="ContextMenuSub",D=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:o,open:r,defaultOpen:c}=e,x=u(t),[i,C]=f.useControllableState({prop:r,defaultProp:c??!1,onChange:o,caller:$});return a.jsxRuntimeExports.jsx(d.Sub,{...x,open:i,onOpenChange:C,children:n})};D.displayName=$;var de="ContextMenuSubTrigger",L=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.SubTrigger,{...r,...o,ref:t})});L.displayName=de;var ue="ContextMenuSubContent",q=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.SubContent,{...r,...o,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});q.displayName=ue;function M(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var ie=j,me=_,z=S,xe=P,ce=I,le=w,pe=y,fe=O,Ce=T,ve=A,U=k,ge=G,Me=D,he=L,Re=q;function be({...e}){return a.jsxRuntimeExports.jsx(ie,{"data-slot":"context-menu",...e})}function je({...e}){return a.jsxRuntimeExports.jsx(me,{"data-slot":"context-menu-trigger",...e})}function Ee({...e}){return a.jsxRuntimeExports.jsx(ce,{"data-slot":"context-menu-group",...e})}function _e({...e}){return a.jsxRuntimeExports.jsx(z,{"data-slot":"context-menu-portal",...e})}function Se({...e}){return a.jsxRuntimeExports.jsx(Me,{"data-slot":"context-menu-sub",...e})}function Ne({...e}){return a.jsxRuntimeExports.jsx(Ce,{"data-slot":"context-menu-radio-group",...e})}function Pe({className:e,inset:t,children:n,...o}){return a.jsxRuntimeExports.jsxs(he,{"data-slot":"context-menu-sub-trigger","data-inset":t,className:l.cn(`
|
|
2
|
+
adm:flex adm:h-11 adm:cursor-default adm:items-center adm:gap-3
|
|
3
|
+
adm:pr-10 adm:pl-4 adm:text-sm adm:outline-hidden adm:select-none
|
|
4
4
|
adm:first:rounded-t-sm
|
|
5
5
|
adm:last:rounded-b-sm
|
|
6
|
-
adm:focus:bg-
|
|
6
|
+
adm:focus:bg-muted adm:focus:text-foreground
|
|
7
7
|
adm:data-inset:pl-8
|
|
8
|
-
adm:data-[state=open]:bg-
|
|
9
|
-
adm:data-[state=open]:text-accent-foreground
|
|
8
|
+
adm:data-[state=open]:bg-muted adm:data-[state=open]:text-foreground
|
|
10
9
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
11
10
|
`,e),...o,children:[n,a.jsxRuntimeExports.jsx(h.Icon,{symbol:"chevron_right",className:`
|
|
12
11
|
adm:ml-auto adm:shrink-0 adm:text-lg adm:text-muted-foreground
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
adm:data-[state=closed]:zoom-out-95
|
|
24
23
|
adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
|
|
25
24
|
adm:data-[state=open]:zoom-in-95
|
|
26
|
-
`,e),...t})}function we({className:e,...t}){return a.jsxRuntimeExports.jsx(z,{children:a.jsxRuntimeExports.jsx(
|
|
25
|
+
`,e),...t})}function we({className:e,...t}){return a.jsxRuntimeExports.jsx(z,{children:a.jsxRuntimeExports.jsx(xe,{"data-slot":"context-menu-content",className:l.cn(`
|
|
27
26
|
adm:z-50 adm:max-h-(--radix-context-menu-content-available-height)
|
|
28
27
|
adm:min-w-[8rem]
|
|
29
28
|
adm:origin-(--radix-context-menu-content-transform-origin)
|
|
@@ -39,11 +38,12 @@
|
|
|
39
38
|
adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
|
|
40
39
|
adm:data-[state=open]:zoom-in-95
|
|
41
40
|
`,e),...t})})}function ye({className:e,inset:t,variant:n="default",...o}){return a.jsxRuntimeExports.jsx(pe,{"data-slot":"context-menu-item","data-inset":t,"data-variant":n,className:l.cn(`
|
|
42
|
-
adm:relative adm:flex adm:h-
|
|
43
|
-
adm:gap-
|
|
41
|
+
adm:relative adm:flex adm:h-11 adm:cursor-default adm:items-center
|
|
42
|
+
adm:gap-3 adm:pr-10 adm:pl-4 adm:text-sm adm:outline-hidden
|
|
43
|
+
adm:select-none
|
|
44
44
|
adm:first:rounded-t-sm
|
|
45
45
|
adm:last:rounded-b-sm
|
|
46
|
-
adm:focus:bg-
|
|
46
|
+
adm:focus:bg-muted adm:focus:text-foreground
|
|
47
47
|
adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
|
|
48
48
|
adm:data-inset:pl-8
|
|
49
49
|
adm:data-[variant=destructive]:text-destructive
|
|
@@ -53,31 +53,30 @@
|
|
|
53
53
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
54
54
|
adm:data-[variant=destructive]:*:[svg]:text-destructive!
|
|
55
55
|
`,e),...o})}function Oe({className:e,children:t,checked:n,...o}){return a.jsxRuntimeExports.jsxs(fe,{"data-slot":"context-menu-checkbox-item",className:l.cn(`
|
|
56
|
-
adm:relative adm:flex adm:h-
|
|
57
|
-
adm:gap-
|
|
56
|
+
adm:relative adm:flex adm:h-11 adm:cursor-default adm:items-center
|
|
57
|
+
adm:gap-3 adm:pr-10 adm:pl-8 adm:text-sm adm:outline-hidden
|
|
58
58
|
adm:select-none
|
|
59
59
|
adm:first:rounded-t-sm
|
|
60
60
|
adm:last:rounded-b-sm
|
|
61
|
-
adm:focus:bg-
|
|
61
|
+
adm:focus:bg-muted adm:focus:text-foreground
|
|
62
62
|
adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
|
|
63
63
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
64
64
|
`,e),checked:n,...o,children:[a.jsxRuntimeExports.jsx("span",{className:`
|
|
65
65
|
adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5
|
|
66
66
|
adm:items-center adm:justify-center
|
|
67
|
-
`,children:a.jsxRuntimeExports.jsx(U,{children:a.jsxRuntimeExports.jsx(h.Icon,{symbol:"check",className:"adm:text-
|
|
68
|
-
adm:relative adm:flex adm:h-
|
|
69
|
-
adm:gap-
|
|
67
|
+
`,children:a.jsxRuntimeExports.jsx(U,{children:a.jsxRuntimeExports.jsx(h.Icon,{symbol:"check",className:"adm:text-xl adm:text-success"})})}),t]})}function Te({className:e,children:t,...n}){return a.jsxRuntimeExports.jsxs(ve,{"data-slot":"context-menu-radio-item",className:l.cn(`
|
|
68
|
+
adm:relative adm:flex adm:h-11 adm:cursor-default adm:items-center
|
|
69
|
+
adm:gap-3 adm:pr-10 adm:pl-8 adm:text-sm adm:outline-hidden
|
|
70
70
|
adm:select-none
|
|
71
71
|
adm:first:rounded-t-sm
|
|
72
72
|
adm:last:rounded-b-sm
|
|
73
|
-
adm:focus:bg-
|
|
73
|
+
adm:focus:bg-muted adm:focus:text-foreground
|
|
74
74
|
adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
|
|
75
75
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
76
76
|
`,e),...n,children:[a.jsxRuntimeExports.jsx("span",{className:`
|
|
77
77
|
adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5
|
|
78
78
|
adm:items-center adm:justify-center
|
|
79
79
|
`,children:a.jsxRuntimeExports.jsx(U,{children:a.jsxRuntimeExports.jsx(h.Icon,{symbol:"circle",fill:1,className:"adm:text-xs"})})}),t]})}function Ae({className:e,inset:t,...n}){return a.jsxRuntimeExports.jsx(le,{"data-slot":"context-menu-label","data-inset":t,className:l.cn(`
|
|
80
|
-
adm:
|
|
81
|
-
adm:font-medium adm:text-foreground
|
|
80
|
+
adm:px-2 adm:py-1.5 adm:text-xs adm:text-muted-foreground
|
|
82
81
|
adm:data-inset:pl-8
|
|
83
82
|
`,e),...n})}function ke({className:e,...t}){return a.jsxRuntimeExports.jsx(ge,{"data-slot":"context-menu-separator",className:l.cn("adm:h-px adm:bg-border",e),...t})}function Ge({className:e,...t}){return a.jsxRuntimeExports.jsx("span",{"data-slot":"context-menu-shortcut",className:l.cn("adm:ml-auto adm:text-xs adm:tracking-widest adm:text-muted-foreground",e),...t})}exports.ContextMenu=be;exports.ContextMenuCheckboxItem=Oe;exports.ContextMenuContent=we;exports.ContextMenuGroup=Ee;exports.ContextMenuItem=ye;exports.ContextMenuLabel=Ae;exports.ContextMenuPortal=_e;exports.ContextMenuRadioGroup=Ne;exports.ContextMenuRadioItem=Te;exports.ContextMenuSeparator=ke;exports.ContextMenuShortcut=Ge;exports.ContextMenuSub=Se;exports.ContextMenuSubContent=Ie;exports.ContextMenuSubTrigger=Pe;exports.ContextMenuTrigger=je;
|