@arcblock/ux 3.0.6 → 3.0.7
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/lib/ActionButton/index.d.ts +1 -1
- package/lib/ActionButton/index.js +9 -9
- package/lib/ActivityIndicator/index.js +6 -7
- package/lib/Address/compact-text.d.ts +1 -1
- package/lib/Address/compact-text.js +6 -7
- package/lib/Address/did-address.js +4 -4
- package/lib/Address/index.js +6 -6
- package/lib/Address/responsive-did-address.js +17 -17
- package/lib/Alert/index.d.ts +1 -1
- package/lib/Alert/index.js +8 -8
- package/lib/AnimationWaiter/index.js +10 -10
- package/lib/Async/index.js +4 -4
- package/lib/Avatar/etherscan-blockies.js +15 -15
- package/lib/Avatar/index.d.ts +1 -1
- package/lib/Avatar/index.js +6 -6
- package/lib/Badge/index.js +5 -5
- package/lib/Blocklet/blocklet.js +10 -10
- package/lib/Blocklet/index.js +6 -5
- package/lib/Blocklet/utils.js +1 -1
- package/lib/BlockletContext/index.d.ts +1 -1
- package/lib/BlockletContext/index.js +1 -1
- package/lib/BlockletNFT/index.js +19 -19
- package/lib/BlockletV2/blocklet.d.ts +1 -1
- package/lib/BlockletV2/blocklet.js +36 -37
- package/lib/BlockletV2/components/icon-text.d.ts +1 -1
- package/lib/BlockletV2/components/icon-text.js +13 -13
- package/lib/BlockletV2/components/tooltip-icon.js +22 -20
- package/lib/BlockletV2/index.js +8 -7
- package/lib/BlockletV2/utils.js +1 -1
- package/lib/Button/index.js +1 -1
- package/lib/Button/wrap.js +3 -3
- package/lib/ButtonGroup/index.js +1 -1
- package/lib/Center/index.js +4 -4
- package/lib/ClickToCopy/copy-button.js +3 -3
- package/lib/ClickToCopy/index.js +5 -5
- package/lib/CloseButton/index.js +2 -2
- package/lib/CodeBlock/index.js +3 -3
- package/lib/Colors/index.js +3 -3
- package/lib/Config/config-provider.js +15 -16
- package/lib/Config/index.js +3 -5
- package/lib/Config/theme-mode-toggle.js +1 -1
- package/lib/ContactForm/index.js +26 -25
- package/lib/CookieConsent/index.js +1 -1
- package/lib/CountDown/index.js +2 -2
- package/lib/DID/index.js +79 -78
- package/lib/DIDConnect/app-icon.js +10 -10
- package/lib/DIDConnect/app-info-item.js +5 -5
- package/lib/DIDConnect/auth-apps/auth-apps-info.js +1 -1
- package/lib/DIDConnect/auth-apps/index.js +56 -56
- package/lib/DIDConnect/did-connect-container.js +35 -36
- package/lib/DIDConnect/did-connect-footer.js +7 -7
- package/lib/DIDConnect/index.js +10 -10
- package/lib/DIDConnect/landing-page.js +45 -46
- package/lib/DIDConnect/powered-by.js +2 -2
- package/lib/DIDConnect/request-storage-access-api-dialog.js +44 -45
- package/lib/DIDConnect/with-container.js +25 -26
- package/lib/DIDConnect/with-ux-theme.js +6 -7
- package/lib/Datatable/CustomToolbar.d.ts +3 -1
- package/lib/Datatable/CustomToolbar.js +13 -13
- package/lib/Datatable/TableSearch.js +2 -2
- package/lib/Datatable/index.js +6 -6
- package/lib/Dialog/confirm.d.ts +1 -1
- package/lib/Dialog/confirm.js +20 -20
- package/lib/Dialog/dialog.js +7 -7
- package/lib/Dialog/index.js +3 -3
- package/lib/Dialog/use-confirm.js +1 -1
- package/lib/DriftBot/index.js +1 -1
- package/lib/Earth/index.js +10 -10
- package/lib/Empty/index.js +1 -1
- package/lib/ErrorBoundary/fallback.js +15 -15
- package/lib/ErrorBoundary/index.js +1 -6
- package/lib/Footer/index.d.ts +1 -1
- package/lib/Footer/index.js +7 -7
- package/lib/Header/addon-button.d.ts +1 -1
- package/lib/Header/addon-button.js +11 -6
- package/lib/Header/auto-hidden.js +1 -1
- package/lib/Header/header.js +4 -4
- package/lib/Header/index.js +3 -3
- package/lib/Header/responsive-header.d.ts +1 -1
- package/lib/Header/responsive-header.js +33 -34
- package/lib/Icon/image.js +2 -2
- package/lib/Icon/index.js +12 -12
- package/lib/Img/index.js +1 -1
- package/lib/InfoRow/index.d.ts +1 -1
- package/lib/InfoRow/index.js +1 -2
- package/lib/Layout/dashboard/external-link.d.ts +1 -1
- package/lib/Layout/dashboard/external-link.js +1 -1
- package/lib/Layout/dashboard/full-page.js +8 -8
- package/lib/Layout/dashboard/index.js +30 -32
- package/lib/Layout/dashboard/sidebar.js +3 -3
- package/lib/Layout/dashboard-legacy/header.js +12 -12
- package/lib/Layout/dashboard-legacy/index.js +20 -20
- package/lib/Layout/dashboard-legacy/sidebar.d.ts +1 -1
- package/lib/Layout/dashboard-legacy/sidebar.js +20 -13
- package/lib/Layout/index.js +7 -7
- package/lib/LoadingMask/index.d.ts +1 -1
- package/lib/LoadingMask/index.js +4 -4
- package/lib/Locale/context.js +27 -27
- package/lib/Locale/selector.d.ts +1 -1
- package/lib/Locale/selector.js +4 -4
- package/lib/Logo/index.js +19 -19
- package/lib/Metric/index.js +2 -2
- package/lib/NFTDisplay/aspect-ratio-container.d.ts +1 -1
- package/lib/NFTDisplay/aspect-ratio-container.js +1 -1
- package/lib/NFTDisplay/broken.js +2 -2
- package/lib/NFTDisplay/index.js +38 -35
- package/lib/NFTDisplay/loading.js +1 -1
- package/lib/NFTDisplay/render-svg.js +4 -4
- package/lib/NFTDisplay/svg-embedder/img.js +3 -3
- package/lib/NFTDisplay/svg-embedder/inline-svg.js +1 -1
- package/lib/NavMenu/index.js +2 -2
- package/lib/NavMenu/nav-menu.js +46 -44
- package/lib/NavMenu/products.js +33 -33
- package/lib/NavMenu/style.js +1 -1
- package/lib/NavMenu/sub-item-group.js +1 -1
- package/lib/PageScroller/index.js +53 -53
- package/lib/PageScroller/story/FullPage.js +27 -27
- package/lib/PageScroller/story/PageContain.js +8 -8
- package/lib/Passport/index.js +3 -2
- package/lib/Passport/passport.js +2 -2
- package/lib/PhoneInput/country-select.js +24 -24
- package/lib/PhoneInput/index.js +13 -13
- package/lib/PoweredByArcBlock/index.js +10 -6
- package/lib/PricingTable/PricingPlan.js +1 -1
- package/lib/PricingTable/index.js +3 -3
- package/lib/QRCode/index.js +5 -5
- package/lib/RelativeTime/index.js +17 -17
- package/lib/Result/common.js +4 -6
- package/lib/Result/index.js +2 -2
- package/lib/Result/result.js +5 -5
- package/lib/Screenshot/BaseScreenshot/index.js +3 -3
- package/lib/Screenshot/index.d.ts +1 -1
- package/lib/Screenshot/index.js +10 -10
- package/lib/SessionBlocklet/index.js +8 -8
- package/lib/SessionManager/index.js +3 -2
- package/lib/SessionUser/components/did-space.d.ts +1 -1
- package/lib/SessionUser/components/did-space.js +14 -14
- package/lib/SessionUser/components/logged-in.js +33 -33
- package/lib/SessionUser/components/quick-login-item.js +29 -29
- package/lib/SessionUser/components/session-user-item.js +27 -27
- package/lib/SessionUser/components/session-user-switch.js +4 -4
- package/lib/SessionUser/components/un-login.js +7 -7
- package/lib/SessionUser/components/user-info.js +16 -16
- package/lib/SessionUser/index.js +2 -2
- package/lib/SharedBridge/index.js +23 -23
- package/lib/Spinner/index.js +2 -2
- package/lib/SplitButton/index.d.ts +1 -1
- package/lib/SplitButton/index.js +2 -2
- package/lib/Success/index.js +1 -1
- package/lib/Switch/index.js +1 -1
- package/lib/Tabs/index.js +16 -9
- package/lib/Tag/index.d.ts +1 -1
- package/lib/Tag/index.js +7 -7
- package/lib/TextCollapse/index.js +3 -3
- package/lib/Theme/index.js +11 -22
- package/lib/Theme/theme-provider.js +60 -55
- package/lib/Theme/theme.js +5 -4
- package/lib/Toast/index.js +11 -11
- package/lib/Typography/index.js +13 -13
- package/lib/UserCard/Cards/avatar-only.js +2 -2
- package/lib/UserCard/Cards/basic-info.d.ts +1 -1
- package/lib/UserCard/Cards/basic-info.js +4 -4
- package/lib/UserCard/Cards/index.d.ts +1 -1
- package/lib/UserCard/Cards/index.js +4 -4
- package/lib/UserCard/Cards/name-only.js +1 -1
- package/lib/UserCard/Container/card.js +8 -8
- package/lib/UserCard/Container/dialog.js +2 -2
- package/lib/UserCard/Content/basic.js +3 -3
- package/lib/UserCard/Content/clock.js +3 -3
- package/lib/UserCard/Content/minimal.d.ts +1 -1
- package/lib/UserCard/Content/minimal.js +8 -8
- package/lib/UserCard/Content/tooltip-avatar.js +18 -18
- package/lib/UserCard/components.js +23 -23
- package/lib/UserCard/index.js +12 -12
- package/lib/Util/index.js +2 -2
- package/lib/VerificationCode/index.js +2 -2
- package/lib/Video/index.js +2 -2
- package/lib/Wallet/Action.js +4 -4
- package/lib/Wallet/Download.js +6 -6
- package/lib/Wallet/Open.js +1 -1
- package/lib/WalletOSIcon/index.d.ts +2 -2
- package/lib/WalletOSIcon/index.js +8 -3
- package/lib/WebWalletSWKeeper/index.d.ts +3 -1
- package/lib/WebWalletSWKeeper/index.js +6 -3
- package/lib/WechatPrompt/index.js +1 -1
- package/lib/hooks/use-blocklet-logo.js +13 -15
- package/lib/hooks/use-clock.js +1 -1
- package/lib/index.js +74 -79
- package/lib/withTheme/index.d.ts +3 -2
- package/lib/withTheme/index.js +13 -14
- package/lib/withTracker/error_boundary.js +1 -1
- package/package.json +7 -7
- package/src/ActionButton/index.jsx +1 -1
- package/src/Address/compact-text.jsx +1 -1
- package/src/Address/did-address.tsx +1 -1
- package/src/Address/index.tsx +1 -1
- package/src/Address/responsive-did-address.tsx +3 -3
- package/src/Alert/index.jsx +1 -1
- package/src/Avatar/index.jsx +1 -1
- package/src/Badge/index.jsx +1 -1
- package/src/BlockletContext/index.tsx +1 -1
- package/src/BlockletNFT/index.jsx +1 -1
- package/src/BlockletV2/blocklet.tsx +1 -1
- package/src/BlockletV2/components/icon-text.tsx +4 -4
- package/src/BlockletV2/components/tooltip-icon.tsx +5 -3
- package/src/Button/wrap.jsx +1 -1
- package/src/Center/index.tsx +1 -1
- package/src/ClickToCopy/copy-button.tsx +1 -1
- package/src/CloseButton/index.tsx +1 -1
- package/src/ContactForm/index.tsx +9 -2
- package/src/DID/index.tsx +5 -4
- package/src/DIDConnect/app-info-item.tsx +1 -1
- package/src/DIDConnect/auth-apps/index.tsx +8 -8
- package/src/DIDConnect/did-connect-container.tsx +2 -2
- package/src/DIDConnect/did-connect-footer.tsx +1 -1
- package/src/DIDConnect/landing-page.tsx +6 -6
- package/src/DIDConnect/request-storage-access-api-dialog.tsx +1 -2
- package/src/Datatable/CustomToolbar.jsx +1 -1
- package/src/Datatable/index.jsx +2 -2
- package/src/Dialog/confirm.jsx +1 -1
- package/src/Earth/index.tsx +1 -1
- package/src/Footer/index.tsx +5 -2
- package/src/Header/addon-button.tsx +7 -2
- package/src/Header/header.tsx +1 -1
- package/src/Header/responsive-header.tsx +1 -2
- package/src/Icon/index.tsx +1 -1
- package/src/InfoRow/index.tsx +1 -2
- package/src/Layout/dashboard/external-link.tsx +1 -1
- package/src/Layout/dashboard/full-page.tsx +1 -1
- package/src/Layout/dashboard/index.tsx +1 -1
- package/src/Layout/dashboard/sidebar.tsx +5 -2
- package/src/Layout/dashboard-legacy/header.tsx +5 -5
- package/src/Layout/dashboard-legacy/index.tsx +3 -3
- package/src/Layout/dashboard-legacy/sidebar.tsx +10 -2
- package/src/Layout/index.tsx +2 -2
- package/src/LoadingMask/index.tsx +5 -5
- package/src/Locale/context.tsx +3 -3
- package/src/Locale/selector.tsx +1 -1
- package/src/Logo/index.tsx +1 -1
- package/src/NFTDisplay/aspect-ratio-container.tsx +1 -1
- package/src/NFTDisplay/index.tsx +2 -1
- package/src/NFTDisplay/render-svg.tsx +1 -1
- package/src/NavMenu/nav-menu.tsx +8 -5
- package/src/NavMenu/products.tsx +3 -1
- package/src/PageScroller/index.tsx +4 -4
- package/src/PhoneInput/country-select.tsx +3 -3
- package/src/PhoneInput/index.tsx +1 -1
- package/src/PoweredByArcBlock/index.tsx +5 -1
- package/src/QRCode/index.tsx +1 -1
- package/src/RelativeTime/index.tsx +3 -3
- package/src/Result/result.tsx +1 -1
- package/src/Screenshot/index.tsx +2 -2
- package/src/SessionUser/components/did-space.tsx +1 -1
- package/src/SessionUser/components/session-user-item.tsx +1 -1
- package/src/SharedBridge/index.tsx +2 -2
- package/src/Spinner/index.tsx +1 -1
- package/src/SplitButton/index.tsx +1 -1
- package/src/Success/index.tsx +1 -1
- package/src/Tabs/index.tsx +10 -3
- package/src/Tag/index.jsx +1 -1
- package/src/TextCollapse/index.tsx +1 -1
- package/src/Theme/theme-provider.tsx +11 -6
- package/src/Theme/theme.ts +5 -0
- package/src/Typography/index.tsx +1 -1
- package/src/UserCard/Cards/basic-info.tsx +1 -1
- package/src/UserCard/Cards/index.tsx +1 -1
- package/src/UserCard/Container/card.tsx +2 -2
- package/src/UserCard/Container/dialog.tsx +1 -1
- package/src/UserCard/Content/basic.tsx +2 -2
- package/src/UserCard/Content/minimal.tsx +1 -1
- package/src/UserCard/Content/tooltip-avatar.tsx +4 -4
- package/src/VerificationCode/index.tsx +1 -1
- package/src/WalletOSIcon/index.tsx +7 -2
- package/src/WebWalletSWKeeper/index.tsx +6 -1
- package/src/withTheme/index.tsx +7 -3
- package/vite.config.mjs +5 -2
- package/lib/ActionButton/ActionButton.stories.d.ts +0 -18
- package/lib/ActivityIndicator/ActivityIndicator.stories.d.ts +0 -8
- package/lib/Address/Address.stories.d.ts +0 -16
- package/lib/Alert/Alert.stories.d.ts +0 -28
- package/lib/AnimationWaiter/AnimationWaiter.stories.d.ts +0 -21
- package/lib/AnimationWaiter/dark-animation.json.js +0 -27
- package/lib/AnimationWaiter/default-animation.json.js +0 -29
- package/lib/Avatar/Avatar.stories.d.ts +0 -11
- package/lib/Badge/Badge.stories.d.ts +0 -13
- package/lib/Blocklet/Blocklet.stories.d.ts +0 -17
- package/lib/BlockletNFT/BlockletNFT.stories.d.ts +0 -17
- package/lib/BlockletV2/Blocklet.stories.d.ts +0 -18
- package/lib/Button/Button.stories.d.ts +0 -19
- package/lib/Center/Center.stories.d.ts +0 -18
- package/lib/ClickToCopy/ClickToCopy.stories.d.ts +0 -16
- package/lib/CodeBlock/CodeBlock.stories.d.ts +0 -20
- package/lib/Colors/Colors.stories.d.ts +0 -34
- package/lib/Config/Config.stories.d.ts +0 -14
- package/lib/ContactForm/ContactForm.stories.d.ts +0 -23
- package/lib/CookieConsent/CookieConsent.stories.d.ts +0 -18
- package/lib/CountDown/CountDown.stories.d.ts +0 -14
- package/lib/DID/DID.stories.d.ts +0 -15
- package/lib/Datatable/Datatable.stories.d.ts +0 -32
- package/lib/Dialog/Dialog.stories.d.ts +0 -20
- package/lib/DidLogo/Logo.stories.d.ts +0 -8
- package/lib/Earth/Earth.stories.d.ts +0 -18
- package/lib/Earth/countries.json.js +0 -13
- package/lib/Empty/Empty.stories.d.ts +0 -17
- package/lib/ErrorBoundary/ErrorBoundary.stories.d.ts +0 -12
- package/lib/Footer/Footer.stories.d.ts +0 -12
- package/lib/Header/Header.stories.d.ts +0 -21
- package/lib/Icon/Icon.stories.d.ts +0 -23
- package/lib/Img/Img.stories.d.ts +0 -13
- package/lib/InfoRow/InfoRow.stories.d.ts +0 -14
- package/lib/Layout/Layout.stories.d.ts +0 -23
- package/lib/Locale/LocaleSelector.stories.d.ts +0 -22
- package/lib/Logo/Logo.stories.d.ts +0 -22
- package/lib/Logo/images/logo-dark-text.svg.js +0 -5
- package/lib/Logo/images/logo-dark-top.svg.js +0 -5
- package/lib/Logo/images/logo-light-text.svg.js +0 -5
- package/lib/Logo/images/logo-light-top.svg.js +0 -5
- package/lib/Metric/Metric.stories.d.ts +0 -14
- package/lib/NFTDisplay/NFTBroken.svg.js +0 -108
- package/lib/NFTDisplay/NFTDisplay.stories.d.ts +0 -15
- package/lib/NavMenu/NavMenu.stories.d.ts +0 -17
- package/lib/NavMenu/images/OCAP.svg.js +0 -5
- package/lib/NavMenu/images/abt-network.svg.js +0 -7
- package/lib/NavMenu/images/ai-kit.svg.js +0 -7
- package/lib/NavMenu/images/aigne.svg.js +0 -7
- package/lib/NavMenu/images/aistro.svg.js +0 -5
- package/lib/NavMenu/images/arcsphere.svg.js +0 -10
- package/lib/NavMenu/images/blocklet-framework.svg.js +0 -7
- package/lib/NavMenu/images/blocklet-launcher.svg.js +0 -5
- package/lib/NavMenu/images/blocklet-server.svg.js +0 -7
- package/lib/NavMenu/images/blocklet-store.svg.js +0 -5
- package/lib/NavMenu/images/creator-studio.svg.js +0 -7
- package/lib/NavMenu/images/did-connect.svg.js +0 -5
- package/lib/NavMenu/images/did-name-service.svg.js +0 -5
- package/lib/NavMenu/images/did-wallet.svg.js +0 -7
- package/lib/NavMenu/images/did.svg.js +0 -5
- package/lib/NavMenu/images/nft-studio.svg.js +0 -5
- package/lib/NavMenu/images/vc.svg.js +0 -5
- package/lib/NavMenu/images/web3-kit.svg.js +0 -7
- package/lib/PageScroller/story/PageScroller.stories.d.ts +0 -13
- package/lib/PhoneInput/PhoneInput.stories.d.ts +0 -12
- package/lib/PricingTable/PricingTable.stories.d.ts +0 -8
- package/lib/QRCode/QRCode.stories.d.ts +0 -13
- package/lib/RelativeTime/RelativeTime.stories.d.ts +0 -20
- package/lib/Result/Result.stories.d.ts +0 -21
- package/lib/Screenshot/Screenshot.stories.d.ts +0 -13
- package/lib/SessionManager/SessionManager.stories.d.ts +0 -9
- package/lib/SessionUser/images/did-spaces.svg.js +0 -5
- package/lib/Sparkline/Sparkline.stories.d.ts +0 -12
- package/lib/Spinner/Spinner.stories.d.ts +0 -18
- package/lib/SplitButton/SplitButton.stories.d.ts +0 -15
- package/lib/Switch/Switch.stories.d.ts +0 -13
- package/lib/Tabs/Tabs.stories.d.ts +0 -14
- package/lib/Tag/Tag.stories.d.ts +0 -13
- package/lib/TextCollapse/TextCollapse.stories.d.ts +0 -28
- package/lib/Theme/Theme.stories.d.ts +0 -10
- package/lib/Toast/Toast.stories.d.ts +0 -15
- package/lib/UserCard/UserCard.stories.d.ts +0 -18
- package/lib/Util/WebWalletOpener.stories.d.ts +0 -5
- package/lib/Video/Video.stories.d.ts +0 -6
- package/lib/Wallet/Action.stories.d.ts +0 -8
- package/lib/Wallet/Download.stories.d.ts +0 -9
- package/lib/Wallet/OpenInWallet.stories.d.ts +0 -5
- package/lib/Wallet/images/android_download.svg.js +0 -5
- package/lib/Wallet/images/app-store.svg.js +0 -5
- package/lib/Wallet/images/google-play.svg.js +0 -5
- package/lib/ux.css +0 -1
package/lib/BlockletNFT/index.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { jsxs as a, jsx as t, Fragment as F } from "react/jsx-runtime";
|
2
2
|
import { useRef as I } from "react";
|
3
3
|
import o from "prop-types";
|
4
|
-
import {
|
5
|
-
import
|
6
|
-
import Z from "../Icon
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import { styled as
|
10
|
-
function
|
4
|
+
import { useMediaQuery as m, Typography as f, Portal as q, CircularProgress as A } from "@mui/material";
|
5
|
+
import O from "../Avatar";
|
6
|
+
import Z from "../Icon";
|
7
|
+
import H from "../Button";
|
8
|
+
import Q from "../Img";
|
9
|
+
import { styled as U, useTheme as W } from "../Theme";
|
10
|
+
function E(e, s = 1) {
|
11
11
|
let c = e;
|
12
12
|
const r = ["", "k", "m", "b"];
|
13
13
|
let i = 0;
|
@@ -15,7 +15,7 @@ function U(e, s = 1) {
|
|
15
15
|
c = (c / 1e3).toFixed(s), i += 1;
|
16
16
|
return e && `${c}${r[i]}`;
|
17
17
|
}
|
18
|
-
const G =
|
18
|
+
const G = U("div")`
|
19
19
|
&.arcblock-blocklet {
|
20
20
|
padding: 0 16px;
|
21
21
|
background: ${(e) => e.theme.palette.common.white};
|
@@ -189,7 +189,7 @@ v.propTypes = {
|
|
189
189
|
};
|
190
190
|
function J({
|
191
191
|
title: e,
|
192
|
-
did: s,
|
192
|
+
did: s = void 0,
|
193
193
|
description: c = null,
|
194
194
|
cover: r = null,
|
195
195
|
size: i = "auto",
|
@@ -201,33 +201,33 @@ function J({
|
|
201
201
|
isStickyButton: z = !1,
|
202
202
|
onButtonClick: _ = null,
|
203
203
|
onMainClick: N = null,
|
204
|
-
className:
|
205
|
-
scaleClickZone:
|
204
|
+
className: $ = null,
|
205
|
+
scaleClickZone: C = 1.5,
|
206
206
|
...M
|
207
207
|
}) {
|
208
208
|
const x = (l, k = () => !1) => (d, ...j) => {
|
209
209
|
k() ? (d.preventDefault(), d.stopPropagation()) : l instanceof Function && (d.preventDefault(), d.stopPropagation(), l(...j));
|
210
|
-
}, S = x(_, () => !!(h || u || b)), T = x(N), p =
|
210
|
+
}, S = x(_, () => !!(h || u || b)), T = x(N), p = W(), P = m(p.breakpoints.down("md")), B = m(p.breakpoints.down("lg")), D = m(p.breakpoints.up("lg")), n = i === "auto" ? P ? "xs" : B ? "sm" : "md" : i, R = i === "auto" ? D ? 80 : 40 : i === "md" ? 80 : 40, g = I(null);
|
211
211
|
return /* @__PURE__ */ a(
|
212
212
|
G,
|
213
213
|
{
|
214
214
|
...M,
|
215
|
-
scaleClickZone:
|
216
|
-
className: `${
|
215
|
+
scaleClickZone: C,
|
216
|
+
className: `${$} arcblock-blocklet arcblock-blocklet--size-${n}`,
|
217
217
|
children: [
|
218
218
|
/* @__PURE__ */ t("div", { className: "arcblock-blocklet__content", children: /* @__PURE__ */ t("div", { className: "arcblock-blocklet__content--main", onClick: T, ref: g, children: /* @__PURE__ */ a("div", { className: "arcblock-blocklet__content--body", children: [
|
219
|
-
r ? /* @__PURE__ */ t("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ t(
|
219
|
+
r ? /* @__PURE__ */ t("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ t(Q, { src: r }) }) : s && /* @__PURE__ */ t("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ t(O, { did: s, size: R }) }),
|
220
220
|
/* @__PURE__ */ a("div", { className: "arcblock-blocklet__info", children: [
|
221
221
|
/* @__PURE__ */ t(f, { component: "h3", variant: "h3", className: "arcblock-blocklet__title", title: e, children: e }),
|
222
222
|
c && /* @__PURE__ */ t(f, { component: "div", variant: "body2", className: "arcblock-blocklet__describe", title: c, children: c }),
|
223
|
-
["md", "sm", "xs"].includes(n) && /* @__PURE__ */ t(
|
223
|
+
["md", "sm", "xs"].includes(n) && /* @__PURE__ */ t(q, { container: g.current, disablePortal: n === "md", children: /* @__PURE__ */ t(
|
224
224
|
"div",
|
225
225
|
{
|
226
226
|
className: "arcblock-blocklet__button",
|
227
227
|
onClick: S,
|
228
228
|
style: { display: z ? "block" : "" },
|
229
229
|
children: h || _ && /* @__PURE__ */ a(
|
230
|
-
|
230
|
+
H,
|
231
231
|
{
|
232
232
|
className: "arcblock-blocklet__button--hover",
|
233
233
|
variant: "outlined",
|
@@ -237,7 +237,7 @@ function J({
|
|
237
237
|
style: n === "md" ? { padding: "3px 20px", fontSize: "14px" } : { padding: "3px 15px", minWidth: "54px", fontSize: "13px" },
|
238
238
|
children: [
|
239
239
|
b && /* @__PURE__ */ t(
|
240
|
-
|
240
|
+
A,
|
241
241
|
{
|
242
242
|
size: n === "md" ? 15 : 13,
|
243
243
|
style: { marginRight: 3, color: "inherit" }
|
@@ -260,7 +260,7 @@ function J({
|
|
260
260
|
title: l.title,
|
261
261
|
children: l.empty ? null : /* @__PURE__ */ a(F, { children: [
|
262
262
|
/* @__PURE__ */ t(v, { name: l.icon }),
|
263
|
-
l.pretty ?
|
263
|
+
l.pretty ? E(l.value) : l.value
|
264
264
|
] })
|
265
265
|
},
|
266
266
|
k
|
@@ -36,4 +36,4 @@ export interface IBlockletStore extends CardProps {
|
|
36
36
|
color?: string;
|
37
37
|
}[];
|
38
38
|
}
|
39
|
-
export default function BlockletStore(props: IBlockletStore): import("react/jsx-runtime").JSX.Element;
|
39
|
+
export default function BlockletStore({ ...props }: IBlockletStore): import("react/jsx-runtime").JSX.Element;
|
@@ -1,17 +1,16 @@
|
|
1
1
|
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
2
|
-
import { isValidElement as
|
3
|
-
import
|
2
|
+
import { isValidElement as W } from "react";
|
3
|
+
import F from "@iconify-icons/tabler/cloud-download";
|
4
4
|
import { Icon as s } from "@iconify/react";
|
5
|
-
import { Verified as
|
6
|
-
import {
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import "../Theme
|
10
|
-
import "
|
11
|
-
import
|
12
|
-
import
|
13
|
-
|
14
|
-
function co(A) {
|
5
|
+
import { Verified as O } from "@mui/icons-material";
|
6
|
+
import { Card as V, Stack as h, Typography as I, Box as z, CircularProgress as E } from "@mui/material";
|
7
|
+
import T from "../Avatar";
|
8
|
+
import q from "../Button";
|
9
|
+
import { useTheme as G } from "../Theme";
|
10
|
+
import d from "./components/icon-text";
|
11
|
+
import B from "./components/tooltip-icon";
|
12
|
+
import { strippedString as M, formatDownloadCount as J } from "./utils";
|
13
|
+
function co({ ...A }) {
|
15
14
|
const {
|
16
15
|
title: e,
|
17
16
|
description: n = "",
|
@@ -22,9 +21,9 @@ function co(A) {
|
|
22
21
|
did: u,
|
23
22
|
official: l,
|
24
23
|
buttonText: R = "Install",
|
25
|
-
buttonDisabled:
|
24
|
+
buttonDisabled: g,
|
26
25
|
buttonLoading: p,
|
27
|
-
button:
|
26
|
+
button: y,
|
28
27
|
onButtonClick: k = () => {
|
29
28
|
},
|
30
29
|
onMainClick: b,
|
@@ -33,10 +32,10 @@ function co(A) {
|
|
33
32
|
icons: f,
|
34
33
|
status: i,
|
35
34
|
...v
|
36
|
-
} = A,
|
37
|
-
const
|
38
|
-
(H() ||
|
39
|
-
}, _ = b && w(b), j = w(k, () => !!(
|
35
|
+
} = A, x = G(), w = (o, H = () => !1) => (C, ...N) => {
|
36
|
+
const S = o instanceof Function;
|
37
|
+
(H() || S) && (C.preventDefault(), C.stopPropagation(), S && o(...N));
|
38
|
+
}, _ = b && w(b), j = w(k, () => !!(y || g || p)), c = W(e) ? { children: e } : { title: M(e), dangerouslySetInnerHTML: { __html: e } }, a = W(n) ? { children: n } : { title: M(n), dangerouslySetInnerHTML: { __html: n } };
|
40
39
|
return /* @__PURE__ */ r(
|
41
40
|
V,
|
42
41
|
{
|
@@ -46,7 +45,7 @@ function co(A) {
|
|
46
45
|
sx: { p: { xs: 2, md: 3 }, borderRadius: 1, ...v.sx },
|
47
46
|
children: [
|
48
47
|
/* @__PURE__ */ r(
|
49
|
-
|
48
|
+
h,
|
50
49
|
{
|
51
50
|
direction: "row",
|
52
51
|
sx: {
|
@@ -57,12 +56,12 @@ function co(A) {
|
|
57
56
|
"& > *": { flexShrink: 0 }
|
58
57
|
},
|
59
58
|
children: [
|
60
|
-
/* @__PURE__ */ t(
|
59
|
+
/* @__PURE__ */ t(T, { src: D, did: u, size: 48, variant: "rounded", style: { borderRadius: "8px", overflow: "hidden" } }),
|
61
60
|
/* @__PURE__ */ t(
|
62
61
|
I,
|
63
62
|
{
|
64
63
|
className: "blocklet-title",
|
65
|
-
...
|
64
|
+
...c,
|
66
65
|
sx: [
|
67
66
|
{
|
68
67
|
fontWeight: "fontWeightMedium",
|
@@ -74,7 +73,7 @@ function co(A) {
|
|
74
73
|
pl: 0.5,
|
75
74
|
"&&": { flexShrink: 1 }
|
76
75
|
},
|
77
|
-
...Array.isArray(
|
76
|
+
...Array.isArray(c.sx) ? c.sx : [c.sx]
|
78
77
|
]
|
79
78
|
}
|
80
79
|
),
|
@@ -89,37 +88,37 @@ function co(A) {
|
|
89
88
|
gap: 1
|
90
89
|
},
|
91
90
|
children: [
|
92
|
-
l && /* @__PURE__ */ t(
|
93
|
-
f == null ? void 0 : f.map((o) => /* @__PURE__ */ t(
|
91
|
+
l && /* @__PURE__ */ t(B, { title: l.tooltip, children: /* @__PURE__ */ t(O, { sx: { color: l.color || "#D97706", fontSize: l.size || 18 } }) }),
|
92
|
+
f == null ? void 0 : f.map((o) => /* @__PURE__ */ t(B, { title: o.title, children: typeof o.icon == "string" ? /* @__PURE__ */ t(s, { icon: o.icon, style: { color: o.color } }) : o.icon }, o.key))
|
94
93
|
]
|
95
94
|
}
|
96
95
|
),
|
97
96
|
k && /* @__PURE__ */ r(
|
98
|
-
|
97
|
+
q,
|
99
98
|
{
|
100
99
|
variant: "outlined",
|
101
100
|
size: "small",
|
102
|
-
disabled:
|
101
|
+
disabled: g || p,
|
103
102
|
style: {
|
104
|
-
color:
|
105
|
-
borderColor:
|
103
|
+
color: x.palette.text.primary,
|
104
|
+
borderColor: x.palette.grey[300],
|
106
105
|
borderRadius: 8,
|
107
106
|
fontSize: 13,
|
108
|
-
fontWeight:
|
107
|
+
fontWeight: x.typography.fontWeightMedium
|
109
108
|
},
|
110
109
|
onClick: j,
|
111
110
|
children: [
|
112
|
-
p && /* @__PURE__ */ t(
|
111
|
+
p && /* @__PURE__ */ t(E, { size: 15, style: { marginRight: 3, color: "inherit" } }),
|
113
112
|
R
|
114
113
|
]
|
115
114
|
}
|
116
115
|
),
|
117
|
-
|
116
|
+
y
|
118
117
|
]
|
119
118
|
}
|
120
119
|
),
|
121
120
|
/* @__PURE__ */ t(
|
122
|
-
|
121
|
+
h,
|
123
122
|
{
|
124
123
|
sx: {
|
125
124
|
py: 2
|
@@ -129,7 +128,7 @@ function co(A) {
|
|
129
128
|
{
|
130
129
|
className: "blocklet-description",
|
131
130
|
variant: "body2",
|
132
|
-
...
|
131
|
+
...a,
|
133
132
|
sx: [
|
134
133
|
{
|
135
134
|
color: "text.secondary",
|
@@ -141,14 +140,14 @@ function co(A) {
|
|
141
140
|
cursor: "default",
|
142
141
|
height: 40
|
143
142
|
},
|
144
|
-
...Array.isArray(
|
143
|
+
...Array.isArray(a.sx) ? a.sx : [a.sx]
|
145
144
|
]
|
146
145
|
}
|
147
146
|
)
|
148
147
|
}
|
149
148
|
),
|
150
149
|
/* @__PURE__ */ r(
|
151
|
-
|
150
|
+
h,
|
152
151
|
{
|
153
152
|
direction: "row",
|
154
153
|
sx: {
|
@@ -157,8 +156,8 @@ function co(A) {
|
|
157
156
|
color: "text.secondary"
|
158
157
|
},
|
159
158
|
children: [
|
160
|
-
/* @__PURE__ */ t(d, { icon: /* @__PURE__ */ t(
|
161
|
-
/* @__PURE__ */ t(d, { icon: /* @__PURE__ */ t(s, { icon:
|
159
|
+
/* @__PURE__ */ t(d, { icon: /* @__PURE__ */ t(T, { src: L, did: u, size: 20, variant: "circle" }), maxWidth: 200, children: P }),
|
160
|
+
/* @__PURE__ */ t(d, { icon: /* @__PURE__ */ t(s, { icon: F }), title: m, children: J(m) }),
|
162
161
|
i == null ? void 0 : i.filter((o) => o.align !== "right").map((o) => /* @__PURE__ */ t(
|
163
162
|
d,
|
164
163
|
{
|
@@ -6,4 +6,4 @@ export default function IconText({ icon, children, maxWidth, title, sx, }: {
|
|
6
6
|
maxWidth?: number;
|
7
7
|
title?: React.ReactNode;
|
8
8
|
sx?: StackProps['sx'];
|
9
|
-
}): false | "" | 0 | 0n | import("react/jsx-runtime").JSX.Element | null
|
9
|
+
}): false | "" | 0 | 0n | import("react/jsx-runtime").JSX.Element | null;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { Stack as
|
3
|
-
import
|
4
|
-
function
|
5
|
-
icon: e,
|
6
|
-
children: o,
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
2
|
+
import { Stack as n, Typography as p } from "@mui/material";
|
3
|
+
import f from "./tooltip-icon";
|
4
|
+
function u({
|
5
|
+
icon: e = null,
|
6
|
+
children: o = null,
|
7
7
|
maxWidth: i = 100,
|
8
|
-
title: a,
|
9
|
-
sx: r
|
8
|
+
title: a = void 0,
|
9
|
+
sx: r = {}
|
10
10
|
}) {
|
11
|
-
return (o === 0 || o) && /* @__PURE__ */
|
12
|
-
|
11
|
+
return (o === 0 || o) && /* @__PURE__ */ l(
|
12
|
+
n,
|
13
13
|
{
|
14
14
|
direction: "row",
|
15
15
|
sx: [
|
@@ -22,8 +22,8 @@ function d({
|
|
22
22
|
],
|
23
23
|
children: [
|
24
24
|
e,
|
25
|
-
/* @__PURE__ */ t(
|
26
|
-
|
25
|
+
/* @__PURE__ */ t(f, { title: a || (typeof o == "string" ? o : ""), children: /* @__PURE__ */ t(
|
26
|
+
p,
|
27
27
|
{
|
28
28
|
variant: "body2",
|
29
29
|
sx: {
|
@@ -41,5 +41,5 @@ function d({
|
|
41
41
|
);
|
42
42
|
}
|
43
43
|
export {
|
44
|
-
|
44
|
+
u as default
|
45
45
|
};
|
@@ -1,30 +1,31 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import { Tooltip as
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import { jsx as x } from "react/jsx-runtime";
|
2
|
+
import { Tooltip as n, tooltipClasses as f } from "@mui/material";
|
3
|
+
import { mergeSx as u } from "../../Util/style";
|
4
|
+
function I({
|
5
|
+
title: t,
|
6
|
+
sx: c,
|
6
7
|
children: p,
|
7
8
|
slotProps: e,
|
8
|
-
fontSize:
|
9
|
-
fontWeight:
|
9
|
+
fontSize: a = 12,
|
10
|
+
fontWeight: m = 500,
|
10
11
|
color: r = "text.contrast",
|
11
|
-
...
|
12
|
+
...i
|
12
13
|
}) {
|
13
|
-
var
|
14
|
-
return
|
15
|
-
|
14
|
+
var o;
|
15
|
+
return t ? /* @__PURE__ */ x(
|
16
|
+
n,
|
16
17
|
{
|
17
|
-
title:
|
18
|
+
title: t,
|
18
19
|
placement: "top",
|
19
|
-
...
|
20
|
+
...i,
|
20
21
|
slotProps: {
|
21
22
|
popper: {
|
22
23
|
...e == null ? void 0 : e.popper,
|
23
|
-
sx:
|
24
|
+
sx: u(
|
24
25
|
{
|
25
|
-
[`& .${
|
26
|
-
fontSize:
|
27
|
-
fontWeight:
|
26
|
+
[`& .${f.tooltip}`]: {
|
27
|
+
fontSize: a,
|
28
|
+
fontWeight: m,
|
28
29
|
boxShadow: 2,
|
29
30
|
marginBottom: "6px !important",
|
30
31
|
borderRadius: "8px",
|
@@ -34,8 +35,9 @@ function g({
|
|
34
35
|
alignItems: "center"
|
35
36
|
}
|
36
37
|
},
|
37
|
-
|
38
|
-
|
38
|
+
// @ts-expect-error
|
39
|
+
(o = e == null ? void 0 : e.popper) == null ? void 0 : o.sx
|
40
|
+
)
|
39
41
|
}
|
40
42
|
},
|
41
43
|
children: p
|
@@ -43,5 +45,5 @@ function g({
|
|
43
45
|
) : p;
|
44
46
|
}
|
45
47
|
export {
|
46
|
-
|
48
|
+
I as default
|
47
49
|
};
|
package/lib/BlockletV2/index.js
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
import { default as
|
2
|
-
import
|
3
|
-
import { default as
|
1
|
+
import { default as f, strippedString as p } from "./utils";
|
2
|
+
import "./blocklet";
|
3
|
+
import { default as a } from "./blocklet";
|
4
|
+
import { default as m } from "./components/tooltip-icon";
|
4
5
|
export {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
f as ActionButton,
|
7
|
+
m as TooltipIcon,
|
8
|
+
a as default,
|
9
|
+
p as strippedString
|
9
10
|
};
|
package/lib/BlockletV2/utils.js
CHANGED
package/lib/Button/index.js
CHANGED
package/lib/Button/wrap.js
CHANGED
@@ -2,8 +2,8 @@ import { jsx as u, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import r from "prop-types";
|
3
3
|
import i from "lodash/isUndefined";
|
4
4
|
import { CircularProgress as j } from "@mui/material";
|
5
|
-
import o from "../Colors
|
6
|
-
import { mergeProps as k } from "../Util
|
5
|
+
import o from "../Colors";
|
6
|
+
import { mergeProps as k } from "../Util";
|
7
7
|
const y = {
|
8
8
|
did: {
|
9
9
|
contained: { backgroundColor: o.did.primary, color: o.common.white },
|
@@ -15,7 +15,7 @@ const y = {
|
|
15
15
|
}
|
16
16
|
};
|
17
17
|
function q(g) {
|
18
|
-
function d(c) {
|
18
|
+
function d({ ...c }) {
|
19
19
|
const e = Object.assign({}, c);
|
20
20
|
i(e.rounded) && (e.rounded = !1), i(e.size) && (e.size = "medium"), i(e.forwardedRef) && (e.forwardedRef = null), i(e.style) && (e.style = {});
|
21
21
|
const s = k(e, d, ["style"]), { children: b, rounded: w, loading: f, disabled: h, style: R, forwardedRef: C, color: n, ...t } = s, z = h || f;
|
package/lib/ButtonGroup/index.js
CHANGED
package/lib/Center/index.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
2
|
-
import { styled as r } from "../Theme
|
2
|
+
import { styled as r } from "../Theme";
|
3
3
|
function o({
|
4
|
-
children: e,
|
4
|
+
children: e = null,
|
5
5
|
relative: i = "screen"
|
6
6
|
}) {
|
7
7
|
let t = {};
|
8
8
|
return i === "parent" && (t = {
|
9
9
|
width: "100%",
|
10
10
|
height: "100%"
|
11
|
-
}), /* @__PURE__ */ n(
|
11
|
+
}), /* @__PURE__ */ n(l, { style: t, children: e });
|
12
12
|
}
|
13
|
-
const
|
13
|
+
const l = r("div")`
|
14
14
|
flex: 1;
|
15
15
|
width: 100vw;
|
16
16
|
height: 100vh;
|
@@ -2,15 +2,15 @@ import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as u } from "@mui/material";
|
3
3
|
import { green as y } from "@mui/material/colors";
|
4
4
|
import { Check as a, ContentCopy as C } from "@mui/icons-material";
|
5
|
-
import
|
5
|
+
import d from "./hook";
|
6
6
|
function S({
|
7
7
|
content: c = "",
|
8
8
|
locale: m = "en",
|
9
|
-
render: e,
|
9
|
+
render: e = void 0,
|
10
10
|
showTooltip: l = !0,
|
11
11
|
...r
|
12
12
|
}) {
|
13
|
-
const { containerRef: s, copied: t, copy: f, texts: n } =
|
13
|
+
const { containerRef: s, copied: t, copy: f, texts: n } = d({ content: c, locale: m }), i = {
|
14
14
|
fontSize: "1em"
|
15
15
|
}, p = /* @__PURE__ */ o("span", { title: t ? "" : n.copy, ...r, style: { height: "1em", ...r.style }, children: t ? /* @__PURE__ */ o(u, { title: n.copied, placement: "bottom", arrow: !0, open: t && l, children: /* @__PURE__ */ o(a, { sx: { ...i, color: y[500] } }) }) : /* @__PURE__ */ o(C, { onClick: f, sx: { ...i, cursor: "pointer" } }) });
|
16
16
|
return e ? e({ copyButton: p, containerRef: s }) : p;
|
package/lib/ClickToCopy/index.js
CHANGED
@@ -3,11 +3,11 @@ import { useSize as F } from "ahooks";
|
|
3
3
|
import { Tooltip as S } from "@mui/material";
|
4
4
|
import t from "lodash/isUndefined";
|
5
5
|
import { useSnackbar as U } from "notistack";
|
6
|
-
import _ from "./hook
|
7
|
-
import B, { ToastProvider as L } from "../Toast
|
8
|
-
import { mergeProps as O } from "../Util
|
9
|
-
import { styled as s } from "../Theme
|
10
|
-
import { default as X } from "./copy-button
|
6
|
+
import _ from "./hook";
|
7
|
+
import B, { ToastProvider as L } from "../Toast";
|
8
|
+
import { mergeProps as O } from "../Util";
|
9
|
+
import { styled as s } from "../Theme";
|
10
|
+
import { default as X } from "./copy-button";
|
11
11
|
const R = s("span")`
|
12
12
|
display: inline;
|
13
13
|
white-space: pre-wrap;
|
package/lib/CloseButton/index.js
CHANGED
@@ -3,10 +3,10 @@ import { Box as e } from "@mui/material";
|
|
3
3
|
import { Icon as i } from "@iconify/react";
|
4
4
|
import m from "@iconify-icons/material-symbols/close-rounded";
|
5
5
|
import s from "lodash/noop";
|
6
|
-
import { mergeSx as f } from "../Util/style
|
6
|
+
import { mergeSx as f } from "../Util/style";
|
7
7
|
function x({
|
8
8
|
onClose: r = s,
|
9
|
-
sx: t,
|
9
|
+
sx: t = {},
|
10
10
|
size: n = 20
|
11
11
|
}) {
|
12
12
|
return /* @__PURE__ */ o(
|
package/lib/CodeBlock/index.js
CHANGED
@@ -19,9 +19,9 @@ import b from "highlight.js/lib/languages/plaintext";
|
|
19
19
|
import B from "highlight.js/lib/languages/markdown";
|
20
20
|
import "highlight.js/styles/atom-one-dark.css";
|
21
21
|
import { FileCopy as S, Check as T } from "@mui/icons-material";
|
22
|
-
import o from "../Colors
|
23
|
-
import { styled as A } from "../Theme
|
24
|
-
import E from "./LightBox
|
22
|
+
import o from "../Colors";
|
23
|
+
import { styled as A } from "../Theme";
|
24
|
+
import E from "./LightBox";
|
25
25
|
e.registerLanguage("javascript", n);
|
26
26
|
e.registerLanguage("js", n);
|
27
27
|
e.registerLanguage("jsx", n);
|
package/lib/Colors/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { default as t } from "./themes/default
|
2
|
-
import { default as f } from "./themes/temp
|
3
|
-
import { default as d } from "./themes/did-connect
|
1
|
+
import { default as t } from "./themes/default";
|
2
|
+
import { default as f } from "./themes/temp";
|
3
|
+
import { default as d } from "./themes/did-connect";
|
4
4
|
export {
|
5
5
|
t as default,
|
6
6
|
d as didConnectColors,
|
@@ -1,17 +1,16 @@
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
2
|
-
import { LocaleProvider as
|
3
|
-
import x, { useColorScheme as a } from "../Theme/theme-provider
|
4
|
-
import { useTheme as d } from "
|
5
|
-
|
6
|
-
function T({
|
2
|
+
import { LocaleProvider as C, useLocaleContext as p } from "../Locale/context";
|
3
|
+
import x, { useColorScheme as a } from "../Theme/theme-provider";
|
4
|
+
import { useTheme as d } from "../Theme";
|
5
|
+
function S({
|
7
6
|
children: o,
|
8
7
|
// theme provider
|
9
8
|
theme: e,
|
10
9
|
injectFirst: r,
|
11
10
|
darkSchemeClass: m,
|
12
|
-
prefer:
|
13
|
-
disableBlockletTheme:
|
14
|
-
enableColorScheme:
|
11
|
+
prefer: n,
|
12
|
+
disableBlockletTheme: c = !1,
|
13
|
+
enableColorScheme: i,
|
15
14
|
// locale provider
|
16
15
|
locale: f,
|
17
16
|
fallbackLocale: s,
|
@@ -25,11 +24,11 @@ function T({
|
|
25
24
|
theme: e,
|
26
25
|
injectFirst: r,
|
27
26
|
darkSchemeClass: m,
|
28
|
-
prefer:
|
29
|
-
disableBlockletTheme:
|
30
|
-
enableColorScheme:
|
27
|
+
prefer: n,
|
28
|
+
disableBlockletTheme: c,
|
29
|
+
enableColorScheme: i,
|
31
30
|
children: /* @__PURE__ */ t(
|
32
|
-
|
31
|
+
C,
|
33
32
|
{
|
34
33
|
locale: f,
|
35
34
|
fallbackLocale: s,
|
@@ -42,8 +41,8 @@ function T({
|
|
42
41
|
}
|
43
42
|
);
|
44
43
|
}
|
45
|
-
function
|
46
|
-
const o = d(), e =
|
44
|
+
function T() {
|
45
|
+
const o = d(), e = p(), r = a();
|
47
46
|
return {
|
48
47
|
theme: o,
|
49
48
|
...e,
|
@@ -51,6 +50,6 @@ function j() {
|
|
51
50
|
};
|
52
51
|
}
|
53
52
|
export {
|
54
|
-
|
55
|
-
|
53
|
+
S as ConfigProvider,
|
54
|
+
T as useConfig
|
56
55
|
};
|
package/lib/Config/index.js
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
|
2
|
-
import { default as
|
1
|
+
export * from "./config-provider";
|
2
|
+
import { default as f } from "./theme-mode-toggle";
|
3
3
|
export {
|
4
|
-
|
5
|
-
d as ThemeModeToggle,
|
6
|
-
f as useConfig
|
4
|
+
f as ThemeModeToggle
|
7
5
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
2
2
|
import { IconButton as l } from "@mui/material";
|
3
3
|
import { Brightness2Outlined as s, LightModeOutlined as m } from "@mui/icons-material";
|
4
|
-
import { useColorScheme as u } from "../Theme/theme-provider
|
4
|
+
import { useColorScheme as u } from "../Theme/theme-provider";
|
5
5
|
function h() {
|
6
6
|
var r, t;
|
7
7
|
const { mode: n, toggleMode: o, prefer: i } = u();
|