tek-wallet 0.0.119 → 0.0.121
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/README.md +1 -0
- package/dist/components/layouts/DefaultPageLayout/index.js +2 -5
- package/dist/components/ui/Button/index.js +8 -9
- package/dist/components/ui/PageHeader/index.js +3 -3
- package/dist/components/views/AuthView/index.js +2 -2
- package/dist/components/views/CreateWalletView/index.js +3 -3
- package/dist/components/views/GetSeedPhraseWalletView/index.js +10 -11
- package/dist/components/views/ImportWalletView/index.js +9 -9
- package/dist/theme/mui/theme.d.ts +2 -1
- package/dist/theme/mui/theme.js +68 -56
- package/package.json +6 -2
- package/dist/theme/mui/styles.d.ts +0 -21
- package/dist/theme/mui/styles.js +0 -28
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# tek-wallet
|
|
@@ -11,14 +11,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
return __assign.apply(this, arguments);
|
|
13
13
|
};
|
|
14
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
-
};
|
|
17
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
var theme_1 = __importDefault(require("../../../theme/mui/theme"));
|
|
20
16
|
var material_1 = require("@mui/material");
|
|
21
17
|
var DefaultPageLayout = function (props) {
|
|
22
|
-
|
|
18
|
+
var theme = (0, material_1.useTheme)();
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.pagePadding), { minHeight: "100%", width: "100%" }), props.sx), children: props.children }));
|
|
23
20
|
};
|
|
24
21
|
exports.default = DefaultPageLayout;
|
|
@@ -21,13 +21,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
}
|
|
22
22
|
return t;
|
|
23
23
|
};
|
|
24
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
25
|
exports.BUTTON_STATUS = void 0;
|
|
29
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
-
|
|
27
|
+
/* eslint-disable react-hooks/rules-of-hooks */
|
|
31
28
|
var material_1 = require("@mui/material");
|
|
32
29
|
var BUTTON_STATUS;
|
|
33
30
|
(function (BUTTON_STATUS) {
|
|
@@ -36,18 +33,20 @@ var BUTTON_STATUS;
|
|
|
36
33
|
BUTTON_STATUS["ENABLED"] = "enabled";
|
|
37
34
|
})(BUTTON_STATUS || (exports.BUTTON_STATUS = BUTTON_STATUS = {}));
|
|
38
35
|
var Button = function (props) {
|
|
39
|
-
var _a = props.status, status = _a === void 0 ? BUTTON_STATUS.ENABLED : _a,
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Button, __assign({
|
|
36
|
+
var _a = props.status, status = _a === void 0 ? BUTTON_STATUS.ENABLED : _a, rest = __rest(props, ["status"]);
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Button, __assign({ disabled: status !== BUTTON_STATUS.ENABLED }, rest, { children: props.children })));
|
|
41
38
|
};
|
|
42
39
|
Button.displayName = "Button";
|
|
43
40
|
Button.Primary = function (props) {
|
|
44
41
|
var sx = props.sx, rest = __rest(props, ["sx"]);
|
|
45
|
-
|
|
42
|
+
var theme = (0, material_1.useTheme)();
|
|
43
|
+
return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "contained", color: "primary", sx: __assign({ borderRadius: theme.mixins.theBorderRadius.full }, sx) })));
|
|
46
44
|
};
|
|
47
45
|
Button.Primary.displayName = "Button.Primary";
|
|
48
46
|
Button.Secondary = function (props) {
|
|
49
|
-
var
|
|
50
|
-
|
|
47
|
+
var sx = props.sx, rest = __rest(props, ["sx"]);
|
|
48
|
+
var theme = (0, material_1.useTheme)();
|
|
49
|
+
return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "contained", color: "secondary", sx: __assign({ borderRadius: theme.mixins.theBorderRadius.full }, sx) })));
|
|
51
50
|
};
|
|
52
51
|
Button.Secondary.displayName = "Button.Secondary";
|
|
53
52
|
exports.default = Button;
|
|
@@ -16,11 +16,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
var
|
|
20
|
-
var theme_1 = __importDefault(require("../../../theme/mui/theme"));
|
|
19
|
+
var material_1 = require("@mui/material");
|
|
21
20
|
var BackHeader_1 = __importDefault(require("../BackHeader"));
|
|
22
21
|
var Text_1 = __importDefault(require("../Text"));
|
|
23
22
|
var PageHeader = function (props) {
|
|
24
|
-
|
|
23
|
+
var theme = (0, material_1.useTheme)();
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(BackHeader_1.default, { overrideBack: props.overrideBack, sx: __assign({ display: "flex", alignItems: "center", height: "100%", position: "relative", paddingLeft: theme.mixins.pagePadding.paddingLeft, paddingRight: theme.mixins.pagePadding.paddingRight }, props.sx), children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.headerTitle), { position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)" }), children: props.title }) }));
|
|
25
25
|
};
|
|
26
26
|
exports.default = PageHeader;
|
|
@@ -61,8 +61,8 @@ var ImportWalletView_1 = __importDefault(require("../ImportWalletView"));
|
|
|
61
61
|
var ChildPageLayout_1 = __importDefault(require("../../layouts/ChildPageLayout"));
|
|
62
62
|
var material_1 = require("@mui/material");
|
|
63
63
|
var PageHeader_1 = __importDefault(require("../../ui/PageHeader"));
|
|
64
|
-
var styles_1 = require("../../../theme/mui/styles");
|
|
65
64
|
var AuthView = function (props) {
|
|
65
|
+
var theme = (0, material_1.useTheme)();
|
|
66
66
|
var createWalletDrawerRef = (0, react_1.useRef)(null);
|
|
67
67
|
var importWalletDrawerRef = (0, react_1.useRef)(null);
|
|
68
68
|
var onBackCreateWallet = function () {
|
|
@@ -87,6 +87,6 @@ var AuthView = function (props) {
|
|
|
87
87
|
marginTop: "auto",
|
|
88
88
|
}, children: [(0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { sx: {
|
|
89
89
|
width: "100%",
|
|
90
|
-
}, ref: createWalletDrawerRef, trigger: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, children: "Create a new wallet" }), direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, children: (0, jsx_runtime_1.jsx)(CreateWalletView_1.default, { onBack: onBackCreateWallet }) }), (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: importWalletDrawerRef, trigger: (0, jsx_runtime_1.jsx)(Button_1.default.Secondary, { sx: { width: "100%" }, children: "I have a wallet" }), direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, children: (0, jsx_runtime_1.jsx)(ImportWalletView_1.default, { onBack: onBackImportWallet }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({},
|
|
90
|
+
}, ref: createWalletDrawerRef, trigger: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, children: "Create a new wallet" }), direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, children: (0, jsx_runtime_1.jsx)(CreateWalletView_1.default, { onBack: onBackCreateWallet }) }), (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: importWalletDrawerRef, trigger: (0, jsx_runtime_1.jsx)(Button_1.default.Secondary, { sx: { width: "100%" }, children: "I have a wallet" }), direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, children: (0, jsx_runtime_1.jsx)(ImportWalletView_1.default, { onBack: onBackImportWallet }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionDescription), children: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Adipisci, eos odio. Accusamus ea praesentium unde deserunt delectus, nihil corporis, mollitia ipsum impedit cupiditate eveniet vero esse facilis, incidunt in sequi?" })] })] }) }));
|
|
91
91
|
};
|
|
92
92
|
exports.default = AuthView;
|
|
@@ -60,7 +60,6 @@ var react_2 = require("react");
|
|
|
60
60
|
var Text_1 = __importDefault(require("../../../components/ui/Text"));
|
|
61
61
|
var useWalletData_1 = __importDefault(require("../../../hooks/useWalletData"));
|
|
62
62
|
var material_1 = require("@mui/material");
|
|
63
|
-
var styles_1 = require("../../../theme/mui/styles");
|
|
64
63
|
var CreateWalletViewStep;
|
|
65
64
|
(function (CreateWalletViewStep) {
|
|
66
65
|
CreateWalletViewStep[CreateWalletViewStep["CREATE_PASSCODE"] = 0] = "CREATE_PASSCODE";
|
|
@@ -68,6 +67,7 @@ var CreateWalletViewStep;
|
|
|
68
67
|
})(CreateWalletViewStep || (exports.CreateWalletViewStep = CreateWalletViewStep = {}));
|
|
69
68
|
var passcodeLength = 6;
|
|
70
69
|
var CreateWalletView = function (props) {
|
|
70
|
+
var theme = (0, material_1.useTheme)();
|
|
71
71
|
var _a = (0, react_2.useState)(""), otp = _a[0], setOtp = _a[1];
|
|
72
72
|
var _b = (0, react_2.useState)(""), confirmOtp = _b[0], setConfirmOtp = _b[1];
|
|
73
73
|
var swiperControlledRef = (0, react_2.useRef)(null);
|
|
@@ -143,13 +143,13 @@ var CreateWalletView = function (props) {
|
|
|
143
143
|
alignItems: "center",
|
|
144
144
|
height: "100%",
|
|
145
145
|
gap: "1rem",
|
|
146
|
-
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({},
|
|
146
|
+
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionTitle), children: "Create Passcode" }), (0, jsx_runtime_1.jsx)(OTP_1.default, { value: otp, onChange: handleOtpChange, numInputs: passcodeLength, otpInputType: OTP_1.OtpInputType.PASSWORD }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionDescription), children: "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Necessitatibus, eos! Dolore quae vero in ducimus doloribus" })] }) }), (0, jsx_runtime_1.jsx)(react_1.SwiperSlide, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
147
147
|
display: "flex",
|
|
148
148
|
flexDirection: "column",
|
|
149
149
|
alignItems: "center",
|
|
150
150
|
justifyContent: "center",
|
|
151
151
|
height: "100%",
|
|
152
152
|
gap: "1rem",
|
|
153
|
-
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({},
|
|
153
|
+
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionTitle), children: "Confirm Passcode" }), (0, jsx_runtime_1.jsx)(OTP_1.default, { value: confirmOtp, onChange: handleConfirmOtpChange, numInputs: passcodeLength, otpInputType: OTP_1.OtpInputType.PASSWORD }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionDescription), children: "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Necessitatibus, eos! Dolore quae vero in ducimus doloribus" })] }) })] }) }) }));
|
|
154
154
|
};
|
|
155
155
|
exports.default = CreateWalletView;
|
|
@@ -63,8 +63,6 @@ var material_1 = require("@mui/material");
|
|
|
63
63
|
var Button_1 = __importDefault(require("../../ui/Button"));
|
|
64
64
|
var Icon_1 = __importDefault(require("../../ui/Icon"));
|
|
65
65
|
var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
|
|
66
|
-
var styles_1 = require("../../../theme/mui/styles");
|
|
67
|
-
var theme_1 = __importDefault(require("../../../theme/mui/theme"));
|
|
68
66
|
var GetSeedPhraseWalletViewStep;
|
|
69
67
|
(function (GetSeedPhraseWalletViewStep) {
|
|
70
68
|
GetSeedPhraseWalletViewStep[GetSeedPhraseWalletViewStep["ENTER_PASSCODE"] = 0] = "ENTER_PASSCODE";
|
|
@@ -72,6 +70,7 @@ var GetSeedPhraseWalletViewStep;
|
|
|
72
70
|
})(GetSeedPhraseWalletViewStep || (exports.GetSeedPhraseWalletViewStep = GetSeedPhraseWalletViewStep = {}));
|
|
73
71
|
var passcodeLength = 6;
|
|
74
72
|
var GetSeedPhraseWalletView = function (props) {
|
|
73
|
+
var theme = (0, material_1.useTheme)();
|
|
75
74
|
var _a = (0, react_2.useState)(""), otp = _a[0], setOtp = _a[1];
|
|
76
75
|
var _b = (0, react_2.useState)(false), isShowSeedPhrase = _b[0], setIsShowSeedPhrase = _b[1];
|
|
77
76
|
var _c = (0, react_2.useState)(undefined), seedPhrase = _c[0], setSeedPhrase = _c[1];
|
|
@@ -152,7 +151,7 @@ var GetSeedPhraseWalletView = function (props) {
|
|
|
152
151
|
alignItems: "center",
|
|
153
152
|
gap: "1rem",
|
|
154
153
|
height: "100%",
|
|
155
|
-
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({},
|
|
154
|
+
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionTitle), children: "Enter Passcode" }), (0, jsx_runtime_1.jsx)(OTP_1.default, { value: otp, onChange: handleOtpChange, numInputs: passcodeLength, otpInputType: OTP_1.OtpInputType.PASSWORD }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionDescription), children: "Enter your passcode to get your wallet seed phrase" })] }) }), (0, jsx_runtime_1.jsx)(react_1.SwiperSlide, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
156
155
|
minHeight: "100%",
|
|
157
156
|
display: "flex",
|
|
158
157
|
flexDirection: "column",
|
|
@@ -163,22 +162,22 @@ var GetSeedPhraseWalletView = function (props) {
|
|
|
163
162
|
gap: "1rem",
|
|
164
163
|
height: "fit-content",
|
|
165
164
|
}, children: seedPhrase === null || seedPhrase === void 0 ? void 0 : seedPhrase.split(" ").map(function (word, index) { return ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: {
|
|
166
|
-
color:
|
|
165
|
+
color: theme.palette.text.white,
|
|
167
166
|
padding: "0.5rem 0.75rem",
|
|
168
|
-
backgroundColor:
|
|
169
|
-
borderRadius: "0.
|
|
170
|
-
fontSize:
|
|
171
|
-
fontWeight:
|
|
167
|
+
backgroundColor: theme.palette.background.black16,
|
|
168
|
+
borderRadius: "0.75rem",
|
|
169
|
+
fontSize: theme.typography.fontSize14,
|
|
170
|
+
fontWeight: theme.typography.fontWeight400,
|
|
172
171
|
textAlign: "center",
|
|
173
172
|
width: "100%",
|
|
174
|
-
border: "1px solid
|
|
175
|
-
}, children: [index + 1, ". ", isShowSeedPhrase ? word : "********"] }, index)); }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({ marginTop: "auto" },
|
|
173
|
+
border: "1px solid ".concat(theme.palette.background.white24),
|
|
174
|
+
}, children: [index + 1, ". ", isShowSeedPhrase ? word : "********"] }, index)); }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({ marginTop: "auto" }, theme.mixins.noteContent), children: "Please do not store your seed phrase digitally (e.g., text files on your computer, email...). Write it down and keep it in a secure, confidential location that is resistant to adverse conditions like moisture, fire, or other hazards for safe storage." }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
176
175
|
display: "flex",
|
|
177
176
|
alignItems: "stretch",
|
|
178
177
|
gap: "1rem",
|
|
179
178
|
height: "fit-content",
|
|
180
179
|
width: "100%",
|
|
181
|
-
}, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)(isShowSeedPhrase ? "show_seed_phrase" : "hide_seed_phrase"
|
|
180
|
+
}, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)(isShowSeedPhrase ? "show_seed_phrase" : "hide_seed_phrase"), onClick: toggleShowSeedPhrase, sx: {
|
|
182
181
|
aspectRatio: 1,
|
|
183
182
|
} }), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { onClick: handleDone, sx: {
|
|
184
183
|
flex: 1,
|
|
@@ -69,6 +69,7 @@ var ImportWalletViewStep;
|
|
|
69
69
|
ImportWalletViewStep[ImportWalletViewStep["CONFIRM_PASSCODE"] = 1] = "CONFIRM_PASSCODE";
|
|
70
70
|
})(ImportWalletViewStep || (exports.ImportWalletViewStep = ImportWalletViewStep = {}));
|
|
71
71
|
var ImportWalletView = function (props) {
|
|
72
|
+
var theme = (0, material_1.useTheme)();
|
|
72
73
|
var _a = (0, react_2.useState)(""), seedPhrase = _a[0], setSeedPhrase = _a[1];
|
|
73
74
|
var swiperControlledRef = (0, react_2.useRef)(null);
|
|
74
75
|
var childPageLayoutRef = (0, react_2.useRef)(null);
|
|
@@ -112,19 +113,18 @@ var ImportWalletView = function (props) {
|
|
|
112
113
|
alignItems: "center",
|
|
113
114
|
height: "100%",
|
|
114
115
|
gap: "1rem",
|
|
115
|
-
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
116
|
-
color: "text.white",
|
|
117
|
-
fontWeight: "500",
|
|
118
|
-
fontSize: "16px",
|
|
119
|
-
}, children: "Your seed phrase" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
116
|
+
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionTitle), children: "Your seed phrase" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
120
117
|
width: "100%",
|
|
121
118
|
height: "fit-content",
|
|
122
119
|
}, children: (0, jsx_runtime_1.jsx)(material_1.TextareaAutosize, { value: seedPhrase, onChange: handleChangeSeedPhrase, minRows: 8, maxRows: 8, placeholder: "Enter your seed phrase", style: {
|
|
123
120
|
width: "100%",
|
|
124
|
-
backgroundColor:
|
|
125
|
-
borderRadius: "
|
|
121
|
+
backgroundColor: theme.palette.background.black16,
|
|
122
|
+
borderRadius: "0.75rem",
|
|
126
123
|
padding: "1rem",
|
|
127
|
-
color:
|
|
128
|
-
|
|
124
|
+
color: theme.palette.text.white,
|
|
125
|
+
fontSize: theme.typography.fontSize16,
|
|
126
|
+
fontWeight: theme.typography.fontWeight400,
|
|
127
|
+
border: "1px solid ".concat(theme.palette.background.white24),
|
|
128
|
+
} }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionDescription), children: "Your seed phrase is a list of words that are used to create your wallet. It is important to keep it safe and private." }), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100% !important", marginTop: "auto" }, onClick: handleImportWallet, children: "Import" })] }) }) }) }) }));
|
|
129
129
|
};
|
|
130
130
|
exports.default = ImportWalletView;
|
package/dist/theme/mui/theme.js
CHANGED
|
@@ -5,74 +5,86 @@ var theme = (0, styles_1.createTheme)({
|
|
|
5
5
|
palette: {
|
|
6
6
|
primary: {
|
|
7
7
|
main: "#ffffff",
|
|
8
|
+
light: "rgba(255, 255, 255, 0.64)",
|
|
9
|
+
dark: "rgba(255, 255, 255, 0.24)",
|
|
10
|
+
contrastText: "#ff0000",
|
|
8
11
|
},
|
|
9
12
|
secondary: {
|
|
10
13
|
main: "#01FF00",
|
|
14
|
+
contrastText: "#0000ff",
|
|
11
15
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
background: {
|
|
17
|
+
white: "#ffffff",
|
|
18
|
+
white64: "rgba(255, 255, 255, 0.64)",
|
|
19
|
+
white24: "rgba(255, 255, 255, 0.24)",
|
|
20
|
+
white16: "rgba(255, 255, 255, 0.16)",
|
|
21
|
+
black: "#000000",
|
|
22
|
+
black64: "rgba(0, 0, 0, 0.64)",
|
|
23
|
+
black24: "rgba(0, 0, 0, 0.24)",
|
|
24
|
+
black16: "rgba(0, 0, 0, 0.16)",
|
|
16
25
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_80: "rgba(255, 255, 255, 0.8)",
|
|
26
|
+
text: {
|
|
27
|
+
white: "#ffffff",
|
|
28
|
+
white64: "rgba(255, 255, 255, 0.64)",
|
|
29
|
+
white24: "rgba(255, 255, 255, 0.24)",
|
|
22
30
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
divider: "rgba(255, 255, 255, 0.16)",
|
|
32
|
+
},
|
|
33
|
+
typography: {
|
|
34
|
+
fontSize10: "0.625rem",
|
|
35
|
+
fontSize11: "0.6875rem",
|
|
36
|
+
fontSize12: "0.75rem",
|
|
37
|
+
fontSize13: "0.8125rem",
|
|
38
|
+
fontSize14: "0.875rem",
|
|
39
|
+
fontSize15: "0.9375rem",
|
|
40
|
+
fontSize16: "1rem",
|
|
41
|
+
fontSize17: "1.0625rem",
|
|
42
|
+
fontSize18: "1.125rem",
|
|
43
|
+
fontSize19: "1.1875rem",
|
|
44
|
+
fontSize20: "1.25rem",
|
|
45
|
+
fontSize21: "1.3125rem",
|
|
46
|
+
fontSize22: "1.375rem",
|
|
47
|
+
fontSize24: "1.5rem",
|
|
48
|
+
fontWeight300: 300,
|
|
49
|
+
fontWeight400: 400,
|
|
50
|
+
fontWeight500: 500,
|
|
51
|
+
fontWeight600: 600,
|
|
52
|
+
fontWeight700: 700,
|
|
53
|
+
},
|
|
54
|
+
spacing: 8,
|
|
55
|
+
mixins: {
|
|
56
|
+
pagePadding: {
|
|
57
|
+
paddingLeft: "1rem",
|
|
58
|
+
paddingRight: "1rem",
|
|
59
|
+
paddingTop: "1rem",
|
|
60
|
+
paddingBottom: "2rem",
|
|
27
61
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
62
|
+
sessionTitle: {
|
|
63
|
+
color: "#ffffff",
|
|
64
|
+
fontWeight: 600,
|
|
65
|
+
fontSize: "1.125rem",
|
|
66
|
+
textAlign: "center",
|
|
32
67
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
_14: "0.875rem",
|
|
39
|
-
_15: "0.9375rem",
|
|
40
|
-
_16: "1rem",
|
|
41
|
-
_17: "1.0625rem",
|
|
42
|
-
_18: "1.125rem",
|
|
43
|
-
_19: "1.1875rem",
|
|
44
|
-
_20: "1.25rem",
|
|
45
|
-
_21: "1.3125rem",
|
|
46
|
-
_22: "1.375rem",
|
|
47
|
-
_23: "1.4375rem",
|
|
48
|
-
_24: "1.5rem",
|
|
49
|
-
_25: "1.5625rem",
|
|
50
|
-
_26: "1.625rem",
|
|
51
|
-
_27: "1.6875rem",
|
|
52
|
-
_28: "1.75rem",
|
|
53
|
-
_29: "1.8125rem",
|
|
54
|
-
_30: "1.875rem",
|
|
68
|
+
sessionDescription: {
|
|
69
|
+
color: "text.white64",
|
|
70
|
+
fontWeight: 400,
|
|
71
|
+
fontSize: "0.875rem",
|
|
72
|
+
textAlign: "center",
|
|
55
73
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
_800: "800",
|
|
74
|
+
headerTitle: {
|
|
75
|
+
color: "text.white",
|
|
76
|
+
fontWeight: 600,
|
|
77
|
+
fontSize: "1rem",
|
|
78
|
+
textAlign: "center",
|
|
62
79
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
_160: "160%",
|
|
68
|
-
_180: "180%",
|
|
80
|
+
noteContent: {
|
|
81
|
+
color: "text.white64",
|
|
82
|
+
fontWeight: 400,
|
|
83
|
+
fontSize: "0.75rem",
|
|
69
84
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
pageTop: "1rem",
|
|
73
|
-
pageBottom: "2rem",
|
|
85
|
+
theBorderRadius: {
|
|
86
|
+
full: "100%",
|
|
74
87
|
},
|
|
75
88
|
},
|
|
76
|
-
spacing: function (factor) { return "".concat(factor * 1, "rem"); },
|
|
77
89
|
});
|
|
78
90
|
exports.default = theme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tek-wallet",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.121",
|
|
4
4
|
"description": "A custom React provider with TypeScript support",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -62,5 +62,9 @@
|
|
|
62
62
|
},
|
|
63
63
|
"files": [
|
|
64
64
|
"dist/**/*"
|
|
65
|
-
]
|
|
65
|
+
],
|
|
66
|
+
"repository": {
|
|
67
|
+
"type": "git",
|
|
68
|
+
"url": "https://github.com/TheHappyLife/tek-wallet"
|
|
69
|
+
}
|
|
66
70
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const sessionTitle: {
|
|
2
|
-
color: string;
|
|
3
|
-
fontWeight: any;
|
|
4
|
-
fontSize: any;
|
|
5
|
-
};
|
|
6
|
-
export declare const sessionDescription: {
|
|
7
|
-
color: string;
|
|
8
|
-
fontWeight: any;
|
|
9
|
-
fontSize: any;
|
|
10
|
-
textAlign: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const headerTitle: {
|
|
13
|
-
color: string;
|
|
14
|
-
fontWeight: any;
|
|
15
|
-
fontSize: any;
|
|
16
|
-
};
|
|
17
|
-
export declare const noteContent: {
|
|
18
|
-
color: string;
|
|
19
|
-
fontWeight: any;
|
|
20
|
-
fontSize: any;
|
|
21
|
-
};
|
package/dist/theme/mui/styles.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
exports.noteContent = exports.headerTitle = exports.sessionDescription = exports.sessionTitle = void 0;
|
|
7
|
-
var theme_1 = __importDefault(require("./theme"));
|
|
8
|
-
exports.sessionTitle = {
|
|
9
|
-
color: "whiteText.main",
|
|
10
|
-
fontWeight: theme_1.default.palette.fontWeight._600,
|
|
11
|
-
fontSize: theme_1.default.palette.fontSize._16,
|
|
12
|
-
};
|
|
13
|
-
exports.sessionDescription = {
|
|
14
|
-
color: "whiteText._80",
|
|
15
|
-
fontWeight: theme_1.default.palette.fontWeight._400,
|
|
16
|
-
fontSize: theme_1.default.palette.fontSize._14,
|
|
17
|
-
textAlign: "center",
|
|
18
|
-
};
|
|
19
|
-
exports.headerTitle = {
|
|
20
|
-
color: "whiteText.main",
|
|
21
|
-
fontWeight: theme_1.default.palette.fontWeight._600,
|
|
22
|
-
fontSize: theme_1.default.palette.fontSize._16,
|
|
23
|
-
};
|
|
24
|
-
exports.noteContent = {
|
|
25
|
-
color: "whiteText._80",
|
|
26
|
-
fontWeight: theme_1.default.palette.fontWeight._400,
|
|
27
|
-
fontSize: theme_1.default.palette.fontSize._12,
|
|
28
|
-
};
|