tek-wallet 0.0.639 → 0.0.640

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.
@@ -34,7 +34,7 @@ var DRAWER_DIRECTION;
34
34
  DRAWER_DIRECTION["BOTTOM"] = "bottom";
35
35
  })(DRAWER_DIRECTION || (exports.DRAWER_DIRECTION = DRAWER_DIRECTION = {}));
36
36
  var DrawerComponent = (0, react_1.forwardRef)(function (props, ref) {
37
- var onOpen = props.onOpen, onClose = props.onClose, onToggle = props.onToggle, sx = props.sx, trigger = props.trigger, direction = props.direction, children = props.children, disableSwipe = props.disableSwipe, rest = __rest(props, ["onOpen", "onClose", "onToggle", "sx", "trigger", "direction", "children", "disableSwipe"]);
37
+ var onOpen = props.onOpen, onClose = props.onClose, onToggle = props.onToggle, sx = props.sx, trigger = props.trigger, direction = props.direction, children = props.children, disableSwipe = props.disableSwipe, className = props.className, rest = __rest(props, ["onOpen", "onClose", "onToggle", "sx", "trigger", "direction", "children", "disableSwipe", "className"]);
38
38
  var _a = (0, react_1.useState)(false), isShowDrawerComponent = _a[0], setIsShowDrawerComponent = _a[1];
39
39
  var _b = (0, react_1.useState)(undefined), isOpen = _b[0], setIsOpen = _b[1];
40
40
  var DrawerComponent = (0, react_1.useMemo)(function () { return (isOpen !== undefined || disableSwipe ? material_1.Drawer : material_1.SwipeableDrawer); }, [isOpen, disableSwipe]);
@@ -86,7 +86,7 @@ var DrawerComponent = (0, react_1.forwardRef)(function (props, ref) {
86
86
  setIsShowDrawerComponent(true);
87
87
  onOpen === null || onOpen === void 0 ? void 0 : onOpen(e);
88
88
  };
89
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ display: "inline-block" }, sx), onClick: toggle, children: trigger }), (0, jsx_runtime_1.jsx)(DrawerComponent, __assign({}, rest, { sx: {
89
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ display: "inline-block" }, sx), className: className, onClick: toggle, children: trigger }), (0, jsx_runtime_1.jsx)(DrawerComponent, __assign({}, rest, { sx: {
90
90
  "& .MuiDrawer-paper": {
91
91
  backgroundColor: "transparent",
92
92
  overflow: "hidden",
@@ -81,6 +81,7 @@ exports.SwapFunction = (0, react_1.forwardRef)(function (props, ref) {
81
81
  var _a, _b, _c, _d, _e, _f, _g;
82
82
  var drawerRef = (0, react_1.useRef)(null);
83
83
  var swiperRef = (0, react_1.useRef)(null);
84
+ var sx = props.sx, className = props.className;
84
85
  var theme = (0, ThemeProvider_1.useTheme)();
85
86
  var _h = (0, react_1.useState)(SwapStep.SELECT_SWAP), currentStep = _h[0], setCurrentStep = _h[1];
86
87
  var _j = (0, react_1.useState)(null), selectedToken = _j[0], setSelectedToken = _j[1];
@@ -144,7 +145,7 @@ exports.SwapFunction = (0, react_1.forwardRef)(function (props, ref) {
144
145
  open: open,
145
146
  close: close,
146
147
  }); });
147
- return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: drawerRef, trigger: props.children, onOpen: props.onOpen, onClose: handleOnClose, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { sx: {
148
+ return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { className: className, sx: sx, ref: drawerRef, trigger: props.children, onOpen: props.onOpen, onClose: handleOnClose, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { sx: {
148
149
  padding: theme.mixins.pagePadding,
149
150
  position: "relative",
150
151
  }, header: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.639",
3
+ "version": "0.0.640",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",