warqadui 0.0.160 → 0.0.162
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.mts +50 -1
- package/dist/index.d.ts +50 -1
- package/dist/index.js +89762 -80903
- package/dist/index.mjs +21646 -12329
- package/dist/styles.js +9 -0
- package/dist/styles.mjs +9 -0
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -388,6 +388,7 @@ declare const Enums: {
|
|
|
388
388
|
stockTransferTypes: readonly ["pack", "product", "pack to product"];
|
|
389
389
|
forexTypes: readonly ["direct", "exchange", "supplier exchange"];
|
|
390
390
|
branchTypes: readonly ["shop", "store", "office", "apartment"];
|
|
391
|
+
documentTypes: readonly ["none", "id", "passport", "license"];
|
|
391
392
|
};
|
|
392
393
|
|
|
393
394
|
interface ThemeConfig {
|
|
@@ -477,6 +478,7 @@ interface SelectProps extends Omit<React__default.SelectHTMLAttributes<HTMLSelec
|
|
|
477
478
|
children?: ReactNode;
|
|
478
479
|
enum?: string[] | readonly string[];
|
|
479
480
|
enumName?: keyof EnumsConfig;
|
|
481
|
+
showSearch?: boolean;
|
|
480
482
|
}
|
|
481
483
|
interface SelectContextValue {
|
|
482
484
|
isOpen: boolean;
|
|
@@ -495,6 +497,9 @@ interface SelectContextValue {
|
|
|
495
497
|
registerOption: (opt: Option) => void;
|
|
496
498
|
fieldInternalProps?: any;
|
|
497
499
|
disabled?: boolean;
|
|
500
|
+
searchQuery: string;
|
|
501
|
+
setSearchQuery: (val: string) => void;
|
|
502
|
+
showSearch?: boolean;
|
|
498
503
|
}
|
|
499
504
|
declare const useSelectContext: () => SelectContextValue;
|
|
500
505
|
declare const Select: React__default.ForwardRefExoticComponent<SelectProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -1287,7 +1292,10 @@ declare function ForexTransactions(): react_jsx_runtime.JSX.Element;
|
|
|
1287
1292
|
|
|
1288
1293
|
declare function TodayForexTransaction(): react_jsx_runtime.JSX.Element;
|
|
1289
1294
|
|
|
1290
|
-
declare function AccountForm(
|
|
1295
|
+
declare function AccountForm({ showCurrency, showDocument, }: {
|
|
1296
|
+
showCurrency?: boolean;
|
|
1297
|
+
showDocument?: boolean;
|
|
1298
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1291
1299
|
|
|
1292
1300
|
type AccountProps<T extends FieldValues> = {
|
|
1293
1301
|
name: Path<T>;
|
|
@@ -1363,20 +1371,61 @@ declare const createAccountSchema: z$1.ZodObject<{
|
|
|
1363
1371
|
sex: z$1.ZodOptional<z$1.ZodEnum<["male", "female"]>>;
|
|
1364
1372
|
branch: z$1.ZodOptional<z$1.ZodString>;
|
|
1365
1373
|
currency: z$1.ZodOptional<z$1.ZodString>;
|
|
1374
|
+
documentType: z$1.ZodOptional<z$1.ZodEnum<["none", "id", "passport", "license"]>>;
|
|
1375
|
+
document: z$1.ZodOptional<z$1.ZodObject<{
|
|
1376
|
+
no: z$1.ZodString;
|
|
1377
|
+
name: z$1.ZodString;
|
|
1378
|
+
sex: z$1.ZodEnum<["male", "female"]>;
|
|
1379
|
+
surname: z$1.ZodString;
|
|
1380
|
+
nationality: z$1.ZodString;
|
|
1381
|
+
expiryDate: z$1.ZodOptional<z$1.ZodString>;
|
|
1382
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1383
|
+
sex: "male" | "female";
|
|
1384
|
+
name: string;
|
|
1385
|
+
no: string;
|
|
1386
|
+
surname: string;
|
|
1387
|
+
nationality: string;
|
|
1388
|
+
expiryDate?: string | undefined;
|
|
1389
|
+
}, {
|
|
1390
|
+
sex: "male" | "female";
|
|
1391
|
+
name: string;
|
|
1392
|
+
no: string;
|
|
1393
|
+
surname: string;
|
|
1394
|
+
nationality: string;
|
|
1395
|
+
expiryDate?: string | undefined;
|
|
1396
|
+
}>>;
|
|
1366
1397
|
}, "strip", z$1.ZodTypeAny, {
|
|
1367
1398
|
name: string;
|
|
1368
1399
|
sex?: "male" | "female" | undefined;
|
|
1369
1400
|
email?: string | undefined;
|
|
1401
|
+
document?: {
|
|
1402
|
+
sex: "male" | "female";
|
|
1403
|
+
name: string;
|
|
1404
|
+
no: string;
|
|
1405
|
+
surname: string;
|
|
1406
|
+
nationality: string;
|
|
1407
|
+
expiryDate?: string | undefined;
|
|
1408
|
+
} | undefined;
|
|
1370
1409
|
currency?: string | undefined;
|
|
1371
1410
|
phoneNumber?: string | undefined;
|
|
1372
1411
|
branch?: string | undefined;
|
|
1412
|
+
documentType?: "none" | "id" | "passport" | "license" | undefined;
|
|
1373
1413
|
}, {
|
|
1374
1414
|
name: string;
|
|
1375
1415
|
sex?: "male" | "female" | undefined;
|
|
1376
1416
|
email?: string | undefined;
|
|
1417
|
+
document?: {
|
|
1418
|
+
sex: "male" | "female";
|
|
1419
|
+
name: string;
|
|
1420
|
+
no: string;
|
|
1421
|
+
surname: string;
|
|
1422
|
+
nationality: string;
|
|
1423
|
+
expiryDate?: string | undefined;
|
|
1424
|
+
} | undefined;
|
|
1377
1425
|
currency?: string | undefined;
|
|
1378
1426
|
phoneNumber?: string | undefined;
|
|
1379
1427
|
branch?: string | undefined;
|
|
1428
|
+
documentType?: "none" | "id" | "passport" | "license" | undefined;
|
|
1380
1429
|
}>;
|
|
1381
1430
|
type CreateAccountSchemaType = z$1.infer<typeof createAccountSchema>;
|
|
1382
1431
|
|
package/dist/index.d.ts
CHANGED
|
@@ -388,6 +388,7 @@ declare const Enums: {
|
|
|
388
388
|
stockTransferTypes: readonly ["pack", "product", "pack to product"];
|
|
389
389
|
forexTypes: readonly ["direct", "exchange", "supplier exchange"];
|
|
390
390
|
branchTypes: readonly ["shop", "store", "office", "apartment"];
|
|
391
|
+
documentTypes: readonly ["none", "id", "passport", "license"];
|
|
391
392
|
};
|
|
392
393
|
|
|
393
394
|
interface ThemeConfig {
|
|
@@ -477,6 +478,7 @@ interface SelectProps extends Omit<React__default.SelectHTMLAttributes<HTMLSelec
|
|
|
477
478
|
children?: ReactNode;
|
|
478
479
|
enum?: string[] | readonly string[];
|
|
479
480
|
enumName?: keyof EnumsConfig;
|
|
481
|
+
showSearch?: boolean;
|
|
480
482
|
}
|
|
481
483
|
interface SelectContextValue {
|
|
482
484
|
isOpen: boolean;
|
|
@@ -495,6 +497,9 @@ interface SelectContextValue {
|
|
|
495
497
|
registerOption: (opt: Option) => void;
|
|
496
498
|
fieldInternalProps?: any;
|
|
497
499
|
disabled?: boolean;
|
|
500
|
+
searchQuery: string;
|
|
501
|
+
setSearchQuery: (val: string) => void;
|
|
502
|
+
showSearch?: boolean;
|
|
498
503
|
}
|
|
499
504
|
declare const useSelectContext: () => SelectContextValue;
|
|
500
505
|
declare const Select: React__default.ForwardRefExoticComponent<SelectProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -1287,7 +1292,10 @@ declare function ForexTransactions(): react_jsx_runtime.JSX.Element;
|
|
|
1287
1292
|
|
|
1288
1293
|
declare function TodayForexTransaction(): react_jsx_runtime.JSX.Element;
|
|
1289
1294
|
|
|
1290
|
-
declare function AccountForm(
|
|
1295
|
+
declare function AccountForm({ showCurrency, showDocument, }: {
|
|
1296
|
+
showCurrency?: boolean;
|
|
1297
|
+
showDocument?: boolean;
|
|
1298
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1291
1299
|
|
|
1292
1300
|
type AccountProps<T extends FieldValues> = {
|
|
1293
1301
|
name: Path<T>;
|
|
@@ -1363,20 +1371,61 @@ declare const createAccountSchema: z$1.ZodObject<{
|
|
|
1363
1371
|
sex: z$1.ZodOptional<z$1.ZodEnum<["male", "female"]>>;
|
|
1364
1372
|
branch: z$1.ZodOptional<z$1.ZodString>;
|
|
1365
1373
|
currency: z$1.ZodOptional<z$1.ZodString>;
|
|
1374
|
+
documentType: z$1.ZodOptional<z$1.ZodEnum<["none", "id", "passport", "license"]>>;
|
|
1375
|
+
document: z$1.ZodOptional<z$1.ZodObject<{
|
|
1376
|
+
no: z$1.ZodString;
|
|
1377
|
+
name: z$1.ZodString;
|
|
1378
|
+
sex: z$1.ZodEnum<["male", "female"]>;
|
|
1379
|
+
surname: z$1.ZodString;
|
|
1380
|
+
nationality: z$1.ZodString;
|
|
1381
|
+
expiryDate: z$1.ZodOptional<z$1.ZodString>;
|
|
1382
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1383
|
+
sex: "male" | "female";
|
|
1384
|
+
name: string;
|
|
1385
|
+
no: string;
|
|
1386
|
+
surname: string;
|
|
1387
|
+
nationality: string;
|
|
1388
|
+
expiryDate?: string | undefined;
|
|
1389
|
+
}, {
|
|
1390
|
+
sex: "male" | "female";
|
|
1391
|
+
name: string;
|
|
1392
|
+
no: string;
|
|
1393
|
+
surname: string;
|
|
1394
|
+
nationality: string;
|
|
1395
|
+
expiryDate?: string | undefined;
|
|
1396
|
+
}>>;
|
|
1366
1397
|
}, "strip", z$1.ZodTypeAny, {
|
|
1367
1398
|
name: string;
|
|
1368
1399
|
sex?: "male" | "female" | undefined;
|
|
1369
1400
|
email?: string | undefined;
|
|
1401
|
+
document?: {
|
|
1402
|
+
sex: "male" | "female";
|
|
1403
|
+
name: string;
|
|
1404
|
+
no: string;
|
|
1405
|
+
surname: string;
|
|
1406
|
+
nationality: string;
|
|
1407
|
+
expiryDate?: string | undefined;
|
|
1408
|
+
} | undefined;
|
|
1370
1409
|
currency?: string | undefined;
|
|
1371
1410
|
phoneNumber?: string | undefined;
|
|
1372
1411
|
branch?: string | undefined;
|
|
1412
|
+
documentType?: "none" | "id" | "passport" | "license" | undefined;
|
|
1373
1413
|
}, {
|
|
1374
1414
|
name: string;
|
|
1375
1415
|
sex?: "male" | "female" | undefined;
|
|
1376
1416
|
email?: string | undefined;
|
|
1417
|
+
document?: {
|
|
1418
|
+
sex: "male" | "female";
|
|
1419
|
+
name: string;
|
|
1420
|
+
no: string;
|
|
1421
|
+
surname: string;
|
|
1422
|
+
nationality: string;
|
|
1423
|
+
expiryDate?: string | undefined;
|
|
1424
|
+
} | undefined;
|
|
1377
1425
|
currency?: string | undefined;
|
|
1378
1426
|
phoneNumber?: string | undefined;
|
|
1379
1427
|
branch?: string | undefined;
|
|
1428
|
+
documentType?: "none" | "id" | "passport" | "license" | undefined;
|
|
1380
1429
|
}>;
|
|
1381
1430
|
type CreateAccountSchemaType = z$1.infer<typeof createAccountSchema>;
|
|
1382
1431
|
|