@brightlocal/ui-components 3.1.0 → 3.2.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 +6 -1
- package/component-meta.json +663 -38
- package/deprecations.json +1 -1
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +32 -3
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.js +61 -58
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +58 -57
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts +9 -0
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.js +50 -30
- package/dist/banner.cjs +1 -0
- package/dist/banner.d.ts +81 -0
- package/dist/banner.d.ts.map +1 -0
- package/dist/banner.js +176 -0
- package/dist/blocks/empty-state.cjs +1 -1
- package/dist/blocks/empty-state.d.ts +4 -3
- package/dist/blocks/empty-state.d.ts.map +1 -1
- package/dist/blocks/empty-state.js +21 -20
- package/dist/blocks/progress-state.d.ts +2 -2
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts +17 -0
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +8 -2
- package/dist/brand-illustration-motif.d.ts +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +86 -6
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +185 -96
- package/dist/chart.cjs +3 -3
- package/dist/chart.d.ts +231 -13
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +466 -306
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.js +2 -1
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.js +2 -2
- package/dist/command.cjs +1 -1
- package/dist/command.js +1 -1
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.d.ts +169 -22
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +695 -561
- package/dist/grid.d.ts +24 -1
- package/dist/grid.d.ts.map +1 -1
- package/dist/hooks/use-breakpoint.cjs +1 -1
- package/dist/hooks/use-breakpoint.d.ts +1 -1
- package/dist/hooks/use-breakpoint.d.ts.map +1 -1
- package/dist/hooks/use-breakpoint.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +593 -561
- package/dist/info-tooltip.cjs +1 -0
- package/dist/info-tooltip.d.ts +39 -0
- package/dist/info-tooltip.d.ts.map +1 -0
- package/dist/info-tooltip.js +41 -0
- package/dist/input-chip.cjs +1 -1
- package/dist/input-chip.js +1 -1
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.d.ts +33 -2
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.js +167 -54
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +9 -9
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts +28 -6
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +5 -5
- package/dist/input.cjs +1 -1
- package/dist/input.js +10 -10
- package/dist/lib/block-illustration.cjs +1 -1
- package/dist/lib/block-illustration.d.ts +4 -1
- package/dist/lib/block-illustration.d.ts.map +1 -1
- package/dist/lib/block-illustration.js +12 -11
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +4 -3
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/multi-select-filter.cjs +1 -0
- package/dist/multi-select-filter.d.ts +178 -0
- package/dist/multi-select-filter.d.ts.map +1 -0
- package/dist/multi-select-filter.js +463 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +123 -16
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +89 -75
- package/dist/rating.cjs +1 -1
- package/dist/rating.js +18 -18
- package/dist/relative-date.cjs +1 -0
- package/dist/relative-date.d.ts +65 -0
- package/dist/relative-date.d.ts.map +1 -0
- package/dist/relative-date.js +128 -0
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts +11 -1
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +97 -81
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +78 -2
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +192 -85
- package/dist/single-select-filter.cjs +1 -0
- package/dist/single-select-filter.d.ts +81 -0
- package/dist/single-select-filter.d.ts.map +1 -0
- package/dist/single-select-filter.js +226 -0
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.js +22 -22
- package/dist/split-layout.cjs +1 -1
- package/dist/split-layout.d.ts +1 -1
- package/dist/split-layout.js +13 -13
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +45 -4
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +90 -73
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +12 -1
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.js +148 -126
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +38 -36
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.js +262 -73
- package/dist/typography-text.d.ts +1 -2
- package/dist/typography-text.d.ts.map +1 -1
- package/dist/typography.d.ts +1 -1
- package/package.json +5 -6
- package/src/blocks/empty-state.tsx +8 -3
- package/src/blocks/progress-state.tsx +2 -2
- package/src/blocks/sidebar.tsx +26 -2
- package/src/components/alert-dialog.tsx +50 -5
- package/src/components/alert.tsx +16 -8
- package/src/components/badge.tsx +40 -3
- package/src/components/banner.tsx +288 -0
- package/src/components/brand-illustration-motif.tsx +1 -1
- package/src/components/card.tsx +211 -24
- package/src/components/chart.tsx +523 -35
- package/src/components/checkbox.tsx +1 -1
- package/src/components/combobox.tsx +2 -2
- package/src/components/command.tsx +1 -1
- package/src/components/data-table.tsx +778 -195
- package/src/components/grid.tsx +32 -1
- package/src/components/info-tooltip.tsx +94 -0
- package/src/components/input-chip.tsx +1 -1
- package/src/components/input-group.tsx +246 -11
- package/src/components/input-otp.tsx +1 -1
- package/src/components/input-password.tsx +33 -11
- package/src/components/input.tsx +1 -1
- package/src/components/list.tsx +1 -1
- package/src/components/multi-select-filter.tsx +912 -0
- package/src/components/progress.tsx +190 -31
- package/src/components/rating.tsx +1 -1
- package/src/components/relative-date.tsx +230 -0
- package/src/components/select.tsx +35 -5
- package/src/components/sheet.tsx +240 -4
- package/src/components/single-select-filter.tsx +443 -0
- package/src/components/sonner.tsx +16 -5
- package/src/components/split-layout.tsx +2 -2
- package/src/components/table.tsx +71 -11
- package/src/components/tabs.tsx +93 -46
- package/src/components/textarea.tsx +1 -1
- package/src/components/tooltip.tsx +440 -68
- package/src/components/typography-text.tsx +1 -2
- package/src/components/typography.tsx +1 -1
- package/src/hooks/use-breakpoint.ts +2 -1
- package/src/index.ts +5 -0
- package/src/lib/block-illustration.tsx +5 -1
- package/src/lib/utils.ts +1 -0
package/dist/blocks/sidebar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),Pe=require("react"),Ee=require("react-dom"),k=require("@radix-ui/react-slot"),z=require("class-variance-authority"),m=require("@brightlocal/icons"),l=require("@brightlocal/ui-components/lib/utils"),U=require("../button.cjs"),ze=require("../input.cjs"),T=require("../separator.cjs"),N=require("../dropdown-menu.cjs"),P=require("../popover.cjs"),R=require("../sheet.cjs"),E=require("../accordion.cjs"),Te=require("@radix-ui/react-accordion"),Be=require("../scroll-area.cjs"),H=require("../skeleton.cjs"),I=require("../tooltip.cjs"),Le=require("../hooks/use-breakpoint.cjs");function K(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=K(Pe),qe=K(Te),v="focus-visible:[box-shadow:0_0_0_1px_color-mix(in_srgb,var(--color-sidebar-ring)_50%,transparent),0_0_0_3px_rgba(0,0,0,0.1)]";var V=(e=>(e.LEFT="left",e))(V||{}),$=(e=>(e.SIDEBAR="sidebar",e))($||{}),W=(e=>(e.OFFCANVAS="offcanvas",e.ICON="icon",e.NONE="none",e))(W||{}),X=(e=>(e.DEFAULT="default",e.SM="sm",e.XS="xs",e))(X||{}),Y=(e=>(e.DEFAULT="default",e.COLLAPSIBLE="collapsible",e.ACTION="action",e))(Y||{}),Z=(e=>(e.SIMPLE="simple",e.COLLAPSIBLE="collapsible",e.DROPDOWN="dropdown",e.BADGE="badge",e.BIG_ICON="bigIcon",e.CHECKBOX="checkbox",e))(Z||{}),J=(e=>(e.DEFAULT="default",e.SM="sm",e.LG="lg",e))(J||{}),Q=(e=>(e.DEFAULT="default",e.BORDER="border",e.INDENT="indent",e))(Q||{}),ee=(e=>(e.SM="sm",e.MD="md",e))(ee||{}),ae=(e=>(e.CARET="caret",e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e.UP_DOWN="upDown",e.PLUS_MINUS="plusMinus",e.DOTS="dots",e))(ae||{});const Fe="sidebar:state",Ge=3600*24*7,He="288px",Ue="48px",Ke="b",te=i.createContext(null);function j(){const e=i.useContext(te);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const re=i.forwardRef(({dataHook:e,trackingEl:r,trackingLabel:t,defaultOpen:o=!0,open:s,onOpenChange:n,className:d,style:c,children:f,...b},u)=>{const p=Le.useIsBelowBreakpoint("lg"),[x,S]=i.useState(!1),[g,O]=i.useState(null),[_,Oe]=i.useState(o),y=s??_,C=i.useCallback(h=>{const w=typeof h=="function"?h(y):h;n?n(w):Oe(w),document.cookie=`${Fe}=${w}; path=/; max-age=${Ge}`},[n,y]),M=i.useCallback(()=>p?S(h=>!h):C(h=>!h),[p,C,S]);i.useEffect(()=>{const h=w=>{w.key===Ke&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),M())};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[M]);const G=y?"expanded":"collapsed",_e=i.useMemo(()=>({state:G,open:y,setOpen:C,isMobile:p,openMobile:x,setOpenMobile:S,toggleSidebar:M,footerPortalEl:g,setFooterPortalEl:O}),[G,y,C,p,x,S,M,g]);return a.jsx(te.Provider,{value:_e,children:a.jsx(I.TooltipProvider,{delayDuration:0,children:a.jsx("div",{ref:u,className:l.cn("group/sidebar-wrapper flex min-h-svh w-full",d),"data-hook":e,"data-slot":"sidebar-provider","data-tracking-el":r||"sidebar-provider","data-tracking-label":t,style:{"--sidebar-width":He,"--sidebar-width-icon":Ue,...c},...b,children:f})})})});re.displayName="SidebarProvider";const oe=i.forwardRef(({dataHook:e,trackingEl:r,trackingLabel:t,side:o="left",variant:s="sidebar",collapsible:n="offcanvas",embedded:d,mobileTitle:c,mobileDescription:f,className:b,children:u,...p},x)=>{const{isMobile:S,state:g,openMobile:O,setOpenMobile:_}=j();return n==="none"?a.jsx("div",{ref:x,className:l.cn("text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",b),"data-hook":e,"data-slot":"sidebar","data-tracking-el":r||"sidebar","data-tracking-label":t,...p,children:u}):S?a.jsx(R.Sheet,{open:O,onOpenChange:_,children:a.jsxs(R.SheetContent,{className:"bg-sidebar-background text-sidebar-foreground p-6","data-hook":`${e}-mobile-content`,"data-mobile":"true","data-sidebar":"sidebar",side:"left",size:"sm",children:[a.jsx(R.SheetTitle,{className:"sr-only",children:c??"Navigation"}),a.jsx(R.SheetDescription,{className:"sr-only",children:f??"Main navigation menu"}),a.jsx("div",{className:"flex h-full w-full flex-col",children:u})]})}):a.jsx("div",{ref:x,className:l.cn("group text-sidebar-foreground duration-base flex h-full shrink-0 flex-col overflow-hidden transition-[width] ease-linear",g==="expanded"&&"w-(--sidebar-width)",n==="icon"&&g==="collapsed"&&"w-(--sidebar-width-icon)",n==="offcanvas"&&g==="collapsed"&&"w-0",b),"data-collapsible":g==="collapsed"?n:"","data-hook":e,"data-side":o,"data-slot":"sidebar","data-state":g,"data-tracking-el":r||"sidebar","data-tracking-label":t,"data-variant":s,...p,children:u})});oe.displayName="Sidebar";const B=i.forwardRef(({className:e,onClick:r,dataHook:t="sidebar-trigger",toggleAriaLabel:o,children:s,...n},d)=>{const{toggleSidebar:c}=j(),f=o??"Toggle sidebar";return a.jsxs(U.Button,{ref:d,iconOnly:!0,"aria-label":f,className:l.cn("relative h-7 w-7",e),"data-slot":"sidebar-trigger",dataHook:t,size:"sm",variant:"ghost",onClick:b=>{r?.(b),c()},...n,children:[s||a.jsx(m.PanelLeft,{}),a.jsx("span",{className:"sr-only",children:f})]})});B.displayName="SidebarTrigger";const se=i.forwardRef(({className:e,toggleAriaLabel:r,...t},o)=>{const{toggleSidebar:s}=j(),n=r??"Toggle sidebar";return a.jsx("button",{ref:o,"aria-label":n,className:l.cn("hover:after:bg-sidebar-border duration-base absolute inset-y-0 -right-4 z-20 hidden w-4 -translate-x-1/2 transition-transform ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 sm:flex","cursor-w-resize","in-data-[state=collapsed]:cursor-e-resize","group-data-[collapsible=offcanvas]:hover:bg-sidebar-background group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","in-data-[collapsible=offcanvas]:-right-2",e),"data-slot":"sidebar-rail",tabIndex:-1,title:n,onClick:s,...t})});se.displayName="SidebarRail";const ne=i.forwardRef(({className:e,dataHook:r,trackingEl:t,trackingLabel:o,...s},n)=>a.jsx("main",{ref:n,className:l.cn("bg-background relative flex min-h-svh flex-1 flex-col",e),"data-hook":r,"data-slot":"sidebar-inset","data-tracking-el":t||"sidebar-inset","data-tracking-label":o,...s}));ne.displayName="SidebarInset";const ie=i.forwardRef(({className:e,...r},t)=>a.jsx(ze.Input,{ref:t,className:l.cn("bg-background h-8 w-full shadow-none",v,e),"data-slot":"sidebar-input",dataHook:"sidebar-input",...r}));ie.displayName="SidebarInput";const de=i.forwardRef(({className:e,dataHook:r,...t},o)=>a.jsx("header",{ref:o,className:l.cn("pr-section-xs flex shrink-0 flex-col gap-2 pt-6 pb-5 pl-6",e),"data-hook":r,"data-slot":"sidebar-header",...t}));de.displayName="SidebarHeader";const le=i.forwardRef(({className:e,dataHook:r,separator:t=!0,...o},s)=>{const{footerPortalEl:n}=j(),d=a.jsxs(a.Fragment,{children:[t&&a.jsx(T.Separator,{className:"group-data-[collapsible=icon]:mx-0","data-slot":"sidebar-footer-separator",spacing:"md"}),a.jsx("footer",{ref:s,className:l.cn("flex shrink-0 flex-col gap-1 p-1",e),"data-hook":r,"data-slot":"sidebar-footer",...o})]});return n?Ee.createPortal(d,n):d});le.displayName="SidebarFooter";const ce=i.forwardRef(({className:e,...r},t)=>a.jsx(T.Separator,{ref:t,className:l.cn("bg-sidebar-border mx-2 my-5 w-auto group-data-[collapsible=icon]:mx-0",e),"data-slot":"sidebar-separator",...r}));ce.displayName="SidebarSeparator";const ue=i.forwardRef(({className:e,dataHook:r,ariaLabel:t="Sidebar",children:o,...s},n)=>{const{isMobile:d,setFooterPortalEl:c}=j(),f=i.useCallback(b=>{const u=b?.querySelector('[data-slot="scroll-area-viewport"]');u&&(u.tabIndex=-1),typeof n=="function"?n(b):n&&(n.current=b)},[n]);return a.jsxs(Be.ScrollArea,{ref:f,className:l.cn("min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden **:data-[slot=scroll-area-scrollbar]:w-1 **:data-[slot=scroll-area-scrollbar]:border-l-0 **:data-[slot=scroll-area-scrollbar]:p-0 [&_[data-slot=scroll-area-viewport]]:pr-3! [&_[data-slot=scroll-area-viewport]]:pl-2! [&_[data-slot=scroll-area-viewport]>div]:flex! [&_[data-slot=scroll-area-viewport]>div]:min-h-full [&_[data-slot=scroll-area-viewport]>div]:flex-col",e),dataHook:r??"sidebar-content-scroll",scrollOrientation:d?"both":"vertical",...s,children:[a.jsx("nav",{"aria-label":t,className:"flex flex-col gap-2","data-slot":"sidebar-content",children:o}),a.jsx("div",{ref:c,className:"mt-auto"})]})});ue.displayName="SidebarContent";const be=i.forwardRef(({className:e,dataHook:r,...t},o)=>a.jsx("div",{ref:o,className:l.cn("relative flex w-full min-w-0 flex-col py-2",e),"data-hook":r,"data-slot":"sidebar-group",...t}));be.displayName="SidebarGroup";const Ve=z.cva(["flex h-8 shrink-0 items-center rounded-md px-2 text-sidebar-foreground/70 outline-none transition-[margin,opacity] duration-base ease-linear [&>svg]:shrink-0 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",v],{variants:{size:{default:"text-label",sm:"text-label",xs:"text-label-sm"},variant:{default:"",collapsible:"w-full justify-between cursor-pointer hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",action:"w-full justify-between cursor-pointer hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"}},defaultVariants:{size:"sm",variant:"default"}}),pe=i.forwardRef(({className:e,dataHook:r,asChild:t=!1,size:o="sm",variant:s="default",isOpen:n=!1,onToggle:d,onAction:c,children:f,...b},u)=>{const p=t?k.Slot:"div",x=()=>{s==="collapsible"&&d?d():s==="action"&&c&&c()},S=g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),x())};return a.jsxs(p,{ref:u,className:l.cn(Ve({size:o,variant:s}),e),"data-hook":r,"data-slot":"sidebar-group-label","data-variant":s,role:s!=="default"?"button":void 0,tabIndex:s!=="default"?0:void 0,onClick:s!=="default"?x:void 0,onKeyDown:s!=="default"?S:void 0,...b,children:[a.jsx("span",{children:f}),s==="collapsible"&&a.jsx(m.ChevronDown,{className:l.cn("duration-base shrink-0 transition-transform ease-in-out",n&&"rotate-180"),size:16}),s==="action"&&a.jsx(m.Plus,{className:"shrink-0",size:16})]})});pe.displayName="SidebarGroupLabel";const fe=i.forwardRef(({className:e,asChild:r=!1,...t},o)=>{const s=r?k.Slot:"button";return a.jsx(s,{ref:o,className:l.cn("text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground duration-base absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform ease-in-out outline-none [&>svg]:shrink-0",v,"after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),"data-slot":"sidebar-group-action",...t})});fe.displayName="SidebarGroupAction";const me=i.forwardRef(({className:e,dataHook:r,...t},o)=>a.jsx("div",{ref:o,className:l.cn("text-body-sm w-full",e),"data-hook":r,"data-slot":"sidebar-group-content",...t}));me.displayName="SidebarGroupContent";const xe=i.forwardRef(({className:e,dataHook:r,...t},o)=>a.jsx("ul",{ref:o,className:l.cn("flex w-full min-w-0 flex-col gap-1",e),"data-hook":r,"data-slot":"sidebar-menu",...t}));xe.displayName="SidebarMenu";const L=i.forwardRef(({className:e,dataHook:r,...t},o)=>a.jsx("li",{ref:o,className:l.cn("group/menu-item relative",e),"data-hook":r,"data-slot":"sidebar-menu-item",...t}));L.displayName="SidebarMenuItem";const ge=i.forwardRef(({type:e="caret",isActive:r=!1,className:t,...o},s)=>{const n={ref:s,className:l.cn("shrink-0 transition-transform duration-base ease-in-out",r&&e==="caret"&&"rotate-90",t),"data-slot":"sidebar-collapse-icon",...o};switch(e){case"horizontal":return a.jsx(m.ChevronRight,{...n});case"vertical":return a.jsx(m.ChevronDown,{...n});case"upDown":return a.jsx(m.ChevronsUpDown,{...n});case"plusMinus":return r?a.jsx(m.Minus,{...n}):a.jsx(m.Plus,{...n});case"dots":return a.jsx(m.Ellipsis,{...n});default:return a.jsx(m.ChevronRight,{...n})}});ge.displayName="SidebarCollapseIcon";const $e=z.cva(["peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-full px-4 py-2 text-left text-label outline-none transition-[color,background-color,border-color,box-shadow,opacity,width,height,padding] duration-base ease-in-out hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:rounded-md [&>span:not([data-slot])]:truncate [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100 group-data-[collapsible=icon]:[&>span]:hidden group-data-[collapsible=icon]:[&>div]:hidden",v],{variants:{variant:{simple:"",collapsible:"[&>[data-collapse-icon]]:ml-auto [&>[data-collapse-icon]]:transition-transform [&>[data-collapse-icon]]:duration-base [&>[data-collapse-icon]]:ease-in-out data-[state=open]:[&>[data-collapse-icon]]:rotate-90",dropdown:"group-has-[[data-slot=sidebar-menu-action]]/menu-item:pr-8",badge:"group-has-[[data-slot=sidebar-menu-badge]]/menu-item:pr-16",bigIcon:"h-auto flex-col items-start gap-1 rounded-lg p-3 [&>svg]:size-6 [&>svg]:rounded-md [&>svg]:bg-sidebar-foreground [&>svg]:p-1 [&>svg]:text-sidebar-background [&>svg]:opacity-100 hover:[&>svg]:bg-sidebar-foreground hover:[&>svg]:text-sidebar-background group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:[&>svg]:size-6",checkbox:"px-3 [&>[data-checkbox]]:size-4 [&>[data-checkbox]]:shrink-0 [&>[data-checkbox]]:rounded [&>[data-checkbox]]:border [&>[data-checkbox]]:border-sidebar-foreground/30 data-[checked=true]:[&>[data-checkbox]]:bg-primary data-[checked=true]:[&>[data-checkbox]]:border-primary data-[checked=true]:[&>[data-checkbox]]:text-primary-foreground"},size:{default:"h-12",sm:"h-7 text-label-sm",lg:"h-12 group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"simple",size:"default"}}),A=i.forwardRef(({asChild:e=!1,isActive:r=!1,variant:t="simple",size:o="default",tooltip:s,className:n,dataHook:d,...c},f)=>{const b=e?k.Slot:"button",{isMobile:u,state:p}=j(),x=a.jsx(b,{ref:f,className:l.cn($e({variant:t,size:o}),n),"data-active":r,"data-hook":d,"data-size":o,"data-slot":"sidebar-menu-button","data-variant":t,...c});return s?(typeof s=="string"&&(s={children:s,dataHook:"sidebar-menu-button-tooltip"}),a.jsxs(I.Tooltip,{children:[a.jsx(I.TooltipTrigger,{asChild:!0,children:x}),a.jsx(I.TooltipContent,{hideArrow:!0,...s,align:"center",className:l.cn("bg-foreground text-background border-none",s.className),hidden:p!=="collapsed"||u,side:"right",sideOffset:8})]})):x});A.displayName="SidebarMenuButton";const he=i.forwardRef(({className:e,asChild:r=!1,showOnHover:t=!1,...o},s)=>{const n=r?k.Slot:"button";return a.jsx(n,{ref:s,className:l.cn("text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground duration-base absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform ease-in-out outline-none [&>svg]:shrink-0",v,"after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","peer-data-[size=bigIcon]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),"data-slot":"sidebar-menu-action",...o})});he.displayName="SidebarMenuAction";const ve=i.forwardRef(({className:e,...r},t)=>a.jsx("div",{ref:t,className:l.cn("text-sidebar-foreground text-label-sm pointer-events-none absolute inset-y-0 right-4 my-auto flex h-5 min-w-5 items-center justify-center rounded-md px-1 tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","group-data-[collapsible=icon]:hidden",e),"data-slot":"sidebar-menu-badge",...r}));ve.displayName="SidebarMenuBadge";const Se=i.forwardRef(({className:e,showIcon:r=!1,...t},o)=>{const s=i.useId(),n=i.useMemo(()=>{let d=0;for(let c=0;c<s.length;c++)d=(d<<5)-d+s.charCodeAt(c),d|=0;return`${Math.abs(d)%40+50}%`},[s]);return a.jsxs("div",{ref:o,className:l.cn("flex h-8 items-center gap-2 rounded-md px-2",e),"data-slot":"sidebar-menu-skeleton",...t,children:[r&&a.jsx(H.Skeleton,{className:"size-4 rounded-md","data-slot":"sidebar-menu-skeleton-icon"}),a.jsx(H.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-slot":"sidebar-menu-skeleton-text",style:{"--skeleton-width":n}})]})});Se.displayName="SidebarMenuSkeleton";const We=z.cva("flex min-w-0 flex-col items-start gap-1 py-1 group-data-[collapsible=icon]:hidden",{variants:{variant:{default:"px-10",border:"border-l border-sidebar-border ml-10 pl-1 pr-10",indent:"px-10"}},defaultVariants:{variant:"border"}}),q=i.forwardRef(({className:e,variant:r="border",dataHook:t,...o},s)=>a.jsx("ul",{ref:s,className:l.cn(We({variant:r}),e),"data-hook":t,"data-slot":"sidebar-menu-sub",...o}));q.displayName="SidebarMenuSub";const we=i.forwardRef(({dataHook:e,...r},t)=>a.jsx("li",{ref:t,"data-hook":e,"data-slot":"sidebar-menu-sub-item",...r}));we.displayName="SidebarMenuSubItem";const je=i.forwardRef(({asChild:e=!1,size:r="md",isActive:t,className:o,dataHook:s,...n},d)=>{const c=e?k.Slot:"a";return a.jsx(c,{ref:d,className:l.cn("text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-foreground text-label duration-fast flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 transition-[color,background-color,box-shadow,opacity] ease-out outline-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:not([data-slot])]:truncate [&>svg]:shrink-0",v,"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",r==="sm"&&"text-label-sm","group-data-[collapsible=icon]:hidden",o),"data-active":t,"data-hook":s,"data-size":r,"data-slot":"sidebar-menu-sub-button",...n})});je.displayName="SidebarMenuSubButton";function Ne({dataHook:e,className:r,children:t,defaultOpen:o,open:s,onOpenChange:n}){return a.jsx(L,{children:a.jsx(E.Accordion,{collapsible:!0,className:r,dataHook:e??"sidebar-menu-collapsible",defaultValue:o?"item":void 0,type:"single",value:s!==void 0?s?"item":"":void 0,onValueChange:n?d=>n(d==="item"):void 0,children:a.jsx(E.AccordionItem,{className:"group/collapsible border-none",value:"item",children:t})})})}Ne.displayName="SidebarMenuCollapsible";const ye=i.forwardRef(({children:e,className:r,...t},o)=>a.jsx(qe.Trigger,{asChild:!0,children:a.jsxs(A,{ref:o,className:r,variant:"collapsible",...t,children:[e,a.jsx(m.ChevronRight,{"data-collapse-icon":!0,className:"duration-base opacity-100! transition-transform ease-in-out group-data-[collapsible=icon]:hidden",size:12})]})}));ye.displayName="SidebarMenuCollapsibleTrigger";const ke=i.forwardRef(({dataHook:e,children:r,...t},o)=>a.jsx(E.AccordionContent,{className:"p-0",children:a.jsx(q,{ref:o,dataHook:e,...t,children:r})}));ke.displayName="SidebarMenuCollapsibleContent";const Ce=i.forwardRef(({className:e,dataHook:r="sidebar-drawer",trackingEl:t,trackingLabel:o,children:s,...n},d)=>a.jsx("div",{ref:d,className:e,"data-hook":r,"data-slot":"sidebar-drawer","data-tracking-el":t,"data-tracking-label":o,...n,children:a.jsx(B,{dataHook:`${r}-trigger`,children:a.jsx(m.Menu,{size:24})})}));Ce.displayName="SidebarDrawer";const Me=i.forwardRef(({className:e,dataHook:r="sidebar-header-button",children:t,...o},s)=>a.jsx(U.Button,{ref:s,...o,iconOnly:!0,className:l.cn("hover:bg-sidebar-accent hover:text-sidebar-accent-foreground size-7 rounded-md shadow-none",v,e),"data-slot":"sidebar-header-button",dataHook:r,size:"sm",variant:"ghost",children:t}));Me.displayName="SidebarHeaderButton";const F=i.forwardRef(({className:e,dataHook:r="sidebar-popover-trigger",icon:t,triggerAriaLabel:o,children:s,...n},d)=>a.jsxs("button",{ref:d,"aria-label":o??"Switch workspace",className:l.cn("text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground duration-fast text-heading-compact flex items-center gap-2 rounded-md px-1.5 py-2 transition-colors ease-out outline-none",v,e),"data-hook":r,"data-slot":"sidebar-popover-trigger",type:"button",...n,children:[t&&a.jsx("span",{className:"bg-sidebar-primary text-sidebar-primary-foreground flex size-5 shrink-0 items-center justify-center rounded-md",children:t}),a.jsx("span",{className:"truncate",children:s}),a.jsx(m.ChevronDown,{className:"shrink-0 opacity-50",size:16})]}));F.displayName="SidebarPopoverTrigger";const D=i.forwardRef(({className:e,dataHook:r,icon:t,shortcut:o,children:s,...n},d)=>a.jsxs("button",{ref:d,className:l.cn("text-popover-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground duration-fast text-label flex h-10 w-full items-center gap-2 rounded-xs p-2 transition-colors ease-out outline-none",v,e),"data-hook":r,"data-slot":"sidebar-popover-menu-item",type:"button",...n,children:[t&&a.jsx("span",{className:"border-border flex size-6 shrink-0 items-center justify-center rounded-xs border [&_svg]:size-4",children:t}),a.jsx("span",{className:"min-w-px flex-1 truncate text-left",children:s}),o&&a.jsx("span",{className:"text-popover-foreground/60 text-body-xs shrink-0",children:o})]}));D.displayName="SidebarPopoverMenuItem";const Re=i.forwardRef(({className:e,dataHook:r="sidebar-popover-menu",groupTitle:t="Teams",items:o,addActionLabel:s,addActionIcon:n,onAddAction:d,children:c,...f},b)=>a.jsx("div",{ref:b,className:l.cn("flex flex-col",e),"data-hook":r,"data-slot":"sidebar-popover-menu",...f,children:c||a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex flex-col items-start p-1",children:[t&&a.jsx("div",{className:"flex w-full items-center px-2 py-1.5",children:a.jsx("span",{className:"text-muted-foreground text-label-sm flex-1",children:t})}),o?.map((u,p)=>a.jsx(D,{icon:u.icon,shortcut:u.shortcut,onClick:u.onClick,children:u.label},p))]}),d&&a.jsxs(a.Fragment,{children:[a.jsx(T.Separator,{}),a.jsx("div",{className:"flex flex-col items-start p-1",children:a.jsx(D,{icon:n||a.jsx(m.Plus,{size:16}),onClick:d,children:s??"Add team"})})]})]})}));Re.displayName="SidebarPopoverMenu";function Ie({dataHook:e="sidebar-switcher",icon:r,label:t,triggerAriaLabel:o,triggerClassName:s,children:n}){return a.jsxs(P.Popover,{children:[a.jsx(P.PopoverTrigger,{asChild:!0,children:a.jsx(F,{className:s,dataHook:`${e}-trigger`,icon:r,triggerAriaLabel:o,children:t})}),a.jsx(P.PopoverContent,{align:"start",className:"w-[316px] p-0",dataHook:`${e}-content`,side:"bottom",sideOffset:4,children:n})]})}Ie.displayName="SidebarSwitcher";function De({dataHook:e="sidebar-account-dropdown",name:r,email:t,avatar:o,menuGroups:s,triggerAriaLabel:n,align:d="end",side:c="top",children:f}){return a.jsxs(N.DropdownMenu,{children:[a.jsx(N.DropdownMenuTrigger,{asChild:!0,children:a.jsxs(A,{"aria-label":n??"Account menu",className:"h-auto py-1.5",dataHook:`${e}-button`,size:"lg",children:[o,a.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[a.jsx("span",{className:"text-heading-compact truncate",children:r}),a.jsx("span",{className:"text-body-xs truncate",children:t})]}),a.jsx(m.ChevronsUpDown,{className:"shrink-0"})]})}),a.jsx(N.DropdownMenuContent,{align:d,className:"w-56",dataHook:`${e}-content`,side:c,sideOffset:4,children:f||a.jsxs(a.Fragment,{children:[a.jsxs(N.DropdownMenuLabel,{className:"flex items-center gap-2 px-1 py-1.5",children:[o,a.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[a.jsx("span",{className:"text-heading-compact truncate",children:r}),a.jsx("span",{className:"text-body-xs truncate",children:t})]})]}),s?.map((b,u)=>a.jsxs(i.Fragment,{children:[a.jsx(N.DropdownMenuSeparator,{}),b.map((p,x)=>a.jsxs(N.DropdownMenuItem,{onClick:p.onClick,children:[p.icon,p.label]},x))]},u))]})})]})}De.displayName="SidebarAccountDropdown";const Ae=i.forwardRef(({className:e,dataHook:r,senderName:t,title:o,description:s,timestamp:n,...d},c)=>a.jsxs("button",{ref:c,className:l.cn("border-sidebar-border text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:bg-sidebar-accent duration-fast flex w-full flex-col gap-2 border-b p-4 text-left transition-colors ease-out outline-none",v,e),"data-hook":r,"data-slot":"sidebar-inbox-item",type:"button",...d,children:[a.jsxs("div",{className:"text-body-sm flex w-full items-center justify-between",children:[a.jsx("span",{children:t}),n&&a.jsx("span",{children:n})]}),a.jsx("p",{className:"text-heading-compact w-full",children:o}),s&&a.jsx("p",{className:"text-body-xs w-full truncate",children:s})]}));Ae.displayName="SidebarInboxItem";exports.Sidebar=oe;exports.SidebarAccountDropdown=De;exports.SidebarCollapseIcon=ge;exports.SidebarCollapseIconType=ae;exports.SidebarCollapsible=W;exports.SidebarContent=ue;exports.SidebarDrawer=Ce;exports.SidebarFooter=le;exports.SidebarGroup=be;exports.SidebarGroupAction=fe;exports.SidebarGroupContent=me;exports.SidebarGroupLabel=pe;exports.SidebarGroupLabelSize=X;exports.SidebarGroupLabelVariant=Y;exports.SidebarHeader=de;exports.SidebarHeaderButton=Me;exports.SidebarInboxItem=Ae;exports.SidebarInput=ie;exports.SidebarInset=ne;exports.SidebarMenu=xe;exports.SidebarMenuAction=he;exports.SidebarMenuBadge=ve;exports.SidebarMenuButton=A;exports.SidebarMenuButtonSize=J;exports.SidebarMenuButtonVariant=Z;exports.SidebarMenuCollapsible=Ne;exports.SidebarMenuCollapsibleContent=ke;exports.SidebarMenuCollapsibleTrigger=ye;exports.SidebarMenuItem=L;exports.SidebarMenuSkeleton=Se;exports.SidebarMenuSub=q;exports.SidebarMenuSubButton=je;exports.SidebarMenuSubButtonSize=ee;exports.SidebarMenuSubItem=we;exports.SidebarMenuSubVariant=Q;exports.SidebarPopoverMenu=Re;exports.SidebarPopoverMenuItem=D;exports.SidebarPopoverTrigger=F;exports.SidebarProvider=re;exports.SidebarRail=se;exports.SidebarSeparator=ce;exports.SidebarSide=V;exports.SidebarSwitcher=Ie;exports.SidebarTrigger=B;exports.SidebarVariant=$;exports.useSidebar=j;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),Pe=require("react"),Ee=require("react-dom"),k=require("@radix-ui/react-slot"),z=require("class-variance-authority"),m=require("@brightlocal/icons"),l=require("@brightlocal/ui-components/lib/utils"),U=require("../button.cjs"),ze=require("../input.cjs"),T=require("../separator.cjs"),N=require("../dropdown-menu.cjs"),P=require("../popover.cjs"),R=require("../sheet.cjs"),E=require("../accordion.cjs"),Te=require("@radix-ui/react-accordion"),Be=require("../scroll-area.cjs"),H=require("../skeleton.cjs"),I=require("../tooltip.cjs"),Le=require("../hooks/use-breakpoint.cjs");function K(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=K(Pe),qe=K(Te),v="focus-visible:[box-shadow:0_0_0_1px_color-mix(in_srgb,var(--color-sidebar-ring)_50%,transparent),0_0_0_3px_rgba(0,0,0,0.1)]";var V=(e=>(e.LEFT="left",e))(V||{}),$=(e=>(e.SIDEBAR="sidebar",e))($||{}),W=(e=>(e.OFFCANVAS="offcanvas",e.ICON="icon",e.NONE="none",e))(W||{}),X=(e=>(e.DEFAULT="default",e.SM="sm",e.XS="xs",e))(X||{}),Y=(e=>(e.DEFAULT="default",e.COLLAPSIBLE="collapsible",e.ACTION="action",e))(Y||{}),Z=(e=>(e.SIMPLE="simple",e.COLLAPSIBLE="collapsible",e.DROPDOWN="dropdown",e.BADGE="badge",e.BIG_ICON="bigIcon",e.CHECKBOX="checkbox",e))(Z||{}),J=(e=>(e.DEFAULT="default",e.SM="sm",e.LG="lg",e))(J||{}),Q=(e=>(e.DEFAULT="default",e.BORDER="border",e.INDENT="indent",e))(Q||{}),ee=(e=>(e.SM="sm",e.MD="md",e))(ee||{}),ae=(e=>(e.CARET="caret",e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e.UP_DOWN="upDown",e.PLUS_MINUS="plusMinus",e.DOTS="dots",e))(ae||{});const Fe="sidebar:state",Ge=3600*24*7,He="288px",Ue="48px",Ke="b",te=i.createContext(null);function j(){const e=i.useContext(te);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const re=i.forwardRef(({dataHook:e,trackingEl:r,trackingLabel:t,defaultOpen:o=!0,open:s,onOpenChange:n,className:d,style:c,children:f,...b},u)=>{const p=Le.useIsBelowBreakpoint("lg"),[x,S]=i.useState(!1),[g,O]=i.useState(null),[_,Oe]=i.useState(o),y=s??_,C=i.useCallback(h=>{const w=typeof h=="function"?h(y):h;n?n(w):Oe(w),document.cookie=`${Fe}=${w}; path=/; max-age=${Ge}`},[n,y]),M=i.useCallback(()=>p?S(h=>!h):C(h=>!h),[p,C,S]);i.useEffect(()=>{const h=w=>{w.key===Ke&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),M())};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[M]);const G=y?"expanded":"collapsed",_e=i.useMemo(()=>({state:G,open:y,setOpen:C,isMobile:p,openMobile:x,setOpenMobile:S,toggleSidebar:M,footerPortalEl:g,setFooterPortalEl:O}),[G,y,C,p,x,S,M,g]);return a.jsx(te.Provider,{value:_e,children:a.jsx(I.TooltipProvider,{delayDuration:0,children:a.jsx("div",{ref:u,className:l.cn("group/sidebar-wrapper flex min-h-svh w-full",d),"data-hook":e,"data-slot":"sidebar-provider","data-tracking-el":r||"sidebar-provider","data-tracking-label":t,style:{"--sidebar-width":He,"--sidebar-width-icon":Ue,...c},...b,children:f})})})});re.displayName="SidebarProvider";const oe=i.forwardRef(({dataHook:e,trackingEl:r,trackingLabel:t,side:o="left",variant:s="sidebar",collapsible:n="offcanvas",embedded:d,mobileTitle:c,mobileDescription:f,className:b,children:u,...p},x)=>{const{isMobile:S,state:g,openMobile:O,setOpenMobile:_}=j();return n==="none"?a.jsx("div",{ref:x,className:l.cn("text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",b),"data-hook":e,"data-slot":"sidebar","data-tracking-el":r||"sidebar","data-tracking-label":t,...p,children:u}):S?a.jsx(R.Sheet,{open:O,onOpenChange:_,children:a.jsxs(R.SheetContent,{className:"bg-sidebar-background text-sidebar-foreground p-6","data-hook":`${e}-mobile-content`,"data-mobile":"true","data-sidebar":"sidebar",side:"left",size:"sm",children:[a.jsx(R.SheetTitle,{className:"sr-only",children:c??"Navigation"}),a.jsx(R.SheetDescription,{className:"sr-only",children:f??"Main navigation menu"}),a.jsx("div",{className:"flex h-full w-full flex-col",children:u})]})}):a.jsx("div",{ref:x,className:l.cn("group text-sidebar-foreground duration-base flex h-full shrink-0 flex-col overflow-hidden transition-[width] ease-linear",g==="expanded"&&"w-(--sidebar-width)",n==="icon"&&g==="collapsed"&&"w-(--sidebar-width-icon)",n==="offcanvas"&&g==="collapsed"&&"w-0",b),"data-collapsible":g==="collapsed"?n:"","data-hook":e,"data-side":o,"data-slot":"sidebar","data-state":g,"data-tracking-el":r||"sidebar","data-tracking-label":t,"data-variant":s,...p,children:u})});oe.displayName="Sidebar";const B=i.forwardRef(({className:e,onClick:r,dataHook:t="sidebar-trigger",toggleAriaLabel:o,children:s,...n},d)=>{const{toggleSidebar:c}=j(),f=o??"Toggle sidebar";return a.jsxs(U.Button,{ref:d,iconOnly:!0,"aria-label":f,className:l.cn("relative h-7 w-7",e),"data-slot":"sidebar-trigger",dataHook:t,size:"sm",variant:"ghost",onClick:b=>{r?.(b),c()},...n,children:[s||a.jsx(m.PanelLeft,{}),a.jsx("span",{className:"sr-only",children:f})]})});B.displayName="SidebarTrigger";const se=i.forwardRef(({className:e,toggleAriaLabel:r,...t},o)=>{const{toggleSidebar:s}=j(),n=r??"Toggle sidebar";return a.jsx("button",{ref:o,"aria-label":n,className:l.cn("hover:after:bg-sidebar-border duration-base absolute inset-y-0 -right-4 z-20 hidden w-4 -translate-x-1/2 transition-transform ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 sm:flex","cursor-w-resize","in-data-[state=collapsed]:cursor-e-resize","group-data-[collapsible=offcanvas]:hover:bg-sidebar-background group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","in-data-[collapsible=offcanvas]:-right-2",e),"data-slot":"sidebar-rail",tabIndex:-1,title:n,onClick:s,...t})});se.displayName="SidebarRail";const ne=i.forwardRef(({className:e,dataHook:r,trackingEl:t,trackingLabel:o,...s},n)=>a.jsx("main",{ref:n,className:l.cn("bg-background relative flex min-h-svh flex-1 flex-col",e),"data-hook":r,"data-slot":"sidebar-inset","data-tracking-el":t||"sidebar-inset","data-tracking-label":o,...s}));ne.displayName="SidebarInset";const ie=i.forwardRef(({className:e,...r},t)=>a.jsx(ze.Input,{ref:t,className:l.cn("bg-background h-8 w-full shadow-none",v,e),"data-slot":"sidebar-input",dataHook:"sidebar-input",...r}));ie.displayName="SidebarInput";const de=i.forwardRef(({className:e,dataHook:r,...t},o)=>a.jsx("header",{ref:o,className:l.cn("pr-section-xs flex shrink-0 flex-col gap-2 pt-6 pb-5 pl-6",e),"data-hook":r,"data-slot":"sidebar-header",...t}));de.displayName="SidebarHeader";const le=i.forwardRef(({className:e,dataHook:r,separator:t=!0,...o},s)=>{const{footerPortalEl:n}=j(),d=a.jsxs(a.Fragment,{children:[t&&a.jsx(T.Separator,{className:"group-data-[collapsible=icon]:mx-0","data-slot":"sidebar-footer-separator",spacing:"md"}),a.jsx("footer",{ref:s,className:l.cn("flex shrink-0 flex-col gap-1 p-1",e),"data-hook":r,"data-slot":"sidebar-footer",...o})]});return n?Ee.createPortal(d,n):d});le.displayName="SidebarFooter";const ce=i.forwardRef(({className:e,...r},t)=>a.jsx(T.Separator,{ref:t,className:l.cn("bg-sidebar-border mx-2 my-5 w-auto group-data-[collapsible=icon]:mx-0",e),"data-slot":"sidebar-separator",...r}));ce.displayName="SidebarSeparator";const ue=i.forwardRef(({className:e,dataHook:r,ariaLabel:t="Sidebar",children:o,...s},n)=>{const{isMobile:d,setFooterPortalEl:c}=j(),f=i.useCallback(b=>{const u=b?.querySelector('[data-slot="scroll-area-viewport"]');u&&(u.tabIndex=-1),typeof n=="function"?n(b):n&&(n.current=b)},[n]);return a.jsxs(Be.ScrollArea,{ref:f,className:l.cn("min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden **:data-[slot=scroll-area-scrollbar]:w-1 **:data-[slot=scroll-area-scrollbar]:border-l-0 **:data-[slot=scroll-area-scrollbar]:p-0 [&_[data-slot=scroll-area-viewport]]:pr-3! [&_[data-slot=scroll-area-viewport]]:pl-2! [&_[data-slot=scroll-area-viewport]>div]:flex! [&_[data-slot=scroll-area-viewport]>div]:min-h-full [&_[data-slot=scroll-area-viewport]>div]:flex-col",e),dataHook:r??"sidebar-content-scroll",scrollOrientation:d?"both":"vertical",...s,children:[a.jsx("nav",{"aria-label":t,className:"flex flex-col gap-2","data-slot":"sidebar-content",children:o}),a.jsx("div",{ref:c,className:"mt-auto"})]})});ue.displayName="SidebarContent";const be=i.forwardRef(({className:e,dataHook:r,...t},o)=>a.jsx("div",{ref:o,className:l.cn("relative flex w-full min-w-0 flex-col py-2",e),"data-hook":r,"data-slot":"sidebar-group",...t}));be.displayName="SidebarGroup";const Ve=z.cva(["flex h-8 shrink-0 items-center rounded-md px-2 text-sidebar-foreground/70 outline-none transition-[margin,opacity] duration-base ease-linear [&>svg]:shrink-0 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",v],{variants:{size:{default:"text-label",sm:"text-label",xs:"text-label-sm"},variant:{default:"",collapsible:"w-full justify-between cursor-pointer hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",action:"w-full justify-between cursor-pointer hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"}},defaultVariants:{size:"sm",variant:"default"}}),pe=i.forwardRef(({className:e,dataHook:r,asChild:t=!1,size:o="sm",variant:s="default",isOpen:n=!1,onToggle:d,onAction:c,children:f,...b},u)=>{const p=t?k.Slot:"div",x=()=>{s==="collapsible"&&d?d():s==="action"&&c&&c()},S=g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),x())};return a.jsxs(p,{ref:u,className:l.cn(Ve({size:o,variant:s}),e),"data-hook":r,"data-slot":"sidebar-group-label","data-variant":s,role:s!=="default"?"button":void 0,tabIndex:s!=="default"?0:void 0,onClick:s!=="default"?x:void 0,onKeyDown:s!=="default"?S:void 0,...b,children:[a.jsx("span",{children:f}),s==="collapsible"&&a.jsx(m.ChevronDown,{className:l.cn("duration-base shrink-0 transition-transform ease-in-out",n&&"rotate-180"),size:16}),s==="action"&&a.jsx(m.Plus,{className:"shrink-0",size:16})]})});pe.displayName="SidebarGroupLabel";const fe=i.forwardRef(({className:e,asChild:r=!1,...t},o)=>{const s=r?k.Slot:"button";return a.jsx(s,{ref:o,className:l.cn("text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground duration-base absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform ease-in-out outline-none [&>svg]:shrink-0",v,"after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),"data-slot":"sidebar-group-action",...t})});fe.displayName="SidebarGroupAction";const me=i.forwardRef(({className:e,dataHook:r,...t},o)=>a.jsx("div",{ref:o,className:l.cn("text-body-sm w-full",e),"data-hook":r,"data-slot":"sidebar-group-content",...t}));me.displayName="SidebarGroupContent";const xe=i.forwardRef(({className:e,dataHook:r,...t},o)=>a.jsx("ul",{ref:o,className:l.cn("flex w-full min-w-0 flex-col gap-1",e),"data-hook":r,"data-slot":"sidebar-menu",...t}));xe.displayName="SidebarMenu";const L=i.forwardRef(({className:e,dataHook:r,...t},o)=>a.jsx("li",{ref:o,className:l.cn("group/menu-item relative",e),"data-hook":r,"data-slot":"sidebar-menu-item",...t}));L.displayName="SidebarMenuItem";const ge=i.forwardRef(({type:e="caret",isActive:r=!1,className:t,...o},s)=>{const n={ref:s,className:l.cn("shrink-0 transition-transform duration-base ease-in-out",r&&e==="caret"&&"rotate-90",t),"data-slot":"sidebar-collapse-icon",...o};switch(e){case"horizontal":return a.jsx(m.ChevronRight,{...n});case"vertical":return a.jsx(m.ChevronDown,{...n});case"upDown":return a.jsx(m.ChevronsUpDown,{...n});case"plusMinus":return r?a.jsx(m.Minus,{...n}):a.jsx(m.Plus,{...n});case"dots":return a.jsx(m.Ellipsis,{...n});default:return a.jsx(m.ChevronRight,{...n})}});ge.displayName="SidebarCollapseIcon";const $e=z.cva(["peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-full px-4 py-2 text-left text-label outline-none transition-[color,background-color,border-color,box-shadow,opacity,width,height,padding] duration-base ease-in-out hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:rounded-md [&>span:not([data-slot])]:truncate [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100 group-data-[collapsible=icon]:[&>span]:hidden group-data-[collapsible=icon]:[&>div]:hidden",v],{variants:{variant:{simple:"",collapsible:"[&>[data-collapse-icon]]:ml-auto [&>[data-collapse-icon]]:transition-transform [&>[data-collapse-icon]]:duration-base [&>[data-collapse-icon]]:ease-in-out data-[state=open]:[&>[data-collapse-icon]]:rotate-90",dropdown:"group-has-[[data-slot=sidebar-menu-action]]/menu-item:pr-8",badge:"group-has-[[data-slot=sidebar-menu-badge]]/menu-item:pr-16",bigIcon:"h-auto flex-col items-start gap-1 rounded-lg p-3 [&>svg]:size-6 [&>svg]:rounded-md [&>svg]:bg-sidebar-foreground [&>svg]:p-1 [&>svg]:text-sidebar-background [&>svg]:opacity-100 hover:[&>svg]:bg-sidebar-foreground hover:[&>svg]:text-sidebar-background group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:[&>svg]:size-6",checkbox:"px-3 [&>[data-checkbox]]:size-4 [&>[data-checkbox]]:shrink-0 [&>[data-checkbox]]:rounded [&>[data-checkbox]]:border [&>[data-checkbox]]:border-sidebar-foreground/30 data-[checked=true]:[&>[data-checkbox]]:bg-primary data-[checked=true]:[&>[data-checkbox]]:border-primary data-[checked=true]:[&>[data-checkbox]]:text-primary-foreground"},size:{default:"h-12",sm:"h-7 text-label-sm",lg:"h-12 group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"simple",size:"default"}}),A=i.forwardRef(({asChild:e=!1,isActive:r=!1,variant:t="simple",size:o="default",tooltip:s,className:n,dataHook:d,...c},f)=>{const b=e?k.Slot:"button",{isMobile:u,state:p}=j(),x=a.jsx(b,{ref:f,className:l.cn($e({variant:t,size:o}),n),"data-active":r,"data-hook":d,"data-size":o,"data-slot":"sidebar-menu-button","data-variant":t,...c});return s?(typeof s=="string"&&(s={children:s,dataHook:"sidebar-menu-button-tooltip"}),a.jsxs(I.Tooltip,{children:[a.jsx(I.TooltipTrigger,{asChild:!0,children:x}),a.jsx(I.TooltipContent,{hideArrow:!0,...s,align:"center",className:l.cn("bg-foreground text-background border-none",s.className),hidden:p!=="collapsed"||u,side:"right",sideOffset:8})]})):x});A.displayName="SidebarMenuButton";const he=i.forwardRef(({className:e,asChild:r=!1,showOnHover:t=!1,...o},s)=>{const n=r?k.Slot:"button";return a.jsx(n,{ref:s,className:l.cn("text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground duration-base absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform ease-in-out outline-none [&>svg]:shrink-0",v,"after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","peer-data-[size=bigIcon]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),"data-slot":"sidebar-menu-action",...o})});he.displayName="SidebarMenuAction";const ve=i.forwardRef(({className:e,...r},t)=>a.jsx("div",{ref:t,className:l.cn("text-sidebar-foreground text-label-sm pointer-events-none absolute inset-y-0 right-4 my-auto flex h-5 min-w-5 items-center justify-center rounded-md px-1 tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","group-data-[collapsible=icon]:hidden",e),"data-slot":"sidebar-menu-badge",...r}));ve.displayName="SidebarMenuBadge";const Se=i.forwardRef(({className:e,showIcon:r=!1,...t},o)=>{const s=i.useId(),n=i.useMemo(()=>{let d=0;for(let c=0;c<s.length;c++)d=(d<<5)-d+s.charCodeAt(c),d|=0;return`${Math.abs(d)%40+50}%`},[s]);return a.jsxs("div",{ref:o,className:l.cn("flex h-8 items-center gap-2 rounded-md px-2",e),"data-slot":"sidebar-menu-skeleton",...t,children:[r&&a.jsx(H.Skeleton,{className:"size-4 rounded-md","data-slot":"sidebar-menu-skeleton-icon"}),a.jsx(H.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-slot":"sidebar-menu-skeleton-text",style:{"--skeleton-width":n}})]})});Se.displayName="SidebarMenuSkeleton";const We=z.cva("flex min-w-0 flex-col items-start gap-1 py-1 group-data-[collapsible=icon]:hidden",{variants:{variant:{default:"px-10",border:"relative ml-6 border-l border-transparent pl-5 pr-2 before:absolute before:inset-y-1 before:-left-px before:w-px before:bg-sidebar-border",indent:"px-10"}},defaultVariants:{variant:"border"}}),q=i.forwardRef(({className:e,variant:r="border",dataHook:t,...o},s)=>a.jsx("ul",{ref:s,className:l.cn(We({variant:r}),e),"data-hook":t,"data-slot":"sidebar-menu-sub",...o}));q.displayName="SidebarMenuSub";const we=i.forwardRef(({dataHook:e,...r},t)=>a.jsx("li",{ref:t,"data-hook":e,"data-slot":"sidebar-menu-sub-item",...r}));we.displayName="SidebarMenuSubItem";const je=i.forwardRef(({asChild:e=!1,size:r="md",isActive:t,className:o,dataHook:s,...n},d)=>{const c=e?k.Slot:"a";return a.jsx(c,{ref:d,className:l.cn("text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-foreground text-label duration-fast flex h-8 min-w-0 items-center gap-2 overflow-hidden rounded-md px-3 transition-[color,background-color,box-shadow,opacity] ease-out outline-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:not([data-slot])]:truncate [&>svg]:shrink-0",v,"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",r==="sm"&&"text-label-sm","group-data-[collapsible=icon]:hidden",o),"data-active":t,"data-hook":s,"data-size":r,"data-slot":"sidebar-menu-sub-button",...n})});je.displayName="SidebarMenuSubButton";function Ne({dataHook:e,className:r,children:t,defaultOpen:o,open:s,onOpenChange:n}){return a.jsx(L,{children:a.jsx(E.Accordion,{collapsible:!0,className:r,dataHook:e??"sidebar-menu-collapsible",defaultValue:o?"item":void 0,type:"single",value:s!==void 0?s?"item":"":void 0,onValueChange:n?d=>n(d==="item"):void 0,children:a.jsx(E.AccordionItem,{className:"group/collapsible border-none",value:"item",children:t})})})}Ne.displayName="SidebarMenuCollapsible";const ye=i.forwardRef(({children:e,className:r,...t},o)=>a.jsx(qe.Trigger,{asChild:!0,children:a.jsxs(A,{ref:o,className:r,variant:"collapsible",...t,children:[e,a.jsx(m.ChevronRight,{"data-collapse-icon":!0,className:"duration-base opacity-100! transition-transform ease-in-out group-data-[collapsible=icon]:hidden",size:12})]})}));ye.displayName="SidebarMenuCollapsibleTrigger";const ke=i.forwardRef(({dataHook:e,children:r,...t},o)=>a.jsx(E.AccordionContent,{className:"p-0",children:a.jsx(q,{ref:o,dataHook:e,...t,children:r})}));ke.displayName="SidebarMenuCollapsibleContent";const Ce=i.forwardRef(({className:e,dataHook:r="sidebar-drawer",trackingEl:t,trackingLabel:o,children:s,...n},d)=>a.jsx("div",{ref:d,className:e,"data-hook":r,"data-slot":"sidebar-drawer","data-tracking-el":t,"data-tracking-label":o,...n,children:a.jsx(B,{dataHook:`${r}-trigger`,children:a.jsx(m.Menu,{size:24})})}));Ce.displayName="SidebarDrawer";const Me=i.forwardRef(({className:e,dataHook:r="sidebar-header-button",children:t,...o},s)=>a.jsx(U.Button,{ref:s,...o,iconOnly:!0,className:l.cn("hover:bg-sidebar-accent hover:text-sidebar-accent-foreground size-7 rounded-md shadow-none",v,e),"data-slot":"sidebar-header-button",dataHook:r,size:"sm",variant:"ghost",children:t}));Me.displayName="SidebarHeaderButton";const F=i.forwardRef(({className:e,dataHook:r="sidebar-popover-trigger",icon:t,triggerAriaLabel:o,children:s,...n},d)=>a.jsxs("button",{ref:d,"aria-label":o??"Switch workspace",className:l.cn("text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground duration-fast text-heading-compact flex items-center gap-2 rounded-md px-1.5 py-2 transition-colors ease-out outline-none",v,e),"data-hook":r,"data-slot":"sidebar-popover-trigger",type:"button",...n,children:[t&&a.jsx("span",{className:"bg-sidebar-primary text-sidebar-primary-foreground flex size-5 shrink-0 items-center justify-center rounded-md",children:t}),a.jsx("span",{className:"truncate",children:s}),a.jsx(m.ChevronDown,{className:"shrink-0 opacity-50",size:16})]}));F.displayName="SidebarPopoverTrigger";const D=i.forwardRef(({className:e,dataHook:r,icon:t,shortcut:o,children:s,...n},d)=>a.jsxs("button",{ref:d,className:l.cn("text-popover-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground duration-fast text-label flex h-10 w-full items-center gap-2 rounded-xs p-2 transition-colors ease-out outline-none",v,e),"data-hook":r,"data-slot":"sidebar-popover-menu-item",type:"button",...n,children:[t&&a.jsx("span",{className:"border-border flex size-6 shrink-0 items-center justify-center rounded-xs border [&_svg]:size-4",children:t}),a.jsx("span",{className:"min-w-px flex-1 truncate text-left",children:s}),o&&a.jsx("span",{className:"text-popover-foreground/60 text-body-xs shrink-0",children:o})]}));D.displayName="SidebarPopoverMenuItem";const Re=i.forwardRef(({className:e,dataHook:r="sidebar-popover-menu",groupTitle:t="Teams",items:o,addActionLabel:s,addActionIcon:n,onAddAction:d,children:c,...f},b)=>a.jsx("div",{ref:b,className:l.cn("flex flex-col",e),"data-hook":r,"data-slot":"sidebar-popover-menu",...f,children:c||a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex flex-col items-start p-1",children:[t&&a.jsx("div",{className:"flex w-full items-center px-2 py-1.5",children:a.jsx("span",{className:"text-muted-foreground text-label-sm flex-1",children:t})}),o?.map((u,p)=>a.jsx(D,{icon:u.icon,shortcut:u.shortcut,onClick:u.onClick,children:u.label},p))]}),d&&a.jsxs(a.Fragment,{children:[a.jsx(T.Separator,{}),a.jsx("div",{className:"flex flex-col items-start p-1",children:a.jsx(D,{icon:n||a.jsx(m.Plus,{size:16}),onClick:d,children:s??"Add team"})})]})]})}));Re.displayName="SidebarPopoverMenu";function Ie({dataHook:e="sidebar-switcher",icon:r,label:t,triggerAriaLabel:o,triggerClassName:s,children:n}){return a.jsxs(P.Popover,{children:[a.jsx(P.PopoverTrigger,{asChild:!0,children:a.jsx(F,{className:s,dataHook:`${e}-trigger`,icon:r,triggerAriaLabel:o,children:t})}),a.jsx(P.PopoverContent,{align:"start",className:"w-[316px] p-0",dataHook:`${e}-content`,side:"bottom",sideOffset:4,children:n})]})}Ie.displayName="SidebarSwitcher";function De({dataHook:e="sidebar-account-dropdown",name:r,email:t,avatar:o,menuGroups:s,triggerAriaLabel:n,align:d="end",side:c="top",children:f}){return a.jsxs(N.DropdownMenu,{children:[a.jsx(N.DropdownMenuTrigger,{asChild:!0,children:a.jsxs(A,{"aria-label":n??"Account menu",className:"h-auto py-1.5",dataHook:`${e}-button`,size:"lg",children:[o,a.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[a.jsx("span",{className:"text-heading-compact truncate",children:r}),a.jsx("span",{className:"text-body-xs truncate",children:t})]}),a.jsx(m.ChevronsUpDown,{className:"shrink-0"})]})}),a.jsx(N.DropdownMenuContent,{align:d,className:"w-56",dataHook:`${e}-content`,side:c,sideOffset:4,children:f||a.jsxs(a.Fragment,{children:[a.jsxs(N.DropdownMenuLabel,{className:"flex items-center gap-2 px-1 py-1.5",children:[o,a.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[a.jsx("span",{className:"text-heading-compact truncate",children:r}),a.jsx("span",{className:"text-body-xs truncate",children:t})]})]}),s?.map((b,u)=>a.jsxs(i.Fragment,{children:[a.jsx(N.DropdownMenuSeparator,{}),b.map((p,x)=>a.jsxs(N.DropdownMenuItem,{onClick:p.onClick,children:[p.icon,p.label]},x))]},u))]})})]})}De.displayName="SidebarAccountDropdown";const Ae=i.forwardRef(({className:e,dataHook:r,senderName:t,title:o,description:s,timestamp:n,...d},c)=>a.jsxs("button",{ref:c,className:l.cn("border-sidebar-border text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:bg-sidebar-accent duration-fast flex w-full flex-col gap-2 border-b p-4 text-left transition-colors ease-out outline-none",v,e),"data-hook":r,"data-slot":"sidebar-inbox-item",type:"button",...d,children:[a.jsxs("div",{className:"text-body-sm flex w-full items-center justify-between",children:[a.jsx("span",{children:t}),n&&a.jsx("span",{children:n})]}),a.jsx("p",{className:"text-heading-compact w-full",children:o}),s&&a.jsx("p",{className:"text-body-xs w-full truncate",children:s})]}));Ae.displayName="SidebarInboxItem";exports.Sidebar=oe;exports.SidebarAccountDropdown=De;exports.SidebarCollapseIcon=ge;exports.SidebarCollapseIconType=ae;exports.SidebarCollapsible=W;exports.SidebarContent=ue;exports.SidebarDrawer=Ce;exports.SidebarFooter=le;exports.SidebarGroup=be;exports.SidebarGroupAction=fe;exports.SidebarGroupContent=me;exports.SidebarGroupLabel=pe;exports.SidebarGroupLabelSize=X;exports.SidebarGroupLabelVariant=Y;exports.SidebarHeader=de;exports.SidebarHeaderButton=Me;exports.SidebarInboxItem=Ae;exports.SidebarInput=ie;exports.SidebarInset=ne;exports.SidebarMenu=xe;exports.SidebarMenuAction=he;exports.SidebarMenuBadge=ve;exports.SidebarMenuButton=A;exports.SidebarMenuButtonSize=J;exports.SidebarMenuButtonVariant=Z;exports.SidebarMenuCollapsible=Ne;exports.SidebarMenuCollapsibleContent=ke;exports.SidebarMenuCollapsibleTrigger=ye;exports.SidebarMenuItem=L;exports.SidebarMenuSkeleton=Se;exports.SidebarMenuSub=q;exports.SidebarMenuSubButton=je;exports.SidebarMenuSubButtonSize=ee;exports.SidebarMenuSubItem=we;exports.SidebarMenuSubVariant=Q;exports.SidebarPopoverMenu=Re;exports.SidebarPopoverMenuItem=D;exports.SidebarPopoverTrigger=F;exports.SidebarProvider=re;exports.SidebarRail=se;exports.SidebarSeparator=ce;exports.SidebarSide=V;exports.SidebarSwitcher=Ie;exports.SidebarTrigger=B;exports.SidebarVariant=$;exports.useSidebar=j;
|
package/dist/blocks/sidebar.d.ts
CHANGED
|
@@ -557,6 +557,23 @@ declare const SidebarMenuCollapsibleTrigger: React.ForwardRefExoticComponent<Omi
|
|
|
557
557
|
* Props for the SidebarMenuCollapsibleContent component
|
|
558
558
|
*/
|
|
559
559
|
type SidebarMenuCollapsibleContentProps = SidebarMenuSubProps;
|
|
560
|
+
/**
|
|
561
|
+
* Expandable body of a `SidebarMenuCollapsible`. It **is** the sub-menu list:
|
|
562
|
+
* it renders a `SidebarMenuSub` (so it takes `variant` and the other
|
|
563
|
+
* `SidebarMenuSub` props), so place `SidebarMenuSubItem`s directly inside it.
|
|
564
|
+
* Do not nest another `SidebarMenuSub` in here — the two indents stack and
|
|
565
|
+
* leave ~100px for labels at the default sidebar width (DS-1029).
|
|
566
|
+
*
|
|
567
|
+
* @example
|
|
568
|
+
* <SidebarMenuCollapsible>
|
|
569
|
+
* <SidebarMenuCollapsibleTrigger>Reviews</SidebarMenuCollapsibleTrigger>
|
|
570
|
+
* <SidebarMenuCollapsibleContent>
|
|
571
|
+
* <SidebarMenuSubItem>
|
|
572
|
+
* <SidebarMenuSubButton>Review Tracker</SidebarMenuSubButton>
|
|
573
|
+
* </SidebarMenuSubItem>
|
|
574
|
+
* </SidebarMenuCollapsibleContent>
|
|
575
|
+
* </SidebarMenuCollapsible>
|
|
576
|
+
*/
|
|
560
577
|
declare const SidebarMenuCollapsibleContent: React.ForwardRefExoticComponent<Omit<SidebarMenuSubProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
561
578
|
/**
|
|
562
579
|
* Props for the SidebarDrawer component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/blocks/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAalE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAA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,QAAA,MAAM,gBAAgB,8GAwCrB,CAAC;AAIF,OAAO,EACL,OAAO,EACP,sBAAsB,EACtB,mBAAmB;AACnB,+CAA+C;AAC/C,aAAa,EACb,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,6BAA6B,EAC7B,6BAA6B,EAC7B,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,UAAU,GACX,CAAC;AAGF,YAAY,EACV,2BAA2B,EAC3B,oBAAoB,EACpB,YAAY;AACZ,oDAAoD;AACpD,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,2BAA2B,EAC3B,kCAAkC,EAClC,kCAAkC,EAClC,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,GACrB,CAAC"}
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/blocks/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO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,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,GACrB,CAAC"}
|
package/dist/blocks/sidebar.js
CHANGED
|
@@ -696,7 +696,13 @@ const oa = _(
|
|
|
696
696
|
variants: {
|
|
697
697
|
variant: {
|
|
698
698
|
default: "px-10",
|
|
699
|
-
|
|
699
|
+
// Figma SidebarMenuSub / Type=Border (DS-1029): rule 24px in, items
|
|
700
|
+
// 20px right of it, 8px right inset — labels keep ≥190px at the
|
|
701
|
+
// 288px sidebar width. The rule is a pseudo-element so it stops at
|
|
702
|
+
// the list's vertical padding (Figma draws it 4px short at both
|
|
703
|
+
// ends); the transparent border keeps its 1px in the box so `pl-5`
|
|
704
|
+
// still lands items 21px from the rule's left edge.
|
|
705
|
+
border: "relative ml-6 border-l border-transparent pl-5 pr-2 before:absolute before:inset-y-1 before:-left-px before:w-px before:bg-sidebar-border",
|
|
700
706
|
indent: "px-10"
|
|
701
707
|
}
|
|
702
708
|
},
|
|
@@ -740,7 +746,7 @@ const na = i.forwardRef(
|
|
|
740
746
|
{
|
|
741
747
|
ref: d,
|
|
742
748
|
className: l(
|
|
743
|
-
"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-foreground text-label duration-fast flex h-
|
|
749
|
+
"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-foreground text-label duration-fast flex h-8 min-w-0 items-center gap-2 overflow-hidden rounded-md px-3 transition-[color,background-color,box-shadow,opacity] ease-out outline-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:not([data-slot])]:truncate [&>svg]:shrink-0",
|
|
744
750
|
v,
|
|
745
751
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
746
752
|
r === "sm" && "text-label-sm",
|
|
@@ -26,7 +26,7 @@ interface BrandIllustrationMotifProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
26
26
|
size?: "sm" | "md" | "lg";
|
|
27
27
|
/**
|
|
28
28
|
* The illustration to render over the motif backdrop — typically a brand
|
|
29
|
-
* illustration such as
|
|
29
|
+
* illustration such as Robot at 144px. Only rendered for the `lg`
|
|
30
30
|
* size; `sm`/`md` show the motif mark alone.
|
|
31
31
|
*/
|
|
32
32
|
children?: React.ReactNode;
|
package/dist/card.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),M=require("react"),S=require("@radix-ui/react-slot"),p=require("class-variance-authority"),c=require("@brightlocal/ui-components/lib/utils");function D(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const s=D(M),u=s.createContext({flush:!1,density:"default",variant:"filled"}),O={filled:"bg-muted",border:"bg-card",transparent:"bg-background","transparent-flush":"bg-background"};function m(e,a){return e?!1:a==="condensed"?"px-3":a==="data"?"px-content":"px-section-md"}const _=p.cva(["flex","flex-col","rounded-xl","transition-colors duration-fast ease-out","w-full"],{variants:{variant:{filled:["bg-muted","text-card-foreground","border","border-card-border"],transparent:["bg-transparent","text-foreground"],border:["bg-card","text-foreground","border","border-border"],"transparent-flush":["bg-transparent","text-foreground"]},density:{default:["gap-8","py-section-md","[&>[data-divider]+[data-flush]]:-mt-8"],condensed:["gap-3","py-3","[&>[data-divider]+[data-flush]]:-mt-3"],data:["pb-6"]}},defaultVariants:{variant:"filled",density:"default"}}),x=s.forwardRef(({className:e,variant:a="filled",density:t="default",dataHook:r,trackingEl:o,trackingLabel:i,maxWidth:d,children:f,style:l,...g},R)=>{const T=a==="transparent-flush";s.useEffect(()=>{process.env.NODE_ENV!=="production"&&d!==void 0&&console.warn('Card: the "maxWidth" prop is deprecated. Use Tailwind max-width utilities via className instead (e.g., className="max-w-sm").')},[d]);const V=d!==void 0?{maxWidth:typeof d=="number"?`${d}px`:d}:void 0;return n.jsx(u.Provider,{value:{flush:T,density:t,variant:a},children:n.jsx("div",{ref:R,className:c.cn(_({variant:a,density:t}),e),"data-density":t,"data-hook":r,"data-slot":"card","data-tracking-el":o||`card-${a}`,"data-tracking-label":i,style:{...V,...l},...g,children:f})})});x.displayName="Card";const q=p.cva("@container/card-header grid auto-rows-min grid-rows-[auto_auto] gap-1 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-metric]:grid-cols-[1fr_auto]",{variants:{align:{left:"items-start",center:"justify-items-center text-center",right:"items-start text-right"}},defaultVariants:{align:"left"}}),b=s.forwardRef(({className:e,align:a="left",divider:t=!1,sticky:r=!1,dataHook:o,...i},d)=>{const{flush:f,density:l,variant:g}=s.useContext(u);return n.jsx("div",{ref:d,className:c.cn(q({align:a}),m(f,l),l==="data"&&"pt-4 pb-4",t&&l==="default"&&"pb-8",t&&l==="condensed"&&"pb-3",t&&"border-border border-b",r&&["sticky top-(--ds-section-padding-y-sm) z-10 rounded-t-xl",O[g]],e),"data-divider":t?"":void 0,"data-hook":o,"data-slot":"card-header","data-sticky":r?"":void 0,...i})});b.displayName="CardHeader";const H=p.cva("",{variants:{size:{small:"text-heading-subsection",default:"text-heading-section"}},defaultVariants:{size:"default"}}),h=s.forwardRef(({className:e,size:a="default",level:t,asChild:r=!1,dataHook:o,...i},d)=>{const f={className:c.cn(H({size:a}),e),"data-hook":o,"data-slot":"card-title",...i};if(r)return n.jsx(S.Slot,{ref:d,...f});if(t){const l=`h${t}`;return n.jsx(l,{ref:d,...f})}return n.jsx("div",{ref:d,...f})});h.displayName="CardTitle";const z=p.cva("text-body-sm text-muted-foreground",{variants:{align:{left:"text-left",center:"text-center",right:"text-right"}}}),C=s.forwardRef(({className:e,align:a,dataHook:t,...r},o)=>n.jsx("div",{ref:o,className:c.cn(z({align:a}),e),"data-hook":t,"data-slot":"card-description",...r}));C.displayName="CardDescription";const y=s.forwardRef(({className:e,dataHook:a,...t},r)=>n.jsx("div",{ref:r,className:c.cn("col-start-2 row-span-2 row-start-1 self-center justify-self-end",e),"data-hook":a,"data-slot":"card-action",...t}));y.displayName="CardAction";const v=s.forwardRef(({className:e,children:a,dataHook:t,...r},o)=>{const{flush:i,density:d}=s.useContext(u);return n.jsx("div",{ref:o,className:c.cn(m(i,d),d==="data"&&"pt-6",e),"data-hook":t,"data-slot":"card-media",...r,children:n.jsx("div",{className:"overflow-hidden rounded-md","data-slot":"card-media-clip",children:a})})});v.displayName="CardMedia";const w=s.forwardRef(({className:e,flush:a=!1,dataHook:t,...r},o)=>{const{flush:i,density:d}=s.useContext(u);return n.jsx("div",{ref:o,className:c.cn(a?!1:m(i,d),d==="data"&&!a&&"pt-6",e),"data-flush":a?"":void 0,"data-hook":t,"data-slot":"card-content",...r})});w.displayName="CardContent";const N=s.forwardRef(({className:e,dataHook:a,...t},r)=>n.jsx("div",{ref:r,className:c.cn("col-span-full mt-2 flex flex-wrap items-center gap-2 justify-self-stretch","[&>[data-slot=data-table-search]]:max-w-90 [&>[data-slot=data-table-search]]:min-w-0 [&>[data-slot=input-group]]:max-w-90 [&>[data-slot=input-group]]:min-w-0 [&>[data-slot=input]]:max-w-90 [&>[data-slot=input]]:min-w-0","[&>[data-slot=combobox-trigger]]:w-fit [&>[data-slot=select-trigger]]:w-fit",e),"data-hook":a,"data-slot":"card-toolbar",...t}));N.displayName="CardToolbar";const j=s.forwardRef(({className:e,value:a,trend:t,dataHook:r,...o},i)=>n.jsxs("div",{ref:i,className:c.cn("col-start-2 row-span-2 row-start-1 flex items-baseline gap-2 self-center justify-self-end",e),"data-hook":r,"data-slot":"card-metric",...o,children:[n.jsx("span",{className:"text-metric","data-slot":"card-metric-value",children:a}),t]}));j.displayName="CardMetric";const k=s.forwardRef(({className:e,dataHook:a,...t},r)=>{const{flush:o,density:i}=s.useContext(u);return n.jsx("div",{ref:r,className:c.cn("flex items-center",m(o,i),i==="data"&&"pt-6",e),"data-hook":a,"data-slot":"card-footer",...t})});k.displayName="CardFooter";exports.Card=x;exports.CardAction=y;exports.CardContent=w;exports.CardDescription=C;exports.CardFooter=k;exports.CardHeader=b;exports.CardMedia=v;exports.CardMetric=j;exports.CardTitle=h;exports.CardToolbar=N;
|
package/dist/card.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ type CardVariant = "filled" | "transparent" | "border" | "transparent-flush";
|
|
|
6
6
|
/**
|
|
7
7
|
* Card density type
|
|
8
8
|
*/
|
|
9
|
-
type CardDensity = "default" | "condensed";
|
|
9
|
+
type CardDensity = "default" | "condensed" | "data";
|
|
10
10
|
/**
|
|
11
11
|
* Props for the Card component
|
|
12
12
|
*/
|
|
@@ -17,7 +17,12 @@ type CardProps = React.ComponentProps<"div"> & {
|
|
|
17
17
|
*/
|
|
18
18
|
variant?: CardVariant;
|
|
19
19
|
/**
|
|
20
|
-
* Spacing density of the card
|
|
20
|
+
* Spacing density of the card.
|
|
21
|
+
* - `"default"` — responsive section-scale padding for standalone cards.
|
|
22
|
+
* - `"condensed"` — tight 12px scale for dense sidebars and widgets.
|
|
23
|
+
* - `"data"` — the report-page scale (DS-989): fixed 24px horizontal
|
|
24
|
+
* padding and a tighter header, tuned for cards that carry a filter
|
|
25
|
+
* row and a data view (table, map, chart).
|
|
21
26
|
* @default "default"
|
|
22
27
|
*/
|
|
23
28
|
density?: CardDensity;
|
|
@@ -78,6 +83,24 @@ type CardHeaderProps = CardSubComponentProps & {
|
|
|
78
83
|
* @default "left"
|
|
79
84
|
*/
|
|
80
85
|
align?: CardHeaderAlign;
|
|
86
|
+
/**
|
|
87
|
+
* Closes the header with a full-width divider — the header's own bottom
|
|
88
|
+
* border, so it travels with a sticky header. Works in every density: the
|
|
89
|
+
* header pads its bottom by the density's section spacing so the line
|
|
90
|
+
* never touches the description, and flush content placed right after the
|
|
91
|
+
* header sits directly against the line (DS-989).
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
divider?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Keeps the header pinned while the card scrolls past (DS-989) — for tall
|
|
97
|
+
* report cards whose table scrolls under the title and filters. Sticks
|
|
98
|
+
* 16px from the top on mobile and 24px from xl up (the section spacing
|
|
99
|
+
* token), stays within the card, and paints the card's surface so rows
|
|
100
|
+
* never show through. Pair with `divider` so the stuck header keeps its edge.
|
|
101
|
+
* @default false
|
|
102
|
+
*/
|
|
103
|
+
sticky?: boolean;
|
|
81
104
|
};
|
|
82
105
|
/**
|
|
83
106
|
* Header section of the Card containing title and description.
|
|
@@ -97,7 +120,8 @@ type CardTitleLevel = 2 | 3 | 4 | 5 | 6;
|
|
|
97
120
|
*/
|
|
98
121
|
type CardTitleProps = CardSubComponentProps & {
|
|
99
122
|
/**
|
|
100
|
-
* Title text size.
|
|
123
|
+
* Title text size. Report cards (`density="data"`) use `"small"` —
|
|
124
|
+
* pass it explicitly per the report-card recipe.
|
|
101
125
|
* @default "default"
|
|
102
126
|
*/
|
|
103
127
|
size?: CardTitleSize;
|
|
@@ -152,14 +176,70 @@ declare const CardAction: React.ForwardRefExoticComponent<Omit<CardSubComponentP
|
|
|
152
176
|
* Media container for images, videos, or other visual content within the Card.
|
|
153
177
|
*/
|
|
154
178
|
declare const CardMedia: React.ForwardRefExoticComponent<Omit<CardSubComponentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
179
|
+
/**
|
|
180
|
+
* Props for the CardContent component.
|
|
181
|
+
*/
|
|
182
|
+
type CardContentProps = CardSubComponentProps & {
|
|
183
|
+
/**
|
|
184
|
+
* Runs the content to the card edge (drops the horizontal padding) while
|
|
185
|
+
* the card keeps its surface and border. Use for tables, maps and charts
|
|
186
|
+
* inside a `filled` or `border` card — unlike `variant="transparent-flush"`,
|
|
187
|
+
* only this section goes edge-to-edge; the header and footer keep their
|
|
188
|
+
* padding, and other content sections can stay padded.
|
|
189
|
+
* @default false
|
|
190
|
+
*/
|
|
191
|
+
flush?: boolean;
|
|
192
|
+
};
|
|
155
193
|
/**
|
|
156
194
|
* Main content area of the Card.
|
|
157
195
|
*/
|
|
158
|
-
declare const CardContent: React.ForwardRefExoticComponent<Omit<
|
|
196
|
+
declare const CardContent: React.ForwardRefExoticComponent<Omit<CardContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
197
|
+
/**
|
|
198
|
+
* Toolbar row within the Card header (DS-989) — search, dimension filters
|
|
199
|
+
* and time/report-run pickers below the title and description (the Card
|
|
200
|
+
* counterpart of DataTableToolbar). Spans the full header width (under any
|
|
201
|
+
* CardAction/CardMetric), lays controls out left-to-right with an 8px gap,
|
|
202
|
+
* caps a search input (Input, InputGroup or DataTableSearch) at 360px so it
|
|
203
|
+
* doesn't dominate a sparse row, and lets select/combobox triggers hug their
|
|
204
|
+
* value. All of that styling reaches direct children only: wrap a control in
|
|
205
|
+
* any element to opt it out. Must be a direct child of CardHeader.
|
|
206
|
+
*
|
|
207
|
+
* Which toolbar: everything that narrows what the card shows, a table's
|
|
208
|
+
* `DataTableSearch` included, goes here in the header. `DataTableToolbar`
|
|
209
|
+
* holds the controls that page through the table (`DataTablePagination`)
|
|
210
|
+
* beside the table, and a table that stands without a card header. A report
|
|
211
|
+
* card uses both.
|
|
212
|
+
*
|
|
213
|
+
* Intentionally no `role="toolbar"`: the ARIA toolbar pattern requires a
|
|
214
|
+
* roving tabindex with arrow-key navigation, which is wrong for a row of
|
|
215
|
+
* inputs and selects. Don't add it.
|
|
216
|
+
*/
|
|
217
|
+
declare const CardToolbar: React.ForwardRefExoticComponent<Omit<CardSubComponentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
218
|
+
/**
|
|
219
|
+
* Props for the CardMetric component.
|
|
220
|
+
*/
|
|
221
|
+
type CardMetricProps = Omit<CardSubComponentProps, "children"> & {
|
|
222
|
+
/**
|
|
223
|
+
* The metric value shown opposite the title, set in the `text-metric`
|
|
224
|
+
* type role.
|
|
225
|
+
*/
|
|
226
|
+
value: React.ReactNode;
|
|
227
|
+
/**
|
|
228
|
+
* Trend indicator rendered after the value — typically a Badge.
|
|
229
|
+
*/
|
|
230
|
+
trend?: React.ReactNode;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* A headline metric in the Card header (DS-989) — a value and an optional
|
|
234
|
+
* trend badge sitting opposite the title, for cards whose own filters
|
|
235
|
+
* change the number. Occupies the same header area as CardAction, so use
|
|
236
|
+
* one or the other. Must be a direct child of CardHeader.
|
|
237
|
+
*/
|
|
238
|
+
declare const CardMetric: React.ForwardRefExoticComponent<Omit<CardMetricProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
159
239
|
/**
|
|
160
240
|
* Footer section of the Card for actions or metadata.
|
|
161
241
|
*/
|
|
162
242
|
declare const CardFooter: React.ForwardRefExoticComponent<Omit<CardSubComponentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
163
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardMedia, CardContent, };
|
|
164
|
-
export type { CardProps, CardSubComponentProps, CardHeaderProps, CardHeaderAlign, CardDescriptionProps, CardDescriptionAlign, CardTitleProps, CardTitleSize, CardTitleLevel, CardVariant, CardDensity, };
|
|
243
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardToolbar, CardMedia, CardMetric, CardContent, };
|
|
244
|
+
export type { CardProps, CardSubComponentProps, CardHeaderProps, CardHeaderAlign, CardDescriptionProps, CardDescriptionAlign, CardTitleProps, CardTitleSize, CardTitleLevel, CardContentProps, CardMetricProps, CardVariant, CardDensity, };
|
|
165
245
|
//# sourceMappingURL=card.d.ts.map
|
package/dist/card.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;GAEG;AACH,KAAK,WAAW,GAAG,QAAQ,GAAG,aAAa,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAE7E;;GAEG;AACH,KAAK,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;GAEG;AACH,KAAK,WAAW,GAAG,QAAQ,GAAG,aAAa,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAE7E;;GAEG;AACH,KAAK,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;AA4EpD;;GAEG;AACH,KAAK,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7C;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,IAAI,+FAmDT,CAAC;AAIF;;GAEG;AACH,KAAK,qBAAqB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IACzD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GA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