@yusr_systems/ui 2.0.6 → 2.0.8
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 +3 -15
- package/dist/yusr-ui.js +4170 -4658
- package/dist/yusr-ui.umd.cjs +24 -32
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ 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 { AsyncThunkConfig } from '@reduxjs/toolkit';
|
|
5
|
-
import { AuthState } from '@yusr_systems/core/src/auth/authSlice';
|
|
6
5
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
7
6
|
import { BaseApiService } from '@yusr_systems/core/src/networking';
|
|
8
7
|
import { BaseEntity } from '@yusr_systems/core/src/entities';
|
|
@@ -22,10 +21,10 @@ import { default as default_3 } from 'embla-carousel-react';
|
|
|
22
21
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
23
22
|
import * as Direction from '@radix-ui/react-direction';
|
|
24
23
|
import { Dispatch } from 'react';
|
|
24
|
+
import { Dispatch as Dispatch_2 } from '@reduxjs/toolkit';
|
|
25
25
|
import { Draft } from 'immer';
|
|
26
26
|
import { Drawer as Drawer_2 } from 'vaul';
|
|
27
27
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
28
|
-
import { EnhancedStore } from '@reduxjs/toolkit';
|
|
29
28
|
import { FilterCondition } from '@yusr_systems/core/src/entities';
|
|
30
29
|
import { FilterResult } from '@yusr_systems/core/src/types';
|
|
31
30
|
import { JSX } from 'react/jsx-runtime';
|
|
@@ -37,8 +36,7 @@ import { PropsWithChildren } from 'react';
|
|
|
37
36
|
import * as React_2 from 'react';
|
|
38
37
|
import { ReactNode } from 'react';
|
|
39
38
|
import * as RechartsPrimitive from 'recharts';
|
|
40
|
-
import { Reducer } from '
|
|
41
|
-
import { ReducersMapObject } from '@reduxjs/toolkit';
|
|
39
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
42
40
|
import { RefObject } from 'react';
|
|
43
41
|
import { RequestResult } from '@yusr_systems/core/src/types';
|
|
44
42
|
import { ResourcePermissions } from '@yusr_systems/core/src/auth/permissionSelector';
|
|
@@ -99,8 +97,6 @@ declare const alertVariants: (props?: ({
|
|
|
99
97
|
variant?: "default" | "destructive" | null | undefined;
|
|
100
98
|
} & ClassProp) | undefined) => string;
|
|
101
99
|
|
|
102
|
-
declare type AppStore = ReturnType<typeof createInternalStore>;
|
|
103
|
-
|
|
104
100
|
declare interface AuthActions {
|
|
105
101
|
logout: () => any;
|
|
106
102
|
syncFromStorage: () => any;
|
|
@@ -440,10 +436,6 @@ export declare function createGenericEntitySlice<T extends BaseEntity, CR extend
|
|
|
440
436
|
};
|
|
441
437
|
};
|
|
442
438
|
|
|
443
|
-
export declare const createInternalStore: <TUser extends object, TSetting extends object, R extends ReducersMapObject = ReducersMapObject>(externalReducers: R) => EnhancedStore<{
|
|
444
|
-
auth: AuthState<TUser, TSetting>;
|
|
445
|
-
} & { [K in keyof R]: ReturnType<R[K]>; }>;
|
|
446
|
-
|
|
447
439
|
export declare interface CrudActions<T extends BaseEntity> {
|
|
448
440
|
filter: AsyncThunk<FilterResult<T> | undefined, FilterCondition | undefined, object>;
|
|
449
441
|
openChangeDialog: (entity: T) => UnknownAction;
|
|
@@ -774,10 +766,6 @@ export declare function InputGroupText({ className, ...props }: React_2.Componen
|
|
|
774
766
|
|
|
775
767
|
export declare function InputGroupTextarea({ className, ...props }: React_2.ComponentProps<"textarea">): JSX.Element;
|
|
776
768
|
|
|
777
|
-
export declare type InternalDispatch = AppStore['dispatch'];
|
|
778
|
-
|
|
779
|
-
export declare type InternalRootState = ReturnType<AppStore['getState']>;
|
|
780
|
-
|
|
781
769
|
export declare function isPDF(file?: StorageFile): boolean;
|
|
782
770
|
|
|
783
771
|
export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
|
|
@@ -967,7 +955,7 @@ export declare function SelectValue({ ...props }: React_2.ComponentProps<typeof
|
|
|
967
955
|
|
|
968
956
|
export declare function Separator({ className, orientation, decorative, ...props }: React_2.ComponentProps<typeof SeparatorPrimitive.Root>): JSX.Element;
|
|
969
957
|
|
|
970
|
-
export declare const setupAuthListeners: (dispatch:
|
|
958
|
+
export declare const setupAuthListeners: (dispatch: Dispatch_2<UnknownAction>, actions: AuthActions) => void;
|
|
971
959
|
|
|
972
960
|
export declare function Sheet({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
|
|
973
961
|
|