@yusr_systems/ui 2.0.1 → 2.0.2

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/index.d.ts CHANGED
@@ -1 +1,1151 @@
1
- export {}
1
+ import { ActionCreatorWithPayload } from '@reduxjs/toolkit';
2
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+ import { AsyncThunk } from '@reduxjs/toolkit';
4
+ import { AsyncThunkConfig } from '@reduxjs/toolkit';
5
+ import { AuthState } from '../../../yusr-core/src/auth';
6
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
7
+ import { BaseApiService } from '../../../../../yusr-core/src/networking';
8
+ import { BaseEntity } from '../../../../../yusr-core/src/entities';
9
+ import { BaseEntity as BaseEntity_2 } from '../../../../yusr-core/src/entities';
10
+ import { BaseFilterableApiService } from '../../../../yusr-core/src/networking';
11
+ import { CaseReducerActions } from '@reduxjs/toolkit';
12
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
13
+ import { ClassProp } from 'class-variance-authority/types';
14
+ import { ClassValue } from 'clsx';
15
+ import { ColumnName } from '../../../../../yusr-core/src/types';
16
+ import { Combobox as Combobox_2 } from '@base-ui/react/combobox';
17
+ import { Command as Command_2 } from 'cmdk';
18
+ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
19
+ import { DayButton } from 'react-day-picker';
20
+ import { DayPicker } from 'react-day-picker';
21
+ import { default as default_2 } from 'embla-carousel-react';
22
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
23
+ import * as Direction from '@radix-ui/react-direction';
24
+ import { Dispatch } from 'redux';
25
+ import { Draft } from 'immer';
26
+ import { Drawer as Drawer_2 } from 'vaul';
27
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
28
+ import { EnhancedStore } from '@reduxjs/toolkit';
29
+ import { FilterCondition } from '../../../../../yusr-core/src/entities';
30
+ import { FilterCondition as FilterCondition_2 } from '../../../../yusr-core/src/entities';
31
+ import { FilterResult } from '../../../../../yusr-core/src/types';
32
+ import { FilterResult as FilterResult_2 } from '../../../../yusr-core/src/types';
33
+ import { JSX } from 'react/jsx-runtime';
34
+ import * as LabelPrimitive from '@radix-ui/react-label';
35
+ import { Locale } from 'react-day-picker';
36
+ import { PayloadAction } from '@reduxjs/toolkit';
37
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
38
+ import { PropsWithChildren } from 'react';
39
+ import * as React_2 from 'react';
40
+ import { ReactNode } from 'react';
41
+ import * as RechartsPrimitive from 'recharts';
42
+ import { Reducer } from 'redux';
43
+ import { ReducersMapObject } from '@reduxjs/toolkit';
44
+ import { RequestResult } from '../../../../yusr-core/src/types';
45
+ import { ResourcePermissions } from '../../../../../yusr-core/src/auth/permissionSelector';
46
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
47
+ import * as SelectPrimitive from '@radix-ui/react-select';
48
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
49
+ import { Slice } from '@reduxjs/toolkit';
50
+ import { SliceCaseReducers } from '@reduxjs/toolkit';
51
+ import { SliceSelectors } from '@reduxjs/toolkit';
52
+ import { StorageFile } from '../../../../../yusr-core/src/entities';
53
+ import { StoreEnhancer } from 'redux';
54
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
55
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
56
+ import { ThunkDispatch } from 'redux-thunk';
57
+ import { ToasterProps } from 'sonner';
58
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
59
+ import * as TogglePrimitive from '@radix-ui/react-toggle';
60
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
61
+ import { Tuple } from '@reduxjs/toolkit';
62
+ import { TypedUseSelectorHook } from 'react-redux';
63
+ import { UnknownAction } from '@reduxjs/toolkit';
64
+ import { UnknownAction as UnknownAction_2 } from 'redux';
65
+ import { UseEmblaCarouselType } from 'embla-carousel-react';
66
+ import { ValidationRule } from '../../../yusr-core/src/validation/validationRule';
67
+ import { VariantProps } from 'class-variance-authority';
68
+
69
+ export declare function Alert({ className, variant, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof alertVariants>): JSX.Element;
70
+
71
+ export declare function AlertAction({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
72
+
73
+ export declare function AlertDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
74
+
75
+ export declare function AlertDialog({ ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Root>): JSX.Element;
76
+
77
+ export declare function AlertDialogAction({ className, variant, size, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Action> & Pick<React_2.ComponentProps<typeof Button>, "variant" | "size">): JSX.Element;
78
+
79
+ export declare function AlertDialogCancel({ className, variant, size, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Cancel> & Pick<React_2.ComponentProps<typeof Button>, "variant" | "size">): JSX.Element;
80
+
81
+ export declare function AlertDialogContent({ className, size, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Content> & {
82
+ size?: "default" | "sm";
83
+ }): JSX.Element;
84
+
85
+ export declare function AlertDialogDescription({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Description>): JSX.Element;
86
+
87
+ export declare function AlertDialogFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
88
+
89
+ export declare function AlertDialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
90
+
91
+ export declare function AlertDialogMedia({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
92
+
93
+ export declare function AlertDialogOverlay({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Overlay>): JSX.Element;
94
+
95
+ export declare function AlertDialogPortal({ ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Portal>): JSX.Element;
96
+
97
+ export declare function AlertDialogTitle({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Title>): JSX.Element;
98
+
99
+ export declare function AlertDialogTrigger({ ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Trigger>): JSX.Element;
100
+
101
+ export declare function AlertTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
102
+
103
+ declare const alertVariants: (props?: ({
104
+ variant?: "default" | "destructive" | null | undefined;
105
+ } & ClassProp) | undefined) => string;
106
+
107
+ declare type AppStore = ReturnType<typeof createInternalStore>;
108
+
109
+ export declare function Avatar({ className, size, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Root> & {
110
+ size?: "default" | "sm" | "lg";
111
+ }): JSX.Element;
112
+
113
+ export declare function AvatarBadge({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
114
+
115
+ export declare function AvatarFallback({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Fallback>): JSX.Element;
116
+
117
+ export declare function AvatarGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
118
+
119
+ export declare function AvatarGroupCount({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
120
+
121
+ export declare function AvatarImage({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Image>): JSX.Element;
122
+
123
+ export declare function Badge({ className, variant, asChild, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
124
+ asChild?: boolean;
125
+ }): JSX.Element;
126
+
127
+ export declare const badgeVariants: (props?: ({
128
+ variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
129
+ } & ClassProp) | undefined) => string;
130
+
131
+ export declare function BaseInput({ isInvalid, className, ...props }: BaseInputProps): JSX.Element;
132
+
133
+ export declare interface BaseInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
134
+ isInvalid?: boolean;
135
+ }
136
+
137
+ export declare function Breadcrumb({ className, ...props }: React_2.ComponentProps<"nav">): JSX.Element;
138
+
139
+ export declare function BreadcrumbEllipsis({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
140
+
141
+ export declare function BreadcrumbItem({ className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
142
+
143
+ export declare function BreadcrumbLink({ asChild, className, ...props }: React_2.ComponentProps<"a"> & {
144
+ asChild?: boolean;
145
+ }): JSX.Element;
146
+
147
+ export declare function BreadcrumbList({ className, ...props }: React_2.ComponentProps<"ol">): JSX.Element;
148
+
149
+ export declare function BreadcrumbPage({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
150
+
151
+ export declare function BreadcrumbSeparator({ children, className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
152
+
153
+ export declare function Button({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
154
+ asChild?: boolean;
155
+ }): JSX.Element;
156
+
157
+ export declare const buttonVariants: (props?: ({
158
+ variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
159
+ size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
160
+ } & ClassProp) | undefined) => string;
161
+
162
+ export declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React_2.ComponentProps<typeof DayPicker> & {
163
+ buttonVariant?: React_2.ComponentProps<typeof Button>["variant"];
164
+ }): JSX.Element;
165
+
166
+ export declare function CalendarDayButton({ className, day, modifiers, locale, ...props }: React_2.ComponentProps<typeof DayButton> & {
167
+ locale?: Partial<Locale>;
168
+ }): JSX.Element;
169
+
170
+ export declare function Card({ className, size, ...props }: React_2.ComponentProps<"div"> & {
171
+ size?: "default" | "sm";
172
+ }): JSX.Element;
173
+
174
+ export declare function CardAction({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
175
+
176
+ export declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
177
+
178
+ export declare function CardDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
179
+
180
+ export declare function CardFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
181
+
182
+ export declare function CardHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
183
+
184
+ export declare type CardProps = {
185
+ title: string;
186
+ data: string;
187
+ icon: ReactNode;
188
+ };
189
+
190
+ export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
191
+
192
+ export declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React_2.ComponentProps<"div"> & CarouselProps): JSX.Element;
193
+
194
+ export declare type CarouselApi = UseEmblaCarouselType[1];
195
+
196
+ export declare function CarouselContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
197
+
198
+ declare type CarouselContextProps = {
199
+ carouselRef: ReturnType<typeof default_2>[0];
200
+ api: ReturnType<typeof default_2>[1];
201
+ scrollPrev: () => void;
202
+ scrollNext: () => void;
203
+ canScrollPrev: boolean;
204
+ canScrollNext: boolean;
205
+ } & CarouselProps;
206
+
207
+ export declare function CarouselItem({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
208
+
209
+ export declare function CarouselNext({ className, variant, size, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
210
+
211
+ declare type CarouselOptions = UseCarouselParameters[0];
212
+
213
+ declare type CarouselPlugin = UseCarouselParameters[1];
214
+
215
+ export declare function CarouselPrevious({ className, variant, size, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
216
+
217
+ declare type CarouselProps = {
218
+ opts?: CarouselOptions;
219
+ plugins?: CarouselPlugin;
220
+ orientation?: "horizontal" | "vertical";
221
+ setApi?: (api: CarouselApi) => void;
222
+ };
223
+
224
+ export declare interface ChangeDialogProps<T extends BaseEntity> extends SaveButtonProps<T>, PropsWithChildren {
225
+ title: string;
226
+ description?: string;
227
+ className?: string;
228
+ }
229
+
230
+ export declare type ChartConfig = {
231
+ [k in string]: {
232
+ label?: React_2.ReactNode;
233
+ icon?: React_2.ComponentType;
234
+ } & ({
235
+ color?: string;
236
+ theme?: never;
237
+ } | {
238
+ color?: never;
239
+ theme: Record<keyof typeof THEMES, string>;
240
+ });
241
+ };
242
+
243
+ export declare function ChartContainer({ id, className, children, config, ...props }: React_2.ComponentProps<"div"> & {
244
+ config: ChartConfig;
245
+ children: React_2.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
246
+ }): JSX.Element;
247
+
248
+ export declare const ChartLegend: React_2.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React_2.ReactPortal | null>;
249
+
250
+ export declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey }: React_2.ComponentProps<"div"> & {
251
+ payload?: any[];
252
+ verticalAlign?: "top" | "bottom" | "middle";
253
+ } & {
254
+ hideIcon?: boolean;
255
+ nameKey?: string;
256
+ }): JSX.Element | null;
257
+
258
+ export declare const ChartStyle: ({ id, config }: {
259
+ id: string;
260
+ config: ChartConfig;
261
+ }) => JSX.Element | null;
262
+
263
+ export declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
264
+
265
+ export declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey }: React_2.ComponentProps<typeof RechartsPrimitive.Tooltip> & React_2.ComponentProps<"div"> & {
266
+ hideLabel?: boolean;
267
+ hideIndicator?: boolean;
268
+ indicator?: "line" | "dot" | "dashed";
269
+ nameKey?: string;
270
+ labelKey?: string;
271
+ payload?: any[];
272
+ label?: any;
273
+ }): JSX.Element | null;
274
+
275
+ export declare function Checkbox({ className, ...props }: React_2.ComponentProps<typeof CheckboxPrimitive.Root>): JSX.Element;
276
+
277
+ export declare function cn(...inputs: ClassValue[]): string;
278
+
279
+ export declare const Combobox: typeof Combobox_2.Root;
280
+
281
+ export declare function ComboboxChip({ className, children, showRemove, ...props }: Combobox_2.Chip.Props & {
282
+ showRemove?: boolean;
283
+ }): JSX.Element;
284
+
285
+ export declare function ComboboxChips({ className, ...props }: React_2.ComponentPropsWithRef<typeof Combobox_2.Chips> & Combobox_2.Chips.Props): JSX.Element;
286
+
287
+ export declare function ComboboxChipsInput({ className, ...props }: Combobox_2.Input.Props): JSX.Element;
288
+
289
+ export declare function ComboboxCollection({ ...props }: Combobox_2.Collection.Props): JSX.Element;
290
+
291
+ export declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: Combobox_2.Popup.Props & Pick<Combobox_2.Positioner.Props, "side" | "align" | "sideOffset" | "alignOffset" | "anchor">): JSX.Element;
292
+
293
+ export declare function ComboboxEmpty({ className, ...props }: Combobox_2.Empty.Props): JSX.Element;
294
+
295
+ export declare function ComboboxGroup({ className, ...props }: Combobox_2.Group.Props): JSX.Element;
296
+
297
+ export declare function ComboboxInput({ className, children, disabled, showTrigger, showClear, ...props }: Combobox_2.Input.Props & {
298
+ showTrigger?: boolean;
299
+ showClear?: boolean;
300
+ }): JSX.Element;
301
+
302
+ export declare function ComboboxItem({ className, children, ...props }: Combobox_2.Item.Props): JSX.Element;
303
+
304
+ export declare function ComboboxLabel({ className, ...props }: Combobox_2.GroupLabel.Props): JSX.Element;
305
+
306
+ export declare function ComboboxList({ className, ...props }: Combobox_2.List.Props): JSX.Element;
307
+
308
+ export declare function ComboboxSeparator({ className, ...props }: Combobox_2.Separator.Props): JSX.Element;
309
+
310
+ export declare function ComboboxTrigger({ className, children, ...props }: Combobox_2.Trigger.Props): JSX.Element;
311
+
312
+ export declare function ComboboxValue({ ...props }: Combobox_2.Value.Props): JSX.Element;
313
+
314
+ export declare function Command({ className, ...props }: React_2.ComponentProps<typeof Command_2>): JSX.Element;
315
+
316
+ export declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React_2.ComponentProps<typeof Dialog> & {
317
+ title?: string;
318
+ description?: string;
319
+ className?: string;
320
+ showCloseButton?: boolean;
321
+ }): JSX.Element;
322
+
323
+ export declare function CommandEmpty({ className, ...props }: React_2.ComponentProps<typeof Command_2.Empty>): JSX.Element;
324
+
325
+ export declare function CommandGroup({ className, ...props }: React_2.ComponentProps<typeof Command_2.Group>): JSX.Element;
326
+
327
+ export declare function CommandInput({ className, ...props }: React_2.ComponentProps<typeof Command_2.Input>): JSX.Element;
328
+
329
+ export declare function CommandItem({ className, children, ...props }: React_2.ComponentProps<typeof Command_2.Item>): JSX.Element;
330
+
331
+ export declare function CommandList({ className, ...props }: React_2.ComponentProps<typeof Command_2.List>): JSX.Element;
332
+
333
+ export declare function CommandSeparator({ className, ...props }: React_2.ComponentProps<typeof Command_2.Separator>): JSX.Element;
334
+
335
+ export declare function CommandShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
336
+
337
+ export declare type CommonChangeDialogProps<T extends BaseEntity> = {
338
+ entity?: T;
339
+ mode: DialogMode;
340
+ service: BaseApiService<T>;
341
+ onSuccess?: (newData: T, mode: DialogMode) => void;
342
+ };
343
+
344
+ export declare function ContextMenu({ ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Root>): JSX.Element;
345
+
346
+ export declare function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem> & {
347
+ inset?: boolean;
348
+ }): JSX.Element;
349
+
350
+ export declare function ContextMenuContent({ className, ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Content> & {
351
+ side?: "top" | "right" | "bottom" | "left";
352
+ }): JSX.Element;
353
+
354
+ export declare function ContextMenuGroup({ ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Group>): JSX.Element;
355
+
356
+ export declare function ContextMenuItem({ className, inset, variant, ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Item> & {
357
+ inset?: boolean;
358
+ variant?: "default" | "destructive";
359
+ }): JSX.Element;
360
+
361
+ export declare function ContextMenuLabel({ className, inset, ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Label> & {
362
+ inset?: boolean;
363
+ }): JSX.Element;
364
+
365
+ export declare function ContextMenuPortal({ ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Portal>): JSX.Element;
366
+
367
+ export declare function ContextMenuRadioGroup({ ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): JSX.Element;
368
+
369
+ export declare function ContextMenuRadioItem({ className, children, inset, ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.RadioItem> & {
370
+ inset?: boolean;
371
+ }): JSX.Element;
372
+
373
+ export declare function ContextMenuSeparator({ className, ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Separator>): JSX.Element;
374
+
375
+ export declare function ContextMenuShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
376
+
377
+ export declare function ContextMenuSub({ ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Sub>): JSX.Element;
378
+
379
+ export declare function ContextMenuSubContent({ className, ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.SubContent>): JSX.Element;
380
+
381
+ export declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
382
+ inset?: boolean;
383
+ }): JSX.Element;
384
+
385
+ export declare function ContextMenuTrigger({ className, ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Trigger>): JSX.Element;
386
+
387
+ export declare function createGenericDialogSlice<T>(sliceName: string): Slice<IDialogState<T>, {
388
+ openChangeDialog: (state: {
389
+ selectedRow: T | null extends infer V ? V extends object ? Draft<V> : V : never;
390
+ isChangeDialogOpen: boolean;
391
+ isDeleteDialogOpen: boolean;
392
+ }, action: PayloadAction<T>) => void;
393
+ openDeleteDialog: (state: {
394
+ selectedRow: T | null extends infer V ? V extends object ? Draft<V> : V : never;
395
+ isChangeDialogOpen: boolean;
396
+ isDeleteDialogOpen: boolean;
397
+ }, action: PayloadAction<T>) => void;
398
+ setIsChangeDialogOpen: (state: {
399
+ selectedRow: T | null extends infer V ? V extends object ? Draft<V> : V : never;
400
+ isChangeDialogOpen: boolean;
401
+ isDeleteDialogOpen: boolean;
402
+ }, action: PayloadAction<boolean>) => void;
403
+ setIsDeleteDialogOpen: (state: {
404
+ selectedRow: T | null extends infer V ? V extends object ? Draft<V> : V : never;
405
+ isChangeDialogOpen: boolean;
406
+ isDeleteDialogOpen: boolean;
407
+ }, action: PayloadAction<boolean>) => void;
408
+ }, string, string, SliceSelectors<IDialogState<T>>>;
409
+
410
+ export declare function createGenericEntitySlice<T extends BaseEntity_2, CR extends SliceCaseReducers<IEntityState<T>> = {}>(sliceName: string, service: BaseFilterableApiService<T>, filterMethod?: FilterMethodType<T>, customReducers?: CR): {
411
+ reducer: Reducer<IEntityState<T>>;
412
+ actions: CaseReducerActions<{
413
+ setCurrentPage: (state: {
414
+ entities: {
415
+ data: Draft<T>[] | undefined;
416
+ count: number;
417
+ };
418
+ isLoaded: boolean;
419
+ isLoading: boolean;
420
+ currentPage: number;
421
+ rowsPerPage: number;
422
+ }, action: PayloadAction<number>) => void;
423
+ refresh: (state: {
424
+ entities: {
425
+ data: Draft<T>[] | undefined;
426
+ count: number;
427
+ };
428
+ isLoaded: boolean;
429
+ isLoading: boolean;
430
+ currentPage: number;
431
+ rowsPerPage: number;
432
+ }, action: PayloadAction<{
433
+ data?: T;
434
+ deletedId?: number;
435
+ }>) => void;
436
+ } & CR, string> & {
437
+ filter: AsyncThunk<FilterResult_2<T> | undefined, FilterCondition_2 | undefined, AsyncThunkConfig>;
438
+ };
439
+ };
440
+
441
+ export declare const createInternalStore: <TUser extends object, TSetting extends object>(externalReducers?: ReducersMapObject) => EnhancedStore<{
442
+ auth: AuthState<object, object>;
443
+ }, UnknownAction_2, Tuple<[ StoreEnhancer<{
444
+ dispatch: ThunkDispatch<{
445
+ auth: AuthState<object, object>;
446
+ }, undefined, UnknownAction_2>;
447
+ }>, StoreEnhancer]>>;
448
+
449
+ export declare interface CrudActions<T extends BaseEntity> {
450
+ filter: AsyncThunk<FilterResult<T> | undefined, FilterCondition | undefined, object>;
451
+ openChangeDialog: (entity: T) => UnknownAction;
452
+ openDeleteDialog: (entity: T) => UnknownAction;
453
+ setIsChangeDialogOpen: (open: boolean) => UnknownAction;
454
+ setIsDeleteDialogOpen: (open: boolean) => UnknownAction;
455
+ refresh: ActionCreatorWithPayload<{
456
+ newData?: T;
457
+ deletedId?: number;
458
+ }>;
459
+ setCurrentPage: (page: number) => UnknownAction;
460
+ }
461
+
462
+ export declare type CrudPageProps<T extends BaseEntity> = PropsWithChildren & {
463
+ entityState: IEntityState<T>;
464
+ useSlice: () => IDialogState<T>;
465
+ actions: CrudActions<T>;
466
+ permissions: ResourcePermissions;
467
+ entityName: string;
468
+ title: string;
469
+ addNewItemTitle: string;
470
+ cards: CardProps[];
471
+ columnsToFilter: ColumnName[];
472
+ service: BaseApiService<T>;
473
+ tableHeadRows: TableHeadRow[];
474
+ tableRowMapper: (entity: T) => TableBodyRowInfo[];
475
+ ChangeDialog: React.ReactNode;
476
+ };
477
+
478
+ export declare function DateField({ label, error, isInvalid, required, ...props }: DateFieldProps): JSX.Element;
479
+
480
+ declare interface DateFieldProps extends DateInputProps {
481
+ label: string;
482
+ error?: string;
483
+ required?: boolean;
484
+ }
485
+
486
+ export declare function DateInput({ value, onChange, isInvalid, placeholder, locale }: DateInputProps): JSX.Element;
487
+
488
+ export declare interface DateInputProps {
489
+ value?: Date;
490
+ onChange: (date: Date | undefined) => void;
491
+ isInvalid?: boolean;
492
+ placeholder?: string;
493
+ locale?: any;
494
+ }
495
+
496
+ export declare function DateTimeField({ label, error, isInvalid, required, ...props }: DateTimeFieldProps): JSX.Element;
497
+
498
+ declare interface DateTimeFieldProps extends DateTimeInputProps {
499
+ label: string;
500
+ error?: string;
501
+ required?: boolean;
502
+ }
503
+
504
+ export declare function DateTimeInput({ value, onChange, isInvalid, locale }: DateTimeInputProps): JSX.Element;
505
+
506
+ export declare interface DateTimeInputProps {
507
+ value?: Date;
508
+ onChange: (date: Date) => void;
509
+ isInvalid?: boolean;
510
+ locale?: any;
511
+ }
512
+
513
+ export declare function Dialog({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
514
+
515
+ export declare function DialogClose({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Close>): JSX.Element;
516
+
517
+ export declare function DialogContent({ className, children, showCloseButton, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Content> & {
518
+ showCloseButton?: boolean;
519
+ }): JSX.Element;
520
+
521
+ export declare function DialogDescription({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Description>): JSX.Element;
522
+
523
+ export declare function DialogFooter({ className, showCloseButton, children, ...props }: React_2.ComponentProps<"div"> & {
524
+ showCloseButton?: boolean;
525
+ }): JSX.Element;
526
+
527
+ export declare function DialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
528
+
529
+ export declare type DialogMode = "create" | "update";
530
+
531
+ export declare function DialogOverlay({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Overlay>): JSX.Element;
532
+
533
+ export declare function DialogPortal({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Portal>): JSX.Element;
534
+
535
+ export declare function DialogTitle({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Title>): JSX.Element;
536
+
537
+ export declare function DialogTrigger({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element;
538
+
539
+ export declare function DirectionProvider({ dir, direction, children }: React_2.ComponentProps<typeof Direction.DirectionProvider> & {
540
+ direction?: React_2.ComponentProps<typeof Direction.DirectionProvider>["dir"];
541
+ }): JSX.Element;
542
+
543
+ export declare function Drawer({ ...props }: React_2.ComponentProps<typeof Drawer_2.Root>): JSX.Element;
544
+
545
+ export declare function DrawerClose({ ...props }: React_2.ComponentProps<typeof Drawer_2.Close>): JSX.Element;
546
+
547
+ export declare function DrawerContent({ className, children, ...props }: React_2.ComponentProps<typeof Drawer_2.Content>): JSX.Element;
548
+
549
+ export declare function DrawerDescription({ className, ...props }: React_2.ComponentProps<typeof Drawer_2.Description>): JSX.Element;
550
+
551
+ export declare function DrawerFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
552
+
553
+ export declare function DrawerHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
554
+
555
+ export declare function DrawerOverlay({ className, ...props }: React_2.ComponentProps<typeof Drawer_2.Overlay>): JSX.Element;
556
+
557
+ export declare function DrawerPortal({ ...props }: React_2.ComponentProps<typeof Drawer_2.Portal>): JSX.Element;
558
+
559
+ export declare function DrawerTitle({ className, ...props }: React_2.ComponentProps<typeof Drawer_2.Title>): JSX.Element;
560
+
561
+ export declare function DrawerTrigger({ ...props }: React_2.ComponentProps<typeof Drawer_2.Trigger>): JSX.Element;
562
+
563
+ export declare function DropdownMenu({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Root>): JSX.Element;
564
+
565
+ export declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem> & {
566
+ inset?: boolean;
567
+ }): JSX.Element;
568
+
569
+ export declare function DropdownMenuContent({ className, align, sideOffset, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Content>): JSX.Element;
570
+
571
+ export declare function DropdownMenuGroup({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Group>): JSX.Element;
572
+
573
+ export declare function DropdownMenuItem({ className, inset, variant, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
574
+ inset?: boolean;
575
+ variant?: "default" | "destructive";
576
+ }): JSX.Element;
577
+
578
+ export declare function DropdownMenuLabel({ className, inset, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
579
+ inset?: boolean;
580
+ }): JSX.Element;
581
+
582
+ export declare function DropdownMenuPortal({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Portal>): JSX.Element;
583
+
584
+ export declare function DropdownMenuRadioGroup({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): JSX.Element;
585
+
586
+ export declare function DropdownMenuRadioItem({ className, children, inset, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {
587
+ inset?: boolean;
588
+ }): JSX.Element;
589
+
590
+ export declare function DropdownMenuSeparator({ className, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Separator>): JSX.Element;
591
+
592
+ export declare function DropdownMenuShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
593
+
594
+ export declare function DropdownMenuSub({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Sub>): JSX.Element;
595
+
596
+ export declare function DropdownMenuSubContent({ className, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): JSX.Element;
597
+
598
+ export declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
599
+ inset?: boolean;
600
+ }): JSX.Element;
601
+
602
+ export declare function DropdownMenuTrigger({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): JSX.Element;
603
+
604
+ export declare function Empty({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
605
+
606
+ export declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
607
+
608
+ export declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): JSX.Element;
609
+
610
+ export declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
611
+
612
+ export declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): JSX.Element;
613
+
614
+ declare const emptyMediaVariants: (props?: ({
615
+ variant?: "default" | "icon" | null | undefined;
616
+ } & ClassProp) | undefined) => string;
617
+
618
+ export declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
619
+
620
+ export declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): JSX.Element;
621
+
622
+ export declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
623
+
624
+ export declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): JSX.Element;
625
+
626
+ export declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
627
+ errors?: Array<{
628
+ message?: string;
629
+ } | undefined>;
630
+ }): JSX.Element | null;
631
+
632
+ export declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
633
+
634
+ export declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): JSX.Element;
635
+
636
+ export declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
637
+ variant?: "legend" | "label";
638
+ }): JSX.Element;
639
+
640
+ export declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
641
+ children?: React.ReactNode;
642
+ }): JSX.Element;
643
+
644
+ export declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): JSX.Element;
645
+
646
+ export declare function FieldsSection({ title, children, columns, className }: FieldsSectionProps): JSX.Element;
647
+
648
+ declare interface FieldsSectionProps {
649
+ title?: string;
650
+ children: React.ReactNode;
651
+ columns?: number;
652
+ className?: string;
653
+ }
654
+
655
+ export declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
656
+
657
+ declare const fieldVariants: (props?: ({
658
+ orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
659
+ } & ClassProp) | undefined) => string;
660
+
661
+ declare type FilterMethodType<T> = (pageNumber: number, rowsPerPage: number, condition?: FilterCondition_2 | undefined) => Promise<RequestResult<FilterResult_2<T>>> | undefined;
662
+
663
+ export declare function FormField({ label, error, isInvalid, children, required }: FormFieldProps): JSX.Element;
664
+
665
+ declare interface FormFieldProps {
666
+ label: string;
667
+ error?: string;
668
+ isInvalid?: boolean;
669
+ children: React.ReactNode;
670
+ required?: boolean;
671
+ }
672
+
673
+ export declare interface IDialogState<T> {
674
+ selectedRow: T | null;
675
+ isChangeDialogOpen: boolean;
676
+ isDeleteDialogOpen: boolean;
677
+ }
678
+
679
+ declare interface IEntityState<T> {
680
+ entities: FilterResult_2<T>;
681
+ isLoaded: boolean;
682
+ isLoading: boolean;
683
+ currentPage: number;
684
+ rowsPerPage: number;
685
+ }
686
+
687
+ export declare function Input({ className, type, ...props }: React_2.ComponentProps<"input">): JSX.Element;
688
+
689
+ export declare function InputField({ label, error, isInvalid, required, ...props }: InputFieldProps): JSX.Element;
690
+
691
+ export declare interface InputFieldProps extends BaseInputProps {
692
+ label: string;
693
+ error?: string;
694
+ required?: boolean;
695
+ }
696
+
697
+ export declare function InputGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
698
+
699
+ export declare function InputGroupAddon({ className, align, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): JSX.Element;
700
+
701
+ declare const inputGroupAddonVariants: (props?: ({
702
+ align?: "inline-start" | "inline-end" | "block-end" | "block-start" | null | undefined;
703
+ } & ClassProp) | undefined) => string;
704
+
705
+ export declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React_2.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): JSX.Element;
706
+
707
+ declare const inputGroupButtonVariants: (props?: ({
708
+ size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
709
+ } & ClassProp) | undefined) => string;
710
+
711
+ export declare function InputGroupInput({ className, ...props }: React_2.ComponentProps<"input">): JSX.Element;
712
+
713
+ export declare function InputGroupText({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
714
+
715
+ export declare function InputGroupTextarea({ className, ...props }: React_2.ComponentProps<"textarea">): JSX.Element;
716
+
717
+ export declare type InternalDispatch = AppStore['dispatch'];
718
+
719
+ export declare type InternalRootState = ReturnType<AppStore['getState']>;
720
+
721
+ export declare function isPDF(file?: StorageFile): boolean;
722
+
723
+ export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
724
+
725
+ export declare function NumberField({ label, error, isInvalid, required, ...props }: NumberFieldProps): JSX.Element;
726
+
727
+ declare interface NumberFieldProps extends NumberInputProps {
728
+ label: string;
729
+ error?: string;
730
+ required?: boolean;
731
+ }
732
+
733
+ export declare function NumberInput({ onChange, min, max, isInvalid, className, ...props }: NumberInputProps): JSX.Element;
734
+
735
+ export declare interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange"> {
736
+ isInvalid?: boolean;
737
+ onChange?: (val: number | undefined) => void;
738
+ }
739
+
740
+ export declare function Pagination({ className, ...props }: React_2.ComponentProps<"nav">): JSX.Element;
741
+
742
+ export declare function PaginationContent({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;
743
+
744
+ export declare function PaginationEllipsis({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
745
+
746
+ export declare function PaginationItem({ ...props }: React_2.ComponentProps<"li">): JSX.Element;
747
+
748
+ export declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): JSX.Element;
749
+
750
+ declare type PaginationLinkProps = {
751
+ isActive?: boolean;
752
+ } & Pick<React_2.ComponentProps<typeof Button>, "size"> & React_2.ComponentProps<"a">;
753
+
754
+ export declare function PaginationNext({ className, text, ...props }: React_2.ComponentProps<typeof PaginationLink> & {
755
+ text?: string;
756
+ }): JSX.Element;
757
+
758
+ export declare function PaginationPrevious({ className, text, ...props }: React_2.ComponentProps<typeof PaginationLink> & {
759
+ text?: string;
760
+ }): JSX.Element;
761
+
762
+ export declare function PasswordField(props: InputFieldProps): JSX.Element;
763
+
764
+ export declare function PhoneField(props: InputFieldProps): JSX.Element;
765
+
766
+ export declare function Popover({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Root>): JSX.Element;
767
+
768
+ export declare function PopoverAnchor({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Anchor>): JSX.Element;
769
+
770
+ export declare function PopoverContent({ className, align, sideOffset, ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Content>): JSX.Element;
771
+
772
+ export declare function PopoverDescription({ className, ...props }: React_2.ComponentProps<"p">): JSX.Element;
773
+
774
+ export declare function PopoverHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
775
+
776
+ export declare function PopoverTitle({ className, ...props }: React_2.ComponentProps<"h2">): JSX.Element;
777
+
778
+ export declare function PopoverTrigger({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Trigger>): JSX.Element;
779
+
780
+ export declare interface SaveButtonProps<T extends BaseEntity> {
781
+ formData: T | Partial<T>;
782
+ dialogMode?: DialogMode;
783
+ service?: BaseApiService<T>;
784
+ disable?: () => boolean;
785
+ onSuccess?: (newData: T) => void;
786
+ validate?: () => boolean;
787
+ }
788
+
789
+ export declare function ScrollArea({ className, children, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.Root>): JSX.Element;
790
+
791
+ export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): JSX.Element;
792
+
793
+ export declare function Select({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Root>): JSX.Element;
794
+
795
+ export declare function SelectContent({ className, children, position, align, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Content>): JSX.Element;
796
+
797
+ export declare function SelectField({ label, error, required, isInvalid, ...props }: SelectInputProps & {
798
+ label: string;
799
+ error?: string;
800
+ required?: boolean;
801
+ }): JSX.Element;
802
+
803
+ export declare function SelectGroup({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Group>): JSX.Element;
804
+
805
+ export declare function SelectInput({ value, onValueChange, options, placeholder, isInvalid, disabled }: SelectInputProps): JSX.Element;
806
+
807
+ export declare interface SelectInputProps {
808
+ value: string;
809
+ onValueChange: (value: string) => void;
810
+ options: {
811
+ label: string;
812
+ value: string;
813
+ }[];
814
+ placeholder?: string;
815
+ isInvalid?: boolean;
816
+ disabled?: boolean;
817
+ }
818
+
819
+ export declare function SelectItem({ className, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Item>): JSX.Element;
820
+
821
+ export declare function SelectLabel({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Label>): JSX.Element;
822
+
823
+ export declare function SelectScrollDownButton({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): JSX.Element;
824
+
825
+ export declare function SelectScrollUpButton({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): JSX.Element;
826
+
827
+ export declare function SelectSeparator({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Separator>): JSX.Element;
828
+
829
+ export declare function SelectTrigger({ className, size, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Trigger> & {
830
+ size?: "sm" | "default";
831
+ }): JSX.Element;
832
+
833
+ export declare function SelectValue({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Value>): JSX.Element;
834
+
835
+ export declare function Separator({ className, orientation, decorative, ...props }: React_2.ComponentProps<typeof SeparatorPrimitive.Root>): JSX.Element;
836
+
837
+ export declare function Sheet({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
838
+
839
+ export declare function SheetClose({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Close>): JSX.Element;
840
+
841
+ export declare function SheetContent({ className, children, side, showCloseButton, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Content> & {
842
+ side?: "top" | "right" | "bottom" | "left";
843
+ showCloseButton?: boolean;
844
+ }): JSX.Element;
845
+
846
+ export declare function SheetDescription({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Description>): JSX.Element;
847
+
848
+ export declare function SheetFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
849
+
850
+ export declare function SheetHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
851
+
852
+ export declare function SheetTitle({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Title>): JSX.Element;
853
+
854
+ export declare function SheetTrigger({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element;
855
+
856
+ export declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React_2.ComponentProps<"div"> & {
857
+ side?: "left" | "right";
858
+ variant?: "sidebar" | "floating" | "inset";
859
+ collapsible?: "offcanvas" | "icon" | "none";
860
+ }): JSX.Element;
861
+
862
+ export declare function SideBarCompanyData({ company }: {
863
+ company: {
864
+ name: string;
865
+ logo: string;
866
+ };
867
+ }): JSX.Element;
868
+
869
+ export declare function SidebarContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
870
+
871
+ declare type SidebarContextProps = {
872
+ state: "expanded" | "collapsed";
873
+ open: boolean;
874
+ setOpen: (open: boolean) => void;
875
+ openMobile: boolean;
876
+ setOpenMobile: (open: boolean) => void;
877
+ isMobile: boolean;
878
+ toggleSidebar: () => void;
879
+ };
880
+
881
+ export declare function SidebarFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
882
+
883
+ export declare function SidebarGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
884
+
885
+ export declare function SidebarGroupAction({ className, asChild, ...props }: React_2.ComponentProps<"button"> & {
886
+ asChild?: boolean;
887
+ }): JSX.Element;
888
+
889
+ export declare function SidebarGroupContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
890
+
891
+ export declare function SidebarGroupLabel({ className, asChild, ...props }: React_2.ComponentProps<"div"> & {
892
+ asChild?: boolean;
893
+ }): JSX.Element;
894
+
895
+ export declare function SidebarHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
896
+
897
+ export declare function SidebarInput({ className, ...props }: React_2.ComponentProps<typeof Input>): JSX.Element;
898
+
899
+ export declare function SidebarInset({ className, ...props }: React_2.ComponentProps<"main">): JSX.Element;
900
+
901
+ export declare interface SidebarLogoProps {
902
+ logos: {
903
+ full: {
904
+ light: string;
905
+ dark: string;
906
+ };
907
+ collapsed: {
908
+ light: string;
909
+ dark: string;
910
+ };
911
+ };
912
+ alt?: string;
913
+ }
914
+
915
+ export declare function SideBarMainMenu({ items }: {
916
+ items: {
917
+ title: string;
918
+ url: string;
919
+ icon?: React.ReactNode;
920
+ hasAuth: boolean;
921
+ }[];
922
+ }): JSX.Element;
923
+
924
+ export declare function SidebarMenu({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;
925
+
926
+ export declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React_2.ComponentProps<"button"> & {
927
+ asChild?: boolean;
928
+ showOnHover?: boolean;
929
+ }): JSX.Element;
930
+
931
+ export declare function SidebarMenuBadge({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
932
+
933
+ export declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React_2.ComponentProps<"button"> & {
934
+ asChild?: boolean;
935
+ isActive?: boolean;
936
+ tooltip?: string | React_2.ComponentProps<typeof TooltipContent>;
937
+ } & VariantProps<typeof sidebarMenuButtonVariants>): JSX.Element;
938
+
939
+ declare const sidebarMenuButtonVariants: (props?: ({
940
+ variant?: "default" | "outline" | null | undefined;
941
+ size?: "default" | "sm" | "lg" | null | undefined;
942
+ } & ClassProp) | undefined) => string;
943
+
944
+ export declare function SidebarMenuItem({ className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
945
+
946
+ export declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React_2.ComponentProps<"div"> & {
947
+ showIcon?: boolean;
948
+ }): JSX.Element;
949
+
950
+ export declare function SidebarMenuSub({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;
951
+
952
+ export declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React_2.ComponentProps<"a"> & {
953
+ asChild?: boolean;
954
+ size?: "sm" | "md";
955
+ isActive?: boolean;
956
+ }): JSX.Element;
957
+
958
+ export declare function SidebarMenuSubItem({ className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
959
+
960
+ export declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React_2.ComponentProps<"div"> & {
961
+ defaultOpen?: boolean;
962
+ open?: boolean;
963
+ onOpenChange?: (open: boolean) => void;
964
+ }): JSX.Element;
965
+
966
+ export declare function SidebarRail({ className, ...props }: React_2.ComponentProps<"button">): JSX.Element;
967
+
968
+ export declare function SideBarSecondaryMenu({ items, onLogout, ...props }: SideBarSecondaryMenuProps): JSX.Element;
969
+
970
+ export declare interface SideBarSecondaryMenuProps extends React_2.ComponentPropsWithoutRef<typeof SidebarGroup> {
971
+ items: {
972
+ title: string;
973
+ url: string;
974
+ icon: React_2.ReactNode;
975
+ }[];
976
+ onLogout: () => void;
977
+ }
978
+
979
+ export declare function SidebarSeparator({ className, ...props }: React_2.ComponentProps<typeof Separator>): JSX.Element;
980
+
981
+ export declare function SidebarTrigger({ className, onClick, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
982
+
983
+ export declare function SideBarUserData<T extends UsernameObject>({ user }: {
984
+ user: T | undefined;
985
+ }): JSX.Element;
986
+
987
+ export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
988
+
989
+ export declare function Switch({ className, size, ...props }: React_2.ComponentProps<typeof SwitchPrimitive.Root> & {
990
+ size?: "sm" | "default";
991
+ }): JSX.Element;
992
+
993
+ export declare function Table({ className, ...props }: React_2.ComponentProps<"table">): JSX.Element;
994
+
995
+ export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
996
+
997
+ export declare type TableBodyRowInfo = {
998
+ rowName: string;
999
+ rowStyles: string;
1000
+ };
1001
+
1002
+ export declare function TableCaption({ className, ...props }: React_2.ComponentProps<"caption">): JSX.Element;
1003
+
1004
+ export declare function TableCell({ className, ...props }: React_2.ComponentProps<"td">): JSX.Element;
1005
+
1006
+ export declare function TableFooter({ className, ...props }: React_2.ComponentProps<"tfoot">): JSX.Element;
1007
+
1008
+ export declare function TableHead({ className, ...props }: React_2.ComponentProps<"th">): JSX.Element;
1009
+
1010
+ export declare function TableHeader({ className, ...props }: React_2.ComponentProps<"thead">): JSX.Element;
1011
+
1012
+ export declare type TableHeadRow = {
1013
+ rowName: string;
1014
+ rowStyles: string;
1015
+ };
1016
+
1017
+ export declare function TableRow({ className, ...props }: React_2.ComponentProps<"tr">): JSX.Element;
1018
+
1019
+ export declare function Tabs({ className, orientation, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX.Element;
1020
+
1021
+ export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): JSX.Element;
1022
+
1023
+ export declare function TabsList({ className, variant, ...props }: React_2.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): JSX.Element;
1024
+
1025
+ export declare const tabsListVariants: (props?: ({
1026
+ variant?: "default" | "line" | null | undefined;
1027
+ } & ClassProp) | undefined) => string;
1028
+
1029
+ export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element;
1030
+
1031
+ export declare function Textarea({ className, ...props }: React_2.ComponentProps<"textarea">): JSX.Element;
1032
+
1033
+ export declare function TextAreaField({ label, error, isInvalid, required, ...props }: TextAreaInputProps & {
1034
+ label: string;
1035
+ error?: string;
1036
+ required?: boolean;
1037
+ }): JSX.Element;
1038
+
1039
+ export declare function TextAreaInput({ isInvalid, className, ...props }: TextAreaInputProps): JSX.Element;
1040
+
1041
+ export declare interface TextAreaInputProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
1042
+ isInvalid?: boolean;
1043
+ }
1044
+
1045
+ export declare function TextField(props: InputFieldProps): JSX.Element;
1046
+
1047
+ declare type Theme = "dark" | "light" | "system";
1048
+
1049
+ export declare function ThemeProvider({ children, defaultTheme, storageKey, ...props }: ThemeProviderProps): JSX.Element;
1050
+
1051
+ declare type ThemeProviderProps = {
1052
+ children: React.ReactNode;
1053
+ defaultTheme?: Theme;
1054
+ storageKey?: string;
1055
+ };
1056
+
1057
+ declare type ThemeProviderState = {
1058
+ theme: Theme;
1059
+ setTheme: (theme: Theme) => void;
1060
+ };
1061
+
1062
+ declare const THEMES: {
1063
+ readonly light: "";
1064
+ readonly dark: ".dark";
1065
+ };
1066
+
1067
+ export declare function ThemeToggle({ variant }: {
1068
+ variant?: "icon" | "sidebar";
1069
+ }): JSX.Element;
1070
+
1071
+ export declare function TitleSeparator({ title }: TitleSeparatorProps): JSX.Element;
1072
+
1073
+ declare interface TitleSeparatorProps {
1074
+ title: string;
1075
+ }
1076
+
1077
+ export declare const Toaster: ({ ...props }: ToasterProps) => JSX.Element;
1078
+
1079
+ export declare function Toggle({ className, variant, size, ...props }: React_2.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): JSX.Element;
1080
+
1081
+ export declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: React_2.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & {
1082
+ spacing?: number;
1083
+ orientation?: "horizontal" | "vertical";
1084
+ }): JSX.Element;
1085
+
1086
+ export declare function ToggleGroupItem({ className, children, variant, size, ...props }: React_2.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): JSX.Element;
1087
+
1088
+ export declare const toggleVariants: (props?: ({
1089
+ variant?: "default" | "outline" | null | undefined;
1090
+ size?: "default" | "sm" | "lg" | null | undefined;
1091
+ } & ClassProp) | undefined) => string;
1092
+
1093
+ export declare function Tooltip({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element;
1094
+
1095
+ export declare function TooltipContent({ className, sideOffset, children, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Content>): JSX.Element;
1096
+
1097
+ export declare function TooltipProvider({ delayDuration, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Provider>): JSX.Element;
1098
+
1099
+ export declare function TooltipTrigger({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element;
1100
+
1101
+ export declare function useCarousel(): CarouselContextProps;
1102
+
1103
+ declare type UseCarouselParameters = Parameters<typeof default_2>;
1104
+
1105
+ export declare function useComboboxAnchor(): React_2.RefObject<HTMLDivElement | null>;
1106
+
1107
+ export declare const useDirection: typeof Direction.useDirection;
1108
+
1109
+ export declare function useDynamicList<T, K extends keyof T>(fieldName: K, setFormData: (updater: (prev: T) => T) => void, clearError: (field: string) => void): {
1110
+ addRow: (newItem: any) => void;
1111
+ removeRow: (index: number, reindexField?: string) => void;
1112
+ updateRow: (index: number, subField: string, value: any) => void;
1113
+ };
1114
+
1115
+ export declare function useEntityForm<T>(initialData: Partial<T> | undefined, rules: ValidationRule<Partial<T>>[]): {
1116
+ errors: Record<string, string>;
1117
+ getError: (field: string | keyof T) => string;
1118
+ isInvalid: (field: string | keyof T) => boolean;
1119
+ validate: () => boolean;
1120
+ clearError: (field: string | keyof T) => void;
1121
+ errorInputClass: (field: string) => "" | "border-red-600 dark:border-red-600 ring-red-600 text-red-600 placeholder:text-red-600";
1122
+ formData: Partial<T>;
1123
+ handleChange: (update: Partial<T> | ((prev: Partial<T>) => Partial<T>)) => void;
1124
+ };
1125
+
1126
+ export declare function useFormValidation<T>(data: T, rules: ValidationRule<T>[]): {
1127
+ errors: Record<string, string>;
1128
+ getError: (field: keyof T | string) => string;
1129
+ isInvalid: (field: keyof T | string) => boolean;
1130
+ validate: () => boolean;
1131
+ clearError: (field: keyof T | string) => void;
1132
+ errorInputClass: (field: string) => "" | "border-red-600 dark:border-red-600 ring-red-600 text-red-600 placeholder:text-red-600";
1133
+ };
1134
+
1135
+ export declare function useIsMobile(): boolean;
1136
+
1137
+ declare interface UsernameObject {
1138
+ username?: string;
1139
+ }
1140
+
1141
+ export declare function useSidebar(): SidebarContextProps;
1142
+
1143
+ export declare const useTheme: () => ThemeProviderState;
1144
+
1145
+ export declare const useYusrDispatch: () => ThunkDispatch<{
1146
+ auth: AuthState<object, object>;
1147
+ }, undefined, UnknownAction_2> & Dispatch<UnknownAction_2>;
1148
+
1149
+ export declare const useYusrSelector: TypedUseSelectorHook<InternalRootState>;
1150
+
1151
+ export { }