randmarcomps 1.51.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.
- package/dist/randmarcomps.d.ts +68 -49
- package/dist/randmarcomps.js +782 -777
- package/dist/randmarcomps.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -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 {
|
|
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;
|
|
@@ -102,7 +81,7 @@ export declare function InputOTPSlot({ index, className, ...props }: React_2.Com
|
|
|
102
81
|
index: number;
|
|
103
82
|
}): JSX.Element;
|
|
104
83
|
|
|
105
|
-
declare interface InputProps extends Omit<React_2.ComponentProps<"input">, "onChange"> {
|
|
84
|
+
export declare interface InputProps extends Omit<React_2.ComponentProps<"input">, "onChange"> {
|
|
106
85
|
mask?: MaskType;
|
|
107
86
|
onChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
108
87
|
}
|
|
@@ -183,51 +162,91 @@ declare const sheetVariants: (props?: ({
|
|
|
183
162
|
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
184
163
|
} & ClassProp) | undefined) => string;
|
|
185
164
|
|
|
186
|
-
export
|
|
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
|
+
};
|
|
187
182
|
|
|
188
|
-
|
|
183
|
+
declare const SidebarContext: React_2.Context<SidebarContext | null>;
|
|
189
184
|
|
|
190
|
-
export
|
|
185
|
+
export declare const SidebarFooter: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
191
186
|
|
|
192
|
-
export
|
|
187
|
+
export declare const SidebarGroup: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
193
188
|
|
|
194
|
-
export
|
|
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>>;
|
|
195
192
|
|
|
196
|
-
export
|
|
193
|
+
export declare const SidebarGroupContent: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
197
194
|
|
|
198
|
-
export
|
|
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>>;
|
|
199
198
|
|
|
200
|
-
export
|
|
199
|
+
export declare const SidebarHeader: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
201
200
|
|
|
202
|
-
export
|
|
201
|
+
export declare const SidebarInput: React_2.ForwardRefExoticComponent<Omit<Omit<InputProps_2, "ref"> & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
203
202
|
|
|
204
|
-
export
|
|
203
|
+
export declare const SidebarInset: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
205
204
|
|
|
206
|
-
export
|
|
205
|
+
export declare const SidebarMenu: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
|
|
207
206
|
|
|
208
|
-
export
|
|
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>>;
|
|
209
211
|
|
|
210
|
-
export
|
|
212
|
+
export declare const SidebarMenuBadge: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
211
213
|
|
|
212
|
-
export
|
|
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>>;
|
|
213
222
|
|
|
214
|
-
export
|
|
223
|
+
export declare const SidebarMenuItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React_2.RefAttributes<HTMLLIElement>>;
|
|
215
224
|
|
|
216
|
-
export
|
|
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>>;
|
|
217
228
|
|
|
218
|
-
export
|
|
229
|
+
export declare const SidebarMenuSub: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
|
|
219
230
|
|
|
220
|
-
export
|
|
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>>;
|
|
221
236
|
|
|
222
|
-
export
|
|
237
|
+
export declare const SidebarMenuSubItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React_2.RefAttributes<HTMLLIElement>>;
|
|
223
238
|
|
|
224
|
-
export
|
|
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>>;
|
|
225
244
|
|
|
226
|
-
export
|
|
245
|
+
export declare const SidebarRail: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
227
246
|
|
|
228
|
-
export
|
|
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>>;
|
|
229
248
|
|
|
230
|
-
export
|
|
249
|
+
export declare const SidebarTrigger: React_2.ForwardRefExoticComponent<Omit<ButtonProps_2 & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
231
250
|
|
|
232
251
|
export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
233
252
|
|
|
@@ -286,7 +305,7 @@ declare interface TopbarProps {
|
|
|
286
305
|
|
|
287
306
|
export declare function useIsMobile(): boolean;
|
|
288
307
|
|
|
289
|
-
export
|
|
308
|
+
export declare function useSidebar(): SidebarContext;
|
|
290
309
|
|
|
291
310
|
export declare function useToast(): {
|
|
292
311
|
toast: typeof toast;
|