@tap-payments/os-micro-frontend-shared 0.0.129-sheetview-component-ui-v1 → 0.0.130

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 (89) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/DeviceIcon/DeviceIcon.d.ts +1 -3
  4. package/build/components/DeviceIcon/DeviceIcon.js +3 -3
  5. package/build/components/DeviceIcon/style.d.ts +1 -4
  6. package/build/components/DeviceIcon/style.js +1 -4
  7. package/build/components/StatusButton/StatusButton.js +4 -10
  8. package/build/components/StatusIcons/AuthorizedIcon/AuthorizedIcon.d.ts +1 -3
  9. package/build/components/StatusIcons/AuthorizedIcon/AuthorizedIcon.js +4 -4
  10. package/build/components/StatusIcons/DeviceIcon/DeviceIcon.d.ts +1 -3
  11. package/build/components/StatusIcons/DeviceIcon/DeviceIcon.js +2 -2
  12. package/build/components/StatusIcons/IssuerIcon/IssuerIcon.d.ts +1 -1
  13. package/build/components/StatusIcons/IssuerIcon/IssuerIcon.js +2 -2
  14. package/build/components/StatusIcons/IssuerIcon/style.d.ts +1 -4
  15. package/build/components/StatusIcons/IssuerIcon/style.js +4 -3
  16. package/build/components/StatusIcons/IssuerIcon/type.d.ts +0 -2
  17. package/build/components/TableCells/CustomCells/ActionCell/ActionCell.d.ts +1 -3
  18. package/build/components/TableCells/CustomCells/ActionCell/ActionCell.js +4 -5
  19. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -4
  20. package/build/components/TableCells/CustomCells/ActionCell/style.js +2 -4
  21. package/build/components/TableCells/CustomCells/AmountCell/AmountCell.d.ts +1 -1
  22. package/build/components/TableCells/CustomCells/AmountCell/AmountCell.js +2 -2
  23. package/build/components/TableCells/CustomCells/AmountCell/style.d.ts +2 -7
  24. package/build/components/TableCells/CustomCells/AmountCell/style.js +4 -4
  25. package/build/components/TableCells/CustomCells/CustomerCell/CustomerCell.d.ts +1 -1
  26. package/build/components/TableCells/CustomCells/CustomerCell/CustomerCell.js +2 -2
  27. package/build/components/TableCells/CustomCells/CustomerCell/style.d.ts +1 -4
  28. package/build/components/TableCells/CustomCells/CustomerCell/style.js +7 -3
  29. package/build/components/TableCells/CustomCells/DateCell/DateCell.d.ts +1 -1
  30. package/build/components/TableCells/CustomCells/DateCell/DateCell.js +2 -3
  31. package/build/components/TableCells/CustomCells/DestinationCell/DestinationCell.d.ts +1 -1
  32. package/build/components/TableCells/CustomCells/DestinationCell/DestinationCell.js +2 -3
  33. package/build/components/TableCells/CustomCells/DestinationCell/styled.d.ts +1 -4
  34. package/build/components/TableCells/CustomCells/DestinationCell/styled.js +2 -4
  35. package/build/components/TableCells/CustomCells/OrderCell/OrderCell.d.ts +1 -1
  36. package/build/components/TableCells/CustomCells/OrderCell/OrderCell.js +1 -4
  37. package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCell.d.ts +1 -2
  38. package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCell.js +2 -5
  39. package/build/components/TableCells/CustomCells/ReferenceCell/ReferenceCell.d.ts +1 -1
  40. package/build/components/TableCells/CustomCells/ReferenceCell/ReferenceCell.js +2 -11
  41. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -2
  42. package/build/components/TableCells/CustomCells/ReferenceCell/style.js +0 -7
  43. package/build/components/TableCells/CustomCells/ReferenceCell/type.d.ts +2 -5
  44. package/build/components/TableCells/CustomCells/SourceMergedCell/SourceMergedCell.d.ts +1 -1
  45. package/build/components/TableCells/CustomCells/SourceMergedCell/SourceMergedCell.js +3 -13
  46. package/build/components/TableCells/CustomCells/SourceMergedCell/style.d.ts +0 -3
  47. package/build/components/TableCells/CustomCells/SourceMergedCell/style.js +0 -19
  48. package/build/components/TableCells/CustomCells/SourceMergedCell/type.d.ts +1 -2
  49. package/build/components/TableCells/CustomCells/StatusCell/StatusCell.d.ts +1 -1
  50. package/build/components/TableCells/CustomCells/StatusCell/StatusCell.js +2 -6
  51. package/build/components/TableCells/CustomCells/StatusCell/style.js +0 -1
  52. package/build/components/TableCells/CustomCells/StatusCell/type.d.ts +0 -1
  53. package/build/components/TableCells/CustomCells/index.d.ts +0 -1
  54. package/build/components/TableCells/CustomCells/index.js +0 -1
  55. package/build/components/TableCells/CustomCells/style.d.ts +1 -4
  56. package/build/components/TableCells/CustomCells/style.js +9 -6
  57. package/build/components/TableCells/CustomCells/type.d.ts +1 -6
  58. package/build/components/VirtualTable/SheetView/SheetViewVirtualTable.d.ts +1 -1
  59. package/build/components/VirtualTable/SheetView/SheetViewVirtualTable.js +1 -1
  60. package/build/components/VirtualTable/components/TableRowLoading.js +0 -1
  61. package/build/components/VirtualTable/style.js +3 -3
  62. package/build/components/index.d.ts +0 -2
  63. package/build/components/index.js +0 -2
  64. package/build/constants/assets.d.ts +0 -1
  65. package/build/constants/assets.js +0 -1
  66. package/build/constants/table/cell/chargeTableCellWidth.d.ts +14 -14
  67. package/build/constants/table/cell/chargeTableCellWidth.js +14 -14
  68. package/build/types/table.d.ts +1 -2
  69. package/package.json +132 -132
  70. package/build/components/MaskedText/MaskedText.d.ts +0 -3
  71. package/build/components/MaskedText/MaskedText.js +0 -11
  72. package/build/components/MaskedText/index.d.ts +0 -3
  73. package/build/components/MaskedText/index.js +0 -2
  74. package/build/components/MaskedText/type.d.ts +0 -7
  75. package/build/components/MaskedText/type.js +0 -1
  76. package/build/components/StatusChip/StatusChip.d.ts +0 -4
  77. package/build/components/StatusChip/StatusChip.js +0 -19
  78. package/build/components/StatusChip/index.d.ts +0 -3
  79. package/build/components/StatusChip/index.js +0 -2
  80. package/build/components/StatusChip/style.d.ts +0 -14
  81. package/build/components/StatusChip/style.js +0 -32
  82. package/build/components/StatusChip/type.d.ts +0 -9
  83. package/build/components/StatusChip/type.js +0 -1
  84. package/build/components/TableCells/CustomCells/SheetViewIDButton/SheetViewIDButton.d.ts +0 -7
  85. package/build/components/TableCells/CustomCells/SheetViewIDButton/SheetViewIDButton.js +0 -35
  86. package/build/components/TableCells/CustomCells/SheetViewIDButton/index.d.ts +0 -1
  87. package/build/components/TableCells/CustomCells/SheetViewIDButton/index.js +0 -1
  88. package/build/components/TableCells/CustomCells/SheetViewIDButton/style.d.ts +0 -3
  89. package/build/components/TableCells/CustomCells/SheetViewIDButton/style.js +0 -22
@@ -12,7 +12,7 @@ export const chargeTableCellWidth = {
12
12
  id: {
13
13
  default: '225px',
14
14
  text: '225px',
15
- sheet: '215px',
15
+ sheet: '225px',
16
16
  },
17
17
  product: {
18
18
  default: '85px',
@@ -22,12 +22,12 @@ export const chargeTableCellWidth = {
22
22
  date: {
23
23
  default: '170px',
24
24
  text: '170px',
25
- sheet: '129px',
25
+ sheet: '170px',
26
26
  },
27
27
  reference: {
28
28
  default: '95px',
29
29
  text: '180px',
30
- sheet: '550px',
30
+ sheet: '180px',
31
31
  },
32
32
  order: {
33
33
  default: '80px',
@@ -37,12 +37,12 @@ export const chargeTableCellWidth = {
37
37
  customer: {
38
38
  default: '180px',
39
39
  text: '180px',
40
- sheet: '115px',
40
+ sheet: '180px',
41
41
  },
42
42
  source: {
43
43
  default: '114px',
44
44
  text: '125px',
45
- sheet: '450px',
45
+ sheet: '125px',
46
46
  },
47
47
  authenticate: {
48
48
  default: '55px',
@@ -57,7 +57,7 @@ export const chargeTableCellWidth = {
57
57
  amount: {
58
58
  default: '170px',
59
59
  text: '195px',
60
- sheet: '141px',
60
+ sheet: '195px',
61
61
  },
62
62
  destinations: {
63
63
  default: '70px',
@@ -72,12 +72,12 @@ export const chargeTableCellWidth = {
72
72
  status: {
73
73
  default: '70px',
74
74
  text: '300px',
75
- sheet: '400px',
75
+ sheet: '300px',
76
76
  },
77
77
  merchant: {
78
78
  default: '100px',
79
79
  text: '150px',
80
- sheet: '115px',
80
+ sheet: '150px',
81
81
  },
82
82
  charge: {
83
83
  default: '150px',
@@ -97,7 +97,7 @@ export const chargeTableCellWidth = {
97
97
  receipt: {
98
98
  default: '85px',
99
99
  text: '150px',
100
- sheet: '131px',
100
+ sheet: '150px',
101
101
  },
102
102
  fees: {
103
103
  default: '150px',
@@ -107,7 +107,7 @@ export const chargeTableCellWidth = {
107
107
  metadata: {
108
108
  default: '180px',
109
109
  text: '180px',
110
- sheet: '235px',
110
+ sheet: '180px',
111
111
  },
112
112
  settlement: {
113
113
  default: '200px',
@@ -122,7 +122,7 @@ export const chargeTableCellWidth = {
122
122
  actions: {
123
123
  default: '100px',
124
124
  text: '100px',
125
- sheet: '315px',
125
+ sheet: '100px',
126
126
  },
127
127
  payment_id: {
128
128
  default: '150px',
@@ -132,7 +132,7 @@ export const chargeTableCellWidth = {
132
132
  card_number: {
133
133
  default: '120px',
134
134
  text: '120px',
135
- sheet: '190px',
135
+ sheet: '120px',
136
136
  },
137
137
  auth_code: {
138
138
  default: '80px',
@@ -142,7 +142,7 @@ export const chargeTableCellWidth = {
142
142
  rrn: {
143
143
  default: '100px',
144
144
  text: '100px',
145
- sheet: '83px',
145
+ sheet: '100px',
146
146
  },
147
147
  device: {
148
148
  default: '70px',
@@ -152,7 +152,7 @@ export const chargeTableCellWidth = {
152
152
  card_no: {
153
153
  default: '120px',
154
154
  text: '120px',
155
- sheet: '190px',
155
+ sheet: '120px',
156
156
  },
157
157
  meta: {
158
158
  default: '52px',
@@ -93,7 +93,6 @@ export interface IColumnFilterCustom {
93
93
  render: (v: any) => JSX.Element;
94
94
  }
95
95
  export type AnimationType = false | 'pulse' | 'wave' | undefined;
96
- export type TableMode = 'sheet' | 'text' | 'default';
97
96
  export interface IVirtualTable<R = any> {
98
97
  rows: R[];
99
98
  columns: Array<IColumnProps<R>>;
@@ -118,7 +117,7 @@ export interface IVirtualTable<R = any> {
118
117
  areAllRowsLoaded?: boolean;
119
118
  tableBodyStyles?: React.CSSProperties;
120
119
  isTextShown?: boolean;
121
- tableMode?: TableMode;
120
+ tableMode?: 'default' | 'text' | 'sheet';
122
121
  tableTitle?: string;
123
122
  dimensions?: {
124
123
  height: string | number;
package/package.json CHANGED
@@ -1,132 +1,132 @@
1
- {
2
- "name": "@tap-payments/os-micro-frontend-shared",
3
- "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.0.129-sheetview-component-ui-v1",
5
- "type": "module",
6
- "main": "build/index.js",
7
- "module": "build/index.js",
8
- "types": "build/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./build/index.d.ts",
12
- "import": "./build/index.js",
13
- "require": "./build/index.js"
14
- },
15
- "./constants": {
16
- "types": "./build/constants/index.d.ts",
17
- "import": "./build/constants/index.js",
18
- "require": "./build/constants/index.js"
19
- },
20
- "./components": {
21
- "types": "./build/components/index.d.ts",
22
- "import": "./build/components/index.js",
23
- "require": "./build/components/index.js"
24
- },
25
- "./components/*": {
26
- "types": "./build/components/*/index.d.ts",
27
- "import": "./build/components/*/index.js",
28
- "require": "./build/components/*/index.js"
29
- },
30
- "./hooks": {
31
- "types": "./build/hooks/index.d.ts",
32
- "import": "./build/hooks/index.js",
33
- "require": "./build/hooks/index.js"
34
- },
35
- "./utils": {
36
- "types": "./build/utils/index.d.ts",
37
- "import": "./build/utils/index.js",
38
- "require": "./build/utils/index.js"
39
- },
40
- "./theme": {
41
- "types": "./build/theme/index.d.ts",
42
- "import": "./build/theme/index.js",
43
- "require": "./build/theme/index.js"
44
- },
45
- "./types": {
46
- "types": "./build/types/index.d.ts",
47
- "import": "./build/types/index.js",
48
- "require": "./build/types/index.js"
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-tsconfig-paths": "^4.2.0"
122
- },
123
- "lint-staged": {
124
- "src/**/*.{ts,tsx,json,js,jsx}": [
125
- "yarn run prettier:fix",
126
- "yarn run lint"
127
- ]
128
- },
129
- "publishConfig": {
130
- "registry": "https://registry.npmjs.org/"
131
- }
132
- }
1
+ {
2
+ "name": "@tap-payments/os-micro-frontend-shared",
3
+ "description": "Shared components and utilities for Tap Payments micro frontends",
4
+ "version": "0.0.130",
5
+ "type": "module",
6
+ "main": "build/index.js",
7
+ "module": "build/index.js",
8
+ "types": "build/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./build/index.d.ts",
12
+ "import": "./build/index.js",
13
+ "require": "./build/index.js"
14
+ },
15
+ "./constants": {
16
+ "types": "./build/constants/index.d.ts",
17
+ "import": "./build/constants/index.js",
18
+ "require": "./build/constants/index.js"
19
+ },
20
+ "./components": {
21
+ "types": "./build/components/index.d.ts",
22
+ "import": "./build/components/index.js",
23
+ "require": "./build/components/index.js"
24
+ },
25
+ "./components/*": {
26
+ "types": "./build/components/*/index.d.ts",
27
+ "import": "./build/components/*/index.js",
28
+ "require": "./build/components/*/index.js"
29
+ },
30
+ "./hooks": {
31
+ "types": "./build/hooks/index.d.ts",
32
+ "import": "./build/hooks/index.js",
33
+ "require": "./build/hooks/index.js"
34
+ },
35
+ "./utils": {
36
+ "types": "./build/utils/index.d.ts",
37
+ "import": "./build/utils/index.js",
38
+ "require": "./build/utils/index.js"
39
+ },
40
+ "./theme": {
41
+ "types": "./build/theme/index.d.ts",
42
+ "import": "./build/theme/index.js",
43
+ "require": "./build/theme/index.js"
44
+ },
45
+ "./types": {
46
+ "types": "./build/types/index.d.ts",
47
+ "import": "./build/types/index.js",
48
+ "require": "./build/types/index.js"
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-tsconfig-paths": "^4.2.0"
122
+ },
123
+ "lint-staged": {
124
+ "src/**/*.{ts,tsx,json,js,jsx}": [
125
+ "yarn run prettier:fix",
126
+ "yarn run lint"
127
+ ]
128
+ },
129
+ "publishConfig": {
130
+ "registry": "https://registry.npmjs.org/"
131
+ }
132
+ }
@@ -1,3 +0,0 @@
1
- import { MaskedTextProps } from './type';
2
- declare const MaskedText: ({ text, startLength, endLength }: MaskedTextProps) => import("react/jsx-runtime").JSX.Element;
3
- export default MaskedText;
@@ -1,11 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import StatusChip from '../StatusChip';
3
- import { Box, useTheme } from '@mui/material';
4
- import { passwordDotsIcon } from '../../constants/index.js';
5
- const MaskedText = ({ text, startLength = 8, endLength = 4 }) => {
6
- const theme = useTheme();
7
- const startText = text.slice(0, startLength);
8
- const endText = text.slice(text.length - endLength);
9
- return (_jsxs(Box, Object.assign({ sx: { display: 'flex', alignItems: 'center', gap: theme.spacing(0.5) } }, { children: [_jsx(StatusChip, Object.assign({ bgColor: "#EFF1F2", borderColor: "transparent", textColor: theme.palette.text.primary }, { children: startText })), _jsx("img", { src: passwordDotsIcon, alt: "passwordDots" }), _jsx(StatusChip, Object.assign({ bgColor: "#EFF1F2", borderColor: "transparent", textColor: theme.palette.text.primary }, { children: endText }))] })));
10
- };
11
- export default MaskedText;
@@ -1,3 +0,0 @@
1
- import MaskedText from './MaskedText';
2
- export type { MaskedTextProps } from './type';
3
- export default MaskedText;
@@ -1,2 +0,0 @@
1
- import MaskedText from './MaskedText';
2
- export default MaskedText;
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface MaskedTextProps {
3
- text: string;
4
- startLength?: number;
5
- endLength?: number;
6
- separator?: ReactNode;
7
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { ChipProps } from './type';
3
- declare const StatusChip: import("react").ForwardRefExoticComponent<Omit<ChipProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
4
- export default StatusChip;
@@ -1,19 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { forwardRef } from 'react';
14
- import { ChipStyled } from './style';
15
- const StatusChip = forwardRef((_a, ref) => {
16
- var { children } = _a, props = __rest(_a, ["children"]);
17
- return (_jsx(ChipStyled, Object.assign({ ref: ref }, props, { children: children })));
18
- });
19
- export default StatusChip;
@@ -1,3 +0,0 @@
1
- import StatusChip from './StatusChip';
2
- export type { ChipProps as StatusChipProps } from './type';
3
- export default StatusChip;
@@ -1,2 +0,0 @@
1
- import StatusChip from './StatusChip';
2
- export default StatusChip;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
5
- textColor?: string | undefined;
6
- bgColor?: string | undefined;
7
- borderColor?: string | undefined;
8
- disabled?: boolean | undefined;
9
- padding?: string | undefined;
10
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
12
- }, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
13
- children?: import("react").ReactNode;
14
- }, {}, {}>;
@@ -1,32 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import { Box, styled } from '@mui/material';
13
- export const ChipStyled = styled(Box)((_a) => {
14
- var { theme } = _a, props = __rest(_a, ["theme"]);
15
- const { textColor = theme.palette.text.primary, bgColor = theme.palette.background.paper, borderColor = theme.palette.divider, disabled = false, padding, } = props;
16
- return {
17
- display: 'inline-flex',
18
- alignItems: 'center',
19
- justifyContent: 'center',
20
- height: '18px',
21
- padding: padding || `${theme.spacing(0.25)} ${theme.spacing(1.5)}`,
22
- borderRadius: '30px',
23
- border: `1px solid ${borderColor}`,
24
- backgroundColor: bgColor,
25
- color: textColor,
26
- cursor: disabled ? 'not-allowed' : 'pointer',
27
- opacity: disabled ? 0.5 : 1,
28
- whiteSpace: 'nowrap',
29
- fontSize: '11px',
30
- minWidth: '67px',
31
- };
32
- });
@@ -1,9 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- import { PropsWithChildren } from 'react';
3
- export type ChipProps = PropsWithChildren<{
4
- textColor?: string;
5
- bgColor?: string;
6
- borderColor?: string;
7
- disabled?: boolean;
8
- padding?: string;
9
- } & BoxProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface SheetViewIDButtonI {
3
- rowId?: string;
4
- }
5
- declare function SheetViewIDButton({ rowId }: SheetViewIDButtonI): import("react/jsx-runtime").JSX.Element;
6
- declare const _default: import("react").MemoExoticComponent<typeof SheetViewIDButton>;
7
- export default _default;
@@ -1,35 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { memo, useState } from 'react';
3
- import Box from '@mui/material/Box';
4
- import { useTranslation } from 'react-i18next';
5
- import Tooltip from '../../../Tooltip';
6
- import { greenCheckIcon } from '../../../../constants/index.js';
7
- import { copyText } from '../../../../utils/index.js';
8
- import { RowId, Button } from './style';
9
- function SheetViewIDButton({ rowId }) {
10
- const [showCopy, setShowCopy] = useState(false);
11
- const { t } = useTranslation();
12
- const handleCopyRowId = () => {
13
- if (rowId && !showCopy) {
14
- setShowCopy(true);
15
- copyText(rowId);
16
- const timer = setTimeout(() => {
17
- setShowCopy(false);
18
- }, 2000);
19
- return () => {
20
- clearTimeout(timer);
21
- };
22
- }
23
- };
24
- return (_jsx(Tooltip, Object.assign({ title: t('copy') }, { children: _jsxs(Button, Object.assign({ sx: { minWidth: '213px' }, onClick: handleCopyRowId }, { children: [_jsx(RowId, Object.assign({ style: { visibility: showCopy ? 'hidden' : 'visible' } }, { children: rowId })), showCopy && (_jsx(Box, Object.assign({ sx: {
25
- position: 'absolute',
26
- top: 0,
27
- left: 0,
28
- right: 0,
29
- bottom: 0,
30
- display: 'flex',
31
- alignItems: 'center',
32
- justifyContent: 'center',
33
- } }, { children: _jsx(Box, { component: "img", src: greenCheckIcon, alt: "copied", sx: { width: 14, height: 14 } }) })))] })) })));
34
- }
35
- export default memo(SheetViewIDButton);
@@ -1 +0,0 @@
1
- export { default } from './SheetViewIDButton';
@@ -1 +0,0 @@
1
- export { default } from './SheetViewIDButton';
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Button: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
- export declare const RowId: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,22 +0,0 @@
1
- import { styled } from '@mui/material/styles';
2
- export const Button = styled('div')(({ theme }) => ({
3
- position: 'relative',
4
- display: 'flex',
5
- alignItems: 'center',
6
- gap: theme.spacing(1),
7
- cursor: 'pointer',
8
- justifyContent: 'center',
9
- paddingInline: '8px',
10
- borderRadius: '24px',
11
- border: `1px solid ${theme.palette.divider}`,
12
- }));
13
- export const RowId = styled('div')(({ theme }) => ({
14
- fontSize: '11px',
15
- height: '18px',
16
- display: 'flex',
17
- alignItems: 'center',
18
- fontWeight: 400,
19
- whiteSpace: 'nowrap',
20
- overflow: 'hidden',
21
- textOverflow: 'ellipsis',
22
- }));