@arcblock/ux 3.0.12 → 3.0.13

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 (73) hide show
  1. package/lib/ActivityIndicator/index.js +16 -16
  2. package/lib/Alert/index.js +17 -17
  3. package/lib/AnimationWaiter/index.js +13 -13
  4. package/lib/Blocklet/blocklet.js +15 -15
  5. package/lib/Blocklet/utils.d.ts +1 -1
  6. package/lib/Blocklet/utils.js +5 -6
  7. package/lib/BlockletNFT/index.js +23 -23
  8. package/lib/BlockletV2/utils.d.ts +1 -1
  9. package/lib/BlockletV2/utils.js +6 -7
  10. package/lib/Center/index.js +6 -7
  11. package/lib/CodeBlock/LightBox.d.ts +3 -2
  12. package/lib/CodeBlock/LightBox.js +2 -3
  13. package/lib/CookieConsent/index.js +1 -1
  14. package/lib/CountDown/index.js +23 -24
  15. package/lib/Datatable/CustomToolbar.js +71 -71
  16. package/lib/Datatable/TableSearch.js +18 -18
  17. package/lib/Datatable/index.js +77 -77
  18. package/lib/Earth/index.js +46 -47
  19. package/lib/Footer/index.js +8 -8
  20. package/lib/Icon/image.js +16 -17
  21. package/lib/InfoRow/index.js +11 -11
  22. package/lib/Layout/dashboard/index.js +18 -20
  23. package/lib/Layout/dashboard/sidebar.js +12 -12
  24. package/lib/Layout/dashboard-legacy/index.js +20 -20
  25. package/lib/Layout/dashboard-legacy/sidebar.js +16 -16
  26. package/lib/Layout/index.js +29 -29
  27. package/lib/Metric/index.js +9 -9
  28. package/lib/NFTDisplay/svg-embedder/inline-svg.js +6 -7
  29. package/lib/PricingTable/index.js +9 -9
  30. package/lib/Result/result.js +14 -14
  31. package/lib/Screenshot/BaseScreenshot/index.js +9 -10
  32. package/lib/Screenshot/index.js +26 -27
  33. package/lib/Video/index.js +11 -11
  34. package/lib/Wallet/Action.js +12 -12
  35. package/lib/Wallet/Download.js +11 -11
  36. package/lib/WechatPrompt/index.js +1 -1
  37. package/package.json +7 -7
  38. package/src/ActivityIndicator/index.jsx +2 -3
  39. package/src/Address/Address.stories.jsx +1 -2
  40. package/src/Alert/index.jsx +2 -2
  41. package/src/AnimationWaiter/index.jsx +2 -2
  42. package/src/Blocklet/blocklet.jsx +2 -2
  43. package/src/Blocklet/utils.jsx +1 -2
  44. package/src/BlockletNFT/index.jsx +2 -2
  45. package/src/BlockletV2/utils.js +1 -2
  46. package/src/Center/index.tsx +1 -2
  47. package/src/CodeBlock/LightBox.tsx +1 -2
  48. package/src/Colors/Colors.stories.jsx +1 -1
  49. package/src/CookieConsent/index.tsx +1 -1
  50. package/src/CountDown/index.tsx +2 -2
  51. package/src/DID/DID.stories.jsx +1 -2
  52. package/src/Datatable/CustomToolbar.jsx +2 -3
  53. package/src/Datatable/TableSearch.jsx +2 -2
  54. package/src/Datatable/index.jsx +4 -4
  55. package/src/Earth/index.tsx +2 -3
  56. package/src/Footer/index.tsx +1 -1
  57. package/src/Icon/image.tsx +1 -2
  58. package/src/InfoRow/index.tsx +2 -2
  59. package/src/Layout/dashboard/index.tsx +1 -3
  60. package/src/Layout/dashboard/sidebar.tsx +2 -2
  61. package/src/Layout/dashboard-legacy/index.tsx +1 -1
  62. package/src/Layout/dashboard-legacy/sidebar.tsx +2 -2
  63. package/src/Layout/index.tsx +1 -2
  64. package/src/Metric/index.tsx +2 -2
  65. package/src/NFTDisplay/svg-embedder/inline-svg.tsx +2 -2
  66. package/src/PricingTable/index.tsx +2 -2
  67. package/src/Result/result.tsx +1 -1
  68. package/src/Screenshot/BaseScreenshot/index.tsx +2 -2
  69. package/src/Screenshot/index.tsx +3 -3
  70. package/src/Video/index.tsx +2 -2
  71. package/src/Wallet/Action.tsx +2 -2
  72. package/src/Wallet/Download.tsx +2 -2
  73. package/src/WechatPrompt/index.tsx +1 -1
@@ -1,26 +1,26 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
2
  import g from "@arcblock/react-hooks/lib/useBrowser";
3
- import { Box as v, Typography as f } from "@mui/material";
3
+ import { Typography as f } from "@mui/material";
4
4
  import a from "lodash/isUndefined";
5
- import b from "./images/app-store.svg.js";
6
- import x from "./images/google-play.svg.js";
5
+ import v from "./images/app-store.svg.js";
6
+ import b from "./images/google-play.svg.js";
7
7
  import L from "./images/android_download.svg.js";
8
8
  import i from "../Button/index.js";
9
9
  import { mergeProps as k } from "../Util/index.js";
10
- import { styled as D } from "../Theme/index.js";
11
- function N(t) {
10
+ import { styled as x } from "../Theme/index.js";
11
+ function D(t) {
12
12
  const l = g(), o = Object.assign({}, t);
13
13
  a(o.title) && (o.title = "Download DID Wallet"), a(o.layout) && (o.layout = "vertical"), a(o.storeLayout) && (o.storeLayout = "horizontal"), a(o.locale) && (o.locale = "zh"), a(o.iosLink) && (o.iosLink = "https://itunes.apple.com/app/id1460083542"), a(o.androidLink) && (o.androidLink = "https://play.google.com/store/apps/details?id=com.arcblock.wallet.app.product"), a(o.androidDownLoadUrl) && (o.androidDownLoadUrl = "https://releases.arcblockio.cn/arcwallet_android/latest/abtwallet.apk"), a(o.style) && (o.style = {});
14
- const h = k(o, N, ["style"]), { title: d, children: s, iosLink: c, androidLink: m, androidDownLoadUrl: p, locale: n, ...w } = h, y = l.mobile.android.phone || l.mobile.android.tablet, u = l.mobile.apple.phone || l.mobile.apple.tablet;
15
- return /* @__PURE__ */ r($, { ...w, children: [
14
+ const h = k(o, D, ["style"]), { title: d, children: s, iosLink: c, androidLink: m, androidDownLoadUrl: p, locale: n, ...w } = h, y = l.mobile.android.phone || l.mobile.android.tablet, u = l.mobile.apple.phone || l.mobile.apple.tablet;
15
+ return /* @__PURE__ */ r(N, { ...w, children: [
16
16
  /* @__PURE__ */ r("div", { className: "download-text", children: [
17
17
  !!d && /* @__PURE__ */ e(f, { className: "download-title", component: "div", children: d }),
18
18
  s && /* @__PURE__ */ e(f, { className: "download-extra", component: "div", children: s })
19
19
  ] }),
20
20
  !l.mobile.any && /* @__PURE__ */ r("div", { className: "download-store-list", children: [
21
- /* @__PURE__ */ e(i, { className: "download-link", component: "a", href: c, children: /* @__PURE__ */ e(b, {}) }),
21
+ /* @__PURE__ */ e(i, { className: "download-link", component: "a", href: c, children: /* @__PURE__ */ e(v, {}) }),
22
22
  n === "zh" && /* @__PURE__ */ e(i, { component: "a", className: "download-link", href: p, children: /* @__PURE__ */ e(L, {}) }),
23
- n === "en" && /* @__PURE__ */ e(i, { component: "a", className: "download-link", href: m, children: /* @__PURE__ */ e(x, {}) })
23
+ n === "en" && /* @__PURE__ */ e(i, { component: "a", className: "download-link", href: m, children: /* @__PURE__ */ e(b, {}) })
24
24
  ] }),
25
25
  y && /* @__PURE__ */ r("div", { className: "download-store-list", children: [
26
26
  n === "zh" && /* @__PURE__ */ e(i, { component: "a", href: p, variant: "outlined", color: "primary", children: "本地下载" }),
@@ -29,7 +29,7 @@ function N(t) {
29
29
  u && /* @__PURE__ */ e("div", { className: "download-store-list", children: /* @__PURE__ */ e(i, { component: "a", href: c, variant: "outlined", color: "primary", children: "Download" }) })
30
30
  ] });
31
31
  }
32
- const $ = D(v)`
32
+ const N = x("div")`
33
33
  display: flex;
34
34
  flex-direction: ${(t) => t.layout === "vertical" ? "column" : "row"};
35
35
  align-items: center;
@@ -60,5 +60,5 @@ const $ = D(v)`
60
60
  }
61
61
  `;
62
62
  export {
63
- N as default
63
+ D as default
64
64
  };
@@ -20,7 +20,7 @@ function u() {
20
20
  ] })
21
21
  ] }) });
22
22
  }
23
- const c = s(Box)`
23
+ const c = s("div")`
24
24
  .wechat-title {
25
25
  height: 80px;
26
26
  line-height: 80px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "3.0.12",
3
+ "version": "3.0.13",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -60,16 +60,16 @@
60
60
  "react": "^19.0.0",
61
61
  "react-router-dom": "^6.22.3"
62
62
  },
63
- "gitHead": "ebe824e4b0ddfc1cbdd9ffecc22283e57a58c042",
63
+ "gitHead": "2c404ff0a38e52d197334a035160b5eddf56df07",
64
64
  "dependencies": {
65
- "@arcblock/bridge": "3.0.12",
65
+ "@arcblock/bridge": "3.0.13",
66
66
  "@arcblock/did": "^1.20.15",
67
67
  "@arcblock/did-motif": "^1.1.13",
68
- "@arcblock/icons": "3.0.12",
69
- "@arcblock/nft-display": "3.0.12",
70
- "@arcblock/react-hooks": "3.0.12",
68
+ "@arcblock/icons": "3.0.13",
69
+ "@arcblock/nft-display": "3.0.13",
70
+ "@arcblock/react-hooks": "3.0.13",
71
71
  "@blocklet/js-sdk": "^1.16.45",
72
- "@blocklet/theme": "3.0.12",
72
+ "@blocklet/theme": "3.0.13",
73
73
  "@fontsource/roboto": "~5.1.1",
74
74
  "@fontsource/ubuntu-mono": "^5.2.6",
75
75
  "@iconify-icons/logos": "^1.2.36",
@@ -1,7 +1,6 @@
1
1
  import { useEffect, useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { green, blue } from '@mui/material/colors';
4
- import { Box } from '@mui/material';
5
4
 
6
5
  import Logo from '../Logo';
7
6
  import { styled, useTheme } from '../Theme';
@@ -55,7 +54,7 @@ ActivityIndicator.propTypes = {
55
54
  messages: PropTypes.arrayOf(PropTypes.string.isRequired),
56
55
  };
57
56
 
58
- const Div = styled(Box)`
57
+ const Div = styled('div')`
59
58
  && {
60
59
  box-sizing: border-box;
61
60
  padding: 20px;
@@ -114,7 +113,7 @@ Orbit.propTypes = {
114
113
  duration: PropTypes.number,
115
114
  };
116
115
 
117
- const OrbitRoot = styled(Box)`
116
+ const OrbitRoot = styled('div')`
118
117
  @keyframes orbit {
119
118
  0% {
120
119
  transform: rotate(0deg);
@@ -1,4 +1,3 @@
1
- import { Box } from '@mui/material';
2
1
  import { styled } from '../Theme';
3
2
 
4
3
  export { default as WithDifferentSizes } from './demo/with-different-sizes';
@@ -24,7 +23,7 @@ export default {
24
23
  ],
25
24
  };
26
25
 
27
- const ResizableContainer = styled(Box)`
26
+ const ResizableContainer = styled('div')`
28
27
  width: 600px;
29
28
  max-width: 100%;
30
29
  padding: 16px;
@@ -1,5 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
- import { Box, Typography } from '@mui/material';
2
+ import { Typography } from '@mui/material';
3
3
  import { blueGrey } from '@mui/material/colors';
4
4
  import isUndefined from 'lodash/isUndefined';
5
5
 
@@ -106,7 +106,7 @@ Alert.propTypes = {
106
106
 
107
107
  export default withDeprecated(Alert, { name: 'Alert', alternative: '@mui/material/Alert' });
108
108
 
109
- const Container = styled(Box)`
109
+ const Container = styled('div')`
110
110
  display: flex;
111
111
  align-items: center;
112
112
  font-size: 16px;
@@ -1,5 +1,5 @@
1
1
  import { useState, useEffect, useRef } from 'react';
2
- import { Box, Skeleton } from '@mui/material';
2
+ import { Skeleton } from '@mui/material';
3
3
 
4
4
  import PropTypes from 'prop-types';
5
5
  import Lottie from 'react-lottie-player';
@@ -214,7 +214,7 @@ AnimationWaiter.propTypes = {
214
214
  increaseSpeed: PropTypes.number,
215
215
  };
216
216
 
217
- const Container = styled(Box)`
217
+ const Container = styled('div')`
218
218
  display: flex;
219
219
  justify-content: center;
220
220
  align-items: center;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable react/no-danger */
2
2
  import { isValidElement } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { Box, CircularProgress, Typography, useMediaQuery } from '@mui/material';
4
+ import { CircularProgress, Typography, useMediaQuery } from '@mui/material';
5
5
 
6
6
  import Avatar from '../Avatar';
7
7
  import Button from '../Button';
@@ -9,7 +9,7 @@ import Img from '../Img';
9
9
  import { useTheme, styled } from '../Theme';
10
10
  import { strippedString } from './utils';
11
11
 
12
- const Div = styled(Box)`
12
+ const Div = styled('div')`
13
13
  &.arcblock-blocklet {
14
14
  padding: ${(props) => props.theme.spacing(2)} ${(props) => props.theme.spacing(2)} 0
15
15
  ${(props) => props.theme.spacing(2)};
@@ -1,7 +1,6 @@
1
- import { Box } from '@mui/material';
2
1
  import { styled } from '../Theme';
3
2
 
4
- const ActionButton = styled(Box)`
3
+ const ActionButton = styled('div')`
5
4
  background-color: transparent !important;
6
5
  & > :not(.Mui-disabled) {
7
6
  position: relative;
@@ -1,6 +1,6 @@
1
1
  import { useRef } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { Portal, Typography, CircularProgress, useMediaQuery, Box } from '@mui/material';
3
+ import { Portal, Typography, CircularProgress, useMediaQuery } from '@mui/material';
4
4
 
5
5
  import Avatar from '../Avatar';
6
6
  import Icon from '../Icon';
@@ -25,7 +25,7 @@ function prettySize(_size, digits = 1) {
25
25
  return _size && `${size}${list[index]}`;
26
26
  }
27
27
 
28
- const Div = styled(Box)`
28
+ const Div = styled('div')`
29
29
  &.arcblock-blocklet {
30
30
  padding: 0 16px;
31
31
  background: ${(props) => props.theme.palette.common.white};
@@ -1,7 +1,6 @@
1
- import { Box } from '@mui/material';
2
1
  import { styled } from '../Theme';
3
2
 
4
- const ActionButton = styled(Box)`
3
+ const ActionButton = styled('div')`
5
4
  background-color: transparent !important;
6
5
  & > :not(.Mui-disabled) {
7
6
  position: relative;
@@ -1,4 +1,3 @@
1
- import { Box } from '@mui/material';
2
1
  import { styled } from '../Theme';
3
2
 
4
3
  export default function Center({
@@ -23,7 +22,7 @@ export default function Center({
23
22
  return <Div style={style}>{children}</Div>;
24
23
  }
25
24
 
26
- const Div = styled(Box)`
25
+ const Div = styled('div')`
27
26
  flex: 1;
28
27
  width: 100vw;
29
28
  height: 100vh;
@@ -1,8 +1,7 @@
1
1
  // highlight.js/styles/atom-one-light.css
2
2
  import styled from '@emotion/styled';
3
- import { Box } from '@mui/material';
4
3
 
5
- const LightBox = styled(Box)`
4
+ const LightBox = styled('div')`
6
5
  display: block;
7
6
  pre code.hljs {
8
7
  display: block;
@@ -205,7 +205,7 @@ export function MuiThemeBoxButton() {
205
205
 
206
206
  MuiThemeBoxButton.storyName = 'mui theme & Box/Button';
207
207
 
208
- const StyledComponentTestBox = styled(Box)`
208
+ const StyledComponentTestBox = styled('div')`
209
209
  padding: 16px;
210
210
  background-color: ${colors.success.main};
211
211
  `;
@@ -70,7 +70,7 @@ export default function DefaultCookieConsent({
70
70
  );
71
71
  }
72
72
 
73
- const Wrapper = styled(Box)`
73
+ const Wrapper = styled('div')`
74
74
  box-sizing: border-box;
75
75
  position: fixed;
76
76
  right: 20px;
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'react';
2
- import { Box, type SxProps } from '@mui/material';
2
+ import { type SxProps } from '@mui/material';
3
3
  import isUndefined from 'lodash/isUndefined';
4
4
 
5
5
  import { getColor, mergeProps } from '../Util';
@@ -118,7 +118,7 @@ export default class CountDown extends Component<CountDownProps, CountDownState>
118
118
  const textBackground = `linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
119
119
  linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5) 77%, rgba(0, 0, 0, 0.5))`;
120
120
 
121
- const Container = styled(Box, { shouldForwardProp: (prop) => prop !== 'dark' })<{ dark: boolean }>`
121
+ const Container = styled('div', { shouldForwardProp: (prop) => prop !== 'dark' })<{ dark: boolean }>`
122
122
  color: ${(props) => getColor(props)};
123
123
  font-size: 50px;
124
124
  display: flex;
@@ -1,4 +1,3 @@
1
- import { Box } from '@mui/material';
2
1
  import { styled } from '../Theme';
3
2
 
4
3
  export { default as ActionTest } from './demo/action-test';
@@ -23,7 +22,7 @@ export default {
23
22
  ],
24
23
  };
25
24
 
26
- const ResizableContainer = styled(Box)`
25
+ const ResizableContainer = styled('div')`
27
26
  width: 100%;
28
27
  max-width: 100%;
29
28
  padding: 16px;
@@ -19,7 +19,6 @@ import {
19
19
  MenuItem,
20
20
  Tooltip,
21
21
  IconButton,
22
- Box,
23
22
  } from '@mui/material';
24
23
  import { useDeepCompareEffect } from 'ahooks';
25
24
 
@@ -351,7 +350,7 @@ CustomToolbar.propTypes = {
351
350
  tableRef: PropTypes.func.isRequired,
352
351
  };
353
352
 
354
- const Container = styled(Box)`
353
+ const Container = styled('div')`
355
354
  display: flex;
356
355
  align-items: center;
357
356
  height: 56px;
@@ -413,7 +412,7 @@ const Container = styled(Box)`
413
412
  }
414
413
  `;
415
414
 
416
- const ProgressContainer = styled(Box)`
415
+ const ProgressContainer = styled('div')`
417
416
  width: 100%;
418
417
  height: 2px;
419
418
  .toolbar-progress {
@@ -1,6 +1,6 @@
1
1
  import { useState, useRef } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { IconButton, Tooltip, TextField, Box } from '@mui/material';
3
+ import { IconButton, Tooltip, TextField } from '@mui/material';
4
4
  import { Search as SearchIcon, Clear as ClearIcon } from '@mui/icons-material';
5
5
  import clsx from 'clsx';
6
6
  import noop from 'lodash/noop';
@@ -113,7 +113,7 @@ TableSearch.propTypes = {
113
113
  searchClose: PropTypes.func.isRequired,
114
114
  };
115
115
 
116
- const Container = styled(Box)`
116
+ const Container = styled('div')`
117
117
  display: flex;
118
118
  align-items: center;
119
119
  .toolbar-search-area {
@@ -8,7 +8,7 @@ import cloneDeep from 'lodash/cloneDeep';
8
8
  import get from 'lodash/get';
9
9
  import clsx from 'clsx';
10
10
  import { useCreation, useDeepCompareEffect } from 'ahooks';
11
- import { Box, CircularProgress } from '@mui/material';
11
+ import { CircularProgress } from '@mui/material';
12
12
 
13
13
  import Empty from '../Empty';
14
14
  import CustomToolbar from './CustomToolbar';
@@ -66,7 +66,7 @@ import { styled } from '../Theme';
66
66
  * } & ModifiedMUIDataTableProps} DataTableProps
67
67
  */
68
68
 
69
- const FilterLine = styled(Box)`
69
+ const FilterLine = styled('div')`
70
70
  display: flex;
71
71
  align-items: center;
72
72
  .toolbar-filter-content {
@@ -481,7 +481,7 @@ const alignCss = css`
481
481
  }
482
482
  `;
483
483
 
484
- const TableContainer = styled(Box, {
484
+ const TableContainer = styled('div', {
485
485
  shouldForwardProp: (prop) => !['verticalKeyWidth', 'bgColor', 'hoverColor', 'stripColor'].includes(prop),
486
486
  })(({ theme, verticalKeyWidth, bgColor, hoverColor, stripColor }) => {
487
487
  const primaryTextColor = theme.palette.text.primary;
@@ -607,7 +607,7 @@ const TableContainer = styled(Box, {
607
607
  `;
608
608
  });
609
609
 
610
- const FooterContainer = styled(Box)`
610
+ const FooterContainer = styled('div')`
611
611
  display: flex;
612
612
  align-items: center;
613
613
  .datatable-footer {
@@ -4,7 +4,6 @@ import useSpring from 'react-use/lib/useSpring';
4
4
  import * as d3 from 'd3-geo';
5
5
  import * as topojson from 'topojson-client';
6
6
  import versor from 'versor';
7
- import { Box } from '@mui/material';
8
7
 
9
8
  import json from './countries.json';
10
9
  import util from './util';
@@ -394,7 +393,7 @@ type ContainerProps = {
394
393
  colors: Colors;
395
394
  };
396
395
 
397
- const Container = styled(Box)<ContainerProps>`
396
+ const Container = styled('div')<ContainerProps>`
398
397
  background-color: ${(props) => (props.$theme === 'light' ? '#f7f7f7' : '#222')};
399
398
  width: ${(props) => props.width}px;
400
399
  height: ${(props) => props.height}px;
@@ -477,7 +476,7 @@ const Container = styled(Box)<ContainerProps>`
477
476
  }
478
477
  `;
479
478
 
480
- const Tooltip = styled(Box)`
479
+ const Tooltip = styled('div')`
481
480
  position: absolute;
482
481
  width: auto;
483
482
  min-width: 90px;
@@ -63,7 +63,7 @@ type ContainerProps = {
63
63
  dark: boolean;
64
64
  };
65
65
 
66
- const Container = styled(Box, {
66
+ const Container = styled('div', {
67
67
  shouldForwardProp: (prop) => prop !== 'dark',
68
68
  })<ContainerProps>`
69
69
  position: relative;
@@ -1,4 +1,3 @@
1
- import { Box } from '@mui/material';
2
1
  import Img, { type ImgProps } from '../Img';
3
2
  import { styled } from '../Theme';
4
3
 
@@ -37,7 +36,7 @@ export default function ImageIcon({
37
36
  );
38
37
  }
39
38
 
40
- const Div = styled(Box)`
39
+ const Div = styled('div')`
41
40
  position: relative;
42
41
  .badge-point {
43
42
  position: absolute;
@@ -1,6 +1,6 @@
1
1
  import camelCase from 'lodash/camelCase';
2
2
  import upperFirst from 'lodash/upperFirst';
3
- import { Box, Typography } from '@mui/material';
3
+ import { Typography } from '@mui/material';
4
4
 
5
5
  import { styled } from '../Theme';
6
6
 
@@ -51,7 +51,7 @@ type ContainerProps = {
51
51
  width: number;
52
52
  };
53
53
 
54
- const Container = styled(Box)<ContainerProps>`
54
+ const Container = styled('div')<ContainerProps>`
55
55
  display: flex;
56
56
  flex-direction: ${(props) => (props.layout === 'vertical' ? 'column' : 'row')};
57
57
  justify-content: flex-start;
@@ -177,9 +177,7 @@ function Dashboard({
177
177
 
178
178
  type WrapperProps = React.HTMLAttributes<HTMLDivElement> & { sidebarWidth: number };
179
179
 
180
- const Wrapper = styled(Box, {
181
- shouldForwardProp: (prop) => prop !== 'sidebarWidth',
182
- })<WrapperProps>`
180
+ const Wrapper = styled(Box)<WrapperProps>`
183
181
  &.dashboard {
184
182
  display: flex;
185
183
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import { Box, Typography } from '@mui/material';
1
+ import { Typography } from '@mui/material';
2
2
  import clsx from 'clsx';
3
3
  import { styled } from '../../Theme';
4
4
  import { NavLink } from './external-link';
@@ -66,7 +66,7 @@ function Sidebar({ links, addons = undefined, dense = false, ...rest }: SidebarP
66
66
 
67
67
  const gradient = 'linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))';
68
68
 
69
- const Root = styled(Box)`
69
+ const Root = styled('div')`
70
70
  display: flex;
71
71
  flex-direction: column;
72
72
  ul {
@@ -8,7 +8,7 @@ import Header from './header';
8
8
  import Footer from '../../Footer';
9
9
  import { styled } from '../../Theme';
10
10
 
11
- const Wrapper = styled(Box)`
11
+ const Wrapper = styled('div')`
12
12
  &.dashboard {
13
13
  display: flex;
14
14
  flex-direction: column;
@@ -1,6 +1,6 @@
1
1
  import { memo } from 'react';
2
2
  import { Link, useLocation } from 'react-router-dom';
3
- import { Button, Typography, type SxProps, type ButtonProps, Box } from '@mui/material';
3
+ import { Button, Typography, type SxProps, type ButtonProps } from '@mui/material';
4
4
  import { teal } from '@mui/material/colors';
5
5
 
6
6
  import ImageIcon from '../../Icon/image';
@@ -69,7 +69,7 @@ export default function Sidebar({
69
69
  );
70
70
  }
71
71
 
72
- const MenuItems = memo(styled(Box)`
72
+ const MenuItems = memo(styled('div')`
73
73
  flex: 1;
74
74
  display: flex;
75
75
  flex-direction: column;
@@ -13,7 +13,6 @@ import {
13
13
  Typography,
14
14
  type SxProps,
15
15
  ListItemButton,
16
- Box,
17
16
  } from '@mui/material';
18
17
  import { Menu as MenuIcon } from '@mui/icons-material';
19
18
 
@@ -197,7 +196,7 @@ export default function Layout({
197
196
  );
198
197
  }
199
198
 
200
- const Div = styled(Box)`
199
+ const Div = styled('div')`
201
200
  width: 100%;
202
201
  min-height: 100vh;
203
202
  display: flex;
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable react/no-danger */
2
- import { Box, Link } from '@mui/material';
2
+ import { Link } from '@mui/material';
3
3
 
4
4
  import ImageIcon from '../Icon/image';
5
5
  import { styled } from '../Theme';
@@ -56,7 +56,7 @@ type ContainerProps = {
56
56
  size?: 'small' | 'large';
57
57
  };
58
58
 
59
- const Container = styled(Box)<ContainerProps>`
59
+ const Container = styled('div')<ContainerProps>`
60
60
  border-left: 1px solid ${(props) => props.theme.palette.divider};
61
61
  padding: 10px 0 10px 16px;
62
62
  @media (max-width: ${(props) => props.theme.breakpoints.values.sm}px) {
@@ -1,5 +1,5 @@
1
1
  import root from 'react-shadow/emotion';
2
- import { Box, type SxProps } from '@mui/material';
2
+ import { type SxProps } from '@mui/material';
3
3
 
4
4
  import { styled } from '../../Theme';
5
5
 
@@ -23,7 +23,7 @@ const Root = styled(root.span)`
23
23
  height: 100%;
24
24
  `;
25
25
 
26
- const Inner = styled(Box)`
26
+ const Inner = styled('div')`
27
27
  &,
28
28
  & > svg {
29
29
  height: 100%;
@@ -1,4 +1,4 @@
1
- import { Box, Grid } from '@mui/material';
1
+ import { Grid } from '@mui/material';
2
2
 
3
3
  import PricingPlan, { type PricingPlanProps } from './PricingPlan';
4
4
  import { styled } from '../Theme';
@@ -44,7 +44,7 @@ type DivProps = {
44
44
  variant: 'even' | 'odd';
45
45
  };
46
46
 
47
- const Div = styled(Box)<DivProps>`
47
+ const Div = styled('div')<DivProps>`
48
48
  padding: 100px 0;
49
49
  text-align: center;
50
50
  background-color: ${(props) => (props.variant === 'even' ? '#fbfbfb' : '#ffffff')};
@@ -50,7 +50,7 @@ function Result({ icon = null, title = '', description = '', extra = null, ...re
50
50
  );
51
51
  }
52
52
 
53
- const Root = styled(Box)`
53
+ const Root = styled('div')`
54
54
  box-sizing: border-box;
55
55
  display: flex;
56
56
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import { Box, type SxProps } from '@mui/material';
1
+ import { type SxProps } from '@mui/material';
2
2
 
3
3
  import phone from './shells/Phone';
4
4
  import macbook from './shells/Macbook';
@@ -20,7 +20,7 @@ function Screenshot({ width = 0, children, type = 'phone', ...rest }: Screenshot
20
20
 
21
21
  const { Shell, ratio, screenData, width: defaultWidth } = map[(_type as keyof typeof map) || 'phone'];
22
22
 
23
- const Root = styled(Box)`
23
+ const Root = styled('div')`
24
24
  position: relative;
25
25
  display: inline-block;
26
26
  width: ${width || `${defaultWidth}px`};
@@ -1,5 +1,5 @@
1
1
  import { createElement, Children, cloneElement, useEffect, useRef, useState } from 'react';
2
- import { Box, type SxProps } from '@mui/material';
2
+ import { type SxProps } from '@mui/material';
3
3
  import isUndefined from 'lodash/isUndefined';
4
4
 
5
5
  import { mergeProps } from '../Util';
@@ -195,7 +195,7 @@ type DivProps = {
195
195
  contentZIndex: number;
196
196
  };
197
197
 
198
- const Div = styled(Box)<DivProps>`
198
+ const Div = styled('div')<DivProps>`
199
199
  @media (max-width: ${(props) => types[props.type].width}px) {
200
200
  transform-origin: 0 0;
201
201
  transform: scale(${(props) => types[props.type].scale});
@@ -266,7 +266,7 @@ function ScreenFixer({ ...props }: ScreenFixerProps) {
266
266
  );
267
267
  }
268
268
 
269
- const ReScreen = styled(Box)`
269
+ const ReScreen = styled('div')`
270
270
  div[type] {
271
271
  transform: scale(1);
272
272
  transform-origin: 0 0;
@@ -1,6 +1,6 @@
1
1
  import { useState } from 'react';
2
2
  import Player from 'react-player';
3
- import { Box, CircularProgress } from '@mui/material';
3
+ import { CircularProgress } from '@mui/material';
4
4
  import isUndefined from 'lodash/isUndefined';
5
5
 
6
6
  import { mergeProps } from '../Util';
@@ -54,7 +54,7 @@ export default function Video(rawProps: VideoProps) {
54
54
  );
55
55
  }
56
56
 
57
- const Placeholder = styled(Box)`
57
+ const Placeholder = styled('div')`
58
58
  background-color: #222222;
59
59
  display: flex;
60
60
  justify-content: center;