tek-wallet 0.0.806 → 0.0.808

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 (190) hide show
  1. package/README.md +118 -8
  2. package/dist/components/TekWallet/components/index.d.ts +2 -1
  3. package/dist/components/TekWallet/components/index.js +2 -1
  4. package/dist/components/TekWallet/components/layouts/ChildPageLayout/index.js +3 -3
  5. package/dist/components/TekWallet/components/layouts/DefaultPageLayout/index.js +3 -3
  6. package/dist/components/TekWallet/components/ui/ActivitiesTypeSlice/index.js +12 -8
  7. package/dist/components/TekWallet/components/ui/ActivityDetail/index.js +17 -19
  8. package/dist/components/TekWallet/components/ui/ActivityItem/index.js +13 -13
  9. package/dist/components/TekWallet/components/ui/AmountGroupAndChart/index.js +3 -3
  10. package/dist/components/TekWallet/components/ui/AnalyticGroup/index.js +20 -20
  11. package/dist/components/TekWallet/components/ui/AnalyticGroupCenter/index.js +9 -8
  12. package/dist/components/TekWallet/components/ui/AppBackDrop/index.js +3 -3
  13. package/dist/components/TekWallet/components/ui/AppDialog/index.js +3 -3
  14. package/dist/components/TekWallet/components/ui/AssetViewHeader/index.js +9 -8
  15. package/dist/components/TekWallet/components/ui/BackHeader/index.js +6 -6
  16. package/dist/components/TekWallet/components/ui/BottomActionLayout/index.js +3 -3
  17. package/dist/components/TekWallet/components/ui/Button/index.js +4 -4
  18. package/dist/components/TekWallet/components/ui/CardToken/index.js +8 -8
  19. package/dist/components/TekWallet/components/ui/Column/index.js +3 -3
  20. package/dist/components/TekWallet/components/ui/ConfirmByPasscode/index.js +6 -4
  21. package/dist/components/TekWallet/components/ui/ConfirmLayout/index.js +3 -3
  22. package/dist/components/TekWallet/components/ui/ConfirmSwapToken/Result.js +17 -17
  23. package/dist/components/TekWallet/components/ui/ConfirmTransfer/index.js +3 -3
  24. package/dist/components/TekWallet/components/ui/CopyTextComponent/index.js +6 -6
  25. package/dist/components/TekWallet/components/ui/CustomTooltip/index.js +4 -2
  26. package/dist/components/TekWallet/components/ui/DetailSwap/index.js +9 -9
  27. package/dist/components/TekWallet/components/ui/DialogContentLayout/index.js +6 -6
  28. package/dist/components/TekWallet/components/ui/DrawerDrag/index.js +3 -3
  29. package/dist/components/TekWallet/components/ui/EmptyData/index.js +3 -3
  30. package/dist/components/TekWallet/components/ui/Fees/index.js +25 -25
  31. package/dist/components/TekWallet/components/ui/FeesAutoDebounce/index.js +24 -25
  32. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +4 -6
  33. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.js +2 -5
  34. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +1 -2
  35. package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +28 -26
  36. package/dist/components/TekWallet/components/ui/Formatter/index.js +3 -0
  37. package/dist/components/TekWallet/components/ui/FunctionItem/index.js +4 -5
  38. package/dist/components/TekWallet/components/ui/Icon/index.js +1 -1
  39. package/dist/components/TekWallet/components/ui/IconText/index.js +3 -3
  40. package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.js +19 -20
  41. package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.js +5 -5
  42. package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.js +3 -3
  43. package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.js +3 -3
  44. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.js +3 -1
  45. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.js +3 -1
  46. package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.js +3 -3
  47. package/dist/components/TekWallet/components/ui/IncomeWallet/index.js +10 -10
  48. package/dist/components/TekWallet/components/ui/InlineTitleValue/index.js +3 -3
  49. package/dist/components/TekWallet/components/ui/Input/index.js +5 -5
  50. package/dist/components/TekWallet/components/ui/LineValue/index.js +3 -3
  51. package/dist/components/TekWallet/components/ui/ListItemCustom/index.js +8 -6
  52. package/dist/components/TekWallet/components/ui/LoadingLayout/index.js +3 -3
  53. package/dist/components/TekWallet/components/ui/LockToken/index.js +4 -4
  54. package/dist/components/TekWallet/components/ui/ModalCheckboxToken/index.js +22 -22
  55. package/dist/components/TekWallet/components/ui/ModalDateFilter/index.js +11 -11
  56. package/dist/components/TekWallet/components/ui/ModalLayout/index.js +3 -3
  57. package/dist/components/TekWallet/components/ui/ModalSelectToken/index.js +12 -12
  58. package/dist/components/TekWallet/components/ui/ModalStatusFilter/index.js +16 -16
  59. package/dist/components/TekWallet/components/ui/ModalTitle/index.js +3 -3
  60. package/dist/components/TekWallet/components/ui/NeonLineChart/index.js +4 -4
  61. package/dist/components/TekWallet/components/ui/NetworkSelection/index.js +5 -5
  62. package/dist/components/TekWallet/components/ui/OTP/index.js +24 -18
  63. package/dist/components/TekWallet/components/ui/PageHeader/index.js +3 -3
  64. package/dist/components/TekWallet/components/ui/QRCode/index.js +3 -1
  65. package/dist/components/TekWallet/components/ui/QrCodeReader/index.js +2 -3
  66. package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.d.ts +26 -0
  67. package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.js +365 -0
  68. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/HelpView.js +4 -4
  69. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortGroup.js +4 -4
  70. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortTool.js +7 -12
  71. package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +39 -56
  72. package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveCardHistory.js +13 -13
  73. package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveHistoryDetails.js +22 -29
  74. package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +19 -19
  75. package/dist/components/TekWallet/components/ui/Row/index.js +3 -3
  76. package/dist/components/TekWallet/components/ui/ScanQRToSend/index.js +7 -7
  77. package/dist/components/TekWallet/components/ui/SearchBar.d.ts +10 -0
  78. package/dist/components/TekWallet/components/ui/SearchBar.js +42 -0
  79. package/dist/components/TekWallet/components/ui/SendExternalToken/index.js +7 -7
  80. package/dist/components/TekWallet/components/ui/SendInternalToken/index.js +5 -5
  81. package/dist/components/TekWallet/components/ui/SmartList/index.js +3 -3
  82. package/dist/components/TekWallet/components/ui/StatusDisplay/index.js +7 -7
  83. package/dist/components/TekWallet/components/ui/SvgPath/index.js +27 -27
  84. package/dist/components/TekWallet/components/ui/SwiperControlled/index.js +1 -3
  85. package/dist/components/TekWallet/components/ui/TimeFilter/index.js +9 -8
  86. package/dist/components/TekWallet/components/ui/TimeText/index.js +1 -1
  87. package/dist/components/TekWallet/components/ui/TokenItem/index.js +7 -15
  88. package/dist/components/TekWallet/components/ui/TokenSelection/index.js +5 -5
  89. package/dist/components/TekWallet/components/ui/TokensBoard/index.js +12 -12
  90. package/dist/components/TekWallet/components/ui/TransferConfirmation/index.js +3 -3
  91. package/dist/components/TekWallet/components/ui/TransferInternal/index.js +3 -3
  92. package/dist/components/TekWallet/components/ui/UpdateLockToken/index.js +4 -4
  93. package/dist/components/TekWallet/components/ui/UserInfo/index.js +4 -4
  94. package/dist/components/TekWallet/components/ui/WaitingData/index.js +13 -12
  95. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/selectToken.js +11 -11
  96. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sendForm.js +30 -30
  97. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByBalance.js +3 -3
  98. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByToken.js +3 -3
  99. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/summary/infoSummary.js +8 -8
  100. package/dist/components/TekWallet/components/ui/WithdrawFunction/index.js +9 -9
  101. package/dist/components/TekWallet/components/views/ActivityView/index.js +4 -4
  102. package/dist/components/TekWallet/components/views/AssetView/Menu.js +3 -3
  103. package/dist/components/TekWallet/components/views/AssetView/index.js +12 -12
  104. package/dist/components/TekWallet/components/views/AuthView/index.js +4 -4
  105. package/dist/components/TekWallet/components/views/AuthViewSignIn/index.js +4 -4
  106. package/dist/components/TekWallet/components/views/ChangePasscodeView/index.js +8 -6
  107. package/dist/components/TekWallet/components/views/CreateWalletView/index.js +4 -4
  108. package/dist/components/TekWallet/components/views/DetailActivityView/LoadingView.js +4 -4
  109. package/dist/components/TekWallet/components/views/GetSeedPhraseWalletView/index.js +7 -7
  110. package/dist/components/TekWallet/components/views/ImportWalletView/index.js +4 -7
  111. package/dist/components/TekWallet/components/views/SendExternalView/components/Form.js +32 -37
  112. package/dist/components/TekWallet/components/views/SendExternalView/components/Result.js +16 -16
  113. package/dist/components/TekWallet/components/views/SendExternalView/components/SelectNetwork.js +3 -3
  114. package/dist/components/TekWallet/components/views/SendExternalView/components/SelectToken.js +7 -32
  115. package/dist/components/TekWallet/components/views/SendExternalView/components/Summary.js +12 -12
  116. package/dist/components/TekWallet/components/views/SendExternalView/index.js +3 -3
  117. package/dist/components/TekWallet/components/views/SendInternalView/components/AmountForm.js +26 -24
  118. package/dist/components/TekWallet/components/views/SendInternalView/components/Form.js +27 -33
  119. package/dist/components/TekWallet/components/views/SendInternalView/components/Result.js +14 -14
  120. package/dist/components/TekWallet/components/views/SendInternalView/components/SelectToken.js +7 -32
  121. package/dist/components/TekWallet/components/views/SendInternalView/components/Summary.js +10 -10
  122. package/dist/components/TekWallet/components/views/SendInternalView/index.js +3 -3
  123. package/dist/components/TekWallet/components/views/SettingView/index.js +4 -13
  124. package/dist/components/TekWallet/components/views/SwapView/components/FromCard/FromCardSkeleton.js +7 -8
  125. package/dist/components/TekWallet/components/views/SwapView/components/FromCard/index.js +20 -25
  126. package/dist/components/TekWallet/components/views/SwapView/components/SelectToken.js +7 -32
  127. package/dist/components/TekWallet/components/views/SwapView/components/Summary.js +36 -39
  128. package/dist/components/TekWallet/components/views/SwapView/components/ToCard/index.js +7 -7
  129. package/dist/components/TekWallet/components/views/SwapView/index.js +12 -10
  130. package/dist/components/TekWallet/hooks/useValidateAmount.js +3 -3
  131. package/dist/components/TekWallet/hooks/useWarningWrongPasscode.js +5 -5
  132. package/dist/components/TekWallet/index.d.ts +2 -0
  133. package/dist/components/TekWallet/index.js +2 -12
  134. package/dist/components/TekWallet/layouts/ChildPageLayout/index.js +3 -3
  135. package/dist/components/TekWallet/providers/RealtimeProvider/index.js +15 -13
  136. package/dist/components/TekWallet/providers/TekWalletProvider/index.d.ts +9 -1
  137. package/dist/components/TekWallet/providers/TekWalletProvider/index.js +11 -4
  138. package/dist/components/TekWallet/providers/index.d.ts +0 -1
  139. package/dist/components/TekWallet/providers/index.js +0 -1
  140. package/dist/components/TekWallet/theme/mui/components/index.d.ts +133 -0
  141. package/dist/components/TekWallet/theme/mui/components/index.js +14 -0
  142. package/dist/components/TekWallet/theme/mui/components/overrides/Button.d.ts +142 -0
  143. package/dist/components/TekWallet/theme/mui/components/overrides/Button.js +84 -0
  144. package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.d.ts +4 -0
  145. package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.js +9 -0
  146. package/dist/components/TekWallet/theme/mui/components/overrides/Paper.d.ts +3 -0
  147. package/dist/components/TekWallet/theme/mui/components/overrides/Paper.js +15 -0
  148. package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.d.ts +3 -0
  149. package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.js +32 -0
  150. package/dist/components/TekWallet/theme/mui/fixed-mixins.d.ts +2 -0
  151. package/dist/components/TekWallet/theme/mui/fixed-mixins.js +218 -0
  152. package/dist/components/TekWallet/theme/mui/index.d.ts +3 -3
  153. package/dist/components/TekWallet/theme/mui/index.js +16 -32
  154. package/dist/components/TekWallet/theme/mui/palette.d.ts +34 -0
  155. package/dist/components/TekWallet/theme/mui/palette.js +133 -0
  156. package/dist/components/TekWallet/theme/mui/shadows/index.d.ts +3 -0
  157. package/dist/components/TekWallet/theme/mui/shadows/index.js +64 -0
  158. package/dist/components/TekWallet/theme/mui/spacing.d.ts +1 -0
  159. package/dist/components/TekWallet/theme/mui/spacing.js +5 -0
  160. package/dist/components/TekWallet/theme/mui/theme.d.ts +9 -442
  161. package/dist/components/TekWallet/theme/mui/theme.js +38 -415
  162. package/dist/components/TekWallet/theme/mui/type.d.ts +5 -0
  163. package/dist/components/TekWallet/theme/mui/type.js +9 -0
  164. package/dist/components/TekWallet/theme/mui/typography.d.ts +27 -0
  165. package/dist/components/TekWallet/theme/mui/typography.js +30 -0
  166. package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.d.ts +2 -0
  167. package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.js +7 -0
  168. package/dist/components/TekWallet/utils/getContractColor.d.ts +1 -0
  169. package/dist/components/TekWallet/utils/getContractColor.js +30 -0
  170. package/package.json +1 -1
  171. package/dist/components/TekWallet/components/ui/CardHistorySwap/index.d.ts +0 -12
  172. package/dist/components/TekWallet/components/ui/CardHistorySwap/index.js +0 -75
  173. package/dist/components/TekWallet/components/ui/DetailSwapResult/index.d.ts +0 -8
  174. package/dist/components/TekWallet/components/ui/DetailSwapResult/index.js +0 -122
  175. package/dist/components/TekWallet/components/ui/HistorySwap/index.d.ts +0 -16
  176. package/dist/components/TekWallet/components/ui/HistorySwap/index.js +0 -434
  177. package/dist/components/TekWallet/components/ui/SwapFunction/index.d.ts +0 -16
  178. package/dist/components/TekWallet/components/ui/SwapFunction/index.js +0 -271
  179. package/dist/components/TekWallet/components/ui/SwapToken/index.d.ts +0 -31
  180. package/dist/components/TekWallet/components/ui/SwapToken/index.js +0 -293
  181. package/dist/components/TekWallet/providers/ThemeProvider/index.d.ts +0 -8
  182. package/dist/components/TekWallet/providers/ThemeProvider/index.js +0 -43
  183. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +0 -3
  184. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +0 -158
  185. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +0 -55
  186. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +0 -45
  187. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +0 -2
  188. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +0 -13
  189. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +0 -39
  190. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.js +0 -65
@@ -0,0 +1,133 @@
1
+ import { Theme } from "@mui/material/styles";
2
+ declare const OverrideComponents: (theme: Theme) => {
3
+ MuiButton: {
4
+ defaultProps: {
5
+ variant: string;
6
+ size: string;
7
+ disableRipple: boolean;
8
+ };
9
+ styleOverrides: {
10
+ root: {
11
+ textTransform: string;
12
+ minWidth: string;
13
+ };
14
+ };
15
+ variants: ({
16
+ props: {
17
+ variant: string;
18
+ size?: undefined;
19
+ color?: undefined;
20
+ };
21
+ style: {
22
+ boxShadow: string;
23
+ padding?: undefined;
24
+ fontWeight?: undefined;
25
+ borderRadius?: undefined;
26
+ fontSize?: undefined;
27
+ lineHeight?: undefined;
28
+ backgroundImage?: undefined;
29
+ };
30
+ } | {
31
+ props: {
32
+ variant: string;
33
+ size?: undefined;
34
+ color?: undefined;
35
+ };
36
+ style: () => {
37
+ padding: number;
38
+ aspectRatio: string;
39
+ };
40
+ } | {
41
+ props: {
42
+ variant: string;
43
+ size?: undefined;
44
+ color?: undefined;
45
+ };
46
+ style: {
47
+ boxShadow?: undefined;
48
+ padding?: undefined;
49
+ fontWeight?: undefined;
50
+ borderRadius?: undefined;
51
+ fontSize?: undefined;
52
+ lineHeight?: undefined;
53
+ backgroundImage?: undefined;
54
+ };
55
+ } | {
56
+ props: {
57
+ size: string;
58
+ variant?: undefined;
59
+ color?: undefined;
60
+ };
61
+ style: {
62
+ padding: string;
63
+ fontWeight: number;
64
+ boxShadow?: undefined;
65
+ borderRadius?: undefined;
66
+ fontSize?: undefined;
67
+ lineHeight?: undefined;
68
+ backgroundImage?: undefined;
69
+ };
70
+ } | {
71
+ props: {
72
+ size: string;
73
+ variant?: undefined;
74
+ color?: undefined;
75
+ };
76
+ style: {
77
+ padding: string;
78
+ fontWeight: number;
79
+ borderRadius: string;
80
+ boxShadow?: undefined;
81
+ fontSize?: undefined;
82
+ lineHeight?: undefined;
83
+ backgroundImage?: undefined;
84
+ };
85
+ } | {
86
+ props: {
87
+ size: string;
88
+ variant?: undefined;
89
+ color?: undefined;
90
+ };
91
+ style: {
92
+ padding: string;
93
+ fontSize: string;
94
+ lineHeight: string;
95
+ fontWeight: number;
96
+ boxShadow?: undefined;
97
+ borderRadius?: undefined;
98
+ backgroundImage?: undefined;
99
+ };
100
+ } | {
101
+ props: {
102
+ color: string;
103
+ variant?: undefined;
104
+ size?: undefined;
105
+ };
106
+ style: {
107
+ backgroundImage: string;
108
+ boxShadow?: undefined;
109
+ padding?: undefined;
110
+ fontWeight?: undefined;
111
+ borderRadius?: undefined;
112
+ fontSize?: undefined;
113
+ lineHeight?: undefined;
114
+ };
115
+ } | {
116
+ props: {
117
+ variant: string;
118
+ size?: undefined;
119
+ color?: undefined;
120
+ };
121
+ style: {
122
+ padding: number;
123
+ boxShadow?: undefined;
124
+ fontWeight?: undefined;
125
+ borderRadius?: undefined;
126
+ fontSize?: undefined;
127
+ lineHeight?: undefined;
128
+ backgroundImage?: undefined;
129
+ };
130
+ })[];
131
+ };
132
+ } & import("@mui/material/styles").Components<Omit<Theme, "components">>;
133
+ export default OverrideComponents;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ // ** Overrides Imports
7
+ var Button_1 = __importDefault(require("./overrides/Button"));
8
+ var SnackBar_1 = __importDefault(require("./overrides/SnackBar"));
9
+ var OverrideComponents = function (theme) {
10
+ var button = (0, Button_1.default)(theme);
11
+ var snackBar = (0, SnackBar_1.default)(theme);
12
+ return Object.assign(button, snackBar);
13
+ };
14
+ exports.default = OverrideComponents;
@@ -0,0 +1,142 @@
1
+ import { Theme } from "@mui/material/styles";
2
+ declare module "@mui/material/Button" {
3
+ interface ButtonPropsVariantOverrides {
4
+ icon: true;
5
+ "contained-secondary": true;
6
+ }
7
+ interface ButtonPropsColorOverrides {
8
+ primaryGradient: true;
9
+ }
10
+ }
11
+ declare const Button: (theme: Theme) => {
12
+ MuiButton: {
13
+ defaultProps: {
14
+ variant: string;
15
+ size: string;
16
+ disableRipple: boolean;
17
+ };
18
+ styleOverrides: {
19
+ root: {
20
+ textTransform: string;
21
+ minWidth: string;
22
+ };
23
+ };
24
+ variants: ({
25
+ props: {
26
+ variant: string;
27
+ size?: undefined;
28
+ color?: undefined;
29
+ };
30
+ style: {
31
+ boxShadow: string;
32
+ padding?: undefined;
33
+ fontWeight?: undefined;
34
+ borderRadius?: undefined;
35
+ fontSize?: undefined;
36
+ lineHeight?: undefined;
37
+ backgroundImage?: undefined;
38
+ };
39
+ } | {
40
+ props: {
41
+ variant: string;
42
+ size?: undefined;
43
+ color?: undefined;
44
+ };
45
+ style: () => {
46
+ padding: number;
47
+ aspectRatio: string;
48
+ };
49
+ } | {
50
+ props: {
51
+ variant: string;
52
+ size?: undefined;
53
+ color?: undefined;
54
+ };
55
+ style: {
56
+ boxShadow?: undefined;
57
+ padding?: undefined;
58
+ fontWeight?: undefined;
59
+ borderRadius?: undefined;
60
+ fontSize?: undefined;
61
+ lineHeight?: undefined;
62
+ backgroundImage?: undefined;
63
+ };
64
+ } | {
65
+ props: {
66
+ size: string;
67
+ variant?: undefined;
68
+ color?: undefined;
69
+ };
70
+ style: {
71
+ padding: string;
72
+ fontWeight: number;
73
+ boxShadow?: undefined;
74
+ borderRadius?: undefined;
75
+ fontSize?: undefined;
76
+ lineHeight?: undefined;
77
+ backgroundImage?: undefined;
78
+ };
79
+ } | {
80
+ props: {
81
+ size: string;
82
+ variant?: undefined;
83
+ color?: undefined;
84
+ };
85
+ style: {
86
+ padding: string;
87
+ fontWeight: number;
88
+ borderRadius: string;
89
+ boxShadow?: undefined;
90
+ fontSize?: undefined;
91
+ lineHeight?: undefined;
92
+ backgroundImage?: undefined;
93
+ };
94
+ } | {
95
+ props: {
96
+ size: string;
97
+ variant?: undefined;
98
+ color?: undefined;
99
+ };
100
+ style: {
101
+ padding: string;
102
+ fontSize: string;
103
+ lineHeight: string;
104
+ fontWeight: number;
105
+ boxShadow?: undefined;
106
+ borderRadius?: undefined;
107
+ backgroundImage?: undefined;
108
+ };
109
+ } | {
110
+ props: {
111
+ color: string;
112
+ variant?: undefined;
113
+ size?: undefined;
114
+ };
115
+ style: {
116
+ backgroundImage: string;
117
+ boxShadow?: undefined;
118
+ padding?: undefined;
119
+ fontWeight?: undefined;
120
+ borderRadius?: undefined;
121
+ fontSize?: undefined;
122
+ lineHeight?: undefined;
123
+ };
124
+ } | {
125
+ props: {
126
+ variant: string;
127
+ size?: undefined;
128
+ color?: undefined;
129
+ };
130
+ style: {
131
+ padding: number;
132
+ boxShadow?: undefined;
133
+ fontWeight?: undefined;
134
+ borderRadius?: undefined;
135
+ fontSize?: undefined;
136
+ lineHeight?: undefined;
137
+ backgroundImage?: undefined;
138
+ };
139
+ })[];
140
+ };
141
+ };
142
+ export default Button;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // const getColorCode = (colorKeys: string[], colors: Theme["palette"]): string => {
4
+ // const firstKey = colorKeys[0];
5
+ // const colorValue = colors?.[firstKey as keyof Theme["palette"]];
6
+ // return typeof colorValue == "object"
7
+ // ? getColorCode(colorKeys?.slice(1), colorValue as unknown as Theme["palette"])
8
+ // : (colorValue as string);
9
+ // };
10
+ var Button = function (theme) {
11
+ return {
12
+ MuiButton: {
13
+ defaultProps: {
14
+ variant: "contained",
15
+ size: "large",
16
+ disableRipple: false,
17
+ },
18
+ styleOverrides: {
19
+ root: {
20
+ textTransform: "none",
21
+ minWidth: "auto",
22
+ },
23
+ },
24
+ variants: [
25
+ {
26
+ props: { variant: "contained" },
27
+ style: {
28
+ boxShadow: theme.shadows[3],
29
+ },
30
+ },
31
+ {
32
+ props: { variant: "icon" },
33
+ style: function () {
34
+ return {
35
+ padding: 0,
36
+ aspectRatio: "1/1",
37
+ };
38
+ },
39
+ },
40
+ {
41
+ props: { variant: "outlined" },
42
+ style: {},
43
+ },
44
+ {
45
+ props: { size: "small" },
46
+ style: {
47
+ padding: "".concat(theme.spacing(1, 2.25)),
48
+ fontWeight: 400,
49
+ },
50
+ },
51
+ {
52
+ props: { size: "medium" },
53
+ style: {
54
+ padding: "".concat(theme.spacing(2, 3)),
55
+ fontWeight: 600,
56
+ borderRadius: theme.spacing(3),
57
+ },
58
+ },
59
+ {
60
+ props: { size: "large" },
61
+ style: {
62
+ padding: "".concat(theme.spacing(3, 4)),
63
+ fontSize: "0.875rem",
64
+ lineHeight: "120%",
65
+ fontWeight: 600,
66
+ },
67
+ },
68
+ {
69
+ props: { color: "primaryGradient" },
70
+ style: {
71
+ backgroundImage: "var(--primary-gradient)",
72
+ },
73
+ },
74
+ {
75
+ props: { variant: "text" },
76
+ style: {
77
+ padding: 0,
78
+ },
79
+ },
80
+ ],
81
+ },
82
+ };
83
+ };
84
+ exports.default = Button;
@@ -0,0 +1,4 @@
1
+ declare const Drawer: () => {
2
+ MuiDrawer: {};
3
+ };
4
+ export default Drawer;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ "use client";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ var Drawer = function () {
5
+ return {
6
+ MuiDrawer: {},
7
+ };
8
+ };
9
+ exports.default = Drawer;
@@ -0,0 +1,3 @@
1
+ import { ThemeOptions } from "@mui/material/styles";
2
+ declare const Paper: () => ThemeOptions["components"];
3
+ export default Paper;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ "use client";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ var Paper = function () {
5
+ var PaperOverrides = {
6
+ styleOverrides: {
7
+ root: {},
8
+ },
9
+ defaultProps: {},
10
+ };
11
+ return {
12
+ MuiPaper: PaperOverrides,
13
+ };
14
+ };
15
+ exports.default = Paper;
@@ -0,0 +1,3 @@
1
+ import { Theme, ThemeOptions } from "@mui/material/styles";
2
+ declare const Snackbar: (theme: Theme) => ThemeOptions["components"];
3
+ export default Snackbar;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ "use client";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ var Snackbar = function (theme) {
5
+ var _a, _b, _c, _d, _e, _f;
6
+ var snackbarOverrides = {
7
+ styleOverrides: {
8
+ root: {
9
+ // Override cho tất cả các vị trí top của Snackbar
10
+ "&.MuiSnackbar-anchorOriginTopCenter": {
11
+ top: "".concat(((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.mixins) === null || _a === void 0 ? void 0 : _a.toolbar) === null || _b === void 0 ? void 0 : _b.height) || 8, "px !important"),
12
+ },
13
+ "&.MuiSnackbar-anchorOriginTopLeft": {
14
+ top: "".concat(((_d = (_c = theme === null || theme === void 0 ? void 0 : theme.mixins) === null || _c === void 0 ? void 0 : _c.toolbar) === null || _d === void 0 ? void 0 : _d.height) || 8, "px !important"),
15
+ },
16
+ "&.MuiSnackbar-anchorOriginTopRight": {
17
+ top: "".concat(((_f = (_e = theme === null || theme === void 0 ? void 0 : theme.mixins) === null || _e === void 0 ? void 0 : _e.toolbar) === null || _f === void 0 ? void 0 : _f.height) || 8, "px !important"),
18
+ },
19
+ },
20
+ },
21
+ defaultProps: {
22
+ anchorOrigin: {
23
+ vertical: "top",
24
+ horizontal: "center",
25
+ },
26
+ },
27
+ };
28
+ return {
29
+ MuiSnackbar: snackbarOverrides,
30
+ };
31
+ };
32
+ exports.default = Snackbar;
@@ -0,0 +1,2 @@
1
+ import { Mixins } from "@mui/material/styles";
2
+ export declare const FIXED_MIXINS: Partial<Mixins>;
@@ -0,0 +1,218 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FIXED_MIXINS = void 0;
4
+ var typography_1 = require("./typography");
5
+ var gaps = {
6
+ g2: "0.125rem",
7
+ g4: "0.25rem",
8
+ g6: "0.375rem",
9
+ g8: "0.5rem",
10
+ g10: "0.625rem",
11
+ g12: "0.75rem",
12
+ g16: "1rem",
13
+ g20: "1.25rem",
14
+ g24: "1.5rem",
15
+ g32: "2rem",
16
+ g40: "2.5rem",
17
+ };
18
+ var pagePadding = {
19
+ paddingLeft: "1rem",
20
+ paddingRight: "1rem",
21
+ paddingTop: "1rem",
22
+ paddingBottom: "2rem",
23
+ };
24
+ var customPadding = {
25
+ p0: "0rem",
26
+ p4: "0.25rem",
27
+ p6: "0.375rem",
28
+ p8: "0.5rem",
29
+ p10: "0.625rem",
30
+ p12: "0.75rem",
31
+ p16: "1rem",
32
+ p20: "1.25rem",
33
+ p24: "1.5rem",
34
+ p32: "2rem",
35
+ p40: "2.5rem",
36
+ p48: "3rem",
37
+ };
38
+ var customMargin = {
39
+ m4: "0.25rem",
40
+ m6: "0.375rem",
41
+ m8: "0.5rem",
42
+ m10: "0.625rem",
43
+ m12: "0.75rem",
44
+ m16: "1rem",
45
+ m20: "1.25rem",
46
+ m24: "1.5rem",
47
+ m32: "2rem",
48
+ m40: "2.5rem",
49
+ m48: "3rem",
50
+ };
51
+ var customRadius = {
52
+ full: "999px",
53
+ r4: "0.25rem",
54
+ r6: "0.375rem",
55
+ r8: "0.5rem",
56
+ r10: "0.625rem",
57
+ r12: "0.75rem",
58
+ r16: "1rem",
59
+ r20: "1.25rem",
60
+ r24: "1.5rem",
61
+ r32: "2rem",
62
+ r40: "2.5rem",
63
+ r48: "3rem",
64
+ };
65
+ exports.FIXED_MIXINS = {
66
+ pagePadding: pagePadding,
67
+ customPadding: customPadding,
68
+ customMargin: customMargin,
69
+ customRadius: customRadius,
70
+ gaps: gaps,
71
+ row: {
72
+ display: "flex",
73
+ alignItems: "center",
74
+ },
75
+ column: {
76
+ display: "flex",
77
+ flexDirection: "column",
78
+ width: "100%",
79
+ },
80
+ headerTitle: {
81
+ color: "text.primary",
82
+ fontWeight: typography_1.typography.fontWeight700,
83
+ fontSize: typography_1.typography.fontSize16,
84
+ textAlign: "center",
85
+ },
86
+ sessionTitle: {
87
+ color: "text.primary",
88
+ fontWeight: typography_1.typography.fontWeight600,
89
+ fontSize: typography_1.typography.fontSize16,
90
+ textAlign: "center",
91
+ },
92
+ sessionDescription: {
93
+ color: "text.secondary",
94
+ fontWeight: typography_1.typography.fontWeight400,
95
+ fontSize: typography_1.typography.fontSize14,
96
+ textAlign: "center",
97
+ },
98
+ noteContent: {
99
+ color: "text.secondary",
100
+ fontWeight: typography_1.typography.fontWeight400,
101
+ fontSize: typography_1.typography.fontSize12,
102
+ },
103
+ fieldTitle: {
104
+ color: "text.primary",
105
+ fontWeight: typography_1.typography.fontWeight500,
106
+ fontSize: typography_1.typography.fontSize14,
107
+ },
108
+ inputLabel: {
109
+ color: "text.primary",
110
+ fontWeight: typography_1.typography.fontWeight700,
111
+ fontSize: typography_1.typography.fontSize14,
112
+ },
113
+ center: {
114
+ position: "absolute",
115
+ left: "50%",
116
+ top: "50%",
117
+ transform: "translate(-50%, -50%)",
118
+ },
119
+ value: {
120
+ color: "text.primary",
121
+ fontWeight: typography_1.typography.fontWeight700,
122
+ fontSize: typography_1.typography.fontSize14,
123
+ lineHeight: typography_1.typography.leading140,
124
+ },
125
+ valueDescription: {
126
+ color: "text.secondary",
127
+ fontWeight: typography_1.typography.fontWeight400,
128
+ fontSize: typography_1.typography.fontSize12,
129
+ lineHeight: typography_1.typography.leading140,
130
+ },
131
+ validationError: {
132
+ color: "error.main",
133
+ fontWeight: typography_1.typography.fontWeight400,
134
+ fontSize: typography_1.typography.fontSize12,
135
+ lineHeight: typography_1.typography.leading140,
136
+ },
137
+ validationDescription: {
138
+ color: "text.secondary",
139
+ fontWeight: typography_1.typography.fontWeight400,
140
+ fontSize: typography_1.typography.fontSize11,
141
+ lineHeight: typography_1.typography.leading160,
142
+ },
143
+ paper: {
144
+ display: "flex",
145
+ flexDirection: "column",
146
+ width: "100%",
147
+ gap: gaps.g12,
148
+ padding: 3,
149
+ backgroundColor: "background.paper",
150
+ borderRadius: customRadius.r16,
151
+ },
152
+ listTitle: {
153
+ color: "text.primary",
154
+ fontWeight: typography_1.typography.fontWeight500,
155
+ fontSize: typography_1.typography.fontSize14,
156
+ lineHeight: typography_1.typography.leading140,
157
+ textTransform: "capitalize",
158
+ },
159
+ listDescription: {
160
+ color: "text.secondary",
161
+ fontWeight: typography_1.typography.fontWeight400,
162
+ fontSize: typography_1.typography.fontSize12,
163
+ lineHeight: typography_1.typography.leading140,
164
+ },
165
+ smallButton: {
166
+ fontSize: typography_1.typography.fontSize11,
167
+ padding: "".concat(customPadding.p4, " ").concat(customPadding.p8),
168
+ height: "fit-content",
169
+ minHeight: "unset",
170
+ minWidth: "unset",
171
+ width: "fit-content",
172
+ borderRadius: customRadius.full,
173
+ lineHeight: typography_1.typography.leading100,
174
+ },
175
+ dialogContent: {
176
+ fontSize: typography_1.typography.fontSize14,
177
+ lineHeight: typography_1.typography.leading140,
178
+ color: "text.reverse",
179
+ },
180
+ dialogActionsOk: {
181
+ fontSize: typography_1.typography.fontSize14,
182
+ lineHeight: typography_1.typography.leading100,
183
+ color: "#2482ff",
184
+ textAlign: "center",
185
+ padding: "".concat(customPadding.p8, " ").concat(customPadding.p16),
186
+ },
187
+ dialogActionsCancel: {
188
+ fontSize: typography_1.typography.fontSize14,
189
+ lineHeight: typography_1.typography.leading140,
190
+ color: "text.reverse",
191
+ textAlign: "center",
192
+ padding: "".concat(customPadding.p8, " ").concat(customPadding.p16),
193
+ },
194
+ warning: {
195
+ color: "warning.main",
196
+ fontSize: typography_1.typography.fontSize12,
197
+ lineHeight: typography_1.typography.leading140,
198
+ },
199
+ activityTitle: {
200
+ color: "text.primary",
201
+ fontWeight: typography_1.typography.fontWeight500,
202
+ fontSize: typography_1.typography.fontSize14,
203
+ lineHeight: typography_1.typography.leading140,
204
+ textTransform: "capitalize",
205
+ },
206
+ activityDescription: {
207
+ color: "text.secondary",
208
+ fontWeight: typography_1.typography.fontWeight400,
209
+ fontSize: typography_1.typography.fontSize12,
210
+ lineHeight: typography_1.typography.leading140,
211
+ },
212
+ bigValue: {
213
+ color: "text.primary",
214
+ fontWeight: typography_1.typography.fontWeight600,
215
+ fontSize: typography_1.typography.fontSize18,
216
+ lineHeight: typography_1.typography.leading140,
217
+ },
218
+ };
@@ -1,6 +1,6 @@
1
- import { Theme } from "@mui/material";
2
- declare function MuiThemeProvider({ children, customTheme, }: {
1
+ import { Theme } from "@mui/material/styles";
2
+ declare function MuiThemeProvider({ children }: {
3
3
  children: React.ReactNode;
4
- customTheme?: Theme;
5
4
  }): import("react/jsx-runtime").JSX.Element;
6
5
  export default MuiThemeProvider;
6
+ export declare const useTheme: () => Theme;