randmarcomps 1.47.0 → 1.49.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,4 +1,3 @@
1
- import { ButtonProps as ButtonProps_2 } from './button';
2
1
  import { ClassProp } from 'class-variance-authority/types';
3
2
  import * as DialogPrimitive from '@radix-ui/react-dialog';
4
3
  import { JSX } from 'react/jsx-runtime';
@@ -6,9 +5,32 @@ import { MouseEventHandler } from 'react';
6
5
  import { OTPInput } from 'input-otp';
7
6
  import * as React_2 from 'react';
8
7
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
9
- import { SeparatorProps } 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';
10
31
  import * as ToastPrimitives from '@radix-ui/react-toast';
11
32
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
33
+ import { useSidebar } from './components/ui/sidebar';
12
34
  import { VariantProps } from 'class-variance-authority';
13
35
 
14
36
  export declare function AvatarFooter({ onClick, publicName, applicationName, partnerId }: AvatarFooterProps): JSX.Element;
@@ -65,7 +87,7 @@ export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogP
65
87
 
66
88
  export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
67
89
 
68
- export declare const Input: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
90
+ export declare const Input: React_2.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
69
91
 
70
92
  export declare function InputOTP({ className, containerClassName, ...props }: React_2.ComponentProps<typeof OTPInput> & {
71
93
  containerClassName?: string;
@@ -79,6 +101,11 @@ export declare function InputOTPSlot({ index, className, ...props }: React_2.Com
79
101
  index: number;
80
102
  }): JSX.Element;
81
103
 
104
+ declare interface InputProps extends Omit<React_2.ComponentProps<"input">, "onChange"> {
105
+ mask?: MaskType;
106
+ onChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
107
+ }
108
+
82
109
  export declare function Layout({ children, rightMenu, routes, footer, searchResultsRouteName, dashboardTitle, onSignOut, }: LayoutProps): JSX.Element;
83
110
 
84
111
  declare interface LayoutProps {
@@ -91,6 +118,8 @@ declare interface LayoutProps {
91
118
  onSignOut?: () => void;
92
119
  }
93
120
 
121
+ declare type MaskType = "phone" | "postal-code-ca" | "zip-code-us";
122
+
94
123
  export declare function Navbar({ routes, footer, dashboardTitle }: NavbarProps): JSX.Element;
95
124
 
96
125
  declare interface NavbarProps {
@@ -148,94 +177,54 @@ export declare const SheetTitle: React_2.ForwardRefExoticComponent<Omit<DialogPr
148
177
  export declare const SheetTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
149
178
 
150
179
  declare const sheetVariants: (props?: ({
151
- side?: "top" | "bottom" | "left" | "right" | null | undefined;
180
+ side?: "top" | "right" | "bottom" | "left" | null | undefined;
152
181
  } & ClassProp) | undefined) => string;
153
182
 
154
- export declare const Sidebar: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
155
- side?: "left" | "right";
156
- variant?: "sidebar" | "floating" | "inset";
157
- collapsible?: "offcanvas" | "icon" | "none";
158
- }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
159
-
160
- export declare const SidebarContent: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
161
-
162
- declare type SidebarContext = {
163
- state: "expanded" | "collapsed";
164
- open: boolean;
165
- setOpen: (open: boolean) => void;
166
- openMobile: boolean;
167
- setOpenMobile: (open: boolean) => void;
168
- isMobile: boolean;
169
- toggleSidebar: () => void;
170
- };
183
+ export { Sidebar }
171
184
 
172
- declare const SidebarContext: React_2.Context<SidebarContext | null>;
185
+ export { SidebarContent }
173
186
 
174
- export declare const SidebarFooter: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
187
+ export { SidebarFooter }
175
188
 
176
- export declare const SidebarGroup: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
189
+ export { SidebarGroup }
177
190
 
178
- export declare const SidebarGroupAction: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLButtonElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement> & {
179
- asChild?: boolean;
180
- }, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
191
+ export { SidebarGroupAction }
181
192
 
182
- export declare const SidebarGroupContent: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
193
+ export { SidebarGroupContent }
183
194
 
184
- export declare const SidebarGroupLabel: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
185
- asChild?: boolean;
186
- }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
195
+ export { SidebarGroupLabel }
187
196
 
188
- export declare const SidebarHeader: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
197
+ export { SidebarHeader }
189
198
 
190
- export declare const SidebarInput: React_2.ForwardRefExoticComponent<Omit<Omit<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
199
+ export { SidebarInput }
191
200
 
192
- export declare const SidebarInset: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
201
+ export { SidebarInset }
193
202
 
194
- export declare const SidebarMenu: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
203
+ export { SidebarMenu }
195
204
 
196
- export declare const SidebarMenuAction: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLButtonElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement> & {
197
- asChild?: boolean;
198
- showOnHover?: boolean;
199
- }, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
205
+ export { SidebarMenuAction }
200
206
 
201
- export declare const SidebarMenuBadge: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
207
+ export { SidebarMenuBadge }
202
208
 
203
- export declare const SidebarMenuButton: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLButtonElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement> & {
204
- asChild?: boolean;
205
- isActive?: boolean;
206
- tooltip?: string | React_2.ComponentProps<typeof TooltipContent>;
207
- } & VariantProps<(props?: ({
208
- variant?: "default" | "outline" | null | undefined;
209
- size?: "default" | "sm" | "lg" | null | undefined;
210
- } & ClassProp) | undefined) => string>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
209
+ export { SidebarMenuButton }
211
210
 
212
- export declare const SidebarMenuItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React_2.RefAttributes<HTMLLIElement>>;
211
+ export { SidebarMenuItem }
213
212
 
214
- export declare const SidebarMenuSkeleton: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
215
- showIcon?: boolean;
216
- }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
213
+ export { SidebarMenuSkeleton }
217
214
 
218
- export declare const SidebarMenuSub: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
215
+ export { SidebarMenuSub }
219
216
 
220
- export declare const SidebarMenuSubButton: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLAnchorElement> & React_2.AnchorHTMLAttributes<HTMLAnchorElement> & {
221
- asChild?: boolean;
222
- size?: "sm" | "md";
223
- isActive?: boolean;
224
- }, "ref"> & React_2.RefAttributes<HTMLAnchorElement>>;
217
+ export { SidebarMenuSubButton }
225
218
 
226
- export declare const SidebarMenuSubItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React_2.RefAttributes<HTMLLIElement>>;
219
+ export { SidebarMenuSubItem }
227
220
 
228
- export declare const SidebarProvider: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
229
- defaultOpen?: boolean;
230
- open?: boolean;
231
- onOpenChange?: (open: boolean) => void;
232
- }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
221
+ export { SidebarProvider }
233
222
 
234
- export declare const SidebarRail: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
223
+ export { SidebarRail }
235
224
 
236
- export declare const SidebarSeparator: React_2.ForwardRefExoticComponent<Omit<Omit<SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
225
+ export { SidebarSeparator }
237
226
 
238
- export declare const SidebarTrigger: React_2.ForwardRefExoticComponent<Omit<ButtonProps_2 & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
227
+ export { SidebarTrigger }
239
228
 
240
229
  export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
241
230
 
@@ -294,7 +283,7 @@ declare interface TopbarProps {
294
283
 
295
284
  export declare function useIsMobile(): boolean;
296
285
 
297
- export declare function useSidebar(): SidebarContext;
286
+ export { useSidebar }
298
287
 
299
288
  export declare function useToast(): {
300
289
  toast: typeof toast;