@medway-ui/core 1.48.0 → 1.50.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.
Files changed (40) hide show
  1. package/COMPONENTS.md +68 -3
  2. package/COMPONENTS_SUMMARY.md +5 -2
  3. package/dist/COMPONENTS.md +68 -3
  4. package/dist/COMPONENTS_SUMMARY.md +5 -2
  5. package/dist/components/AlertDialog.mjs +1 -1
  6. package/dist/components/Autocomplete.js +1 -1
  7. package/dist/components/Autocomplete.mjs +1 -1
  8. package/dist/components/CardLearn.d.ts +49 -0
  9. package/dist/components/CardLearn.js +3 -0
  10. package/dist/components/CardLearn.mjs +3 -0
  11. package/dist/components/CardLesson.mjs +1 -1
  12. package/dist/components/CardModule.mjs +1 -1
  13. package/dist/components/CardTopic.mjs +1 -1
  14. package/dist/components/CardWeek.mjs +1 -1
  15. package/dist/components/Collapsible.d.ts +1 -1
  16. package/dist/components/Collapsible.js +1 -1
  17. package/dist/components/Collapsible.mjs +1 -1
  18. package/dist/components/ConnectorNode.mjs +1 -1
  19. package/dist/components/Popover.d.ts +2 -1
  20. package/dist/components/Popover.js +1 -1
  21. package/dist/components/Popover.mjs +1 -1
  22. package/dist/components/Ranking.mjs +1 -1
  23. package/dist/components/Sidebar.d.ts +27 -3
  24. package/dist/components/Sidebar.js +1 -1
  25. package/dist/components/Sidebar.mjs +1 -1
  26. package/dist/components/Tag.d.ts +2 -2
  27. package/dist/components/Tag.js +1 -1
  28. package/dist/components/Tag.mjs +1 -1
  29. package/dist/components/TagPicker.js +1 -1
  30. package/dist/components/TagPicker.mjs +1 -1
  31. package/dist/index.d.ts +4 -1
  32. package/dist/index.js +1 -1
  33. package/dist/index.mjs +1 -1
  34. package/dist/lib/sidebar-search.d.ts +2 -0
  35. package/dist/lib/sidebar-search.js +3 -0
  36. package/dist/lib/sidebar-search.mjs +3 -0
  37. package/dist/lib/utils.d.ts +5 -0
  38. package/dist/lib/utils.js +1 -1
  39. package/dist/lib/utils.mjs +1 -1
  40. package/package.json +3 -3
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  "use client";
3
- import{jsx as s,jsxs as S,Fragment as q}from"react/jsx-runtime";import{HamburgerMd as K,ChevronLeft as V,ChevronRight as W,ChevronRightMd as U}from"@medway-ui/icons";import{cva as J}from"class-variance-authority";import{Slot as O}from"radix-ui";import{createContext as Q,forwardRef as M,useState as E,useRef as _,useEffect as A,useContext as X,useCallback as j,useMemo as Y}from"react";import{Input as Z}from"./Input.mjs";import{Separator as ee}from"./Separator.mjs";import{Sheet as ae,SheetContent as te,SheetTitle as re,SheetDescription as se}from"./Sheet.mjs";import{Skeleton as $}from"./Skeleton.mjs";import{Tooltip as P,TooltipTrigger as H,TooltipContent as L,TooltipProvider as oe}from"./Tooltip.mjs";import{useComposedRefs as ie}from"../hooks/use-composed-refs.mjs";import{useId as ne}from"../hooks/use-id.mjs";import{useIsMobile as le}from"../hooks/use-mobile.mjs";import{cn as i}from"../lib/utils.mjs";var de=Object.defineProperty,ce=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,B=(a,e,t)=>e in a?de(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,n=(a,e)=>{for(var t in e||(e={}))D.call(e,t)&&B(a,t,e[t]);if(I)for(var t of I(e))R.call(e,t)&&B(a,t,e[t]);return a},C=(a,e)=>ce(a,ue(e)),d=(a,e)=>{var t={};for(var r in a)D.call(a,r)&&e.indexOf(r)<0&&(t[r]=a[r]);if(a!=null&&I)for(var r of I(a))e.indexOf(r)<0&&R.call(a,r)&&(t[r]=a[r]);return t};const me="sidebar_state",fe=3600*24*7,pe="b",be=50,ge=40,ve=9973;function he(a){return a instanceof HTMLElement?a.isContentEditable||a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement||a instanceof HTMLSelectElement:!1}const F=Q(null);function z(){const a=X(F);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}function xe(a){var e=a,{defaultOpen:t=!0,open:r,onOpenChange:o,className:l,children:m}=e,f=d(e,["defaultOpen","open","onOpenChange","className","children"]);const g=le(),[v,h]=E(!1),[k,N]=E(t),b=r!=null?r:k,x=j(u=>{const c=typeof u=="function"?u(b):u;r===void 0&&N(c),o==null||o(c),document.cookie=`${me}=${c}; path=/; max-age=${fe}`},[r,o,b]),p=j(()=>g?h(u=>!u):x(u=>!u),[g,x,h]);A(()=>{const u=c=>{c.defaultPrevented||he(c.target)||c.key===pe&&(c.metaKey||c.ctrlKey)&&(c.preventDefault(),p())};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[p]);const w=b?"expanded":"collapsed",y=Y(()=>({state:w,open:b,setOpen:x,isMobile:g,openMobile:v,setOpenMobile:h,toggleSidebar:p}),[w,b,x,g,v,h,p]);return s(F.Provider,{value:y,children:s(oe,{delayDuration:0,children:s("div",C(n({"data-slot":"sidebar-wrapper",className:i("group/sidebar-wrapper flex min-h-svh w-full [&:has([data-variant=inset])]:bg-surface-navigation",l)},f),{children:m}))})})}function ye(a){var e=a,{side:t="left",variant:r="sidebar",collapsible:o="offcanvas",className:l,containerClassName:m,mobileTitle:f="Menu lateral",mobileDescription:g="Navega\xE7\xE3o principal da aplica\xE7\xE3o.",children:v}=e,h=d(e,["side","variant","collapsible","className","containerClassName","mobileTitle","mobileDescription","children"]);const{isMobile:k,state:N,openMobile:b,setOpenMobile:x}=z(),p=_(null),w=()=>{p.current=document.activeElement},y=u=>{var c;u.preventDefault(),(c=p.current)==null||c.focus()};return o==="none"?s("div",C(n({"data-slot":"sidebar",className:i("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",l)},h),{children:v})):k?s(ae,{open:b,onOpenChange:x,children:S(te,C(n({"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:i("w-[var(--sidebar-width-mobile)] bg-surface-navigation p-0 text-gray-foreground [&>button]:hidden",l),side:t,onOpenAutoFocus:w,onCloseAutoFocus:y},h),{children:[s(re,{className:"sr-only",children:f}),s(se,{className:"sr-only",children:g}),s("div",{className:"flex h-full w-full flex-col",children:v})]}))}):S("div",{className:i("group peer hidden text-gray-foreground md:block",l),"data-state":N,"data-collapsible":N==="collapsed"?o:"","data-variant":r,"data-side":t,"data-slot":"sidebar",children:[s("div",{"data-slot":"sidebar-gap",className:i("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear motion-reduce:transition-none","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",r==="floating"||r==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),s("div",C(n({"data-slot":"sidebar-container",className:i("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] border-gray-stroke-muted transition-[left,right,width] duration-200 ease-linear motion-reduce:transition-none md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",r==="floating"||r==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",m)},h),{children:s("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-surface-navigation group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-gray-stroke-muted group-data-[variant=floating]:shadow-level-1",children:v})}))]})}const Ne=M(function(a,e){var t=a,{className:r,onClick:o,sizeIcon:l="size-4",icon:m=s(K,{className:l}),showTooltip:f=!1,tooltipContent:g,enableHover:v=!1,label:h="Alternar barra lateral"}=t,k=d(t,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover","label"]);const{toggleSidebar:N,open:b,openMobile:x,isMobile:p}=z(),[w,y]=E(!1),u=g||{open:"Esconder",closed:"Mostrar"},c=()=>v&&w?b?s(V,{className:l}):s(W,{className:l}):m,T=S("button",C(n({ref:e,type:"button","data-sidebar":"trigger","data-slot":"sidebar-trigger","aria-expanded":p?x:b,className:i("flex min-h-8 min-w-8 items-center justify-center rounded-full bg-surface-elevated text-gray-foreground transition-shadow duration-200 hover:shadow-level-1 [&>svg]:text-gray-foreground hover:[&>svg]:text-gray-foreground-emphasis",r),onClick:G=>{o==null||o(G),N()},onMouseEnter:!p&&v?()=>y(!0):void 0,onMouseLeave:!p&&v?()=>y(!1):void 0},k),{children:[c(),s("span",{className:"sr-only",children:h})]}));return!f||p?T:S(P,{children:[s(H,{asChild:!0,children:T}),s(L,{side:"right",align:"center",children:b?u.open:u.closed})]})});function we(a){var e=a,{className:t,label:r="Alternar barra lateral"}=e,o=d(e,["className","label"]);const{toggleSidebar:l}=z();return s("button",n({type:"button","data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":r,tabIndex:-1,onClick:l,title:r,className:i("absolute inset-y-0 z-20 flex w-4 -translate-x-1/2 transition-[left,right,transform,background-color] ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-gray-stroke-muted group-data-[side=left]:-right-4 group-data-[side=right]:left-0 motion-reduce:transition-none","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-surface-navigation","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t)},o))}function Se(a){var e=a,{className:t}=e,r=d(e,["className"]);return s("main",n({"data-slot":"sidebar-inset",className:i("relative flex w-full flex-1 flex-col bg-surface-navigation","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-level-1",t)},r))}function ke(a){var e=a,{className:t}=e,r=d(e,["className"]);return s(Z,n({"data-slot":"sidebar-input","data-sidebar":"input",className:i("h-8 w-full bg-surface-navigation shadow-none",t)},r))}function Ce(a){var e=a,{className:t}=e,r=d(e,["className"]);return s("div",n({"data-slot":"sidebar-header","data-sidebar":"header",className:i("flex flex-col gap-0.5 px-4 pt-3",t)},r))}function Me(a){var e=a,{className:t}=e,r=d(e,["className"]);return s("div",n({"data-slot":"sidebar-footer","data-sidebar":"footer",className:i("flex flex-col gap-0.5 px-4 pb-3",t)},r))}function ze(a){var e=a,{className:t}=e,r=d(e,["className"]);return s(ee,n({"data-slot":"sidebar-separator","data-sidebar":"separator",className:i("mx-2 w-auto bg-gray-stroke-muted",t)},r))}function Oe(a){var e=a,{className:t}=e,r=d(e,["className"]);return s("div",n({"data-slot":"sidebar-content","data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-0.5 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t)},r))}function Te(a){var e=a,{className:t}=e,r=d(e,["className"]);return s("div",n({"data-slot":"sidebar-group","data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col px-4 py-3",t)},r))}const Ee=M(function(a,e){var t=a,{className:r,asChild:o=!1}=t,l=d(t,["className","asChild"]);const m=o?O.Slot:"div";return s(m,n({ref:e,"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:i("flex shrink-0 items-center whitespace-nowrap rounded-md px-3.5 pb-3 text-xs font-semibold uppercase leading-xs text-gray-foreground-muted outline-none transition-[margin,opacity,visibility] duration-200 ease-linear focus-visible:ring-4 focus-visible:ring-state-focus motion-reduce:transition-none [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:pointer-events-none group-data-[collapsible=icon]:invisible group-data-[collapsible=icon]:-mt-7 group-data-[collapsible=icon]:opacity-0",r)},l))}),Ie=M(function(a,e){var t=a,{className:r,asChild:o=!1}=t,l=d(t,["className","asChild"]);const m=o?O.Slot:"button";return s(m,n({ref:e,type:o?void 0:"button","data-slot":"sidebar-group-action","data-sidebar":"group-action",className:i("absolute right-3 top-2.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground outline-none transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-4 focus-visible:ring-state-focus [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",r)},l))});function _e(a){var e=a,{className:t}=e,r=d(e,["className"]);return s("div",n({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:i("w-full text-sm",t)},r))}function Ae(a){var e=a,{className:t}=e,r=d(e,["className"]);return s("ul",n({"data-slot":"sidebar-menu","data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col",t)},r))}function je(a){var e=a,{className:t,isActive:r,children:o}=e,l=d(e,["className","isActive","children"]);return S("li",C(n({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i("group/menu-item relative hover:cursor-pointer",t)},l),{children:[r&&s("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}const $e=J("peer/menu-button font-medium flex w-full select-none items-center gap-2.5 overflow-hidden rounded-md px-3.5 py-2.5 text-left text-sm outline-none transition-[width,height,padding] duration-200 ease-linear hover:bg-secondary-background-soft-emphasis focus-visible:ring-4 focus-visible:ring-state-focus motion-reduce:transition-none active:text-secondary-foreground-muted active:font-semibold disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 group-has-[[data-sidebar=menu-badge]]/menu-item:pr-10 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:text-secondary-foreground-muted data-[active=true]:font-semibold data-[active=true]:hover:bg-secondary-background-soft-emphasis data-[active=true]:hover:text-secondary-foreground-muted group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!p-2.5 [&>span:last-child]:truncate [&>svg]:size-5 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-secondary-background-soft-emphasis",section:"[[data-state=collapsed]_&]:justify-center [[data-state=collapsed]_&]:p-[5px]",outline:"bg-surface-navigation shadow-[0_0_0_1px_var(--color-gray-stroke-muted)] hover:bg-secondary-background-soft-emphasis hover:shadow-[0_0_0_1px_var(--color-secondary-stroke)]"},size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-md group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"md"}});function Pe(a){if(!a)return!1;try{return a.matches(":focus-visible, :hover")}catch(e){return a.matches(":focus, :hover")}}const He=M(function(a,e){var t=a,{asChild:r=!1,isActive:o=!1,variant:l="default",size:m="md",tooltip:f,className:g}=t,v=d(t,["asChild","isActive","variant","size","tooltip","className"]);const h=r?O.Slot:"button",{isMobile:k,state:N}=z(),[b,x]=E(!1),p=_(null),w=ie(e,p),y=N!=="collapsed"||k,u=T=>{y||x(T)},c=s(h,n({ref:w,type:r?void 0:"button","data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":o,className:i($e({variant:l,size:m}),g)},v));return A(()=>{x(!y&&Pe(p.current))},[y]),f?(typeof f=="string"&&(f={children:f}),S(P,{open:!y&&b,onOpenChange:u,children:[s(H,{asChild:!0,children:c}),s(L,n({side:"right",align:"center"},f))]})):c}),Le=M(function(a,e){var t=a,{className:r,asChild:o=!1,showOnHover:l=!1}=t,m=d(t,["className","asChild","showOnHover"]);const f=o?O.Slot:"button";return s(f,n({ref:e,type:o?void 0:"button","data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:i("absolute right-1 top-2.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground outline-none transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-4 focus-visible:ring-state-focus peer-hover/menu-button:text-secondary-stroke-emphasis [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-3.5","group-data-[collapsible=icon]:hidden",l&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-secondary-foreground-muted md:opacity-0",r)},m))});function De(a){var e=a,{className:t}=e,r=d(e,["className"]);return s("div",n({"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:i("pointer-events-none absolute right-1 top-2.5 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-gray-foreground","peer-hover/menu-button:text-secondary-foreground peer-data-[active=true]/menu-button:text-secondary-foreground-muted","peer-data-[size=sm]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-3.5","group-data-[collapsible=icon]:hidden",t)},r))}function Re(a){let e=0;for(const t of a)e=(e*31+t.charCodeAt(0))%ve;return`${e%ge+be}%`}function Be(a){var e=a,{className:t,showIcon:r=!1}=e,o=d(e,["className","showIcon"]);const l=Re(ne());return S("div",C(n({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:i("flex h-8 items-center gap-0.5 rounded-md px-2",t)},o),{children:[r&&s($,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),s($,{className:"h-4 max-w-[var(--skeleton-width)] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]}))}function Fe(a){var e=a,{className:t}=e,r=d(e,["className"]);return s("ul",n({"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:i("my-1 ml-[1.4375rem] flex min-w-0 flex-col border-l border-gray-stroke-muted pl-1.5","group-data-[collapsible=icon]:hidden",t)},r))}function Ge(a){var e=a,{className:t}=e,r=d(e,["className"]);return s("li",n({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:i("group/menu-sub-item relative",t)},r))}function qe({icon:a,title:e}){const{state:t,isMobile:r}=z();return S(q,{children:[a,s("span",{className:i("whitespace-nowrap transition-opacity duration-200 ease-linear",t==="collapsed"&&"opacity-0",r&&"opacity-100"),children:e})]})}function Ke(){return s("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 motion-reduce:transition-none",children:s(U,{size:20})})}const Ve=M(function(a,e){var t=a,{asChild:r=!1,size:o="md",isActive:l=!1,className:m}=t,f=d(t,["asChild","size","isActive","className"]);const g=r?O.Slot:"a";return s(g,n({ref:e,"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":o,"data-active":l,className:i("flex h-10 min-w-0 select-none items-center gap-0.5 overflow-hidden rounded-md px-3.5 font-medium text-gray-foreground outline-none hover:bg-secondary-background-soft-emphasis focus-visible:ring-4 focus-visible:ring-state-focus active:font-semibold active:text-secondary-foreground-muted disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-gray-foreground","data-[active=true]:font-semibold data-[active=true]:text-secondary-foreground-muted",o==="sm"&&"text-xs",o==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",m)},f))});export{ye as Sidebar,Oe as SidebarContent,Me as SidebarFooter,Te as SidebarGroup,Ie as SidebarGroupAction,_e as SidebarGroupContent,Ee as SidebarGroupLabel,Ce as SidebarHeader,ke as SidebarInput,Se as SidebarInset,Ae as SidebarMenu,Le as SidebarMenuAction,De as SidebarMenuBadge,He as SidebarMenuButton,je as SidebarMenuItem,Ke as SidebarMenuItemCollapse,qe as SidebarMenuItemTitle,Be as SidebarMenuSkeleton,Fe as SidebarMenuSub,Ve as SidebarMenuSubButton,Ge as SidebarMenuSubItem,xe as SidebarProvider,we as SidebarRail,ze as SidebarSeparator,Ne as SidebarTrigger,z as useSidebar};
3
+ import{jsx as s,jsxs as k,Fragment as Ee}from"react/jsx-runtime";import{HamburgerMd as Oe,ChevronLeft as Te,ChevronRight as Ie,SearchMagnifyingGlass as Le,CloseMd as $e,ChevronRightMd as _e}from"@medway-ui/icons";import{cva as Pe}from"class-variance-authority";import{Slot as q}from"radix-ui";import{createContext as se,forwardRef as E,useState as O,useContext as j,useLayoutEffect as H,useRef as Y,useEffect as Z,useCallback as D,useMemo as oe}from"react";import{Input as qe}from"./Input.mjs";import{Separator as He}from"./Separator.mjs";import{Sheet as De,SheetContent as je,SheetTitle as Re,SheetDescription as Fe}from"./Sheet.mjs";import{Skeleton as ie}from"./Skeleton.mjs";import{Tooltip as le,TooltipTrigger as de,TooltipContent as ce,TooltipProvider as Be}from"./Tooltip.mjs";import{useComposedRefs as Qe}from"../hooks/use-composed-refs.mjs";import{useId as ue}from"../hooks/use-id.mjs";import{useIsMobile as Ke}from"../hooks/use-mobile.mjs";import{SidebarSearchActiveContext as Ge}from"../lib/sidebar-search.mjs";import{cn as c,normalizeSearchText as We}from"../lib/utils.mjs";var Ve=Object.defineProperty,Xe=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,be=(e,a,t)=>a in e?Ve(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,b=(e,a)=>{for(var t in a||(a={}))fe.call(a,t)&&be(e,t,a[t]);if(R)for(var t of R(a))me.call(a,t)&&be(e,t,a[t]);return e},z=(e,a)=>Xe(e,Ye(a)),h=(e,a)=>{var t={};for(var r in e)fe.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&R)for(var r of R(e))a.indexOf(r)<0&&me.call(e,r)&&(t[r]=e[r]);return t};const Ze="sidebar_state",Je=3600*24*7,Ue="b",ea=50,aa=40,ta=9973;function ra(e){return e instanceof HTMLElement?e.isContentEditable||e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement:!1}const pe=se(null),F=se(null),I="data-search-hidden",L='[data-sidebar="menu-item"], [data-sidebar="menu-sub-item"]',he='[data-sidebar="menu-button"], [data-sidebar="menu-sub-button"]',na='[data-sidebar="menu-badge"], [data-sidebar="menu-action"], [data-sidebar="menu-sub"], [aria-hidden="true"], .sr-only';function sa(e){return e===1?"1 item encontrado.":`${e} itens encontrados.`}function B(e){return We(e.replace(/\s+/g," "))}function $(e,a){a?e.setAttribute(I,""):e.removeAttribute(I)}function ge(e){e.querySelectorAll(`[${I}]`).forEach(a=>a.removeAttribute(I))}function J(e){var a,t;return(t=(a=e.parentElement)==null?void 0:a.closest(L))!=null?t:null}function oa(e){return Array.from(e.querySelectorAll(L)).filter(a=>J(a)===e)}function ve(e){var a;return(a=Array.from(e.querySelectorAll(he)).find(t=>t.closest(L)===e))!=null?a:null}function ia(e){var a,t;const r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);let n="";for(let o=r.nextNode();o;o=r.nextNode()){const l=(a=o.parentElement)==null?void 0:a.closest(`${na}, ${L}`);(!l||l===e||!e.contains(l))&&(n+=(t=o.textContent)!=null?t:"")}return n}function la(e){var a;const t=ve(e),r=t==null?void 0:t.getAttribute("data-search-text");if(r!=null)return r;const n=ia(t!=null?t:e);return n.trim()===""?(a=t==null?void 0:t.getAttribute("aria-label"))!=null?a:"":n}function da(e){const a=ve(e);if(!a)return!1;const t=a.getAttribute("aria-current");return a.getAttribute("data-active")==="true"||t!==null&&t!=="false"}function ye(e,a,t,r){let n=t.get(e);n===void 0&&(n=B(la(e)),t.set(e,n));const o=r||a(n);let l=!1,d=!1;for(const i of oa(e)){const f=ye(i,a,t,o);l||(l=f.matched),d||(d=f.visible)}const p=o||l,u=p||d||da(e);return $(e,!u),{matched:p,visible:u}}function ca(e,a){let t=!1,r=null;for(const n of Array.from(e.children))if(n!==a){if(n.getAttribute("data-sidebar")==="separator"){r&&$(r,!0),r=t?n:null,t||$(n,!0);continue}n.hasAttribute(I)||(r&&($(r,!1),r=null),t=!0)}r&&$(r,!0)}function ua(e,a,t,r){const n=B(t);if(n==="")return ge(e),0;const o=d=>d.includes(n);let l=0;return e.querySelectorAll(L).forEach(d=>{J(d)||ye(d,o,r,!1).matched&&(l+=1)}),e.querySelectorAll('[data-sidebar="group"]').forEach(d=>{const p=Array.from(d.querySelectorAll('[data-sidebar="menu-item"]')).some(u=>!u.hasAttribute(I));$(d,!p)}),ca(e,a),l}function U(e){const a=e.closest('[data-sidebar="sidebar"], [data-slot="sidebar"]');return a?Array.from(a.querySelectorAll('[data-sidebar="content"]')):[]}function xe(){var e;const a=j(F),t=(e=a==null?void 0:a.query)!=null?e:"";return{query:t,isSearching:B(t)!==""}}function _(){const e=j(pe);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function fa(e){var a=e,{defaultOpen:t=!0,open:r,onOpenChange:n,className:o,children:l}=a,d=h(a,["defaultOpen","open","onOpenChange","className","children"]);const p=Ke(),[u,i]=O(!1),[f,w]=O(t),v=r!=null?r:f,N=D(m=>{const x=typeof m=="function"?m(v):m;r===void 0&&w(x),n==null||n(x),document.cookie=`${Ze}=${x}; path=/; max-age=${Je}`},[r,n,v]),g=D(()=>p?i(m=>!m):N(m=>!m),[p,N,i]);Z(()=>{const m=x=>{x.defaultPrevented||ra(x.target)||x.key===Ue&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),g())};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[g]);const y=v?"expanded":"collapsed",C=oe(()=>({state:y,open:v,setOpen:N,isMobile:p,openMobile:u,setOpenMobile:i,toggleSidebar:g}),[y,v,N,p,u,i,g]);return s(pe.Provider,{value:C,children:s(Be,{delayDuration:0,children:s("div",z(b({"data-slot":"sidebar-wrapper",className:c("group/sidebar-wrapper flex min-h-svh w-full [&:has([data-variant=inset])]:bg-surface-navigation",o)},d),{children:l}))})})}function ma(e){var a=e,{side:t="left",variant:r="sidebar",collapsible:n="offcanvas",className:o,containerClassName:l,mobileTitle:d="Menu lateral",mobileDescription:p="Navega\xE7\xE3o principal da aplica\xE7\xE3o.",searchable:u=!1,searchLabel:i="Buscar no menu",searchPlaceholder:f="Buscar no menu",searchEmptyMessage:w="Nenhum item encontrado.",searchClearLabel:v="Limpar busca",searchResultsMessage:N=sa,searchQuery:g,onSearchQueryChange:y,children:C}=a,m=h(a,["side","variant","collapsible","className","containerClassName","mobileTitle","mobileDescription","searchable","searchLabel","searchPlaceholder","searchEmptyMessage","searchClearLabel","searchResultsMessage","searchQuery","onSearchQueryChange","children"]);const{isMobile:x,state:A,openMobile:P,setOpenMobile:we}=_(),ee=Y(null),[Se,Ce]=O(""),Q=g!=null?g:Se,T=D(S=>{g===void 0&&Ce(S),y==null||y(S)},[g,y]),[ae,te]=O(null),re=D(S=>{te(M=>M!=null?M:S)},[]),ne=D(S=>{te(M=>M===S?null:M)},[]),K=!x&&n==="icon"&&A==="collapsed",G=!u||K,W=G?"":Q;Z(()=>{G&&Q!==""&&T("")},[G,Q,T]);const Me=oe(()=>({query:W,setQuery:T,isCollapsedToIcon:K,label:i,placeholder:f,emptyMessage:w,clearLabel:v,resultsMessage:N,ownerId:ae,claimOwner:re,releaseOwner:ne}),[W,T,K,i,f,w,v,N,ae,re,ne]),V=s(F.Provider,{value:u?Me:null,children:C}),ke=S=>{ee.current=document.activeElement,u&&S.target instanceof HTMLElement&&(S.preventDefault(),S.target.focus({preventScroll:!0}))},Ae=S=>{var M;S.preventDefault(),u&&T(""),(M=ee.current)==null||M.focus()},ze=S=>{var M;const X=S.target;u&&W!==""&&(M=X==null?void 0:X.closest)!=null&&M.call(X,'[data-sidebar="search"]')&&(S.preventDefault(),T(""))};return n==="none"?s("div",z(b({"data-slot":"sidebar",className:c("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",o)},m),{children:V})):x?s(De,{open:P,onOpenChange:we,children:k(je,z(b({"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:c("w-[var(--sidebar-width-mobile)] bg-surface-navigation p-0 text-gray-foreground outline-none [&>button]:hidden",o),side:t,onOpenAutoFocus:ke,onCloseAutoFocus:Ae,onEscapeKeyDown:ze},m),{children:[s(Re,{className:"sr-only",children:d}),s(Fe,{className:"sr-only",children:p}),s("div",{className:"flex h-full w-full flex-col",children:V})]}))}):k("div",{className:c("group peer hidden text-gray-foreground md:block",o),"data-state":A,"data-collapsible":A==="collapsed"?n:"","data-variant":r,"data-side":t,"data-slot":"sidebar",children:[s("div",{"data-slot":"sidebar-gap",className:c("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear motion-reduce:transition-none","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",r==="floating"||r==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),s("div",z(b({"data-slot":"sidebar-container",className:c("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] border-gray-stroke-muted transition-[left,right,width] duration-200 ease-linear motion-reduce:transition-none md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",r==="floating"||r==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",l)},m),{children:s("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-surface-navigation group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-gray-stroke-muted group-data-[variant=floating]:shadow-level-1",children:V})}))]})}const ba=E(function(e,a){var t=e,{className:r,onClick:n,sizeIcon:o="size-4",icon:l=s(Oe,{className:o}),showTooltip:d=!1,tooltipContent:p,enableHover:u=!1,label:i="Alternar barra lateral"}=t,f=h(t,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover","label"]);const{toggleSidebar:w,open:v,openMobile:N,isMobile:g}=_(),[y,C]=O(!1),m=p||{open:"Esconder",closed:"Mostrar"},x=()=>u&&y?v?s(Te,{className:o}):s(Ie,{className:o}):l,A=k("button",z(b({ref:a,type:"button","data-sidebar":"trigger","data-slot":"sidebar-trigger","aria-expanded":g?N:v,className:c("flex min-h-8 min-w-8 items-center justify-center rounded-full bg-surface-elevated text-gray-foreground transition-shadow duration-200 hover:shadow-level-1 [&>svg]:text-gray-foreground hover:[&>svg]:text-gray-foreground-emphasis",r),onClick:P=>{n==null||n(P),w()},onMouseEnter:!g&&u?()=>C(!0):void 0,onMouseLeave:!g&&u?()=>C(!1):void 0},f),{children:[x(),s("span",{className:"sr-only",children:i})]}));return!d||g?A:k(le,{children:[s(de,{asChild:!0,children:A}),s(ce,{side:"right",align:"center",children:v?m.open:m.closed})]})});function pa(e){var a=e,{className:t,label:r="Alternar barra lateral"}=a,n=h(a,["className","label"]);const{toggleSidebar:o}=_();return s("button",b({type:"button","data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":r,tabIndex:-1,onClick:o,title:r,className:c("absolute inset-y-0 z-20 flex w-4 -translate-x-1/2 transition-[left,right,transform,background-color] ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-gray-stroke-muted group-data-[side=left]:-right-4 group-data-[side=right]:left-0 motion-reduce:transition-none","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-surface-navigation","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t)},n))}function ha(e){var a=e,{className:t}=a,r=h(a,["className"]);return s("main",b({"data-slot":"sidebar-inset",className:c("relative flex w-full flex-1 flex-col bg-surface-navigation","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-level-1",t)},r))}function Ne(e){var a=e,{className:t}=a,r=h(a,["className"]);return s(qe,b({"data-slot":"sidebar-input","data-sidebar":"input",className:c("h-8 w-full bg-surface-navigation shadow-none",t)},r))}function ga(e){var a=e,{className:t}=a,r=h(a,["className"]);return s("div",b({"data-slot":"sidebar-header","data-sidebar":"header",className:c("flex flex-col gap-0.5 px-4 pt-3",t)},r))}function va(e){var a=e,{className:t}=a,r=h(a,["className"]);return s("div",b({"data-slot":"sidebar-footer","data-sidebar":"footer",className:c("flex flex-col gap-0.5 px-4 pb-3",t)},r))}function ya(e){var a=e,{className:t}=a,r=h(a,["className"]);return s(He,b({"data-slot":"sidebar-separator","data-sidebar":"separator",className:c("mx-2 w-auto bg-gray-stroke-muted data-[search-hidden]:hidden",t)},r))}function xa({label:e,size:a,onClear:t}){return s("button",{type:"button","aria-label":e,onClick:t,className:"flex rounded-full text-gray-foreground outline-none transition-colors hover:text-gray-foreground-emphasis focus-visible:ring-4 focus-visible:ring-state-focus",children:s($e,{size:a,"aria-hidden":"true"})})}function Na(e,a){const t=e instanceof Element?e:e.parentElement;return!t||a.contains(t)||t.closest('[data-sidebar="menu-badge"], [data-sidebar="menu-action"]')!==null}function wa(e,a){var t;let r=e instanceof Element?e:e.parentElement;for(r=(t=r==null?void 0:r.closest(L))!=null?t:null;r;)a.delete(r),r=J(r)}function Sa(){const e=j(F),{query:a,setQuery:t,isCollapsedToIcon:r}=e,n=Y(null),[o,l]=O(0),d=B(a)!=="";H(()=>{const i=n.current;if(!i)return;const f=U(i),w=new WeakMap,v=()=>{l(f.reduce((y,C)=>y+ua(C,i,a,w),0))};if(v(),!d)return;let N=0;const g=new MutationObserver(y=>{const C=y.filter(m=>!Na(m.target,i));C.length!==0&&(C.forEach(m=>wa(m.target,w)),!N&&(N=requestAnimationFrame(()=>{N=0,v()})))});return f.forEach(y=>g.observe(y,{childList:!0,subtree:!0,characterData:!0})),()=>{g.disconnect(),cancelAnimationFrame(N)}},[a,d]),H(()=>{const i=n.current;if(!i)return;const f=U(i);return()=>f.forEach(ge)},[]),H(()=>{const i=n.current;if(!r||!i||!i.contains(document.activeElement))return;const f=U(i).flatMap(w=>Array.from(w.querySelectorAll(he))).find(w=>w.offsetParent!==null);f==null||f.focus()},[r]);const p=()=>{var i,f;t(""),(f=(i=n.current)==null?void 0:i.querySelector("input"))==null||f.focus()};let u="";return d&&(u=o>0?e.resultsMessage(o):e.emptyMessage),k("div",{ref:n,role:"search","data-slot":"sidebar-search","data-sidebar":"search",className:"sticky top-0 z-10 flex flex-col gap-2 bg-surface-navigation px-4 pt-3 group-data-[collapsible=icon]:hidden",children:[s(Ne,{size:"md",role:"searchbox",autoComplete:"off","aria-label":e.label,placeholder:e.placeholder,iconLeft:s(Le,{}),iconRight:a!==""?s(xa,{label:e.clearLabel,onClear:p}):void 0,value:a,onChange:i=>t(i.target.value),onKeyDown:i=>{i.key==="Escape"&&a!==""&&(i.preventDefault(),i.stopPropagation(),t(""))},className:"h-10"}),s("p",{role:"status",className:c("text-sm text-gray-foreground-muted",d&&o===0?"px-3.5":"sr-only"),children:u})]})}const Ca=E(function(e,a){var t=e,{className:r,children:n}=t,o=h(t,["className","children"]);const l=j(F),{isSearching:d}=xe(),p=ue(),u=l==null?void 0:l.ownerId,i=l==null?void 0:l.claimOwner,f=l==null?void 0:l.releaseOwner;return H(()=>{u===null&&(i==null||i(p))},[u,i,p]),H(()=>()=>f==null?void 0:f(p),[f,p]),k("div",z(b({ref:a,"data-slot":"sidebar-content","data-sidebar":"content",className:c("flex min-h-0 flex-1 flex-col gap-0.5 overflow-auto group-data-[collapsible=icon]:overflow-hidden",r)},o),{children:[l&&u===p&&s(Sa,{}),s(Ge.Provider,{value:d,children:n})]}))});function Ma(e){var a=e,{className:t}=a,r=h(a,["className"]);return s("div",b({"data-slot":"sidebar-group","data-sidebar":"group",className:c("relative flex w-full min-w-0 flex-col px-4 py-3 data-[search-hidden]:hidden",t)},r))}const ka=E(function(e,a){var t=e,{className:r,asChild:n=!1}=t,o=h(t,["className","asChild"]);const l=n?q.Slot:"div";return s(l,b({ref:a,"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:c("flex shrink-0 items-center whitespace-nowrap rounded-md px-3.5 pb-3 text-xs font-semibold uppercase leading-xs text-gray-foreground-muted outline-none transition-[margin,opacity,visibility] duration-200 ease-linear focus-visible:ring-4 focus-visible:ring-state-focus motion-reduce:transition-none [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:pointer-events-none group-data-[collapsible=icon]:invisible group-data-[collapsible=icon]:-mt-7 group-data-[collapsible=icon]:opacity-0",r)},o))}),Aa=E(function(e,a){var t=e,{className:r,asChild:n=!1}=t,o=h(t,["className","asChild"]);const l=n?q.Slot:"button";return s(l,b({ref:a,type:n?void 0:"button","data-slot":"sidebar-group-action","data-sidebar":"group-action",className:c("absolute right-3 top-2.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground outline-none transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-4 focus-visible:ring-state-focus [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",r)},o))});function za(e){var a=e,{className:t}=a,r=h(a,["className"]);return s("div",b({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:c("w-full text-sm",t)},r))}function Ea(e){var a=e,{className:t}=a,r=h(a,["className"]);return s("ul",b({"data-slot":"sidebar-menu","data-sidebar":"menu",className:c("flex w-full min-w-0 flex-col",t)},r))}function Oa(e){var a=e,{className:t,isActive:r,children:n}=a,o=h(a,["className","isActive","children"]);return k("li",z(b({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:c("group/menu-item relative hover:cursor-pointer data-[search-hidden]:hidden",t)},o),{children:[r&&s("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),n]}))}const Ta=Pe("peer/menu-button font-medium flex w-full select-none items-center gap-2.5 overflow-hidden rounded-md px-3.5 py-2.5 text-left text-sm outline-none transition-[width,height,padding] duration-200 ease-linear hover:bg-secondary-background-soft-emphasis focus-visible:ring-4 focus-visible:ring-state-focus motion-reduce:transition-none active:text-secondary-foreground-muted active:font-semibold disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 group-has-[[data-sidebar=menu-badge]]/menu-item:pr-10 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:text-secondary-foreground-muted data-[active=true]:font-semibold data-[active=true]:hover:bg-secondary-background-soft-emphasis data-[active=true]:hover:text-secondary-foreground-muted group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!p-2.5 [&>span:last-child]:truncate [&>svg]:size-5 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-secondary-background-soft-emphasis",section:"[[data-state=collapsed]_&]:justify-center [[data-state=collapsed]_&]:p-[5px]",outline:"bg-surface-navigation shadow-[0_0_0_1px_var(--color-gray-stroke-muted)] hover:bg-secondary-background-soft-emphasis hover:shadow-[0_0_0_1px_var(--color-secondary-stroke)]"},size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-md group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"md"}});function Ia(e){if(!e)return!1;try{return e.matches(":focus-visible, :hover")}catch(a){return e.matches(":focus, :hover")}}const La=E(function(e,a){var t=e,{asChild:r=!1,isActive:n=!1,variant:o="default",size:l="md",tooltip:d,searchText:p,className:u}=t,i=h(t,["asChild","isActive","variant","size","tooltip","searchText","className"]);const f=r?q.Slot:"button",{isMobile:w,state:v}=_(),[N,g]=O(!1),y=Y(null),C=Qe(a,y),m=v!=="collapsed"||w,x=P=>{m||g(P)},A=s(f,b({ref:C,type:r?void 0:"button","data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":l,"data-active":n,"data-search-text":p,className:c(Ta({variant:o,size:l}),u)},i));return Z(()=>{g(!m&&Ia(y.current))},[m]),d?(typeof d=="string"&&(d={children:d}),k(le,{open:!m&&N,onOpenChange:x,children:[s(de,{asChild:!0,children:A}),s(ce,b({side:"right",align:"center"},d))]})):A}),$a=E(function(e,a){var t=e,{className:r,asChild:n=!1,showOnHover:o=!1}=t,l=h(t,["className","asChild","showOnHover"]);const d=n?q.Slot:"button";return s(d,b({ref:a,type:n?void 0:"button","data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:c("absolute right-1 top-2.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground outline-none transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-4 focus-visible:ring-state-focus peer-hover/menu-button:text-secondary-stroke-emphasis [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-3.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-secondary-foreground-muted md:opacity-0",r)},l))});function _a(e){var a=e,{className:t}=a,r=h(a,["className"]);return s("div",b({"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:c("pointer-events-none absolute right-1 top-2.5 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-gray-foreground","peer-hover/menu-button:text-secondary-foreground peer-data-[active=true]/menu-button:text-secondary-foreground-muted","peer-data-[size=sm]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-3.5","group-data-[collapsible=icon]:hidden",t)},r))}function Pa(e){let a=0;for(const t of e)a=(a*31+t.charCodeAt(0))%ta;return`${a%aa+ea}%`}function qa(e){var a=e,{className:t,showIcon:r=!1}=a,n=h(a,["className","showIcon"]);const o=Pa(ue());return k("div",z(b({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:c("flex h-8 items-center gap-0.5 rounded-md px-2",t)},n),{children:[r&&s(ie,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),s(ie,{className:"h-4 max-w-[var(--skeleton-width)] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]}))}function Ha(e){var a=e,{className:t}=a,r=h(a,["className"]);return s("ul",b({"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:c("my-1 ml-[1.4375rem] flex min-w-0 flex-col border-l border-gray-stroke-muted pl-1.5","group-data-[collapsible=icon]:hidden",t)},r))}function Da(e){var a=e,{className:t}=a,r=h(a,["className"]);return s("li",b({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:c("group/menu-sub-item relative data-[search-hidden]:hidden",t)},r))}function ja({icon:e,title:a}){const{state:t,isMobile:r}=_();return k(Ee,{children:[e,s("span",{className:c("whitespace-nowrap transition-opacity duration-200 ease-linear",t==="collapsed"&&"opacity-0",r&&"opacity-100"),children:a})]})}function Ra(){return s("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 motion-reduce:transition-none",children:s(_e,{size:20})})}const Fa=E(function(e,a){var t=e,{asChild:r=!1,size:n="md",isActive:o=!1,searchText:l,className:d}=t,p=h(t,["asChild","size","isActive","searchText","className"]);const u=r?q.Slot:"a";return s(u,b({ref:a,"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":n,"data-active":o,"data-search-text":l,className:c("flex h-10 min-w-0 select-none items-center gap-0.5 overflow-hidden rounded-md px-3.5 font-medium text-gray-foreground outline-none hover:bg-secondary-background-soft-emphasis focus-visible:ring-4 focus-visible:ring-state-focus active:font-semibold active:text-secondary-foreground-muted disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-gray-foreground","data-[active=true]:font-semibold data-[active=true]:text-secondary-foreground-muted",n==="sm"&&"text-xs",n==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",d)},p))});export{ma as Sidebar,Ca as SidebarContent,va as SidebarFooter,Ma as SidebarGroup,Aa as SidebarGroupAction,za as SidebarGroupContent,ka as SidebarGroupLabel,ga as SidebarHeader,Ne as SidebarInput,ha as SidebarInset,Ea as SidebarMenu,$a as SidebarMenuAction,_a as SidebarMenuBadge,La as SidebarMenuButton,Oa as SidebarMenuItem,Ra as SidebarMenuItemCollapse,ja as SidebarMenuItemTitle,qa as SidebarMenuSkeleton,Ha as SidebarMenuSub,Fa as SidebarMenuSubButton,Da as SidebarMenuSubItem,fa as SidebarProvider,pa as SidebarRail,ya as SidebarSeparator,ba as SidebarTrigger,_ as useSidebar,xe as useSidebarSearch};
@@ -1,12 +1,12 @@
1
- import { type ComponentProps, type ReactElement } from "react";
2
1
  import { type VariantProps } from "class-variance-authority";
2
+ import { type ComponentProps, type ReactElement } from "react";
3
3
  interface TagProps extends ComponentProps<"span">, VariantProps<typeof tagVariants> {
4
4
  asChild?: boolean;
5
5
  icon?: ReactElement;
6
6
  }
7
7
  declare const tagVariants: (props?: ({
8
8
  size?: "sm" | "md" | null | undefined;
9
- variant?: "regular" | "error" | "warning" | "go" | "regular-soft" | "regular-basic" | "emphasis" | "emphasis-soft" | "emphasis-basic" | "error-soft" | "error-basic" | "warning-soft" | "warning-basic" | "success" | "success-soft" | "success-basic" | "gray" | "gray-soft" | "gray-basic" | "cm" | "cm-soft" | "cm-basic" | "go-soft" | "go-basic" | "cir" | "cir-soft" | "cir-basic" | "ped" | "ped-soft" | "ped-basic" | "prev" | "prev-soft" | "prev-basic" | "ia" | "ia-soft" | "ia-basic" | null | undefined;
9
+ variant?: "regular" | "error" | "warning" | "go" | "regular-soft" | "regular-basic" | "emphasis" | "emphasis-soft" | "emphasis-basic" | "error-soft" | "error-basic" | "warning-soft" | "warning-basic" | "success" | "success-soft" | "success-basic" | "gray" | "new" | "gray-soft" | "gray-basic" | "cm" | "cm-soft" | "cm-basic" | "go-soft" | "go-basic" | "cir" | "cir-soft" | "cir-basic" | "ped" | "ped-soft" | "ped-basic" | "prev" | "prev-soft" | "prev-basic" | "ia" | "ia-soft" | "ia-basic" | "new-inverse" | null | undefined;
10
10
  } & ({ class: import("clsx").ClassValue; className?: never } | { class?: never; className: import("clsx").ClassValue } | { class?: never; className?: never })) | undefined) => string;
11
11
  type TagVariant = NonNullable<VariantProps<typeof tagVariants>["variant"]>;
12
12
  type TagSize = NonNullable<VariantProps<typeof tagVariants>["size"]>;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  "use client";
3
- "use strict";var n=require("react/jsx-runtime"),h=require("react"),d=require("radix-ui"),_=require("class-variance-authority"),c=require("../lib/utils.js"),j=Object.defineProperty,O=Object.defineProperties,z=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,b=(r,e,o)=>e in r?j(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,p=(r,e)=>{for(var o in e||(e={}))s.call(e,o)&&b(r,o,e[o]);if(t)for(var o of t(e))u.call(e,o)&&b(r,o,e[o]);return r},x=(r,e)=>O(r,z(e)),k=(r,e)=>{var o={};for(var a in r)s.call(r,a)&&e.indexOf(a)<0&&(o[a]=r[a]);if(r!=null&&t)for(var a of t(r))e.indexOf(a)<0&&u.call(r,a)&&(o[a]=r[a]);return o};const m=_.cva("inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-semibold leading-xs w-fit min-w-0 max-w-full whitespace-nowrap gap-1.5 transition-colors overflow-hidden max-h-6",{variants:{size:{sm:"",md:"px-2.5 py-1.5 text-sm leading-sm gap-2 max-h-8 [&_[data-slot=tag-icon]>svg]:size-5"},variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill fill-primary-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground fill-primary-foreground","regular-basic":"bg-transparent text-primary-foreground fill-primary-foreground p-0",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill fill-secondary-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground fill-secondary-foreground","emphasis-basic":"bg-transparent text-secondary-foreground fill-secondary-foreground p-0",gray:"bg-gray-background-fill text-gray-foreground-onfill fill-gray-foreground-onfill","gray-soft":"bg-gray-background-soft text-gray-foreground fill-gray-foreground","gray-basic":"bg-transparent text-gray-foreground fill-gray-foreground p-0",success:"bg-feedback-success-background-fill text-feedback-success-foreground-onfill fill-feedback-success-foreground-onfill","success-soft":"bg-feedback-success-background-soft text-feedback-success-foreground fill-feedback-success-foreground","success-basic":"bg-transparent text-feedback-success-foreground fill-feedback-success-foreground p-0",error:"bg-feedback-error-background-fill text-feedback-error-foreground-onfill fill-feedback-error-foreground-onfill","error-soft":"bg-feedback-error-background-soft text-feedback-error-foreground fill-feedback-error-foreground","error-basic":"bg-transparent text-feedback-error-foreground fill-feedback-error-foreground p-0",warning:"bg-feedback-warning-background-fill text-feedback-warning-foreground-onfill fill-feedback-warning-foreground-onfill","warning-soft":"bg-feedback-warning-background-soft text-feedback-warning-foreground fill-feedback-warning-foreground","warning-basic":"bg-transparent text-feedback-warning-foreground fill-feedback-warning-foreground p-0",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill","cm-soft":"bg-cm-background-soft text-cm-foreground fill-cm-foreground","cm-basic":"bg-transparent text-cm-foreground fill-cm-foreground p-0",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill","go-soft":"bg-go-background-soft text-go-foreground fill-go-foreground","go-basic":"bg-transparent text-go-foreground fill-go-foreground p-0",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill","cir-soft":"bg-cir-background-soft text-cir-foreground fill-cir-foreground","cir-basic":"bg-transparent text-cir-foreground fill-cir-foreground p-0",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill","ped-soft":"bg-ped-background-soft text-ped-foreground fill-ped-foreground","ped-basic":"bg-transparent text-ped-foreground fill-ped-foreground p-0",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill","prev-soft":"bg-prev-background-soft text-prev-foreground fill-prev-foreground","prev-basic":"bg-transparent text-prev-foreground fill-prev-foreground p-0",ia:"[background:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] text-primary-foreground-onfill fill-primary-foreground-onfill","ia-soft":"[background:linear-gradient(90deg,color-mix(in_srgb,var(--color-secondary-darken-1)_15%,transparent)_0%,color-mix(in_srgb,var(--color-cm)_15%,transparent)_100%)] text-secondary-foreground fill-secondary-foreground","ia-basic":"bg-transparent text-secondary-foreground [&_[data-slot=tag-text]]:bg-clip-text [&_[data-slot=tag-text]]:text-transparent [&_[data-slot=tag-text]]:[-webkit-background-clip:text] [&_[data-slot=tag-text]]:[background-image:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] p-0"}},defaultVariants:{size:"sm",variant:"regular"}});function N(r){var e=r,{className:o,icon:a}=e,l=k(e,["className","icon"]);return n.jsx("span",x(p({"data-slot":"tag-icon",className:c.cn("[&>svg]:size-4",o)},l),{children:a}))}const S=h.forwardRef(function(r,e){var o=r,{className:a,variant:l,size:y,asChild:f=!1,icon:i,children:g}=o,v=k(o,["className","variant","size","asChild","icon","children"]);const w=f?d.Slot.Slot:"span";return n.jsxs(w,x(p({ref:e,"data-slot":"tag",className:c.cn(m({size:y,variant:l}),a)},v),{children:[i&&n.jsx(N,{icon:i}),f?n.jsx(d.Slot.Slottable,{children:g}):n.jsx("span",{"data-slot":"tag-text",className:"min-w-0 truncate",children:g})]}))});exports.Tag=S,exports.tagVariants=m;
3
+ "use strict";var n=require("react/jsx-runtime"),h=require("class-variance-authority"),d=require("radix-ui"),_=require("react"),c=require("../lib/utils.js"),j=Object.defineProperty,O=Object.defineProperties,N=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,b=(r,e,o)=>e in r?j(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,p=(r,e)=>{for(var o in e||(e={}))s.call(e,o)&&b(r,o,e[o]);if(t)for(var o of t(e))u.call(e,o)&&b(r,o,e[o]);return r},x=(r,e)=>O(r,N(e)),m=(r,e)=>{var o={};for(var a in r)s.call(r,a)&&e.indexOf(a)<0&&(o[a]=r[a]);if(r!=null&&t)for(var a of t(r))e.indexOf(a)<0&&u.call(r,a)&&(o[a]=r[a]);return o};const k=h.cva("inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-semibold leading-xs w-fit min-w-0 max-w-full whitespace-nowrap gap-1.5 transition-colors overflow-hidden max-h-6",{variants:{size:{sm:"",md:"px-2.5 py-1.5 text-sm leading-sm gap-2 max-h-8 [&_[data-slot=tag-icon]>svg]:size-5"},variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill fill-primary-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground fill-primary-foreground","regular-basic":"bg-transparent text-primary-foreground fill-primary-foreground p-0",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill fill-secondary-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground fill-secondary-foreground","emphasis-basic":"bg-transparent text-secondary-foreground fill-secondary-foreground p-0",gray:"bg-gray-background-fill text-gray-foreground-onfill fill-gray-foreground-onfill","gray-soft":"bg-gray-background-soft text-gray-foreground fill-gray-foreground","gray-basic":"bg-transparent text-gray-foreground fill-gray-foreground p-0",success:"bg-feedback-success-background-fill text-feedback-success-foreground-onfill fill-feedback-success-foreground-onfill","success-soft":"bg-feedback-success-background-soft text-feedback-success-foreground fill-feedback-success-foreground","success-basic":"bg-transparent text-feedback-success-foreground fill-feedback-success-foreground p-0",error:"bg-feedback-error-background-fill text-feedback-error-foreground-onfill fill-feedback-error-foreground-onfill","error-soft":"bg-feedback-error-background-soft text-feedback-error-foreground fill-feedback-error-foreground","error-basic":"bg-transparent text-feedback-error-foreground fill-feedback-error-foreground p-0",warning:"bg-feedback-warning-background-fill text-feedback-warning-foreground-onfill fill-feedback-warning-foreground-onfill","warning-soft":"bg-feedback-warning-background-soft text-feedback-warning-foreground fill-feedback-warning-foreground","warning-basic":"bg-transparent text-feedback-warning-foreground fill-feedback-warning-foreground p-0",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill","cm-soft":"bg-cm-background-soft text-cm-foreground fill-cm-foreground","cm-basic":"bg-transparent text-cm-foreground fill-cm-foreground p-0",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill","go-soft":"bg-go-background-soft text-go-foreground fill-go-foreground","go-basic":"bg-transparent text-go-foreground fill-go-foreground p-0",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill","cir-soft":"bg-cir-background-soft text-cir-foreground fill-cir-foreground","cir-basic":"bg-transparent text-cir-foreground fill-cir-foreground p-0",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill","ped-soft":"bg-ped-background-soft text-ped-foreground fill-ped-foreground","ped-basic":"bg-transparent text-ped-foreground fill-ped-foreground p-0",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill","prev-soft":"bg-prev-background-soft text-prev-foreground fill-prev-foreground","prev-basic":"bg-transparent text-prev-foreground fill-prev-foreground p-0",ia:"[background:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] text-primary-foreground-onfill fill-primary-foreground-onfill","ia-soft":"[background:linear-gradient(90deg,color-mix(in_srgb,var(--color-secondary-darken-1)_15%,transparent)_0%,color-mix(in_srgb,var(--color-cm)_15%,transparent)_100%)] text-secondary-foreground fill-secondary-foreground","ia-basic":"bg-transparent text-secondary-foreground [&_[data-slot=tag-text]]:bg-clip-text [&_[data-slot=tag-text]]:text-transparent [&_[data-slot=tag-text]]:[-webkit-background-clip:text] [&_[data-slot=tag-text]]:[background-image:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] p-0",new:"[background:linear-gradient(141deg,var(--color-cm)_0%,var(--color-secondary-lighten-1)_100%)] text-cm-foreground-onfill fill-cm-foreground-onfill","new-inverse":"bg-white text-primary-lighten-5 fill-primary-lighten-5"}},defaultVariants:{size:"sm",variant:"regular"}});function z(r){var e=r,{className:o,icon:a}=e,l=m(e,["className","icon"]);return n.jsx("span",x(p({"data-slot":"tag-icon",className:c.cn("[&>svg]:size-4",o)},l),{children:a}))}const S=_.forwardRef(function(r,e){var o=r,{className:a,variant:l,size:y,asChild:f=!1,icon:i,children:g}=o,v=m(o,["className","variant","size","asChild","icon","children"]);const w=f?d.Slot.Slot:"span";return n.jsxs(w,x(p({ref:e,"data-slot":"tag",className:c.cn(k({size:y,variant:l}),a)},v),{children:[i&&n.jsx(z,{icon:i}),f?n.jsx(d.Slot.Slottable,{children:g}):n.jsx("span",{"data-slot":"tag-text",className:"min-w-0 truncate",children:g})]}))});exports.Tag=S,exports.tagVariants=k;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  "use client";
3
- import{jsxs as h,jsx as n}from"react/jsx-runtime";import{forwardRef as _}from"react";import{Slot as d}from"radix-ui";import{cva as O}from"class-variance-authority";import{cn as c}from"../lib/utils.mjs";var j=Object.defineProperty,z=Object.defineProperties,N=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,b=(r,e,o)=>e in r?j(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,p=(r,e)=>{for(var o in e||(e={}))s.call(e,o)&&b(r,o,e[o]);if(t)for(var o of t(e))u.call(e,o)&&b(r,o,e[o]);return r},m=(r,e)=>z(r,N(e)),x=(r,e)=>{var o={};for(var a in r)s.call(r,a)&&e.indexOf(a)<0&&(o[a]=r[a]);if(r!=null&&t)for(var a of t(r))e.indexOf(a)<0&&u.call(r,a)&&(o[a]=r[a]);return o};const k=O("inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-semibold leading-xs w-fit min-w-0 max-w-full whitespace-nowrap gap-1.5 transition-colors overflow-hidden max-h-6",{variants:{size:{sm:"",md:"px-2.5 py-1.5 text-sm leading-sm gap-2 max-h-8 [&_[data-slot=tag-icon]>svg]:size-5"},variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill fill-primary-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground fill-primary-foreground","regular-basic":"bg-transparent text-primary-foreground fill-primary-foreground p-0",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill fill-secondary-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground fill-secondary-foreground","emphasis-basic":"bg-transparent text-secondary-foreground fill-secondary-foreground p-0",gray:"bg-gray-background-fill text-gray-foreground-onfill fill-gray-foreground-onfill","gray-soft":"bg-gray-background-soft text-gray-foreground fill-gray-foreground","gray-basic":"bg-transparent text-gray-foreground fill-gray-foreground p-0",success:"bg-feedback-success-background-fill text-feedback-success-foreground-onfill fill-feedback-success-foreground-onfill","success-soft":"bg-feedback-success-background-soft text-feedback-success-foreground fill-feedback-success-foreground","success-basic":"bg-transparent text-feedback-success-foreground fill-feedback-success-foreground p-0",error:"bg-feedback-error-background-fill text-feedback-error-foreground-onfill fill-feedback-error-foreground-onfill","error-soft":"bg-feedback-error-background-soft text-feedback-error-foreground fill-feedback-error-foreground","error-basic":"bg-transparent text-feedback-error-foreground fill-feedback-error-foreground p-0",warning:"bg-feedback-warning-background-fill text-feedback-warning-foreground-onfill fill-feedback-warning-foreground-onfill","warning-soft":"bg-feedback-warning-background-soft text-feedback-warning-foreground fill-feedback-warning-foreground","warning-basic":"bg-transparent text-feedback-warning-foreground fill-feedback-warning-foreground p-0",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill","cm-soft":"bg-cm-background-soft text-cm-foreground fill-cm-foreground","cm-basic":"bg-transparent text-cm-foreground fill-cm-foreground p-0",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill","go-soft":"bg-go-background-soft text-go-foreground fill-go-foreground","go-basic":"bg-transparent text-go-foreground fill-go-foreground p-0",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill","cir-soft":"bg-cir-background-soft text-cir-foreground fill-cir-foreground","cir-basic":"bg-transparent text-cir-foreground fill-cir-foreground p-0",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill","ped-soft":"bg-ped-background-soft text-ped-foreground fill-ped-foreground","ped-basic":"bg-transparent text-ped-foreground fill-ped-foreground p-0",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill","prev-soft":"bg-prev-background-soft text-prev-foreground fill-prev-foreground","prev-basic":"bg-transparent text-prev-foreground fill-prev-foreground p-0",ia:"[background:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] text-primary-foreground-onfill fill-primary-foreground-onfill","ia-soft":"[background:linear-gradient(90deg,color-mix(in_srgb,var(--color-secondary-darken-1)_15%,transparent)_0%,color-mix(in_srgb,var(--color-cm)_15%,transparent)_100%)] text-secondary-foreground fill-secondary-foreground","ia-basic":"bg-transparent text-secondary-foreground [&_[data-slot=tag-text]]:bg-clip-text [&_[data-slot=tag-text]]:text-transparent [&_[data-slot=tag-text]]:[-webkit-background-clip:text] [&_[data-slot=tag-text]]:[background-image:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] p-0"}},defaultVariants:{size:"sm",variant:"regular"}});function P(r){var e=r,{className:o,icon:a}=e,f=x(e,["className","icon"]);return n("span",m(p({"data-slot":"tag-icon",className:c("[&>svg]:size-4",o)},f),{children:a}))}const S=_(function(r,e){var o=r,{className:a,variant:f,size:y,asChild:l=!1,icon:i,children:g}=o,v=x(o,["className","variant","size","asChild","icon","children"]);const w=l?d.Slot:"span";return h(w,m(p({ref:e,"data-slot":"tag",className:c(k({size:y,variant:f}),a)},v),{children:[i&&n(P,{icon:i}),l?n(d.Slottable,{children:g}):n("span",{"data-slot":"tag-text",className:"min-w-0 truncate",children:g})]}))});export{S as Tag,k as tagVariants};
3
+ import{jsxs as h,jsx as n}from"react/jsx-runtime";import{cva as _}from"class-variance-authority";import{Slot as d}from"radix-ui";import{forwardRef as O}from"react";import{cn as c}from"../lib/utils.mjs";var j=Object.defineProperty,N=Object.defineProperties,z=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,b=(r,e,o)=>e in r?j(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,p=(r,e)=>{for(var o in e||(e={}))s.call(e,o)&&b(r,o,e[o]);if(t)for(var o of t(e))u.call(e,o)&&b(r,o,e[o]);return r},m=(r,e)=>N(r,z(e)),x=(r,e)=>{var o={};for(var a in r)s.call(r,a)&&e.indexOf(a)<0&&(o[a]=r[a]);if(r!=null&&t)for(var a of t(r))e.indexOf(a)<0&&u.call(r,a)&&(o[a]=r[a]);return o};const k=_("inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-semibold leading-xs w-fit min-w-0 max-w-full whitespace-nowrap gap-1.5 transition-colors overflow-hidden max-h-6",{variants:{size:{sm:"",md:"px-2.5 py-1.5 text-sm leading-sm gap-2 max-h-8 [&_[data-slot=tag-icon]>svg]:size-5"},variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill fill-primary-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground fill-primary-foreground","regular-basic":"bg-transparent text-primary-foreground fill-primary-foreground p-0",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill fill-secondary-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground fill-secondary-foreground","emphasis-basic":"bg-transparent text-secondary-foreground fill-secondary-foreground p-0",gray:"bg-gray-background-fill text-gray-foreground-onfill fill-gray-foreground-onfill","gray-soft":"bg-gray-background-soft text-gray-foreground fill-gray-foreground","gray-basic":"bg-transparent text-gray-foreground fill-gray-foreground p-0",success:"bg-feedback-success-background-fill text-feedback-success-foreground-onfill fill-feedback-success-foreground-onfill","success-soft":"bg-feedback-success-background-soft text-feedback-success-foreground fill-feedback-success-foreground","success-basic":"bg-transparent text-feedback-success-foreground fill-feedback-success-foreground p-0",error:"bg-feedback-error-background-fill text-feedback-error-foreground-onfill fill-feedback-error-foreground-onfill","error-soft":"bg-feedback-error-background-soft text-feedback-error-foreground fill-feedback-error-foreground","error-basic":"bg-transparent text-feedback-error-foreground fill-feedback-error-foreground p-0",warning:"bg-feedback-warning-background-fill text-feedback-warning-foreground-onfill fill-feedback-warning-foreground-onfill","warning-soft":"bg-feedback-warning-background-soft text-feedback-warning-foreground fill-feedback-warning-foreground","warning-basic":"bg-transparent text-feedback-warning-foreground fill-feedback-warning-foreground p-0",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill","cm-soft":"bg-cm-background-soft text-cm-foreground fill-cm-foreground","cm-basic":"bg-transparent text-cm-foreground fill-cm-foreground p-0",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill","go-soft":"bg-go-background-soft text-go-foreground fill-go-foreground","go-basic":"bg-transparent text-go-foreground fill-go-foreground p-0",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill","cir-soft":"bg-cir-background-soft text-cir-foreground fill-cir-foreground","cir-basic":"bg-transparent text-cir-foreground fill-cir-foreground p-0",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill","ped-soft":"bg-ped-background-soft text-ped-foreground fill-ped-foreground","ped-basic":"bg-transparent text-ped-foreground fill-ped-foreground p-0",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill","prev-soft":"bg-prev-background-soft text-prev-foreground fill-prev-foreground","prev-basic":"bg-transparent text-prev-foreground fill-prev-foreground p-0",ia:"[background:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] text-primary-foreground-onfill fill-primary-foreground-onfill","ia-soft":"[background:linear-gradient(90deg,color-mix(in_srgb,var(--color-secondary-darken-1)_15%,transparent)_0%,color-mix(in_srgb,var(--color-cm)_15%,transparent)_100%)] text-secondary-foreground fill-secondary-foreground","ia-basic":"bg-transparent text-secondary-foreground [&_[data-slot=tag-text]]:bg-clip-text [&_[data-slot=tag-text]]:text-transparent [&_[data-slot=tag-text]]:[-webkit-background-clip:text] [&_[data-slot=tag-text]]:[background-image:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] p-0",new:"[background:linear-gradient(141deg,var(--color-cm)_0%,var(--color-secondary-lighten-1)_100%)] text-cm-foreground-onfill fill-cm-foreground-onfill","new-inverse":"bg-white text-primary-lighten-5 fill-primary-lighten-5"}},defaultVariants:{size:"sm",variant:"regular"}});function P(r){var e=r,{className:o,icon:a}=e,l=x(e,["className","icon"]);return n("span",m(p({"data-slot":"tag-icon",className:c("[&>svg]:size-4",o)},l),{children:a}))}const S=O(function(r,e){var o=r,{className:a,variant:l,size:y,asChild:f=!1,icon:i,children:g}=o,v=x(o,["className","variant","size","asChild","icon","children"]);const w=f?d.Slot:"span";return h(w,m(p({ref:e,"data-slot":"tag",className:c(k({size:y,variant:l}),a)},v),{children:[i&&n(P,{icon:i}),f?n(d.Slottable,{children:g}):n("span",{"data-slot":"tag-text",className:"min-w-0 truncate",children:g})]}))});export{S as Tag,k as tagVariants};
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  "use client";
3
- "use strict";var r=require("react/jsx-runtime"),s=require("react"),K=require("@medway-ui/icons"),G=require("./Button.js"),Oe=require("./Checkbox.js"),Re=require("./ConfirmDeleteButton.js"),M=require("./Input.js"),_=require("./Popover.js"),ce=require("./Separator.js"),ue=require("./Tag.js"),Ae=require("../hooks/use-id.js"),D=require("../lib/utils.js"),Ve=Object.defineProperty,de=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,me=(a,n,l)=>n in a?Ve(a,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[n]=l,ge=(a,n)=>{for(var l in n||(n={}))Le.call(n,l)&&me(a,l,n[l]);if(de)for(var l of de(n))Fe.call(n,l)&&me(a,l,n[l]);return a};const fe=Object.freeze(["regular","emphasis","success","warning","error","gray","success-soft","warning-soft","error-soft","gray-soft","cm","cir","go","ped","prev","ia"]),Ke={regular:"Azul-marinho",emphasis:"Verde-\xE1gua",gray:"Cinza",success:"Verde",warning:"Amarelo",error:"Vermelho",cm:"Cl\xEDnica m\xE9dica",cir:"Cirurgia",go:"Ginecologia e obstetr\xEDcia",ped:"Pediatria",prev:"Preventiva",ia:"IA"},Ge={soft:"suave",basic:"sem fundo"};function Me(a){var n,l;const[f,m]=a.split("-"),d=(n=Ke[f])!=null?n:f;return m?`${d} ${(l=Ge[m])!=null?l:m}`:d}const _e={trigger:"Adicionar tag",searchPlaceholder:"Buscar...",createPlaceholder:"Criar nova tag...",create:"Criar",loading:"Carregando...",empty:"Nenhuma tag criada ainda.",noResults:"Nenhuma tag encontrada.",confirmDelete:"Confirmar",cancelDelete:"Cancelar exclus\xE3o",newTagColor:"Cor da nova tag",renameTag:a=>`Renomear tag ${a}`,changeTagColor:a=>`Trocar cor da tag ${a}`,tagColor:a=>`Cor da tag ${a}`,deleteTag:a=>`Excluir tag ${a}`,confirmDeleteTag:a=>`Confirmar exclus\xE3o da tag ${a}`,variantName:Me},he=a=>a.normalize("NFD").replace(/[̀-ͯ]/g,"").trim().toLowerCase();async function Q(a){try{return{ok:!0,value:await a()}}catch(n){return{ok:!1}}}const pe=a=>a.key==="Enter"&&!a.nativeEvent.isComposing,X=a=>{const n=document.getElementById(a);return!!(n&&n.contains(document.activeElement))};function ve({id:a,value:n,variants:l,onChange:f,label:m,variantName:d,busy:h=!1}){return r.jsx("div",{id:a,role:"group","aria-label":m,"aria-busy":h||void 0,"data-slot":"tag-picker-swatches",className:"grid w-full grid-cols-8 gap-2 px-2 py-2",children:l.map(g=>r.jsx("button",{type:"button",title:d(g),"aria-label":d(g),"aria-pressed":n===g,"aria-disabled":h||void 0,onClick:()=>{h||f(g)},className:D.cn(ue.tagVariants({variant:g}),"relative size-5 shrink-0 cursor-pointer overflow-visible rounded-full border p-0 outline-none after:absolute after:-inset-0.5 after:rounded-full focus-visible:ring-[3px] focus-visible:ring-state-focus aria-disabled:cursor-default aria-disabled:opacity-50",n===g&&"ring-2 ring-primary-foreground ring-offset-1 ring-offset-surface-card focus-visible:ring-2")},g))})}function Qe({tags:a,selectedIds:n,onToggle:l,onCreate:f,onRename:m,onChangeVariant:d,onDelete:h,variants:g=fe,defaultVariant:I="gray-soft",loading:xe=!1,disabled:be=!1,children:Y,align:ye="start",contentClassName:Ce,labels:je,open:z,defaultOpen:Z,onOpenChange:U,modal:we=!1}){const i=ge(ge({},_e),je),y=Ae.useId(),c={search:`${y}-search`,checkbox:e=>`${y}-${e}`,renameButton:e=>`${y}-${e}-rename`,renameInput:e=>`${y}-${e}-rename-input`,colorButton:e=>`${y}-${e}-color`,swatches:e=>`${y}-${e}-swatches`},[ke,Ne]=s.useState(Z!=null?Z:!1),k=z!=null?z:ke,[B,W]=s.useState(""),[N,p]=s.useState(null),[H,v]=s.useState(null),[E,q]=s.useState(null),[J,P]=s.useState(""),[Te,De]=s.useState(()=>new Set),[O,ee]=s.useState(""),[ae,re]=s.useState(I),[S,te]=s.useState(!1),x=s.useRef(null),C=s.useRef(new Set),R=s.useRef(!1),A=s.useRef(null);s.useEffect(()=>{var e;const t=A.current;if(!t)return;A.current=null;const o=document.activeElement;(!o||o===document.body)&&((e=document.getElementById(t))==null||e.focus())});const $=e=>{A.current=e},[Ee,Pe]=s.useState(k);Ee!==k&&(Pe(k),k||(W(""),v(null),p(null),q(null),P(""),x.current=null));const ne=s.useMemo(()=>new Set(n),[n]),ie=s.useMemo(()=>{const e=he(B);return e?a.filter(t=>he(t.name).includes(e)):a},[a,B]),V=e=>{var t;return(t=e.variant)!=null?t:I},j=(e,t)=>{t?C.current.add(e):C.current.delete(e),De(new Set(C.current))},Se=e=>{v(null),p(null),q(e.id),x.current=e.id,P(e.name)},$e=()=>{q(null),x.current=null,P("")},L=(e,t)=>{X(c.renameInput(e))&&$(t),$e()},F=async e=>{if(!m||x.current!==e.id||C.current.has(e.id))return;const t=J.trim();if(!t||t===e.name){L(e.id,c.checkbox(e.id));return}j(e.id,!0);const o=await Q(()=>m(e,t));j(e.id,!1),o.ok&&x.current===e.id&&L(e.id,c.checkbox(e.id))},Ie=async(e,t)=>{if(!d||C.current.has(e.id))return;const o=()=>{X(c.swatches(e.id))&&$(c.colorButton(e.id)),p(b=>b===e.id?null:b)};if(t===V(e)){o();return}j(e.id,!0);const T=await Q(()=>d(e,t));j(e.id,!1),T.ok&&o()},ze=async e=>{if(!(!h||C.current.has(e.id))){j(e.id,!0);try{await h(e)}finally{j(e.id,!1)}$(c.search)}},le=async()=>{const e=O.trim();if(!f||!e||R.current)return;R.current=!0,te(!0);const t=await Q(()=>f({name:e,variant:ae}));if(R.current=!1,te(!1),!t.ok)return;const o=t.value;o&&!ne.has(o.id)&&l(o.id,!0),ee(""),re(I)},Be=e=>{if(!e&&x.current){const t=a.find(o=>o.id===x.current);t&&F(t)}z===void 0&&Ne(e),U==null||U(e)},qe=!!(m||d||h);return r.jsxs(_.Popover,{open:k,onOpenChange:Be,modal:we,children:[r.jsx(_.PopoverTrigger,{asChild:!0,children:Y!=null?Y:r.jsx(G.Button,{type:"button",variant:"outlined",size:"sm",disabled:be,"data-slot":"tag-picker-trigger",className:"border-dashed",iconLeft:r.jsx(K.AddPlus,{"aria-hidden":"true"}),children:i.trigger})}),r.jsxs(_.PopoverContent,{align:ye,"data-slot":"tag-picker-content",onEscapeKeyDown:e=>{E?(e.preventDefault(),L(E,c.renameButton(E))):(H||N)&&(e.preventDefault(),N&&X(c.swatches(N))&&$(c.colorButton(N)),v(null),p(null))},className:D.cn("w-[300px] bg-surface-elevated p-3 pb-2",Ce),children:[r.jsx(M.Input,{id:c.search,size:"md",value:B,onChange:e=>{W(e.target.value),v(null),p(null)},placeholder:i.searchPlaceholder,"aria-label":i.searchPlaceholder,iconLeft:r.jsx(K.SearchMagnifyingGlass,{"aria-hidden":"true"}),className:"h-9 max-h-9 text-sm"}),r.jsx(ce.Separator,{className:"my-2"}),r.jsx("div",{"data-slot":"tag-picker-list",className:"max-h-56 overflow-y-auto",children:xe?r.jsx("span",{className:"block px-2 py-1.5 text-sm text-content-paragraph",children:i.loading}):a.length===0?r.jsx("span",{className:"block px-2 py-1.5 text-sm text-content-paragraph",children:i.empty}):ie.length===0?r.jsx("span",{className:"block px-2 py-1.5 text-sm text-content-paragraph",children:i.noResults}):r.jsx("ul",{className:"flex flex-col gap-1",children:ie.map(e=>{const t=ne.has(e.id),o=E===e.id,T=H===e.id,b=N===e.id,w=Te.has(e.id),se=qe&&!e.locked&&!o;return r.jsxs("li",{className:"group","data-slot":"tag-picker-item",children:[r.jsxs("div",{className:D.cn("flex items-center gap-2 rounded-md px-1.5 py-1.5 transition-colors hover:bg-state-focus",t&&"bg-state-focus"),children:[r.jsx(Oe.Checkbox,{id:c.checkbox(e.id),checked:t,onCheckedChange:u=>l(e.id,u===!0),"aria-label":o?e.name:void 0,size:"md"}),o?r.jsx(M.Input,{id:c.renameInput(e.id),autoFocus:!0,size:"md",value:J,onChange:u=>P(u.target.value),onKeyDown:u=>{pe(u)&&(u.preventDefault(),F(e))},onBlur:()=>void F(e),readOnly:w,"aria-busy":w||void 0,"aria-label":i.renameTag(e.name),className:"h-7 max-h-7 flex-1 text-sm"}):r.jsx("label",{htmlFor:c.checkbox(e.id),className:"min-w-0 flex-1 cursor-pointer truncate text-sm font-semibold text-content-title",children:e.name}),se&&r.jsxs("div",{className:D.cn("flex shrink-0 items-center gap-1.5 opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 [@media(hover:none)]:opacity-100",(T||b)&&"opacity-100"),children:[m&&r.jsx(G.Button,{id:c.renameButton(e.id),type:"button",variant:"regular-basic",size:"sm",title:i.renameTag(e.name),"aria-label":i.renameTag(e.name),disabled:w,onClick:()=>Se(e),iconLeft:r.jsx(K.EditPencil,{size:14,"aria-hidden":"true"})}),d&&r.jsx("button",{id:c.colorButton(e.id),type:"button",title:i.changeTagColor(e.name),"aria-label":i.changeTagColor(e.name),"aria-expanded":b,disabled:w&&!b,onClick:()=>{v(null),p(u=>u===e.id?null:e.id)},className:D.cn(ue.tagVariants({variant:V(e)}),"relative size-4 shrink-0 cursor-pointer overflow-visible rounded-full border p-0 outline-none after:absolute after:-inset-1 after:rounded-full focus-visible:ring-[3px] focus-visible:ring-state-focus")}),h&&r.jsx(Re.ConfirmDeleteButton,{label:i.deleteTag(e.name),confirmLabel:i.confirmDelete,confirmAriaLabel:i.confirmDeleteTag(e.name),cancelLabel:i.cancelDelete,confirming:T,onConfirmingChange:u=>{u?(p(null),v(e.id)):v(oe=>oe===e.id?null:oe)},disabled:w&&!T,onConfirm:()=>ze(e)})]})]}),b&&se&&d&&r.jsx(ve,{id:c.swatches(e.id),label:i.tagColor(e.name),value:V(e),variants:g,variantName:i.variantName,busy:w,onChange:u=>void Ie(e,u)})]},e.id)})})}),f&&r.jsxs(r.Fragment,{children:[r.jsx(ce.Separator,{className:"my-2"}),r.jsxs("div",{className:"flex flex-col gap-2","data-slot":"tag-picker-create",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(M.Input,{size:"md",value:O,onChange:e=>ee(e.target.value),onKeyDown:e=>{pe(e)&&(e.preventDefault(),le())},placeholder:i.createPlaceholder,"aria-label":i.createPlaceholder,readOnly:S,"aria-busy":S||void 0,className:"h-9 max-h-9 flex-1 text-sm"}),r.jsx(G.Button,{type:"button",size:"sm",className:"shrink-0",disabled:!O.trim(),loading:S,onClick:()=>void le(),children:i.create})]}),r.jsx(ve,{label:i.newTagColor,value:ae,variants:g,variantName:i.variantName,busy:S,onChange:re})]})]})]})]})}exports.TAG_PICKER_PALETTE=fe,exports.TagPicker=Qe;
3
+ "use strict";var r=require("react/jsx-runtime"),s=require("react"),K=require("@medway-ui/icons"),G=require("./Button.js"),qe=require("./Checkbox.js"),Ae=require("./ConfirmDeleteButton.js"),M=require("./Input.js"),_=require("./Popover.js"),ce=require("./Separator.js"),ue=require("./Tag.js"),Re=require("../hooks/use-id.js"),w=require("../lib/utils.js"),Ve=Object.defineProperty,de=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,me=(a,n,l)=>n in a?Ve(a,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[n]=l,ge=(a,n)=>{for(var l in n||(n={}))Le.call(n,l)&&me(a,l,n[l]);if(de)for(var l of de(n))Fe.call(n,l)&&me(a,l,n[l]);return a};const fe=Object.freeze(["regular","emphasis","success","warning","error","gray","success-soft","warning-soft","error-soft","gray-soft","cm","cir","go","ped","prev","ia"]),Ke={regular:"Azul-marinho",emphasis:"Verde-\xE1gua",gray:"Cinza",success:"Verde",warning:"Amarelo",error:"Vermelho",cm:"Cl\xEDnica m\xE9dica",cir:"Cirurgia",go:"Ginecologia e obstetr\xEDcia",ped:"Pediatria",prev:"Preventiva",ia:"IA"},Ge={soft:"suave",basic:"sem fundo"};function Me(a){var n,l;const[f,m]=a.split("-"),d=(n=Ke[f])!=null?n:f;return m?`${d} ${(l=Ge[m])!=null?l:m}`:d}const _e={trigger:"Adicionar tag",searchPlaceholder:"Buscar...",createPlaceholder:"Criar nova tag...",create:"Criar",loading:"Carregando...",empty:"Nenhuma tag criada ainda.",noResults:"Nenhuma tag encontrada.",confirmDelete:"Confirmar",cancelDelete:"Cancelar exclus\xE3o",newTagColor:"Cor da nova tag",renameTag:a=>`Renomear tag ${a}`,changeTagColor:a=>`Trocar cor da tag ${a}`,tagColor:a=>`Cor da tag ${a}`,deleteTag:a=>`Excluir tag ${a}`,confirmDeleteTag:a=>`Confirmar exclus\xE3o da tag ${a}`,variantName:Me},he=w.normalizeSearchText;async function X(a){try{return{ok:!0,value:await a()}}catch(n){return{ok:!1}}}const pe=a=>a.key==="Enter"&&!a.nativeEvent.isComposing,Y=a=>{const n=document.getElementById(a);return!!(n&&n.contains(document.activeElement))};function ve({id:a,value:n,variants:l,onChange:f,label:m,variantName:d,busy:h=!1}){return r.jsx("div",{id:a,role:"group","aria-label":m,"aria-busy":h||void 0,"data-slot":"tag-picker-swatches",className:"grid w-full grid-cols-8 gap-2 px-2 py-2",children:l.map(g=>r.jsx("button",{type:"button",title:d(g),"aria-label":d(g),"aria-pressed":n===g,"aria-disabled":h||void 0,onClick:()=>{h||f(g)},className:w.cn(ue.tagVariants({variant:g}),"relative size-5 shrink-0 cursor-pointer overflow-visible rounded-full border p-0 outline-none after:absolute after:-inset-0.5 after:rounded-full focus-visible:ring-[3px] focus-visible:ring-state-focus aria-disabled:cursor-default aria-disabled:opacity-50",n===g&&"ring-2 ring-primary-foreground ring-offset-1 ring-offset-surface-card focus-visible:ring-2")},g))})}function Xe({tags:a,selectedIds:n,onToggle:l,onCreate:f,onRename:m,onChangeVariant:d,onDelete:h,variants:g=fe,defaultVariant:I="gray-soft",loading:xe=!1,disabled:be=!1,children:Z,align:ye="start",contentClassName:Ce,labels:je,open:B,defaultOpen:Q,onOpenChange:U,modal:ke=!1}){const i=ge(ge({},_e),je),y=Re.useId(),c={search:`${y}-search`,checkbox:e=>`${y}-${e}`,renameButton:e=>`${y}-${e}-rename`,renameInput:e=>`${y}-${e}-rename-input`,colorButton:e=>`${y}-${e}-color`,swatches:e=>`${y}-${e}-swatches`},[we,Ne]=s.useState(Q!=null?Q:!1),N=B!=null?B:we,[z,W]=s.useState(""),[T,p]=s.useState(null),[H,v]=s.useState(null),[E,O]=s.useState(null),[J,P]=s.useState(""),[Te,Se]=s.useState(()=>new Set),[q,ee]=s.useState(""),[ae,re]=s.useState(I),[D,te]=s.useState(!1),x=s.useRef(null),C=s.useRef(new Set),A=s.useRef(!1),R=s.useRef(null);s.useEffect(()=>{var e;const t=R.current;if(!t)return;R.current=null;const o=document.activeElement;(!o||o===document.body)&&((e=document.getElementById(t))==null||e.focus())});const $=e=>{R.current=e},[Ee,Pe]=s.useState(N);Ee!==N&&(Pe(N),N||(W(""),v(null),p(null),O(null),P(""),x.current=null));const ne=s.useMemo(()=>new Set(n),[n]),ie=s.useMemo(()=>{const e=he(z);return e?a.filter(t=>he(t.name).includes(e)):a},[a,z]),V=e=>{var t;return(t=e.variant)!=null?t:I},j=(e,t)=>{t?C.current.add(e):C.current.delete(e),Se(new Set(C.current))},De=e=>{v(null),p(null),O(e.id),x.current=e.id,P(e.name)},$e=()=>{O(null),x.current=null,P("")},L=(e,t)=>{Y(c.renameInput(e))&&$(t),$e()},F=async e=>{if(!m||x.current!==e.id||C.current.has(e.id))return;const t=J.trim();if(!t||t===e.name){L(e.id,c.checkbox(e.id));return}j(e.id,!0);const o=await X(()=>m(e,t));j(e.id,!1),o.ok&&x.current===e.id&&L(e.id,c.checkbox(e.id))},Ie=async(e,t)=>{if(!d||C.current.has(e.id))return;const o=()=>{Y(c.swatches(e.id))&&$(c.colorButton(e.id)),p(b=>b===e.id?null:b)};if(t===V(e)){o();return}j(e.id,!0);const S=await X(()=>d(e,t));j(e.id,!1),S.ok&&o()},Be=async e=>{if(!(!h||C.current.has(e.id))){j(e.id,!0);try{await h(e)}finally{j(e.id,!1)}$(c.search)}},le=async()=>{const e=q.trim();if(!f||!e||A.current)return;A.current=!0,te(!0);const t=await X(()=>f({name:e,variant:ae}));if(A.current=!1,te(!1),!t.ok)return;const o=t.value;o&&!ne.has(o.id)&&l(o.id,!0),ee(""),re(I)},ze=e=>{if(!e&&x.current){const t=a.find(o=>o.id===x.current);t&&F(t)}B===void 0&&Ne(e),U==null||U(e)},Oe=!!(m||d||h);return r.jsxs(_.Popover,{open:N,onOpenChange:ze,modal:ke,children:[r.jsx(_.PopoverTrigger,{asChild:!0,children:Z!=null?Z:r.jsx(G.Button,{type:"button",variant:"outlined",size:"sm",disabled:be,"data-slot":"tag-picker-trigger",className:"border-dashed",iconLeft:r.jsx(K.AddPlus,{"aria-hidden":"true"}),children:i.trigger})}),r.jsxs(_.PopoverContent,{align:ye,sideOffset:4,"data-slot":"tag-picker-content",onEscapeKeyDown:e=>{E?(e.preventDefault(),L(E,c.renameButton(E))):(H||T)&&(e.preventDefault(),T&&Y(c.swatches(T))&&$(c.colorButton(T)),v(null),p(null))},className:w.cn("w-[300px] border border-gray-stroke-muted bg-surface-elevated p-3 pb-2",Ce),children:[r.jsx(M.Input,{id:c.search,size:"md",value:z,onChange:e=>{W(e.target.value),v(null),p(null)},placeholder:i.searchPlaceholder,"aria-label":i.searchPlaceholder,iconLeft:r.jsx(K.SearchMagnifyingGlass,{"aria-hidden":"true"}),className:"h-9 max-h-9 text-sm"}),r.jsx(ce.Separator,{className:"my-2"}),r.jsx("div",{"data-slot":"tag-picker-list",className:"max-h-56 overflow-y-auto",children:xe?r.jsx("span",{className:"block px-2 py-1.5 text-sm text-content-paragraph",children:i.loading}):a.length===0?r.jsx("span",{className:"block px-2 py-1.5 text-sm text-content-paragraph",children:i.empty}):ie.length===0?r.jsx("span",{className:"block px-2 py-1.5 text-sm text-content-paragraph",children:i.noResults}):r.jsx("ul",{className:"flex flex-col gap-1",children:ie.map(e=>{const t=ne.has(e.id),o=E===e.id,S=H===e.id,b=T===e.id,k=Te.has(e.id),se=Oe&&!e.locked&&!o;return r.jsxs("li",{className:"group","data-slot":"tag-picker-item",children:[r.jsxs("div",{className:w.cn("flex items-center gap-2 rounded-md px-1.5 py-1.5 transition-colors hover:bg-state-focus",t&&"bg-state-focus"),children:[r.jsx(qe.Checkbox,{id:c.checkbox(e.id),checked:t,onCheckedChange:u=>l(e.id,u===!0),"aria-label":o?e.name:void 0,size:"md"}),o?r.jsx(M.Input,{id:c.renameInput(e.id),autoFocus:!0,size:"md",value:J,onChange:u=>P(u.target.value),onKeyDown:u=>{pe(u)&&(u.preventDefault(),F(e))},onBlur:()=>void F(e),readOnly:k,"aria-busy":k||void 0,"aria-label":i.renameTag(e.name),className:"h-7 max-h-7 flex-1 text-sm"}):r.jsx("label",{htmlFor:c.checkbox(e.id),className:"min-w-0 flex-1 cursor-pointer truncate text-sm font-semibold text-content-title",children:e.name}),se&&r.jsxs("div",{className:w.cn("flex shrink-0 items-center gap-1.5 opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 [@media(hover:none)]:opacity-100",(S||b)&&"opacity-100"),children:[m&&r.jsx(G.Button,{id:c.renameButton(e.id),type:"button",variant:"regular-basic",size:"sm",title:i.renameTag(e.name),"aria-label":i.renameTag(e.name),disabled:k,onClick:()=>De(e),iconLeft:r.jsx(K.EditPencil,{size:14,"aria-hidden":"true"})}),d&&r.jsx("button",{id:c.colorButton(e.id),type:"button",title:i.changeTagColor(e.name),"aria-label":i.changeTagColor(e.name),"aria-expanded":b,disabled:k&&!b,onClick:()=>{v(null),p(u=>u===e.id?null:e.id)},className:w.cn(ue.tagVariants({variant:V(e)}),"relative size-4 shrink-0 cursor-pointer overflow-visible rounded-full border p-0 outline-none after:absolute after:-inset-1 after:rounded-full focus-visible:ring-[3px] focus-visible:ring-state-focus")}),h&&r.jsx(Ae.ConfirmDeleteButton,{label:i.deleteTag(e.name),confirmLabel:i.confirmDelete,confirmAriaLabel:i.confirmDeleteTag(e.name),cancelLabel:i.cancelDelete,confirming:S,onConfirmingChange:u=>{u?(p(null),v(e.id)):v(oe=>oe===e.id?null:oe)},disabled:k&&!S,onConfirm:()=>Be(e)})]})]}),b&&se&&d&&r.jsx(ve,{id:c.swatches(e.id),label:i.tagColor(e.name),value:V(e),variants:g,variantName:i.variantName,busy:k,onChange:u=>void Ie(e,u)})]},e.id)})})}),f&&r.jsxs(r.Fragment,{children:[r.jsx(ce.Separator,{className:"my-2"}),r.jsxs("div",{className:"flex flex-col gap-2","data-slot":"tag-picker-create",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(M.Input,{size:"md",value:q,onChange:e=>ee(e.target.value),onKeyDown:e=>{pe(e)&&(e.preventDefault(),le())},placeholder:i.createPlaceholder,"aria-label":i.createPlaceholder,readOnly:D,"aria-busy":D||void 0,className:"h-9 max-h-9 flex-1 text-sm"}),r.jsx(G.Button,{type:"button",size:"sm",className:"shrink-0",disabled:!q.trim(),loading:D,onClick:()=>void le(),children:i.create})]}),r.jsx(ve,{label:i.newTagColor,value:ae,variants:g,variantName:i.variantName,busy:D,onChange:re})]})]})]})]})}exports.TAG_PICKER_PALETTE=fe,exports.TagPicker=Xe;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  "use client";
3
- import{jsxs as h,jsx as t,Fragment as Le}from"react/jsx-runtime";import{useState as d,useRef as O,useEffect as Re,useMemo as ce}from"react";import{AddPlus as Se,SearchMagnifyingGlass as Fe,EditPencil as Ke}from"@medway-ui/icons";import{Button as _}from"./Button.mjs";import{Checkbox as Ge}from"./Checkbox.mjs";import{ConfirmDeleteButton as We}from"./ConfirmDeleteButton.mjs";import{Input as M}from"./Input.mjs";import{Popover as _e,PopoverTrigger as Me,PopoverContent as Qe}from"./Popover.mjs";import{Separator as ue}from"./Separator.mjs";import{tagVariants as de}from"./Tag.mjs";import{useId as Xe}from"../hooks/use-id.mjs";import{cn as D}from"../lib/utils.mjs";var Ye=Object.defineProperty,me=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,fe=(a,n,i)=>n in a?Ye(a,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[n]=i,ge=(a,n)=>{for(var i in n||(n={}))Ze.call(n,i)&&fe(a,i,n[i]);if(me)for(var i of me(n))qe.call(n,i)&&fe(a,i,n[i]);return a};const pe=Object.freeze(["regular","emphasis","success","warning","error","gray","success-soft","warning-soft","error-soft","gray-soft","cm","cir","go","ped","prev","ia"]),Ue={regular:"Azul-marinho",emphasis:"Verde-\xE1gua",gray:"Cinza",success:"Verde",warning:"Amarelo",error:"Vermelho",cm:"Cl\xEDnica m\xE9dica",cir:"Cirurgia",go:"Ginecologia e obstetr\xEDcia",ped:"Pediatria",prev:"Preventiva",ia:"IA"},He={soft:"suave",basic:"sem fundo"};function Je(a){var n,i;const[g,m]=a.split("-"),u=(n=Ue[g])!=null?n:g;return m?`${u} ${(i=He[m])!=null?i:m}`:u}const ea={trigger:"Adicionar tag",searchPlaceholder:"Buscar...",createPlaceholder:"Criar nova tag...",create:"Criar",loading:"Carregando...",empty:"Nenhuma tag criada ainda.",noResults:"Nenhuma tag encontrada.",confirmDelete:"Confirmar",cancelDelete:"Cancelar exclus\xE3o",newTagColor:"Cor da nova tag",renameTag:a=>`Renomear tag ${a}`,changeTagColor:a=>`Trocar cor da tag ${a}`,tagColor:a=>`Cor da tag ${a}`,deleteTag:a=>`Excluir tag ${a}`,confirmDeleteTag:a=>`Confirmar exclus\xE3o da tag ${a}`,variantName:Je},he=a=>a.normalize("NFD").replace(/[̀-ͯ]/g,"").trim().toLowerCase();async function Q(a){try{return{ok:!0,value:await a()}}catch(n){return{ok:!1}}}const ve=a=>a.key==="Enter"&&!a.nativeEvent.isComposing,X=a=>{const n=document.getElementById(a);return!!(n&&n.contains(document.activeElement))};function be({id:a,value:n,variants:i,onChange:g,label:m,variantName:u,busy:p=!1}){return t("div",{id:a,role:"group","aria-label":m,"aria-busy":p||void 0,"data-slot":"tag-picker-swatches",className:"grid w-full grid-cols-8 gap-2 px-2 py-2",children:i.map(f=>t("button",{type:"button",title:u(f),"aria-label":u(f),"aria-pressed":n===f,"aria-disabled":p||void 0,onClick:()=>{p||g(f)},className:D(de({variant:f}),"relative size-5 shrink-0 cursor-pointer overflow-visible rounded-full border p-0 outline-none after:absolute after:-inset-0.5 after:rounded-full focus-visible:ring-[3px] focus-visible:ring-state-focus aria-disabled:cursor-default aria-disabled:opacity-50",n===f&&"ring-2 ring-primary-foreground ring-offset-1 ring-offset-surface-card focus-visible:ring-2")},f))})}function aa({tags:a,selectedIds:n,onToggle:i,onCreate:g,onRename:m,onChangeVariant:u,onDelete:p,variants:f=pe,defaultVariant:A="gray-soft",loading:ye=!1,disabled:xe=!1,children:Y,align:Ce="start",contentClassName:we,labels:ke,open:V,defaultOpen:Z,onOpenChange:q,modal:Ne=!1}){const l=ge(ge({},ea),ke),C=Xe(),s={search:`${C}-search`,checkbox:e=>`${C}-${e}`,renameButton:e=>`${C}-${e}-rename`,renameInput:e=>`${C}-${e}-rename-input`,colorButton:e=>`${C}-${e}-color`,swatches:e=>`${C}-${e}-swatches`},[$e,Te]=d(Z!=null?Z:!1),$=V!=null?V:$e,[j,U]=d(""),[T,v]=d(null),[H,b]=d(null),[P,L]=d(null),[J,z]=d(""),[Ee,De]=d(()=>new Set),[R,ee]=d(""),[ae,re]=d(A),[I,te]=d(!1),y=O(null),w=O(new Set),S=O(!1),F=O(null);Re(()=>{var e;const r=F.current;if(!r)return;F.current=null;const o=document.activeElement;(!o||o===document.body)&&((e=document.getElementById(r))==null||e.focus())});const B=e=>{F.current=e},[Pe,ze]=d($);Pe!==$&&(ze($),$||(U(""),b(null),v(null),L(null),z(""),y.current=null));const ne=ce(()=>new Set(n),[n]),le=ce(()=>{const e=he(j);return e?a.filter(r=>he(r.name).includes(e)):a},[a,j]),K=e=>{var r;return(r=e.variant)!=null?r:A},k=(e,r)=>{r?w.current.add(e):w.current.delete(e),De(new Set(w.current))},Ie=e=>{b(null),v(null),L(e.id),y.current=e.id,z(e.name)},Be=()=>{L(null),y.current=null,z("")},G=(e,r)=>{X(s.renameInput(e))&&B(r),Be()},W=async e=>{if(!m||y.current!==e.id||w.current.has(e.id))return;const r=J.trim();if(!r||r===e.name){G(e.id,s.checkbox(e.id));return}k(e.id,!0);const o=await Q(()=>m(e,r));k(e.id,!1),o.ok&&y.current===e.id&&G(e.id,s.checkbox(e.id))},Oe=async(e,r)=>{if(!u||w.current.has(e.id))return;const o=()=>{X(s.swatches(e.id))&&B(s.colorButton(e.id)),v(x=>x===e.id?null:x)};if(r===K(e)){o();return}k(e.id,!0);const E=await Q(()=>u(e,r));k(e.id,!1),E.ok&&o()},Ae=async e=>{if(!(!p||w.current.has(e.id))){k(e.id,!0);try{await p(e)}finally{k(e.id,!1)}B(s.search)}},ie=async()=>{const e=R.trim();if(!g||!e||S.current)return;S.current=!0,te(!0);const r=await Q(()=>g({name:e,variant:ae}));if(S.current=!1,te(!1),!r.ok)return;const o=r.value;o&&!ne.has(o.id)&&i(o.id,!0),ee(""),re(A)},Ve=e=>{if(!e&&y.current){const r=a.find(o=>o.id===y.current);r&&W(r)}V===void 0&&Te(e),q==null||q(e)},je=!!(m||u||p);return h(_e,{open:$,onOpenChange:Ve,modal:Ne,children:[t(Me,{asChild:!0,children:Y!=null?Y:t(_,{type:"button",variant:"outlined",size:"sm",disabled:xe,"data-slot":"tag-picker-trigger",className:"border-dashed",iconLeft:t(Se,{"aria-hidden":"true"}),children:l.trigger})}),h(Qe,{align:Ce,"data-slot":"tag-picker-content",onEscapeKeyDown:e=>{P?(e.preventDefault(),G(P,s.renameButton(P))):(H||T)&&(e.preventDefault(),T&&X(s.swatches(T))&&B(s.colorButton(T)),b(null),v(null))},className:D("w-[300px] bg-surface-elevated p-3 pb-2",we),children:[t(M,{id:s.search,size:"md",value:j,onChange:e=>{U(e.target.value),b(null),v(null)},placeholder:l.searchPlaceholder,"aria-label":l.searchPlaceholder,iconLeft:t(Fe,{"aria-hidden":"true"}),className:"h-9 max-h-9 text-sm"}),t(ue,{className:"my-2"}),t("div",{"data-slot":"tag-picker-list",className:"max-h-56 overflow-y-auto",children:ye?t("span",{className:"block px-2 py-1.5 text-sm text-content-paragraph",children:l.loading}):a.length===0?t("span",{className:"block px-2 py-1.5 text-sm text-content-paragraph",children:l.empty}):le.length===0?t("span",{className:"block px-2 py-1.5 text-sm text-content-paragraph",children:l.noResults}):t("ul",{className:"flex flex-col gap-1",children:le.map(e=>{const r=ne.has(e.id),o=P===e.id,E=H===e.id,x=T===e.id,N=Ee.has(e.id),oe=je&&!e.locked&&!o;return h("li",{className:"group","data-slot":"tag-picker-item",children:[h("div",{className:D("flex items-center gap-2 rounded-md px-1.5 py-1.5 transition-colors hover:bg-state-focus",r&&"bg-state-focus"),children:[t(Ge,{id:s.checkbox(e.id),checked:r,onCheckedChange:c=>i(e.id,c===!0),"aria-label":o?e.name:void 0,size:"md"}),o?t(M,{id:s.renameInput(e.id),autoFocus:!0,size:"md",value:J,onChange:c=>z(c.target.value),onKeyDown:c=>{ve(c)&&(c.preventDefault(),W(e))},onBlur:()=>void W(e),readOnly:N,"aria-busy":N||void 0,"aria-label":l.renameTag(e.name),className:"h-7 max-h-7 flex-1 text-sm"}):t("label",{htmlFor:s.checkbox(e.id),className:"min-w-0 flex-1 cursor-pointer truncate text-sm font-semibold text-content-title",children:e.name}),oe&&h("div",{className:D("flex shrink-0 items-center gap-1.5 opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 [@media(hover:none)]:opacity-100",(E||x)&&"opacity-100"),children:[m&&t(_,{id:s.renameButton(e.id),type:"button",variant:"regular-basic",size:"sm",title:l.renameTag(e.name),"aria-label":l.renameTag(e.name),disabled:N,onClick:()=>Ie(e),iconLeft:t(Ke,{size:14,"aria-hidden":"true"})}),u&&t("button",{id:s.colorButton(e.id),type:"button",title:l.changeTagColor(e.name),"aria-label":l.changeTagColor(e.name),"aria-expanded":x,disabled:N&&!x,onClick:()=>{b(null),v(c=>c===e.id?null:e.id)},className:D(de({variant:K(e)}),"relative size-4 shrink-0 cursor-pointer overflow-visible rounded-full border p-0 outline-none after:absolute after:-inset-1 after:rounded-full focus-visible:ring-[3px] focus-visible:ring-state-focus")}),p&&t(We,{label:l.deleteTag(e.name),confirmLabel:l.confirmDelete,confirmAriaLabel:l.confirmDeleteTag(e.name),cancelLabel:l.cancelDelete,confirming:E,onConfirmingChange:c=>{c?(v(null),b(e.id)):b(se=>se===e.id?null:se)},disabled:N&&!E,onConfirm:()=>Ae(e)})]})]}),x&&oe&&u&&t(be,{id:s.swatches(e.id),label:l.tagColor(e.name),value:K(e),variants:f,variantName:l.variantName,busy:N,onChange:c=>void Oe(e,c)})]},e.id)})})}),g&&h(Le,{children:[t(ue,{className:"my-2"}),h("div",{className:"flex flex-col gap-2","data-slot":"tag-picker-create",children:[h("div",{className:"flex items-center gap-2",children:[t(M,{size:"md",value:R,onChange:e=>ee(e.target.value),onKeyDown:e=>{ve(e)&&(e.preventDefault(),ie())},placeholder:l.createPlaceholder,"aria-label":l.createPlaceholder,readOnly:I,"aria-busy":I||void 0,className:"h-9 max-h-9 flex-1 text-sm"}),t(_,{type:"button",size:"sm",className:"shrink-0",disabled:!R.trim(),loading:I,onClick:()=>void ie(),children:l.create})]}),t(be,{label:l.newTagColor,value:ae,variants:f,variantName:l.variantName,busy:I,onChange:re})]})]})]})]})}export{pe as TAG_PICKER_PALETTE,aa as TagPicker};
3
+ import{jsxs as h,jsx as t,Fragment as je}from"react/jsx-runtime";import{useState as d,useRef as B,useEffect as Le,useMemo as ce}from"react";import{AddPlus as Fe,SearchMagnifyingGlass as Ke,EditPencil as Re}from"@medway-ui/icons";import{Button as _}from"./Button.mjs";import{Checkbox as Ge}from"./Checkbox.mjs";import{ConfirmDeleteButton as We}from"./ConfirmDeleteButton.mjs";import{Input as M}from"./Input.mjs";import{Popover as _e,PopoverTrigger as Me,PopoverContent as Xe}from"./Popover.mjs";import{Separator as ue}from"./Separator.mjs";import{tagVariants as de}from"./Tag.mjs";import{useId as Ye}from"../hooks/use-id.mjs";import{cn as P,normalizeSearchText as Ze}from"../lib/utils.mjs";var qe=Object.defineProperty,me=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,fe=(a,n,i)=>n in a?qe(a,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[n]=i,ge=(a,n)=>{for(var i in n||(n={}))Qe.call(n,i)&&fe(a,i,n[i]);if(me)for(var i of me(n))Ue.call(n,i)&&fe(a,i,n[i]);return a};const pe=Object.freeze(["regular","emphasis","success","warning","error","gray","success-soft","warning-soft","error-soft","gray-soft","cm","cir","go","ped","prev","ia"]),He={regular:"Azul-marinho",emphasis:"Verde-\xE1gua",gray:"Cinza",success:"Verde",warning:"Amarelo",error:"Vermelho",cm:"Cl\xEDnica m\xE9dica",cir:"Cirurgia",go:"Ginecologia e obstetr\xEDcia",ped:"Pediatria",prev:"Preventiva",ia:"IA"},Je={soft:"suave",basic:"sem fundo"};function ea(a){var n,i;const[g,m]=a.split("-"),u=(n=He[g])!=null?n:g;return m?`${u} ${(i=Je[m])!=null?i:m}`:u}const aa={trigger:"Adicionar tag",searchPlaceholder:"Buscar...",createPlaceholder:"Criar nova tag...",create:"Criar",loading:"Carregando...",empty:"Nenhuma tag criada ainda.",noResults:"Nenhuma tag encontrada.",confirmDelete:"Confirmar",cancelDelete:"Cancelar exclus\xE3o",newTagColor:"Cor da nova tag",renameTag:a=>`Renomear tag ${a}`,changeTagColor:a=>`Trocar cor da tag ${a}`,tagColor:a=>`Cor da tag ${a}`,deleteTag:a=>`Excluir tag ${a}`,confirmDeleteTag:a=>`Confirmar exclus\xE3o da tag ${a}`,variantName:ea},he=Ze;async function X(a){try{return{ok:!0,value:await a()}}catch(n){return{ok:!1}}}const ve=a=>a.key==="Enter"&&!a.nativeEvent.isComposing,Y=a=>{const n=document.getElementById(a);return!!(n&&n.contains(document.activeElement))};function be({id:a,value:n,variants:i,onChange:g,label:m,variantName:u,busy:p=!1}){return t("div",{id:a,role:"group","aria-label":m,"aria-busy":p||void 0,"data-slot":"tag-picker-swatches",className:"grid w-full grid-cols-8 gap-2 px-2 py-2",children:i.map(f=>t("button",{type:"button",title:u(f),"aria-label":u(f),"aria-pressed":n===f,"aria-disabled":p||void 0,onClick:()=>{p||g(f)},className:P(de({variant:f}),"relative size-5 shrink-0 cursor-pointer overflow-visible rounded-full border p-0 outline-none after:absolute after:-inset-0.5 after:rounded-full focus-visible:ring-[3px] focus-visible:ring-state-focus aria-disabled:cursor-default aria-disabled:opacity-50",n===f&&"ring-2 ring-primary-foreground ring-offset-1 ring-offset-surface-card focus-visible:ring-2")},f))})}function ra({tags:a,selectedIds:n,onToggle:i,onCreate:g,onRename:m,onChangeVariant:u,onDelete:p,variants:f=pe,defaultVariant:S="gray-soft",loading:ye=!1,disabled:xe=!1,children:Z,align:Ce="start",contentClassName:ke,labels:we,open:A,defaultOpen:q,onOpenChange:Q,modal:Ne=!1}){const l=ge(ge({},aa),we),C=Ye(),s={search:`${C}-search`,checkbox:e=>`${C}-${e}`,renameButton:e=>`${C}-${e}-rename`,renameInput:e=>`${C}-${e}-rename-input`,colorButton:e=>`${C}-${e}-color`,swatches:e=>`${C}-${e}-swatches`},[$e,Te]=d(q!=null?q:!1),$=A!=null?A:$e,[V,U]=d(""),[T,v]=d(null),[H,b]=d(null),[D,j]=d(null),[J,z]=d(""),[Ee,Pe]=d(()=>new Set),[L,ee]=d(""),[ae,re]=d(S),[O,te]=d(!1),y=B(null),k=B(new Set),F=B(!1),K=B(null);Le(()=>{var e;const r=K.current;if(!r)return;K.current=null;const o=document.activeElement;(!o||o===document.body)&&((e=document.getElementById(r))==null||e.focus())});const I=e=>{K.current=e},[De,ze]=d($);De!==$&&(ze($),$||(U(""),b(null),v(null),j(null),z(""),y.current=null));const ne=ce(()=>new Set(n),[n]),le=ce(()=>{const e=he(V);return e?a.filter(r=>he(r.name).includes(e)):a},[a,V]),R=e=>{var r;return(r=e.variant)!=null?r:S},w=(e,r)=>{r?k.current.add(e):k.current.delete(e),Pe(new Set(k.current))},Oe=e=>{b(null),v(null),j(e.id),y.current=e.id,z(e.name)},Ie=()=>{j(null),y.current=null,z("")},G=(e,r)=>{Y(s.renameInput(e))&&I(r),Ie()},W=async e=>{if(!m||y.current!==e.id||k.current.has(e.id))return;const r=J.trim();if(!r||r===e.name){G(e.id,s.checkbox(e.id));return}w(e.id,!0);const o=await X(()=>m(e,r));w(e.id,!1),o.ok&&y.current===e.id&&G(e.id,s.checkbox(e.id))},Be=async(e,r)=>{if(!u||k.current.has(e.id))return;const o=()=>{Y(s.swatches(e.id))&&I(s.colorButton(e.id)),v(x=>x===e.id?null:x)};if(r===R(e)){o();return}w(e.id,!0);const E=await X(()=>u(e,r));w(e.id,!1),E.ok&&o()},Se=async e=>{if(!(!p||k.current.has(e.id))){w(e.id,!0);try{await p(e)}finally{w(e.id,!1)}I(s.search)}},ie=async()=>{const e=L.trim();if(!g||!e||F.current)return;F.current=!0,te(!0);const r=await X(()=>g({name:e,variant:ae}));if(F.current=!1,te(!1),!r.ok)return;const o=r.value;o&&!ne.has(o.id)&&i(o.id,!0),ee(""),re(S)},Ae=e=>{if(!e&&y.current){const r=a.find(o=>o.id===y.current);r&&W(r)}A===void 0&&Te(e),Q==null||Q(e)},Ve=!!(m||u||p);return h(_e,{open:$,onOpenChange:Ae,modal:Ne,children:[t(Me,{asChild:!0,children:Z!=null?Z:t(_,{type:"button",variant:"outlined",size:"sm",disabled:xe,"data-slot":"tag-picker-trigger",className:"border-dashed",iconLeft:t(Fe,{"aria-hidden":"true"}),children:l.trigger})}),h(Xe,{align:Ce,sideOffset:4,"data-slot":"tag-picker-content",onEscapeKeyDown:e=>{D?(e.preventDefault(),G(D,s.renameButton(D))):(H||T)&&(e.preventDefault(),T&&Y(s.swatches(T))&&I(s.colorButton(T)),b(null),v(null))},className:P("w-[300px] border border-gray-stroke-muted bg-surface-elevated p-3 pb-2",ke),children:[t(M,{id:s.search,size:"md",value:V,onChange:e=>{U(e.target.value),b(null),v(null)},placeholder:l.searchPlaceholder,"aria-label":l.searchPlaceholder,iconLeft:t(Ke,{"aria-hidden":"true"}),className:"h-9 max-h-9 text-sm"}),t(ue,{className:"my-2"}),t("div",{"data-slot":"tag-picker-list",className:"max-h-56 overflow-y-auto",children:ye?t("span",{className:"block px-2 py-1.5 text-sm text-content-paragraph",children:l.loading}):a.length===0?t("span",{className:"block px-2 py-1.5 text-sm text-content-paragraph",children:l.empty}):le.length===0?t("span",{className:"block px-2 py-1.5 text-sm text-content-paragraph",children:l.noResults}):t("ul",{className:"flex flex-col gap-1",children:le.map(e=>{const r=ne.has(e.id),o=D===e.id,E=H===e.id,x=T===e.id,N=Ee.has(e.id),oe=Ve&&!e.locked&&!o;return h("li",{className:"group","data-slot":"tag-picker-item",children:[h("div",{className:P("flex items-center gap-2 rounded-md px-1.5 py-1.5 transition-colors hover:bg-state-focus",r&&"bg-state-focus"),children:[t(Ge,{id:s.checkbox(e.id),checked:r,onCheckedChange:c=>i(e.id,c===!0),"aria-label":o?e.name:void 0,size:"md"}),o?t(M,{id:s.renameInput(e.id),autoFocus:!0,size:"md",value:J,onChange:c=>z(c.target.value),onKeyDown:c=>{ve(c)&&(c.preventDefault(),W(e))},onBlur:()=>void W(e),readOnly:N,"aria-busy":N||void 0,"aria-label":l.renameTag(e.name),className:"h-7 max-h-7 flex-1 text-sm"}):t("label",{htmlFor:s.checkbox(e.id),className:"min-w-0 flex-1 cursor-pointer truncate text-sm font-semibold text-content-title",children:e.name}),oe&&h("div",{className:P("flex shrink-0 items-center gap-1.5 opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 [@media(hover:none)]:opacity-100",(E||x)&&"opacity-100"),children:[m&&t(_,{id:s.renameButton(e.id),type:"button",variant:"regular-basic",size:"sm",title:l.renameTag(e.name),"aria-label":l.renameTag(e.name),disabled:N,onClick:()=>Oe(e),iconLeft:t(Re,{size:14,"aria-hidden":"true"})}),u&&t("button",{id:s.colorButton(e.id),type:"button",title:l.changeTagColor(e.name),"aria-label":l.changeTagColor(e.name),"aria-expanded":x,disabled:N&&!x,onClick:()=>{b(null),v(c=>c===e.id?null:e.id)},className:P(de({variant:R(e)}),"relative size-4 shrink-0 cursor-pointer overflow-visible rounded-full border p-0 outline-none after:absolute after:-inset-1 after:rounded-full focus-visible:ring-[3px] focus-visible:ring-state-focus")}),p&&t(We,{label:l.deleteTag(e.name),confirmLabel:l.confirmDelete,confirmAriaLabel:l.confirmDeleteTag(e.name),cancelLabel:l.cancelDelete,confirming:E,onConfirmingChange:c=>{c?(v(null),b(e.id)):b(se=>se===e.id?null:se)},disabled:N&&!E,onConfirm:()=>Se(e)})]})]}),x&&oe&&u&&t(be,{id:s.swatches(e.id),label:l.tagColor(e.name),value:R(e),variants:f,variantName:l.variantName,busy:N,onChange:c=>void Be(e,c)})]},e.id)})})}),g&&h(je,{children:[t(ue,{className:"my-2"}),h("div",{className:"flex flex-col gap-2","data-slot":"tag-picker-create",children:[h("div",{className:"flex items-center gap-2",children:[t(M,{size:"md",value:L,onChange:e=>ee(e.target.value),onKeyDown:e=>{ve(e)&&(e.preventDefault(),ie())},placeholder:l.createPlaceholder,"aria-label":l.createPlaceholder,readOnly:O,"aria-busy":O||void 0,className:"h-9 max-h-9 flex-1 text-sm"}),t(_,{type:"button",size:"sm",className:"shrink-0",disabled:!L.trim(),loading:O,onClick:()=>void ie(),children:l.create})]}),t(be,{label:l.newTagColor,value:ae,variants:f,variantName:l.variantName,busy:O,onChange:re})]})]})]})]})}export{pe as TAG_PICKER_PALETTE,ra as TagPicker};
package/dist/index.d.ts CHANGED
@@ -21,6 +21,8 @@ export type { CardTopicProgressProps, CardTopicProps, CardTopicVariant, } from "
21
21
  export { CardContinue, CardContinueButton, CardContinueBreadcrumb, CardContinueContent, CardContinueHeader, CardContinueImage, CardContinueTitle, } from "./components/CardContinue.js";
22
22
  export type { CardContinueBreadcrumbProps, CardContinueImageProps, } from "./components/CardContinue.js";
23
23
  export { CardMission, CardMissionContent, CardMissionDescription, CardMissionHeader, CardMissionOverline, CardMissionPhase, CardMissionTitle, } from "./components/CardMission.js";
24
+ export { CardLearn, CardLearnActions, CardLearnBadge, CardLearnCategory, CardLearnContent, CardLearnDescription, CardLearnFooter, CardLearnHeader, CardLearnHeading, CardLearnIndicators, CardLearnLesson, CardLearnMeta, CardLearnMore, CardLearnPlayButton, CardLearnProgress, CardLearnProgressLabel, CardLearnSchedule, CardLearnStatus, CardLearnThumbnail, CardLearnTimeRemaining, CardLearnTitle, } from "./components/CardLearn.js";
25
+ export type { CardLearnHeadingProps, CardLearnPillProps, CardLearnProps, CardLearnScheduleProps, CardLearnSpecialty, CardLearnThumbnailProps, } from "./components/CardLearn.js";
24
26
  export { cardLessonVariants, CardLesson, CardLessonButton, CardLessonContent, CardLessonDuration, CardLessonFooter, CardLessonHeader, CardLessonIcon, CardLessonIcons, CardLessonImage, CardLessonLabel, CardLessonStatus, CardLessonTitle, } from "./components/CardLesson.js";
25
27
  export type { CardLessonIconProps, CardLessonImageProps, CardLessonOrientation, CardLessonProps, CardLessonStatusProps, CardLessonStatusType, CardLessonVariant, } from "./components/CardLesson.js";
26
28
  export { CardNews, CardNewsAuthor, CardNewsBody, CardNewsContent, CardNewsDate, CardNewsDescription, CardNewsFooter, CardNewsHeader, CardNewsImage, CardNewsResourceItem, CardNewsResources, CardNewsTags, CardNewsTitle, } from "./components/CardNews.js";
@@ -71,6 +73,7 @@ export { CardOption, CardOptionGroup, cardOptionVariants, } from "./components/C
71
73
  export type { CardOptionGroupProps, CardOptionIndicator, CardOptionProps, CardOptionSize, } from "./components/CardOption.js";
72
74
  export { calculatePageNumbers, Pagination, PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationRoot, } from "./components/Pagination.js";
73
75
  export type { PaginationProps } from "./components/Pagination.js";
76
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger, } from "./components/Popover.js";
74
77
  export { Progress } from "./components/Progress.js";
75
78
  export type { ProgressProps } from "./components/Progress.js";
76
79
  export { ProgressCircle } from "./components/ProgressCircle.js";
@@ -89,7 +92,7 @@ export type { SelectItemProps, SelectProps, SelectSize, } from "./components/Sel
89
92
  export { SegmentControl, SegmentControlContent, SegmentControlList, SegmentControlTrigger, segmentControlTriggerVariants, } from "./components/SegmentControl.js";
90
93
  export type { SegmentControlListProps, SegmentControlTriggerProps, } from "./components/SegmentControl.js";
91
94
  export { Separator } from "./components/Separator.js";
92
- export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "./components/Sidebar.js";
95
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, useSidebarSearch, } from "./components/Sidebar.js";
93
96
  export { Skeleton } from "./components/Skeleton.js";
94
97
  export { SortableList, moveItem } from "./components/SortableList.js";
95
98
  export type { SortableId, SortableItem, SortableListProps, } from "./components/SortableList.js";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- "use strict";var C=require("./components/Alert.js"),i=require("./components/AlertDialog.js"),T=require("./components/Autocomplete.js"),V=require("./components/Avatar.js"),F=require("./components/Badge.js"),v=require("./components/Breadcrumb.js"),G=require("./components/Button.js"),t=require("./components/CardWeek.js"),g=require("./components/CardModule.js"),p=require("./components/CardTopic.js"),m=require("./components/CardContinue.js"),D=require("./components/CardMission.js"),n=require("./components/CardLesson.js"),s=require("./components/CardNews.js"),S=require("./components/Carousel.js"),y=require("./components/Checkbox.js"),k=require("./components/Chip.js"),q=require("./components/Collapsible.js"),Z=require("./components/ConfirmDeleteButton.js"),$=require("./components/Connector.js"),ee=require("./components/ConnectorNode.js"),d=require("./components/Dialog.js"),H=require("./components/Dismiss.js"),f=require("./components/DistributionBar.js"),a=require("./components/DropdownMenu.js"),L=require("./components/DatePicker.js"),M=require("./components/IndexLevel.js"),E=require("./components/IndexLevelAnimated.js"),l=require("./components/Input.js"),_=require("./components/Label.js"),re=require("./components/FallbackImage.js"),ae=require("./components/Loading.js"),h=require("./components/LoadingOverlay.js"),O=require("./components/Logo.js"),u=require("./components/Offcanvas.js"),x=require("./components/CardOption.js"),c=require("./components/Pagination.js"),te=require("./components/Progress.js"),oe=require("./components/ProgressCircle.js"),N=require("./components/RadioGroup.js"),r=require("./components/Ranking.js"),R=require("./components/Rating.js"),K=require("./components/RingCounter.js"),X=require("./components/ScrollArea.js"),o=require("./components/Select.js"),w=require("./components/SegmentControl.js"),ie=require("./components/Separator.js"),e=require("./components/Sidebar.js"),ne=require("./components/Skeleton.js"),z=require("./components/SortableList.js"),Q=require("./components/Switch.js"),A=require("./components/Switcher.js"),I=require("./components/Tabs.js"),U=require("./components/Tag.js"),j=require("./components/TagPicker.js"),J=require("./components/CardTestimonial.js"),W=require("./components/TextMarker.js"),Y=require("./components/Textarea.js"),P=require("./components/Tile.js"),b=require("./components/Toast.js"),se=require("./hooks/use-toast.js"),B=require("./components/Tooltip.js"),le=require("./components/TrailStep.js"),de=require("./hooks/use-mobile.js");exports.Alert=C.Alert,exports.AlertActions=C.AlertActions,exports.AlertButton=C.AlertButton,exports.AlertContainer=C.AlertContainer,exports.AlertContent=C.AlertContent,exports.AlertDescription=C.AlertDescription,exports.AlertIcon=C.AlertIcon,exports.AlertTitle=C.AlertTitle,exports.alertButtonVariants=C.alertButtonVariants,exports.alertVariants=C.alertVariants,exports.AlertDialog=i.AlertDialog,exports.AlertDialogAction=i.AlertDialogAction,exports.AlertDialogCancel=i.AlertDialogCancel,exports.AlertDialogContent=i.AlertDialogContent,exports.AlertDialogDescription=i.AlertDialogDescription,exports.AlertDialogFooter=i.AlertDialogFooter,exports.AlertDialogHeader=i.AlertDialogHeader,exports.AlertDialogIcon=i.AlertDialogIcon,exports.AlertDialogOverlay=i.AlertDialogOverlay,exports.AlertDialogPortal=i.AlertDialogPortal,exports.AlertDialogTag=i.AlertDialogTag,exports.AlertDialogTitle=i.AlertDialogTitle,exports.AlertDialogTrigger=i.AlertDialogTrigger,exports.Autocomplete=T.Autocomplete,exports.AutocompleteContent=T.AutocompleteContent,exports.AutocompleteContentFooter=T.AutocompleteContentFooter,exports.AutocompleteGroup=T.AutocompleteGroup,exports.AutocompleteItem=T.AutocompleteItem,exports.AutocompleteText=T.AutocompleteText,exports.AutocompleteTrigger=T.AutocompleteTrigger,exports.AutocompleteWrapper=T.AutocompleteWrapper,exports.Avatar=V.Avatar,exports.AvatarFallback=V.AvatarFallback,exports.AvatarImage=V.AvatarImage,exports.avatarVariants=V.avatarVariants,exports.Badge=F.Badge,exports.badgeVariants=F.badgeVariants,exports.Breadcrumb=v.Breadcrumb,exports.BreadcrumbEllipsis=v.BreadcrumbEllipsis,exports.BreadcrumbItem=v.BreadcrumbItem,exports.BreadcrumbLink=v.BreadcrumbLink,exports.BreadcrumbList=v.BreadcrumbList,exports.BreadcrumbPage=v.BreadcrumbPage,exports.BreadcrumbSeparator=v.BreadcrumbSeparator,exports.Button=G.Button,exports.buttonVariants=G.buttonVariants,exports.CardWeek=t.CardWeek,exports.CardWeekActions=t.CardWeekActions,exports.CardWeekBreadcrumb=t.CardWeekBreadcrumb,exports.CardWeekContainer=t.CardWeekContainer,exports.CardWeekContent=t.CardWeekContent,exports.CardWeekDescription=t.CardWeekDescription,exports.CardWeekFooter=t.CardWeekFooter,exports.CardWeekHeader=t.CardWeekHeader,exports.CardWeekProgress=t.CardWeekProgress,exports.CardWeekProgressCircle=t.CardWeekProgressCircle,exports.CardWeekStatus=t.CardWeekStatus,exports.CardWeekTags=t.CardWeekTags,exports.CardWeekText=t.CardWeekText,exports.CardWeekTitle=t.CardWeekTitle,exports.CardModule=g.CardModule,exports.CardModuleAction=g.CardModuleAction,exports.CardModuleButton=g.CardModuleButton,exports.CardModuleFooter=g.CardModuleFooter,exports.CardModuleHeader=g.CardModuleHeader,exports.CardModuleLabel=g.CardModuleLabel,exports.CardModuleProgress=g.CardModuleProgress,exports.CardModuleTitle=g.CardModuleTitle,exports.cardModuleStatusVariants=g.cardModuleStatusVariants,exports.cardModuleVariants=g.cardModuleVariants,exports.CardTopic=p.CardTopic,exports.CardTopicColumn=p.CardTopicColumn,exports.CardTopicContent=p.CardTopicContent,exports.CardTopicCount=p.CardTopicCount,exports.CardTopicNumber=p.CardTopicNumber,exports.CardTopicProgress=p.CardTopicProgress,exports.CardTopicTitle=p.CardTopicTitle,exports.CardTopicTrigger=p.CardTopicTrigger,exports.cardTopicVariants=p.cardTopicVariants,exports.CardContinue=m.CardContinue,exports.CardContinueBreadcrumb=m.CardContinueBreadcrumb,exports.CardContinueButton=m.CardContinueButton,exports.CardContinueContent=m.CardContinueContent,exports.CardContinueHeader=m.CardContinueHeader,exports.CardContinueImage=m.CardContinueImage,exports.CardContinueTitle=m.CardContinueTitle,exports.CardMission=D.CardMission,exports.CardMissionContent=D.CardMissionContent,exports.CardMissionDescription=D.CardMissionDescription,exports.CardMissionHeader=D.CardMissionHeader,exports.CardMissionOverline=D.CardMissionOverline,exports.CardMissionPhase=D.CardMissionPhase,exports.CardMissionTitle=D.CardMissionTitle,exports.CardLesson=n.CardLesson,exports.CardLessonButton=n.CardLessonButton,exports.CardLessonContent=n.CardLessonContent,exports.CardLessonDuration=n.CardLessonDuration,exports.CardLessonFooter=n.CardLessonFooter,exports.CardLessonHeader=n.CardLessonHeader,exports.CardLessonIcon=n.CardLessonIcon,exports.CardLessonIcons=n.CardLessonIcons,exports.CardLessonImage=n.CardLessonImage,exports.CardLessonLabel=n.CardLessonLabel,exports.CardLessonStatus=n.CardLessonStatus,exports.CardLessonTitle=n.CardLessonTitle,exports.cardLessonVariants=n.cardLessonVariants,exports.CardNews=s.CardNews,exports.CardNewsAuthor=s.CardNewsAuthor,exports.CardNewsBody=s.CardNewsBody,exports.CardNewsContent=s.CardNewsContent,exports.CardNewsDate=s.CardNewsDate,exports.CardNewsDescription=s.CardNewsDescription,exports.CardNewsFooter=s.CardNewsFooter,exports.CardNewsHeader=s.CardNewsHeader,exports.CardNewsImage=s.CardNewsImage,exports.CardNewsResourceItem=s.CardNewsResourceItem,exports.CardNewsResources=s.CardNewsResources,exports.CardNewsTags=s.CardNewsTags,exports.CardNewsTitle=s.CardNewsTitle,exports.Carousel=S.Carousel,exports.CarouselAutoplayToggle=S.CarouselAutoplayToggle,exports.CarouselContent=S.CarouselContent,exports.CarouselDots=S.CarouselDots,exports.CarouselItem=S.CarouselItem,exports.CarouselNext=S.CarouselNext,exports.CarouselPrevious=S.CarouselPrevious,exports.useCarousel=S.useCarousel,exports.Checkbox=y.Checkbox,exports.checkboxVariants=y.checkboxVariants,exports.Chip=k.Chip,exports.ChipChoice=k.ChipChoice,exports.ChipClear=k.ChipClear,exports.ChipFilter=k.ChipFilter,exports.chipClearVariants=k.chipClearVariants,exports.chipSelectableVariants=k.chipSelectableVariants,exports.chipVariants=k.chipVariants,exports.Collapsible=q.Collapsible,exports.CollapsibleContent=q.CollapsibleContent,exports.CollapsibleTrigger=q.CollapsibleTrigger,exports.ConfirmDeleteButton=Z.ConfirmDeleteButton,exports.Connector=$.Connector,exports.ConnectorNode=ee.ConnectorNode,exports.Dialog=d.Dialog,exports.DialogClose=d.DialogClose,exports.DialogContainer=d.DialogContainer,exports.DialogContent=d.DialogContent,exports.DialogDescription=d.DialogDescription,exports.DialogFooter=d.DialogFooter,exports.DialogHeader=d.DialogHeader,exports.DialogOverlay=d.DialogOverlay,exports.DialogPortal=d.DialogPortal,exports.DialogTitle=d.DialogTitle,exports.DialogTrigger=d.DialogTrigger,exports.Dismiss=H.Dismiss,exports.dismissVariants=H.dismissVariants,exports.DistributionBar=f.DistributionBar,exports.distributionBarVariants=f.distributionBarVariants,exports.distributionToneClass=f.distributionToneClass,exports.DropdownMenu=a.DropdownMenu,exports.DropdownMenuCheckboxItem=a.DropdownMenuCheckboxItem,exports.DropdownMenuContent=a.DropdownMenuContent,exports.DropdownMenuGroup=a.DropdownMenuGroup,exports.DropdownMenuItem=a.DropdownMenuItem,exports.DropdownMenuLabel=a.DropdownMenuLabel,exports.DropdownMenuPortal=a.DropdownMenuPortal,exports.DropdownMenuRadioGroup=a.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=a.DropdownMenuRadioItem,exports.DropdownMenuSeparator=a.DropdownMenuSeparator,exports.DropdownMenuShortcut=a.DropdownMenuShortcut,exports.DropdownMenuSub=a.DropdownMenuSub,exports.DropdownMenuSubContent=a.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=a.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=a.DropdownMenuTrigger,exports.DatePicker=L.DatePicker,exports.DatePickerLabel=L.DatePickerLabel,exports.DatePickerText=L.DatePickerText,exports.DatePickerWrapper=L.DatePickerWrapper,exports.DateRangePicker=L.DateRangePicker,exports.datePickerTriggerVariants=L.datePickerTriggerVariants,exports.INDEX_LEVEL_LABELS=M.INDEX_LEVEL_LABELS,exports.IndexLevel=M.IndexLevel,exports.IndexLevelIcon=M.IndexLevelIcon,exports.indexLevelIconVariants=M.indexLevelIconVariants,exports.indexLevelVariants=M.indexLevelVariants,exports.IndexLevelAnimated=E.IndexLevelAnimated,exports.indexLevelAnimatedVariants=E.indexLevelAnimatedVariants,exports.Input=l.Input,exports.InputAdornment=l.InputAdornment,exports.InputEndIcon=l.InputEndIcon,exports.InputField=l.InputField,exports.InputLabel=l.InputLabel,exports.InputNumeric=l.InputNumeric,exports.InputPassword=l.InputPassword,exports.InputStartIcon=l.InputStartIcon,exports.InputText=l.InputText,exports.InputWrapper=l.InputWrapper,exports.applyInputIconSize=l.applyInputIconSize,exports.inputVariants=l.inputVariants,exports.Label=_.Label,exports.labelVariants=_.labelVariants,exports.FallbackImage=re.FallbackImage,exports.Loading=ae.Loading,exports.LoadingOverlay=h.LoadingOverlay,exports.LoadingOverlayCard=h.LoadingOverlayCard,exports.LoadingOverlaySpinner=h.LoadingOverlaySpinner,exports.Logo=O.Logo,exports.LogoCircular=O.LogoCircular,exports.LogoShort=O.LogoShort,exports.Offcanvas=u.Offcanvas,exports.OffcanvasBody=u.OffcanvasBody,exports.OffcanvasClose=u.OffcanvasClose,exports.OffcanvasContent=u.OffcanvasContent,exports.OffcanvasDescription=u.OffcanvasDescription,exports.OffcanvasFooter=u.OffcanvasFooter,exports.OffcanvasHeader=u.OffcanvasHeader,exports.OffcanvasOverlay=u.OffcanvasOverlay,exports.OffcanvasPortal=u.OffcanvasPortal,exports.OffcanvasTitle=u.OffcanvasTitle,exports.OffcanvasTrigger=u.OffcanvasTrigger,exports.CardOption=x.CardOption,exports.CardOptionGroup=x.CardOptionGroup,exports.cardOptionVariants=x.cardOptionVariants,exports.Pagination=c.Pagination,exports.PaginationContent=c.PaginationContent,exports.PaginationEllipsis=c.PaginationEllipsis,exports.PaginationInfo=c.PaginationInfo,exports.PaginationItem=c.PaginationItem,exports.PaginationLink=c.PaginationLink,exports.PaginationNext=c.PaginationNext,exports.PaginationPrevious=c.PaginationPrevious,exports.PaginationRoot=c.PaginationRoot,exports.calculatePageNumbers=c.calculatePageNumbers,exports.Progress=te.Progress,exports.ProgressCircle=oe.ProgressCircle,exports.RadioGroup=N.RadioGroup,exports.RadioGroupItem=N.RadioGroupItem,exports.radioGroupVariants=N.radioGroupVariants,exports.Ranking=r.Ranking,exports.RankingAssigneeGroup=r.RankingAssigneeGroup,exports.RankingAssigneeItem=r.RankingAssigneeItem,exports.RankingAssigneeLabel=r.RankingAssigneeLabel,exports.RankingAssigneesColumn=r.RankingAssigneesColumn,exports.RankingBody=r.RankingBody,exports.RankingButton=r.RankingButton,exports.RankingHeader=r.RankingHeader,exports.RankingHeaderCell=r.RankingHeaderCell,exports.RankingItem=r.RankingItem,exports.RankingNumber=r.RankingNumber,exports.RankingPerformance=r.RankingPerformance,exports.RankingPriority=r.RankingPriority,exports.RankingQuestions=r.RankingQuestions,exports.RankingSpecialty=r.RankingSpecialty,exports.RankingSuperFocus=r.RankingSuperFocus,exports.RankingTopic=r.RankingTopic,exports.RankingTopicColumn=r.RankingTopicColumn,exports.RankingTopicContent=r.RankingTopicContent,exports.Rating=R.Rating,exports.RatingButtonVariants=R.RatingButtonVariants,exports.RatingLabelVariants=R.RatingLabelVariants,exports.RatingStarVariants=R.RatingStarVariants,exports.RingCounter=K.RingCounter,exports.alignToStep=K.alignToStep,exports.ScrollArea=X.ScrollArea,exports.ScrollBar=X.ScrollBar,exports.Select=o.Select,exports.SelectContent=o.SelectContent,exports.SelectGroup=o.SelectGroup,exports.SelectHeader=o.SelectHeader,exports.SelectItem=o.SelectItem,exports.SelectLabel=o.SelectLabel,exports.SelectScrollDownButton=o.SelectScrollDownButton,exports.SelectScrollUpButton=o.SelectScrollUpButton,exports.SelectSeparator=o.SelectSeparator,exports.SelectText=o.SelectText,exports.SelectTrigger=o.SelectTrigger,exports.SelectValue=o.SelectValue,exports.SelectWrapper=o.SelectWrapper,exports.selectVariants=o.selectVariants,exports.SegmentControl=w.SegmentControl,exports.SegmentControlContent=w.SegmentControlContent,exports.SegmentControlList=w.SegmentControlList,exports.SegmentControlTrigger=w.SegmentControlTrigger,exports.segmentControlTriggerVariants=w.segmentControlTriggerVariants,exports.Separator=ie.Separator,exports.Sidebar=e.Sidebar,exports.SidebarContent=e.SidebarContent,exports.SidebarFooter=e.SidebarFooter,exports.SidebarGroup=e.SidebarGroup,exports.SidebarGroupAction=e.SidebarGroupAction,exports.SidebarGroupContent=e.SidebarGroupContent,exports.SidebarGroupLabel=e.SidebarGroupLabel,exports.SidebarHeader=e.SidebarHeader,exports.SidebarInput=e.SidebarInput,exports.SidebarInset=e.SidebarInset,exports.SidebarMenu=e.SidebarMenu,exports.SidebarMenuAction=e.SidebarMenuAction,exports.SidebarMenuBadge=e.SidebarMenuBadge,exports.SidebarMenuButton=e.SidebarMenuButton,exports.SidebarMenuItem=e.SidebarMenuItem,exports.SidebarMenuItemCollapse=e.SidebarMenuItemCollapse,exports.SidebarMenuItemTitle=e.SidebarMenuItemTitle,exports.SidebarMenuSkeleton=e.SidebarMenuSkeleton,exports.SidebarMenuSub=e.SidebarMenuSub,exports.SidebarMenuSubButton=e.SidebarMenuSubButton,exports.SidebarMenuSubItem=e.SidebarMenuSubItem,exports.SidebarProvider=e.SidebarProvider,exports.SidebarRail=e.SidebarRail,exports.SidebarSeparator=e.SidebarSeparator,exports.SidebarTrigger=e.SidebarTrigger,exports.useSidebar=e.useSidebar,exports.Skeleton=ne.Skeleton,exports.SortableList=z.SortableList,exports.moveItem=z.moveItem,exports.Switch=Q.Switch,exports.switchVariants=Q.switchVariants,exports.Switcher=A.Switcher,exports.SwitcherContent=A.SwitcherContent,exports.SwitcherFooter=A.SwitcherFooter,exports.SwitcherGroup=A.SwitcherGroup,exports.SwitcherItem=A.SwitcherItem,exports.SwitcherSeparator=A.SwitcherSeparator,exports.SwitcherTrigger=A.SwitcherTrigger,exports.Tabs=I.Tabs,exports.TabsContent=I.TabsContent,exports.TabsList=I.TabsList,exports.TabsTrigger=I.TabsTrigger,exports.tabsContentVariants=I.tabsContentVariants,exports.tabsListVariants=I.tabsListVariants,exports.tabsTriggerVariants=I.tabsTriggerVariants,exports.Tag=U.Tag,exports.tagVariants=U.tagVariants,exports.TAG_PICKER_PALETTE=j.TAG_PICKER_PALETTE,exports.TagPicker=j.TagPicker,exports.CardTestimonial=J.CardTestimonial,exports.cardTestimonialInitials=J.cardTestimonialInitials,exports.TEXT_MARKER_COLORS=W.TEXT_MARKER_COLORS,exports.TextMarker=W.TextMarker,exports.textMarkerMarkVariants=W.textMarkerMarkVariants,exports.Textarea=Y.Textarea,exports.textareaVariants=Y.textareaVariants,exports.Tile=P.Tile,exports.TileDescription=P.TileDescription,exports.TileIcon=P.TileIcon,exports.TileTitle=P.TileTitle,exports.tileVariants=P.tileVariants,exports.Toast=b.Toast,exports.ToastAction=b.ToastAction,exports.ToastClose=b.ToastClose,exports.ToastDescription=b.ToastDescription,exports.ToastProvider=b.ToastProvider,exports.ToastTitle=b.ToastTitle,exports.ToastViewport=b.ToastViewport,exports.toastVariants=b.toastVariants,exports.useToast=se.useToast,exports.Tooltip=B.Tooltip,exports.TooltipContent=B.TooltipContent,exports.TooltipProvider=B.TooltipProvider,exports.TooltipTrigger=B.TooltipTrigger,exports.TrailStep=le.TrailStep,exports.useIsMobile=de.useIsMobile;
2
+ "use strict";var g=require("./components/Alert.js"),i=require("./components/AlertDialog.js"),S=require("./components/Autocomplete.js"),V=require("./components/Avatar.js"),G=require("./components/Badge.js"),v=require("./components/Breadcrumb.js"),H=require("./components/Button.js"),n=require("./components/CardWeek.js"),c=require("./components/CardModule.js"),T=require("./components/CardTopic.js"),m=require("./components/CardContinue.js"),D=require("./components/CardMission.js"),r=require("./components/CardLearn.js"),s=require("./components/CardLesson.js"),l=require("./components/CardNews.js"),b=require("./components/Carousel.js"),E=require("./components/Checkbox.js"),A=require("./components/Chip.js"),f=require("./components/Collapsible.js"),ee=require("./components/ConfirmDeleteButton.js"),re=require("./components/Connector.js"),ae=require("./components/ConnectorNode.js"),u=require("./components/Dialog.js"),_=require("./components/Dismiss.js"),O=require("./components/DistributionBar.js"),t=require("./components/DropdownMenu.js"),M=require("./components/DatePicker.js"),P=require("./components/IndexLevel.js"),K=require("./components/IndexLevelAnimated.js"),d=require("./components/Input.js"),X=require("./components/Label.js"),te=require("./components/FallbackImage.js"),ne=require("./components/Loading.js"),x=require("./components/LoadingOverlay.js"),N=require("./components/Logo.js"),C=require("./components/Offcanvas.js"),W=require("./components/CardOption.js"),p=require("./components/Pagination.js"),B=require("./components/Popover.js"),oe=require("./components/Progress.js"),ie=require("./components/ProgressCircle.js"),F=require("./components/RadioGroup.js"),a=require("./components/Ranking.js"),q=require("./components/Rating.js"),z=require("./components/RingCounter.js"),Q=require("./components/ScrollArea.js"),o=require("./components/Select.js"),w=require("./components/SegmentControl.js"),se=require("./components/Separator.js"),e=require("./components/Sidebar.js"),le=require("./components/Skeleton.js"),U=require("./components/SortableList.js"),j=require("./components/Switch.js"),I=require("./components/Switcher.js"),k=require("./components/Tabs.js"),J=require("./components/Tag.js"),Y=require("./components/TagPicker.js"),Z=require("./components/CardTestimonial.js"),y=require("./components/TextMarker.js"),$=require("./components/Textarea.js"),R=require("./components/Tile.js"),L=require("./components/Toast.js"),de=require("./hooks/use-toast.js"),h=require("./components/Tooltip.js"),ue=require("./components/TrailStep.js"),Ce=require("./hooks/use-mobile.js");exports.Alert=g.Alert,exports.AlertActions=g.AlertActions,exports.AlertButton=g.AlertButton,exports.AlertContainer=g.AlertContainer,exports.AlertContent=g.AlertContent,exports.AlertDescription=g.AlertDescription,exports.AlertIcon=g.AlertIcon,exports.AlertTitle=g.AlertTitle,exports.alertButtonVariants=g.alertButtonVariants,exports.alertVariants=g.alertVariants,exports.AlertDialog=i.AlertDialog,exports.AlertDialogAction=i.AlertDialogAction,exports.AlertDialogCancel=i.AlertDialogCancel,exports.AlertDialogContent=i.AlertDialogContent,exports.AlertDialogDescription=i.AlertDialogDescription,exports.AlertDialogFooter=i.AlertDialogFooter,exports.AlertDialogHeader=i.AlertDialogHeader,exports.AlertDialogIcon=i.AlertDialogIcon,exports.AlertDialogOverlay=i.AlertDialogOverlay,exports.AlertDialogPortal=i.AlertDialogPortal,exports.AlertDialogTag=i.AlertDialogTag,exports.AlertDialogTitle=i.AlertDialogTitle,exports.AlertDialogTrigger=i.AlertDialogTrigger,exports.Autocomplete=S.Autocomplete,exports.AutocompleteContent=S.AutocompleteContent,exports.AutocompleteContentFooter=S.AutocompleteContentFooter,exports.AutocompleteGroup=S.AutocompleteGroup,exports.AutocompleteItem=S.AutocompleteItem,exports.AutocompleteText=S.AutocompleteText,exports.AutocompleteTrigger=S.AutocompleteTrigger,exports.AutocompleteWrapper=S.AutocompleteWrapper,exports.Avatar=V.Avatar,exports.AvatarFallback=V.AvatarFallback,exports.AvatarImage=V.AvatarImage,exports.avatarVariants=V.avatarVariants,exports.Badge=G.Badge,exports.badgeVariants=G.badgeVariants,exports.Breadcrumb=v.Breadcrumb,exports.BreadcrumbEllipsis=v.BreadcrumbEllipsis,exports.BreadcrumbItem=v.BreadcrumbItem,exports.BreadcrumbLink=v.BreadcrumbLink,exports.BreadcrumbList=v.BreadcrumbList,exports.BreadcrumbPage=v.BreadcrumbPage,exports.BreadcrumbSeparator=v.BreadcrumbSeparator,exports.Button=H.Button,exports.buttonVariants=H.buttonVariants,exports.CardWeek=n.CardWeek,exports.CardWeekActions=n.CardWeekActions,exports.CardWeekBreadcrumb=n.CardWeekBreadcrumb,exports.CardWeekContainer=n.CardWeekContainer,exports.CardWeekContent=n.CardWeekContent,exports.CardWeekDescription=n.CardWeekDescription,exports.CardWeekFooter=n.CardWeekFooter,exports.CardWeekHeader=n.CardWeekHeader,exports.CardWeekProgress=n.CardWeekProgress,exports.CardWeekProgressCircle=n.CardWeekProgressCircle,exports.CardWeekStatus=n.CardWeekStatus,exports.CardWeekTags=n.CardWeekTags,exports.CardWeekText=n.CardWeekText,exports.CardWeekTitle=n.CardWeekTitle,exports.CardModule=c.CardModule,exports.CardModuleAction=c.CardModuleAction,exports.CardModuleButton=c.CardModuleButton,exports.CardModuleFooter=c.CardModuleFooter,exports.CardModuleHeader=c.CardModuleHeader,exports.CardModuleLabel=c.CardModuleLabel,exports.CardModuleProgress=c.CardModuleProgress,exports.CardModuleTitle=c.CardModuleTitle,exports.cardModuleStatusVariants=c.cardModuleStatusVariants,exports.cardModuleVariants=c.cardModuleVariants,exports.CardTopic=T.CardTopic,exports.CardTopicColumn=T.CardTopicColumn,exports.CardTopicContent=T.CardTopicContent,exports.CardTopicCount=T.CardTopicCount,exports.CardTopicNumber=T.CardTopicNumber,exports.CardTopicProgress=T.CardTopicProgress,exports.CardTopicTitle=T.CardTopicTitle,exports.CardTopicTrigger=T.CardTopicTrigger,exports.cardTopicVariants=T.cardTopicVariants,exports.CardContinue=m.CardContinue,exports.CardContinueBreadcrumb=m.CardContinueBreadcrumb,exports.CardContinueButton=m.CardContinueButton,exports.CardContinueContent=m.CardContinueContent,exports.CardContinueHeader=m.CardContinueHeader,exports.CardContinueImage=m.CardContinueImage,exports.CardContinueTitle=m.CardContinueTitle,exports.CardMission=D.CardMission,exports.CardMissionContent=D.CardMissionContent,exports.CardMissionDescription=D.CardMissionDescription,exports.CardMissionHeader=D.CardMissionHeader,exports.CardMissionOverline=D.CardMissionOverline,exports.CardMissionPhase=D.CardMissionPhase,exports.CardMissionTitle=D.CardMissionTitle,exports.CardLearn=r.CardLearn,exports.CardLearnActions=r.CardLearnActions,exports.CardLearnBadge=r.CardLearnBadge,exports.CardLearnCategory=r.CardLearnCategory,exports.CardLearnContent=r.CardLearnContent,exports.CardLearnDescription=r.CardLearnDescription,exports.CardLearnFooter=r.CardLearnFooter,exports.CardLearnHeader=r.CardLearnHeader,exports.CardLearnHeading=r.CardLearnHeading,exports.CardLearnIndicators=r.CardLearnIndicators,exports.CardLearnLesson=r.CardLearnLesson,exports.CardLearnMeta=r.CardLearnMeta,exports.CardLearnMore=r.CardLearnMore,exports.CardLearnPlayButton=r.CardLearnPlayButton,exports.CardLearnProgress=r.CardLearnProgress,exports.CardLearnProgressLabel=r.CardLearnProgressLabel,exports.CardLearnSchedule=r.CardLearnSchedule,exports.CardLearnStatus=r.CardLearnStatus,exports.CardLearnThumbnail=r.CardLearnThumbnail,exports.CardLearnTimeRemaining=r.CardLearnTimeRemaining,exports.CardLearnTitle=r.CardLearnTitle,exports.CardLesson=s.CardLesson,exports.CardLessonButton=s.CardLessonButton,exports.CardLessonContent=s.CardLessonContent,exports.CardLessonDuration=s.CardLessonDuration,exports.CardLessonFooter=s.CardLessonFooter,exports.CardLessonHeader=s.CardLessonHeader,exports.CardLessonIcon=s.CardLessonIcon,exports.CardLessonIcons=s.CardLessonIcons,exports.CardLessonImage=s.CardLessonImage,exports.CardLessonLabel=s.CardLessonLabel,exports.CardLessonStatus=s.CardLessonStatus,exports.CardLessonTitle=s.CardLessonTitle,exports.cardLessonVariants=s.cardLessonVariants,exports.CardNews=l.CardNews,exports.CardNewsAuthor=l.CardNewsAuthor,exports.CardNewsBody=l.CardNewsBody,exports.CardNewsContent=l.CardNewsContent,exports.CardNewsDate=l.CardNewsDate,exports.CardNewsDescription=l.CardNewsDescription,exports.CardNewsFooter=l.CardNewsFooter,exports.CardNewsHeader=l.CardNewsHeader,exports.CardNewsImage=l.CardNewsImage,exports.CardNewsResourceItem=l.CardNewsResourceItem,exports.CardNewsResources=l.CardNewsResources,exports.CardNewsTags=l.CardNewsTags,exports.CardNewsTitle=l.CardNewsTitle,exports.Carousel=b.Carousel,exports.CarouselAutoplayToggle=b.CarouselAutoplayToggle,exports.CarouselContent=b.CarouselContent,exports.CarouselDots=b.CarouselDots,exports.CarouselItem=b.CarouselItem,exports.CarouselNext=b.CarouselNext,exports.CarouselPrevious=b.CarouselPrevious,exports.useCarousel=b.useCarousel,exports.Checkbox=E.Checkbox,exports.checkboxVariants=E.checkboxVariants,exports.Chip=A.Chip,exports.ChipChoice=A.ChipChoice,exports.ChipClear=A.ChipClear,exports.ChipFilter=A.ChipFilter,exports.chipClearVariants=A.chipClearVariants,exports.chipSelectableVariants=A.chipSelectableVariants,exports.chipVariants=A.chipVariants,exports.Collapsible=f.Collapsible,exports.CollapsibleContent=f.CollapsibleContent,exports.CollapsibleTrigger=f.CollapsibleTrigger,exports.ConfirmDeleteButton=ee.ConfirmDeleteButton,exports.Connector=re.Connector,exports.ConnectorNode=ae.ConnectorNode,exports.Dialog=u.Dialog,exports.DialogClose=u.DialogClose,exports.DialogContainer=u.DialogContainer,exports.DialogContent=u.DialogContent,exports.DialogDescription=u.DialogDescription,exports.DialogFooter=u.DialogFooter,exports.DialogHeader=u.DialogHeader,exports.DialogOverlay=u.DialogOverlay,exports.DialogPortal=u.DialogPortal,exports.DialogTitle=u.DialogTitle,exports.DialogTrigger=u.DialogTrigger,exports.Dismiss=_.Dismiss,exports.dismissVariants=_.dismissVariants,exports.DistributionBar=O.DistributionBar,exports.distributionBarVariants=O.distributionBarVariants,exports.distributionToneClass=O.distributionToneClass,exports.DropdownMenu=t.DropdownMenu,exports.DropdownMenuCheckboxItem=t.DropdownMenuCheckboxItem,exports.DropdownMenuContent=t.DropdownMenuContent,exports.DropdownMenuGroup=t.DropdownMenuGroup,exports.DropdownMenuItem=t.DropdownMenuItem,exports.DropdownMenuLabel=t.DropdownMenuLabel,exports.DropdownMenuPortal=t.DropdownMenuPortal,exports.DropdownMenuRadioGroup=t.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=t.DropdownMenuRadioItem,exports.DropdownMenuSeparator=t.DropdownMenuSeparator,exports.DropdownMenuShortcut=t.DropdownMenuShortcut,exports.DropdownMenuSub=t.DropdownMenuSub,exports.DropdownMenuSubContent=t.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=t.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=t.DropdownMenuTrigger,exports.DatePicker=M.DatePicker,exports.DatePickerLabel=M.DatePickerLabel,exports.DatePickerText=M.DatePickerText,exports.DatePickerWrapper=M.DatePickerWrapper,exports.DateRangePicker=M.DateRangePicker,exports.datePickerTriggerVariants=M.datePickerTriggerVariants,exports.INDEX_LEVEL_LABELS=P.INDEX_LEVEL_LABELS,exports.IndexLevel=P.IndexLevel,exports.IndexLevelIcon=P.IndexLevelIcon,exports.indexLevelIconVariants=P.indexLevelIconVariants,exports.indexLevelVariants=P.indexLevelVariants,exports.IndexLevelAnimated=K.IndexLevelAnimated,exports.indexLevelAnimatedVariants=K.indexLevelAnimatedVariants,exports.Input=d.Input,exports.InputAdornment=d.InputAdornment,exports.InputEndIcon=d.InputEndIcon,exports.InputField=d.InputField,exports.InputLabel=d.InputLabel,exports.InputNumeric=d.InputNumeric,exports.InputPassword=d.InputPassword,exports.InputStartIcon=d.InputStartIcon,exports.InputText=d.InputText,exports.InputWrapper=d.InputWrapper,exports.applyInputIconSize=d.applyInputIconSize,exports.inputVariants=d.inputVariants,exports.Label=X.Label,exports.labelVariants=X.labelVariants,exports.FallbackImage=te.FallbackImage,exports.Loading=ne.Loading,exports.LoadingOverlay=x.LoadingOverlay,exports.LoadingOverlayCard=x.LoadingOverlayCard,exports.LoadingOverlaySpinner=x.LoadingOverlaySpinner,exports.Logo=N.Logo,exports.LogoCircular=N.LogoCircular,exports.LogoShort=N.LogoShort,exports.Offcanvas=C.Offcanvas,exports.OffcanvasBody=C.OffcanvasBody,exports.OffcanvasClose=C.OffcanvasClose,exports.OffcanvasContent=C.OffcanvasContent,exports.OffcanvasDescription=C.OffcanvasDescription,exports.OffcanvasFooter=C.OffcanvasFooter,exports.OffcanvasHeader=C.OffcanvasHeader,exports.OffcanvasOverlay=C.OffcanvasOverlay,exports.OffcanvasPortal=C.OffcanvasPortal,exports.OffcanvasTitle=C.OffcanvasTitle,exports.OffcanvasTrigger=C.OffcanvasTrigger,exports.CardOption=W.CardOption,exports.CardOptionGroup=W.CardOptionGroup,exports.cardOptionVariants=W.cardOptionVariants,exports.Pagination=p.Pagination,exports.PaginationContent=p.PaginationContent,exports.PaginationEllipsis=p.PaginationEllipsis,exports.PaginationInfo=p.PaginationInfo,exports.PaginationItem=p.PaginationItem,exports.PaginationLink=p.PaginationLink,exports.PaginationNext=p.PaginationNext,exports.PaginationPrevious=p.PaginationPrevious,exports.PaginationRoot=p.PaginationRoot,exports.calculatePageNumbers=p.calculatePageNumbers,exports.Popover=B.Popover,exports.PopoverAnchor=B.PopoverAnchor,exports.PopoverContent=B.PopoverContent,exports.PopoverTrigger=B.PopoverTrigger,exports.Progress=oe.Progress,exports.ProgressCircle=ie.ProgressCircle,exports.RadioGroup=F.RadioGroup,exports.RadioGroupItem=F.RadioGroupItem,exports.radioGroupVariants=F.radioGroupVariants,exports.Ranking=a.Ranking,exports.RankingAssigneeGroup=a.RankingAssigneeGroup,exports.RankingAssigneeItem=a.RankingAssigneeItem,exports.RankingAssigneeLabel=a.RankingAssigneeLabel,exports.RankingAssigneesColumn=a.RankingAssigneesColumn,exports.RankingBody=a.RankingBody,exports.RankingButton=a.RankingButton,exports.RankingHeader=a.RankingHeader,exports.RankingHeaderCell=a.RankingHeaderCell,exports.RankingItem=a.RankingItem,exports.RankingNumber=a.RankingNumber,exports.RankingPerformance=a.RankingPerformance,exports.RankingPriority=a.RankingPriority,exports.RankingQuestions=a.RankingQuestions,exports.RankingSpecialty=a.RankingSpecialty,exports.RankingSuperFocus=a.RankingSuperFocus,exports.RankingTopic=a.RankingTopic,exports.RankingTopicColumn=a.RankingTopicColumn,exports.RankingTopicContent=a.RankingTopicContent,exports.Rating=q.Rating,exports.RatingButtonVariants=q.RatingButtonVariants,exports.RatingLabelVariants=q.RatingLabelVariants,exports.RatingStarVariants=q.RatingStarVariants,exports.RingCounter=z.RingCounter,exports.alignToStep=z.alignToStep,exports.ScrollArea=Q.ScrollArea,exports.ScrollBar=Q.ScrollBar,exports.Select=o.Select,exports.SelectContent=o.SelectContent,exports.SelectGroup=o.SelectGroup,exports.SelectHeader=o.SelectHeader,exports.SelectItem=o.SelectItem,exports.SelectLabel=o.SelectLabel,exports.SelectScrollDownButton=o.SelectScrollDownButton,exports.SelectScrollUpButton=o.SelectScrollUpButton,exports.SelectSeparator=o.SelectSeparator,exports.SelectText=o.SelectText,exports.SelectTrigger=o.SelectTrigger,exports.SelectValue=o.SelectValue,exports.SelectWrapper=o.SelectWrapper,exports.selectVariants=o.selectVariants,exports.SegmentControl=w.SegmentControl,exports.SegmentControlContent=w.SegmentControlContent,exports.SegmentControlList=w.SegmentControlList,exports.SegmentControlTrigger=w.SegmentControlTrigger,exports.segmentControlTriggerVariants=w.segmentControlTriggerVariants,exports.Separator=se.Separator,exports.Sidebar=e.Sidebar,exports.SidebarContent=e.SidebarContent,exports.SidebarFooter=e.SidebarFooter,exports.SidebarGroup=e.SidebarGroup,exports.SidebarGroupAction=e.SidebarGroupAction,exports.SidebarGroupContent=e.SidebarGroupContent,exports.SidebarGroupLabel=e.SidebarGroupLabel,exports.SidebarHeader=e.SidebarHeader,exports.SidebarInput=e.SidebarInput,exports.SidebarInset=e.SidebarInset,exports.SidebarMenu=e.SidebarMenu,exports.SidebarMenuAction=e.SidebarMenuAction,exports.SidebarMenuBadge=e.SidebarMenuBadge,exports.SidebarMenuButton=e.SidebarMenuButton,exports.SidebarMenuItem=e.SidebarMenuItem,exports.SidebarMenuItemCollapse=e.SidebarMenuItemCollapse,exports.SidebarMenuItemTitle=e.SidebarMenuItemTitle,exports.SidebarMenuSkeleton=e.SidebarMenuSkeleton,exports.SidebarMenuSub=e.SidebarMenuSub,exports.SidebarMenuSubButton=e.SidebarMenuSubButton,exports.SidebarMenuSubItem=e.SidebarMenuSubItem,exports.SidebarProvider=e.SidebarProvider,exports.SidebarRail=e.SidebarRail,exports.SidebarSeparator=e.SidebarSeparator,exports.SidebarTrigger=e.SidebarTrigger,exports.useSidebar=e.useSidebar,exports.useSidebarSearch=e.useSidebarSearch,exports.Skeleton=le.Skeleton,exports.SortableList=U.SortableList,exports.moveItem=U.moveItem,exports.Switch=j.Switch,exports.switchVariants=j.switchVariants,exports.Switcher=I.Switcher,exports.SwitcherContent=I.SwitcherContent,exports.SwitcherFooter=I.SwitcherFooter,exports.SwitcherGroup=I.SwitcherGroup,exports.SwitcherItem=I.SwitcherItem,exports.SwitcherSeparator=I.SwitcherSeparator,exports.SwitcherTrigger=I.SwitcherTrigger,exports.Tabs=k.Tabs,exports.TabsContent=k.TabsContent,exports.TabsList=k.TabsList,exports.TabsTrigger=k.TabsTrigger,exports.tabsContentVariants=k.tabsContentVariants,exports.tabsListVariants=k.tabsListVariants,exports.tabsTriggerVariants=k.tabsTriggerVariants,exports.Tag=J.Tag,exports.tagVariants=J.tagVariants,exports.TAG_PICKER_PALETTE=Y.TAG_PICKER_PALETTE,exports.TagPicker=Y.TagPicker,exports.CardTestimonial=Z.CardTestimonial,exports.cardTestimonialInitials=Z.cardTestimonialInitials,exports.TEXT_MARKER_COLORS=y.TEXT_MARKER_COLORS,exports.TextMarker=y.TextMarker,exports.textMarkerMarkVariants=y.textMarkerMarkVariants,exports.Textarea=$.Textarea,exports.textareaVariants=$.textareaVariants,exports.Tile=R.Tile,exports.TileDescription=R.TileDescription,exports.TileIcon=R.TileIcon,exports.TileTitle=R.TileTitle,exports.tileVariants=R.tileVariants,exports.Toast=L.Toast,exports.ToastAction=L.ToastAction,exports.ToastClose=L.ToastClose,exports.ToastDescription=L.ToastDescription,exports.ToastProvider=L.ToastProvider,exports.ToastTitle=L.ToastTitle,exports.ToastViewport=L.ToastViewport,exports.toastVariants=L.toastVariants,exports.useToast=de.useToast,exports.Tooltip=h.Tooltip,exports.TooltipContent=h.TooltipContent,exports.TooltipProvider=h.TooltipProvider,exports.TooltipTrigger=h.TooltipTrigger,exports.TrailStep=ue.TrailStep,exports.useIsMobile=Ce.useIsMobile;
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- import{Alert as o,AlertActions as t,AlertButton as a,AlertContainer as n,AlertContent as i,AlertDescription as s,AlertIcon as l,AlertTitle as d,alertButtonVariants as p,alertVariants as C}from"./components/Alert.mjs";import{AlertDialog as g,AlertDialogAction as c,AlertDialogCancel as m,AlertDialogContent as f,AlertDialogDescription as S,AlertDialogFooter as T,AlertDialogHeader as x,AlertDialogIcon as b,AlertDialogOverlay as D,AlertDialogPortal as I,AlertDialogTag as A,AlertDialogTitle as k,AlertDialogTrigger as L}from"./components/AlertDialog.mjs";import{Autocomplete as w,AutocompleteContent as V,AutocompleteContentFooter as P,AutocompleteGroup as R,AutocompleteItem as v,AutocompleteText as B,AutocompleteTrigger as h,AutocompleteWrapper as O}from"./components/Autocomplete.mjs";import{Avatar as W,AvatarFallback as F,AvatarImage as G,avatarVariants as y}from"./components/Avatar.mjs";import{Badge as E,badgeVariants as _}from"./components/Badge.mjs";import{Breadcrumb as X,BreadcrumbEllipsis as z,BreadcrumbItem as Q,BreadcrumbLink as U,BreadcrumbList as j,BreadcrumbPage as q,BreadcrumbSeparator as J}from"./components/Breadcrumb.mjs";import{Button as Z,buttonVariants as $}from"./components/Button.mjs";import{CardWeek as re,CardWeekActions as oe,CardWeekBreadcrumb as te,CardWeekContainer as ae,CardWeekContent as ne,CardWeekDescription as ie,CardWeekFooter as se,CardWeekHeader as le,CardWeekProgress as de,CardWeekProgressCircle as pe,CardWeekStatus as Ce,CardWeekTags as ue,CardWeekText as ge,CardWeekTitle as ce}from"./components/CardWeek.mjs";import{CardModule as fe,CardModuleAction as Se,CardModuleButton as Te,CardModuleFooter as xe,CardModuleHeader as be,CardModuleLabel as De,CardModuleProgress as Ie,CardModuleTitle as Ae,cardModuleStatusVariants as ke,cardModuleVariants as Le}from"./components/CardModule.mjs";import{CardTopic as we,CardTopicColumn as Ve,CardTopicContent as Pe,CardTopicCount as Re,CardTopicNumber as ve,CardTopicProgress as Be,CardTopicTitle as he,CardTopicTrigger as Oe,cardTopicVariants as Ne}from"./components/CardTopic.mjs";import{CardContinue as Fe,CardContinueBreadcrumb as Ge,CardContinueButton as ye,CardContinueContent as He,CardContinueHeader as Ee,CardContinueImage as _e,CardContinueTitle as Ke}from"./components/CardContinue.mjs";import{CardMission as ze,CardMissionContent as Qe,CardMissionDescription as Ue,CardMissionHeader as je,CardMissionOverline as qe,CardMissionPhase as Je,CardMissionTitle as Ye}from"./components/CardMission.mjs";import{CardLesson as $e,CardLessonButton as er,CardLessonContent as rr,CardLessonDuration as or,CardLessonFooter as tr,CardLessonHeader as ar,CardLessonIcon as nr,CardLessonIcons as ir,CardLessonImage as sr,CardLessonLabel as lr,CardLessonStatus as dr,CardLessonTitle as pr,cardLessonVariants as Cr}from"./components/CardLesson.mjs";import{CardNews as gr,CardNewsAuthor as cr,CardNewsBody as mr,CardNewsContent as fr,CardNewsDate as Sr,CardNewsDescription as Tr,CardNewsFooter as xr,CardNewsHeader as br,CardNewsImage as Dr,CardNewsResourceItem as Ir,CardNewsResources as Ar,CardNewsTags as kr,CardNewsTitle as Lr}from"./components/CardNews.mjs";import{Carousel as wr,CarouselAutoplayToggle as Vr,CarouselContent as Pr,CarouselDots as Rr,CarouselItem as vr,CarouselNext as Br,CarouselPrevious as hr,useCarousel as Or}from"./components/Carousel.mjs";import{Checkbox as Wr,checkboxVariants as Fr}from"./components/Checkbox.mjs";import{Chip as yr,ChipChoice as Hr,ChipClear as Er,ChipFilter as _r,chipClearVariants as Kr,chipSelectableVariants as Xr,chipVariants as zr}from"./components/Chip.mjs";import{Collapsible as Ur,CollapsibleContent as jr,CollapsibleTrigger as qr}from"./components/Collapsible.mjs";import{ConfirmDeleteButton as Yr}from"./components/ConfirmDeleteButton.mjs";import{Connector as $r}from"./components/Connector.mjs";import{ConnectorNode as ro}from"./components/ConnectorNode.mjs";import{Dialog as to,DialogClose as ao,DialogContainer as no,DialogContent as io,DialogDescription as so,DialogFooter as lo,DialogHeader as po,DialogOverlay as Co,DialogPortal as uo,DialogTitle as go,DialogTrigger as co}from"./components/Dialog.mjs";import{Dismiss as fo,dismissVariants as So}from"./components/Dismiss.mjs";import{DistributionBar as xo,distributionBarVariants as bo,distributionToneClass as Do}from"./components/DistributionBar.mjs";import{DropdownMenu as Ao,DropdownMenuCheckboxItem as ko,DropdownMenuContent as Lo,DropdownMenuGroup as Mo,DropdownMenuItem as wo,DropdownMenuLabel as Vo,DropdownMenuPortal as Po,DropdownMenuRadioGroup as Ro,DropdownMenuRadioItem as vo,DropdownMenuSeparator as Bo,DropdownMenuShortcut as ho,DropdownMenuSub as Oo,DropdownMenuSubContent as No,DropdownMenuSubTrigger as Wo,DropdownMenuTrigger as Fo}from"./components/DropdownMenu.mjs";import{DatePicker as yo,DatePickerLabel as Ho,DatePickerText as Eo,DatePickerWrapper as _o,DateRangePicker as Ko,datePickerTriggerVariants as Xo}from"./components/DatePicker.mjs";import{INDEX_LEVEL_LABELS as Qo,IndexLevel as Uo,IndexLevelIcon as jo,indexLevelIconVariants as qo,indexLevelVariants as Jo}from"./components/IndexLevel.mjs";import{IndexLevelAnimated as Zo,indexLevelAnimatedVariants as $o}from"./components/IndexLevelAnimated.mjs";import{Input as rt,InputAdornment as ot,InputEndIcon as tt,InputField as at,InputLabel as nt,InputNumeric as it,InputPassword as st,InputStartIcon as lt,InputText as dt,InputWrapper as pt,applyInputIconSize as Ct,inputVariants as ut}from"./components/Input.mjs";import{Label as ct,labelVariants as mt}from"./components/Label.mjs";import{FallbackImage as St}from"./components/FallbackImage.mjs";import{Loading as xt}from"./components/Loading.mjs";import{LoadingOverlay as Dt,LoadingOverlayCard as It,LoadingOverlaySpinner as At}from"./components/LoadingOverlay.mjs";import{Logo as Lt,LogoCircular as Mt,LogoShort as wt}from"./components/Logo.mjs";import{Offcanvas as Pt,OffcanvasBody as Rt,OffcanvasClose as vt,OffcanvasContent as Bt,OffcanvasDescription as ht,OffcanvasFooter as Ot,OffcanvasHeader as Nt,OffcanvasOverlay as Wt,OffcanvasPortal as Ft,OffcanvasTitle as Gt,OffcanvasTrigger as yt}from"./components/Offcanvas.mjs";import{CardOption as Et,CardOptionGroup as _t,cardOptionVariants as Kt}from"./components/CardOption.mjs";import{Pagination as zt,PaginationContent as Qt,PaginationEllipsis as Ut,PaginationInfo as jt,PaginationItem as qt,PaginationLink as Jt,PaginationNext as Yt,PaginationPrevious as Zt,PaginationRoot as $t,calculatePageNumbers as ea}from"./components/Pagination.mjs";import{Progress as oa}from"./components/Progress.mjs";import{ProgressCircle as aa}from"./components/ProgressCircle.mjs";import{RadioGroup as ia,RadioGroupItem as sa,radioGroupVariants as la}from"./components/RadioGroup.mjs";import{Ranking as pa,RankingAssigneeGroup as Ca,RankingAssigneeItem as ua,RankingAssigneeLabel as ga,RankingAssigneesColumn as ca,RankingBody as ma,RankingButton as fa,RankingHeader as Sa,RankingHeaderCell as Ta,RankingItem as xa,RankingNumber as ba,RankingPerformance as Da,RankingPriority as Ia,RankingQuestions as Aa,RankingSpecialty as ka,RankingSuperFocus as La,RankingTopic as Ma,RankingTopicColumn as wa,RankingTopicContent as Va}from"./components/Ranking.mjs";import{Rating as Ra,RatingButtonVariants as va,RatingLabelVariants as Ba,RatingStarVariants as ha}from"./components/Rating.mjs";import{RingCounter as Na,alignToStep as Wa}from"./components/RingCounter.mjs";import{ScrollArea as Ga,ScrollBar as ya}from"./components/ScrollArea.mjs";import{Select as Ea,SelectContent as _a,SelectGroup as Ka,SelectHeader as Xa,SelectItem as za,SelectLabel as Qa,SelectScrollDownButton as Ua,SelectScrollUpButton as ja,SelectSeparator as qa,SelectText as Ja,SelectTrigger as Ya,SelectValue as Za,SelectWrapper as $a,selectVariants as en}from"./components/Select.mjs";import{SegmentControl as on,SegmentControlContent as tn,SegmentControlList as an,SegmentControlTrigger as nn,segmentControlTriggerVariants as sn}from"./components/SegmentControl.mjs";import{Separator as dn}from"./components/Separator.mjs";import{Sidebar as Cn,SidebarContent as un,SidebarFooter as gn,SidebarGroup as cn,SidebarGroupAction as mn,SidebarGroupContent as fn,SidebarGroupLabel as Sn,SidebarHeader as Tn,SidebarInput as xn,SidebarInset as bn,SidebarMenu as Dn,SidebarMenuAction as In,SidebarMenuBadge as An,SidebarMenuButton as kn,SidebarMenuItem as Ln,SidebarMenuItemCollapse as Mn,SidebarMenuItemTitle as wn,SidebarMenuSkeleton as Vn,SidebarMenuSub as Pn,SidebarMenuSubButton as Rn,SidebarMenuSubItem as vn,SidebarProvider as Bn,SidebarRail as hn,SidebarSeparator as On,SidebarTrigger as Nn,useSidebar as Wn}from"./components/Sidebar.mjs";import{Skeleton as Gn}from"./components/Skeleton.mjs";import{SortableList as Hn,moveItem as En}from"./components/SortableList.mjs";import{Switch as Kn,switchVariants as Xn}from"./components/Switch.mjs";import{Switcher as Qn,SwitcherContent as Un,SwitcherFooter as jn,SwitcherGroup as qn,SwitcherItem as Jn,SwitcherSeparator as Yn,SwitcherTrigger as Zn}from"./components/Switcher.mjs";import{Tabs as ei,TabsContent as ri,TabsList as oi,TabsTrigger as ti,tabsContentVariants as ai,tabsListVariants as ni,tabsTriggerVariants as ii}from"./components/Tabs.mjs";import{Tag as li,tagVariants as di}from"./components/Tag.mjs";import{TAG_PICKER_PALETTE as Ci,TagPicker as ui}from"./components/TagPicker.mjs";import{CardTestimonial as ci,cardTestimonialInitials as mi}from"./components/CardTestimonial.mjs";import{TEXT_MARKER_COLORS as Si,TextMarker as Ti,textMarkerMarkVariants as xi}from"./components/TextMarker.mjs";import{Textarea as Di,textareaVariants as Ii}from"./components/Textarea.mjs";import{Tile as ki,TileDescription as Li,TileIcon as Mi,TileTitle as wi,tileVariants as Vi}from"./components/Tile.mjs";import{Toast as Ri,ToastAction as vi,ToastClose as Bi,ToastDescription as hi,ToastProvider as Oi,ToastTitle as Ni,ToastViewport as Wi,toastVariants as Fi}from"./components/Toast.mjs";import{useToast as yi}from"./hooks/use-toast.mjs";import{Tooltip as Ei,TooltipContent as _i,TooltipProvider as Ki,TooltipTrigger as Xi}from"./components/Tooltip.mjs";import{TrailStep as Qi}from"./components/TrailStep.mjs";import{useIsMobile as ji}from"./hooks/use-mobile.mjs";export{o as Alert,t as AlertActions,a as AlertButton,n as AlertContainer,i as AlertContent,s as AlertDescription,g as AlertDialog,c as AlertDialogAction,m as AlertDialogCancel,f as AlertDialogContent,S as AlertDialogDescription,T as AlertDialogFooter,x as AlertDialogHeader,b as AlertDialogIcon,D as AlertDialogOverlay,I as AlertDialogPortal,A as AlertDialogTag,k as AlertDialogTitle,L as AlertDialogTrigger,l as AlertIcon,d as AlertTitle,w as Autocomplete,V as AutocompleteContent,P as AutocompleteContentFooter,R as AutocompleteGroup,v as AutocompleteItem,B as AutocompleteText,h as AutocompleteTrigger,O as AutocompleteWrapper,W as Avatar,F as AvatarFallback,G as AvatarImage,E as Badge,X as Breadcrumb,z as BreadcrumbEllipsis,Q as BreadcrumbItem,U as BreadcrumbLink,j as BreadcrumbList,q as BreadcrumbPage,J as BreadcrumbSeparator,Z as Button,Fe as CardContinue,Ge as CardContinueBreadcrumb,ye as CardContinueButton,He as CardContinueContent,Ee as CardContinueHeader,_e as CardContinueImage,Ke as CardContinueTitle,$e as CardLesson,er as CardLessonButton,rr as CardLessonContent,or as CardLessonDuration,tr as CardLessonFooter,ar as CardLessonHeader,nr as CardLessonIcon,ir as CardLessonIcons,sr as CardLessonImage,lr as CardLessonLabel,dr as CardLessonStatus,pr as CardLessonTitle,ze as CardMission,Qe as CardMissionContent,Ue as CardMissionDescription,je as CardMissionHeader,qe as CardMissionOverline,Je as CardMissionPhase,Ye as CardMissionTitle,fe as CardModule,Se as CardModuleAction,Te as CardModuleButton,xe as CardModuleFooter,be as CardModuleHeader,De as CardModuleLabel,Ie as CardModuleProgress,Ae as CardModuleTitle,gr as CardNews,cr as CardNewsAuthor,mr as CardNewsBody,fr as CardNewsContent,Sr as CardNewsDate,Tr as CardNewsDescription,xr as CardNewsFooter,br as CardNewsHeader,Dr as CardNewsImage,Ir as CardNewsResourceItem,Ar as CardNewsResources,kr as CardNewsTags,Lr as CardNewsTitle,Et as CardOption,_t as CardOptionGroup,ci as CardTestimonial,we as CardTopic,Ve as CardTopicColumn,Pe as CardTopicContent,Re as CardTopicCount,ve as CardTopicNumber,Be as CardTopicProgress,he as CardTopicTitle,Oe as CardTopicTrigger,re as CardWeek,oe as CardWeekActions,te as CardWeekBreadcrumb,ae as CardWeekContainer,ne as CardWeekContent,ie as CardWeekDescription,se as CardWeekFooter,le as CardWeekHeader,de as CardWeekProgress,pe as CardWeekProgressCircle,Ce as CardWeekStatus,ue as CardWeekTags,ge as CardWeekText,ce as CardWeekTitle,wr as Carousel,Vr as CarouselAutoplayToggle,Pr as CarouselContent,Rr as CarouselDots,vr as CarouselItem,Br as CarouselNext,hr as CarouselPrevious,Wr as Checkbox,yr as Chip,Hr as ChipChoice,Er as ChipClear,_r as ChipFilter,Ur as Collapsible,jr as CollapsibleContent,qr as CollapsibleTrigger,Yr as ConfirmDeleteButton,$r as Connector,ro as ConnectorNode,yo as DatePicker,Ho as DatePickerLabel,Eo as DatePickerText,_o as DatePickerWrapper,Ko as DateRangePicker,to as Dialog,ao as DialogClose,no as DialogContainer,io as DialogContent,so as DialogDescription,lo as DialogFooter,po as DialogHeader,Co as DialogOverlay,uo as DialogPortal,go as DialogTitle,co as DialogTrigger,fo as Dismiss,xo as DistributionBar,Ao as DropdownMenu,ko as DropdownMenuCheckboxItem,Lo as DropdownMenuContent,Mo as DropdownMenuGroup,wo as DropdownMenuItem,Vo as DropdownMenuLabel,Po as DropdownMenuPortal,Ro as DropdownMenuRadioGroup,vo as DropdownMenuRadioItem,Bo as DropdownMenuSeparator,ho as DropdownMenuShortcut,Oo as DropdownMenuSub,No as DropdownMenuSubContent,Wo as DropdownMenuSubTrigger,Fo as DropdownMenuTrigger,St as FallbackImage,Qo as INDEX_LEVEL_LABELS,Uo as IndexLevel,Zo as IndexLevelAnimated,jo as IndexLevelIcon,rt as Input,ot as InputAdornment,tt as InputEndIcon,at as InputField,nt as InputLabel,it as InputNumeric,st as InputPassword,lt as InputStartIcon,dt as InputText,pt as InputWrapper,ct as Label,xt as Loading,Dt as LoadingOverlay,It as LoadingOverlayCard,At as LoadingOverlaySpinner,Lt as Logo,Mt as LogoCircular,wt as LogoShort,Pt as Offcanvas,Rt as OffcanvasBody,vt as OffcanvasClose,Bt as OffcanvasContent,ht as OffcanvasDescription,Ot as OffcanvasFooter,Nt as OffcanvasHeader,Wt as OffcanvasOverlay,Ft as OffcanvasPortal,Gt as OffcanvasTitle,yt as OffcanvasTrigger,zt as Pagination,Qt as PaginationContent,Ut as PaginationEllipsis,jt as PaginationInfo,qt as PaginationItem,Jt as PaginationLink,Yt as PaginationNext,Zt as PaginationPrevious,$t as PaginationRoot,oa as Progress,aa as ProgressCircle,ia as RadioGroup,sa as RadioGroupItem,pa as Ranking,Ca as RankingAssigneeGroup,ua as RankingAssigneeItem,ga as RankingAssigneeLabel,ca as RankingAssigneesColumn,ma as RankingBody,fa as RankingButton,Sa as RankingHeader,Ta as RankingHeaderCell,xa as RankingItem,ba as RankingNumber,Da as RankingPerformance,Ia as RankingPriority,Aa as RankingQuestions,ka as RankingSpecialty,La as RankingSuperFocus,Ma as RankingTopic,wa as RankingTopicColumn,Va as RankingTopicContent,Ra as Rating,va as RatingButtonVariants,Ba as RatingLabelVariants,ha as RatingStarVariants,Na as RingCounter,Ga as ScrollArea,ya as ScrollBar,on as SegmentControl,tn as SegmentControlContent,an as SegmentControlList,nn as SegmentControlTrigger,Ea as Select,_a as SelectContent,Ka as SelectGroup,Xa as SelectHeader,za as SelectItem,Qa as SelectLabel,Ua as SelectScrollDownButton,ja as SelectScrollUpButton,qa as SelectSeparator,Ja as SelectText,Ya as SelectTrigger,Za as SelectValue,$a as SelectWrapper,dn as Separator,Cn as Sidebar,un as SidebarContent,gn as SidebarFooter,cn as SidebarGroup,mn as SidebarGroupAction,fn as SidebarGroupContent,Sn as SidebarGroupLabel,Tn as SidebarHeader,xn as SidebarInput,bn as SidebarInset,Dn as SidebarMenu,In as SidebarMenuAction,An as SidebarMenuBadge,kn as SidebarMenuButton,Ln as SidebarMenuItem,Mn as SidebarMenuItemCollapse,wn as SidebarMenuItemTitle,Vn as SidebarMenuSkeleton,Pn as SidebarMenuSub,Rn as SidebarMenuSubButton,vn as SidebarMenuSubItem,Bn as SidebarProvider,hn as SidebarRail,On as SidebarSeparator,Nn as SidebarTrigger,Gn as Skeleton,Hn as SortableList,Kn as Switch,Qn as Switcher,Un as SwitcherContent,jn as SwitcherFooter,qn as SwitcherGroup,Jn as SwitcherItem,Yn as SwitcherSeparator,Zn as SwitcherTrigger,Ci as TAG_PICKER_PALETTE,Si as TEXT_MARKER_COLORS,ei as Tabs,ri as TabsContent,oi as TabsList,ti as TabsTrigger,li as Tag,ui as TagPicker,Ti as TextMarker,Di as Textarea,ki as Tile,Li as TileDescription,Mi as TileIcon,wi as TileTitle,Ri as Toast,vi as ToastAction,Bi as ToastClose,hi as ToastDescription,Oi as ToastProvider,Ni as ToastTitle,Wi as ToastViewport,Ei as Tooltip,_i as TooltipContent,Ki as TooltipProvider,Xi as TooltipTrigger,Qi as TrailStep,p as alertButtonVariants,C as alertVariants,Wa as alignToStep,Ct as applyInputIconSize,y as avatarVariants,_ as badgeVariants,$ as buttonVariants,ea as calculatePageNumbers,Cr as cardLessonVariants,ke as cardModuleStatusVariants,Le as cardModuleVariants,Kt as cardOptionVariants,mi as cardTestimonialInitials,Ne as cardTopicVariants,Fr as checkboxVariants,Kr as chipClearVariants,Xr as chipSelectableVariants,zr as chipVariants,Xo as datePickerTriggerVariants,So as dismissVariants,bo as distributionBarVariants,Do as distributionToneClass,$o as indexLevelAnimatedVariants,qo as indexLevelIconVariants,Jo as indexLevelVariants,ut as inputVariants,mt as labelVariants,En as moveItem,la as radioGroupVariants,sn as segmentControlTriggerVariants,en as selectVariants,Xn as switchVariants,ai as tabsContentVariants,ni as tabsListVariants,ii as tabsTriggerVariants,di as tagVariants,xi as textMarkerMarkVariants,Ii as textareaVariants,Vi as tileVariants,Fi as toastVariants,Or as useCarousel,ji as useIsMobile,Wn as useSidebar,yi as useToast};
2
+ import{Alert as o,AlertActions as a,AlertButton as t,AlertContainer as n,AlertContent as i,AlertDescription as s,AlertIcon as d,AlertTitle as l,alertButtonVariants as p,alertVariants as C}from"./components/Alert.mjs";import{AlertDialog as g,AlertDialogAction as c,AlertDialogCancel as m,AlertDialogContent as f,AlertDialogDescription as S,AlertDialogFooter as T,AlertDialogHeader as x,AlertDialogIcon as b,AlertDialogOverlay as L,AlertDialogPortal as D,AlertDialogTag as A,AlertDialogTitle as I,AlertDialogTrigger as k}from"./components/AlertDialog.mjs";import{Autocomplete as P,AutocompleteContent as w,AutocompleteContentFooter as V,AutocompleteGroup as v,AutocompleteItem as R,AutocompleteText as B,AutocompleteTrigger as h,AutocompleteWrapper as O}from"./components/Autocomplete.mjs";import{Avatar as W,AvatarFallback as F,AvatarImage as y,avatarVariants as G}from"./components/Avatar.mjs";import{Badge as E,badgeVariants as _}from"./components/Badge.mjs";import{Breadcrumb as X,BreadcrumbEllipsis as z,BreadcrumbItem as Q,BreadcrumbLink as U,BreadcrumbList as j,BreadcrumbPage as q,BreadcrumbSeparator as J}from"./components/Breadcrumb.mjs";import{Button as Z,buttonVariants as $}from"./components/Button.mjs";import{CardWeek as re,CardWeekActions as oe,CardWeekBreadcrumb as ae,CardWeekContainer as te,CardWeekContent as ne,CardWeekDescription as ie,CardWeekFooter as se,CardWeekHeader as de,CardWeekProgress as le,CardWeekProgressCircle as pe,CardWeekStatus as Ce,CardWeekTags as ue,CardWeekText as ge,CardWeekTitle as ce}from"./components/CardWeek.mjs";import{CardModule as fe,CardModuleAction as Se,CardModuleButton as Te,CardModuleFooter as xe,CardModuleHeader as be,CardModuleLabel as Le,CardModuleProgress as De,CardModuleTitle as Ae,cardModuleStatusVariants as Ie,cardModuleVariants as ke}from"./components/CardModule.mjs";import{CardTopic as Pe,CardTopicColumn as we,CardTopicContent as Ve,CardTopicCount as ve,CardTopicNumber as Re,CardTopicProgress as Be,CardTopicTitle as he,CardTopicTrigger as Oe,cardTopicVariants as Ne}from"./components/CardTopic.mjs";import{CardContinue as Fe,CardContinueBreadcrumb as ye,CardContinueButton as Ge,CardContinueContent as He,CardContinueHeader as Ee,CardContinueImage as _e,CardContinueTitle as Ke}from"./components/CardContinue.mjs";import{CardMission as ze,CardMissionContent as Qe,CardMissionDescription as Ue,CardMissionHeader as je,CardMissionOverline as qe,CardMissionPhase as Je,CardMissionTitle as Ye}from"./components/CardMission.mjs";import{CardLearn as $e,CardLearnActions as er,CardLearnBadge as rr,CardLearnCategory as or,CardLearnContent as ar,CardLearnDescription as tr,CardLearnFooter as nr,CardLearnHeader as ir,CardLearnHeading as sr,CardLearnIndicators as dr,CardLearnLesson as lr,CardLearnMeta as pr,CardLearnMore as Cr,CardLearnPlayButton as ur,CardLearnProgress as gr,CardLearnProgressLabel as cr,CardLearnSchedule as mr,CardLearnStatus as fr,CardLearnThumbnail as Sr,CardLearnTimeRemaining as Tr,CardLearnTitle as xr}from"./components/CardLearn.mjs";import{CardLesson as Lr,CardLessonButton as Dr,CardLessonContent as Ar,CardLessonDuration as Ir,CardLessonFooter as kr,CardLessonHeader as Mr,CardLessonIcon as Pr,CardLessonIcons as wr,CardLessonImage as Vr,CardLessonLabel as vr,CardLessonStatus as Rr,CardLessonTitle as Br,cardLessonVariants as hr}from"./components/CardLesson.mjs";import{CardNews as Nr,CardNewsAuthor as Wr,CardNewsBody as Fr,CardNewsContent as yr,CardNewsDate as Gr,CardNewsDescription as Hr,CardNewsFooter as Er,CardNewsHeader as _r,CardNewsImage as Kr,CardNewsResourceItem as Xr,CardNewsResources as zr,CardNewsTags as Qr,CardNewsTitle as Ur}from"./components/CardNews.mjs";import{Carousel as qr,CarouselAutoplayToggle as Jr,CarouselContent as Yr,CarouselDots as Zr,CarouselItem as $r,CarouselNext as eo,CarouselPrevious as ro,useCarousel as oo}from"./components/Carousel.mjs";import{Checkbox as to,checkboxVariants as no}from"./components/Checkbox.mjs";import{Chip as so,ChipChoice as lo,ChipClear as po,ChipFilter as Co,chipClearVariants as uo,chipSelectableVariants as go,chipVariants as co}from"./components/Chip.mjs";import{Collapsible as fo,CollapsibleContent as So,CollapsibleTrigger as To}from"./components/Collapsible.mjs";import{ConfirmDeleteButton as bo}from"./components/ConfirmDeleteButton.mjs";import{Connector as Do}from"./components/Connector.mjs";import{ConnectorNode as Io}from"./components/ConnectorNode.mjs";import{Dialog as Mo,DialogClose as Po,DialogContainer as wo,DialogContent as Vo,DialogDescription as vo,DialogFooter as Ro,DialogHeader as Bo,DialogOverlay as ho,DialogPortal as Oo,DialogTitle as No,DialogTrigger as Wo}from"./components/Dialog.mjs";import{Dismiss as yo,dismissVariants as Go}from"./components/Dismiss.mjs";import{DistributionBar as Eo,distributionBarVariants as _o,distributionToneClass as Ko}from"./components/DistributionBar.mjs";import{DropdownMenu as zo,DropdownMenuCheckboxItem as Qo,DropdownMenuContent as Uo,DropdownMenuGroup as jo,DropdownMenuItem as qo,DropdownMenuLabel as Jo,DropdownMenuPortal as Yo,DropdownMenuRadioGroup as Zo,DropdownMenuRadioItem as $o,DropdownMenuSeparator as ea,DropdownMenuShortcut as ra,DropdownMenuSub as oa,DropdownMenuSubContent as aa,DropdownMenuSubTrigger as ta,DropdownMenuTrigger as na}from"./components/DropdownMenu.mjs";import{DatePicker as sa,DatePickerLabel as da,DatePickerText as la,DatePickerWrapper as pa,DateRangePicker as Ca,datePickerTriggerVariants as ua}from"./components/DatePicker.mjs";import{INDEX_LEVEL_LABELS as ca,IndexLevel as ma,IndexLevelIcon as fa,indexLevelIconVariants as Sa,indexLevelVariants as Ta}from"./components/IndexLevel.mjs";import{IndexLevelAnimated as ba,indexLevelAnimatedVariants as La}from"./components/IndexLevelAnimated.mjs";import{Input as Aa,InputAdornment as Ia,InputEndIcon as ka,InputField as Ma,InputLabel as Pa,InputNumeric as wa,InputPassword as Va,InputStartIcon as va,InputText as Ra,InputWrapper as Ba,applyInputIconSize as ha,inputVariants as Oa}from"./components/Input.mjs";import{Label as Wa,labelVariants as Fa}from"./components/Label.mjs";import{FallbackImage as Ga}from"./components/FallbackImage.mjs";import{Loading as Ea}from"./components/Loading.mjs";import{LoadingOverlay as Ka,LoadingOverlayCard as Xa,LoadingOverlaySpinner as za}from"./components/LoadingOverlay.mjs";import{Logo as Ua,LogoCircular as ja,LogoShort as qa}from"./components/Logo.mjs";import{Offcanvas as Ya,OffcanvasBody as Za,OffcanvasClose as $a,OffcanvasContent as et,OffcanvasDescription as rt,OffcanvasFooter as ot,OffcanvasHeader as at,OffcanvasOverlay as tt,OffcanvasPortal as nt,OffcanvasTitle as it,OffcanvasTrigger as st}from"./components/Offcanvas.mjs";import{CardOption as lt,CardOptionGroup as pt,cardOptionVariants as Ct}from"./components/CardOption.mjs";import{Pagination as gt,PaginationContent as ct,PaginationEllipsis as mt,PaginationInfo as ft,PaginationItem as St,PaginationLink as Tt,PaginationNext as xt,PaginationPrevious as bt,PaginationRoot as Lt,calculatePageNumbers as Dt}from"./components/Pagination.mjs";import{Popover as It,PopoverAnchor as kt,PopoverContent as Mt,PopoverTrigger as Pt}from"./components/Popover.mjs";import{Progress as Vt}from"./components/Progress.mjs";import{ProgressCircle as Rt}from"./components/ProgressCircle.mjs";import{RadioGroup as ht,RadioGroupItem as Ot,radioGroupVariants as Nt}from"./components/RadioGroup.mjs";import{Ranking as Ft,RankingAssigneeGroup as yt,RankingAssigneeItem as Gt,RankingAssigneeLabel as Ht,RankingAssigneesColumn as Et,RankingBody as _t,RankingButton as Kt,RankingHeader as Xt,RankingHeaderCell as zt,RankingItem as Qt,RankingNumber as Ut,RankingPerformance as jt,RankingPriority as qt,RankingQuestions as Jt,RankingSpecialty as Yt,RankingSuperFocus as Zt,RankingTopic as $t,RankingTopicColumn as en,RankingTopicContent as rn}from"./components/Ranking.mjs";import{Rating as an,RatingButtonVariants as tn,RatingLabelVariants as nn,RatingStarVariants as sn}from"./components/Rating.mjs";import{RingCounter as ln,alignToStep as pn}from"./components/RingCounter.mjs";import{ScrollArea as un,ScrollBar as gn}from"./components/ScrollArea.mjs";import{Select as mn,SelectContent as fn,SelectGroup as Sn,SelectHeader as Tn,SelectItem as xn,SelectLabel as bn,SelectScrollDownButton as Ln,SelectScrollUpButton as Dn,SelectSeparator as An,SelectText as In,SelectTrigger as kn,SelectValue as Mn,SelectWrapper as Pn,selectVariants as wn}from"./components/Select.mjs";import{SegmentControl as vn,SegmentControlContent as Rn,SegmentControlList as Bn,SegmentControlTrigger as hn,segmentControlTriggerVariants as On}from"./components/SegmentControl.mjs";import{Separator as Wn}from"./components/Separator.mjs";import{Sidebar as yn,SidebarContent as Gn,SidebarFooter as Hn,SidebarGroup as En,SidebarGroupAction as _n,SidebarGroupContent as Kn,SidebarGroupLabel as Xn,SidebarHeader as zn,SidebarInput as Qn,SidebarInset as Un,SidebarMenu as jn,SidebarMenuAction as qn,SidebarMenuBadge as Jn,SidebarMenuButton as Yn,SidebarMenuItem as Zn,SidebarMenuItemCollapse as $n,SidebarMenuItemTitle as ei,SidebarMenuSkeleton as ri,SidebarMenuSub as oi,SidebarMenuSubButton as ai,SidebarMenuSubItem as ti,SidebarProvider as ni,SidebarRail as ii,SidebarSeparator as si,SidebarTrigger as di,useSidebar as li,useSidebarSearch as pi}from"./components/Sidebar.mjs";import{Skeleton as ui}from"./components/Skeleton.mjs";import{SortableList as ci,moveItem as mi}from"./components/SortableList.mjs";import{Switch as Si,switchVariants as Ti}from"./components/Switch.mjs";import{Switcher as bi,SwitcherContent as Li,SwitcherFooter as Di,SwitcherGroup as Ai,SwitcherItem as Ii,SwitcherSeparator as ki,SwitcherTrigger as Mi}from"./components/Switcher.mjs";import{Tabs as wi,TabsContent as Vi,TabsList as vi,TabsTrigger as Ri,tabsContentVariants as Bi,tabsListVariants as hi,tabsTriggerVariants as Oi}from"./components/Tabs.mjs";import{Tag as Wi,tagVariants as Fi}from"./components/Tag.mjs";import{TAG_PICKER_PALETTE as Gi,TagPicker as Hi}from"./components/TagPicker.mjs";import{CardTestimonial as _i,cardTestimonialInitials as Ki}from"./components/CardTestimonial.mjs";import{TEXT_MARKER_COLORS as zi,TextMarker as Qi,textMarkerMarkVariants as Ui}from"./components/TextMarker.mjs";import{Textarea as qi,textareaVariants as Ji}from"./components/Textarea.mjs";import{Tile as Zi,TileDescription as $i,TileIcon as es,TileTitle as rs,tileVariants as os}from"./components/Tile.mjs";import{Toast as ts,ToastAction as ns,ToastClose as is,ToastDescription as ss,ToastProvider as ds,ToastTitle as ls,ToastViewport as ps,toastVariants as Cs}from"./components/Toast.mjs";import{useToast as gs}from"./hooks/use-toast.mjs";import{Tooltip as ms,TooltipContent as fs,TooltipProvider as Ss,TooltipTrigger as Ts}from"./components/Tooltip.mjs";import{TrailStep as bs}from"./components/TrailStep.mjs";import{useIsMobile as Ds}from"./hooks/use-mobile.mjs";export{o as Alert,a as AlertActions,t as AlertButton,n as AlertContainer,i as AlertContent,s as AlertDescription,g as AlertDialog,c as AlertDialogAction,m as AlertDialogCancel,f as AlertDialogContent,S as AlertDialogDescription,T as AlertDialogFooter,x as AlertDialogHeader,b as AlertDialogIcon,L as AlertDialogOverlay,D as AlertDialogPortal,A as AlertDialogTag,I as AlertDialogTitle,k as AlertDialogTrigger,d as AlertIcon,l as AlertTitle,P as Autocomplete,w as AutocompleteContent,V as AutocompleteContentFooter,v as AutocompleteGroup,R as AutocompleteItem,B as AutocompleteText,h as AutocompleteTrigger,O as AutocompleteWrapper,W as Avatar,F as AvatarFallback,y as AvatarImage,E as Badge,X as Breadcrumb,z as BreadcrumbEllipsis,Q as BreadcrumbItem,U as BreadcrumbLink,j as BreadcrumbList,q as BreadcrumbPage,J as BreadcrumbSeparator,Z as Button,Fe as CardContinue,ye as CardContinueBreadcrumb,Ge as CardContinueButton,He as CardContinueContent,Ee as CardContinueHeader,_e as CardContinueImage,Ke as CardContinueTitle,$e as CardLearn,er as CardLearnActions,rr as CardLearnBadge,or as CardLearnCategory,ar as CardLearnContent,tr as CardLearnDescription,nr as CardLearnFooter,ir as CardLearnHeader,sr as CardLearnHeading,dr as CardLearnIndicators,lr as CardLearnLesson,pr as CardLearnMeta,Cr as CardLearnMore,ur as CardLearnPlayButton,gr as CardLearnProgress,cr as CardLearnProgressLabel,mr as CardLearnSchedule,fr as CardLearnStatus,Sr as CardLearnThumbnail,Tr as CardLearnTimeRemaining,xr as CardLearnTitle,Lr as CardLesson,Dr as CardLessonButton,Ar as CardLessonContent,Ir as CardLessonDuration,kr as CardLessonFooter,Mr as CardLessonHeader,Pr as CardLessonIcon,wr as CardLessonIcons,Vr as CardLessonImage,vr as CardLessonLabel,Rr as CardLessonStatus,Br as CardLessonTitle,ze as CardMission,Qe as CardMissionContent,Ue as CardMissionDescription,je as CardMissionHeader,qe as CardMissionOverline,Je as CardMissionPhase,Ye as CardMissionTitle,fe as CardModule,Se as CardModuleAction,Te as CardModuleButton,xe as CardModuleFooter,be as CardModuleHeader,Le as CardModuleLabel,De as CardModuleProgress,Ae as CardModuleTitle,Nr as CardNews,Wr as CardNewsAuthor,Fr as CardNewsBody,yr as CardNewsContent,Gr as CardNewsDate,Hr as CardNewsDescription,Er as CardNewsFooter,_r as CardNewsHeader,Kr as CardNewsImage,Xr as CardNewsResourceItem,zr as CardNewsResources,Qr as CardNewsTags,Ur as CardNewsTitle,lt as CardOption,pt as CardOptionGroup,_i as CardTestimonial,Pe as CardTopic,we as CardTopicColumn,Ve as CardTopicContent,ve as CardTopicCount,Re as CardTopicNumber,Be as CardTopicProgress,he as CardTopicTitle,Oe as CardTopicTrigger,re as CardWeek,oe as CardWeekActions,ae as CardWeekBreadcrumb,te as CardWeekContainer,ne as CardWeekContent,ie as CardWeekDescription,se as CardWeekFooter,de as CardWeekHeader,le as CardWeekProgress,pe as CardWeekProgressCircle,Ce as CardWeekStatus,ue as CardWeekTags,ge as CardWeekText,ce as CardWeekTitle,qr as Carousel,Jr as CarouselAutoplayToggle,Yr as CarouselContent,Zr as CarouselDots,$r as CarouselItem,eo as CarouselNext,ro as CarouselPrevious,to as Checkbox,so as Chip,lo as ChipChoice,po as ChipClear,Co as ChipFilter,fo as Collapsible,So as CollapsibleContent,To as CollapsibleTrigger,bo as ConfirmDeleteButton,Do as Connector,Io as ConnectorNode,sa as DatePicker,da as DatePickerLabel,la as DatePickerText,pa as DatePickerWrapper,Ca as DateRangePicker,Mo as Dialog,Po as DialogClose,wo as DialogContainer,Vo as DialogContent,vo as DialogDescription,Ro as DialogFooter,Bo as DialogHeader,ho as DialogOverlay,Oo as DialogPortal,No as DialogTitle,Wo as DialogTrigger,yo as Dismiss,Eo as DistributionBar,zo as DropdownMenu,Qo as DropdownMenuCheckboxItem,Uo as DropdownMenuContent,jo as DropdownMenuGroup,qo as DropdownMenuItem,Jo as DropdownMenuLabel,Yo as DropdownMenuPortal,Zo as DropdownMenuRadioGroup,$o as DropdownMenuRadioItem,ea as DropdownMenuSeparator,ra as DropdownMenuShortcut,oa as DropdownMenuSub,aa as DropdownMenuSubContent,ta as DropdownMenuSubTrigger,na as DropdownMenuTrigger,Ga as FallbackImage,ca as INDEX_LEVEL_LABELS,ma as IndexLevel,ba as IndexLevelAnimated,fa as IndexLevelIcon,Aa as Input,Ia as InputAdornment,ka as InputEndIcon,Ma as InputField,Pa as InputLabel,wa as InputNumeric,Va as InputPassword,va as InputStartIcon,Ra as InputText,Ba as InputWrapper,Wa as Label,Ea as Loading,Ka as LoadingOverlay,Xa as LoadingOverlayCard,za as LoadingOverlaySpinner,Ua as Logo,ja as LogoCircular,qa as LogoShort,Ya as Offcanvas,Za as OffcanvasBody,$a as OffcanvasClose,et as OffcanvasContent,rt as OffcanvasDescription,ot as OffcanvasFooter,at as OffcanvasHeader,tt as OffcanvasOverlay,nt as OffcanvasPortal,it as OffcanvasTitle,st as OffcanvasTrigger,gt as Pagination,ct as PaginationContent,mt as PaginationEllipsis,ft as PaginationInfo,St as PaginationItem,Tt as PaginationLink,xt as PaginationNext,bt as PaginationPrevious,Lt as PaginationRoot,It as Popover,kt as PopoverAnchor,Mt as PopoverContent,Pt as PopoverTrigger,Vt as Progress,Rt as ProgressCircle,ht as RadioGroup,Ot as RadioGroupItem,Ft as Ranking,yt as RankingAssigneeGroup,Gt as RankingAssigneeItem,Ht as RankingAssigneeLabel,Et as RankingAssigneesColumn,_t as RankingBody,Kt as RankingButton,Xt as RankingHeader,zt as RankingHeaderCell,Qt as RankingItem,Ut as RankingNumber,jt as RankingPerformance,qt as RankingPriority,Jt as RankingQuestions,Yt as RankingSpecialty,Zt as RankingSuperFocus,$t as RankingTopic,en as RankingTopicColumn,rn as RankingTopicContent,an as Rating,tn as RatingButtonVariants,nn as RatingLabelVariants,sn as RatingStarVariants,ln as RingCounter,un as ScrollArea,gn as ScrollBar,vn as SegmentControl,Rn as SegmentControlContent,Bn as SegmentControlList,hn as SegmentControlTrigger,mn as Select,fn as SelectContent,Sn as SelectGroup,Tn as SelectHeader,xn as SelectItem,bn as SelectLabel,Ln as SelectScrollDownButton,Dn as SelectScrollUpButton,An as SelectSeparator,In as SelectText,kn as SelectTrigger,Mn as SelectValue,Pn as SelectWrapper,Wn as Separator,yn as Sidebar,Gn as SidebarContent,Hn as SidebarFooter,En as SidebarGroup,_n as SidebarGroupAction,Kn as SidebarGroupContent,Xn as SidebarGroupLabel,zn as SidebarHeader,Qn as SidebarInput,Un as SidebarInset,jn as SidebarMenu,qn as SidebarMenuAction,Jn as SidebarMenuBadge,Yn as SidebarMenuButton,Zn as SidebarMenuItem,$n as SidebarMenuItemCollapse,ei as SidebarMenuItemTitle,ri as SidebarMenuSkeleton,oi as SidebarMenuSub,ai as SidebarMenuSubButton,ti as SidebarMenuSubItem,ni as SidebarProvider,ii as SidebarRail,si as SidebarSeparator,di as SidebarTrigger,ui as Skeleton,ci as SortableList,Si as Switch,bi as Switcher,Li as SwitcherContent,Di as SwitcherFooter,Ai as SwitcherGroup,Ii as SwitcherItem,ki as SwitcherSeparator,Mi as SwitcherTrigger,Gi as TAG_PICKER_PALETTE,zi as TEXT_MARKER_COLORS,wi as Tabs,Vi as TabsContent,vi as TabsList,Ri as TabsTrigger,Wi as Tag,Hi as TagPicker,Qi as TextMarker,qi as Textarea,Zi as Tile,$i as TileDescription,es as TileIcon,rs as TileTitle,ts as Toast,ns as ToastAction,is as ToastClose,ss as ToastDescription,ds as ToastProvider,ls as ToastTitle,ps as ToastViewport,ms as Tooltip,fs as TooltipContent,Ss as TooltipProvider,Ts as TooltipTrigger,bs as TrailStep,p as alertButtonVariants,C as alertVariants,pn as alignToStep,ha as applyInputIconSize,G as avatarVariants,_ as badgeVariants,$ as buttonVariants,Dt as calculatePageNumbers,hr as cardLessonVariants,Ie as cardModuleStatusVariants,ke as cardModuleVariants,Ct as cardOptionVariants,Ki as cardTestimonialInitials,Ne as cardTopicVariants,no as checkboxVariants,uo as chipClearVariants,go as chipSelectableVariants,co as chipVariants,ua as datePickerTriggerVariants,Go as dismissVariants,_o as distributionBarVariants,Ko as distributionToneClass,La as indexLevelAnimatedVariants,Sa as indexLevelIconVariants,Ta as indexLevelVariants,Oa as inputVariants,Fa as labelVariants,mi as moveItem,Nt as radioGroupVariants,On as segmentControlTriggerVariants,wn as selectVariants,Ti as switchVariants,Bi as tabsContentVariants,hi as tabsListVariants,Oi as tabsTriggerVariants,Fi as tagVariants,Ui as textMarkerMarkVariants,Ji as textareaVariants,os as tileVariants,Cs as toastVariants,oo as useCarousel,Ds as useIsMobile,li as useSidebar,pi as useSidebarSearch,gs as useToast};
@@ -0,0 +1,2 @@
1
+ /** `true` dentro de um `SidebarContent` enquanto há texto na busca da sidebar. */
2
+ export declare const SidebarSearchActiveContext: import("react").Context<boolean>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ "use client";
3
+ "use strict";var e=require("react");const t=e.createContext(!1);exports.SidebarSearchActiveContext=t;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ "use client";
3
+ import{createContext as e}from"react";const t=e(!1);export{t as SidebarSearchActiveContext};
@@ -2,3 +2,8 @@ import { type ClassValue } from "clsx";
2
2
  export declare function cn(...inputs: ClassValue[]): string;
3
3
  export declare function badgeAccessibleName(badge: number | string): string;
4
4
  export declare function clampPercentage(value: number): number;
5
+ /**
6
+ * Normaliza um texto para busca: sem acentos, sem espaços nas pontas e em
7
+ * minúsculas. "Calendário " e "calendario" viram o mesmo texto.
8
+ */
9
+ export declare function normalizeSearchText(value: string): string;