@collective-intelligence/ui-react 0.1.1 → 0.1.3
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 +3 -1
- package/dist/components/icons/index.js +1 -1
- package/dist/components/illustrations/index.d.ts +8 -8
- package/dist/components/illustrations/index.js +1 -1
- package/dist/components/ui/index.js +20 -1
- package/dist/components/ui-extensions/atoms/ThemeToggle/index.js +1 -1
- package/dist/components/ui-extensions/hooks/use-mobile.js +1 -1
- package/dist/components/ui-extensions/index.d.ts +12 -0
- package/dist/components/ui-extensions/index.js +6 -6
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/operations.js +1 -1
- package/dist/hooks/use-debounced-callback.js +1 -1
- package/dist/hooks/use-mount-action.js +1 -1
- package/dist/index-1hg2mydq.js +2 -0
- package/dist/index-1kd3e9cz.js +2 -0
- package/dist/index-24awe3d6.js +2 -0
- package/dist/index-38cmkpwj.js +6 -0
- package/dist/index-42q094m7.js +2 -0
- package/dist/index-75cf149h.js +2 -0
- package/dist/index-7gzq3np4.js +2 -0
- package/dist/index-87bxrmfq.js +42 -0
- package/dist/index-9nkdbb33.js +2 -0
- package/dist/index-ckt9z566.js +2 -0
- package/dist/index-db7hx21g.js +2 -0
- package/dist/index-k79cbjh7.js +2 -0
- package/dist/index-q2bgrvjz.js +2 -0
- package/dist/index-rgye3pe5.js +2 -0
- package/dist/index-s7dyqth2.js +2 -0
- package/dist/index-vs10z2rc.js +2 -0
- package/dist/index-whabarfn.js +2 -0
- package/dist/index-x6g6brsv.js +2 -0
- package/dist/index-ycc4mvy6.js +2 -0
- package/dist/index.js +1 -1
- package/dist/resources.d.ts +2 -1
- package/dist/resources.js +1 -1
- package/dist/tokens/theme.js +1 -1
- package/dist/utils/cn.js +1 -1
- package/package.json +3 -3
- package/dist/index-225zhfvs.js +0 -2
- package/dist/index-4djc1w16.js +0 -2
- package/dist/index-5m33z54y.js +0 -25
- package/dist/index-eevg910d.js +0 -2
- package/dist/index-f91yzwpm.js +0 -2
- package/dist/index-fdh3nr3r.js +0 -2
- package/dist/index-fmpwyc92.js +0 -2
- package/dist/index-gzgwcnnv.js +0 -42
- package/dist/index-kghpgv95.js +0 -2
- package/dist/index-m283d3wz.js +0 -2
- package/dist/index-mtc4857g.js +0 -2
- package/dist/index-y8r5sgrk.js +0 -2
- package/dist/index-yaz3187s.js +0 -2
package/dist/resources.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import{m}from"./index-s7dyqth2.js";import{n}from"./index-87bxrmfq.js";import{pt,jt,$t,Yt,Kt,Xt,Ue,Zt,Jt,Qt,eo,qe,wt,je,to}from"./index-rgye3pe5.js";import{M,D,T,Z,g,b}from"./index-7gzq3np4.js";import"./index-1kd3e9cz.js";import{v}from"./index-9nkdbb33.js";var L={};pt(L,{ResourceActionPrimitive:()=>G,ResourceDialogPrimitive:()=>J,ResourceFilterPrimitive:()=>W,ResourceFiltersBar:()=>Y,ResourceFormPrimitive:()=>Q,ResourceListPrimitive:()=>z,ResourcePaginationPrimitive:()=>K,ResourceTablePrimitive:()=>q});import{Fragment as _,useId as j}from"react";import{jsx as t,jsxs as P}from"react/jsx-runtime";var k=(...e)=>e.filter(Boolean).join(" "),oe={border:"1px solid currentColor",borderRadius:"0.5rem",padding:"0.75rem"},q=({caption:e,className:i,columns:r,empty:l="No resources found",getRowKey:s,onRowClick:o,renderActions:u,actionsLabel:d="Actions",stickyActions:a=!0,isPending:c=!1,isRowSelected:C,isRowExpanded:S,onExpandedChange:x,renderDetails:h,renderContextMenu:p,renderCell:w,rows:A,style:ee})=>{let I=u!==void 0||h!==void 0,V=a?"sticky right-0 z-10 shadow-[-4px_0_8px_-6px_rgba(0,0,0,0.1)]":"";return P(Jt,{className:k("ci-resource-table",i),style:{borderCollapse:"collapse",width:"100%",...ee},children:[e?t(to,{children:e}):null,t(Qt,{children:P(qe,{children:[r.map((R)=>t(wt,{scope:"col",children:R.label},R.id)),I?t(wt,{className:V,children:t("span",{className:"sr-only",children:d})}):null]})}),t(eo,{children:A.length===0?t(qe,{children:t(je,{className:"py-10",colSpan:Math.max(r.length+(I?1:0),1),children:l})}):A.map((R)=>{let F=S?.(R)??!1,O=h?.(R,F),E=!!O,H=P(qe,{"data-state":C?.(R)?"selected":void 0,tabIndex:o?0:void 0,className:o?"cursor-pointer":void 0,onKeyDown:(y)=>{if(y.target===y.currentTarget&&(y.key==="Enter"||y.key===" "))y.preventDefault(),o?.(R)},onClick:(y)=>{if(y.target instanceof Element&&y.target.closest("[data-slot='row-actions']"))return;o?.(R)},children:[r.map((y)=>t(je,{children:w(R,y)},y.id)),I?P(je,{"data-slot":"row-actions",className:`flex gap-2 justify-end ${V}`,children:[u?.(R),E&&x?t(n,{type:"button",variant:"ghost",size:"icon","aria-label":F?"Collapse":"Expand","aria-expanded":F,disabled:c,onClick:()=>x(R,!F),children:F?t(v,{}):t(m,{})}):null]}):null]},s(R));return P(_,{children:[p?P(jt,{children:[t($t,{asChild:!0,children:H}),t(Yt,{children:p(R)})]}):H,E&&F?t(qe,{className:"hover:bg-transparent",children:t(je,{colSpan:r.length+(I?1:0),children:O})}):null]},s(R))})})]})},z=({ariaLabel:e="Resources",className:i,empty:r="No resources found",getItemKey:l,items:s,renderItem:o,renderContainer:u,style:d})=>u?u(s.length===0?r:s.map((a,c)=>t(_,{children:o(a,c)},l(a)))):t("ul",{"aria-label":e,className:k("ci-resource-list",i),style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"none",...d},children:s.length===0?t("li",{children:r}):s.map((a,c)=>t("li",{children:o(a,c)},l(a)))}),W=({className:e,inputProps:i,label:r,onChange:l,style:s,value:o})=>t(g,{...i,"aria-label":r,className:k("ci-resource-filter",e),onChange:(u)=>{l(u.currentTarget.value)},style:s,type:"search",value:o}),re=(e,i)=>{if(i<=7)return Array.from({length:i},(s,o)=>o+1);let r=Math.max(2,Math.min(e-1,i-3)),l=Math.min(i-1,Math.max(e+1,4));return[1,...r>2?[null]:[],...Array.from({length:l-r+1},(s,o)=>r+o),...l<i-1?[null]:[],i]},K=({className:e,currentPage:i,hasNextPage:r,hasPreviousPage:l=!1,isPending:s=!1,navigationLabel:o="Resource pagination",nextLabel:u="Next",onNext:d,onPrevious:a,onPageChange:c,totalPages:C,ellipsisLabel:S="More pages",previousLabel:x="Previous",style:h})=>t(Kt,{"aria-label":o,className:k("ci-resource-pagination",e),style:h,children:P(Xt,{children:[t(Ue,{children:t(n,{variant:"ghost",disabled:!l||s,onClick:a,type:"button",children:x})}),i!==void 0&&C!==void 0&&c?re(i,C).map((p,w)=>t(Ue,{children:p===null?t(Zt,{"aria-label":S}):t(n,{type:"button",size:"icon",variant:p===i?"outline":"ghost","aria-current":p===i?"page":void 0,disabled:s,onClick:()=>c(p),children:p})},p??`gap-${w}`)):null,i!==void 0&&(C===void 0||!c)?t(Ue,{children:P("span",{"aria-live":"polite",children:["Page ",i]})}):null,t(Ue,{children:t(n,{variant:"ghost",disabled:!r||s,onClick:d,type:"button",children:u})})]})}),G=({children:e,className:i,components:r,disabled:l=!1,onClick:s,pending:o=!1,style:u})=>{let d=r?.Button??n;return t(d,{"aria-busy":o,className:k("ci-resource-action",i),disabled:l||o,onClick:s,style:u,type:"button",children:e})},J=({children:e,className:i,components:r,open:l,onOpenChange:s,description:o,style:u,title:d})=>{let a=j(),c=j();if(!r?.Dialog)return t(M,{open:l,...s?{onOpenChange:s}:{},children:P(D,{className:i,style:u,"aria-describedby":o?c:void 0,children:[t(T,{children:d}),o?t(Z,{id:c,children:o}):null,e]})});if(!l)return null;let C=r.Dialog;return P(C,{open:l,"aria-labelledby":a,"aria-modal":"true",className:k("ci-resource-dialog",i),style:{...oe,...u},children:[t("h2",{id:a,children:d}),e]})};import{useId as te}from"react";import{jsx as f,jsxs as N}from"react/jsx-runtime";var ie=(e)=>e===null||e===void 0?"":String(e),ae=({field:e,id:i,value:r,disabled:l,errorId:s,onChange:o})=>{let u={"aria-describedby":s,"aria-invalid":s!==void 0,disabled:l,id:i,name:e.name,required:e.control!=="checkbox"&&e.required===!0&&r!==null};if(e.control==="select"){let d=e.options??[];return N("select",{...u,disabled:l||e.readOnly,className:"border-input bg-background h-9 w-full rounded-md border px-3 text-sm focus-visible:ring-ring focus-visible:ring-2",value:d.findIndex((a)=>a.value===r),onChange:(a)=>{let c=d[Number(a.currentTarget.value)];if(c)o(c.value)},children:[N("option",{value:-1,disabled:!0,children:["Select ",e.label]}),d.map((a,c)=>f("option",{value:c,children:a.label},c))]})}if(e.control==="checkbox")return f(g,{...u,className:"size-4",type:"checkbox",checked:r===!0,disabled:l||e.readOnly,onChange:(d)=>o(d.currentTarget.checked)});if(e.control==="custom")return N("p",{role:"alert",children:["A custom control is required for ",e.label,"."]});return f(g,{...u,readOnly:e.readOnly,type:e.control,value:ie(r),onChange:(d)=>{let a=d.currentTarget;o(e.control==="number"&&a.value!==""?a.valueAsNumber:a.value)}})},ne=({field:e,value:i,error:r,disabled:l,onChange:s,renderControl:o})=>{let u=te(),d=r?`${u}-error`:void 0,a={disabled:l,errorId:d,field:e,id:u,onChange:(c)=>{if(!l&&!e.readOnly)s(c)},value:i};return N("div",{className:"grid gap-2",children:[N(b,{htmlFor:u,children:[e.label,e.required?" *":""]}),e.control==="custom"&&o?o(a):f(ae,{...a}),e.nullable?f(n,{"aria-label":`Clear ${e.label}`,type:"button",variant:"ghost",size:"sm",className:"justify-self-start",disabled:l||e.readOnly||i===null,onClick:()=>s(null),children:"Clear"}):null,r?f("p",{id:d,role:"alert",className:"text-destructive text-sm",children:r}):null]})},Q=({label:e,fields:i,values:r,errors:l,onChange:s,onSubmit:o,onCancel:u,renderControl:d,pending:a=!1,disabled:c=!1,submitLabel:C="Save",cancelLabel:S="Cancel",error:x,className:h})=>N("form",{"aria-label":e,"aria-busy":a,className:h??"grid gap-4",onSubmit:(p)=>{if(p.preventDefault(),!a&&!c)o()},children:[x?f("div",{role:"alert",className:"text-destructive text-sm",children:x}):null,i.map((p)=>f(ne,{field:p,value:r[p.name],error:l?.[p.name],disabled:c||a,onChange:(w)=>s(p.name,w),renderControl:d},p.name)),N("div",{"data-slot":"form-actions",className:"flex justify-end gap-2",children:[u?f(n,{type:"button",variant:"outline",disabled:a,onClick:u,children:S}):null,f(n,{type:"submit",disabled:c||a,children:C})]})]});import{jsx as B,jsxs as X,Fragment as le}from"react/jsx-runtime";var U=(e)=>B("div",{className:"contents",children:e.control},e.key),Y=({label:e="Filter by",layout:i="stacked",controls:r})=>{if(r.length===0)return null;let l=r.filter((o)=>!o.fullWidth),s=r.filter((o)=>o.fullWidth);return B("div",{className:"mb-4",children:i==="inline"?B("form",{className:"flex flex-wrap items-end gap-2",onSubmit:(o)=>o.preventDefault(),children:r.map(U)}):X(le,{children:[l.length>0?X("form",{className:"flex flex-wrap gap-2 mb-2",onSubmit:(o)=>o.preventDefault(),children:[B(b,{className:"mt-3 mr-2",children:e}),l.map(U)]}):null,s.map((o)=>B("form",{className:"mb-2 last:mb-0",onSubmit:(u)=>u.preventDefault(),children:o.control},o.key))]})})};var{ResourceActionPrimitive:we,ResourceDialogPrimitive:Be,ResourceFilterPrimitive:Ie,ResourceFormPrimitive:Le,ResourceFiltersBar:Ae,ResourceListPrimitive:Me,ResourcePaginationPrimitive:Ve,ResourceTablePrimitive:Oe}=L;export{we as ResourceActionPrimitive,Be as ResourceDialogPrimitive,Ie as ResourceFilterPrimitive,Ae as ResourceFiltersBar,Le as ResourceFormPrimitive,Me as ResourceListPrimitive,Ve as ResourcePaginationPrimitive,Oe as ResourceTablePrimitive};
|
package/dist/tokens/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Oo}from"../index-75cf149h.js";export{Oo as themeTokens};
|
package/dist/utils/cn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e}from"../index-x6g6brsv.js";export{e as cn};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@collective-intelligence/ui-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Public React primitives, design-system components, icons, illustrations, and utilities for Collective Intelligence applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"storybook": "storybook dev -p ${CI_STORYBOOK_PORT:-6006} --no-open",
|
|
109
109
|
"build-storybook": "storybook build",
|
|
110
110
|
"prepack": "bun run build",
|
|
111
|
-
"type-check": "
|
|
111
|
+
"type-check": "bun check"
|
|
112
112
|
},
|
|
113
113
|
"dependencies": {
|
|
114
114
|
"@dnd-kit/core": "^6.3.1",
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
"@storybook/react": "^10.4.6",
|
|
174
174
|
"@storybook/react-vite": "^10.4.6",
|
|
175
175
|
"@tailwindcss/vite": "^4.1.18",
|
|
176
|
-
"@types/bun": "1.
|
|
176
|
+
"@types/bun": "1.4.2",
|
|
177
177
|
"@types/react": "^19.2.14",
|
|
178
178
|
"@types/react-dom": "^19.2.3",
|
|
179
179
|
"dts-bundle-generator": "9.5.1",
|
package/dist/index-225zhfvs.js
DELETED
package/dist/index-4djc1w16.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{De as C,Ee as Q,Fe as V,Ge as X,He as Y,Ie as Z,Je as $,Ke as L,Le as I,Me as G,Ne as T,Oe as U,Pe as W,Qe as H,Re as w,Se as A,Wd as F,ce as f,de as J,ee as K,oe as z,xe as u}from"./index-gzgwcnnv.js";import{Gf as dt,Jf as ot,Mf as mt}from"./index-fdh3nr3r.js";import{Ih as P}from"./index-mtc4857g.js";import*as l from"react";import{jsx as e}from"react/jsx-runtime";var et=Object.defineProperty,v=(i,t)=>et(i,"name",{value:t,configurable:!0}),k="DropdownMenu",[st,Ut]=J(k,[C]),g=C(),[vt,D]=st(k),gt=v((i)=>{let{__scopeDropdownMenu:t,children:a,dir:n,open:d,defaultOpen:o,onOpenChange:s,modal:r=!0}=i,y=g(t),c=l.useRef(null),[h,b]=u({prop:d,defaultProp:o??!1,onChange:s,caller:k});return e(vt,{scope:t,triggerId:z(),triggerRef:c,contentId:z(),open:h,onOpenChange:b,onOpenToggle:l.useCallback(()=>b((lt)=>!lt),[b]),modal:r,children:e(Q,{...y,open:h,onOpenChange:b,dir:n,modal:r,children:a})})},"DropdownMenu"),ct="DropdownMenuTrigger",rt=l.forwardRef(v(function(t,a){let{__scopeDropdownMenu:n,disabled:d=!1,...o}=t,s=D(ct,n),r=g(n),y=F(a,s.triggerRef);return e(V,{asChild:!0,...r,children:e(K.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":d?"":void 0,disabled:d,...o,ref:y,onPointerDown:f(t.onPointerDown,(c)=>{if(!d&&c.button===0&&c.ctrlKey===!1){if(s.onOpenToggle(),!s.open)c.preventDefault()}}),onKeyDown:f(t.onKeyDown,(c)=>{if(d)return;if(["Enter"," "].includes(c.key))s.onOpenToggle();if(c.key==="ArrowDown")s.onOpenChange(!0);if(["Enter"," ","ArrowDown"].includes(c.key))c.preventDefault()})})})},"DropdownMenuTrigger")),Pt=v((i)=>{let{__scopeDropdownMenu:t,...a}=i,n=g(t);return e(X,{...n,...a})},"DropdownMenuPortal"),yt="DropdownMenuContent",bt=l.forwardRef(v(function(t,a){let{__scopeDropdownMenu:n,...d}=t,o=D(yt,n),s=g(n),r=l.useRef(!1);return e(Y,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...d,ref:a,onCloseAutoFocus:f(t.onCloseAutoFocus,(y)=>{if(!r.current)o.triggerRef.current?.focus();r.current=!1,y.preventDefault()}),onInteractOutside:f(t.onInteractOutside,(y)=>{let c=y.detail.originalEvent,h=c.button===0&&c.ctrlKey===!0,b=c.button===2||h;if(!o.modal||b)r.current=!0}),style:{...t.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})},"DropdownMenuContent")),ft=l.forwardRef(v(function(t,a){let{__scopeDropdownMenu:n,...d}=t,o=g(n);return e(Z,{...o,...d,ref:a})},"DropdownMenuGroup")),ht=l.forwardRef(v(function(t,a){let{__scopeDropdownMenu:n,...d}=t,o=g(n);return e($,{...o,...d,ref:a})},"DropdownMenuLabel")),zt=l.forwardRef(v(function(t,a){let{__scopeDropdownMenu:n,...d}=t,o=g(n);return e(L,{...o,...d,ref:a})},"DropdownMenuItem")),ut=l.forwardRef(v(function(t,a){let{__scopeDropdownMenu:n,...d}=t,o=g(n);return e(I,{...o,...d,ref:a})},"DropdownMenuCheckboxItem")),Ct=l.forwardRef(v(function(t,a){let{__scopeDropdownMenu:n,...d}=t,o=g(n);return e(G,{...o,...d,ref:a})},"DropdownMenuRadioGroup")),kt=l.forwardRef(v(function(t,a){let{__scopeDropdownMenu:n,...d}=t,o=g(n);return e(T,{...o,...d,ref:a})},"DropdownMenuRadioItem")),Nt=l.forwardRef(v(function(t,a){let{__scopeDropdownMenu:n,...d}=t,o=g(n);return e(U,{...o,...d,ref:a})},"DropdownMenuItemIndicator")),qt=l.forwardRef(v(function(t,a){let{__scopeDropdownMenu:n,...d}=t,o=g(n);return e(W,{...o,...d,ref:a})},"DropdownMenuSeparator"));var Bt=v((i)=>{let{__scopeDropdownMenu:t,children:a,open:n,onOpenChange:d,defaultOpen:o}=i,s=g(t),[r,y]=u({prop:n,defaultProp:o??!1,onChange:d,caller:"DropdownMenuSub"});return e(H,{...s,open:r,onOpenChange:y,children:a})},"DropdownMenuSub"),Ft=l.forwardRef(v(function(t,a){let{__scopeDropdownMenu:n,...d}=t,o=g(n);return e(w,{...o,...d,ref:a})},"DropdownMenuSubTrigger")),Jt=l.forwardRef(v(function(t,a){let{__scopeDropdownMenu:n,...d}=t,o=g(n);return e(A,{...o,...d,ref:a,style:{...t.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})},"DropdownMenuSubContent")),E=gt,R=rt,N=Pt,O=bt,x=ft,M=ht,S=zt,j=ut,p=Ct,_=kt,q=Nt,tt=qt;var it=Bt,at=Ft,nt=Jt;import{jsx as m,jsxs as B}from"react/jsx-runtime";var wt=({...i})=>m(E,{"data-slot":"dropdown-menu",...i}),At=({...i})=>m(N,{"data-slot":"dropdown-menu-portal",...i}),Dt=({...i})=>m(R,{"data-slot":"dropdown-menu-trigger",...i}),Et=({className:i,sideOffset:t=4,...a})=>m(N,{children:m(O,{"data-slot":"dropdown-menu-content",sideOffset:t,className:P("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",i),...a})}),Rt=({...i})=>m(x,{"data-slot":"dropdown-menu-group",...i}),Ot=({className:i,inset:t,variant:a="default",...n})=>m(S,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":a,className:P("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i),...n}),xt=({className:i,children:t,...a})=>B(j,{"data-slot":"dropdown-menu-checkbox-item",className:P("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i),...a,children:[m("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m(q,{children:m(dt,{className:"size-4"})})}),t]}),Mt=({...i})=>m(p,{"data-slot":"dropdown-menu-radio-group",...i}),St=({className:i,children:t,...a})=>B(_,{"data-slot":"dropdown-menu-radio-item",className:P("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i),...a,children:[m("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m(q,{children:m(mt,{className:"size-2 fill-current"})})}),t]}),jt=({className:i,inset:t,...a})=>m(M,{"data-slot":"dropdown-menu-label","data-inset":t,className:P("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",i),...a}),pt=({className:i,...t})=>m(tt,{"data-slot":"dropdown-menu-separator",className:P("bg-border -mx-1 my-1 h-px",i),...t}),_t=({className:i,...t})=>m("span",{"data-slot":"dropdown-menu-shortcut",className:P("text-muted-foreground ml-auto text-xs tracking-widest",i),...t}),ti=({...i})=>m(it,{"data-slot":"dropdown-menu-sub",...i}),ii=({className:i,inset:t,children:a,...n})=>B(at,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:P("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",i),...n,children:[a,m(ot,{className:"ml-auto size-4"})]}),ai=({className:i,...t})=>m(nt,{"data-slot":"dropdown-menu-sub-content",className:P("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",i),...t});
|
|
2
|
-
export{wt as Gd,At as Hd,Dt as Id,Et as Jd,Rt as Kd,Ot as Ld,xt as Md,Mt as Nd,St as Od,jt as Pd,pt as Qd,_t as Rd,ti as Sd,ii as Td,ai as Ud};
|