tek-wallet 0.0.84 → 0.0.85

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.
@@ -1,5 +1,16 @@
1
1
  "use strict";
2
2
  "use client";
3
+ var __assign = (this && this.__assign) || function () {
4
+ __assign = Object.assign || function(t) {
5
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
6
+ s = arguments[i];
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
8
+ t[p] = s[p];
9
+ }
10
+ return t;
11
+ };
12
+ return __assign.apply(this, arguments);
13
+ };
3
14
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
15
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
16
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -45,7 +56,6 @@ var jsx_runtime_1 = require("react/jsx-runtime");
45
56
  var DefaultPageLayout_1 = __importDefault(require("../../../components/layouts/DefaultPageLayout"));
46
57
  var SwiperControlled_1 = __importDefault(require("../../../components/ui/SwiperControlled"));
47
58
  var react_1 = require("swiper/react");
48
- var TheBackground_1 = __importDefault(require("../../../components/ui/TheBackground"));
49
59
  var ChildPageLayout_1 = __importDefault(require("../../../components/layouts/ChildPageLayout"));
50
60
  var PageHeader_1 = __importDefault(require("../../../components/ui/PageHeader"));
51
61
  var react_2 = require("react");
@@ -96,36 +106,25 @@ var ImportWalletView = function (props) {
96
106
  }
97
107
  });
98
108
  }); };
99
- return ((0, jsx_runtime_1.jsx)(TheBackground_1.default, { sx: {
100
- height: "100%",
101
- width: "100%",
102
- }, children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { ref: childPageLayoutRef, header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { overrideBack: props.onBack, title: "Import wallet" }), children: (0, jsx_runtime_1.jsx)(DefaultPageLayout_1.default, { sx: {
103
- display: "flex",
104
- flexDirection: "column",
105
- gap: "1rem",
106
- height: "100%",
107
- width: "100%",
108
- }, children: (0, jsx_runtime_1.jsx)(SwiperControlled_1.default, { ref: swiperControlledRef,
109
- // className="size-full"
110
- disableSwipe: true, children: (0, jsx_runtime_1.jsx)(react_1.SwiperSlide, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
111
- display: "flex",
112
- flexDirection: "column",
113
- justifyContent: "center",
114
- hFull: "100%",
115
- gap: "1rem",
116
- }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
117
- color: "text.white",
118
- fontWeight: "500",
119
- fontSize: "16px",
120
- }, children: "Your seed phrase" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
109
+ return ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { ref: childPageLayoutRef, header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { overrideBack: props.onBack, title: "Import wallet" }), children: (0, jsx_runtime_1.jsx)(DefaultPageLayout_1.default, { sx: __assign({ display: "flex", flexDirection: "column", gap: "1rem", height: "100%" }, props.sx), children: (0, jsx_runtime_1.jsx)(SwiperControlled_1.default, { ref: swiperControlledRef, disableSwipe: true, sx: { height: "100%" }, children: (0, jsx_runtime_1.jsx)(react_1.SwiperSlide, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
110
+ display: "flex",
111
+ flexDirection: "column",
112
+ justifyContent: "center",
113
+ alignItems: "center",
114
+ height: "100%",
115
+ gap: "1rem",
116
+ }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
117
+ color: "text.white",
118
+ fontWeight: "500",
119
+ fontSize: "16px",
120
+ }, children: "Your seed phrase" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
121
+ width: "100%",
122
+ height: "fit-content",
123
+ }, children: (0, jsx_runtime_1.jsx)(material_1.TextareaAutosize, { value: seedPhrase, onChange: handleChangeSeedPhrase, minRows: 8, maxRows: 8, placeholder: "Enter your seed phrase", style: {
121
124
  width: "100%",
122
- height: "fit-content",
123
- }, children: (0, jsx_runtime_1.jsx)(material_1.TextareaAutosize, { value: seedPhrase, onChange: handleChangeSeedPhrase, minRows: 8, maxRows: 8, placeholder: "Enter your seed phrase", style: {
124
- width: "100%",
125
- height: "100%",
126
- backgroundColor: "ui.background.primary",
127
- borderRadius: "lg",
128
- padding: "4px",
129
- } }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { className: "text-ui-text-white font-400 text-13 text-center", 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, { className: "w-full mt-auto", onClick: handleImportWallet, children: "Import" })] }) }) }) }) }) }));
125
+ backgroundColor: "ui.background.primary",
126
+ borderRadius: "lg",
127
+ padding: "1rem",
128
+ } }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { className: "text-ui-text-white font-400 text-13 text-center", 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, { className: "w-full mt-auto", onClick: handleImportWallet, children: "Import" })] }) }) }) }) }));
130
129
  };
131
130
  exports.default = ImportWalletView;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.84",
3
+ "version": "0.0.85",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",