@arcblock/ux 2.10.19 → 2.10.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. package/lib/ActionButton/index.js +1 -2
  2. package/lib/ActivityIndicator/index.js +1 -2
  3. package/lib/Address/compact-text.js +1 -2
  4. package/lib/Address/did-address.js +1 -2
  5. package/lib/Alert/index.js +1 -2
  6. package/lib/AnimationWaiter/index.js +1 -2
  7. package/lib/Blocklet/blocklet.js +1 -2
  8. package/lib/BlockletNFT/index.js +1 -3
  9. package/lib/Button/wrap.js +1 -2
  10. package/lib/CodeBlock/index.js +1 -3
  11. package/lib/ContactForm/index.js +3 -4
  12. package/lib/CountDown/index.js +1 -2
  13. package/lib/DID/index.js +1 -3
  14. package/lib/Datatable/CustomToolbar.js +1 -3
  15. package/lib/Datatable/TableSearch.js +1 -2
  16. package/lib/Datatable/index.js +1 -2
  17. package/lib/Dialog/confirm.js +1 -3
  18. package/lib/Dialog/dialog.js +1 -2
  19. package/lib/Earth/index.js +1 -2
  20. package/lib/Empty/index.js +1 -2
  21. package/lib/ErrorBoundary/fallback.js +1 -2
  22. package/lib/Footer/index.js +1 -2
  23. package/lib/Header/header.js +1 -3
  24. package/lib/Header/responsive-header.js +1 -2
  25. package/lib/Icon/image.js +1 -2
  26. package/lib/Img/index.js +1 -2
  27. package/lib/InfoRow/index.js +1 -2
  28. package/lib/Layout/dashboard/index.js +1 -2
  29. package/lib/Layout/dashboard/sidebar.js +1 -2
  30. package/lib/Layout/dashboard-legacy/header.js +1 -2
  31. package/lib/Layout/dashboard-legacy/index.js +1 -2
  32. package/lib/Layout/dashboard-legacy/sidebar.js +1 -2
  33. package/lib/Layout/index.js +1 -3
  34. package/lib/LoadingMask/index.js +1 -2
  35. package/lib/Locale/selector.js +1 -2
  36. package/lib/Logo/index.js +1 -2
  37. package/lib/Metric/index.js +1 -3
  38. package/lib/NFTDisplay/broken.js +1 -2
  39. package/lib/NFTDisplay/index.js +1 -3
  40. package/lib/NavMenu/nav-menu.js +1 -2
  41. package/lib/PageScroller/story/FullPage.js +1 -2
  42. package/lib/PageScroller/story/PageContain.js +1 -2
  43. package/lib/Passport/passport.js +1 -2
  44. package/lib/PoweredByArcBlock/index.js +1 -2
  45. package/lib/PricingTable/PricingPlan.js +1 -2
  46. package/lib/Result/result.js +1 -2
  47. package/lib/Screenshot/BaseScreenshot/index.js +1 -2
  48. package/lib/Screenshot/BaseScreenshot/shells/Macbook.js +1 -2
  49. package/lib/Screenshot/index.js +1 -2
  50. package/lib/SessionBlocklet/index.js +1 -3
  51. package/lib/SessionUser/components/logged-in.js +1 -3
  52. package/lib/SessionUser/components/session-user-item.js +1 -2
  53. package/lib/SessionUser/components/session-user-switch.js +1 -3
  54. package/lib/SessionUser/components/user-info.js +1 -2
  55. package/lib/SplitButton/index.js +2 -5
  56. package/lib/Success/index.js +1 -2
  57. package/lib/TextCollapse/index.js +1 -2
  58. package/lib/Theme/theme-provider.js +1 -2
  59. package/lib/Toast/index.js +1 -2
  60. package/lib/Typography/index.js +1 -2
  61. package/lib/Video/index.js +1 -2
  62. package/lib/Wallet/Action.js +1 -2
  63. package/lib/Wallet/Download.js +1 -2
  64. package/lib/WebWalletSWKeeper/index.js +1 -3
  65. package/lib/WechatPrompt/index.js +1 -2
  66. package/lib/withTheme/index.js +1 -2
  67. package/package.json +5 -5
@@ -25,8 +25,7 @@ import { withDeprecated } from '../Util/deprecate';
25
25
  * @param {ActionButtonProps} props
26
26
  * @returns {JSX.Element}
27
27
  */
28
- import { jsx as _jsx } from "react/jsx-runtime";
29
- import { jsxs as _jsxs } from "react/jsx-runtime";
28
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
30
29
  function ActionButton(props) {
31
30
  /** @type {ActionButtonProps & {}} */
32
31
  const newProps = mergeProps(props, ActionButton);
@@ -18,8 +18,7 @@ import { styled } from '../Theme';
18
18
  * @param {ActivityIndicatorProps} props
19
19
  * @returns {JSX.Element}
20
20
  */
21
- import { jsx as _jsx } from "react/jsx-runtime";
22
- import { jsxs as _jsxs } from "react/jsx-runtime";
21
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
22
  export default function ActivityIndicator({
24
23
  messages,
25
24
  interval,
@@ -4,8 +4,7 @@ import Tooltip, { tooltipClasses } from '@mui/material/Tooltip';
4
4
  import Box from '@mui/material/Box';
5
5
  import { styled } from '../Theme';
6
6
  import { CopyButton } from '../ClickToCopy';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const StyledTooltip = styled(({
10
9
  className,
11
10
  ...props
@@ -9,8 +9,7 @@ import noop from 'lodash/noop';
9
9
  import { styled } from '../Theme';
10
10
  import { getFontSize } from '../Util';
11
11
  import CompactText from './compact-text';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  const translations = {
15
14
  en: {
16
15
  copy: 'Click To Copy',
@@ -6,8 +6,7 @@ import { mergeProps } from '../Util';
6
6
  import colors from '../Colors';
7
7
  import { styled } from '../Theme';
8
8
  import { withDeprecated } from '../Util/deprecate';
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
10
  const types = {
12
11
  error: {
13
12
  icon: 'exclamation-circle',
@@ -20,8 +20,7 @@ import { styled } from '../Theme';
20
20
  * @param {Number} increaseSpeed 在 maybeDuration 时间下增加的速度,默认为0(不增加速度)
21
21
  * @returns element
22
22
  */
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { jsxs as _jsxs } from "react/jsx-runtime";
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
24
  export default function AnimationWaiter({
26
25
  animationData,
27
26
  size,
@@ -9,8 +9,7 @@ import Button from '../Button';
9
9
  import Img from '../Img';
10
10
  import { useTheme, styled } from '../Theme';
11
11
  import { strippedString } from './utils';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  const Div = styled('div')`
15
14
  &.arcblock-blocklet {
16
15
  padding: ${props => props.theme.spacing(2)} ${props => props.theme.spacing(2)} 0
@@ -16,9 +16,7 @@ import { useTheme, styled } from '../Theme';
16
16
  * @param {*} digits
17
17
  * @returns
18
18
  */
19
- import { jsx as _jsx } from "react/jsx-runtime";
20
- import { jsxs as _jsxs } from "react/jsx-runtime";
21
- import { Fragment as _Fragment } from "react/jsx-runtime";
19
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
22
20
  function prettySize(_size, digits = 1) {
23
21
  let size = _size;
24
22
  const list = ['', 'k', 'm', 'b'];
@@ -5,8 +5,7 @@ import PropTypes from 'prop-types';
5
5
  import CircularProgress from '@mui/material/CircularProgress';
6
6
  import colors from '../Colors';
7
7
  import { mergeProps } from '../Util';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  const extendedColors = {
11
10
  did: {
12
11
  contained: {
@@ -24,9 +24,7 @@ import CheckIcon from '@mui/icons-material/Check';
24
24
  import colors from '../Colors';
25
25
  import { styled } from '../Theme';
26
26
  import LightBox from './LightBox';
27
- import { jsx as _jsx } from "react/jsx-runtime";
28
- import { Fragment as _Fragment } from "react/jsx-runtime";
29
- import { jsxs as _jsxs } from "react/jsx-runtime";
27
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
30
28
  hljs.registerLanguage('javascript', javascript);
31
29
  hljs.registerLanguage('js', javascript);
32
30
  hljs.registerLanguage('jsx', javascript);
@@ -1,5 +1,5 @@
1
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
3
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  /* eslint-disable react/no-unused-prop-types */
5
5
  /* eslint-disable react/static-property-placement */
@@ -12,8 +12,7 @@ import { mergeProps } from '../Util';
12
12
  import { warn as deprecatedWarn } from '../Util/deprecate';
13
13
  import Button from '../Button';
14
14
  import { styled } from '../Theme';
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- import { jsxs as _jsxs } from "react/jsx-runtime";
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
16
  export function submitContactForm({
18
17
  formId,
19
18
  portalId
@@ -2,8 +2,7 @@ import { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { getColor, mergeProps } from '../Util';
4
4
  import { styled } from '../Theme';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  const SECONDS_OF_MINUTE = 60;
8
7
  const SECONDS_OF_HOUR = 60 * SECONDS_OF_MINUTE;
9
8
  const SECONDS_OF_DAY = 24 * SECONDS_OF_HOUR;
package/lib/DID/index.js CHANGED
@@ -12,9 +12,7 @@ import Address from '../Address';
12
12
  import Avatar from '../Avatar';
13
13
  import { isEthereumDid, getFontSize, getDIDColor } from '../Util';
14
14
  import { translate } from '../Locale/util';
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- import { Fragment as _Fragment } from "react/jsx-runtime";
17
- import { jsxs as _jsxs } from "react/jsx-runtime";
15
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
18
16
  const translations = {
19
17
  en: {
20
18
  scanQrcode: 'Scan with DID Wallet to transfer token to here',
@@ -20,9 +20,7 @@ import { handleCSVDownload } from './utils';
20
20
  import TableSearch from './TableSearch';
21
21
  import { useDatatableContext } from './DatatableContext';
22
22
  import { styled, useTheme } from '../Theme';
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { Fragment as _Fragment } from "react/jsx-runtime";
25
- import { jsxs as _jsxs } from "react/jsx-runtime";
23
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
26
24
  function useMobile() {
27
25
  const theme = useTheme();
28
26
  return useMediaQuery(theme.breakpoints.down('sm'));
@@ -9,8 +9,7 @@ import clsx from 'clsx';
9
9
  import noop from 'lodash/noop';
10
10
  import { useDatatableContext } from './DatatableContext';
11
11
  import { styled } from '../Theme';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  export default function TableSearch({
15
14
  search,
16
15
  options,
@@ -58,8 +58,7 @@ import { styled } from '../Theme';
58
58
  * durableKeys?: 'page' | 'rowsPerPage' | 'searchText' | 'sortOrder'
59
59
  * } & import('mui-datatables').MUIDataTableProps} DataTableProps
60
60
  */
61
- import { jsx as _jsx } from "react/jsx-runtime";
62
- import { jsxs as _jsxs } from "react/jsx-runtime";
61
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
63
62
  const FilterLine = styled('div')`
64
63
  display: flex;
65
64
  align-items: center;
@@ -22,9 +22,7 @@ import Dialog from './dialog';
22
22
  * @param {ConfirmProps} props
23
23
  * @returns {import('react').ReactComponentElement}
24
24
  */
25
- import { jsx as _jsx } from "react/jsx-runtime";
26
- import { Fragment as _Fragment } from "react/jsx-runtime";
27
- import { jsxs as _jsxs } from "react/jsx-runtime";
25
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
28
26
  export default function Confirm({
29
27
  title,
30
28
  children,
@@ -35,8 +35,7 @@ import { styled, useTheme } from '../Theme';
35
35
  * @param {DialogProps} props
36
36
  * @return {React.ReactComponentElement<any, DialogProps>}
37
37
  */
38
- import { jsx as _jsx } from "react/jsx-runtime";
39
- import { jsxs as _jsxs } from "react/jsx-runtime";
38
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
40
39
  function Dialog({
41
40
  children,
42
41
  title,
@@ -9,8 +9,7 @@ import json from './countries.json';
9
9
  import util from './util';
10
10
  import { withDeprecated } from '../Util/deprecate';
11
11
  import { styled } from '../Theme';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  const geoJson = topojson.feature(json, json.objects.ne_110m_admin_0_countries);
15
14
  const themes = {
16
15
  light: {
@@ -2,8 +2,7 @@ import PropTypes from 'prop-types';
2
2
  import { Box } from '@mui/material';
3
3
  import EmptyIcon from '@arcblock/icons/lib/EmptyIcon';
4
4
  import { styled } from '../Theme';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  const Wrapper = styled(Box)`
8
7
  display: flex;
9
8
  justify-content: center;
@@ -2,8 +2,7 @@ import PropTypes from 'prop-types';
2
2
  import { red } from '@mui/material/colors';
3
3
  import Button from '../Button';
4
4
  import { styled } from '../Theme';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  function InternalErrorFallback({
8
7
  title,
9
8
  desc,
@@ -6,8 +6,7 @@ import Box from '@mui/material/Box';
6
6
  import { mergeProps } from '../Util';
7
7
  import Logo from '../Logo';
8
8
  import { styled } from '../Theme';
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
- import { jsx as _jsx } from "react/jsx-runtime";
9
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
11
10
  export default function Footer(props) {
12
11
  const newProps = mergeProps(props, Footer, ['dark', 'style']);
13
12
  const {
@@ -8,9 +8,7 @@ import { styled } from '../Theme';
8
8
  * Header 组件
9
9
  * TODO: Layout/dashboard 可以复用此处的 header
10
10
  */
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
13
- import { Fragment as _Fragment } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
14
12
  function Header({
15
13
  logo,
16
14
  brand,
@@ -17,8 +17,7 @@ import { styled, useTheme } from '../Theme';
17
17
  *
18
18
  * 注意: 暂时不要通过 display: none 隐藏 logo, https://blog.patw.me/archives/1820/inline-svg-same-id-and-display-none-issue/
19
19
  */
20
- import { jsx as _jsx } from "react/jsx-runtime";
21
- import { jsxs as _jsxs } from "react/jsx-runtime";
20
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
21
  function ResponsiveHeader({
23
22
  menu,
24
23
  prepend,
package/lib/Icon/image.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import Img from '../Img';
3
3
  import { styled } from '../Theme';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
5
  export default function ImageIcon({
7
6
  name,
8
7
  size,
package/lib/Img/index.js CHANGED
@@ -29,8 +29,7 @@ import noop from 'lodash/noop';
29
29
  /**
30
30
  * @typedef {ImgExProps & import('react').ComponentPropsWithoutRef<"div">} ImgProps
31
31
  */
32
- import { jsx as _jsx } from "react/jsx-runtime";
33
- import { jsxs as _jsxs } from "react/jsx-runtime";
32
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
34
33
  const PREFIX = 'Img';
35
34
  const classes = {
36
35
  root: `${PREFIX}-root`
@@ -3,8 +3,7 @@ import camelCase from 'lodash/camelCase';
3
3
  import upperFirst from 'lodash/upperFirst';
4
4
  import Typography from '@mui/material/Typography';
5
5
  import { styled } from '../Theme';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
7
  function InfoRow({
9
8
  name,
10
9
  nameFormatter,
@@ -20,8 +20,7 @@ import { FullPageProvider, useFullPage } from './full-page';
20
20
  // 监听 location 变化并关闭 header 中的 menu (确保 drawer - disablePortal:false, keepMounted:true)
21
21
  // 直接监听 menu 中 link 点击来触发 closeMenu 会有问题 (Suspense & lazy)
22
22
  // eslint-disable-next-line react/prop-types
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { jsxs as _jsxs } from "react/jsx-runtime";
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
24
  function NavMenuWrapper({
26
25
  closeMenu,
27
26
  ...rest
@@ -5,8 +5,7 @@ import { teal } from '@mui/material/colors';
5
5
  import clsx from 'clsx';
6
6
  import { styled } from '../../Theme';
7
7
  import { NavLink } from './external-link';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  function renderItem(item, index) {
11
10
  if (item.children?.length) {
12
11
  // eslint-disable-next-line no-use-before-define
@@ -9,8 +9,7 @@ import MenuIcon from '@mui/icons-material/Menu';
9
9
  import { Link } from 'react-router-dom';
10
10
  import Logo from '../../Logo';
11
11
  import { styled } from '../../Theme';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  const StyledAppBar = styled(AppBar)`
15
14
  && {
16
15
  z-index: ${props => props.theme.zIndex.drawer};
@@ -9,8 +9,7 @@ import Sidebar from './sidebar';
9
9
  import Header from './header';
10
10
  import Footer from '../../Footer';
11
11
  import { styled } from '../../Theme';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  const Wrapper = styled('div')`
15
14
  &.dashboard {
16
15
  display: flex;
@@ -7,8 +7,7 @@ import { teal } from '@mui/material/colors';
7
7
  import ImageIcon from '../../Icon/image';
8
8
  import Logo from '../../Logo';
9
9
  import { styled, useTheme } from '../../Theme';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
11
  export default function Sidebar({
13
12
  images,
14
13
  links,
@@ -8,9 +8,7 @@ import OpenInWallet from '../Wallet/Open';
8
8
  import Icon from '../Icon';
9
9
  import Logo from '../Logo';
10
10
  import { styled } from '../Theme';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
13
- import { Fragment as _Fragment } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
14
12
  export default function Layout({
15
13
  title,
16
14
  brand,
@@ -1,8 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import { Box } from '@mui/material';
3
3
  import { temp as colors } from '../Colors';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
5
  export default function LoadingMask({
7
6
  size,
8
7
  padding,
@@ -10,8 +10,7 @@ import { getColor, getBackground } from '../Util';
10
10
  import { temp as colors } from '../Colors';
11
11
  import { LocaleContext } from './context';
12
12
  import { styled, useTheme } from '../Theme';
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- import { jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
14
  export default function LocaleSelector(props) {
16
15
  const {
17
16
  showText,
package/lib/Logo/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import React from "react";
2
2
  import PropTypes from 'prop-types';
3
3
  import { styled } from '../Theme';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
5
  var LightLogo = function LightLogo(props) {
7
6
  return /*#__PURE__*/_jsx("svg", {
8
7
  ...props,
@@ -2,9 +2,7 @@
2
2
  import PropTypes from 'prop-types';
3
3
  import ImageIcon from '../Icon/image';
4
4
  import { styled } from '../Theme';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
- import { Fragment as _Fragment } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
8
6
  export default function Metric({
9
7
  icon,
10
8
  value,
@@ -80,8 +80,7 @@ NFTBroken.defaultProps = {
80
80
  xmlns: "http://www.w3.org/2000/svg"
81
81
  };
82
82
  import { styled } from '../Theme';
83
- import { jsx as _jsx } from "react/jsx-runtime";
84
- import { jsxs as _jsxs } from "react/jsx-runtime";
83
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
85
84
  export default function Broken({
86
85
  children
87
86
  } = {}) {
@@ -21,9 +21,7 @@ import displayApi from './displayApi';
21
21
  * - 旧: assetState.data.value (.credentialSubject.display)
22
22
  * - 新: assetState.display
23
23
  */
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- import { Fragment as _Fragment } from "react/jsx-runtime";
26
- import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
27
25
  export function getNFTData(assetState) {
28
26
  return assetState?.display || assetState?.data?.value;
29
27
  }
@@ -4,8 +4,7 @@ import clsx from 'clsx';
4
4
  import { MoreHoriz as MoreHorizIcon, ExpandMore as ExpandMoreIcon, Menu as MenuIcon } from '@mui/icons-material';
5
5
  import { useCreation, useMemoizedFn, useReactive, useSize, useThrottleFn } from 'ahooks';
6
6
  import { HorizontalStyle, InlineStyle } from './style';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const NavMenuContext = /*#__PURE__*/createContext();
10
9
 
11
10
  // 过滤 children 中的 Item/Sub, 忽略其它类型的 element
@@ -8,8 +8,7 @@ import ThirdComponent from './ThirdComponent';
8
8
  import FourthComponent from './FourthComponent';
9
9
  import FifthComponent from './FifthComponent';
10
10
  import './index.css';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  export default function FullPage() {
14
13
  const [current, setCurrent] = useState(0);
15
14
  const pageNumbers = [];
@@ -8,8 +8,7 @@ import ThirdComponent from './ThirdComponent';
8
8
  import FourthComponent from './FourthComponent';
9
9
  import FifthComponent from './FifthComponent';
10
10
  import './index.css';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  export default function FullPage() {
14
13
  const [current, setCurrent] = useState(0);
15
14
  const pageNumbers = [];
@@ -3,8 +3,7 @@ import upperFirst from 'lodash/upperFirst';
3
3
  import { Box } from '@mui/material';
4
4
  import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
5
5
  import RevokeIcon from '@arcblock/icons/lib/RevokeIcon';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
7
  export default function Passport({
9
8
  passport,
10
9
  user,
@@ -1,7 +1,6 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import { Link, Typography } from '@mui/material';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
4
  export default function PoweredByArcBlock({
6
5
  linkProps,
7
6
  ...props
@@ -4,8 +4,7 @@ import Button from '@mui/material/Button';
4
4
  import CardContent from '@mui/material/CardContent';
5
5
  import Typography from '@mui/material/Typography';
6
6
  import { styled } from '../Theme';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  function PricingPlan({
10
9
  plan
11
10
  }) {
@@ -1,8 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import Box from '@mui/material/Box';
3
3
  import { styled } from '../Theme';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
5
  function Result({
7
6
  icon,
8
7
  title,
@@ -2,8 +2,7 @@ import { styled } from '@arcblock/ux/lib/Theme';
2
2
  import PropTypes from 'prop-types';
3
3
  import phone from './shells/Phone';
4
4
  import macbook from './shells/Macbook';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  const map = {
8
7
  phone,
9
8
  macbook
@@ -1,5 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  export function Shell({
4
3
  ...rest
5
4
  }) {
@@ -4,8 +4,7 @@ import { mergeProps } from '../Util';
4
4
  import { styled } from '../Theme';
5
5
  import BaseScreenshot from './BaseScreenshot';
6
6
  import './devices.css';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const types = {
10
9
  'iphone-x': {
11
10
  borderRadius: 32,
@@ -10,9 +10,7 @@ import { temp as colors } from '../Colors';
10
10
  import { AUTH_SERVICE_PREFIX, NAVIGATION_URL } from '../Util/constant';
11
11
  import SessionPermission from '../SessionPermission';
12
12
  import { getTranslation } from '../Util';
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- import { jsxs as _jsxs } from "react/jsx-runtime";
15
- import { Fragment as _Fragment } from "react/jsx-runtime";
13
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
16
14
  export default function SessionBlocklet({
17
15
  session,
18
16
  locale,
@@ -15,9 +15,7 @@ import { DASHBOARD_URL, PROFILE_URL } from '../../Util/constant';
15
15
  import SessionPermission from '../../SessionPermission';
16
16
  import { translations } from '../libs/translation';
17
17
  import { translate } from '../../Locale/util';
18
- import { jsx as _jsx } from "react/jsx-runtime";
19
- import { Fragment as _Fragment } from "react/jsx-runtime";
20
- import { jsxs as _jsxs } from "react/jsx-runtime";
18
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
21
19
  export default function LoggedIn({
22
20
  session,
23
21
  dark,
@@ -8,8 +8,7 @@ import Avatar from '../../Avatar';
8
8
  import DID from '../../DID';
9
9
  import { temp as colors } from '../../Colors';
10
10
  import { getSourceProvider } from '../libs/utils';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  const SessionUserItem = /*#__PURE__*/forwardRef(({
14
13
  sessionItem,
15
14
  statusContent,
@@ -12,9 +12,7 @@ import { temp as colors } from '../../Colors';
12
12
  import { getVisitorId } from '../../Util';
13
13
  import { translate } from '../../Locale/util';
14
14
  import { translations } from '../libs/translation';
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- import { jsxs as _jsxs } from "react/jsx-runtime";
17
- import { Fragment as _Fragment } from "react/jsx-runtime";
15
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
18
16
  export default function SessionUserSwitch({
19
17
  session,
20
18
  onSwitch,
@@ -12,8 +12,7 @@ import { temp as colors } from '../../Colors';
12
12
  import { getWallet } from '../libs/utils';
13
13
  import { translations } from '../libs/translation';
14
14
  import { translate } from '../../Locale/util';
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- import { jsxs as _jsxs } from "react/jsx-runtime";
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
16
  export default function UserInfo({
18
17
  session,
19
18
  onSwitchPassport,
@@ -1,4 +1,4 @@
1
- import { useState, useRef, isValidElement } from 'react';
1
+ import { useState, useRef, isValidElement, createElement as _createElement } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import ExpandMore from '@mui/icons-material/ExpandMore';
4
4
  import Popper from '@mui/material/Popper';
@@ -30,10 +30,7 @@ import { styled } from '../Theme';
30
30
  * @param {SplitButtonProps} props
31
31
  * @return {JSX.Element}
32
32
  */
33
- import { createElement as _createElement } from "react";
34
- import { jsx as _jsx } from "react/jsx-runtime";
35
- import { jsxs as _jsxs } from "react/jsx-runtime";
36
- import { Fragment as _Fragment } from "react/jsx-runtime";
33
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
37
34
  export default function SplitButton(props) {
38
35
  const {
39
36
  size,
@@ -2,8 +2,7 @@ import PropTypes from 'prop-types';
2
2
  import { Box } from '@mui/material';
3
3
 
4
4
  // FIXME: @zhanghan 目前无法适配各种 size,后续优化
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  export default function Success({
8
7
  size,
9
8
  backgroundColor,
@@ -2,8 +2,7 @@ import PropTypes from 'prop-types';
2
2
  import Typography from '@mui/material/Typography';
3
3
  import { styled } from '../Theme';
4
4
  import { withDeprecated } from '../Util/deprecate';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  function TextCollapse({
8
7
  children,
9
8
  startChars,
@@ -3,8 +3,7 @@ import { ThemeProvider as MuiThemeProvider } from '@mui/material/styles';
3
3
  import StyledEngineProvider from '@mui/material/StyledEngineProvider';
4
4
  import CssBaseline from '@mui/material/CssBaseline';
5
5
  import { createTheme } from './theme';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
7
  const defaultTheme = createTheme();
9
8
 
10
9
  /**
@@ -13,8 +13,7 @@ import noop from 'lodash/noop';
13
13
  /**
14
14
  * @type {import('notistack').ProviderContext['enqueueSnackbar']}
15
15
  */
16
- import { jsx as _jsx } from "react/jsx-runtime";
17
- import { jsxs as _jsxs } from "react/jsx-runtime";
16
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
17
  let success = noop;
19
18
  let error = noop;
20
19
  let warning = noop;
@@ -2,8 +2,7 @@ import PropTyps from 'prop-types';
2
2
  import { Box, Typography as MuiTypography, Skeleton } from '@mui/material';
3
3
  import { useCreation, useReactive, useSize } from 'ahooks';
4
4
  import { useEffect, useRef } from 'react';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  export default function Typography({
8
7
  minFontSize,
9
8
  fontSize,
@@ -4,8 +4,7 @@ import Player from 'react-player';
4
4
  import CircularProgress from '@mui/material/CircularProgress';
5
5
  import { mergeProps } from '../Util';
6
6
  import { styled } from '../Theme';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const {
10
9
  string,
11
10
  number,
@@ -5,8 +5,7 @@ import { mergeProps } from '../Util';
5
5
  import colors from '../Colors';
6
6
  import Button from '../Button';
7
7
  import { styled } from '../Theme';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  export default function WalletAction(props) {
11
10
  const newProps = mergeProps(props, WalletAction, ['style']);
12
11
  const {
@@ -205,8 +205,7 @@ AndroidDownloadIcon.defaultProps = {
205
205
  import Button from '../Button';
206
206
  import { mergeProps } from '../Util';
207
207
  import { styled } from '../Theme';
208
- import { jsx as _jsx } from "react/jsx-runtime";
209
- import { jsxs as _jsxs } from "react/jsx-runtime";
208
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
210
209
  export default function WalletDownload(props) {
211
210
  const browser = useBrowser();
212
211
  const newProps = mergeProps(props, WalletDownload, ['style']);
@@ -7,9 +7,7 @@ import { detectWalletExtension } from '@arcblock/ux/lib/Util';
7
7
  import { getWebWalletUrl, checkSameProtocol } from '../Util/wallet';
8
8
 
9
9
  // 默认最大空闲时间: 30min
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { Fragment as _Fragment } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
11
  const DEFAULT_MAX_IDLE_TIME = 1000 * 60 * 30;
14
12
  // 可使用 localStorage.setItem('wallet_sw_keeper_disabled', 1) 来禁用嵌入 wallet iframe
15
13
  const STORAGE_KEY_DISABLED = 'wallet_sw_keeper_disabled';
@@ -4,8 +4,7 @@ import useBrowser from '@arcblock/react-hooks/lib/useBrowser';
4
4
  import IosImage from './images/ios.png';
5
5
  import AndroidImage from './images/android.png';
6
6
  import { styled } from '../Theme';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  export default function WechatPrompt() {
10
9
  const browser = useBrowser();
11
10
  if (!browser.mobile.any) {
@@ -2,8 +2,7 @@ import { useEffect } from 'react';
2
2
  import { Global, css } from '@emotion/react';
3
3
  import CssBaseline from '@mui/material/CssBaseline';
4
4
  import { createTheme, ThemeProvider } from '../Theme';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  function withTheme(Component, {
8
7
  mode = 'light',
9
8
  pageWidth = 'md',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "2.10.19",
3
+ "version": "2.10.20",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -54,12 +54,12 @@
54
54
  "react": ">=18.2.0",
55
55
  "react-router-dom": ">=6.22.3"
56
56
  },
57
- "gitHead": "0cbaed2d297aa7ee7e7ebbaf7ccbc029ee3e624b",
57
+ "gitHead": "e824874fc5c195246c96fcb8da7308b46d77236f",
58
58
  "dependencies": {
59
59
  "@arcblock/did-motif": "^1.1.13",
60
- "@arcblock/icons": "^2.10.19",
61
- "@arcblock/nft-display": "^2.10.19",
62
- "@arcblock/react-hooks": "^2.10.19",
60
+ "@arcblock/icons": "^2.10.20",
61
+ "@arcblock/nft-display": "^2.10.20",
62
+ "@arcblock/react-hooks": "^2.10.20",
63
63
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
64
64
  "@fontsource/inter": "^5.0.16",
65
65
  "@fontsource/ubuntu-mono": "^5.0.18",