@tap-payments/os-micro-frontend-shared 0.0.30 → 0.0.31-dev-shared-migration-v1

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.
Files changed (81) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/Chip/Chip.d.ts +4 -0
  4. package/build/components/Chip/Chip.js +19 -0
  5. package/build/components/Chip/GroupIconChip.d.ts +3 -0
  6. package/build/components/Chip/GroupIconChip.js +11 -0
  7. package/build/components/Chip/GroupIconChips.d.ts +3 -0
  8. package/build/components/Chip/GroupIconChips.js +10 -0
  9. package/build/components/Chip/index.d.ts +4 -0
  10. package/build/components/Chip/index.js +4 -0
  11. package/build/components/Chip/style.d.ts +293 -0
  12. package/build/components/Chip/style.js +78 -0
  13. package/build/components/Chip/type.d.ts +13 -0
  14. package/build/components/Chip/type.js +1 -0
  15. package/build/components/MultiSelectDropdownButton/MultiSelectDropdownButton.js +3 -3
  16. package/build/components/TableHeader_V2/FiltersRow.d.ts +2 -0
  17. package/build/components/TableHeader_V2/FiltersRow.js +5 -0
  18. package/build/components/TableHeader_V2/TableHeader.d.ts +4 -0
  19. package/build/components/TableHeader_V2/TableHeader.js +7 -0
  20. package/build/components/TableHeader_V2/components/StatusButtons/ChevronIcon.d.ts +2 -0
  21. package/build/components/TableHeader_V2/components/StatusButtons/ChevronIcon.js +16 -0
  22. package/build/components/TableHeader_V2/components/StatusButtons/StatusButton.d.ts +3 -0
  23. package/build/components/TableHeader_V2/components/StatusButtons/StatusButton.js +54 -0
  24. package/build/components/TableHeader_V2/components/StatusButtons/StatusButtons.d.ts +11 -0
  25. package/build/components/TableHeader_V2/components/StatusButtons/StatusButtons.js +38 -0
  26. package/build/components/TableHeader_V2/components/StatusButtons/constant.d.ts +24 -0
  27. package/build/components/TableHeader_V2/components/StatusButtons/constant.js +25 -0
  28. package/build/components/TableHeader_V2/components/StatusButtons/index.d.ts +3 -0
  29. package/build/components/TableHeader_V2/components/StatusButtons/index.js +3 -0
  30. package/build/components/TableHeader_V2/components/StatusButtons/style.d.ts +35 -0
  31. package/build/components/TableHeader_V2/components/StatusButtons/style.js +74 -0
  32. package/build/components/TableHeader_V2/components/StatusButtons/type.d.ts +22 -0
  33. package/build/components/TableHeader_V2/components/StatusButtons/type.js +1 -0
  34. package/build/components/TableHeader_V2/components/TableView/CustomViews.d.ts +13 -0
  35. package/build/components/TableHeader_V2/components/TableView/CustomViews.js +78 -0
  36. package/build/components/TableHeader_V2/components/TableView/DefaultViews.d.ts +13 -0
  37. package/build/components/TableHeader_V2/components/TableView/DefaultViews.js +22 -0
  38. package/build/components/TableHeader_V2/components/TableView/TableView.d.ts +12 -0
  39. package/build/components/TableHeader_V2/components/TableView/TableView.js +55 -0
  40. package/build/components/TableHeader_V2/components/TableView/index.d.ts +3 -0
  41. package/build/components/TableHeader_V2/components/TableView/index.js +3 -0
  42. package/build/components/TableHeader_V2/components/TableView/style.d.ts +24 -0
  43. package/build/components/TableHeader_V2/components/TableView/style.js +102 -0
  44. package/build/components/TableHeader_V2/components/index.d.ts +2 -0
  45. package/build/components/TableHeader_V2/components/index.js +2 -0
  46. package/build/components/TableHeader_V2/data.d.ts +5 -0
  47. package/build/components/TableHeader_V2/data.js +7 -0
  48. package/build/components/TableHeader_V2/index.d.ts +5 -0
  49. package/build/components/TableHeader_V2/index.js +5 -0
  50. package/build/components/TableHeader_V2/style.d.ts +21 -0
  51. package/build/components/TableHeader_V2/style.js +43 -0
  52. package/build/components/TableHeader_V2/type.d.ts +67 -0
  53. package/build/components/TableHeader_V2/type.js +8 -0
  54. package/build/components/VirtualTable/components/ColumnFilter/ColumnFilter.js +16 -10
  55. package/build/components/VirtualTable/components/ColumnFilter/Inputs/Inputs.js +66 -14
  56. package/build/components/VirtualTable/components/ColumnFilter/List/List.js +1 -1
  57. package/build/components/VirtualTable/components/index.d.ts +1 -1
  58. package/build/components/VirtualTable/components/index.js +1 -1
  59. package/build/components/VirtualTable/index.d.ts +1 -0
  60. package/build/components/VirtualTable/index.js +1 -0
  61. package/build/components/index.d.ts +1 -1
  62. package/build/components/index.js +1 -1
  63. package/build/constants/api.d.ts +3 -0
  64. package/build/constants/api.js +3 -0
  65. package/build/constants/apps.d.ts +3 -0
  66. package/build/constants/apps.js +9 -1
  67. package/build/constants/assets.d.ts +8 -0
  68. package/build/constants/assets.js +8 -0
  69. package/build/constants/table/cell/index.d.ts +1 -0
  70. package/build/constants/table/cell/index.js +1 -0
  71. package/build/constants/table/cell/merchantsTableCellWidth.d.ts +6 -2
  72. package/build/constants/table/cell/merchantsTableCellWidth.js +6 -2
  73. package/build/constants/table/cell/terminalsTableCellWidth.d.ts +46 -0
  74. package/build/constants/table/cell/terminalsTableCellWidth.js +46 -0
  75. package/build/theme/palette.js +1 -0
  76. package/build/types/cell.d.ts +5 -1
  77. package/build/types/table.d.ts +17 -7
  78. package/build/utils/string.d.ts +1 -0
  79. package/build/utils/string.js +1 -0
  80. package/build/utils/table.js +3 -1
  81. package/package.json +130 -130
@@ -16,7 +16,7 @@ export declare const merchantsTableCellWidth: {
16
16
  readonly text: "120px";
17
17
  };
18
18
  readonly marketplace: {
19
- readonly default: "80px";
19
+ readonly default: "110px";
20
20
  readonly text: "110px";
21
21
  };
22
22
  readonly individuals: {
@@ -27,7 +27,7 @@ export declare const merchantsTableCellWidth: {
27
27
  readonly default: "95px";
28
28
  readonly text: "180px";
29
29
  };
30
- readonly application_status: {
30
+ readonly status: {
31
31
  readonly default: "80px";
32
32
  readonly text: "100px";
33
33
  };
@@ -39,4 +39,8 @@ export declare const merchantsTableCellWidth: {
39
39
  readonly default: "40px";
40
40
  readonly text: "40px";
41
41
  };
42
+ readonly user_name: {
43
+ readonly default: "150px";
44
+ readonly text: "180px";
45
+ };
42
46
  };
@@ -16,7 +16,7 @@ export const merchantsTableCellWidth = {
16
16
  text: '120px',
17
17
  },
18
18
  marketplace: {
19
- default: '80px',
19
+ default: '110px',
20
20
  text: '110px',
21
21
  },
22
22
  individuals: {
@@ -27,7 +27,7 @@ export const merchantsTableCellWidth = {
27
27
  default: '95px',
28
28
  text: '180px',
29
29
  },
30
- application_status: {
30
+ status: {
31
31
  default: '80px',
32
32
  text: '100px',
33
33
  },
@@ -39,4 +39,8 @@ export const merchantsTableCellWidth = {
39
39
  default: '40px',
40
40
  text: '40px',
41
41
  },
42
+ user_name: {
43
+ default: '150px',
44
+ text: '180px',
45
+ },
42
46
  };
@@ -0,0 +1,46 @@
1
+ export declare const terminalsTableCellWidth: {
2
+ readonly device: {
3
+ readonly default: "200px";
4
+ readonly text: "200px";
5
+ };
6
+ readonly merchantId: {
7
+ readonly default: "120px";
8
+ readonly text: "120px";
9
+ };
10
+ readonly type: {
11
+ readonly default: "80px";
12
+ readonly text: "80px";
13
+ };
14
+ readonly platform: {
15
+ readonly default: "120px";
16
+ readonly text: "120px";
17
+ };
18
+ readonly branding: {
19
+ readonly default: "120px";
20
+ readonly text: "120px";
21
+ };
22
+ readonly features: {
23
+ readonly default: "120px";
24
+ readonly text: "120px";
25
+ };
26
+ readonly acceptance: {
27
+ readonly default: "120px";
28
+ readonly text: "120px";
29
+ };
30
+ readonly brand: {
31
+ readonly default: "120px";
32
+ readonly text: "120px";
33
+ };
34
+ readonly address: {
35
+ readonly default: "120px";
36
+ readonly text: "120px";
37
+ };
38
+ readonly status: {
39
+ readonly default: "80px";
40
+ readonly text: "80px";
41
+ };
42
+ readonly actions: {
43
+ readonly default: "40px";
44
+ readonly text: "40px";
45
+ };
46
+ };
@@ -0,0 +1,46 @@
1
+ export const terminalsTableCellWidth = {
2
+ device: {
3
+ default: '200px',
4
+ text: '200px',
5
+ },
6
+ merchantId: {
7
+ default: '120px',
8
+ text: '120px',
9
+ },
10
+ type: {
11
+ default: '80px',
12
+ text: '80px',
13
+ },
14
+ platform: {
15
+ default: '120px',
16
+ text: '120px',
17
+ },
18
+ branding: {
19
+ default: '120px',
20
+ text: '120px',
21
+ },
22
+ features: {
23
+ default: '120px',
24
+ text: '120px',
25
+ },
26
+ acceptance: {
27
+ default: '120px',
28
+ text: '120px',
29
+ },
30
+ brand: {
31
+ default: '120px',
32
+ text: '120px',
33
+ },
34
+ address: {
35
+ default: '120px',
36
+ text: '120px',
37
+ },
38
+ status: {
39
+ default: '80px',
40
+ text: '80px',
41
+ },
42
+ actions: {
43
+ default: '40px',
44
+ text: '40px',
45
+ },
46
+ };
@@ -30,6 +30,7 @@ export const lightPalette = {
30
30
  A200: '#000014',
31
31
  A400: '#C1C1C1',
32
32
  A700: '#818181',
33
+ A800: '#1F222A',
33
34
  },
34
35
  primary: {
35
36
  light: '#FCFCFC',
@@ -1,4 +1,4 @@
1
- import { authenticationsTableCellWidth, authorizationTableCellWidth, walletTableCellWidth, walletStatementTableCellWidth, walletDetailsTableCellWidth, topupsTableCellWidth, tokensTableCellWidth, refundTableCellWidth, protectChargesTableCellWidth, payoutsTableCellWidth, ordersTableCellWidth, invoicesTableCellWidth, leadsTableCellWidth, intentsTableCellWidth, chargeTableCellWidth, protectAuthorizationsTableCellWidth, destinationsTableCellWidth, merchantsTableCellWidth } from '../constants/index.js';
1
+ import { authenticationsTableCellWidth, authorizationTableCellWidth, walletTableCellWidth, walletStatementTableCellWidth, walletDetailsTableCellWidth, topupsTableCellWidth, tokensTableCellWidth, refundTableCellWidth, protectChargesTableCellWidth, payoutsTableCellWidth, ordersTableCellWidth, invoicesTableCellWidth, leadsTableCellWidth, intentsTableCellWidth, chargeTableCellWidth, protectAuthorizationsTableCellWidth, destinationsTableCellWidth, merchantsTableCellWidth, terminalsTableCellWidth } from '../constants/index.js';
2
2
  import { IVirtualTable } from './index.js';
3
3
  export type AuthenticationsTableCellID = keyof typeof authenticationsTableCellWidth;
4
4
  export type AuthorizationTableCellID = keyof typeof authorizationTableCellWidth;
@@ -18,6 +18,7 @@ export type ChargeTableCellID = keyof typeof chargeTableCellWidth;
18
18
  export type ProtectAuthorizationsTableCellID = keyof typeof protectAuthorizationsTableCellWidth;
19
19
  export type DestinationsTableCellID = keyof typeof destinationsTableCellWidth;
20
20
  export type MerchantsTableCellID = keyof typeof merchantsTableCellWidth;
21
+ export type TerminalsTableCellID = keyof typeof terminalsTableCellWidth;
21
22
  export type TableCellWidthProps = {
22
23
  tableMode: NonNullable<IVirtualTable['tableMode']>;
23
24
  } & ({
@@ -74,4 +75,7 @@ export type TableCellWidthProps = {
74
75
  } | {
75
76
  table: 'merchants';
76
77
  cellID: MerchantsTableCellID;
78
+ } | {
79
+ table: 'terminals';
80
+ cellID: TerminalsTableCellID;
77
81
  });
@@ -3,6 +3,7 @@ import { BoxProps } from '@mui/material/Box';
3
3
  import { TableHeadProps } from '@mui/material/TableHead';
4
4
  import { TableRowProps } from '@mui/material/TableRow';
5
5
  import { DragControls } from 'framer-motion';
6
+ import { Country } from './appConfig';
6
7
  import { SortingOrder } from './sort';
7
8
  export interface TableFilters<T> {
8
9
  order: string;
@@ -71,10 +72,13 @@ export interface IColumnFilterOption {
71
72
  value: unknown;
72
73
  setValue: (value: unknown) => void;
73
74
  isDisabled?: boolean;
74
- getInputValue: (key: string) => string;
75
- isInputHasValue: boolean;
76
- onClickReset: () => void;
75
+ getInputValue: (key: string, type?: string) => string;
76
+ isInputHasValue: (key: string, type?: string) => boolean;
77
+ onClickReset: (key: string, type?: string) => void;
77
78
  }) => React.ReactNode;
79
+ type?: 'text' | 'phone';
80
+ countries?: Country[];
81
+ isCountriesLoading?: boolean;
78
82
  }
79
83
  export type IColumnListFilterOption = Omit<IColumnFilterOption, 'apiKey' | 'options'> & {
80
84
  value: string;
@@ -88,6 +92,8 @@ export interface IColumnFilterList {
88
92
  export interface IColumnFilterInputs {
89
93
  type: 'inputs';
90
94
  options?: IColumnFilterOption[];
95
+ countries?: Country[];
96
+ isCountriesLoading?: boolean;
91
97
  }
92
98
  export interface IColumnFilterCustom {
93
99
  type: 'custom';
@@ -127,9 +133,13 @@ export interface IVirtualTable<R = any> {
127
133
  };
128
134
  dragControls?: DragControls;
129
135
  }
130
- export type IColumnFilter = {
131
- onConfirm?: (filterValues: Record<string, string> | Record<string, string[]>) => void;
136
+ export type ColumnFilterValues = Record<string, string | string[] | {
137
+ phone: string;
138
+ country: Country | undefined;
139
+ }>;
140
+ export type IColumnFilter = ({
141
+ onConfirm?: (filterValues: ColumnFilterValues) => void;
132
142
  onClear: (apiKeys: string[]) => void;
133
- data?: Record<string, string> | Record<string, string[]>;
143
+ data?: ColumnFilterValues;
134
144
  isOnlyOneFilter?: boolean;
135
- } & (IColumnFilterList | IColumnFilterInputs | IColumnFilterCustom);
145
+ } & (IColumnFilterList | IColumnFilterInputs | IColumnFilterCustom));
@@ -6,3 +6,4 @@ export declare const generateUniqueUUID: () => `${string}-${string}-${string}-${
6
6
  export declare const copyText: (text: string) => void;
7
7
  export declare const capitalizeFirstLetter: (text: string) => string;
8
8
  export declare const percentageToNumber: (percentageStr: string) => number;
9
+ export declare const maskValue: (value: string) => string;
@@ -51,3 +51,4 @@ export const percentageToNumber = (percentageStr) => {
51
51
  const [number] = percentageStr.split('%');
52
52
  return parseFloat(number) || 0;
53
53
  };
54
+ export const maskValue = (value) => `••• ${value.slice(-4)}`;
@@ -1,4 +1,4 @@
1
- import { walletDetailsTableCellWidth, authenticationsTableCellWidth, authorizationTableCellWidth, chargeTableCellWidth, destinationsTableCellWidth, intentsTableCellWidth, invoicesTableCellWidth, leadsTableCellWidth, ordersTableCellWidth, payoutsTableCellWidth, protectChargesTableCellWidth, protectAuthorizationsTableCellWidth, refundTableCellWidth, tokensTableCellWidth, walletStatementTableCellWidth, topupsTableCellWidth, walletTableCellWidth, TABLE_CONTENT_ROW_HEIGHT, TABLE_LOADING_ROW_HEIGHT, TABLE_ROW_HEIGHT, merchantsTableCellWidth, } from '../constants/index.js';
1
+ import { walletDetailsTableCellWidth, authenticationsTableCellWidth, authorizationTableCellWidth, chargeTableCellWidth, destinationsTableCellWidth, intentsTableCellWidth, invoicesTableCellWidth, leadsTableCellWidth, ordersTableCellWidth, payoutsTableCellWidth, protectChargesTableCellWidth, protectAuthorizationsTableCellWidth, refundTableCellWidth, tokensTableCellWidth, walletStatementTableCellWidth, topupsTableCellWidth, walletTableCellWidth, TABLE_CONTENT_ROW_HEIGHT, TABLE_LOADING_ROW_HEIGHT, TABLE_ROW_HEIGHT, merchantsTableCellWidth, terminalsTableCellWidth, } from '../constants/index.js';
2
2
  export const getColumnWidthPercentage = (widthInPx, options) => {
3
3
  const { isFirst, isLast } = options || {};
4
4
  const paddingInPx = isFirst || isLast ? 0 : 0;
@@ -43,6 +43,8 @@ export const getCellWidth = ({ table, cellID, tableMode }) => {
43
43
  return walletStatementTableCellWidth[cellID][tableMode];
44
44
  case 'merchants':
45
45
  return merchantsTableCellWidth[cellID][tableMode];
46
+ case 'terminals':
47
+ return terminalsTableCellWidth[cellID][tableMode];
46
48
  default:
47
49
  return '100px';
48
50
  }
package/package.json CHANGED
@@ -1,130 +1,130 @@
1
- {
2
- "name": "@tap-payments/os-micro-frontend-shared",
3
- "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.0.30",
5
- "type": "module",
6
- "main": "build/index.js",
7
- "module": "build/index.js",
8
- "types": "build/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "import": "./build/index.js",
12
- "require": "./build/index.js",
13
- "types": "./build/index.d.ts"
14
- },
15
- "./constants": {
16
- "import": "./build/constants/index.js",
17
- "require": "./build/constants/index.js",
18
- "types": "./build/constants/index.d.ts"
19
- },
20
- "./components": {
21
- "import": "./build/components/index.js",
22
- "require": "./build/components/index.js",
23
- "types": "./build/components/index.d.ts"
24
- },
25
- "./components/*": {
26
- "import": "./build/components/*",
27
- "require": "./build/components/*",
28
- "types": "./build/components/*"
29
- },
30
- "./hooks": {
31
- "import": "./build/hooks/index.js",
32
- "require": "./build/hooks/index.js",
33
- "types": "./build/hooks/index.d.ts"
34
- },
35
- "./utils": {
36
- "import": "./build/utils/index.js",
37
- "require": "./build/utils/index.js",
38
- "types": "./build/utils/index.d.ts"
39
- },
40
- "./theme": {
41
- "import": "./build/theme/index.js",
42
- "require": "./build/theme/index.js",
43
- "types": "./build/theme/index.d.ts"
44
- },
45
- "./types": {
46
- "import": "./build/types/index.js",
47
- "require": "./build/types/index.js",
48
- "types": "./build/types/index.d.ts"
49
- }
50
- },
51
- "license": "MIT",
52
- "author": {
53
- "name": "Ahmed Sharkawy",
54
- "email": "a.elsharkawy@tap.company"
55
- },
56
- "files": [
57
- "build",
58
- "readme.md"
59
- ],
60
- "scripts": {
61
- "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
62
- "push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
63
- "dev": "vite",
64
- "build": "tsc -b && vite build ",
65
- "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
66
- "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
67
- "lint": "eslint . --color",
68
- "lint:fix": "eslint src --fix --color",
69
- "preview": "vite preview",
70
- "prepare": "husky"
71
- },
72
- "dependencies": {
73
- "@emotion/react": "^11.11.0",
74
- "@emotion/styled": "^11.11.0",
75
- "@hookform/resolvers": "^3.3.1",
76
- "@mui/material": "^5.12.3",
77
- "@uiw/react-json-view": "^2.0.0-alpha.16",
78
- "axios": "^1.4.0",
79
- "dayjs": "^1.11.8",
80
- "framer-motion": "10.11.0",
81
- "i18next": "^22.4.15",
82
- "memoize-one": "^6.0.0",
83
- "re-resizable": "^6.9.9",
84
- "react": "^18.2.0",
85
- "react-currency-input-field": "^3.6.11",
86
- "react-dom": "^18.2.0",
87
- "react-draggable": "^4.4.6",
88
- "react-dropzone": "^14.2.3",
89
- "react-hook-form": "^7.45.4",
90
- "react-hot-toast": "^2.4.1",
91
- "react-i18next": "^12.2.2",
92
- "react-multi-date-picker": "^4.1.2",
93
- "react-router-dom": "^6.14.2",
94
- "react-virtualized-auto-sizer": "^1.0.20",
95
- "react-window": "^1.8.9",
96
- "react-window-infinite-loader": "^1.0.9",
97
- "react18-input-otp": "^1.1.4",
98
- "recharts": "^2.15.1"
99
- },
100
- "devDependencies": {
101
- "@eslint/js": "^9.17.0",
102
- "@testing-library/jest-dom": "^5.16.5",
103
- "@types/lodash": "^4.17.15",
104
- "@types/react": "^18.2.6",
105
- "@types/react-dom": "^18.3.5",
106
- "@types/react-virtualized-auto-sizer": "^1.0.8",
107
- "@types/react-window": "^1.8.5",
108
- "@types/react-window-infinite-loader": "^1.0.6",
109
- "@vitejs/plugin-react": "^4.3.4",
110
- "eslint": "^9.17.0",
111
- "eslint-plugin-react-hooks": "^5.0.0",
112
- "eslint-plugin-react-refresh": "^0.4.16",
113
- "globals": "^15.14.0",
114
- "husky": "^8.0.3",
115
- "lint-staged": "^13.2.2",
116
- "prettier": "^2.8.8",
117
- "tsc-alias": "^1.8.16",
118
- "typescript": "5.0.2",
119
- "typescript-eslint": "^8.18.2",
120
- "vite": "6.0.5",
121
- "vite-plugin-svgr": "^4.3.0",
122
- "vite-tsconfig-paths": "^4.2.0"
123
- },
124
- "lint-staged": {
125
- "src/**/*.{ts,tsx,json,js,jsx}": [
126
- "yarn run prettier:fix",
127
- "yarn run lint"
128
- ]
129
- }
130
- }
1
+ {
2
+ "name": "@tap-payments/os-micro-frontend-shared",
3
+ "description": "Shared components and utilities for Tap Payments micro frontends",
4
+ "version": "0.0.31-dev-shared-migration-v1",
5
+ "type": "module",
6
+ "main": "build/index.js",
7
+ "module": "build/index.js",
8
+ "types": "build/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./build/index.js",
12
+ "require": "./build/index.js",
13
+ "types": "./build/index.d.ts"
14
+ },
15
+ "./constants": {
16
+ "import": "./build/constants/index.js",
17
+ "require": "./build/constants/index.js",
18
+ "types": "./build/constants/index.d.ts"
19
+ },
20
+ "./components": {
21
+ "import": "./build/components/index.js",
22
+ "require": "./build/components/index.js",
23
+ "types": "./build/components/index.d.ts"
24
+ },
25
+ "./components/*": {
26
+ "import": "./build/components/*/index.js",
27
+ "require": "./build/components/*/index.js",
28
+ "types": "./build/components/*/index.d.ts"
29
+ },
30
+ "./hooks": {
31
+ "import": "./build/hooks/index.js",
32
+ "require": "./build/hooks/index.js",
33
+ "types": "./build/hooks/index.d.ts"
34
+ },
35
+ "./utils": {
36
+ "import": "./build/utils/index.js",
37
+ "require": "./build/utils/index.js",
38
+ "types": "./build/utils/index.d.ts"
39
+ },
40
+ "./theme": {
41
+ "import": "./build/theme/index.js",
42
+ "require": "./build/theme/index.js",
43
+ "types": "./build/theme/index.d.ts"
44
+ },
45
+ "./types": {
46
+ "import": "./build/types/index.js",
47
+ "require": "./build/types/index.js",
48
+ "types": "./build/types/index.d.ts"
49
+ }
50
+ },
51
+ "license": "MIT",
52
+ "author": {
53
+ "name": "Ahmed Sharkawy",
54
+ "email": "a.elsharkawy@tap.company"
55
+ },
56
+ "files": [
57
+ "build",
58
+ "readme.md"
59
+ ],
60
+ "scripts": {
61
+ "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
62
+ "push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
63
+ "dev": "vite",
64
+ "build": "tsc -b && vite build ",
65
+ "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
66
+ "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
67
+ "lint": "eslint . --color",
68
+ "lint:fix": "eslint src --fix --color",
69
+ "preview": "vite preview",
70
+ "prepare": "husky"
71
+ },
72
+ "dependencies": {
73
+ "@emotion/react": "^11.11.0",
74
+ "@emotion/styled": "^11.11.0",
75
+ "@hookform/resolvers": "^3.3.1",
76
+ "@mui/material": "^5.12.3",
77
+ "@uiw/react-json-view": "^2.0.0-alpha.16",
78
+ "axios": "^1.4.0",
79
+ "dayjs": "^1.11.8",
80
+ "framer-motion": "10.11.0",
81
+ "i18next": "^22.4.15",
82
+ "memoize-one": "^6.0.0",
83
+ "re-resizable": "^6.9.9",
84
+ "react": "^18.2.0",
85
+ "react-currency-input-field": "^3.6.11",
86
+ "react-dom": "^18.2.0",
87
+ "react-draggable": "^4.4.6",
88
+ "react-dropzone": "^14.2.3",
89
+ "react-hook-form": "^7.45.4",
90
+ "react-hot-toast": "^2.4.1",
91
+ "react-i18next": "^12.2.2",
92
+ "react-multi-date-picker": "^4.1.2",
93
+ "react-router-dom": "^6.14.2",
94
+ "react-virtualized-auto-sizer": "^1.0.20",
95
+ "react-window": "^1.8.9",
96
+ "react-window-infinite-loader": "^1.0.9",
97
+ "react18-input-otp": "^1.1.4",
98
+ "recharts": "^2.15.1"
99
+ },
100
+ "devDependencies": {
101
+ "@eslint/js": "^9.17.0",
102
+ "@testing-library/jest-dom": "^5.16.5",
103
+ "@types/lodash": "^4.17.15",
104
+ "@types/react": "^18.2.6",
105
+ "@types/react-dom": "^18.3.5",
106
+ "@types/react-virtualized-auto-sizer": "^1.0.8",
107
+ "@types/react-window": "^1.8.5",
108
+ "@types/react-window-infinite-loader": "^1.0.6",
109
+ "@vitejs/plugin-react": "^4.3.4",
110
+ "eslint": "^9.17.0",
111
+ "eslint-plugin-react-hooks": "^5.0.0",
112
+ "eslint-plugin-react-refresh": "^0.4.16",
113
+ "globals": "^15.14.0",
114
+ "husky": "^8.0.3",
115
+ "lint-staged": "^13.2.2",
116
+ "prettier": "^2.8.8",
117
+ "tsc-alias": "^1.8.16",
118
+ "typescript": "5.0.2",
119
+ "typescript-eslint": "^8.18.2",
120
+ "vite": "6.0.5",
121
+ "vite-plugin-svgr": "^4.3.0",
122
+ "vite-tsconfig-paths": "^4.2.0"
123
+ },
124
+ "lint-staged": {
125
+ "src/**/*.{ts,tsx,json,js,jsx}": [
126
+ "yarn run prettier:fix",
127
+ "yarn run lint"
128
+ ]
129
+ }
130
+ }