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.
- package/dist/randmarcomps.d.ts +57 -68
- package/dist/randmarcomps.js +1474 -1432
- package/dist/randmarcomps.umd.cjs +16 -16
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -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 {
|
|
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<
|
|
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" | "
|
|
180
|
+
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
152
181
|
} & ClassProp) | undefined) => string;
|
|
153
182
|
|
|
154
|
-
export
|
|
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
|
-
|
|
185
|
+
export { SidebarContent }
|
|
173
186
|
|
|
174
|
-
export
|
|
187
|
+
export { SidebarFooter }
|
|
175
188
|
|
|
176
|
-
export
|
|
189
|
+
export { SidebarGroup }
|
|
177
190
|
|
|
178
|
-
export
|
|
179
|
-
asChild?: boolean;
|
|
180
|
-
}, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
191
|
+
export { SidebarGroupAction }
|
|
181
192
|
|
|
182
|
-
export
|
|
193
|
+
export { SidebarGroupContent }
|
|
183
194
|
|
|
184
|
-
export
|
|
185
|
-
asChild?: boolean;
|
|
186
|
-
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
195
|
+
export { SidebarGroupLabel }
|
|
187
196
|
|
|
188
|
-
export
|
|
197
|
+
export { SidebarHeader }
|
|
189
198
|
|
|
190
|
-
export
|
|
199
|
+
export { SidebarInput }
|
|
191
200
|
|
|
192
|
-
export
|
|
201
|
+
export { SidebarInset }
|
|
193
202
|
|
|
194
|
-
export
|
|
203
|
+
export { SidebarMenu }
|
|
195
204
|
|
|
196
|
-
export
|
|
197
|
-
asChild?: boolean;
|
|
198
|
-
showOnHover?: boolean;
|
|
199
|
-
}, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
205
|
+
export { SidebarMenuAction }
|
|
200
206
|
|
|
201
|
-
export
|
|
207
|
+
export { SidebarMenuBadge }
|
|
202
208
|
|
|
203
|
-
export
|
|
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
|
|
211
|
+
export { SidebarMenuItem }
|
|
213
212
|
|
|
214
|
-
export
|
|
215
|
-
showIcon?: boolean;
|
|
216
|
-
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
213
|
+
export { SidebarMenuSkeleton }
|
|
217
214
|
|
|
218
|
-
export
|
|
215
|
+
export { SidebarMenuSub }
|
|
219
216
|
|
|
220
|
-
export
|
|
221
|
-
asChild?: boolean;
|
|
222
|
-
size?: "sm" | "md";
|
|
223
|
-
isActive?: boolean;
|
|
224
|
-
}, "ref"> & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
217
|
+
export { SidebarMenuSubButton }
|
|
225
218
|
|
|
226
|
-
export
|
|
219
|
+
export { SidebarMenuSubItem }
|
|
227
220
|
|
|
228
|
-
export
|
|
229
|
-
defaultOpen?: boolean;
|
|
230
|
-
open?: boolean;
|
|
231
|
-
onOpenChange?: (open: boolean) => void;
|
|
232
|
-
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
221
|
+
export { SidebarProvider }
|
|
233
222
|
|
|
234
|
-
export
|
|
223
|
+
export { SidebarRail }
|
|
235
224
|
|
|
236
|
-
export
|
|
225
|
+
export { SidebarSeparator }
|
|
237
226
|
|
|
238
|
-
export
|
|
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
|
|
286
|
+
export { useSidebar }
|
|
298
287
|
|
|
299
288
|
export declare function useToast(): {
|
|
300
289
|
toast: typeof toast;
|