randmarcomps 1.51.0 → 1.56.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.
@@ -1,37 +1,16 @@
1
+ import { ButtonProps as ButtonProps_2 } from './button';
1
2
  import { ClassProp } from 'class-variance-authority/types';
2
3
  import * as DialogPrimitive from '@radix-ui/react-dialog';
4
+ import { InputProps as InputProps_2 } from './input';
3
5
  import { JSX } from 'react/jsx-runtime';
4
6
  import * as LabelPrimitive from '@radix-ui/react-label';
5
7
  import { MouseEventHandler } from 'react';
6
8
  import { OTPInput } from 'input-otp';
7
9
  import * as React_2 from 'react';
8
10
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
9
- import { Sidebar } from './components/ui/sidebar';
10
- import { SidebarContent } from './components/ui/sidebar';
11
- import { SidebarFooter } from './components/ui/sidebar';
12
- import { SidebarGroup } from './components/ui/sidebar';
13
- import { SidebarGroupAction } from './components/ui/sidebar';
14
- import { SidebarGroupContent } from './components/ui/sidebar';
15
- import { SidebarGroupLabel } from './components/ui/sidebar';
16
- import { SidebarHeader } from './components/ui/sidebar';
17
- import { SidebarInput } from './components/ui/sidebar';
18
- import { SidebarInset } from './components/ui/sidebar';
19
- import { SidebarMenu } from './components/ui/sidebar';
20
- import { SidebarMenuAction } from './components/ui/sidebar';
21
- import { SidebarMenuBadge } from './components/ui/sidebar';
22
- import { SidebarMenuButton } from './components/ui/sidebar';
23
- import { SidebarMenuItem } from './components/ui/sidebar';
24
- import { SidebarMenuSkeleton } from './components/ui/sidebar';
25
- import { SidebarMenuSub } from './components/ui/sidebar';
26
- import { SidebarMenuSubButton } from './components/ui/sidebar';
27
- import { SidebarMenuSubItem } from './components/ui/sidebar';
28
- import { SidebarProvider } from './components/ui/sidebar';
29
- import { SidebarRail } from './components/ui/sidebar';
30
- import { SidebarSeparator } from './components/ui/sidebar';
31
- import { SidebarTrigger } from './components/ui/sidebar';
11
+ import { SeparatorProps } from '@radix-ui/react-separator';
32
12
  import * as ToastPrimitives from '@radix-ui/react-toast';
33
13
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
34
- import { useSidebar } from './components/ui/sidebar';
35
14
  import { VariantProps } from 'class-variance-authority';
36
15
 
37
16
  export declare function AvatarFooter({ onClick, publicName, applicationName, partnerId }: AvatarFooterProps): JSX.Element;
@@ -84,6 +63,10 @@ export declare const DialogHeader: {
84
63
  displayName: string;
85
64
  };
86
65
 
66
+ export declare const DialogOverlay: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
67
+
68
+ export declare const DialogPortal: React_2.FC<DialogPrimitive.DialogPortalProps>;
69
+
87
70
  export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
88
71
 
89
72
  export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
@@ -102,7 +85,7 @@ export declare function InputOTPSlot({ index, className, ...props }: React_2.Com
102
85
  index: number;
103
86
  }): JSX.Element;
104
87
 
105
- declare interface InputProps extends Omit<React_2.ComponentProps<"input">, "onChange"> {
88
+ export declare interface InputProps extends Omit<React_2.ComponentProps<"input">, "onChange"> {
106
89
  mask?: MaskType;
107
90
  onChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
108
91
  }
@@ -183,51 +166,91 @@ declare const sheetVariants: (props?: ({
183
166
  side?: "top" | "right" | "bottom" | "left" | null | undefined;
184
167
  } & ClassProp) | undefined) => string;
185
168
 
186
- export { Sidebar }
169
+ export declare const Sidebar: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
170
+ side?: "left" | "right";
171
+ variant?: "sidebar" | "floating" | "inset";
172
+ collapsible?: "offcanvas" | "icon" | "none";
173
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
174
+
175
+ export declare const SidebarContent: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
176
+
177
+ declare type SidebarContext = {
178
+ state: "expanded" | "collapsed";
179
+ open: boolean;
180
+ setOpen: (open: boolean) => void;
181
+ openMobile: boolean;
182
+ setOpenMobile: (open: boolean) => void;
183
+ isMobile: boolean;
184
+ toggleSidebar: () => void;
185
+ };
187
186
 
188
- export { SidebarContent }
187
+ declare const SidebarContext: React_2.Context<SidebarContext | null>;
189
188
 
190
- export { SidebarFooter }
189
+ export declare const SidebarFooter: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
191
190
 
192
- export { SidebarGroup }
191
+ export declare const SidebarGroup: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
193
192
 
194
- export { SidebarGroupAction }
193
+ export declare const SidebarGroupAction: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLButtonElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement> & {
194
+ asChild?: boolean;
195
+ }, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
195
196
 
196
- export { SidebarGroupContent }
197
+ export declare const SidebarGroupContent: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
197
198
 
198
- export { SidebarGroupLabel }
199
+ export declare const SidebarGroupLabel: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
200
+ asChild?: boolean;
201
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
199
202
 
200
- export { SidebarHeader }
203
+ export declare const SidebarHeader: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
201
204
 
202
- export { SidebarInput }
205
+ export declare const SidebarInput: React_2.ForwardRefExoticComponent<Omit<Omit<InputProps_2, "ref"> & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
203
206
 
204
- export { SidebarInset }
207
+ export declare const SidebarInset: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
205
208
 
206
- export { SidebarMenu }
209
+ export declare const SidebarMenu: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
207
210
 
208
- export { SidebarMenuAction }
211
+ export declare const SidebarMenuAction: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLButtonElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement> & {
212
+ asChild?: boolean;
213
+ showOnHover?: boolean;
214
+ }, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
209
215
 
210
- export { SidebarMenuBadge }
216
+ export declare const SidebarMenuBadge: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
211
217
 
212
- export { SidebarMenuButton }
218
+ export declare const SidebarMenuButton: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLButtonElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement> & {
219
+ asChild?: boolean;
220
+ isActive?: boolean;
221
+ tooltip?: string | React_2.ComponentProps<typeof TooltipContent>;
222
+ } & VariantProps<(props?: ({
223
+ variant?: "default" | "outline" | null | undefined;
224
+ size?: "default" | "sm" | "lg" | null | undefined;
225
+ } & ClassProp) | undefined) => string>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
213
226
 
214
- export { SidebarMenuItem }
227
+ export declare const SidebarMenuItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React_2.RefAttributes<HTMLLIElement>>;
215
228
 
216
- export { SidebarMenuSkeleton }
229
+ export declare const SidebarMenuSkeleton: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
230
+ showIcon?: boolean;
231
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
217
232
 
218
- export { SidebarMenuSub }
233
+ export declare const SidebarMenuSub: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
219
234
 
220
- export { SidebarMenuSubButton }
235
+ export declare const SidebarMenuSubButton: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLAnchorElement> & React_2.AnchorHTMLAttributes<HTMLAnchorElement> & {
236
+ asChild?: boolean;
237
+ size?: "sm" | "md";
238
+ isActive?: boolean;
239
+ }, "ref"> & React_2.RefAttributes<HTMLAnchorElement>>;
221
240
 
222
- export { SidebarMenuSubItem }
241
+ export declare const SidebarMenuSubItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React_2.RefAttributes<HTMLLIElement>>;
223
242
 
224
- export { SidebarProvider }
243
+ export declare const SidebarProvider: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
244
+ defaultOpen?: boolean;
245
+ open?: boolean;
246
+ onOpenChange?: (open: boolean) => void;
247
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
225
248
 
226
- export { SidebarRail }
249
+ export declare const SidebarRail: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
227
250
 
228
- export { SidebarSeparator }
251
+ export declare const SidebarSeparator: React_2.ForwardRefExoticComponent<Omit<Omit<SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
229
252
 
230
- export { SidebarTrigger }
253
+ export declare const SidebarTrigger: React_2.ForwardRefExoticComponent<Omit<ButtonProps_2 & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
231
254
 
232
255
  export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
233
256
 
@@ -286,7 +309,7 @@ declare interface TopbarProps {
286
309
 
287
310
  export declare function useIsMobile(): boolean;
288
311
 
289
- export { useSidebar }
312
+ export declare function useSidebar(): SidebarContext;
290
313
 
291
314
  export declare function useToast(): {
292
315
  toast: typeof toast;