@uibot/registry 0.18.1 → 0.20.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 (121) hide show
  1. package/README.md +59 -0
  2. package/dist/component-replacement.d.ts +10 -0
  3. package/dist/distribution-snapshot.d.ts +22 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.js +11 -11
  6. package/dist/resource-query.d.ts +4 -0
  7. package/dist/resources.d.ts +4 -0
  8. package/dist/resources.js +3 -3
  9. package/dist/shadcn/r/admin-apps.json +61 -0
  10. package/dist/shadcn/r/admin-chats.json +54 -0
  11. package/dist/shadcn/r/admin-error-401.json +54 -0
  12. package/dist/shadcn/r/admin-error-403.json +54 -0
  13. package/dist/shadcn/r/admin-error-404.json +54 -0
  14. package/dist/shadcn/r/admin-error-500.json +54 -0
  15. package/dist/shadcn/r/admin-error-503.json +54 -0
  16. package/dist/shadcn/r/admin-forgot-password.json +59 -0
  17. package/dist/shadcn/r/admin-help.json +53 -0
  18. package/dist/shadcn/r/admin-otp.json +59 -0
  19. package/dist/shadcn/r/admin-overview.json +62 -0
  20. package/dist/shadcn/r/admin-settings-account.json +61 -0
  21. package/dist/shadcn/r/admin-settings-appearance.json +61 -0
  22. package/dist/shadcn/r/admin-settings-display.json +61 -0
  23. package/dist/shadcn/r/admin-settings-notifications.json +61 -0
  24. package/dist/shadcn/r/admin-settings-profile.json +61 -0
  25. package/dist/shadcn/r/admin-settings.json +65 -0
  26. package/dist/shadcn/r/admin-shell.json +25 -6
  27. package/dist/shadcn/r/admin-sign-in-2.json +67 -0
  28. package/dist/shadcn/r/admin-sign-in.json +59 -0
  29. package/dist/shadcn/r/admin-sign-up.json +59 -0
  30. package/dist/shadcn/r/admin-tasks.json +66 -0
  31. package/dist/shadcn/r/admin-users.json +66 -0
  32. package/dist/shadcn/r/auth-01.json +24 -0
  33. package/dist/shadcn/r/auth-02.json +24 -0
  34. package/dist/shadcn/r/auth-03.json +24 -0
  35. package/dist/shadcn/r/auth-04.json +24 -0
  36. package/dist/shadcn/r/auth-05.json +24 -0
  37. package/dist/shadcn/r/auth-centered.json +61 -0
  38. package/dist/shadcn/r/auth-enterprise.json +61 -0
  39. package/dist/shadcn/r/auth-primitives.json +58 -0
  40. package/dist/shadcn/r/auth-recovery.json +64 -0
  41. package/dist/shadcn/r/auth-registration.json +63 -0
  42. package/dist/shadcn/r/auth-split.json +67 -0
  43. package/dist/shadcn/r/auth.json +13 -13
  44. package/dist/shadcn/r/charts.json +45 -18
  45. package/dist/shadcn/r/chat-artifact.json +49 -0
  46. package/dist/shadcn/r/chat-focused.json +49 -0
  47. package/dist/shadcn/r/chat-history.json +49 -0
  48. package/dist/shadcn/r/chat-knowledge.json +49 -0
  49. package/dist/shadcn/r/chat-support.json +49 -0
  50. package/dist/shadcn/r/chat-workspace.json +136 -0
  51. package/dist/shadcn/r/collection-cell-editor.json +6 -6
  52. package/dist/shadcn/r/collection-panel-drawer.json +2 -2
  53. package/dist/shadcn/r/collection-record-menu.json +2 -2
  54. package/dist/shadcn/r/collection-shared.json +2 -2
  55. package/dist/shadcn/r/commerce-workspace.json +69 -0
  56. package/dist/shadcn/r/console-billing.json +68 -0
  57. package/dist/shadcn/r/console-page.json +289 -0
  58. package/dist/shadcn/r/console-shell.json +29 -0
  59. package/dist/shadcn/r/content.json +1 -1
  60. package/dist/shadcn/r/creation-html-generation.json +3 -3
  61. package/dist/shadcn/r/creation-reference-generation.json +3 -3
  62. package/dist/shadcn/r/creation-revision-export.json +3 -3
  63. package/dist/shadcn/r/creation-shared.json +3 -3
  64. package/dist/shadcn/r/creation-variant-compare.json +4 -4
  65. package/dist/shadcn/r/creation-workspace.json +4 -4
  66. package/dist/shadcn/r/crm-workspace.json +73 -0
  67. package/dist/shadcn/r/dashboard-01.json +78 -0
  68. package/dist/shadcn/r/dashboard.json +114 -4
  69. package/dist/shadcn/r/data-studio.json +1 -1
  70. package/dist/shadcn/r/data-table.json +138 -10
  71. package/dist/shadcn/r/data.json +88 -11
  72. package/dist/shadcn/r/document-assistant.json +54 -0
  73. package/dist/shadcn/r/document-library.json +49 -0
  74. package/dist/shadcn/r/document-reading.json +49 -0
  75. package/dist/shadcn/r/document-workspace.json +164 -0
  76. package/dist/shadcn/r/document-writing.json +49 -0
  77. package/dist/shadcn/r/drilldown-menu.json +233 -0
  78. package/dist/shadcn/r/education-workspace.json +82 -0
  79. package/dist/shadcn/r/feedback.json +19 -6
  80. package/dist/shadcn/r/field.json +1 -1
  81. package/dist/shadcn/r/form.json +12 -12
  82. package/dist/shadcn/r/grid.json +1 -1
  83. package/dist/shadcn/r/interactive.json +1 -1
  84. package/dist/shadcn/r/item-grid.json +219 -0
  85. package/dist/shadcn/r/kanban.json +1 -1
  86. package/dist/shadcn/r/layout.json +217 -18
  87. package/dist/shadcn/r/marketing.json +1 -1
  88. package/dist/shadcn/r/nav.json +39 -11
  89. package/dist/shadcn/r/presentation.json +1 -1
  90. package/dist/shadcn/r/preview-device-frame.json +2 -2
  91. package/dist/shadcn/r/primitives.json +2 -2
  92. package/dist/shadcn/r/sections.json +1 -1
  93. package/dist/shadcn/r/shadcn-admin-shell.json +1 -1
  94. package/dist/shadcn/r/shadcn-admin.json +23 -22
  95. package/dist/shadcn/r/sidebar-01.json +42 -0
  96. package/dist/shadcn/r/sidebar-02.json +42 -0
  97. package/dist/shadcn/r/sidebar-03.json +30 -0
  98. package/dist/shadcn/r/sidebar-04.json +30 -0
  99. package/dist/shadcn/r/sidebar-05.json +36 -0
  100. package/dist/shadcn/r/sidebar-06.json +42 -0
  101. package/dist/shadcn/r/sidebar-07.json +54 -0
  102. package/dist/shadcn/r/sidebar-08.json +54 -0
  103. package/dist/shadcn/r/sidebar-09.json +36 -0
  104. package/dist/shadcn/r/sidebar-10.json +66 -0
  105. package/dist/shadcn/r/sidebar-11.json +30 -0
  106. package/dist/shadcn/r/sidebar-12.json +48 -0
  107. package/dist/shadcn/r/sidebar-13.json +30 -0
  108. package/dist/shadcn/r/sidebar-14.json +30 -0
  109. package/dist/shadcn/r/sidebar-15.json +84 -0
  110. package/dist/shadcn/r/sidebar-16.json +66 -0
  111. package/dist/shadcn/r/sidebar-drilldown.json +29 -0
  112. package/dist/shadcn/r/sidebar-primitives.json +155 -0
  113. package/dist/shadcn/r/uibot-base.json +3 -3
  114. package/dist/shadcn/r/workspace.json +11 -4
  115. package/dist/shadcn/registry.json +1016 -176
  116. package/dist/shadcn.d.ts +0 -39
  117. package/dist/solution-composition.d.ts +45 -0
  118. package/dist/solution-regions.d.ts +3 -0
  119. package/dist/solution-spec.d.ts +7 -0
  120. package/dist/template-source.d.ts +2 -0
  121. package/package.json +2 -2
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "sidebar-16",
4
+ "type": "registry:block",
5
+ "description": "A sidebar with a sticky site header.",
6
+ "dependencies": [
7
+ "react@19.3.0"
8
+ ],
9
+ "registryDependencies": [
10
+ "@uibot/sidebar-primitives"
11
+ ],
12
+ "files": [
13
+ {
14
+ "path": "components/uibot/sidebars/sidebar-16.tsx",
15
+ "target": "components/uibot/sidebars/sidebar-16.tsx",
16
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\nimport { AppSidebar } from \"./sidebar-16-app-sidebar\";\nimport { SiteHeader } from \"./sidebar-16-site-header\";\nimport { SidebarInset, SidebarProvider } from \"./ui-sidebar\";\n\nexport const iframeHeight = \"800px\";\n\nexport const description = \"A sidebar with a header and a search form.\";\n\nexport default function Page({ defaultOpen = true }: { defaultOpen?: boolean } = {}) {\n return (\n <div className=\"[--header-height:calc(--spacing(14))]\">\n <SidebarProvider defaultOpen={defaultOpen} className=\"flex flex-col\">\n <SiteHeader />\n <div className=\"flex flex-1\">\n <AppSidebar />\n <SidebarInset>\n <div className=\"flex flex-1 flex-col gap-4 p-4\">\n <div className=\"grid auto-rows-min gap-4 md:grid-cols-3\">\n <div className=\"aspect-video rounded-xl bg-muted/50\" />\n <div className=\"aspect-video rounded-xl bg-muted/50\" />\n <div className=\"aspect-video rounded-xl bg-muted/50\" />\n </div>\n <div className=\"min-h-[100vh] flex-1 rounded-xl bg-muted/50 md:min-h-min\" />\n </div>\n </SidebarInset>\n </div>\n </SidebarProvider>\n </div>\n );\n}\n",
17
+ "type": "registry:component"
18
+ },
19
+ {
20
+ "path": "components/uibot/sidebars/sidebar-16-app-sidebar.tsx",
21
+ "target": "components/uibot/sidebars/sidebar-16-app-sidebar.tsx",
22
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport type * as React from \"react\";\nimport {\n BookOpen,\n Bot,\n Command,\n Frame,\n LifeBuoy,\n Map as MapIcon,\n PieChart,\n Send,\n Settings2,\n SquareTerminal,\n} from \"lucide-react\";\n\nimport { NavMain } from \"./sidebar-16-nav-main\";\nimport { NavProjects } from \"./sidebar-16-nav-projects\";\nimport { NavSecondary } from \"./sidebar-16-nav-secondary\";\nimport { NavUser } from \"./sidebar-16-nav-user\";\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"./ui-sidebar\";\n\nconst data = {\n user: {\n name: \"shadcn\",\n email: \"m@example.com\",\n avatar: \"\",\n },\n navMain: [\n {\n title: \"Playground\",\n url: \"#\",\n icon: SquareTerminal,\n isActive: true,\n items: [\n {\n title: \"History\",\n url: \"#\",\n },\n {\n title: \"Starred\",\n url: \"#\",\n },\n {\n title: \"Settings\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Models\",\n url: \"#\",\n icon: Bot,\n items: [\n {\n title: \"Genesis\",\n url: \"#\",\n },\n {\n title: \"Explorer\",\n url: \"#\",\n },\n {\n title: \"Quantum\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Documentation\",\n url: \"#\",\n icon: BookOpen,\n items: [\n {\n title: \"Introduction\",\n url: \"#\",\n },\n {\n title: \"Get Started\",\n url: \"#\",\n },\n {\n title: \"Tutorials\",\n url: \"#\",\n },\n {\n title: \"Changelog\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Settings\",\n url: \"#\",\n icon: Settings2,\n items: [\n {\n title: \"General\",\n url: \"#\",\n },\n {\n title: \"Team\",\n url: \"#\",\n },\n {\n title: \"Billing\",\n url: \"#\",\n },\n {\n title: \"Limits\",\n url: \"#\",\n },\n ],\n },\n ],\n navSecondary: [\n {\n title: \"Support\",\n url: \"#\",\n icon: LifeBuoy,\n },\n {\n title: \"Feedback\",\n url: \"#\",\n icon: Send,\n },\n ],\n projects: [\n {\n name: \"Design Engineering\",\n url: \"#\",\n icon: Frame,\n },\n {\n name: \"Sales & Marketing\",\n url: \"#\",\n icon: PieChart,\n },\n {\n name: \"Travel\",\n url: \"#\",\n icon: MapIcon,\n },\n ],\n};\n\nexport function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {\n return (\n <Sidebar className=\"top-(--header-height) h-[calc(100svh-var(--header-height))]!\" {...props}>\n <SidebarHeader>\n <SidebarMenu>\n <SidebarMenuItem>\n <SidebarMenuButton size=\"lg\" asChild>\n <a href=\"#\">\n <div className=\"flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground\">\n <Command className=\"size-4\" />\n </div>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-medium\">Acme Inc</span>\n <span className=\"truncate text-xs\">Enterprise</span>\n </div>\n </a>\n </SidebarMenuButton>\n </SidebarMenuItem>\n </SidebarMenu>\n </SidebarHeader>\n <SidebarContent>\n <NavMain items={data.navMain} />\n <NavProjects projects={data.projects} />\n <NavSecondary items={data.navSecondary} className=\"mt-auto\" />\n </SidebarContent>\n <SidebarFooter>\n <NavUser user={data.user} />\n </SidebarFooter>\n </Sidebar>\n );\n}\n",
23
+ "type": "registry:component"
24
+ },
25
+ {
26
+ "path": "components/uibot/sidebars/sidebar-16-nav-main.tsx",
27
+ "target": "components/uibot/sidebars/sidebar-16-nav-main.tsx",
28
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport { ChevronRight, type LucideIcon } from \"lucide-react\";\n\nimport { Collapsible, CollapsibleContent, CollapsibleTrigger } from \"./ui-collapsible\";\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n} from \"./ui-sidebar\";\n\nexport function NavMain({\n items,\n}: {\n items: {\n title: string;\n url: string;\n icon: LucideIcon;\n isActive?: boolean;\n items?: {\n title: string;\n url: string;\n }[];\n }[];\n}) {\n return (\n <SidebarGroup>\n <SidebarGroupLabel>Platform</SidebarGroupLabel>\n <SidebarMenu>\n {items.map((item) => (\n <Collapsible key={item.title} asChild defaultOpen={item.isActive}>\n <SidebarMenuItem>\n <SidebarMenuButton asChild tooltip={item.title}>\n <a href={item.url}>\n <item.icon />\n <span>{item.title}</span>\n </a>\n </SidebarMenuButton>\n {item.items?.length ? (\n <>\n <CollapsibleTrigger asChild>\n <SidebarMenuAction className=\"data-[state=open]:rotate-90\">\n <ChevronRight />\n <span className=\"sr-only\">Toggle</span>\n </SidebarMenuAction>\n </CollapsibleTrigger>\n <CollapsibleContent>\n <SidebarMenuSub>\n {item.items?.map((subItem) => (\n <SidebarMenuSubItem key={subItem.title}>\n <SidebarMenuSubButton asChild>\n <a href={subItem.url}>\n <span>{subItem.title}</span>\n </a>\n </SidebarMenuSubButton>\n </SidebarMenuSubItem>\n ))}\n </SidebarMenuSub>\n </CollapsibleContent>\n </>\n ) : null}\n </SidebarMenuItem>\n </Collapsible>\n ))}\n </SidebarMenu>\n </SidebarGroup>\n );\n}\n",
29
+ "type": "registry:component"
30
+ },
31
+ {
32
+ "path": "components/uibot/sidebars/sidebar-16-nav-projects.tsx",
33
+ "target": "components/uibot/sidebars/sidebar-16-nav-projects.tsx",
34
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport { Folder, MoreHorizontal, Share, Trash2, type LucideIcon } from \"lucide-react\";\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"./ui-dropdown-menu\";\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"./ui-sidebar\";\n\nexport function NavProjects({\n projects,\n}: {\n projects: {\n name: string;\n url: string;\n icon: LucideIcon;\n }[];\n}) {\n const { isMobile } = useSidebar();\n\n return (\n <SidebarGroup className=\"group-data-[collapsible=icon]:hidden\">\n <SidebarGroupLabel>Projects</SidebarGroupLabel>\n <SidebarMenu>\n {projects.map((item) => (\n <SidebarMenuItem key={item.name}>\n <SidebarMenuButton asChild>\n <a href={item.url}>\n <item.icon />\n <span>{item.name}</span>\n </a>\n </SidebarMenuButton>\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <SidebarMenuAction showOnHover>\n <MoreHorizontal />\n <span className=\"sr-only\">More</span>\n </SidebarMenuAction>\n </DropdownMenuTrigger>\n <DropdownMenuContent\n className=\"w-48\"\n side={isMobile ? \"bottom\" : \"right\"}\n align={isMobile ? \"end\" : \"start\"}\n >\n <DropdownMenuItem>\n <Folder className=\"text-muted-foreground\" />\n <span>View Project</span>\n </DropdownMenuItem>\n <DropdownMenuItem>\n <Share className=\"text-muted-foreground\" />\n <span>Share Project</span>\n </DropdownMenuItem>\n <DropdownMenuSeparator />\n <DropdownMenuItem>\n <Trash2 className=\"text-muted-foreground\" />\n <span>Delete Project</span>\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n </SidebarMenuItem>\n ))}\n <SidebarMenuItem>\n <SidebarMenuButton>\n <MoreHorizontal />\n <span>More</span>\n </SidebarMenuButton>\n </SidebarMenuItem>\n </SidebarMenu>\n </SidebarGroup>\n );\n}\n",
35
+ "type": "registry:component"
36
+ },
37
+ {
38
+ "path": "components/uibot/sidebars/sidebar-16-nav-secondary.tsx",
39
+ "target": "components/uibot/sidebars/sidebar-16-nav-secondary.tsx",
40
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\nimport type * as React from \"react\";\nimport type { LucideIcon } from \"lucide-react\";\n\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"./ui-sidebar\";\n\nexport function NavSecondary({\n items,\n ...props\n}: {\n items: {\n title: string;\n url: string;\n icon: LucideIcon;\n }[];\n} & React.ComponentPropsWithoutRef<typeof SidebarGroup>) {\n return (\n <SidebarGroup {...props}>\n <SidebarGroupContent>\n <SidebarMenu>\n {items.map((item) => (\n <SidebarMenuItem key={item.title}>\n <SidebarMenuButton asChild size=\"sm\">\n <a href={item.url}>\n <item.icon />\n <span>{item.title}</span>\n </a>\n </SidebarMenuButton>\n </SidebarMenuItem>\n ))}\n </SidebarMenu>\n </SidebarGroupContent>\n </SidebarGroup>\n );\n}\n",
41
+ "type": "registry:component"
42
+ },
43
+ {
44
+ "path": "components/uibot/sidebars/sidebar-16-nav-user.tsx",
45
+ "target": "components/uibot/sidebars/sidebar-16-nav-user.tsx",
46
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport { BadgeCheck, Bell, ChevronsUpDown, CreditCard, LogOut, Sparkles } from \"lucide-react\";\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"./ui-avatar\";\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"./ui-dropdown-menu\";\nimport { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from \"./ui-sidebar\";\n\nexport function NavUser({\n user,\n}: {\n user: {\n name: string;\n email: string;\n avatar: string;\n };\n}) {\n const { isMobile } = useSidebar();\n\n return (\n <SidebarMenu>\n <SidebarMenuItem>\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <SidebarMenuButton\n size=\"lg\"\n className=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n >\n <Avatar className=\"h-8 w-8 rounded-lg\">\n <AvatarImage src={user.avatar} alt={user.name} />\n <AvatarFallback className=\"rounded-lg\">CN</AvatarFallback>\n </Avatar>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-medium\">{user.name}</span>\n <span className=\"truncate text-xs\">{user.email}</span>\n </div>\n <ChevronsUpDown className=\"ml-auto size-4\" />\n </SidebarMenuButton>\n </DropdownMenuTrigger>\n <DropdownMenuContent\n className=\"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg\"\n side={isMobile ? \"bottom\" : \"right\"}\n align=\"end\"\n sideOffset={4}\n >\n <DropdownMenuLabel className=\"p-0 font-normal\">\n <div className=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\n <Avatar className=\"h-8 w-8 rounded-lg\">\n <AvatarImage src={user.avatar} alt={user.name} />\n <AvatarFallback className=\"rounded-lg\">CN</AvatarFallback>\n </Avatar>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-medium\">{user.name}</span>\n <span className=\"truncate text-xs\">{user.email}</span>\n </div>\n </div>\n </DropdownMenuLabel>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <DropdownMenuItem>\n <Sparkles />\n Upgrade to Pro\n </DropdownMenuItem>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <DropdownMenuItem>\n <BadgeCheck />\n Account\n </DropdownMenuItem>\n <DropdownMenuItem>\n <CreditCard />\n Billing\n </DropdownMenuItem>\n <DropdownMenuItem>\n <Bell />\n Notifications\n </DropdownMenuItem>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuItem>\n <LogOut />\n Log out\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n </SidebarMenuItem>\n </SidebarMenu>\n );\n}\n",
47
+ "type": "registry:component"
48
+ },
49
+ {
50
+ "path": "components/uibot/sidebars/sidebar-16-search-form.tsx",
51
+ "target": "components/uibot/sidebars/sidebar-16-search-form.tsx",
52
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\nimport { Search } from \"lucide-react\";\n\nimport { Label } from \"./ui-label\";\nimport { SidebarInput } from \"./ui-sidebar\";\n\nexport function SearchForm({ ...props }: React.ComponentProps<\"form\">) {\n return (\n <form {...props}>\n <div className=\"relative\">\n <Label htmlFor=\"search\" className=\"sr-only\">\n Search\n </Label>\n <SidebarInput id=\"search\" placeholder=\"Type to search...\" className=\"h-8 pl-7\" />\n <Search className=\"pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2 opacity-50 select-none\" />\n </div>\n </form>\n );\n}\n",
53
+ "type": "registry:component"
54
+ },
55
+ {
56
+ "path": "components/uibot/sidebars/sidebar-16-site-header.tsx",
57
+ "target": "components/uibot/sidebars/sidebar-16-site-header.tsx",
58
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport { SidebarIcon } from \"lucide-react\";\n\nimport { SearchForm } from \"./sidebar-16-search-form\";\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"./ui-breadcrumb\";\nimport { Button } from \"./ui-button\";\nimport { Separator } from \"./ui-separator\";\nimport { useSidebar } from \"./ui-sidebar\";\n\nexport function SiteHeader() {\n const { toggleSidebar } = useSidebar();\n\n return (\n <header className=\"sticky top-0 z-50 flex w-full items-center border-b bg-background\">\n <div className=\"flex h-(--header-height) w-full items-center gap-2 px-4\">\n <Button\n aria-label=\"Toggle Sidebar\"\n className=\"h-8 w-8\"\n variant=\"ghost\"\n size=\"icon\"\n onClick={toggleSidebar}\n >\n <SidebarIcon />\n </Button>\n <Separator orientation=\"vertical\" className=\"mr-2 h-4\" />\n <Breadcrumb className=\"hidden sm:block\">\n <BreadcrumbList>\n <BreadcrumbItem>\n <BreadcrumbLink href=\"#\">Build Your Application</BreadcrumbLink>\n </BreadcrumbItem>\n <BreadcrumbSeparator />\n <BreadcrumbItem>\n <BreadcrumbPage>Data Fetching</BreadcrumbPage>\n </BreadcrumbItem>\n </BreadcrumbList>\n </Breadcrumb>\n <SearchForm className=\"w-full sm:ml-auto sm:w-auto\" />\n </div>\n </header>\n );\n}\n",
59
+ "type": "registry:component"
60
+ }
61
+ ],
62
+ "meta": {
63
+ "composite": true,
64
+ "channel": "public"
65
+ }
66
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "sidebar-drilldown",
4
+ "type": "registry:block",
5
+ "description": "Section navigation that replaces the sidebar, with nested panels, back navigation and focus restoration. Original UIBot implementation.",
6
+ "dependencies": [
7
+ "react@19.3.0",
8
+ "lucide-react@1.56.0"
9
+ ],
10
+ "registryDependencies": [],
11
+ "files": [
12
+ {
13
+ "path": "components/uibot/sidebars/drilldown-navigation.tsx",
14
+ "target": "components/uibot/sidebars/drilldown-navigation.tsx",
15
+ "content": "import { useLayoutEffect, useRef, useState, type ReactNode, type MouseEvent } from \"react\";\nimport { ArrowLeft, ChevronRight } from \"lucide-react\";\n\nexport interface DrilldownItem {\n /** Unique within the entire navigation tree. */\n id: string;\n label: string;\n icon?: ReactNode;\n href?: string;\n children?: DrilldownSection[];\n}\nexport interface DrilldownSection {\n id: string;\n label?: string;\n items: DrilldownItem[];\n}\nexport interface DrilldownNavigationProps {\n sections: DrilldownSection[];\n activeHref?: string;\n /** null shows the root. Omit to keep panel state in this mounted session. */\n panelId?: string | null;\n defaultPanelId?: string | null;\n onPanelChange?: (panelId: string | null) => void;\n /** Only ordinary primary clicks are intercepted. No implicit router or storage. */\n onNavigate?: (href: string) => void;\n /** Called only when entering a branch with children. */\n onEnter?: (itemId: string, href?: string) => void;\n /** Render branch hrefs as links; onEnter handles ordinary clicks. */\n navigateOnEnter?: boolean;\n /** Show the active leaf label beside root branches. */\n showActiveLabel?: boolean;\n label?: string;\n backLabel?: string;\n header?: ReactNode;\n panelHeader?: ReactNode;\n footer?: ReactNode;\n className?: string;\n}\n\nfunction findPath(sections: DrilldownSection[], id: string): DrilldownItem[] | undefined {\n for (const section of sections)\n for (const item of section.items) {\n if (item.id === id && item.children?.length) return [item];\n const nested = item.children && findPath(item.children, id);\n if (nested) return [item, ...nested];\n }\n return undefined;\n}\nfunction containsHref(item: DrilldownItem, href?: string): boolean {\n return Boolean(\n href &&\n (item.href === href ||\n item.children?.some((section) => section.items.some((child) => containsHref(child, href)))),\n );\n}\nfunction activeLeafLabel(item: DrilldownItem, href?: string): string | undefined {\n if (!href) return undefined;\n for (const section of item.children ?? [])\n for (const child of section.items) {\n const label = activeLeafLabel(child, href);\n if (label) return label;\n }\n return item.children?.length ? undefined : item.href === href ? item.label : undefined;\n}\nexport function DrilldownNavigation({\n sections,\n activeHref,\n panelId,\n defaultPanelId = null,\n onPanelChange,\n onNavigate,\n onEnter,\n navigateOnEnter = false,\n showActiveLabel = false,\n label = \"Main navigation\",\n backLabel = \"Back to all sections\",\n header,\n panelHeader,\n footer,\n className = \"\",\n}: DrilldownNavigationProps) {\n const [localPanel, setLocalPanel] = useState(defaultPanelId);\n const selected = panelId === undefined ? localPanel : panelId;\n const path = selected ? (findPath(sections, selected) ?? []) : [];\n const current = path.at(-1);\n const visible = current?.children ?? sections;\n const heading = useRef<HTMLHeadingElement>(null);\n const buttons = useRef(new Map<string, HTMLElement>());\n const pendingFocus = useRef<string | true | null>(null);\n const canChange = panelId === undefined || Boolean(onPanelChange);\n const change = (id: string | null, focus: string | true) => {\n pendingFocus.current = focus;\n if (panelId === undefined) setLocalPanel(id);\n onPanelChange?.(id);\n };\n const back = () => {\n if (current && canChange) change(path.at(-2)?.id ?? null, current.id);\n };\n const enter = (item: DrilldownItem) => {\n if (!canChange) return;\n change(item.id, true);\n onEnter?.(item.id, item.href);\n };\n useLayoutEffect(() => {\n const target = pendingFocus.current;\n if (target === true) heading.current?.focus();\n else if (target) buttons.current.get(target)?.focus();\n pendingFocus.current = null;\n });\n function navigate(event: MouseEvent<HTMLAnchorElement>, href: string) {\n if (\n !onNavigate ||\n event.defaultPrevented ||\n event.button !== 0 ||\n event.metaKey ||\n event.ctrlKey ||\n event.shiftKey ||\n event.altKey\n )\n return;\n event.preventDefault();\n onNavigate(href);\n }\n return (\n <nav\n aria-label={label}\n data-uibot-escape-boundary={current && canChange ? \"\" : undefined}\n className={`uibot-drilldown ${className}`}\n onKeyDown={(event) => {\n if (event.key === \"Escape\" && current && canChange) {\n event.preventDefault();\n event.stopPropagation();\n back();\n }\n }}\n >\n <style>{`.uibot-drilldown{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--background);color:var(--foreground);font-size:14px}.uibot-drilldown-scroll{flex:1;overflow:auto;padding:12px 8px}.uibot-drilldown ul{list-style:none;margin:0;padding:0}.uibot-drilldown-section+.uibot-drilldown-section{margin-top:20px}.uibot-drilldown-label{margin:0;padding:8px;color:var(--muted-foreground);font-size:12px;font-weight:400}.uibot-drilldown-row{display:flex;width:100%;align-items:center;gap:12px;min-height:36px;margin:0;padding:8px;border:0;border-radius:7px;background:transparent;color:var(--muted-foreground);text-align:start;text-decoration:none;font:inherit;cursor:pointer}@media(hover:hover){.uibot-drilldown-row:not(:disabled):not([aria-disabled=true]):hover{background:var(--muted);color:var(--foreground)}}.uibot-drilldown-row[data-active=true]{background:var(--muted);color:var(--foreground)}.uibot-drilldown-row:focus-visible{outline:2px solid var(--ring,var(--primary));outline-offset:-2px}.uibot-drilldown-row:disabled,.uibot-drilldown-row[aria-disabled=true]{opacity:.5;cursor:default}.uibot-drilldown-row>svg{width:18px;height:18px;flex:none;stroke-width:1.6}.uibot-drilldown-item-label{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uibot-drilldown-active-label{min-width:0;max-width:34%;margin-inline-start:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted-foreground);font-size:12px}.uibot-drilldown-chevron{margin-inline-start:8px;flex:none}.uibot-drilldown-back{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding-inline:8px}.uibot-drilldown-back h2{font-size:16px;font-weight:500;margin:0;outline:none}.uibot-drilldown-back button{width:32px;flex:none;justify-content:center;padding:6px}.uibot-drilldown-panel-header{margin:0 8px 10px}.uibot-drilldown-footer{border-top:1px solid var(--border);padding:14px 16px}.uibot-drilldown-header{padding:14px 16px;border-bottom:1px solid var(--border)}`}</style>\n {header && <div className=\"uibot-drilldown-header\">{header}</div>}\n <div className=\"uibot-drilldown-scroll\">\n {current && (\n <div className=\"uibot-drilldown-back\">\n <button\n type=\"button\"\n className=\"uibot-drilldown-row\"\n onClick={back}\n disabled={!canChange}\n aria-label={path.length > 1 ? `Back to ${path.at(-2)?.label}` : backLabel}\n >\n <ArrowLeft aria-hidden=\"true\" />\n </button>\n <h2 ref={heading} tabIndex={-1}>\n {current.label}\n </h2>\n </div>\n )}\n {current && panelHeader && (\n <div className=\"uibot-drilldown-panel-header\">{panelHeader}</div>\n )}\n {visible.map((section) => (\n <section key={section.id} className=\"uibot-drilldown-section\" aria-label={section.label}>\n {section.label && <h3 className=\"uibot-drilldown-label\">{section.label}</h3>}\n <ul>\n {section.items.map((item) => {\n const active = containsHref(item, activeHref);\n const activeLabel = showActiveLabel ? activeLeafLabel(item, activeHref) : undefined;\n const branchContent = (\n <>\n {item.icon}\n <span className=\"uibot-drilldown-item-label\">{item.label}</span>\n {activeLabel && (\n <span className=\"uibot-drilldown-active-label\" title={activeLabel}>\n {activeLabel}\n </span>\n )}\n <ChevronRight className=\"uibot-drilldown-chevron\" aria-hidden=\"true\" />\n </>\n );\n return (\n <li key={item.id}>\n {item.children?.length && navigateOnEnter && item.href ? (\n <a\n href={canChange ? item.href : undefined}\n className=\"uibot-drilldown-row\"\n data-active={active}\n aria-disabled={!canChange || undefined}\n ref={(element) => {\n if (element) buttons.current.set(item.id, element);\n else buttons.current.delete(item.id);\n }}\n onClick={(event) => {\n if (\n event.defaultPrevented ||\n event.button !== 0 ||\n event.metaKey ||\n event.ctrlKey ||\n event.shiftKey ||\n event.altKey\n )\n return;\n event.preventDefault();\n enter(item);\n }}\n >\n {branchContent}\n </a>\n ) : item.children?.length ? (\n <button\n type=\"button\"\n className=\"uibot-drilldown-row\"\n data-active={active}\n ref={(element) => {\n if (element) buttons.current.set(item.id, element);\n else buttons.current.delete(item.id);\n }}\n disabled={!canChange}\n onClick={() => enter(item)}\n >\n {branchContent}\n </button>\n ) : item.href ? (\n <a\n href={item.href}\n className=\"uibot-drilldown-row\"\n data-active={active}\n aria-current={active ? \"page\" : undefined}\n onClick={(event) => navigate(event, item.href ?? \"\")}\n >\n {item.icon}\n <span>{item.label}</span>\n </a>\n ) : (\n <span className=\"uibot-drilldown-row\" aria-disabled=\"true\">\n {item.icon}\n <span>{item.label}</span>\n </span>\n )}\n </li>\n );\n })}\n </ul>\n </section>\n ))}\n </div>\n {footer && <div className=\"uibot-drilldown-footer\">{footer}</div>}\n </nav>\n );\n}\n",
16
+ "type": "registry:component"
17
+ },
18
+ {
19
+ "path": "components/uibot/sidebars/sidebar-drilldown.tsx",
20
+ "target": "components/uibot/sidebars/sidebar-drilldown.tsx",
21
+ "content": "import { useState } from \"react\";\nimport { CreditCard, House, Settings, Building2 } from \"lucide-react\";\nimport { DrilldownNavigation } from \"./drilldown-navigation\";\n\n/** A local navigation demonstration; real routing is injected by the host. */\nexport function SidebarDrilldown({\n defaultPanelId = \"\",\n brand = \"Acme Console\",\n}: {\n defaultPanelId?: string;\n brand?: string;\n}) {\n const [href, setHref] = useState(\"/spending\");\n const titles: Record<string, string> = {\n \"/\": \"Dashboard\",\n \"/spending\": \"Spending and billing\",\n \"/cost\": \"Cost and spend\",\n \"/billing\": \"Billing and payments\",\n \"/settings/profile\": \"Profile\",\n \"/settings/team\": \"Team\",\n };\n return (\n <div className=\"flex h-dvh min-h-96 bg-background text-foreground\">\n <aside className=\"w-64 shrink-0 border-r\">\n <DrilldownNavigation\n activeHref={href}\n defaultPanelId={defaultPanelId || null}\n onNavigate={setHref}\n header={<strong>{brand}</strong>}\n footer={\n <div className=\"flex items-center gap-3\">\n <Building2 size={20} />\n <div>\n <strong className=\"text-sm\">Acme</strong>\n <p className=\"text-xs text-muted-foreground\">Individual organization</p>\n </div>\n </div>\n }\n sections={[\n {\n id: \"home\",\n items: [{ id: \"dashboard\", label: \"Dashboard\", href: \"/\", icon: <House /> }],\n },\n {\n id: \"org\",\n label: \"Organization\",\n items: [\n {\n id: \"spending\",\n label: \"Spending\",\n icon: <CreditCard />,\n children: [\n {\n id: \"spend-pages\",\n items: [\n { id: \"overview\", label: \"Overview\", href: \"/spending\" },\n { id: \"cost\", label: \"Cost & spend\", href: \"/cost\" },\n { id: \"billing\", label: \"Billing & payments\", href: \"/billing\" },\n ],\n },\n ],\n },\n {\n id: \"settings\",\n label: \"Settings\",\n icon: <Settings />,\n children: [\n {\n id: \"settings-pages\",\n items: [\n { id: \"profile\", label: \"Profile\", href: \"/settings/profile\" },\n { id: \"team\", label: \"Team\", href: \"/settings/team\" },\n ],\n },\n ],\n },\n ],\n },\n ]}\n />\n </aside>\n <main className=\"min-w-0 flex-1 p-8\">\n <p className=\"text-xs text-muted-foreground\">{href}</p>\n <h1 className=\"mt-2 text-2xl font-semibold\">{titles[href]}</h1>\n <p className=\"mt-4 text-sm text-muted-foreground\">\n Choose a section to enter its menu. Back keeps the current page. Escape also returns to\n the previous menu.\n </p>\n </main>\n </div>\n );\n}\n",
22
+ "type": "registry:component"
23
+ }
24
+ ],
25
+ "meta": {
26
+ "composite": true,
27
+ "channel": "public"
28
+ }
29
+ }
@@ -0,0 +1,155 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "sidebar-primitives",
4
+ "type": "registry:lib",
5
+ "description": "Shared shadcn sidebar primitives. Host owns persistence and navigation.",
6
+ "dependencies": [
7
+ "react@19.3.0",
8
+ "radix-ui@1.8.1",
9
+ "lucide-react@1.56.0",
10
+ "class-variance-authority@0.7.1",
11
+ "clsx@2.1.1",
12
+ "tailwind-merge@3.7.0",
13
+ "react-day-picker@9.14.0",
14
+ "date-fns@4.4.0"
15
+ ],
16
+ "registryDependencies": [],
17
+ "files": [
18
+ {
19
+ "path": "components/uibot/sidebars/ui-avatar.tsx",
20
+ "target": "components/uibot/sidebars/ui-avatar.tsx",
21
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport type * as React from \"react\";\nimport { cn } from \"./utils\";\nimport { Avatar as AvatarPrimitive } from \"radix-ui\";\n\nfunction Avatar({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Root> & {\n size?: \"default\" | \"sm\" | \"lg\";\n}) {\n return (\n <AvatarPrimitive.Root\n data-slot=\"avatar\"\n data-size={size}\n className={cn(\n \"group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n return (\n <AvatarPrimitive.Image\n data-slot=\"avatar-image\"\n className={cn(\"aspect-square size-full\", className)}\n {...props}\n />\n );\n}\n\nfunction AvatarFallback({\n className,\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {\n return (\n <AvatarPrimitive.Fallback\n data-slot=\"avatar-fallback\"\n className={cn(\n \"flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarBadge({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"avatar-badge\"\n className={cn(\n \"absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground ring-2 ring-background select-none\",\n \"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden\",\n \"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2\",\n \"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"avatar-group\"\n className={cn(\n \"group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarGroupCount({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"avatar-group-count\"\n className={cn(\n \"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Avatar, AvatarImage, AvatarFallback, AvatarBadge, AvatarGroup, AvatarGroupCount };\n",
22
+ "type": "registry:component"
23
+ },
24
+ {
25
+ "path": "components/uibot/sidebars/ui-breadcrumb.tsx",
26
+ "target": "components/uibot/sidebars/ui-breadcrumb.tsx",
27
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\nimport type * as React from \"react\";\nimport { cn } from \"./utils\";\nimport { ChevronRight, MoreHorizontal } from \"lucide-react\";\nimport { Slot } from \"radix-ui\";\n\nfunction Breadcrumb({ ...props }: React.ComponentProps<\"nav\">) {\n return <nav aria-label=\"breadcrumb\" data-slot=\"breadcrumb\" {...props} />;\n}\n\nfunction BreadcrumbList({ className, ...props }: React.ComponentProps<\"ol\">) {\n return (\n <ol\n data-slot=\"breadcrumb-list\"\n className={cn(\n \"flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2.5\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbItem({ className, ...props }: React.ComponentProps<\"li\">) {\n return (\n <li\n data-slot=\"breadcrumb-item\"\n className={cn(\"inline-flex items-center gap-1.5\", className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbLink({\n asChild,\n className,\n ...props\n}: React.ComponentProps<\"a\"> & {\n asChild?: boolean;\n}) {\n const Comp = asChild ? Slot.Root : \"a\";\n\n return (\n <Comp\n data-slot=\"breadcrumb-link\"\n className={cn(\"transition-colors hover:text-foreground\", className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbPage({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"breadcrumb-page\"\n role=\"link\"\n aria-disabled=\"true\"\n aria-current=\"page\"\n className={cn(\"font-normal text-foreground\", className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<\"li\">) {\n return (\n <li\n data-slot=\"breadcrumb-separator\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"[&>svg]:size-3.5\", className)}\n {...props}\n >\n {children ?? <ChevronRight />}\n </li>\n );\n}\n\nfunction BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"breadcrumb-ellipsis\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"flex size-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontal className=\"size-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n );\n}\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n};\n",
28
+ "type": "registry:component"
29
+ },
30
+ {
31
+ "path": "components/uibot/sidebars/ui-button.tsx",
32
+ "target": "components/uibot/sidebars/ui-button.tsx",
33
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\nimport type * as React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"./utils\";\nimport { Slot } from \"radix-ui\";\n\nconst buttonVariants = cva(\n \"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40\",\n outline:\n \"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2 has-[>svg]:px-3\",\n xs: \"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3\",\n sm: \"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5\",\n lg: \"h-10 rounded-md px-6 has-[>svg]:px-4\",\n icon: \"size-9\",\n \"icon-xs\": \"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3\",\n \"icon-sm\": \"size-8\",\n \"icon-lg\": \"size-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nfunction Button({\n className,\n variant = \"default\",\n size = \"default\",\n asChild = false,\n ...props\n}: React.ComponentProps<\"button\"> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n }) {\n const Comp = asChild ? Slot.Root : \"button\";\n\n return (\n <Comp\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n );\n}\n\nexport { Button, buttonVariants };\n",
34
+ "type": "registry:component"
35
+ },
36
+ {
37
+ "path": "components/uibot/sidebars/ui-calendar.tsx",
38
+ "target": "components/uibot/sidebars/ui-calendar.tsx",
39
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"./utils\";\nimport { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from \"lucide-react\";\nimport { DayPicker, getDefaultClassNames, type DayButton } from \"react-day-picker\";\n\nimport { Button, buttonVariants } from \"./ui-button\";\n\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n captionLayout = \"label\",\n buttonVariant = \"ghost\",\n formatters,\n components,\n ...props\n}: React.ComponentProps<typeof DayPicker> & {\n buttonVariant?: React.ComponentProps<typeof Button>[\"variant\"];\n}) {\n const defaultClassNames = getDefaultClassNames();\n\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn(\n \"group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent\",\n String.raw`rtl:**:[.rdp-button\\_next>svg]:rotate-180`,\n String.raw`rtl:**:[.rdp-button\\_previous>svg]:rotate-180`,\n className,\n )}\n captionLayout={captionLayout}\n formatters={{\n formatMonthDropdown: (date) => date.toLocaleString(\"default\", { month: \"short\" }),\n ...formatters,\n }}\n classNames={{\n root: cn(\"w-fit\", defaultClassNames.root),\n months: cn(\"relative flex flex-col gap-4 md:flex-row\", defaultClassNames.months),\n month: cn(\"flex w-full flex-col gap-4\", defaultClassNames.month),\n nav: cn(\n \"absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1\",\n defaultClassNames.nav,\n ),\n button_previous: cn(\n buttonVariants({ variant: buttonVariant }),\n \"size-(--cell-size) p-0 select-none aria-disabled:opacity-50\",\n defaultClassNames.button_previous,\n ),\n button_next: cn(\n buttonVariants({ variant: buttonVariant }),\n \"size-(--cell-size) p-0 select-none aria-disabled:opacity-50\",\n defaultClassNames.button_next,\n ),\n month_caption: cn(\n \"flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)\",\n defaultClassNames.month_caption,\n ),\n dropdowns: cn(\n \"flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium\",\n defaultClassNames.dropdowns,\n ),\n dropdown_root: cn(\n \"relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50\",\n defaultClassNames.dropdown_root,\n ),\n dropdown: cn(\"absolute inset-0 bg-popover opacity-0\", defaultClassNames.dropdown),\n caption_label: cn(\n \"font-medium select-none\",\n captionLayout === \"label\"\n ? \"text-sm\"\n : \"flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground\",\n defaultClassNames.caption_label,\n ),\n month_grid: cn(\"w-full border-collapse\", defaultClassNames.month_grid),\n weekdays: cn(\"flex\", defaultClassNames.weekdays),\n weekday: cn(\n \"flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none\",\n defaultClassNames.weekday,\n ),\n week: cn(\"mt-2 flex w-full\", defaultClassNames.week),\n week_number_header: cn(\"w-(--cell-size) select-none\", defaultClassNames.week_number_header),\n week_number: cn(\n \"text-[0.8rem] text-muted-foreground select-none\",\n defaultClassNames.week_number,\n ),\n day: cn(\n \"group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md\",\n props.showWeekNumber\n ? \"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md\"\n : \"[&:first-child[data-selected=true]_button]:rounded-l-md\",\n defaultClassNames.day,\n ),\n range_start: cn(\"rounded-l-md bg-accent\", defaultClassNames.range_start),\n range_middle: cn(\"rounded-none\", defaultClassNames.range_middle),\n range_end: cn(\"rounded-r-md bg-accent\", defaultClassNames.range_end),\n today: cn(\n \"rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none\",\n defaultClassNames.today,\n ),\n outside: cn(\n \"text-muted-foreground aria-selected:text-muted-foreground\",\n defaultClassNames.outside,\n ),\n disabled: cn(\"text-muted-foreground opacity-50\", defaultClassNames.disabled),\n hidden: cn(\"invisible\", defaultClassNames.hidden),\n ...classNames,\n }}\n components={{\n Root: ({ className, rootRef, ...props }) => {\n return <div data-slot=\"calendar\" ref={rootRef} className={cn(className)} {...props} />;\n },\n Chevron: ({ className, orientation, ...props }) => {\n if (orientation === \"left\") {\n return <ChevronLeftIcon className={cn(\"size-4\", className)} {...props} />;\n }\n\n if (orientation === \"right\") {\n return <ChevronRightIcon className={cn(\"size-4\", className)} {...props} />;\n }\n\n return <ChevronDownIcon className={cn(\"size-4\", className)} {...props} />;\n },\n DayButton: CalendarDayButton,\n WeekNumber: ({ children, ...props }) => {\n return (\n <td {...props}>\n <div className=\"flex size-(--cell-size) items-center justify-center text-center\">\n {children}\n </div>\n </td>\n );\n },\n ...components,\n }}\n {...props}\n />\n );\n}\n\nfunction CalendarDayButton({\n className,\n day,\n modifiers,\n ...props\n}: React.ComponentProps<typeof DayButton>) {\n const defaultClassNames = getDefaultClassNames();\n\n const ref = React.useRef<HTMLButtonElement>(null);\n React.useEffect(() => {\n if (modifiers.focused) ref.current?.focus();\n }, [modifiers.focused]);\n\n return (\n <Button\n ref={ref}\n variant=\"ghost\"\n size=\"icon\"\n data-day={day.date.toLocaleDateString()}\n data-selected-single={\n modifiers.selected &&\n !modifiers.range_start &&\n !modifiers.range_end &&\n !modifiers.range_middle\n }\n data-range-start={modifiers.range_start}\n data-range-end={modifiers.range_end}\n data-range-middle={modifiers.range_middle}\n className={cn(\n \"flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70\",\n defaultClassNames.day,\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Calendar, CalendarDayButton };\n",
40
+ "type": "registry:component"
41
+ },
42
+ {
43
+ "path": "components/uibot/sidebars/ui-card.tsx",
44
+ "target": "components/uibot/sidebars/ui-card.tsx",
45
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\nimport type * as React from \"react\";\nimport { cn } from \"./utils\";\n\nfunction Card({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n \"flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n \"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-title\"\n className={cn(\"leading-none font-semibold\", className)}\n {...props}\n />\n );\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\"col-start-2 row-span-2 row-start-1 self-start justify-self-end\", className)}\n {...props}\n />\n );\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"card-content\" className={cn(\"px-6\", className)} {...props} />;\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn(\"flex items-center px-6 [.border-t]:pt-6\", className)}\n {...props}\n />\n );\n}\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };\n",
46
+ "type": "registry:component"
47
+ },
48
+ {
49
+ "path": "components/uibot/sidebars/ui-collapsible.tsx",
50
+ "target": "components/uibot/sidebars/ui-collapsible.tsx",
51
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport { Collapsible as CollapsiblePrimitive } from \"radix-ui\";\n\nfunction Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {\n return <CollapsiblePrimitive.Root data-slot=\"collapsible\" {...props} />;\n}\n\nfunction CollapsibleTrigger({\n ...props\n}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>) {\n return <CollapsiblePrimitive.CollapsibleTrigger data-slot=\"collapsible-trigger\" {...props} />;\n}\n\nfunction CollapsibleContent({\n ...props\n}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>) {\n return <CollapsiblePrimitive.CollapsibleContent data-slot=\"collapsible-content\" {...props} />;\n}\n\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent };\n",
52
+ "type": "registry:component"
53
+ },
54
+ {
55
+ "path": "components/uibot/sidebars/ui-dialog.tsx",
56
+ "target": "components/uibot/sidebars/ui-dialog.tsx",
57
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport type * as React from \"react\";\nimport { cn } from \"./utils\";\nimport { XIcon } from \"lucide-react\";\nimport { Dialog as DialogPrimitive } from \"radix-ui\";\n\nimport { Button } from \"./ui-button\";\n\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n \"fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean;\n closeLabel?: string;\n}) {\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n \"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg\",\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n className=\"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n >\n <XIcon />\n <span className=\"sr-only\">{closeLabel}</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean;\n closeLabel?: string;\n}) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\", className)}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close asChild>\n <Button variant=\"outline\">{closeLabel}</Button>\n </DialogPrimitive.Close>\n )}\n </div>\n );\n}\n\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\"text-lg leading-none font-semibold\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n",
58
+ "type": "registry:component"
59
+ },
60
+ {
61
+ "path": "components/uibot/sidebars/ui-dropdown-menu.tsx",
62
+ "target": "components/uibot/sidebars/ui-dropdown-menu.tsx",
63
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport type * as React from \"react\";\nimport { cn } from \"./utils\";\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from \"lucide-react\";\nimport { DropdownMenu as DropdownMenuPrimitive } from \"radix-ui\";\n\nfunction DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />;\n}\n\nfunction DropdownMenuPortal({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {\n return <DropdownMenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />;\n}\n\nfunction DropdownMenuTrigger({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return <DropdownMenuPrimitive.Trigger data-slot=\"dropdown-menu-trigger\" {...props} />;\n}\n\nfunction DropdownMenuContent({\n className,\n sideOffset = 4,\n container,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Content> & {\n container?: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>[\"container\"];\n}) {\n return (\n <DropdownMenuPrimitive.Portal {...(container ? { container } : {})}>\n <DropdownMenuPrimitive.Content\n data-slot=\"dropdown-menu-content\"\n sideOffset={sideOffset}\n className={cn(\n \"z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95\",\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nfunction DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {\n return <DropdownMenuPrimitive.Group data-slot=\"dropdown-menu-group\" {...props} />;\n}\n\nfunction DropdownMenuItem({\n className,\n inset,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean;\n variant?: \"default\" | \"destructive\";\n}) {\n return (\n <DropdownMenuPrimitive.Item\n data-slot=\"dropdown-menu-item\"\n data-inset={inset}\n data-variant={variant}\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {\n return (\n <DropdownMenuPrimitive.CheckboxItem\n data-slot=\"dropdown-menu-checkbox-item\"\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\nfunction DropdownMenuRadioGroup({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {\n return <DropdownMenuPrimitive.RadioGroup data-slot=\"dropdown-menu-radio-group\" {...props} />;\n}\n\nfunction DropdownMenuRadioItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {\n return (\n <DropdownMenuPrimitive.RadioItem\n data-slot=\"dropdown-menu-radio-item\"\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CircleIcon className=\"size-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n );\n}\n\nfunction DropdownMenuLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.Label\n data-slot=\"dropdown-menu-label\"\n data-inset={inset}\n className={cn(\"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8\", className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {\n return (\n <DropdownMenuPrimitive.Separator\n data-slot=\"dropdown-menu-separator\"\n className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuShortcut({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"dropdown-menu-shortcut\"\n className={cn(\"ml-auto text-xs tracking-widest text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {\n return <DropdownMenuPrimitive.Sub data-slot=\"dropdown-menu-sub\" {...props} />;\n}\n\nfunction DropdownMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.SubTrigger\n data-slot=\"dropdown-menu-sub-trigger\"\n data-inset={inset}\n className={cn(\n \"flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground\",\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n );\n}\n\nfunction DropdownMenuSubContent({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {\n return (\n <DropdownMenuPrimitive.SubContent\n data-slot=\"dropdown-menu-sub-content\"\n className={cn(\n \"z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport {\n DropdownMenu,\n DropdownMenuPortal,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuLabel,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuSubContent,\n};\n",
64
+ "type": "registry:component"
65
+ },
66
+ {
67
+ "path": "components/uibot/sidebars/ui-input.tsx",
68
+ "target": "components/uibot/sidebars/ui-input.tsx",
69
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\nimport type * as React from \"react\";\nimport { cn } from \"./utils\";\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n \"h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30\",\n \"focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50\",\n \"aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Input };\n",
70
+ "type": "registry:component"
71
+ },
72
+ {
73
+ "path": "components/uibot/sidebars/ui-label.tsx",
74
+ "target": "components/uibot/sidebars/ui-label.tsx",
75
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport type * as React from \"react\";\nimport { cn } from \"./utils\";\nimport { Label as LabelPrimitive } from \"radix-ui\";\n\nfunction Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Label };\n",
76
+ "type": "registry:component"
77
+ },
78
+ {
79
+ "path": "components/uibot/sidebars/ui-popover.tsx",
80
+ "target": "components/uibot/sidebars/ui-popover.tsx",
81
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport type * as React from \"react\";\nimport { cn } from \"./utils\";\nimport { Popover as PopoverPrimitive } from \"radix-ui\";\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = \"center\",\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95\",\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"popover-header\"\n className={cn(\"flex flex-col gap-1 text-sm\", className)}\n {...props}\n />\n );\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<\"h2\">) {\n return <div data-slot=\"popover-title\" className={cn(\"font-medium\", className)} {...props} />;\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"popover-description\"\n className={cn(\"text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n PopoverAnchor,\n PopoverHeader,\n PopoverTitle,\n PopoverDescription,\n};\n",
82
+ "type": "registry:component"
83
+ },
84
+ {
85
+ "path": "components/uibot/sidebars/ui-separator.tsx",
86
+ "target": "components/uibot/sidebars/ui-separator.tsx",
87
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport type * as React from \"react\";\nimport { cn } from \"./utils\";\nimport { Separator as SeparatorPrimitive } from \"radix-ui\";\n\nfunction Separator({\n className,\n orientation = \"horizontal\",\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Separator };\n",
88
+ "type": "registry:component"
89
+ },
90
+ {
91
+ "path": "components/uibot/sidebars/ui-sheet.tsx",
92
+ "target": "components/uibot/sidebars/ui-sheet.tsx",
93
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport type * as React from \"react\";\nimport { cn } from \"./utils\";\nimport { XIcon } from \"lucide-react\";\nimport { Dialog as SheetPrimitive } from \"radix-ui\";\n\nfunction Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {\n return <SheetPrimitive.Root data-slot=\"sheet\" {...props} />;\n}\n\nfunction SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>) {\n return <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />;\n}\n\nfunction SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>) {\n return <SheetPrimitive.Close data-slot=\"sheet-close\" {...props} />;\n}\n\nfunction SheetPortal({ ...props }: React.ComponentProps<typeof SheetPrimitive.Portal>) {\n return <SheetPrimitive.Portal data-slot=\"sheet-portal\" {...props} />;\n}\n\nfunction SheetOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {\n return (\n <SheetPrimitive.Overlay\n data-slot=\"sheet-overlay\"\n className={cn(\n \"fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction SheetContent({\n className,\n children,\n side = \"right\",\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Content> & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n showCloseButton?: boolean;\n}) {\n return (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n data-slot=\"sheet-content\"\n className={cn(\n \"fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500\",\n side === \"right\" &&\n \"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n side === \"left\" &&\n \"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n side === \"top\" &&\n \"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n side === \"bottom\" &&\n \"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <SheetPrimitive.Close className=\"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n )}\n </SheetPrimitive.Content>\n </SheetPortal>\n );\n}\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sheet-header\"\n className={cn(\"flex flex-col gap-1.5 p-4\", className)}\n {...props}\n />\n );\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sheet-footer\"\n className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)}\n {...props}\n />\n );\n}\n\nfunction SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>) {\n return (\n <SheetPrimitive.Title\n data-slot=\"sheet-title\"\n className={cn(\"font-semibold text-foreground\", className)}\n {...props}\n />\n );\n}\n\nfunction SheetDescription({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Description>) {\n return (\n <SheetPrimitive.Description\n data-slot=\"sheet-description\"\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n",
94
+ "type": "registry:component"
95
+ },
96
+ {
97
+ "path": "components/uibot/sidebars/ui-sidebar.tsx",
98
+ "target": "components/uibot/sidebars/ui-sidebar.tsx",
99
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport * as React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"./utils\";\nimport { PanelLeftIcon } from \"lucide-react\";\nimport { Slot } from \"radix-ui\";\n\nimport { useIsMobile } from \"./use-mobile\";\nimport { Button } from \"./ui-button\";\nimport { Input } from \"./ui-input\";\nimport { Separator } from \"./ui-separator\";\nimport { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from \"./ui-sheet\";\nimport { Skeleton } from \"./ui-skeleton\";\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from \"./ui-tooltip\";\n\nconst SIDEBAR_WIDTH = \"16rem\";\nconst SIDEBAR_WIDTH_MOBILE = \"18rem\";\nconst SIDEBAR_WIDTH_ICON = \"3rem\";\nconst SIDEBAR_KEYBOARD_SHORTCUT = \"b\";\n\ntype SidebarContextProps = {\n state: \"expanded\" | \"collapsed\";\n open: boolean;\n setOpen: (open: boolean) => void;\n openMobile: boolean;\n setOpenMobile: (open: boolean) => void;\n isMobile: boolean;\n toggleSidebar: () => void;\n};\n\nconst SidebarContext = React.createContext<SidebarContextProps | null>(null);\n\nfunction useSidebar() {\n const context = React.useContext(SidebarContext);\n if (!context) {\n throw new Error(\"useSidebar must be used within a SidebarProvider.\");\n }\n\n return context;\n}\n\nfunction SidebarProvider({\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n defaultOpen?: boolean;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n}) {\n const isMobile = useIsMobile();\n const [openMobile, setOpenMobile] = React.useState(false);\n\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [_open, _setOpen] = React.useState(defaultOpen);\n const open = openProp ?? _open;\n const setOpen = React.useCallback(\n (value: boolean | ((value: boolean) => boolean)) => {\n const openState = typeof value === \"function\" ? value(open) : value;\n if (setOpenProp) {\n setOpenProp(openState);\n } else {\n _setOpen(openState);\n }\n },\n [setOpenProp, open],\n );\n\n // Helper to toggle the sidebar.\n const toggleSidebar = React.useCallback(() => {\n return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);\n }, [isMobile, setOpen]);\n\n // Adds a keyboard shortcut to toggle the sidebar.\n React.useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n event.preventDefault();\n toggleSidebar();\n }\n };\n\n window.addEventListener(\"keydown\", handleKeyDown);\n return () => window.removeEventListener(\"keydown\", handleKeyDown);\n }, [toggleSidebar]);\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = open ? \"expanded\" : \"collapsed\";\n\n const contextValue = React.useMemo<SidebarContextProps>(\n () => ({\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n }),\n [state, open, setOpen, isMobile, openMobile, toggleSidebar],\n );\n\n return (\n <SidebarContext.Provider value={contextValue}>\n <TooltipProvider delayDuration={0}>\n <div\n data-slot=\"sidebar-wrapper\"\n style={\n {\n \"--sidebar-width\": SIDEBAR_WIDTH,\n \"--sidebar-width-icon\": SIDEBAR_WIDTH_ICON,\n ...style,\n } as React.CSSProperties\n }\n className={cn(\n \"group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar\",\n className,\n )}\n {...props}\n >\n {children}\n </div>\n </TooltipProvider>\n </SidebarContext.Provider>\n );\n}\n\nfunction Sidebar({\n side = \"left\",\n variant = \"sidebar\",\n collapsible = \"offcanvas\",\n className,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n side?: \"left\" | \"right\";\n variant?: \"sidebar\" | \"floating\" | \"inset\";\n collapsible?: \"offcanvas\" | \"icon\" | \"none\";\n}) {\n const { isMobile, state, openMobile, setOpenMobile } = useSidebar();\n\n if (collapsible === \"none\") {\n return (\n <div\n data-slot=\"sidebar\"\n className={cn(\n \"flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground\",\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n }\n\n if (isMobile) {\n return (\n <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n <SheetContent\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar\"\n data-mobile=\"true\"\n className=\"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden\"\n style={\n {\n \"--sidebar-width\": SIDEBAR_WIDTH_MOBILE,\n } as React.CSSProperties\n }\n side={side}\n >\n <SheetHeader className=\"sr-only\">\n <SheetTitle>Sidebar</SheetTitle>\n <SheetDescription>Displays the mobile sidebar.</SheetDescription>\n </SheetHeader>\n <div className=\"flex h-full w-full flex-col\">{children}</div>\n </SheetContent>\n </Sheet>\n );\n }\n\n return (\n <div\n className=\"group peer hidden text-sidebar-foreground md:block\"\n data-state={state}\n data-collapsible={state === \"collapsed\" ? collapsible : \"\"}\n data-variant={variant}\n data-side={side}\n data-slot=\"sidebar\"\n >\n {/* This is what handles the sidebar gap on desktop */}\n <div\n data-slot=\"sidebar-gap\"\n className={cn(\n \"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear\",\n \"group-data-[collapsible=offcanvas]:w-0\",\n \"group-data-[side=right]:rotate-180\",\n variant === \"floating\" || variant === \"inset\"\n ? \"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]\"\n : \"group-data-[collapsible=icon]:w-(--sidebar-width-icon)\",\n )}\n />\n <div\n data-slot=\"sidebar-container\"\n className={cn(\n \"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex\",\n side === \"left\"\n ? \"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]\"\n : \"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]\",\n // Adjust the padding for floating and inset variants.\n variant === \"floating\" || variant === \"inset\"\n ? \"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]\"\n : \"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l\",\n className,\n )}\n {...props}\n >\n <div\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar-inner\"\n className=\"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm\"\n >\n {children}\n </div>\n </div>\n </div>\n );\n}\n\nfunction SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>) {\n const { toggleSidebar } = useSidebar();\n\n return (\n <Button\n data-sidebar=\"trigger\"\n data-slot=\"sidebar-trigger\"\n variant=\"ghost\"\n size=\"icon\"\n className={cn(\"size-7\", className)}\n onClick={(event) => {\n onClick?.(event);\n toggleSidebar();\n }}\n {...props}\n >\n <PanelLeftIcon />\n <span className=\"sr-only\">Toggle Sidebar</span>\n </Button>\n );\n}\n\nfunction SidebarRail({ className, ...props }: React.ComponentProps<\"button\">) {\n const { toggleSidebar } = useSidebar();\n\n return (\n <button\n data-sidebar=\"rail\"\n data-slot=\"sidebar-rail\"\n aria-label=\"Toggle Sidebar\"\n tabIndex={-1}\n onClick={toggleSidebar}\n title=\"Toggle Sidebar\"\n className={cn(\n \"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex\",\n \"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize\",\n \"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize\",\n \"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar\",\n \"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2\",\n \"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction SidebarInset({ className, ...props }: React.ComponentProps<\"main\">) {\n return (\n <main\n data-slot=\"sidebar-inset\"\n className={cn(\n \"relative flex w-full flex-1 flex-col bg-background\",\n \"md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>) {\n return (\n <Input\n data-slot=\"sidebar-input\"\n data-sidebar=\"input\"\n className={cn(\"h-8 w-full bg-background shadow-none\", className)}\n {...props}\n />\n );\n}\n\nfunction SidebarHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sidebar-header\"\n data-sidebar=\"header\"\n className={cn(\"flex flex-col gap-2 p-2\", className)}\n {...props}\n />\n );\n}\n\nfunction SidebarFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sidebar-footer\"\n data-sidebar=\"footer\"\n className={cn(\"flex flex-col gap-2 p-2\", className)}\n {...props}\n />\n );\n}\n\nfunction SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"sidebar-separator\"\n data-sidebar=\"separator\"\n className={cn(\"mx-2 w-auto bg-sidebar-border\", className)}\n {...props}\n />\n );\n}\n\nfunction SidebarContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sidebar-content\"\n data-sidebar=\"content\"\n className={cn(\n \"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction SidebarGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sidebar-group\"\n data-sidebar=\"group\"\n className={cn(\"relative flex w-full min-w-0 flex-col p-2\", className)}\n {...props}\n />\n );\n}\n\nfunction SidebarGroupLabel({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<\"div\"> & { asChild?: boolean }) {\n const Comp = asChild ? Slot.Root : \"div\";\n\n return (\n <Comp\n data-slot=\"sidebar-group-label\"\n data-sidebar=\"group-label\"\n className={cn(\n \"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0\",\n \"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction SidebarGroupAction({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<\"button\"> & { asChild?: boolean }) {\n const Comp = asChild ? Slot.Root : \"button\";\n\n return (\n <Comp\n data-slot=\"sidebar-group-action\"\n data-sidebar=\"group-action\"\n className={cn(\n \"absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0\",\n // Increases the hit area of the button on mobile.\n \"after:absolute after:-inset-2 md:after:hidden\",\n \"group-data-[collapsible=icon]:hidden\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction SidebarGroupContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sidebar-group-content\"\n data-sidebar=\"group-content\"\n className={cn(\"w-full text-sm\", className)}\n {...props}\n />\n );\n}\n\nfunction SidebarMenu({ className, ...props }: React.ComponentProps<\"ul\">) {\n return (\n <ul\n data-slot=\"sidebar-menu\"\n data-sidebar=\"menu\"\n className={cn(\"flex w-full min-w-0 flex-col gap-1\", className)}\n {...props}\n />\n );\n}\n\nfunction SidebarMenuItem({ className, ...props }: React.ComponentProps<\"li\">) {\n return (\n <li\n data-slot=\"sidebar-menu-item\"\n data-sidebar=\"menu-item\"\n className={cn(\"group/menu-item relative\", className)}\n {...props}\n />\n );\n}\n\nconst sidebarMenuButtonVariants = cva(\n \"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground\",\n outline:\n \"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]\",\n },\n size: {\n default: \"h-8 text-sm\",\n sm: \"h-7 text-xs\",\n lg: \"h-12 text-sm group-data-[collapsible=icon]:p-0!\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nfunction SidebarMenuButton({\n asChild = false,\n isActive = false,\n variant = \"default\",\n size = \"default\",\n tooltip,\n className,\n ...props\n}: React.ComponentProps<\"button\"> & {\n asChild?: boolean;\n isActive?: boolean;\n tooltip?: string | React.ComponentProps<typeof TooltipContent>;\n} & VariantProps<typeof sidebarMenuButtonVariants>) {\n const Comp = asChild ? Slot.Root : \"button\";\n const { isMobile, state } = useSidebar();\n\n const button = (\n <Comp\n data-slot=\"sidebar-menu-button\"\n data-sidebar=\"menu-button\"\n data-size={size}\n data-active={isActive}\n className={cn(sidebarMenuButtonVariants({ variant, size }), className)}\n {...props}\n />\n );\n\n if (!tooltip) {\n return button;\n }\n\n if (typeof tooltip === \"string\") {\n tooltip = {\n children: tooltip,\n };\n }\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>{button}</TooltipTrigger>\n <TooltipContent\n side=\"right\"\n align=\"center\"\n hidden={state !== \"collapsed\" || isMobile}\n {...tooltip}\n />\n </Tooltip>\n );\n}\n\nfunction SidebarMenuAction({\n className,\n asChild = false,\n showOnHover = false,\n ...props\n}: React.ComponentProps<\"button\"> & {\n asChild?: boolean;\n showOnHover?: boolean;\n}) {\n const Comp = asChild ? Slot.Root : \"button\";\n\n return (\n <Comp\n data-slot=\"sidebar-menu-action\"\n data-sidebar=\"menu-action\"\n className={cn(\n \"absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0\",\n // Increases the hit area of the button on mobile.\n \"after:absolute after:-inset-2 md:after:hidden\",\n \"peer-data-[size=sm]/menu-button:top-1\",\n \"peer-data-[size=default]/menu-button:top-1.5\",\n \"peer-data-[size=lg]/menu-button:top-2.5\",\n \"group-data-[collapsible=icon]:hidden\",\n showOnHover &&\n \"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground data-[state=open]:opacity-100 md:opacity-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction SidebarMenuBadge({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sidebar-menu-badge\"\n data-sidebar=\"menu-badge\"\n className={cn(\n \"pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none\",\n \"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground\",\n \"peer-data-[size=sm]/menu-button:top-1\",\n \"peer-data-[size=default]/menu-button:top-1.5\",\n \"peer-data-[size=lg]/menu-button:top-2.5\",\n \"group-data-[collapsible=icon]:hidden\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction SidebarMenuSkeleton({\n className,\n showIcon = false,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showIcon?: boolean;\n}) {\n // Random width between 50 to 90%.\n const width = React.useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`;\n }, []);\n\n return (\n <div\n data-slot=\"sidebar-menu-skeleton\"\n data-sidebar=\"menu-skeleton\"\n className={cn(\"flex h-8 items-center gap-2 rounded-md px-2\", className)}\n {...props}\n >\n {showIcon && <Skeleton className=\"size-4 rounded-md\" data-sidebar=\"menu-skeleton-icon\" />}\n <Skeleton\n className=\"h-4 max-w-(--skeleton-width) flex-1\"\n data-sidebar=\"menu-skeleton-text\"\n style={\n {\n \"--skeleton-width\": width,\n } as React.CSSProperties\n }\n />\n </div>\n );\n}\n\nfunction SidebarMenuSub({ className, ...props }: React.ComponentProps<\"ul\">) {\n return (\n <ul\n data-slot=\"sidebar-menu-sub\"\n data-sidebar=\"menu-sub\"\n className={cn(\n \"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5\",\n \"group-data-[collapsible=icon]:hidden\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction SidebarMenuSubItem({ className, ...props }: React.ComponentProps<\"li\">) {\n return (\n <li\n data-slot=\"sidebar-menu-sub-item\"\n data-sidebar=\"menu-sub-item\"\n className={cn(\"group/menu-sub-item relative\", className)}\n {...props}\n />\n );\n}\n\nfunction SidebarMenuSubButton({\n asChild = false,\n size = \"md\",\n isActive = false,\n className,\n ...props\n}: React.ComponentProps<\"a\"> & {\n asChild?: boolean;\n size?: \"sm\" | \"md\";\n isActive?: boolean;\n}) {\n const Comp = asChild ? Slot.Root : \"a\";\n\n return (\n <Comp\n data-slot=\"sidebar-menu-sub-button\"\n data-sidebar=\"menu-sub-button\"\n data-size={size}\n data-active={isActive}\n className={cn(\n \"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground\",\n \"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground\",\n size === \"sm\" && \"text-xs\",\n size === \"md\" && \"text-sm\",\n \"group-data-[collapsible=icon]:hidden\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n};\n",
100
+ "type": "registry:component"
101
+ },
102
+ {
103
+ "path": "components/uibot/sidebars/ui-skeleton.tsx",
104
+ "target": "components/uibot/sidebars/ui-skeleton.tsx",
105
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\nimport { cn } from \"./utils\";\n\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"skeleton\"\n className={cn(\"animate-pulse rounded-md bg-accent\", className)}\n {...props}\n />\n );\n}\n\nexport { Skeleton };\n",
106
+ "type": "registry:component"
107
+ },
108
+ {
109
+ "path": "components/uibot/sidebars/ui-switch.tsx",
110
+ "target": "components/uibot/sidebars/ui-switch.tsx",
111
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport type * as React from \"react\";\nimport { cn } from \"./utils\";\nimport { Switch as SwitchPrimitive } from \"radix-ui\";\n\nfunction Switch({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root> & {\n size?: \"sm\" | \"default\";\n}) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n data-size={size}\n className={cn(\n \"peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80\",\n className,\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className={cn(\n \"pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground\",\n )}\n />\n </SwitchPrimitive.Root>\n );\n}\n\nexport { Switch };\n",
112
+ "type": "registry:component"
113
+ },
114
+ {
115
+ "path": "components/uibot/sidebars/ui-tooltip.tsx",
116
+ "target": "components/uibot/sidebars/ui-tooltip.tsx",
117
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport type * as React from \"react\";\nimport { cn } from \"./utils\";\nimport { Tooltip as TooltipPrimitive } from \"radix-ui\";\n\nfunction TooltipProvider({\n delayDuration = 0,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n return (\n <TooltipPrimitive.Provider\n data-slot=\"tooltip-provider\"\n delayDuration={delayDuration}\n {...props}\n />\n );\n}\n\nfunction Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />;\n}\n\nfunction TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nfunction TooltipContent({\n className,\n sideOffset = 0,\n children,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95\",\n className,\n )}\n {...props}\n >\n {children}\n <TooltipPrimitive.Arrow className=\"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground\" />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n",
118
+ "type": "registry:component"
119
+ },
120
+ {
121
+ "path": "components/uibot/sidebars/use-mobile.ts",
122
+ "target": "components/uibot/sidebars/use-mobile.ts",
123
+ "content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\nimport * as React from \"react\";\n\nconst MOBILE_BREAKPOINT = 768;\n\nexport function useIsMobile() {\n const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined);\n\n React.useEffect(() => {\n const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);\n const onChange = () => {\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n };\n mql.addEventListener(\"change\", onChange);\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n return () => mql.removeEventListener(\"change\", onChange);\n }, []);\n\n return !!isMobile;\n}\n",
124
+ "type": "registry:lib"
125
+ },
126
+ {
127
+ "path": "components/uibot/sidebars/utils.ts",
128
+ "target": "components/uibot/sidebars/utils.ts",
129
+ "content": "import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n",
130
+ "type": "registry:lib"
131
+ },
132
+ {
133
+ "path": "components/uibot/sidebars/theme.css",
134
+ "target": "components/uibot/sidebars/theme.css",
135
+ "content": "/* Optional Tailwind v4 bridge. Explicit host sidebar tokens take precedence. */\n@theme inline {\n --color-sidebar: var(--sidebar, var(--muted));\n --color-sidebar-foreground: var(--sidebar-foreground, var(--foreground));\n --color-sidebar-primary: var(--sidebar-primary, var(--primary));\n --color-sidebar-primary-foreground: var(--sidebar-primary-foreground, var(--primary-foreground));\n --color-sidebar-accent: var(--sidebar-accent, var(--accent));\n --color-sidebar-accent-foreground: var(--sidebar-accent-foreground, var(--accent-foreground));\n --color-sidebar-border: var(--sidebar-border, var(--border));\n --color-sidebar-ring: var(--sidebar-ring, var(--ring));\n}\n",
136
+ "type": "registry:lib"
137
+ },
138
+ {
139
+ "path": "components/uibot/sidebars/THIRD_PARTY_LICENSE",
140
+ "target": "components/uibot/sidebars/THIRD_PARTY_LICENSE",
141
+ "content": "MIT License\n\nCopyright (c) 2023 shadcn\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
142
+ "type": "registry:lib"
143
+ },
144
+ {
145
+ "path": "components/uibot/sidebars/provenance.json",
146
+ "target": "components/uibot/sidebars/provenance.json",
147
+ "content": "{\n \"source\": \"https://github.com/shadcn-ui/ui\",\n \"registry\": \"new-york-v4\",\n \"retrievedAt\": \"2026-10-27\",\n \"license\": \"MIT\",\n \"files\": [\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-01/page.tsx\",\n \"path\": \"sidebar-01.tsx\",\n \"upstreamSha256\": \"3587d625ceb2fadf4ca2cddf262b426b40d4dc142a880ce79c747eb2f04400fa\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-01/components/app-sidebar.tsx\",\n \"path\": \"sidebar-01-app-sidebar.tsx\",\n \"upstreamSha256\": \"0a12fbafd0752d3ee24d5dead49255e41243c5412cbaae9cda3bc4ca7fbe430a\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-01/components/search-form.tsx\",\n \"path\": \"sidebar-01-search-form.tsx\",\n \"upstreamSha256\": \"5780d88c28fa3f69bf34908c0bbad7b194453b3990c0e7ba74f051a7fe3061d8\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-01/components/version-switcher.tsx\",\n \"path\": \"sidebar-01-version-switcher.tsx\",\n \"upstreamSha256\": \"32ab6d736b7b5fc680790162f6694d2563aeab2fa706d30521f0fe32e14d0250\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-02/page.tsx\",\n \"path\": \"sidebar-02.tsx\",\n \"upstreamSha256\": \"598910ff154c57744e2b990c848f3d427cb20dfb14ab9581316c5601e179ebb2\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-02/components/app-sidebar.tsx\",\n \"path\": \"sidebar-02-app-sidebar.tsx\",\n \"upstreamSha256\": \"a030dfe3d125d4f78d6d8ff994cab10566b56b4e96165534d45567a5d5e76c29\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-02/components/search-form.tsx\",\n \"path\": \"sidebar-02-search-form.tsx\",\n \"upstreamSha256\": \"5780d88c28fa3f69bf34908c0bbad7b194453b3990c0e7ba74f051a7fe3061d8\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-02/components/version-switcher.tsx\",\n \"path\": \"sidebar-02-version-switcher.tsx\",\n \"upstreamSha256\": \"32ab6d736b7b5fc680790162f6694d2563aeab2fa706d30521f0fe32e14d0250\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-03/page.tsx\",\n \"path\": \"sidebar-03.tsx\",\n \"upstreamSha256\": \"85697a5804cfdd5d5895370030ba6dbe0986a8f816736d099432a09d14dff4ef\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-03/components/app-sidebar.tsx\",\n \"path\": \"sidebar-03-app-sidebar.tsx\",\n \"upstreamSha256\": \"7326feaff1524fa286cbcc63f6271373fd66530a57ef1042292867ff6a53fd53\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-04/page.tsx\",\n \"path\": \"sidebar-04.tsx\",\n \"upstreamSha256\": \"2c4090bfdc0a971b7b688b91b218247d2ae4f46c3c65290990db26c571d689a8\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-04/components/app-sidebar.tsx\",\n \"path\": \"sidebar-04-app-sidebar.tsx\",\n \"upstreamSha256\": \"b6c989694801cc7983f5b34e8eba55b06d39f23cda9aa24bcbed6cb9e8b8449a\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-05/page.tsx\",\n \"path\": \"sidebar-05.tsx\",\n \"upstreamSha256\": \"1e5ff283ad85edf2f9380a788f140233969725180199436daafa861a83154e39\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-05/components/app-sidebar.tsx\",\n \"path\": \"sidebar-05-app-sidebar.tsx\",\n \"upstreamSha256\": \"e4b9883b85ca2eaab221dbc28c02bcccf332021e386f8a5058e0a54a3d300469\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-05/components/search-form.tsx\",\n \"path\": \"sidebar-05-search-form.tsx\",\n \"upstreamSha256\": \"5780d88c28fa3f69bf34908c0bbad7b194453b3990c0e7ba74f051a7fe3061d8\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-06/page.tsx\",\n \"path\": \"sidebar-06.tsx\",\n \"upstreamSha256\": \"7be6d8865367cc3976b7b58be52a7a391ee361c781057707b40d9e675fd45547\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-06/components/app-sidebar.tsx\",\n \"path\": \"sidebar-06-app-sidebar.tsx\",\n \"upstreamSha256\": \"192c1c04bef4cd1111a7cb976e7f6b94a0add1d29a25c9c931552ab3ab66a767\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-06/components/nav-main.tsx\",\n \"path\": \"sidebar-06-nav-main.tsx\",\n \"upstreamSha256\": \"9c3fb050f56dc60cd3475bcd2f252ff4b3f46a5e7d43b05ff4f28c2381b14a78\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-06/components/sidebar-opt-in-form.tsx\",\n \"path\": \"sidebar-06-sidebar-opt-in-form.tsx\",\n \"upstreamSha256\": \"9a2cc7bdc71b5b6b23089d9e5477df711da7c8952f209360a065a4b3c264cacb\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-07/page.tsx\",\n \"path\": \"sidebar-07.tsx\",\n \"upstreamSha256\": \"3b5833120e28ec8b2aef00f083f8da055122cb17426d9857f8e8ad7c54be3c48\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-07/components/app-sidebar.tsx\",\n \"path\": \"sidebar-07-app-sidebar.tsx\",\n \"upstreamSha256\": \"5e13132f2be761929f84fb8b128f87791945555e846505ee5e95f7048434272d\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-07/components/nav-main.tsx\",\n \"path\": \"sidebar-07-nav-main.tsx\",\n \"upstreamSha256\": \"0ef916dc1342b184341e5af5513e0d0d7ed17b19552e33bd715def4eefb74538\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-07/components/nav-projects.tsx\",\n \"path\": \"sidebar-07-nav-projects.tsx\",\n \"upstreamSha256\": \"f6cc5c64cdd3a45167442481283fcd3924cbfd125da680d91250af192a9f634e\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-07/components/nav-user.tsx\",\n \"path\": \"sidebar-07-nav-user.tsx\",\n \"upstreamSha256\": \"9ce4e4b0cad5f3b3f46eb5673fa891f91650fdf8a942d4ef5f6b7a603be499a7\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-07/components/team-switcher.tsx\",\n \"path\": \"sidebar-07-team-switcher.tsx\",\n \"upstreamSha256\": \"1c215466753ba65ea2b2944111f9f5c02ac7725d13a05ae33beb46c0e14b1a92\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-08/page.tsx\",\n \"path\": \"sidebar-08.tsx\",\n \"upstreamSha256\": \"6391316e9a12a7dd2ff4d096b5934287ff706e8e0517a7a38d63948437424ccb\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-08/components/app-sidebar.tsx\",\n \"path\": \"sidebar-08-app-sidebar.tsx\",\n \"upstreamSha256\": \"f84d08aac29973c0831376858072def22f6d19983e92cb8e09f5f97085f9be4e\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-08/components/nav-main.tsx\",\n \"path\": \"sidebar-08-nav-main.tsx\",\n \"upstreamSha256\": \"4017ea40dab2ebfb614d627bb5d96089e8192592ba9da772111ebf185756a411\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-08/components/nav-projects.tsx\",\n \"path\": \"sidebar-08-nav-projects.tsx\",\n \"upstreamSha256\": \"97d358c58e1624fb13569b8fa842fada1ed7ddf5b9df733743c3d994c53e7536\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-08/components/nav-secondary.tsx\",\n \"path\": \"sidebar-08-nav-secondary.tsx\",\n \"upstreamSha256\": \"65ba11f1e953f36f74e6b735dd2bd4c3f703336116fb32356dd45d8ce3e634ec\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-08/components/nav-user.tsx\",\n \"path\": \"sidebar-08-nav-user.tsx\",\n \"upstreamSha256\": \"9ce4e4b0cad5f3b3f46eb5673fa891f91650fdf8a942d4ef5f6b7a603be499a7\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-09/page.tsx\",\n \"path\": \"sidebar-09.tsx\",\n \"upstreamSha256\": \"f2b5564758e3c76f01f780d199b3346849e630a2558f022ac2597b2e9152b8b1\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-09/components/app-sidebar.tsx\",\n \"path\": \"sidebar-09-app-sidebar.tsx\",\n \"upstreamSha256\": \"4fbb2883687aa9971b827f2e4e65062d021d763aee5e025693b4074e28d14e62\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-09/components/nav-user.tsx\",\n \"path\": \"sidebar-09-nav-user.tsx\",\n \"upstreamSha256\": \"35e1624f4008b4c8c7e4e89553de266ac095d1b4d9894f32e964f35bbdc17b72\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-10/page.tsx\",\n \"path\": \"sidebar-10.tsx\",\n \"upstreamSha256\": \"8db58af554110d90d4799cfef27737a4fbf36e18611901c4b4891abdeae9fa47\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-10/components/app-sidebar.tsx\",\n \"path\": \"sidebar-10-app-sidebar.tsx\",\n \"upstreamSha256\": \"6993035a02bc689ef0626f0150a7c830894437e5114600edbf8b3b9ec016aaa0\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-10/components/nav-actions.tsx\",\n \"path\": \"sidebar-10-nav-actions.tsx\",\n \"upstreamSha256\": \"149d90c5b41710f52936e8643f539590861854bcddd542ec1825ae1eb32b5e44\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-10/components/nav-favorites.tsx\",\n \"path\": \"sidebar-10-nav-favorites.tsx\",\n \"upstreamSha256\": \"17689ca02339e1b259e3bb9d7f7d19fec37d263c7fba52cbf77e0f3164e494a1\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-10/components/nav-main.tsx\",\n \"path\": \"sidebar-10-nav-main.tsx\",\n \"upstreamSha256\": \"5a01ebddf52942e41fadd88837336e3344287cd3981e1a47c11ed9e45d11d39a\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-10/components/nav-secondary.tsx\",\n \"path\": \"sidebar-10-nav-secondary.tsx\",\n \"upstreamSha256\": \"2d50f297631c92d884474ccdb8ff9c9d2844785d573a5b8a62c0156e9266e0cf\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-10/components/nav-workspaces.tsx\",\n \"path\": \"sidebar-10-nav-workspaces.tsx\",\n \"upstreamSha256\": \"34c0b5756595579e519ad9cac38f5d04cd785451159acf004b1a77c0c6e43dfb\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-10/components/team-switcher.tsx\",\n \"path\": \"sidebar-10-team-switcher.tsx\",\n \"upstreamSha256\": \"4fb0d624091b02adb8cc27bda52908c51acdde5acf77e27a4cbe06c574142e21\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-11/page.tsx\",\n \"path\": \"sidebar-11.tsx\",\n \"upstreamSha256\": \"96760f94d0eecc25b406065a8dd8dabf8524e507310fd6065ae0d933e6ca87b8\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-11/components/app-sidebar.tsx\",\n \"path\": \"sidebar-11-app-sidebar.tsx\",\n \"upstreamSha256\": \"2ef0333f5076ad0bff7622901fa081ebaa32afa1c6235751b39f91203f16e554\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-12/page.tsx\",\n \"path\": \"sidebar-12.tsx\",\n \"upstreamSha256\": \"5750ee4cdecbf2b5178e3dda8e5a29798e080a84014d314c78a790bb2ea19294\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-12/components/app-sidebar.tsx\",\n \"path\": \"sidebar-12-app-sidebar.tsx\",\n \"upstreamSha256\": \"8d855b04eb0bc00639375db01e014b4b881b7280b27d5b112593804aa46d1374\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-12/components/calendars.tsx\",\n \"path\": \"sidebar-12-calendars.tsx\",\n \"upstreamSha256\": \"aad993b93ed60f2cf0fa7308f4a4364b3868efb25bf2af9bb89cae2bc8349f05\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-12/components/date-picker.tsx\",\n \"path\": \"sidebar-12-date-picker.tsx\",\n \"upstreamSha256\": \"a3ca8f7865e639ca08e962597b8489110dcbcd75ce5b6ee2de78eb75c8fe1584\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-12/components/nav-user.tsx\",\n \"path\": \"sidebar-12-nav-user.tsx\",\n \"upstreamSha256\": \"664a059f8515c0994e9f8d3ab973ad8a6600e3f1475b9f203cdcf2b1d491f765\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-13/page.tsx\",\n \"path\": \"sidebar-13.tsx\",\n \"upstreamSha256\": \"4e0c020ec81f674bfa71f8a16af60c3b929c453a1d2493cf69b242f6aff270ec\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-13/components/settings-dialog.tsx\",\n \"path\": \"sidebar-13-settings-dialog.tsx\",\n \"upstreamSha256\": \"43bf51f5bc88a1790222ae309a065deb7a53d32ee84fd473638b89f08dabb466\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-14/page.tsx\",\n \"path\": \"sidebar-14.tsx\",\n \"upstreamSha256\": \"0045a294a511cd646e726e597ff2073ee1c982b863567bbf34fc2c755cf4542b\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-14/components/app-sidebar.tsx\",\n \"path\": \"sidebar-14-app-sidebar.tsx\",\n \"upstreamSha256\": \"a6e82f1e461932660111e8316f935d5e3d8ce4b5cdc5f75d434a4842aef9fa92\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-15/page.tsx\",\n \"path\": \"sidebar-15.tsx\",\n \"upstreamSha256\": \"75a4f5150fb75713b9db1638835151f4cd5cf9f7f4dd1249c9be0c49f24f1e68\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-15/components/calendars.tsx\",\n \"path\": \"sidebar-15-calendars.tsx\",\n \"upstreamSha256\": \"85b101e104dec46a6cd3d1cb848d5b1cca933d4c820d44b75aee8ac9325435ec\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-15/components/date-picker.tsx\",\n \"path\": \"sidebar-15-date-picker.tsx\",\n \"upstreamSha256\": \"a3ca8f7865e639ca08e962597b8489110dcbcd75ce5b6ee2de78eb75c8fe1584\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-15/components/nav-favorites.tsx\",\n \"path\": \"sidebar-15-nav-favorites.tsx\",\n \"upstreamSha256\": \"17689ca02339e1b259e3bb9d7f7d19fec37d263c7fba52cbf77e0f3164e494a1\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-15/components/nav-main.tsx\",\n \"path\": \"sidebar-15-nav-main.tsx\",\n \"upstreamSha256\": \"5a01ebddf52942e41fadd88837336e3344287cd3981e1a47c11ed9e45d11d39a\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-15/components/nav-secondary.tsx\",\n \"path\": \"sidebar-15-nav-secondary.tsx\",\n \"upstreamSha256\": \"2d50f297631c92d884474ccdb8ff9c9d2844785d573a5b8a62c0156e9266e0cf\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-15/components/nav-user.tsx\",\n \"path\": \"sidebar-15-nav-user.tsx\",\n \"upstreamSha256\": \"664a059f8515c0994e9f8d3ab973ad8a6600e3f1475b9f203cdcf2b1d491f765\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-15/components/nav-workspaces.tsx\",\n \"path\": \"sidebar-15-nav-workspaces.tsx\",\n \"upstreamSha256\": \"34c0b5756595579e519ad9cac38f5d04cd785451159acf004b1a77c0c6e43dfb\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-15/components/sidebar-left.tsx\",\n \"path\": \"sidebar-15-sidebar-left.tsx\",\n \"upstreamSha256\": \"6e648c5d5afe481a9e0e18b3934223b320f0982d70361fd805f834c59dd48fcd\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-15/components/sidebar-right.tsx\",\n \"path\": \"sidebar-15-sidebar-right.tsx\",\n \"upstreamSha256\": \"a91398e204140221834434b2d45adc017e821167b54e333f4641296100663c63\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-15/components/team-switcher.tsx\",\n \"path\": \"sidebar-15-team-switcher.tsx\",\n \"upstreamSha256\": \"4fb0d624091b02adb8cc27bda52908c51acdde5acf77e27a4cbe06c574142e21\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-16/page.tsx\",\n \"path\": \"sidebar-16.tsx\",\n \"upstreamSha256\": \"007377445462fe1a6133da05c2e2a5d126ac6c4b723256f584c257cd0b540788\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-16/components/app-sidebar.tsx\",\n \"path\": \"sidebar-16-app-sidebar.tsx\",\n \"upstreamSha256\": \"64e5fc2779777e346cbe52061257fdc110386a7e9397321134d27fd3276573b1\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-16/components/nav-main.tsx\",\n \"path\": \"sidebar-16-nav-main.tsx\",\n \"upstreamSha256\": \"4017ea40dab2ebfb614d627bb5d96089e8192592ba9da772111ebf185756a411\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-16/components/nav-projects.tsx\",\n \"path\": \"sidebar-16-nav-projects.tsx\",\n \"upstreamSha256\": \"97d358c58e1624fb13569b8fa842fada1ed7ddf5b9df733743c3d994c53e7536\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-16/components/nav-secondary.tsx\",\n \"path\": \"sidebar-16-nav-secondary.tsx\",\n \"upstreamSha256\": \"65ba11f1e953f36f74e6b735dd2bd4c3f703336116fb32356dd45d8ce3e634ec\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-16/components/nav-user.tsx\",\n \"path\": \"sidebar-16-nav-user.tsx\",\n \"upstreamSha256\": \"9ce4e4b0cad5f3b3f46eb5673fa891f91650fdf8a942d4ef5f6b7a603be499a7\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-16/components/search-form.tsx\",\n \"path\": \"sidebar-16-search-form.tsx\",\n \"upstreamSha256\": \"a58e0276319dc4f6c133122c913e6a88f9395d3271b05e807818c5eb1ee13311\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/blocks/sidebar-16/components/site-header.tsx\",\n \"path\": \"sidebar-16-site-header.tsx\",\n \"upstreamSha256\": \"db9d62f26a640406ac770b858a4a654f7d3e114b0a354272bf5ccff5bf5bbfc8\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/sidebar.tsx\",\n \"path\": \"ui-sidebar.tsx\",\n \"upstreamSha256\": \"2ba1a9b9422f4172373f4cd0587b675d2331a41f4fa68f65dab2b23ca98fd9d2\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/skeleton.tsx\",\n \"path\": \"ui-skeleton.tsx\",\n \"upstreamSha256\": \"f51ce0fcd31e5c31437382e80ea0af94b4fc3d64221d27091d36824546780a43\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/sheet.tsx\",\n \"path\": \"ui-sheet.tsx\",\n \"upstreamSha256\": \"ea473d38a26a9b0b879e5a13139899ad45e9782e896b3fa205c7763a6c506876\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/tooltip.tsx\",\n \"path\": \"ui-tooltip.tsx\",\n \"upstreamSha256\": \"611e4305879b2773eafe76bf3c5caa69d8e47367fd97887a71634a27828f4433\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/calendar.tsx\",\n \"path\": \"ui-calendar.tsx\",\n \"upstreamSha256\": \"78ed2cc49dafc5bb5df7b1d4a325e5fc314237386747362e5f0761a2c539a934\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/collapsible.tsx\",\n \"path\": \"ui-collapsible.tsx\",\n \"upstreamSha256\": \"c6598e5584f4258b5d9fefadbc5ad6a66888ad58729f4b634a0bb2d9c513188b\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/input.tsx\",\n \"path\": \"ui-input.tsx\",\n \"upstreamSha256\": \"0c9457181f6ddc80969bcf854e92c362903a55b6e889fbef3fd85343ecc4af5b\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/switch.tsx\",\n \"path\": \"ui-switch.tsx\",\n \"upstreamSha256\": \"743676f33f823ffa8008bbd5eb94cb68e227599447d60e132a202291a395f8e4\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/separator.tsx\",\n \"path\": \"ui-separator.tsx\",\n \"upstreamSha256\": \"ad7d5403fe337160e41dbf04147896e448ae3a747b8d06660d627d74d60021bc\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/card.tsx\",\n \"path\": \"ui-card.tsx\",\n \"upstreamSha256\": \"ef8305b12c3112dab42a4708b41b1ebcc042fa5ab4c20f039da8d45b09ed5059\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/dropdown-menu.tsx\",\n \"path\": \"ui-dropdown-menu.tsx\",\n \"upstreamSha256\": \"d954efb735f13734751207ad22cb0cddd7f6ec53c59d16675d103dae08cb61fb\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/popover.tsx\",\n \"path\": \"ui-popover.tsx\",\n \"upstreamSha256\": \"3f99d3add6c9fa4f03721e81297ee10e1310785ee1d9d9d4c82a114d84ab0757\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/avatar.tsx\",\n \"path\": \"ui-avatar.tsx\",\n \"upstreamSha256\": \"0c5c48b8a1dff4fdc5ff9b6cb79cc9cd138682b7d86868068f571befe9675e88\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/hooks/use-mobile.ts\",\n \"path\": \"use-mobile.ts\",\n \"upstreamSha256\": \"ad0936f84f1df79d3697bfbff9c18f8ad58431c1cbaf2359c6a853b0fcc9f28b\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/button.tsx\",\n \"path\": \"ui-button.tsx\",\n \"upstreamSha256\": \"79dd6f75f8136394442202d6b8b922fb269eaad0a5dba579397c9d5b41f893bb\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/breadcrumb.tsx\",\n \"path\": \"ui-breadcrumb.tsx\",\n \"upstreamSha256\": \"c75fcd3d9e8470188bc0dd4b27a2b26fff3ad42b9c9c534a953dc090ae2cba33\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/dialog.tsx\",\n \"path\": \"ui-dialog.tsx\",\n \"upstreamSha256\": \"2ade6074e5fad0a4eb171ead44c43d3301a3c83d186d7236fb1fdbea80ee556b\"\n },\n {\n \"upstreamPath\": \"registry/new-york-v4/ui/label.tsx\",\n \"path\": \"ui-label.tsx\",\n \"upstreamSha256\": \"344bde38b8531615dbf8e14af3895517c24d8ef6ce56ddeda7e2e6fe4b5d0c00\"\n }\n ]\n}\n",
148
+ "type": "registry:lib"
149
+ }
150
+ ],
151
+ "meta": {
152
+ "composite": true,
153
+ "channel": "public"
154
+ }
155
+ }
@@ -4,13 +4,13 @@
4
4
  "type": "registry:lib",
5
5
  "description": "UIBot runtime base: RendererComponent type shim + cn util. Pulled automatically by every UIBot block.",
6
6
  "dependencies": [
7
- "clsx",
8
- "tailwind-merge"
7
+ "clsx@2.1.1",
8
+ "tailwind-merge@3.7.0"
9
9
  ],
10
10
  "files": [
11
11
  {
12
12
  "path": "lib/uibot-renderer.ts",
13
- "content": "// uibot renderer shim — distributed alongside blocks so a consumer app does\n// not need @uibot/renderer-react installed. Type-only; no runtime.\n//\n// The shapes mirror the public RendererComponent surface the blocks reference:\n// `ctx.resolve.getState(...)` (interactive blocks read state) and\n// `ctx.dispatch(chain, scope)` (interactive blocks dispatch ActionChains). The\n// minimal ActionChain/PropValue types are inlined here so the shim stays\n// self-contained — a shadcn-only consumer never needs the contracts shim.\n\nexport type ShimPropValue =\n | string\n | number\n | boolean\n | null\n | { [key: string]: ShimPropValue }\n | ShimPropValue[];\n\nexport interface ShimAction {\n action: string;\n params: Record<string, ShimPropValue>;\n onSuccess?: ShimAction[];\n onError?: ShimAction[];\n}\n\nexport type ShimActionChain = ShimAction[];\n\nexport interface RendererResolveContext {\n readonly state: Record<string, unknown>;\n resolveProp(value: unknown): unknown;\n getState(path: string): unknown;\n}\n\nexport type RendererDispatch = (\n chain: ShimActionChain,\n scope?: { event?: unknown },\n) => void | Promise<void>;\n\nexport interface RendererComponentContext {\n readonly elementKey: string;\n readonly element: unknown;\n readonly status: string;\n readonly visible: boolean;\n readonly children: unknown[];\n readonly slots: Record<string, unknown[]>;\n readonly registry: unknown;\n readonly resolve: RendererResolveContext;\n readonly dispatch?: RendererDispatch;\n}\n\nexport type RendererComponent<TProps = Record<string, unknown>> = (\n props: TProps,\n context: RendererComponentContext,\n) => unknown;\n",
13
+ "content": "// uibot renderer shim — distributed alongside blocks so a consumer app does\n// not need @uibot/renderer-react installed. Type-only; no runtime.\n//\n// The shapes mirror the public RendererComponent surface the blocks reference:\n// `ctx.resolve.getState(...)` (interactive blocks read state) and\n// `ctx.dispatch(chain, scope)` (interactive blocks dispatch ActionChains). The\n// minimal ActionChain/PropValue types are inlined here so the shim stays\n// self-contained — a shadcn-only consumer never needs the contracts shim.\n\nexport type ShimPropValue =\n | string\n | number\n | boolean\n | null\n | { [key: string]: ShimPropValue }\n | ShimPropValue[];\n\nexport interface ShimAction {\n action: string;\n params: Record<string, ShimPropValue>;\n onSuccess?: ShimAction[];\n onError?: ShimAction[];\n}\n\nexport type ShimActionChain = ShimAction[];\n\nexport type ShimActionEventValue = string | number | boolean | null;\n\nexport interface ShimActionEventScope {\n type?: string;\n name?: string;\n value?: ShimActionEventValue;\n checked?: boolean;\n values?: Record<string, ShimActionEventValue | ShimActionEventValue[]>;\n}\n\nexport interface RendererResolveContext {\n readonly state: Record<string, unknown>;\n resolveProp(value: unknown): unknown;\n getState(path: string): unknown;\n}\n\nexport type RendererDispatch = (\n chain: ShimActionChain,\n scope?: { event?: ShimActionEventScope },\n) => void | Promise<void>;\n\nexport interface RendererComponentContext {\n readonly elementKey: string;\n readonly element: { readonly events?: Record<string, ShimActionChain> };\n readonly status: string;\n readonly visible: boolean;\n readonly children: unknown[];\n readonly slots: Record<string, unknown[]>;\n readonly registry: unknown;\n readonly resolve: RendererResolveContext;\n readonly dispatch?: RendererDispatch;\n}\n\nexport type RendererComponent<TProps = Record<string, unknown>> = (\n props: TProps,\n context: RendererComponentContext,\n) => unknown;\n",
14
14
  "type": "registry:lib"
15
15
  },
16
16
  {