organify-ui 0.3.45 → 0.3.47

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.
@@ -170,7 +170,7 @@ function OrgLoaderInline({ className, ...props }) {
170
170
  );
171
171
  }
172
172
  var buttonVariants = cva(
173
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
173
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*=size-])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
174
174
  {
175
175
  variants: {
176
176
  variant: {
@@ -1921,7 +1921,7 @@ function DialogContent({
1921
1921
  {
1922
1922
  "data-slot": "dialog-content",
1923
1923
  className: cn(
1924
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl border border-gray-200 dark:!border-gray-800 !bg-white dark:!bg-[#0D0A1A] !text-gray-900 dark:!text-gray-100 p-6 shadow-2xl dark:shadow-[0_0_40px_rgba(124,58,237,0.15)] duration-[400ms] sm:max-w-lg",
1924
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl border border-theme-subtle bg-theme-surface text-theme p-6 shadow-2xl dark:shadow-[0_0_40px_rgba(124,58,237,0.15)] duration-[400ms] sm:max-w-lg",
1925
1925
  className
1926
1926
  ),
1927
1927
  ...props,
@@ -1931,7 +1931,7 @@ function DialogContent({
1931
1931
  DialogPrimitive.Close,
1932
1932
  {
1933
1933
  "data-slot": "dialog-close",
1934
- className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1934
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4",
1935
1935
  children: [
1936
1936
  /* @__PURE__ */ jsx(XIcon, {}),
1937
1937
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
@@ -2016,25 +2016,26 @@ function ResponsiveDialog({
2016
2016
  return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(
2017
2017
  DialogContent,
2018
2018
  {
2019
- className: cn("max-w-2xl max-h-[85vh] overflow-y-auto", contentClassName),
2019
+ style: { display: "flex", flexDirection: "column", overflow: "hidden" },
2020
+ className: cn("max-w-2xl max-h-[85vh] p-0", contentClassName),
2020
2021
  children: [
2021
- (title || description) && /* @__PURE__ */ jsxs(DialogHeader, { children: [
2022
+ (title || description) && /* @__PURE__ */ jsxs(DialogHeader, { className: "px-6 pt-6 pb-0 shrink-0", children: [
2022
2023
  title && /* @__PURE__ */ jsx(DialogTitle, { className: "text-lg", children: title }),
2023
2024
  description && /* @__PURE__ */ jsx(DialogDescription, { className: "text-theme-muted text-sm", children: description })
2024
2025
  ] }),
2025
- /* @__PURE__ */ jsx("div", { className: cn("text-theme", className), children }),
2026
- footer && /* @__PURE__ */ jsx(DialogFooter, { children: footer })
2026
+ /* @__PURE__ */ jsx("div", { className: cn("flex-1 overflow-y-auto px-6 py-4 text-theme min-h-0", className), children }),
2027
+ footer && /* @__PURE__ */ jsx(DialogFooter, { className: "px-6 pb-5 pt-3 shrink-0 border-t border-theme-subtle/50", children: footer })
2027
2028
  ]
2028
2029
  }
2029
2030
  ) });
2030
2031
  }
2031
- return /* @__PURE__ */ jsx(Drawer, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DrawerContent, { className: cn("max-h-[90vh]", contentClassName), children: [
2032
- (title || description) && /* @__PURE__ */ jsxs(DrawerHeader, { className: "text-left", children: [
2032
+ return /* @__PURE__ */ jsx(Drawer, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DrawerContent, { className: cn("flex flex-col max-h-[92vh]", contentClassName), children: [
2033
+ (title || description) && /* @__PURE__ */ jsxs(DrawerHeader, { className: "text-left shrink-0", children: [
2033
2034
  title && /* @__PURE__ */ jsx(DrawerTitle, { className: "text-lg", children: title }),
2034
2035
  description && /* @__PURE__ */ jsx(DrawerDescription, { className: "text-theme-muted text-sm", children: description })
2035
2036
  ] }),
2036
- /* @__PURE__ */ jsx("div", { className: cn("overflow-y-auto px-4 pb-4 text-theme", className), children }),
2037
- footer && /* @__PURE__ */ jsx(DrawerFooter, { children: footer })
2037
+ /* @__PURE__ */ jsx("div", { className: cn("flex-1 overflow-y-auto px-4 pb-4 text-theme min-h-0", className), children }),
2038
+ footer && /* @__PURE__ */ jsx(DrawerFooter, { className: "shrink-0 border-t border-theme-subtle/50 pb-6", children: footer })
2038
2039
  ] }) });
2039
2040
  }
2040
2041
  ResponsiveDialog.displayName = "ResponsiveDialog";
@@ -4843,5 +4844,5 @@ function useAiInline({ gatewayUrl, workspaceId, projectId }) {
4843
4844
  }
4844
4845
 
4845
4846
  export { AiChatSidebar, Alert, Button, ChatMessages, ChatSidebar, CommandBar, CreateRoomDialog, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, InlineAiButton, Input, Label, MOCK_PROJECTS, MOCK_USERS, MentionPopover, MessageBubble, MessageInput, OrgLoader, OrgLoaderInline, OrganifyChat, ResponsiveDialog, RoomManagementPanel, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TypingIndicatorMock, UserAvatar, UserDisplayName, alertVariants, buttonVariants, generateAutoReplies, getMockMentionOptions, getRoomPermissions, inputVariants, invalidateUserCache, orgLoaderVariants, resolveUser, seedUserCache, typingIndicator, useAiInline, useChat, useResolvedUser };
4846
- //# sourceMappingURL=chunk-YZNM4JPJ.js.map
4847
- //# sourceMappingURL=chunk-YZNM4JPJ.js.map
4847
+ //# sourceMappingURL=chunk-NPM3XFSP.js.map
4848
+ //# sourceMappingURL=chunk-NPM3XFSP.js.map