randmarcomps 1.50.0 → 1.52.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,36 +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';
6
+ import * as LabelPrimitive from '@radix-ui/react-label';
4
7
  import { MouseEventHandler } from 'react';
5
8
  import { OTPInput } from 'input-otp';
6
9
  import * as React_2 from 'react';
7
10
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
8
- import { Sidebar } from './components/ui/sidebar';
9
- import { SidebarContent } from './components/ui/sidebar';
10
- import { SidebarFooter } from './components/ui/sidebar';
11
- import { SidebarGroup } from './components/ui/sidebar';
12
- import { SidebarGroupAction } from './components/ui/sidebar';
13
- import { SidebarGroupContent } from './components/ui/sidebar';
14
- import { SidebarGroupLabel } from './components/ui/sidebar';
15
- import { SidebarHeader } from './components/ui/sidebar';
16
- import { SidebarInput } from './components/ui/sidebar';
17
- import { SidebarInset } from './components/ui/sidebar';
18
- import { SidebarMenu } from './components/ui/sidebar';
19
- import { SidebarMenuAction } from './components/ui/sidebar';
20
- import { SidebarMenuBadge } from './components/ui/sidebar';
21
- import { SidebarMenuButton } from './components/ui/sidebar';
22
- import { SidebarMenuItem } from './components/ui/sidebar';
23
- import { SidebarMenuSkeleton } from './components/ui/sidebar';
24
- import { SidebarMenuSub } from './components/ui/sidebar';
25
- import { SidebarMenuSubButton } from './components/ui/sidebar';
26
- import { SidebarMenuSubItem } from './components/ui/sidebar';
27
- import { SidebarProvider } from './components/ui/sidebar';
28
- import { SidebarRail } from './components/ui/sidebar';
29
- import { SidebarSeparator } from './components/ui/sidebar';
30
- import { SidebarTrigger } from './components/ui/sidebar';
11
+ import { SeparatorProps } from '@radix-ui/react-separator';
31
12
  import * as ToastPrimitives from '@radix-ui/react-toast';
32
13
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
33
- import { useSidebar } from './components/ui/sidebar';
34
14
  import { VariantProps } from 'class-variance-authority';
35
15
 
36
16
  export declare function AvatarFooter({ onClick, publicName, applicationName, partnerId }: AvatarFooterProps): JSX.Element;
@@ -101,11 +81,13 @@ export declare function InputOTPSlot({ index, className, ...props }: React_2.Com
101
81
  index: number;
102
82
  }): JSX.Element;
103
83
 
104
- declare interface InputProps extends Omit<React_2.ComponentProps<"input">, "onChange"> {
84
+ export declare interface InputProps extends Omit<React_2.ComponentProps<"input">, "onChange"> {
105
85
  mask?: MaskType;
106
86
  onChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
107
87
  }
108
88
 
89
+ export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
90
+
109
91
  export declare function Layout({ children, rightMenu, routes, footer, searchResultsRouteName, dashboardTitle, onSignOut, }: LayoutProps): JSX.Element;
110
92
 
111
93
  declare interface LayoutProps {
@@ -180,51 +162,91 @@ declare const sheetVariants: (props?: ({
180
162
  side?: "top" | "right" | "bottom" | "left" | null | undefined;
181
163
  } & ClassProp) | undefined) => string;
182
164
 
183
- export { Sidebar }
165
+ export declare const Sidebar: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
166
+ side?: "left" | "right";
167
+ variant?: "sidebar" | "floating" | "inset";
168
+ collapsible?: "offcanvas" | "icon" | "none";
169
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
170
+
171
+ export declare const SidebarContent: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
172
+
173
+ declare type SidebarContext = {
174
+ state: "expanded" | "collapsed";
175
+ open: boolean;
176
+ setOpen: (open: boolean) => void;
177
+ openMobile: boolean;
178
+ setOpenMobile: (open: boolean) => void;
179
+ isMobile: boolean;
180
+ toggleSidebar: () => void;
181
+ };
184
182
 
185
- export { SidebarContent }
183
+ declare const SidebarContext: React_2.Context<SidebarContext | null>;
186
184
 
187
- export { SidebarFooter }
185
+ export declare const SidebarFooter: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
188
186
 
189
- export { SidebarGroup }
187
+ export declare const SidebarGroup: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
190
188
 
191
- export { SidebarGroupAction }
189
+ export declare const SidebarGroupAction: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLButtonElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement> & {
190
+ asChild?: boolean;
191
+ }, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
192
192
 
193
- export { SidebarGroupContent }
193
+ export declare const SidebarGroupContent: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
194
194
 
195
- export { SidebarGroupLabel }
195
+ export declare const SidebarGroupLabel: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
196
+ asChild?: boolean;
197
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
196
198
 
197
- export { SidebarHeader }
199
+ export declare const SidebarHeader: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
198
200
 
199
- export { SidebarInput }
201
+ export declare const SidebarInput: React_2.ForwardRefExoticComponent<Omit<Omit<InputProps_2, "ref"> & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
200
202
 
201
- export { SidebarInset }
203
+ export declare const SidebarInset: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
202
204
 
203
- export { SidebarMenu }
205
+ export declare const SidebarMenu: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
204
206
 
205
- export { SidebarMenuAction }
207
+ export declare const SidebarMenuAction: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLButtonElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement> & {
208
+ asChild?: boolean;
209
+ showOnHover?: boolean;
210
+ }, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
206
211
 
207
- export { SidebarMenuBadge }
212
+ export declare const SidebarMenuBadge: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
208
213
 
209
- export { SidebarMenuButton }
214
+ export declare const SidebarMenuButton: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLButtonElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement> & {
215
+ asChild?: boolean;
216
+ isActive?: boolean;
217
+ tooltip?: string | React_2.ComponentProps<typeof TooltipContent>;
218
+ } & VariantProps<(props?: ({
219
+ variant?: "default" | "outline" | null | undefined;
220
+ size?: "default" | "sm" | "lg" | null | undefined;
221
+ } & ClassProp) | undefined) => string>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
210
222
 
211
- export { SidebarMenuItem }
223
+ export declare const SidebarMenuItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React_2.RefAttributes<HTMLLIElement>>;
212
224
 
213
- export { SidebarMenuSkeleton }
225
+ export declare const SidebarMenuSkeleton: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
226
+ showIcon?: boolean;
227
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
214
228
 
215
- export { SidebarMenuSub }
229
+ export declare const SidebarMenuSub: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
216
230
 
217
- export { SidebarMenuSubButton }
231
+ export declare const SidebarMenuSubButton: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLAnchorElement> & React_2.AnchorHTMLAttributes<HTMLAnchorElement> & {
232
+ asChild?: boolean;
233
+ size?: "sm" | "md";
234
+ isActive?: boolean;
235
+ }, "ref"> & React_2.RefAttributes<HTMLAnchorElement>>;
218
236
 
219
- export { SidebarMenuSubItem }
237
+ export declare const SidebarMenuSubItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React_2.RefAttributes<HTMLLIElement>>;
220
238
 
221
- export { SidebarProvider }
239
+ export declare const SidebarProvider: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
240
+ defaultOpen?: boolean;
241
+ open?: boolean;
242
+ onOpenChange?: (open: boolean) => void;
243
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
222
244
 
223
- export { SidebarRail }
245
+ export declare const SidebarRail: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
224
246
 
225
- export { SidebarSeparator }
247
+ export declare const SidebarSeparator: React_2.ForwardRefExoticComponent<Omit<Omit<SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
226
248
 
227
- export { SidebarTrigger }
249
+ export declare const SidebarTrigger: React_2.ForwardRefExoticComponent<Omit<ButtonProps_2 & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
228
250
 
229
251
  export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
230
252
 
@@ -283,7 +305,7 @@ declare interface TopbarProps {
283
305
 
284
306
  export declare function useIsMobile(): boolean;
285
307
 
286
- export { useSidebar }
308
+ export declare function useSidebar(): SidebarContext;
287
309
 
288
310
  export declare function useToast(): {
289
311
  toast: typeof toast;