@appcorp/fusion-storybook 0.1.59 → 0.1.60
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.
|
@@ -161,58 +161,3 @@ export declare const useUserModule: () => {
|
|
|
161
161
|
};
|
|
162
162
|
dispatch: React.Dispatch<any>;
|
|
163
163
|
};
|
|
164
|
-
/** @deprecated Use `UserProvider` */
|
|
165
|
-
export declare const UserStateContextProvider: import("react").FC<{
|
|
166
|
-
children: React.ReactNode;
|
|
167
|
-
}>;
|
|
168
|
-
/** @deprecated Use `useUserModule` */
|
|
169
|
-
export declare const useUserStateContext: () => {
|
|
170
|
-
applyFilters: () => void;
|
|
171
|
-
byIdLoading: boolean;
|
|
172
|
-
clearFilters: () => void;
|
|
173
|
-
deleteLoading: boolean;
|
|
174
|
-
handleAvatar: (files: File[]) => void;
|
|
175
|
-
handleChange: (field: string, value: string | number | boolean | undefined | null) => void;
|
|
176
|
-
handleCloseDrawer: () => void;
|
|
177
|
-
handleCreate: () => void;
|
|
178
|
-
handleDelete: (row?: TableRow) => void;
|
|
179
|
-
handleEdit: (row?: TableRow) => void;
|
|
180
|
-
handleFilters: () => void;
|
|
181
|
-
handleMoreActions: () => void;
|
|
182
|
-
handlePageChange: (page: number) => void;
|
|
183
|
-
handlePageLimitChange: (limit: number) => void;
|
|
184
|
-
handleSearch: (query: string) => void;
|
|
185
|
-
handleSubmit: () => Promise<void>;
|
|
186
|
-
handleView: (row?: TableRow) => void;
|
|
187
|
-
headerActions: {
|
|
188
|
-
enabled: boolean;
|
|
189
|
-
handleOnClick: () => void;
|
|
190
|
-
label: string;
|
|
191
|
-
order: number;
|
|
192
|
-
icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
193
|
-
}[];
|
|
194
|
-
listLoading: boolean;
|
|
195
|
-
rowActions: RowAction[];
|
|
196
|
-
toggleStatus: (row?: TableRow) => void;
|
|
197
|
-
updateLoading: boolean;
|
|
198
|
-
state: {
|
|
199
|
-
items: UserBE[];
|
|
200
|
-
count: number;
|
|
201
|
-
currentPage: number;
|
|
202
|
-
pageLimit: number;
|
|
203
|
-
searchQuery: string;
|
|
204
|
-
disableSaveButton: boolean;
|
|
205
|
-
drawer: string | null;
|
|
206
|
-
errors: Record<string, string>;
|
|
207
|
-
id: string;
|
|
208
|
-
name: string;
|
|
209
|
-
email: string;
|
|
210
|
-
phone: string;
|
|
211
|
-
avatar: string;
|
|
212
|
-
password: string;
|
|
213
|
-
enabled: boolean;
|
|
214
|
-
userRole: USER_ROLE | null;
|
|
215
|
-
filterEnabled: boolean | undefined;
|
|
216
|
-
};
|
|
217
|
-
dispatch: React.Dispatch<any>;
|
|
218
|
-
};
|
|
@@ -503,14 +503,14 @@ export const useUserModule = () => {
|
|
|
503
503
|
// ============================================================================
|
|
504
504
|
const headerActions = useMemo(() => [
|
|
505
505
|
{
|
|
506
|
-
enabled:
|
|
506
|
+
enabled: false,
|
|
507
507
|
handleOnClick: handleFilters,
|
|
508
508
|
label: "Filters",
|
|
509
509
|
order: 1,
|
|
510
510
|
icon: Filter,
|
|
511
511
|
},
|
|
512
512
|
{
|
|
513
|
-
enabled:
|
|
513
|
+
enabled: false,
|
|
514
514
|
handleOnClick: handleMoreActions,
|
|
515
515
|
label: "More Actions",
|
|
516
516
|
order: 2,
|
|
@@ -576,10 +576,3 @@ export const useUserModule = () => {
|
|
|
576
576
|
toggleStatus,
|
|
577
577
|
updateLoading });
|
|
578
578
|
};
|
|
579
|
-
// ============================================================================
|
|
580
|
-
// BACKWARD-COMPAT ALIASES
|
|
581
|
-
// ============================================================================
|
|
582
|
-
/** @deprecated Use `UserProvider` */
|
|
583
|
-
export const UserStateContextProvider = UserProvider;
|
|
584
|
-
/** @deprecated Use `useUserModule` */
|
|
585
|
-
export const useUserStateContext = useUserModule;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appcorp/fusion-storybook",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.60",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build-storybook": "storybook build",
|
|
6
6
|
"build:next": "next build",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"@pdfme/generator": "^6.0.6",
|
|
46
46
|
"@pdfme/schemas": "^6.0.6",
|
|
47
47
|
"@playwright/test": "^1.59.1",
|
|
48
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
48
49
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
49
50
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
50
51
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"@radix-ui/react-radio-group": "^1.3.8",
|
|
55
56
|
"@radix-ui/react-select": "^2.2.6",
|
|
56
57
|
"@radix-ui/react-separator": "^1.1.8",
|
|
58
|
+
"@radix-ui/react-slider": "^1.3.6",
|
|
57
59
|
"@radix-ui/react-slot": "^1.2.4",
|
|
58
60
|
"@radix-ui/react-toast": "^1.2.15",
|
|
59
61
|
"@react-pakistan/util-functions": "^1.25.69",
|
|
@@ -77,6 +79,7 @@
|
|
|
77
79
|
"class-variance-authority": "^0.7.1",
|
|
78
80
|
"clsx": "^2.1.1",
|
|
79
81
|
"cmdk": "^1.1.1",
|
|
82
|
+
"embla-carousel-react": "^8.6.0",
|
|
80
83
|
"eslint": "^9",
|
|
81
84
|
"eslint-config-next": "16.2.2",
|
|
82
85
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -96,6 +99,8 @@
|
|
|
96
99
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
97
100
|
"react": "^19.2.5",
|
|
98
101
|
"react-dom": "^19.2.5",
|
|
102
|
+
"react-dropzone": "^15.0.0",
|
|
103
|
+
"react-easy-crop": "^5.5.7",
|
|
99
104
|
"rimraf": "^6.1.3",
|
|
100
105
|
"sonner": "^2.0.7",
|
|
101
106
|
"storybook": "^10.3.4",
|