@yusr_systems/ui 2.1.1 → 2.1.3
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 +15 -17
- package/dist/yusr-ui.js +6769 -6790
- package/dist/yusr-ui.umd.cjs +24 -24
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,14 +2,13 @@ import { ActionCreatorWithPayload } from '@reduxjs/toolkit';
|
|
|
2
2
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
3
|
import { AsyncThunk } from '@reduxjs/toolkit';
|
|
4
4
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
5
|
-
import { BaseApiService } from '@yusr_systems/core
|
|
6
|
-
import { BaseEntity } from '@yusr_systems/core
|
|
7
|
-
import { BaseFilterableApiService } from '@yusr_systems/core
|
|
8
|
-
import { CaseReducerActions } from '@reduxjs/toolkit';
|
|
5
|
+
import { BaseApiService } from '@yusr_systems/core';
|
|
6
|
+
import { BaseEntity } from '@yusr_systems/core';
|
|
7
|
+
import { BaseFilterableApiService } from '@yusr_systems/core';
|
|
9
8
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
10
9
|
import { ClassProp } from 'class-variance-authority/types';
|
|
11
10
|
import { ClassValue } from 'clsx';
|
|
12
|
-
import { ColumnName } from '@yusr_systems/core
|
|
11
|
+
import { ColumnName } from '@yusr_systems/core';
|
|
13
12
|
import { Combobox as Combobox_2 } from '@base-ui/react/combobox';
|
|
14
13
|
import { Command as Command_2 } from 'cmdk';
|
|
15
14
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
@@ -24,8 +23,8 @@ import { Dispatch as Dispatch_2 } from '@reduxjs/toolkit';
|
|
|
24
23
|
import { Draft } from 'immer';
|
|
25
24
|
import { Drawer as Drawer_2 } from 'vaul';
|
|
26
25
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
27
|
-
import { FilterCondition } from '@yusr_systems/core
|
|
28
|
-
import { FilterResult } from '@yusr_systems/core
|
|
26
|
+
import { FilterCondition } from '@yusr_systems/core';
|
|
27
|
+
import { FilterResult } from '@yusr_systems/core';
|
|
29
28
|
import { JSX } from 'react/jsx-runtime';
|
|
30
29
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
31
30
|
import { Locale } from 'react-day-picker';
|
|
@@ -37,16 +36,15 @@ import { ReactNode } from 'react';
|
|
|
37
36
|
import * as RechartsPrimitive from 'recharts';
|
|
38
37
|
import { Reducer } from '@reduxjs/toolkit';
|
|
39
38
|
import { RefObject } from 'react';
|
|
40
|
-
import { RequestResult } from '@yusr_systems/core
|
|
41
|
-
import { ResourcePermissions } from '@yusr_systems/core
|
|
39
|
+
import { RequestResult } from '@yusr_systems/core';
|
|
40
|
+
import { ResourcePermissions } from '@yusr_systems/core';
|
|
42
41
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
43
42
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
44
43
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
45
44
|
import { SetStateAction } from 'react';
|
|
46
45
|
import { Slice } from '@reduxjs/toolkit';
|
|
47
|
-
import { SliceCaseReducers } from '@reduxjs/toolkit';
|
|
48
46
|
import { SliceSelectors } from '@reduxjs/toolkit';
|
|
49
|
-
import { StorageFile } from '@yusr_systems/core
|
|
47
|
+
import { StorageFile } from '@yusr_systems/core';
|
|
50
48
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
51
49
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
52
50
|
import { ToasterProps } from 'sonner';
|
|
@@ -55,7 +53,7 @@ import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
|
55
53
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
56
54
|
import { UnknownAction } from '@reduxjs/toolkit';
|
|
57
55
|
import { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
58
|
-
import { ValidationRule } from '@yusr_systems/core
|
|
56
|
+
import { ValidationRule } from '@yusr_systems/core';
|
|
59
57
|
import { VariantProps } from 'class-variance-authority';
|
|
60
58
|
|
|
61
59
|
export declare function Alert({ className, variant, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof alertVariants>): JSX.Element;
|
|
@@ -151,7 +149,7 @@ export declare function Button({ className, variant, size, asChild, ...props }:
|
|
|
151
149
|
|
|
152
150
|
export declare const buttonVariants: (props?: ({
|
|
153
151
|
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
154
|
-
size?: "default" | "
|
|
152
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
155
153
|
} & ClassProp) | undefined) => string;
|
|
156
154
|
|
|
157
155
|
export declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React_2.ComponentProps<typeof DayPicker> & {
|
|
@@ -404,9 +402,9 @@ export declare function createGenericDialogSlice<T>(sliceName: string): Slice<ID
|
|
|
404
402
|
}, action: PayloadAction<boolean>) => void;
|
|
405
403
|
}, string, string, SliceSelectors<IDialogState<T>>>;
|
|
406
404
|
|
|
407
|
-
export declare function createGenericEntitySlice<T extends BaseEntity
|
|
405
|
+
export declare function createGenericEntitySlice<T extends BaseEntity>(sliceName: string, service: BaseFilterableApiService<T>, filterMethod?: FilterMethodType<T>): {
|
|
408
406
|
reducer: Reducer<IEntityState<T>>;
|
|
409
|
-
actions: EntityActions<T
|
|
407
|
+
actions: EntityActions<T>;
|
|
410
408
|
};
|
|
411
409
|
|
|
412
410
|
export declare interface CrudActions<T extends BaseEntity> {
|
|
@@ -636,14 +634,14 @@ declare type EmptyTablePreviewProps = {
|
|
|
636
634
|
|
|
637
635
|
export declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
638
636
|
|
|
639
|
-
export declare type EntityActions<T
|
|
637
|
+
export declare type EntityActions<T> = {
|
|
640
638
|
setCurrentPage: ActionCreatorWithPayload<number, string>;
|
|
641
639
|
refresh: ActionCreatorWithPayload<{
|
|
642
640
|
data?: T;
|
|
643
641
|
deletedId?: number;
|
|
644
642
|
}, string>;
|
|
645
643
|
filter: AsyncThunk<FilterResult<T> | undefined, FilterCondition | undefined, any>;
|
|
646
|
-
}
|
|
644
|
+
};
|
|
647
645
|
|
|
648
646
|
export declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): JSX.Element;
|
|
649
647
|
|