warqadui 0.0.159 → 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 CHANGED
@@ -104,12 +104,12 @@ declare const useTheme: () => ThemeContextType;
104
104
 
105
105
  declare const LoadingBox: () => react_jsx_runtime.JSX.Element;
106
106
 
107
- interface LoadingSpinProps {
107
+ interface LoadingSpinProps extends React__default.SVGAttributes<SVGSVGElement> {
108
108
  className?: string;
109
109
  size?: "sm" | "md" | "lg";
110
110
  color?: string;
111
111
  }
112
- declare const LoadingSpin: ({ className, size, color, }: LoadingSpinProps) => react_jsx_runtime.JSX.Element;
112
+ declare const LoadingSpin: ({ className, size, color, ...props }: LoadingSpinProps) => react_jsx_runtime.JSX.Element;
113
113
 
114
114
  declare const ClassicSpin: ({ msg }: {
115
115
  msg?: string;
@@ -387,6 +387,8 @@ declare const Enums: {
387
387
  sale: readonly ["cash", "credit"];
388
388
  stockTransferTypes: readonly ["pack", "product", "pack to product"];
389
389
  forexTypes: readonly ["direct", "exchange", "supplier exchange"];
390
+ branchTypes: readonly ["shop", "store", "office", "apartment"];
391
+ documentTypes: readonly ["none", "id", "passport", "license"];
390
392
  };
391
393
 
392
394
  interface ThemeConfig {
@@ -476,6 +478,7 @@ interface SelectProps extends Omit<React__default.SelectHTMLAttributes<HTMLSelec
476
478
  children?: ReactNode;
477
479
  enum?: string[] | readonly string[];
478
480
  enumName?: keyof EnumsConfig;
481
+ showSearch?: boolean;
479
482
  }
480
483
  interface SelectContextValue {
481
484
  isOpen: boolean;
@@ -494,6 +497,9 @@ interface SelectContextValue {
494
497
  registerOption: (opt: Option) => void;
495
498
  fieldInternalProps?: any;
496
499
  disabled?: boolean;
500
+ searchQuery: string;
501
+ setSearchQuery: (val: string) => void;
502
+ showSearch?: boolean;
497
503
  }
498
504
  declare const useSelectContext: () => SelectContextValue;
499
505
  declare const Select: React__default.ForwardRefExoticComponent<SelectProps & React__default.RefAttributes<HTMLDivElement>>;
@@ -1286,7 +1292,10 @@ declare function ForexTransactions(): react_jsx_runtime.JSX.Element;
1286
1292
 
1287
1293
  declare function TodayForexTransaction(): react_jsx_runtime.JSX.Element;
1288
1294
 
1289
- declare function AccountForm(): react_jsx_runtime.JSX.Element;
1295
+ declare function AccountForm({ showCurrency, showDocument, }: {
1296
+ showCurrency?: boolean;
1297
+ showDocument?: boolean;
1298
+ }): react_jsx_runtime.JSX.Element;
1290
1299
 
1291
1300
  type AccountProps<T extends FieldValues> = {
1292
1301
  name: Path<T>;
@@ -1362,20 +1371,61 @@ declare const createAccountSchema: z$1.ZodObject<{
1362
1371
  sex: z$1.ZodOptional<z$1.ZodEnum<["male", "female"]>>;
1363
1372
  branch: z$1.ZodOptional<z$1.ZodString>;
1364
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
+ }>>;
1365
1397
  }, "strip", z$1.ZodTypeAny, {
1366
1398
  name: string;
1367
- email?: string | undefined;
1368
1399
  sex?: "male" | "female" | undefined;
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;
1369
1409
  currency?: string | undefined;
1370
1410
  phoneNumber?: string | undefined;
1371
1411
  branch?: string | undefined;
1412
+ documentType?: "none" | "id" | "passport" | "license" | undefined;
1372
1413
  }, {
1373
1414
  name: string;
1374
- email?: string | undefined;
1375
1415
  sex?: "male" | "female" | undefined;
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;
1376
1425
  currency?: string | undefined;
1377
1426
  phoneNumber?: string | undefined;
1378
1427
  branch?: string | undefined;
1428
+ documentType?: "none" | "id" | "passport" | "license" | undefined;
1379
1429
  }>;
1380
1430
  type CreateAccountSchemaType = z$1.infer<typeof createAccountSchema>;
1381
1431
 
@@ -1419,12 +1469,12 @@ declare const linkUserSchema: z$1.ZodObject<{
1419
1469
  role: z$1.ZodEnum<["admin"]>;
1420
1470
  }, "strip", z$1.ZodTypeAny, {
1421
1471
  name: string;
1422
- role: "admin";
1423
1472
  email: string;
1473
+ role: "admin";
1424
1474
  }, {
1425
1475
  name: string;
1426
- role: "admin";
1427
1476
  email: string;
1477
+ role: "admin";
1428
1478
  }>;
1429
1479
  declare const verifyUserEmailSchema: z$1.ZodObject<{
1430
1480
  email: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodString, string, string>, string, string>;
@@ -1466,13 +1516,13 @@ declare const createUserSchema: z$1.ZodObject<{
1466
1516
  role: z$1.ZodEnum<["admin"]>;
1467
1517
  }, "strip", z$1.ZodTypeAny, {
1468
1518
  name: string;
1469
- role: "admin";
1470
1519
  email: string;
1520
+ role: "admin";
1471
1521
  phoneNumber?: string | undefined;
1472
1522
  }, {
1473
1523
  name: string;
1474
- role: "admin";
1475
1524
  email: string;
1525
+ role: "admin";
1476
1526
  phoneNumber?: string | undefined;
1477
1527
  }>;
1478
1528
  declare const updateUserSchema: z$1.ZodObject<{
package/dist/index.d.ts CHANGED
@@ -104,12 +104,12 @@ declare const useTheme: () => ThemeContextType;
104
104
 
105
105
  declare const LoadingBox: () => react_jsx_runtime.JSX.Element;
106
106
 
107
- interface LoadingSpinProps {
107
+ interface LoadingSpinProps extends React__default.SVGAttributes<SVGSVGElement> {
108
108
  className?: string;
109
109
  size?: "sm" | "md" | "lg";
110
110
  color?: string;
111
111
  }
112
- declare const LoadingSpin: ({ className, size, color, }: LoadingSpinProps) => react_jsx_runtime.JSX.Element;
112
+ declare const LoadingSpin: ({ className, size, color, ...props }: LoadingSpinProps) => react_jsx_runtime.JSX.Element;
113
113
 
114
114
  declare const ClassicSpin: ({ msg }: {
115
115
  msg?: string;
@@ -387,6 +387,8 @@ declare const Enums: {
387
387
  sale: readonly ["cash", "credit"];
388
388
  stockTransferTypes: readonly ["pack", "product", "pack to product"];
389
389
  forexTypes: readonly ["direct", "exchange", "supplier exchange"];
390
+ branchTypes: readonly ["shop", "store", "office", "apartment"];
391
+ documentTypes: readonly ["none", "id", "passport", "license"];
390
392
  };
391
393
 
392
394
  interface ThemeConfig {
@@ -476,6 +478,7 @@ interface SelectProps extends Omit<React__default.SelectHTMLAttributes<HTMLSelec
476
478
  children?: ReactNode;
477
479
  enum?: string[] | readonly string[];
478
480
  enumName?: keyof EnumsConfig;
481
+ showSearch?: boolean;
479
482
  }
480
483
  interface SelectContextValue {
481
484
  isOpen: boolean;
@@ -494,6 +497,9 @@ interface SelectContextValue {
494
497
  registerOption: (opt: Option) => void;
495
498
  fieldInternalProps?: any;
496
499
  disabled?: boolean;
500
+ searchQuery: string;
501
+ setSearchQuery: (val: string) => void;
502
+ showSearch?: boolean;
497
503
  }
498
504
  declare const useSelectContext: () => SelectContextValue;
499
505
  declare const Select: React__default.ForwardRefExoticComponent<SelectProps & React__default.RefAttributes<HTMLDivElement>>;
@@ -1286,7 +1292,10 @@ declare function ForexTransactions(): react_jsx_runtime.JSX.Element;
1286
1292
 
1287
1293
  declare function TodayForexTransaction(): react_jsx_runtime.JSX.Element;
1288
1294
 
1289
- declare function AccountForm(): react_jsx_runtime.JSX.Element;
1295
+ declare function AccountForm({ showCurrency, showDocument, }: {
1296
+ showCurrency?: boolean;
1297
+ showDocument?: boolean;
1298
+ }): react_jsx_runtime.JSX.Element;
1290
1299
 
1291
1300
  type AccountProps<T extends FieldValues> = {
1292
1301
  name: Path<T>;
@@ -1362,20 +1371,61 @@ declare const createAccountSchema: z$1.ZodObject<{
1362
1371
  sex: z$1.ZodOptional<z$1.ZodEnum<["male", "female"]>>;
1363
1372
  branch: z$1.ZodOptional<z$1.ZodString>;
1364
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
+ }>>;
1365
1397
  }, "strip", z$1.ZodTypeAny, {
1366
1398
  name: string;
1367
- email?: string | undefined;
1368
1399
  sex?: "male" | "female" | undefined;
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;
1369
1409
  currency?: string | undefined;
1370
1410
  phoneNumber?: string | undefined;
1371
1411
  branch?: string | undefined;
1412
+ documentType?: "none" | "id" | "passport" | "license" | undefined;
1372
1413
  }, {
1373
1414
  name: string;
1374
- email?: string | undefined;
1375
1415
  sex?: "male" | "female" | undefined;
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;
1376
1425
  currency?: string | undefined;
1377
1426
  phoneNumber?: string | undefined;
1378
1427
  branch?: string | undefined;
1428
+ documentType?: "none" | "id" | "passport" | "license" | undefined;
1379
1429
  }>;
1380
1430
  type CreateAccountSchemaType = z$1.infer<typeof createAccountSchema>;
1381
1431
 
@@ -1419,12 +1469,12 @@ declare const linkUserSchema: z$1.ZodObject<{
1419
1469
  role: z$1.ZodEnum<["admin"]>;
1420
1470
  }, "strip", z$1.ZodTypeAny, {
1421
1471
  name: string;
1422
- role: "admin";
1423
1472
  email: string;
1473
+ role: "admin";
1424
1474
  }, {
1425
1475
  name: string;
1426
- role: "admin";
1427
1476
  email: string;
1477
+ role: "admin";
1428
1478
  }>;
1429
1479
  declare const verifyUserEmailSchema: z$1.ZodObject<{
1430
1480
  email: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodString, string, string>, string, string>;
@@ -1466,13 +1516,13 @@ declare const createUserSchema: z$1.ZodObject<{
1466
1516
  role: z$1.ZodEnum<["admin"]>;
1467
1517
  }, "strip", z$1.ZodTypeAny, {
1468
1518
  name: string;
1469
- role: "admin";
1470
1519
  email: string;
1520
+ role: "admin";
1471
1521
  phoneNumber?: string | undefined;
1472
1522
  }, {
1473
1523
  name: string;
1474
- role: "admin";
1475
1524
  email: string;
1525
+ role: "admin";
1476
1526
  phoneNumber?: string | undefined;
1477
1527
  }>;
1478
1528
  declare const updateUserSchema: z$1.ZodObject<{