organify-ui 0.3.12 → 0.3.13

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.
@@ -1,4 +1,4 @@
1
- import { cn, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, ScrollArea, Skeleton, Avatar, AvatarFallback, Badge, useOrganifyApi, useOrganifyUser, useOrganifyWorkspace, useOrganifyGql } from './chunk-VHQZS77G.js';
1
+ import { cn, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, ScrollArea, Skeleton, Avatar, AvatarFallback, Drawer, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription, DrawerFooter, Badge, useOrganifyApi, useOrganifyUser, useOrganifyWorkspace, useOrganifyGql } from './chunk-XTMS6DXV.js';
2
2
  import { OrgPlus, OrgSearch, OrgComment, OrgClose, OrgEdit, OrgTeam, OrgGlobe, OrgLock, OrgCheckCircle, OrgError, OrgWarning, OrgInfo, OrgChevronDown, OrgChevronRight, OrgDoor, OrgTrash, OrgCheck, OrgFolder, OrgChevronLeft } from './chunk-MZKEDV5W.js';
3
3
  import * as React6 from 'react';
4
4
  import React6__default, { useState, useCallback, useEffect } from 'react';
@@ -8,7 +8,6 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
8
8
  import { motion, AnimatePresence } from 'framer-motion';
9
9
  import * as DialogPrimitive from '@radix-ui/react-dialog';
10
10
  import { ChevronDown, ChevronUp, Check, XIcon } from 'lucide-react';
11
- import { Drawer as Drawer$1 } from 'vaul';
12
11
  import * as TabsPrimitive from '@radix-ui/react-tabs';
13
12
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
14
13
  import * as SelectPrimitive from '@radix-ui/react-select';
@@ -1596,7 +1595,7 @@ function Label({ className, ...props }) {
1596
1595
  );
1597
1596
  }
1598
1597
  var textareaVariants = cva(
1599
- "flex w-full min-h-[100px] bg-white/[0.03] backdrop-blur-md border border-white/10 rounded-xl px-4 py-3 text-sm font-light text-org-text transition-all duration-[400ms] ease-[cubic-bezier(0.25,1,0.5,1)] placeholder:text-org-text-muted focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 resize-none",
1598
+ "flex w-full min-h-[100px] bg-white/[0.03] backdrop-blur-md border border-primary/15 rounded-xl px-4 py-3 text-sm font-light text-org-text transition-all duration-[400ms] ease-[cubic-bezier(0.25,1,0.5,1)] placeholder:text-org-text-muted focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 resize-none",
1600
1599
  {
1601
1600
  variants: {
1602
1601
  variant: {
@@ -1755,112 +1754,6 @@ function DialogDescription({
1755
1754
  }
1756
1755
  );
1757
1756
  }
1758
- function Drawer({
1759
- shouldScaleBackground = true,
1760
- ...props
1761
- }) {
1762
- return /* @__PURE__ */ jsx(Drawer$1.Root, { shouldScaleBackground, ...props });
1763
- }
1764
- var DrawerTrigger = Drawer$1.Trigger;
1765
- var DrawerPortal = Drawer$1.Portal;
1766
- var DrawerClose = Drawer$1.Close;
1767
- function DrawerOverlay({
1768
- className,
1769
- ...props
1770
- }) {
1771
- return /* @__PURE__ */ jsx(
1772
- Drawer$1.Overlay,
1773
- {
1774
- "data-slot": "drawer-overlay",
1775
- className: cn("fixed inset-0 z-50 bg-theme-subtle-20", className),
1776
- ...props
1777
- }
1778
- );
1779
- }
1780
- function DrawerContent({
1781
- className,
1782
- children,
1783
- ...props
1784
- }) {
1785
- return /* @__PURE__ */ jsxs(DrawerPortal, { children: [
1786
- /* @__PURE__ */ jsx(DrawerOverlay, {}),
1787
- /* @__PURE__ */ jsx(
1788
- Drawer$1.Content,
1789
- {
1790
- asChild: true,
1791
- "data-slot": "drawer-content",
1792
- ...props,
1793
- children: /* @__PURE__ */ jsxs(
1794
- motion.div,
1795
- {
1796
- initial: { y: "100%", opacity: 0 },
1797
- animate: { y: 0, opacity: 1 },
1798
- exit: { y: "100%", opacity: 0 },
1799
- transition: {
1800
- type: "spring",
1801
- stiffness: 400,
1802
- damping: 40
1803
- },
1804
- className: cn(
1805
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border-t border-x border-gray-200 dark:!border-gray-800 !bg-white dark:!bg-[#0D0A1A] !text-gray-900 dark:!text-gray-100 shadow-2xl dark:shadow-[0_-10px_40px_rgba(124,58,237,0.15)]",
1806
- className
1807
- ),
1808
- children: [
1809
- /* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-theme-subtle" }),
1810
- children
1811
- ]
1812
- }
1813
- )
1814
- }
1815
- )
1816
- ] });
1817
- }
1818
- function DrawerHeader({ className, ...props }) {
1819
- return /* @__PURE__ */ jsx(
1820
- "div",
1821
- {
1822
- "data-slot": "drawer-header",
1823
- className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
1824
- ...props
1825
- }
1826
- );
1827
- }
1828
- function DrawerFooter({ className, ...props }) {
1829
- return /* @__PURE__ */ jsx(
1830
- "div",
1831
- {
1832
- "data-slot": "drawer-footer",
1833
- className: cn("mt-auto flex flex-col gap-2 p-4", className),
1834
- ...props
1835
- }
1836
- );
1837
- }
1838
- function DrawerTitle({
1839
- className,
1840
- ...props
1841
- }) {
1842
- return /* @__PURE__ */ jsx(
1843
- Drawer$1.Title,
1844
- {
1845
- "data-slot": "drawer-title",
1846
- className: cn("text-lg font-semibold leading-none tracking-tight", className),
1847
- ...props
1848
- }
1849
- );
1850
- }
1851
- function DrawerDescription({
1852
- className,
1853
- ...props
1854
- }) {
1855
- return /* @__PURE__ */ jsx(
1856
- Drawer$1.Description,
1857
- {
1858
- "data-slot": "drawer-description",
1859
- className: cn("text-sm text-theme-secondary", className),
1860
- ...props
1861
- }
1862
- );
1863
- }
1864
1757
  function useMediaQuery(query) {
1865
1758
  const [matches, setMatches] = React6.useState(false);
1866
1759
  React6.useEffect(() => {
@@ -1920,7 +1813,7 @@ function TabsList({
1920
1813
  {
1921
1814
  "data-slot": "tabs-list",
1922
1815
  className: cn(
1923
- "inline-flex h-10 items-center justify-center rounded-xl bg-white/[0.03] backdrop-blur-md border border-white/10 p-1 text-theme-muted",
1816
+ "inline-flex h-10 items-center justify-center rounded-xl bg-white/[0.03] backdrop-blur-md border border-primary/15 p-1 text-theme-muted",
1924
1817
  className
1925
1818
  ),
1926
1819
  ...props
@@ -2405,7 +2298,7 @@ function getInitials4(name) {
2405
2298
  var roleBadgeColors = {
2406
2299
  OWNER: "bg-amber-500/15 text-amber-300 border-amber-500/30",
2407
2300
  ADMIN: "bg-blue-500/15 text-blue-300 border-blue-500/30",
2408
- MEMBER: "bg-white/5 text-white/40 border-white/10"
2301
+ MEMBER: "bg-white/5 text-white/40 border-primary/15"
2409
2302
  };
2410
2303
  var roleLabels = {
2411
2304
  OWNER: "Dono",
@@ -3861,7 +3754,7 @@ function OrganifyChat({
3861
3754
  onClick: handleCloseManagement
3862
3755
  }
3863
3756
  ),
3864
- /* @__PURE__ */ jsx("div", { className: "w-[85%] max-w-sm h-full bg-white/[0.03] backdrop-blur-[40px] border-l border-white/10 animate-in slide-in-from-right-5 duration-[400ms]", children: /* @__PURE__ */ jsx(
3757
+ /* @__PURE__ */ jsx("div", { className: "w-[85%] max-w-sm h-full bg-white/[0.03] backdrop-blur-[40px] border-l border-primary/15 animate-in slide-in-from-right-5 duration-[400ms]", children: /* @__PURE__ */ jsx(
3865
3758
  RoomManagementPanel,
3866
3759
  {
3867
3760
  room: activeRoom,
@@ -4578,6 +4471,6 @@ function useAiInline({ gatewayUrl, workspaceId, projectId }) {
4578
4471
  return { loading, suggestion, requestSuggestion, dismiss };
4579
4472
  }
4580
4473
 
4581
- export { AiChatSidebar, Alert, Button, ChatMessages, ChatSidebar, CommandBar, CreateRoomDialog, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, 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, alertVariants, buttonVariants, generateAutoReplies, getMockMentionOptions, getRoomPermissions, inputVariants, orgLoaderVariants, typingIndicator, useAiInline, useChat };
4582
- //# sourceMappingURL=chunk-HFX2XZKZ.js.map
4583
- //# sourceMappingURL=chunk-HFX2XZKZ.js.map
4474
+ 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, alertVariants, buttonVariants, generateAutoReplies, getMockMentionOptions, getRoomPermissions, inputVariants, orgLoaderVariants, typingIndicator, useAiInline, useChat };
4475
+ //# sourceMappingURL=chunk-UMUOHUGU.js.map
4476
+ //# sourceMappingURL=chunk-UMUOHUGU.js.map