tek-wallet 0.0.806 → 0.0.807
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/components/TekWallet/components/index.d.ts +2 -1
- package/dist/components/TekWallet/components/index.js +2 -1
- package/dist/components/TekWallet/components/layouts/ChildPageLayout/index.js +3 -3
- package/dist/components/TekWallet/components/layouts/DefaultPageLayout/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ActivitiesTypeSlice/index.js +12 -8
- package/dist/components/TekWallet/components/ui/ActivityDetail/index.js +17 -19
- package/dist/components/TekWallet/components/ui/ActivityItem/index.js +13 -13
- package/dist/components/TekWallet/components/ui/AmountGroupAndChart/index.js +3 -3
- package/dist/components/TekWallet/components/ui/AnalyticGroup/index.js +20 -20
- package/dist/components/TekWallet/components/ui/AnalyticGroupCenter/index.js +9 -8
- package/dist/components/TekWallet/components/ui/AppBackDrop/index.js +3 -3
- package/dist/components/TekWallet/components/ui/AppDialog/index.js +3 -3
- package/dist/components/TekWallet/components/ui/AssetViewHeader/index.js +9 -8
- package/dist/components/TekWallet/components/ui/BackHeader/index.js +6 -6
- package/dist/components/TekWallet/components/ui/BottomActionLayout/index.js +3 -3
- package/dist/components/TekWallet/components/ui/Button/index.js +4 -4
- package/dist/components/TekWallet/components/ui/CardToken/index.js +8 -8
- package/dist/components/TekWallet/components/ui/Column/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ConfirmByPasscode/index.js +6 -4
- package/dist/components/TekWallet/components/ui/ConfirmLayout/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ConfirmSwapToken/Result.js +17 -17
- package/dist/components/TekWallet/components/ui/ConfirmTransfer/index.js +3 -3
- package/dist/components/TekWallet/components/ui/CopyTextComponent/index.js +6 -6
- package/dist/components/TekWallet/components/ui/CustomTooltip/index.js +4 -2
- package/dist/components/TekWallet/components/ui/DetailSwap/index.js +9 -9
- package/dist/components/TekWallet/components/ui/DialogContentLayout/index.js +6 -6
- package/dist/components/TekWallet/components/ui/DrawerDrag/index.js +3 -3
- package/dist/components/TekWallet/components/ui/EmptyData/index.js +3 -3
- package/dist/components/TekWallet/components/ui/Fees/index.js +25 -25
- package/dist/components/TekWallet/components/ui/FeesAutoDebounce/index.js +24 -25
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +4 -6
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.js +2 -5
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +1 -2
- package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +28 -26
- package/dist/components/TekWallet/components/ui/Formatter/index.js +3 -0
- package/dist/components/TekWallet/components/ui/FunctionItem/index.js +4 -5
- package/dist/components/TekWallet/components/ui/Icon/index.js +1 -1
- package/dist/components/TekWallet/components/ui/IconText/index.js +3 -3
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.js +19 -20
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.js +5 -5
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.js +3 -3
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.js +3 -3
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.js +3 -1
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.js +3 -1
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.js +3 -3
- package/dist/components/TekWallet/components/ui/IncomeWallet/index.js +10 -10
- package/dist/components/TekWallet/components/ui/InlineTitleValue/index.js +3 -3
- package/dist/components/TekWallet/components/ui/Input/index.js +5 -5
- package/dist/components/TekWallet/components/ui/LineValue/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ListItemCustom/index.js +8 -6
- package/dist/components/TekWallet/components/ui/LoadingLayout/index.js +3 -3
- package/dist/components/TekWallet/components/ui/LockToken/index.js +4 -4
- package/dist/components/TekWallet/components/ui/ModalCheckboxToken/index.js +22 -22
- package/dist/components/TekWallet/components/ui/ModalDateFilter/index.js +11 -11
- package/dist/components/TekWallet/components/ui/ModalLayout/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ModalSelectToken/index.js +12 -12
- package/dist/components/TekWallet/components/ui/ModalStatusFilter/index.js +16 -16
- package/dist/components/TekWallet/components/ui/ModalTitle/index.js +3 -3
- package/dist/components/TekWallet/components/ui/NeonLineChart/index.js +4 -4
- package/dist/components/TekWallet/components/ui/NetworkSelection/index.js +5 -5
- package/dist/components/TekWallet/components/ui/OTP/index.js +24 -18
- package/dist/components/TekWallet/components/ui/PageHeader/index.js +3 -3
- package/dist/components/TekWallet/components/ui/QRCode/index.js +3 -1
- package/dist/components/TekWallet/components/ui/QrCodeReader/index.js +2 -3
- package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.d.ts +26 -0
- package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.js +365 -0
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/HelpView.js +4 -4
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortGroup.js +4 -4
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortTool.js +7 -12
- package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +39 -56
- package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveCardHistory.js +13 -13
- package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveHistoryDetails.js +22 -29
- package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +19 -19
- package/dist/components/TekWallet/components/ui/Row/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ScanQRToSend/index.js +7 -7
- package/dist/components/TekWallet/components/ui/SearchBar.d.ts +10 -0
- package/dist/components/TekWallet/components/ui/SearchBar.js +42 -0
- package/dist/components/TekWallet/components/ui/SendExternalToken/index.js +7 -7
- package/dist/components/TekWallet/components/ui/SendInternalToken/index.js +5 -5
- package/dist/components/TekWallet/components/ui/SmartList/index.js +3 -3
- package/dist/components/TekWallet/components/ui/StatusDisplay/index.js +7 -7
- package/dist/components/TekWallet/components/ui/SvgPath/index.js +27 -27
- package/dist/components/TekWallet/components/ui/SwiperControlled/index.js +1 -3
- package/dist/components/TekWallet/components/ui/TimeFilter/index.js +9 -8
- package/dist/components/TekWallet/components/ui/TimeText/index.js +1 -1
- package/dist/components/TekWallet/components/ui/TokenItem/index.js +7 -15
- package/dist/components/TekWallet/components/ui/TokenSelection/index.js +5 -5
- package/dist/components/TekWallet/components/ui/TokensBoard/index.js +12 -12
- package/dist/components/TekWallet/components/ui/TransferConfirmation/index.js +3 -3
- package/dist/components/TekWallet/components/ui/TransferInternal/index.js +3 -3
- package/dist/components/TekWallet/components/ui/UpdateLockToken/index.js +4 -4
- package/dist/components/TekWallet/components/ui/UserInfo/index.js +4 -4
- package/dist/components/TekWallet/components/ui/WaitingData/index.js +13 -12
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/selectToken.js +11 -11
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sendForm.js +30 -30
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByBalance.js +3 -3
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByToken.js +3 -3
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/summary/infoSummary.js +8 -8
- package/dist/components/TekWallet/components/ui/WithdrawFunction/index.js +9 -9
- package/dist/components/TekWallet/components/views/ActivityView/index.js +4 -4
- package/dist/components/TekWallet/components/views/AssetView/Menu.js +3 -3
- package/dist/components/TekWallet/components/views/AssetView/index.js +12 -12
- package/dist/components/TekWallet/components/views/AuthView/index.js +4 -4
- package/dist/components/TekWallet/components/views/AuthViewSignIn/index.js +4 -4
- package/dist/components/TekWallet/components/views/ChangePasscodeView/index.js +8 -6
- package/dist/components/TekWallet/components/views/CreateWalletView/index.js +4 -4
- package/dist/components/TekWallet/components/views/DetailActivityView/LoadingView.js +4 -4
- package/dist/components/TekWallet/components/views/GetSeedPhraseWalletView/index.js +7 -7
- package/dist/components/TekWallet/components/views/ImportWalletView/index.js +4 -7
- package/dist/components/TekWallet/components/views/SendExternalView/components/Form.js +32 -37
- package/dist/components/TekWallet/components/views/SendExternalView/components/Result.js +16 -16
- package/dist/components/TekWallet/components/views/SendExternalView/components/SelectNetwork.js +3 -3
- package/dist/components/TekWallet/components/views/SendExternalView/components/SelectToken.js +7 -32
- package/dist/components/TekWallet/components/views/SendExternalView/components/Summary.js +12 -12
- package/dist/components/TekWallet/components/views/SendExternalView/index.js +3 -3
- package/dist/components/TekWallet/components/views/SendInternalView/components/AmountForm.js +26 -24
- package/dist/components/TekWallet/components/views/SendInternalView/components/Form.js +27 -33
- package/dist/components/TekWallet/components/views/SendInternalView/components/Result.js +14 -14
- package/dist/components/TekWallet/components/views/SendInternalView/components/SelectToken.js +7 -32
- package/dist/components/TekWallet/components/views/SendInternalView/components/Summary.js +10 -10
- package/dist/components/TekWallet/components/views/SendInternalView/index.js +3 -3
- package/dist/components/TekWallet/components/views/SettingView/index.js +4 -13
- package/dist/components/TekWallet/components/views/SwapView/components/FromCard/FromCardSkeleton.js +7 -8
- package/dist/components/TekWallet/components/views/SwapView/components/FromCard/index.js +20 -25
- package/dist/components/TekWallet/components/views/SwapView/components/SelectToken.js +7 -32
- package/dist/components/TekWallet/components/views/SwapView/components/Summary.js +36 -39
- package/dist/components/TekWallet/components/views/SwapView/components/ToCard/index.js +7 -7
- package/dist/components/TekWallet/components/views/SwapView/index.js +12 -10
- package/dist/components/TekWallet/hooks/useValidateAmount.js +3 -3
- package/dist/components/TekWallet/hooks/useWarningWrongPasscode.js +5 -5
- package/dist/components/TekWallet/index.d.ts +2 -0
- package/dist/components/TekWallet/index.js +2 -12
- package/dist/components/TekWallet/layouts/ChildPageLayout/index.js +3 -3
- package/dist/components/TekWallet/providers/RealtimeProvider/index.js +15 -13
- package/dist/components/TekWallet/providers/TekWalletProvider/index.d.ts +9 -1
- package/dist/components/TekWallet/providers/TekWalletProvider/index.js +11 -4
- package/dist/components/TekWallet/providers/index.d.ts +0 -1
- package/dist/components/TekWallet/providers/index.js +0 -1
- package/dist/components/TekWallet/theme/mui/components/index.d.ts +133 -0
- package/dist/components/TekWallet/theme/mui/components/index.js +14 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/Button.d.ts +142 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/Button.js +84 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.d.ts +4 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.js +9 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/Paper.d.ts +3 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/Paper.js +15 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.d.ts +3 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.js +32 -0
- package/dist/components/TekWallet/theme/mui/fixed-mixins.d.ts +2 -0
- package/dist/components/TekWallet/theme/mui/fixed-mixins.js +218 -0
- package/dist/components/TekWallet/theme/mui/index.d.ts +3 -3
- package/dist/components/TekWallet/theme/mui/index.js +16 -32
- package/dist/components/TekWallet/theme/mui/palette.d.ts +34 -0
- package/dist/components/TekWallet/theme/mui/palette.js +133 -0
- package/dist/components/TekWallet/theme/mui/shadows/index.d.ts +3 -0
- package/dist/components/TekWallet/theme/mui/shadows/index.js +64 -0
- package/dist/components/TekWallet/theme/mui/spacing.d.ts +1 -0
- package/dist/components/TekWallet/theme/mui/spacing.js +5 -0
- package/dist/components/TekWallet/theme/mui/theme.d.ts +9 -442
- package/dist/components/TekWallet/theme/mui/theme.js +38 -415
- package/dist/components/TekWallet/theme/mui/type.d.ts +5 -0
- package/dist/components/TekWallet/theme/mui/type.js +9 -0
- package/dist/components/TekWallet/theme/mui/typography.d.ts +27 -0
- package/dist/components/TekWallet/theme/mui/typography.js +30 -0
- package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.d.ts +2 -0
- package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.js +7 -0
- package/dist/components/TekWallet/utils/getContractColor.d.ts +1 -0
- package/dist/components/TekWallet/utils/getContractColor.js +30 -0
- package/package.json +1 -1
- package/dist/components/TekWallet/components/ui/CardHistorySwap/index.d.ts +0 -12
- package/dist/components/TekWallet/components/ui/CardHistorySwap/index.js +0 -75
- package/dist/components/TekWallet/components/ui/DetailSwapResult/index.d.ts +0 -8
- package/dist/components/TekWallet/components/ui/DetailSwapResult/index.js +0 -122
- package/dist/components/TekWallet/components/ui/HistorySwap/index.d.ts +0 -16
- package/dist/components/TekWallet/components/ui/HistorySwap/index.js +0 -434
- package/dist/components/TekWallet/components/ui/SwapFunction/index.d.ts +0 -16
- package/dist/components/TekWallet/components/ui/SwapFunction/index.js +0 -271
- package/dist/components/TekWallet/components/ui/SwapToken/index.d.ts +0 -31
- package/dist/components/TekWallet/components/ui/SwapToken/index.js +0 -293
- package/dist/components/TekWallet/providers/ThemeProvider/index.d.ts +0 -8
- package/dist/components/TekWallet/providers/ThemeProvider/index.js +0 -43
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +0 -3
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +0 -158
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +0 -55
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +0 -45
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +0 -2
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +0 -13
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +0 -39
- 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,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,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,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
|
|
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;
|