@blockscout/ui-toolkit 0.0.1-alpha.1 → 0.0.1-alpha.3
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/README.md +5 -0
- package/dist/chakra/accordion.d.ts +1 -1
- package/dist/chakra/drawer.d.ts +1 -1
- package/dist/chakra/popover.d.ts +1 -2
- package/dist/chakra/select.d.ts +4 -1
- package/dist/components/AdaptiveTabs/index.d.ts +3 -0
- package/dist/components/Hint/Hint.d.ts +11 -0
- package/dist/components/RoutedTabs/index.d.ts +3 -0
- package/dist/components/buttons/BackToButton.d.ts +7 -0
- package/dist/components/buttons/ClearButton.d.ts +6 -0
- package/dist/components/{Filter → filters}/FilterInput.d.ts +2 -3
- package/dist/components/forms/components/FormFieldError.d.ts +7 -0
- package/dist/components/forms/components/index.d.ts +1 -0
- package/dist/components/forms/fields/FormFieldAddress.d.ts +5 -0
- package/dist/components/forms/fields/FormFieldCheckbox.d.ts +9 -0
- package/dist/components/forms/fields/FormFieldColor.d.ts +9 -0
- package/dist/components/forms/fields/FormFieldEmail.d.ts +5 -0
- package/dist/components/forms/fields/FormFieldSelect.d.ts +7 -0
- package/dist/components/forms/fields/FormFieldSelectAsync.d.ts +7 -0
- package/dist/components/forms/fields/FormFieldText.d.ts +8 -0
- package/dist/components/forms/fields/FormFieldUrl.d.ts +4 -0
- package/dist/components/forms/fields/image/FormFieldImagePreview.d.ts +13 -0
- package/dist/components/forms/fields/image/useImageField.d.ts +25 -0
- package/dist/components/forms/fields/index.d.ts +10 -0
- package/dist/components/forms/fields/types.d.ts +19 -0
- package/dist/components/forms/inputs/file/DragAndDropArea.d.ts +11 -0
- package/dist/components/forms/inputs/file/FileInput.d.ts +13 -0
- package/dist/components/forms/inputs/file/FileSnippet.d.ts +11 -0
- package/dist/components/forms/inputs/file/utils.d.ts +2 -0
- package/dist/components/forms/inputs/index.d.ts +3 -0
- package/dist/components/forms/utils/getFormFieldErrorText.d.ts +2 -0
- package/dist/components/forms/utils/index.d.ts +1 -0
- package/dist/components/forms/validators/address.d.ts +3 -0
- package/dist/components/forms/validators/color.d.ts +2 -0
- package/dist/components/forms/validators/email.d.ts +2 -0
- package/dist/components/forms/validators/index.d.ts +7 -0
- package/dist/components/forms/validators/signature.d.ts +1 -0
- package/dist/components/forms/validators/text.d.ts +1 -0
- package/dist/components/forms/validators/transaction.d.ts +2 -0
- package/dist/components/forms/validators/url.d.ts +3 -0
- package/dist/components/truncation/TruncatedTextTooltip.d.ts +8 -0
- package/dist/hooks/useClipboard.d.ts +1 -1
- package/dist/hooks/useFirstMountState.d.ts +1 -0
- package/dist/hooks/useIsSticky.d.ts +2 -0
- package/dist/hooks/useUpdateEffect.d.ts +2 -0
- package/dist/hooks/useViewportSize.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +10479 -0
- package/dist/package/src/index.d.ts +29 -11
- package/dist/theme/recipes/alert.recipe.d.ts +6 -46
- package/dist/theme/recipes/badge.recipe.d.ts +11 -44
- package/dist/theme/recipes/button.recipe.d.ts +17 -20
- package/dist/theme/recipes/close-button.recipe.d.ts +0 -3
- package/dist/theme/recipes/dialog.recipe.d.ts +1 -1
- package/dist/theme/recipes/drawer.recipe.d.ts +1 -1
- package/dist/theme/recipes/index.d.ts +47 -147
- package/dist/theme/recipes/link.recipe.d.ts +1 -9
- package/dist/theme/recipes/list.recipe.d.ts +1 -1
- package/dist/theme/recipes/menu.recipe.d.ts +1 -1
- package/dist/theme/recipes/select.recipe.d.ts +1 -1
- package/dist/theme/recipes/skeleton.recipe.d.ts +5 -6
- package/dist/theme/recipes/table.recipe.d.ts +1 -1
- package/dist/theme/recipes/tag.recipe.d.ts +0 -12
- package/dist/theme/recipes/toast.recipe.d.ts +1 -1
- package/dist/theme/theme.d.ts +1 -0
- package/dist/utils/consts.d.ts +15 -0
- package/dist/utils/guards.d.ts +2 -0
- package/dist/utils/htmlEntities.d.ts +26 -0
- package/dist/utils/isBrowser.d.ts +1 -0
- package/dist/utils/regexp.d.ts +6 -0
- package/dist/utils/url.d.ts +6 -0
- package/package.json +17 -28
- package/dist/_virtual/Button.js +0 -4
- package/dist/_virtual/Element.js +0 -4
- package/dist/_virtual/Link.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -4
- package/dist/_virtual/animate-scroll.js +0 -4
- package/dist/_virtual/cancel-events.js +0 -4
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -4
- package/dist/_virtual/index4.js +0 -4
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -4
- package/dist/_virtual/passive-event-listeners.js +0 -4
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/react-jsx-runtime.development.js +0 -4
- package/dist/_virtual/react-jsx-runtime.production.min.js +0 -4
- package/dist/_virtual/scroll-element.js +0 -4
- package/dist/_virtual/scroll-events.js +0 -4
- package/dist/_virtual/scroll-hash.js +0 -4
- package/dist/_virtual/scroll-link.js +0 -4
- package/dist/_virtual/scroll-spy.js +0 -4
- package/dist/_virtual/scroller.js +0 -4
- package/dist/_virtual/smooth.js +0 -4
- package/dist/_virtual/utils.js +0 -4
- package/dist/chakra/accordion.js +0 -61
- package/dist/chakra/alert.js +0 -45
- package/dist/chakra/avatar.js +0 -36
- package/dist/chakra/badge.js +0 -18
- package/dist/chakra/button.js +0 -65
- package/dist/chakra/checkbox.js +0 -33
- package/dist/chakra/close-button.js +0 -13
- package/dist/chakra/collapsible.js +0 -58
- package/dist/chakra/color-mode.js +0 -35
- package/dist/chakra/dialog.js +0 -47
- package/dist/chakra/drawer.js +0 -39
- package/dist/chakra/field.js +0 -65
- package/dist/chakra/heading.js +0 -12
- package/dist/chakra/icon-button.js +0 -44
- package/dist/chakra/image.js +0 -30
- package/dist/chakra/input-group.js +0 -47
- package/dist/chakra/input.js +0 -5
- package/dist/chakra/link.js +0 -68
- package/dist/chakra/menu.js +0 -63
- package/dist/chakra/pin-input.js +0 -15
- package/dist/chakra/popover.js +0 -69
- package/dist/chakra/progress-circle.js +0 -17
- package/dist/chakra/provider.js +0 -10
- package/dist/chakra/radio.js +0 -17
- package/dist/chakra/rating.js +0 -21
- package/dist/chakra/select.js +0 -185
- package/dist/chakra/skeleton.js +0 -40
- package/dist/chakra/slider.js +0 -39
- package/dist/chakra/switch.js +0 -19
- package/dist/chakra/table.js +0 -66
- package/dist/chakra/tabs.js +0 -29
- package/dist/chakra/tag.js +0 -51
- package/dist/chakra/textarea.js +0 -5
- package/dist/chakra/toaster.js +0 -31
- package/dist/chakra/tooltip.js +0 -85
- package/dist/chakra.d.ts +0 -1
- package/dist/chakra.js +0 -155
- package/dist/components/ButtonBackTo.d.ts +0 -8
- package/dist/components/ButtonBackTo.js +0 -22
- package/dist/components/Filter/FilterInput.js +0 -48
- package/dist/components/TruncatedTextTooltip.d.ts +0 -9
- package/dist/components/TruncatedTextTooltip.js +0 -49
- package/dist/components/index.d.ts +0 -1
- package/dist/components.d.ts +0 -2
- package/dist/components.js +0 -1
- package/dist/configs/app/api.js +0 -23
- package/dist/configs/app/app.js +0 -19
- package/dist/configs/app/chain.js +0 -30
- package/dist/configs/app/features/account.js +0 -13
- package/dist/configs/app/features/addressMetadata.js +0 -15
- package/dist/configs/app/features/addressProfileAPI.js +0 -25
- package/dist/configs/app/features/addressVerification.js +0 -17
- package/dist/configs/app/features/adsBanner.js +0 -50
- package/dist/configs/app/features/adsText.js +0 -16
- package/dist/configs/app/features/advancedFilter.js +0 -11
- package/dist/configs/app/features/beaconChain.js +0 -15
- package/dist/configs/app/features/blockchainInteraction.js +0 -15
- package/dist/configs/app/features/bridgedTokens.js +0 -16
- package/dist/configs/app/features/celo.js +0 -13
- package/dist/configs/app/features/csvExport.js +0 -14
- package/dist/configs/app/features/dataAvailability.js +0 -11
- package/dist/configs/app/features/deFiDropdown.js +0 -12
- package/dist/configs/app/features/easterEggBadge.js +0 -12
- package/dist/configs/app/features/externalTxs.js +0 -14
- package/dist/configs/app/features/faultProofSystem.js +0 -12
- package/dist/configs/app/features/gasTracker.js +0 -17
- package/dist/configs/app/features/getGasButton.js +0 -17
- package/dist/configs/app/features/googleAnalytics.js +0 -12
- package/dist/configs/app/features/graphqlApiDocs.js +0 -12
- package/dist/configs/app/features/growthBook.js +0 -12
- package/dist/configs/app/features/index.js +0 -92
- package/dist/configs/app/features/marketplace.js +0 -46
- package/dist/configs/app/features/metasuites.js +0 -11
- package/dist/configs/app/features/mixpanel.js +0 -12
- package/dist/configs/app/features/mudFramework.js +0 -12
- package/dist/configs/app/features/multichainButton.js +0 -18
- package/dist/configs/app/features/nameService.js +0 -15
- package/dist/configs/app/features/pools.js +0 -15
- package/dist/configs/app/features/publicTagsSubmission.js +0 -17
- package/dist/configs/app/features/restApiDocs.js +0 -12
- package/dist/configs/app/features/rewards.js +0 -17
- package/dist/configs/app/features/rollbar.js +0 -20
- package/dist/configs/app/features/rollup.js +0 -37
- package/dist/configs/app/features/safe.js +0 -23
- package/dist/configs/app/features/saveOnGas.js +0 -13
- package/dist/configs/app/features/sol2uml.js +0 -16
- package/dist/configs/app/features/stats.js +0 -16
- package/dist/configs/app/features/suave.js +0 -11
- package/dist/configs/app/features/txInterpretation.js +0 -16
- package/dist/configs/app/features/userOps.js +0 -11
- package/dist/configs/app/features/validators.js +0 -16
- package/dist/configs/app/features/verifiedTokens.js +0 -15
- package/dist/configs/app/features/web3Wallet.js +0 -24
- package/dist/configs/app/features/xStarScore.js +0 -12
- package/dist/configs/app/index.js +0 -19
- package/dist/configs/app/meta.js +0 -16
- package/dist/configs/app/services.js +0 -9
- package/dist/configs/app/ui/views/address.js +0 -36
- package/dist/configs/app/ui/views/block.js +0 -11
- package/dist/configs/app/ui/views/index.js +0 -12
- package/dist/configs/app/ui/views/nft.js +0 -10
- package/dist/configs/app/ui/views/token.js +0 -7
- package/dist/configs/app/ui/views/tx.js +0 -15
- package/dist/configs/app/ui.js +0 -128
- package/dist/configs/app/utils.js +0 -45
- package/dist/hooks/useClipboard.js +0 -27
- package/dist/hooks/useDisclosure.js +0 -17
- package/dist/hooks/useViewportSize.js +0 -17
- package/dist/hooks.d.ts +0 -1
- package/dist/hooks.js +0 -8
- package/dist/icons/arrows/east-mini.svg.js +0 -4
- package/dist/icons/arrows/east.svg.js +0 -4
- package/dist/icons/check.svg.js +0 -4
- package/dist/icons/close.svg.js +0 -4
- package/dist/icons/info_filled.svg.js +0 -4
- package/dist/icons/link_external.svg.js +0 -4
- package/dist/icons/star_filled.svg.js +0 -4
- package/dist/icons/star_outline.svg.js +0 -4
- package/dist/lib/consts.js +0 -10
- package/dist/lib/hooks/useFirstMountState.js +0 -8
- package/dist/lib/hooks/useIsMobile.js +0 -7
- package/dist/lib/hooks/useUpdateEffect.js +0 -12
- package/dist/lib/html-entities.js +0 -5
- package/dist/lib/isBrowser.js +0 -6
- package/dist/lib/regexp.js +0 -4
- package/dist/lib/settings/colorTheme.js +0 -33
- package/dist/lib/stripTrailingSlash.js +0 -4
- package/dist/node_modules/@uidotdev/usehooks/index.js +0 -51
- package/dist/node_modules/bignumber.js/bignumber.js +0 -627
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +0 -30
- package/dist/node_modules/es-toolkit/dist/function/throttle.js +0 -11
- package/dist/node_modules/lodash.throttle/index.js +0 -95
- package/dist/node_modules/object-assign/index.js +0 -54
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
- package/dist/node_modules/prop-types/index.js +0 -17
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/dist/node_modules/prop-types/lib/has.js +0 -7
- package/dist/node_modules/react-icons/lib/iconBase.js +0 -108
- package/dist/node_modules/react-icons/lib/iconContext.js +0 -12
- package/dist/node_modules/react-icons/lu/index.js +0 -12
- package/dist/node_modules/react-is/cjs/react-is.development.js +0 -95
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -78
- package/dist/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/react-scroll/modules/components/Button.js +0 -58
- package/dist/node_modules/react-scroll/modules/components/Element.js +0 -72
- package/dist/node_modules/react-scroll/modules/components/Link.js +0 -49
- package/dist/node_modules/react-scroll/modules/index.js +0 -26
- package/dist/node_modules/react-scroll/modules/mixins/Helpers.js +0 -192
- package/dist/node_modules/react-scroll/modules/mixins/animate-scroll.js +0 -132
- package/dist/node_modules/react-scroll/modules/mixins/cancel-events.js +0 -20
- package/dist/node_modules/react-scroll/modules/mixins/passive-event-listeners.js +0 -27
- package/dist/node_modules/react-scroll/modules/mixins/scroll-element.js +0 -98
- package/dist/node_modules/react-scroll/modules/mixins/scroll-events.js +0 -23
- package/dist/node_modules/react-scroll/modules/mixins/scroll-hash.js +0 -61
- package/dist/node_modules/react-scroll/modules/mixins/scroll-link.js +0 -171
- package/dist/node_modules/react-scroll/modules/mixins/scroll-spy.js +0 -79
- package/dist/node_modules/react-scroll/modules/mixins/scroller.js +0 -62
- package/dist/node_modules/react-scroll/modules/mixins/smooth.js +0 -72
- package/dist/node_modules/react-scroll/modules/mixins/utils.js +0 -55
- package/dist/package/node_modules/react/cjs/react-jsx-runtime.development.js +0 -604
- package/dist/package/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -28
- package/dist/package/node_modules/react/jsx-runtime.js +0 -10
- package/dist/theme/foundations/animations.js +0 -15
- package/dist/theme/foundations/animations.ts +0 -12
- package/dist/theme/foundations/borders.js +0 -12
- package/dist/theme/foundations/borders.ts +0 -13
- package/dist/theme/foundations/breakpoints.js +0 -11
- package/dist/theme/foundations/breakpoints.ts +0 -10
- package/dist/theme/foundations/colors.js +0 -163
- package/dist/theme/foundations/colors.ts +0 -162
- package/dist/theme/foundations/durations.js +0 -12
- package/dist/theme/foundations/durations.ts +0 -15
- package/dist/theme/foundations/semanticTokens.js +0 -474
- package/dist/theme/foundations/semanticTokens.ts +0 -475
- package/dist/theme/foundations/shadows.js +0 -16
- package/dist/theme/foundations/shadows.ts +0 -19
- package/dist/theme/foundations/typography.js +0 -92
- package/dist/theme/foundations/typography.ts +0 -93
- package/dist/theme/foundations/zIndex.js +0 -24
- package/dist/theme/foundations/zIndex.ts +0 -20
- package/dist/theme/globalCss.js +0 -51
- package/dist/theme/globalCss.ts +0 -57
- package/dist/theme/globals/address-entity.js +0 -34
- package/dist/theme/globals/address-entity.ts +0 -33
- package/dist/theme/globals/recaptcha.js +0 -21
- package/dist/theme/globals/recaptcha.ts +0 -20
- package/dist/theme/globals/scrollbar.js +0 -33
- package/dist/theme/globals/scrollbar.ts +0 -32
- package/dist/theme/index.d.ts +0 -1
- package/dist/theme/index.ts +0 -1
- package/dist/theme/recipes/accordion.recipe.js +0 -143
- package/dist/theme/recipes/accordion.recipe.ts +0 -145
- package/dist/theme/recipes/alert.recipe.js +0 -134
- package/dist/theme/recipes/alert.recipe.ts +0 -138
- package/dist/theme/recipes/badge.recipe.js +0 -119
- package/dist/theme/recipes/badge.recipe.ts +0 -117
- package/dist/theme/recipes/button.recipe.js +0 -272
- package/dist/theme/recipes/button.recipe.ts +0 -270
- package/dist/theme/recipes/checkbox.recipe.js +0 -53
- package/dist/theme/recipes/checkbox.recipe.ts +0 -56
- package/dist/theme/recipes/checkmark.recipe.js +0 -73
- package/dist/theme/recipes/checkmark.recipe.ts +0 -73
- package/dist/theme/recipes/close-button.recipe.js +0 -39
- package/dist/theme/recipes/close-button.recipe.ts +0 -37
- package/dist/theme/recipes/dialog.recipe.js +0 -210
- package/dist/theme/recipes/dialog.recipe.ts +0 -213
- package/dist/theme/recipes/drawer.recipe.js +0 -168
- package/dist/theme/recipes/drawer.recipe.ts +0 -173
- package/dist/theme/recipes/field.recipe.js +0 -174
- package/dist/theme/recipes/field.recipe.ts +0 -175
- package/dist/theme/recipes/index.js +0 -69
- package/dist/theme/recipes/index.ts +0 -68
- package/dist/theme/recipes/input.recipe.js +0 -116
- package/dist/theme/recipes/input.recipe.ts +0 -119
- package/dist/theme/recipes/link.recipe.js +0 -88
- package/dist/theme/recipes/link.recipe.ts +0 -86
- package/dist/theme/recipes/list.recipe.js +0 -65
- package/dist/theme/recipes/list.recipe.ts +0 -67
- package/dist/theme/recipes/menu.recipe.js +0 -104
- package/dist/theme/recipes/menu.recipe.ts +0 -105
- package/dist/theme/recipes/pin-input.recipe.js +0 -34
- package/dist/theme/recipes/pin-input.recipe.ts +0 -35
- package/dist/theme/recipes/popover.recipe.js +0 -72
- package/dist/theme/recipes/popover.recipe.ts +0 -70
- package/dist/theme/recipes/progress-circle.recipe.js +0 -74
- package/dist/theme/recipes/progress-circle.recipe.ts +0 -74
- package/dist/theme/recipes/radio-group.recipe.js +0 -69
- package/dist/theme/recipes/radio-group.recipe.ts +0 -73
- package/dist/theme/recipes/radiomark.recipe.js +0 -87
- package/dist/theme/recipes/radiomark.recipe.ts +0 -91
- package/dist/theme/recipes/rating-group.recipe.js +0 -84
- package/dist/theme/recipes/rating-group.recipe.ts +0 -93
- package/dist/theme/recipes/select.recipe.js +0 -275
- package/dist/theme/recipes/select.recipe.ts +0 -277
- package/dist/theme/recipes/skeleton.recipe.js +0 -54
- package/dist/theme/recipes/skeleton.recipe.ts +0 -55
- package/dist/theme/recipes/spinner.recipe.js +0 -33
- package/dist/theme/recipes/spinner.recipe.ts +0 -31
- package/dist/theme/recipes/stat.recipe.js +0 -101
- package/dist/theme/recipes/stat.recipe.ts +0 -101
- package/dist/theme/recipes/switch.recipe.js +0 -125
- package/dist/theme/recipes/switch.recipe.ts +0 -130
- package/dist/theme/recipes/table.recipe.js +0 -83
- package/dist/theme/recipes/table.recipe.ts +0 -84
- package/dist/theme/recipes/tabs.recipe.js +0 -216
- package/dist/theme/recipes/tabs.recipe.ts +0 -219
- package/dist/theme/recipes/tag.recipe.js +0 -157
- package/dist/theme/recipes/tag.recipe.ts +0 -158
- package/dist/theme/recipes/textarea.recipe.js +0 -86
- package/dist/theme/recipes/textarea.recipe.ts +0 -86
- package/dist/theme/recipes/toast.recipe.js +0 -98
- package/dist/theme/recipes/toast.recipe.ts +0 -97
- package/dist/theme/recipes/tooltip.recipe.js +0 -87
- package/dist/theme/recipes/tooltip.recipe.ts +0 -85
- package/dist/theme/theme.js +0 -40
- package/dist/theme/theme.ts +0 -41
- package/dist/theme/utils/entries.js +0 -11
- package/dist/theme/utils/entries.ts +0 -12
- package/dist/theme.d.ts +0 -2
- package/dist/theme.js +0 -4
- package/dist/types/client/adProviders.js +0 -12
- package/dist/types/client/contract.js +0 -13
- package/dist/types/client/gasTracker.js +0 -7
- package/dist/types/client/navigation.js +0 -4
- package/dist/types/client/rollup.js +0 -11
- package/dist/types/client/txInterpretation.js +0 -8
- package/dist/types/client/validators.js +0 -8
- package/dist/types/client/wallets.js +0 -8
- package/dist/types/homepage.js +0 -15
- package/dist/types/views/address.js +0 -14
- package/dist/types/views/block.js +0 -12
- package/dist/types/views/tx.js +0 -16
- package/dist/ui/shared/forms/validators/url.js +0 -12
- package/dist/utils/getComponentDisplayName.js +0 -7
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils.d.ts +0 -2
- package/dist/utils.js +0 -4
package/dist/configs/app/meta.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import t from "./app.js";
|
|
2
|
-
import { getEnvValue as e, getExternalAssetFilePath as a } from "./utils.js";
|
|
3
|
-
const _ = "/static/og_image.png", r = Object.freeze({
|
|
4
|
-
promoteBlockscoutInTitle: e("NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE") !== "false",
|
|
5
|
-
og: {
|
|
6
|
-
description: e("NEXT_PUBLIC_OG_DESCRIPTION") || "",
|
|
7
|
-
imageUrl: t.baseUrl + (a("NEXT_PUBLIC_OG_IMAGE_URL") || _),
|
|
8
|
-
enhancedDataEnabled: e("NEXT_PUBLIC_OG_ENHANCED_DATA_ENABLED") === "true"
|
|
9
|
-
},
|
|
10
|
-
seo: {
|
|
11
|
-
enhancedDataEnabled: e("NEXT_PUBLIC_SEO_ENHANCED_DATA_ENABLED") === "true"
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
export {
|
|
15
|
-
r as default
|
|
16
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { SMART_CONTRACT_EXTRA_VERIFICATION_METHODS as s, SMART_CONTRACT_LANGUAGE_FILTERS as o } from "../../../../types/client/contract.js";
|
|
2
|
-
import { IDENTICON_TYPES as i, ADDRESS_FORMATS as I, ADDRESS_VIEWS_IDS as S } from "../../../../types/views/address.js";
|
|
3
|
-
import { getEnvValue as t, parseEnvJson as _ } from "../../utils.js";
|
|
4
|
-
const A = (() => {
|
|
5
|
-
const e = t("NEXT_PUBLIC_VIEWS_ADDRESS_IDENTICON_TYPE");
|
|
6
|
-
return i.find((r) => e === r) || "jazzicon";
|
|
7
|
-
})(), T = (() => {
|
|
8
|
-
const e = (_(t("NEXT_PUBLIC_VIEWS_ADDRESS_FORMAT")) || []).filter((r) => I.includes(r));
|
|
9
|
-
return e.length === 0 ? ["base16"] : e;
|
|
10
|
-
})(), a = (() => {
|
|
11
|
-
const e = t("NEXT_PUBLIC_VIEWS_ADDRESS_BECH_32_PREFIX");
|
|
12
|
-
if (!(!e || !T.includes("bech32")))
|
|
13
|
-
return e.length >= 1 && e.length <= 83 ? e : void 0;
|
|
14
|
-
})(), c = (() => {
|
|
15
|
-
const e = _(t("NEXT_PUBLIC_VIEWS_ADDRESS_HIDDEN_VIEWS")) || [];
|
|
16
|
-
return Array.isArray(e) ? S.reduce((n, E) => (n[E] = e.includes(E), n), {}) : void 0;
|
|
17
|
-
})(), u = (() => {
|
|
18
|
-
const e = t("NEXT_PUBLIC_VIEWS_CONTRACT_EXTRA_VERIFICATION_METHODS");
|
|
19
|
-
return e === "none" ? [] : e ? (_(e) || []).filter((n) => s.includes(n)) : s;
|
|
20
|
-
})(), l = (() => {
|
|
21
|
-
const e = _(t("NEXT_PUBLIC_VIEWS_CONTRACT_LANGUAGE_FILTERS"));
|
|
22
|
-
return e ? e.filter((r) => o.includes(r)) : o.filter((n) => n !== "scilla");
|
|
23
|
-
})(), D = Object.freeze({
|
|
24
|
-
identiconType: A,
|
|
25
|
-
hashFormat: {
|
|
26
|
-
availableFormats: T,
|
|
27
|
-
bech32Prefix: a
|
|
28
|
-
},
|
|
29
|
-
hiddenViews: c,
|
|
30
|
-
solidityscanEnabled: t("NEXT_PUBLIC_VIEWS_CONTRACT_SOLIDITYSCAN_ENABLED") === "true",
|
|
31
|
-
extraVerificationMethods: u,
|
|
32
|
-
languageFilters: l
|
|
33
|
-
});
|
|
34
|
-
export {
|
|
35
|
-
D as default
|
|
36
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BLOCK_FIELDS_IDS as o } from "../../../../types/views/block.js";
|
|
2
|
-
import { parseEnvJson as s, getEnvValue as t } from "../../utils.js";
|
|
3
|
-
const d = (() => {
|
|
4
|
-
const e = s(t("NEXT_PUBLIC_VIEWS_BLOCK_HIDDEN_FIELDS")) || [];
|
|
5
|
-
return Array.isArray(e) ? o.reduce((r, n) => (r[n] = e.includes(n), r), {}) : void 0;
|
|
6
|
-
})(), a = Object.freeze({
|
|
7
|
-
hiddenFields: d
|
|
8
|
-
});
|
|
9
|
-
export {
|
|
10
|
-
a as default
|
|
11
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as o } from "./address.js";
|
|
2
|
-
import { default as f } from "./block.js";
|
|
3
|
-
import { default as d } from "./nft.js";
|
|
4
|
-
import { default as l } from "./token.js";
|
|
5
|
-
import { default as m } from "./tx.js";
|
|
6
|
-
export {
|
|
7
|
-
o as address,
|
|
8
|
-
f as block,
|
|
9
|
-
d as nft,
|
|
10
|
-
l as token,
|
|
11
|
-
m as tx
|
|
12
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { parseEnvJson as E, getEnvValue as e } from "../../utils.js";
|
|
2
|
-
const t = Object.freeze({
|
|
3
|
-
marketplaces: E(e("NEXT_PUBLIC_VIEWS_NFT_MARKETPLACES")) || [],
|
|
4
|
-
verifiedFetch: {
|
|
5
|
-
isEnabled: e("NEXT_PUBLIC_HELIA_VERIFIED_FETCH_ENABLED") !== "false"
|
|
6
|
-
}
|
|
7
|
-
});
|
|
8
|
-
export {
|
|
9
|
-
t as default
|
|
10
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TX_FIELDS_IDS as u, TX_ADDITIONAL_FIELDS_IDS as d } from "../../../../types/views/tx.js";
|
|
2
|
-
import { parseEnvJson as s, getEnvValue as t } from "../../utils.js";
|
|
3
|
-
const I = (() => {
|
|
4
|
-
const r = s(t("NEXT_PUBLIC_VIEWS_TX_HIDDEN_FIELDS")) || [];
|
|
5
|
-
return Array.isArray(r) ? u.reduce((e, n) => (e[n] = r.includes(n), e), {}) : void 0;
|
|
6
|
-
})(), _ = (() => {
|
|
7
|
-
const r = s(t("NEXT_PUBLIC_VIEWS_TX_ADDITIONAL_FIELDS")) || [];
|
|
8
|
-
return Array.isArray(r) ? d.reduce((e, n) => (e[n] = r.includes(n), e), {}) : void 0;
|
|
9
|
-
})(), c = Object.freeze({
|
|
10
|
-
hiddenFields: I,
|
|
11
|
-
additionalFields: _
|
|
12
|
-
});
|
|
13
|
-
export {
|
|
14
|
-
c as default
|
|
15
|
-
};
|
package/dist/configs/app/ui.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { NAVIGATION_LINK_IDS as T } from "../../types/client/navigation.js";
|
|
2
|
-
import { HOME_STATS_WIDGET_IDS as a } from "../../types/homepage.js";
|
|
3
|
-
import { COLOR_THEMES as m } from "../../lib/settings/colorTheme.js";
|
|
4
|
-
import "./features/advancedFilter.js";
|
|
5
|
-
import "./features/account.js";
|
|
6
|
-
import "./features/addressVerification.js";
|
|
7
|
-
import "./features/addressMetadata.js";
|
|
8
|
-
import "./features/adsBanner.js";
|
|
9
|
-
import "./features/adsText.js";
|
|
10
|
-
import "./features/beaconChain.js";
|
|
11
|
-
import "./features/bridgedTokens.js";
|
|
12
|
-
import "./features/blockchainInteraction.js";
|
|
13
|
-
import "./features/celo.js";
|
|
14
|
-
import "./features/csvExport.js";
|
|
15
|
-
import "./features/dataAvailability.js";
|
|
16
|
-
import "./features/deFiDropdown.js";
|
|
17
|
-
import "./features/easterEggBadge.js";
|
|
18
|
-
import "./features/externalTxs.js";
|
|
19
|
-
import "./features/faultProofSystem.js";
|
|
20
|
-
import "./features/gasTracker.js";
|
|
21
|
-
import "./features/getGasButton.js";
|
|
22
|
-
import "./features/googleAnalytics.js";
|
|
23
|
-
import "./features/graphqlApiDocs.js";
|
|
24
|
-
import "./features/growthBook.js";
|
|
25
|
-
import "./features/marketplace.js";
|
|
26
|
-
import "./features/metasuites.js";
|
|
27
|
-
import "./features/mixpanel.js";
|
|
28
|
-
import "./features/mudFramework.js";
|
|
29
|
-
import "./features/multichainButton.js";
|
|
30
|
-
import "./features/nameService.js";
|
|
31
|
-
import "./features/pools.js";
|
|
32
|
-
import "./features/publicTagsSubmission.js";
|
|
33
|
-
import "./features/restApiDocs.js";
|
|
34
|
-
import "./features/rewards.js";
|
|
35
|
-
import "./features/rollbar.js";
|
|
36
|
-
import s from "./features/rollup.js";
|
|
37
|
-
import "./features/safe.js";
|
|
38
|
-
import "./features/saveOnGas.js";
|
|
39
|
-
import "./features/sol2uml.js";
|
|
40
|
-
import "./features/stats.js";
|
|
41
|
-
import "./features/suave.js";
|
|
42
|
-
import "./features/txInterpretation.js";
|
|
43
|
-
import "./features/userOps.js";
|
|
44
|
-
import "./features/addressProfileAPI.js";
|
|
45
|
-
import "./features/validators.js";
|
|
46
|
-
import "./features/verifiedTokens.js";
|
|
47
|
-
import "./features/web3Wallet.js";
|
|
48
|
-
import "./features/xStarScore.js";
|
|
49
|
-
import * as N from "./ui/views/index.js";
|
|
50
|
-
import { parseEnvJson as _, getEnvValue as t, getExternalAssetFilePath as o } from "./utils.js";
|
|
51
|
-
const I = (() => {
|
|
52
|
-
const r = _(t("NEXT_PUBLIC_NAVIGATION_HIDDEN_LINKS")) || [];
|
|
53
|
-
return Array.isArray(r) ? T.reduce((i, E) => (i[E] = r.includes(E), i), {}) : void 0;
|
|
54
|
-
})(), p = (() => {
|
|
55
|
-
const r = _(t("NEXT_PUBLIC_HOMEPAGE_STATS"));
|
|
56
|
-
if (!Array.isArray(r)) {
|
|
57
|
-
const e = s;
|
|
58
|
-
return e.isEnabled && ["zkEvm", "zkSync", "arbitrum"].includes(e.type) ? ["latest_batch", "average_block_time", "total_txs", "wallet_addresses", "gas_tracker"] : ["total_blocks", "average_block_time", "total_txs", "wallet_addresses", "gas_tracker"];
|
|
59
|
-
}
|
|
60
|
-
return r.filter((e) => a.includes(e));
|
|
61
|
-
})(), n = (() => {
|
|
62
|
-
const r = _(t("NEXT_PUBLIC_NAVIGATION_HIGHLIGHTED_ROUTES"));
|
|
63
|
-
return Array.isArray(r) ? r : [];
|
|
64
|
-
})(), A = (() => {
|
|
65
|
-
const r = t("NEXT_PUBLIC_COLOR_THEME_DEFAULT");
|
|
66
|
-
return m.find((e) => e.id === r);
|
|
67
|
-
})(), Nt = Object.freeze({
|
|
68
|
-
navigation: {
|
|
69
|
-
logo: {
|
|
70
|
-
default: o("NEXT_PUBLIC_NETWORK_LOGO"),
|
|
71
|
-
dark: o("NEXT_PUBLIC_NETWORK_LOGO_DARK")
|
|
72
|
-
},
|
|
73
|
-
icon: {
|
|
74
|
-
default: o("NEXT_PUBLIC_NETWORK_ICON"),
|
|
75
|
-
dark: o("NEXT_PUBLIC_NETWORK_ICON_DARK")
|
|
76
|
-
},
|
|
77
|
-
hiddenLinks: I,
|
|
78
|
-
highlightedRoutes: n,
|
|
79
|
-
otherLinks: _(t("NEXT_PUBLIC_OTHER_LINKS")) || [],
|
|
80
|
-
featuredNetworks: o("NEXT_PUBLIC_FEATURED_NETWORKS"),
|
|
81
|
-
layout: t("NEXT_PUBLIC_NAVIGATION_LAYOUT") || "vertical"
|
|
82
|
-
},
|
|
83
|
-
footer: {
|
|
84
|
-
links: o("NEXT_PUBLIC_FOOTER_LINKS"),
|
|
85
|
-
frontendVersion: t("NEXT_PUBLIC_GIT_TAG"),
|
|
86
|
-
frontendCommit: t("NEXT_PUBLIC_GIT_COMMIT_SHA")
|
|
87
|
-
},
|
|
88
|
-
homepage: {
|
|
89
|
-
charts: _(t("NEXT_PUBLIC_HOMEPAGE_CHARTS")) || [],
|
|
90
|
-
stats: p,
|
|
91
|
-
heroBanner: _(t("NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIG")),
|
|
92
|
-
// !!! DEPRECATED !!!
|
|
93
|
-
plate: {
|
|
94
|
-
background: t("NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND"),
|
|
95
|
-
textColor: t("NEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLOR")
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
views: N,
|
|
99
|
-
indexingAlert: {
|
|
100
|
-
blocks: {
|
|
101
|
-
isHidden: t("NEXT_PUBLIC_HIDE_INDEXING_ALERT_BLOCKS") === "true"
|
|
102
|
-
},
|
|
103
|
-
intTxs: {
|
|
104
|
-
isHidden: t("NEXT_PUBLIC_HIDE_INDEXING_ALERT_INT_TXS") === "true"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
maintenanceAlert: {
|
|
108
|
-
message: t("NEXT_PUBLIC_MAINTENANCE_ALERT_MESSAGE")
|
|
109
|
-
},
|
|
110
|
-
explorers: {
|
|
111
|
-
items: _(t("NEXT_PUBLIC_NETWORK_EXPLORERS")) || []
|
|
112
|
-
},
|
|
113
|
-
ides: {
|
|
114
|
-
items: _(t("NEXT_PUBLIC_CONTRACT_CODE_IDES")) || []
|
|
115
|
-
},
|
|
116
|
-
hasContractAuditReports: t("NEXT_PUBLIC_HAS_CONTRACT_AUDIT_REPORTS") === "true",
|
|
117
|
-
colorTheme: {
|
|
118
|
-
default: A
|
|
119
|
-
},
|
|
120
|
-
fonts: {
|
|
121
|
-
heading: _(t("NEXT_PUBLIC_FONT_FAMILY_HEADING")),
|
|
122
|
-
body: _(t("NEXT_PUBLIC_FONT_FAMILY_BODY"))
|
|
123
|
-
},
|
|
124
|
-
maxContentWidth: t("NEXT_PUBLIC_MAX_CONTENT_WIDTH_ENABLED") !== "false"
|
|
125
|
-
});
|
|
126
|
-
export {
|
|
127
|
-
Nt as default
|
|
128
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import o from "../../lib/isBrowser.js";
|
|
2
|
-
import { FILE_EXTENSION as s } from "../../lib/regexp.js";
|
|
3
|
-
const c = (r) => r == null ? void 0 : r.replaceAll("'", '"'), a = (r) => {
|
|
4
|
-
const t = (o() ? window.__envs : process.env) ?? {};
|
|
5
|
-
if (o() && t.NEXT_PUBLIC_APP_INSTANCE === "pw") {
|
|
6
|
-
const e = localStorage.getItem(r);
|
|
7
|
-
if (typeof e == "string")
|
|
8
|
-
return e;
|
|
9
|
-
}
|
|
10
|
-
return c(t[r]);
|
|
11
|
-
}, i = (r) => {
|
|
12
|
-
try {
|
|
13
|
-
return JSON.parse(r || "null");
|
|
14
|
-
} catch {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
}, f = (r) => {
|
|
18
|
-
const t = a(r);
|
|
19
|
-
if (t)
|
|
20
|
-
return l(r, t);
|
|
21
|
-
}, l = (r, t) => {
|
|
22
|
-
try {
|
|
23
|
-
const e = r.replace(/^NEXT_PUBLIC_/, "").replace(/_URL$/, "").toLowerCase(), n = p(t);
|
|
24
|
-
if (!n)
|
|
25
|
-
throw new Error("Cannot get file path");
|
|
26
|
-
return `/assets/configs/${e}.${n}`;
|
|
27
|
-
} catch {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
function p(r) {
|
|
32
|
-
var t;
|
|
33
|
-
try {
|
|
34
|
-
return (t = new URL(r).pathname.match(s)) == null ? void 0 : t[1];
|
|
35
|
-
} catch {
|
|
36
|
-
return i(r) ? "json" : void 0;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
export {
|
|
40
|
-
l as buildExternalAssetFilePath,
|
|
41
|
-
a as getEnvValue,
|
|
42
|
-
f as getExternalAssetFilePath,
|
|
43
|
-
i as parseEnvJson,
|
|
44
|
-
c as replaceQuotes
|
|
45
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { useCopyToClipboard as p } from "../node_modules/@uidotdev/usehooks/index.js";
|
|
2
|
-
import e from "react";
|
|
3
|
-
import { SECOND as m } from "../lib/consts.js";
|
|
4
|
-
import d from "../lib/hooks/useIsMobile.js";
|
|
5
|
-
import { useDisclosure as C } from "./useDisclosure.js";
|
|
6
|
-
function M(u, r = m) {
|
|
7
|
-
const s = e.useRef(null), t = e.useRef(null), [n, i] = e.useState(!1), c = d(), [, l] = p(), { open: f, onOpenChange: o } = C(), a = e.useCallback(() => {
|
|
8
|
-
l(u), i(!0), c && o({ open: !0 }), t.current = window.setTimeout(() => {
|
|
9
|
-
o({ open: !1 });
|
|
10
|
-
}, r), s.current = window.setTimeout(() => {
|
|
11
|
-
i(!1);
|
|
12
|
-
}, r + 200);
|
|
13
|
-
}, [u, l, r, o, c]);
|
|
14
|
-
return e.useEffect(() => () => {
|
|
15
|
-
t.current && window.clearTimeout(t.current), s.current && window.clearTimeout(s.current);
|
|
16
|
-
}, []), e.useMemo(() => ({
|
|
17
|
-
hasCopied: n,
|
|
18
|
-
copy: a,
|
|
19
|
-
disclosure: {
|
|
20
|
-
open: f,
|
|
21
|
-
onOpenChange: o
|
|
22
|
-
}
|
|
23
|
-
}), [n, a, f, o]);
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
M as default
|
|
27
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useDisclosure as c } from "@chakra-ui/react";
|
|
2
|
-
import r from "react";
|
|
3
|
-
function a(l) {
|
|
4
|
-
const { open: s, onOpen: e, onClose: o, onToggle: n } = c(l), u = r.useCallback(({ open: t }) => {
|
|
5
|
-
t ? e() : o();
|
|
6
|
-
}, [e, o]);
|
|
7
|
-
return r.useMemo(() => ({
|
|
8
|
-
open: s,
|
|
9
|
-
onOpenChange: u,
|
|
10
|
-
onClose: o,
|
|
11
|
-
onOpen: e,
|
|
12
|
-
onToggle: n
|
|
13
|
-
}), [s, u, o, e, n]);
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
a as useDisclosure
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useState as o, useEffect as d } from "react";
|
|
2
|
-
import { debounce as s } from "../node_modules/es-toolkit/dist/function/debounce.js";
|
|
3
|
-
function c(e = 100) {
|
|
4
|
-
const [n, i] = o({ width: 0, height: 0 });
|
|
5
|
-
return d(() => {
|
|
6
|
-
i({ width: window.innerWidth, height: window.innerHeight });
|
|
7
|
-
const r = s(() => {
|
|
8
|
-
i({ width: window.innerWidth, height: window.innerHeight });
|
|
9
|
-
}, e), t = new ResizeObserver(r);
|
|
10
|
-
return t.observe(document.body), function() {
|
|
11
|
-
t.unobserve(document.body);
|
|
12
|
-
};
|
|
13
|
-
}, [e]), n;
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
c as default
|
|
17
|
-
};
|
package/dist/hooks.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
package/dist/hooks.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const l = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.535%2011.293a1%201%200%200%200%200%201.414l3.536%203.536a1%201%200%201%201-1.414%201.414l-4.95-4.95a1%201%200%200%201%200-1.414l4.95-4.95a1%201%200%201%201%201.414%201.414l-3.536%203.536Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
l as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const l = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.758%2011c.89%200%201.337-1.077.707-1.707l-2.95-2.95a1%201%200%201%201%201.414-1.414l6.364%206.364a1%201%200%200%201%200%201.414l-6.364%206.364a1%201%200%201%201-1.414-1.414l2.95-2.95c.63-.63.184-1.707-.707-1.707H5a1%201%200%201%201%200-2h8.758Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
l as default
|
|
4
|
-
};
|
package/dist/icons/check.svg.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const l = "data:image/svg+xml,%3csvg%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M9.293%2014.465a1%201%200%200%200%201.414%200l7.778-7.78A1%201%200%200%201%2019.899%208.1l-9.192%209.193a1%201%200%200%201-1.414%200l-4.95-4.95a1%201%200%200%201%201.414-1.414l3.536%203.536Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
l as default
|
|
4
|
-
};
|
package/dist/icons/close.svg.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const a = "data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.44%208.035a.791.791%200%200%200%201.12%200l3.802-3.803a.791.791%200%200%201%201.119%200l.287.287a.79.79%200%200%201%200%201.119L11.965%209.44a.79.79%200%200%200%200%201.118l3.803%203.803a.791.791%200%200%201%200%201.119l-.287.287a.791.791%200%200%201-1.119%200l-3.803-3.803a.79.79%200%200%200-1.118%200l-3.803%203.803a.79.79%200%200%201-1.119%200l-.287-.287a.791.791%200%200%201%200-1.119l3.803-3.803a.791.791%200%200%200%200-1.118L4.232%205.638a.791.791%200%200%201%200-1.119l.287-.287a.791.791%200%200%201%201.119%200L9.44%208.035Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
a as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const t = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.99984%2018.3334C5.39734%2018.3334%201.6665%2014.6026%201.6665%2010.0001C1.6665%205.39758%205.39734%201.66675%209.99984%201.66675C14.6023%201.66675%2018.3332%205.39758%2018.3332%2010.0001C18.3332%2014.6026%2014.6023%2018.3334%209.99984%2018.3334ZM9.1665%209.16675V14.1667H10.8332V9.16675H9.1665ZM9.1665%205.83342V7.50008H10.8332V5.83342H9.1665Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
t as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const a = "data:image/svg+xml,%3csvg%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.621%204.353%205.176%209.798a.69.69%200%201%201-.974-.974l5.444-5.446H5.108a.69.69%200%200%201%200-1.378H12v6.892a.69.69%200%201%201-1.379%200V4.353Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
a as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const a = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M15.713%2020a.724.724%200%200%201-.354-.09L10%2016.956%204.64%2019.91a.728.728%200%200%201-.796-.061.788.788%200%200%201-.256-.342.827.827%200%200%201-.045-.432l1.024-6.252L.229%208.394a.802.802%200%200%201-.207-.377.829.829%200%200%201%20.015-.435.795.795%200%200%201%20.232-.361.741.741%200%200%201%20.379-.179L6.64%206.13%209.321.442a.78.78%200%200%201%20.28-.323.731.731%200%200%201%20.798%200%20.78.78%200%200%201%20.28.323l2.68%205.688%205.993.912a.74.74%200%200%201%20.379.178.8.8%200%200%201%20.232.361.828.828%200%200%201-.192.813l-4.338%204.428%201.024%206.252a.83.83%200%200%201-.167.644.762.762%200%200%201-.26.208.728.728%200%200%201-.319.074h.002Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
a as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const l = "data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.711%2020a.724.724%200%200%201-.352-.09Zm.005%200a.73.73%200%200%200%20.314-.074.77.77%200%200%200%20.26-.208.806.806%200%200%200%20.167-.644l-1.024-6.252%204.338-4.428a.828.828%200%200%200%20.192-.813.796.796%200%200%200-.232-.36.74.74%200%200%200-.38-.179l-5.86-.892a.25.25%200%200%201-.19-.14L10.679.442A.78.78%200%200%200%2010.4.119a.732.732%200%200%200-.798%200%20.78.78%200%200%200-.28.323L6.699%206.01a.25.25%200%200%201-.188.14l-5.862.892a.741.741%200%200%200-.38.179.795.795%200%200%200-.231.36.829.829%200%200%200-.015.436.802.802%200%200%200%20.207.377l4.25%204.338a.25.25%200%200%201%20.068.215l-1.004%206.127a.827.827%200%200%200%20.045.432.788.788%200%200%200%20.256.342.728.728%200%200%200%20.796.061l5.24-2.886a.25.25%200%200%201%20.24%200l5.24%202.886m-9.354-3.497a.25.25%200%200%200%20.367.26L9.88%2014.74a.25.25%200%200%201%20.24%200l3.507%201.932a.25.25%200%200%200%20.367-.26l-.678-4.141a.25.25%200%200%201%20.068-.216l2.982-3.043a.25.25%200%200%200-.14-.423l-4.09-.622a.25.25%200%200%201-.189-.14l-1.72-3.653a.25.25%200%200%200-.453%200L8.053%207.826a.25.25%200%200%201-.189.141l-4.09.622a.25.25%200%200%200-.14.423l2.982%203.043a.25.25%200%200%201%20.068.216l-.678%204.14ZM15.716%2020h-.003Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
l as default
|
|
4
|
-
};
|
package/dist/lib/consts.js
DELETED
package/dist/lib/isBrowser.js
DELETED
package/dist/lib/regexp.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const e = [
|
|
2
|
-
{
|
|
3
|
-
id: "light",
|
|
4
|
-
label: "Light",
|
|
5
|
-
colorMode: "light",
|
|
6
|
-
hex: "#FFFFFF",
|
|
7
|
-
sampleBg: "linear-gradient(154deg, #EFEFEF 50%, rgba(255, 255, 255, 0.00) 330.86%)"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
id: "dim",
|
|
11
|
-
label: "Dim",
|
|
12
|
-
colorMode: "dark",
|
|
13
|
-
hex: "#232B37",
|
|
14
|
-
sampleBg: "linear-gradient(152deg, #232B37 50%, rgba(255, 255, 255, 0.00) 290.71%)"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: "midnight",
|
|
18
|
-
label: "Midnight",
|
|
19
|
-
colorMode: "dark",
|
|
20
|
-
hex: "#1B2E48",
|
|
21
|
-
sampleBg: "linear-gradient(148deg, #1B3F71 50%, rgba(255, 255, 255, 0.00) 312.35%)"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "dark",
|
|
25
|
-
label: "Dark",
|
|
26
|
-
colorMode: "dark",
|
|
27
|
-
hex: "#101112",
|
|
28
|
-
sampleBg: "linear-gradient(161deg, #000 9.37%, #383838 92.52%)"
|
|
29
|
-
}
|
|
30
|
-
];
|
|
31
|
-
export {
|
|
32
|
-
e as COLOR_THEMES
|
|
33
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as n from "react";
|
|
2
|
-
function d(o) {
|
|
3
|
-
const e = n.useRef(null), r = n.useRef(o);
|
|
4
|
-
return n.useLayoutEffect(() => {
|
|
5
|
-
r.current = o;
|
|
6
|
-
}), n.useEffect(() => {
|
|
7
|
-
const t = (c) => {
|
|
8
|
-
const u = e.current;
|
|
9
|
-
u && !u.contains(c.target) && r.current(c);
|
|
10
|
-
};
|
|
11
|
-
return document.addEventListener("mousedown", t), document.addEventListener("touchstart", t), () => {
|
|
12
|
-
document.removeEventListener("mousedown", t), document.removeEventListener("touchstart", t);
|
|
13
|
-
};
|
|
14
|
-
}, []), e;
|
|
15
|
-
}
|
|
16
|
-
function s(o) {
|
|
17
|
-
const e = document.createElement("textarea");
|
|
18
|
-
e.value = o, document.body.appendChild(e), e.select(), document.execCommand("copy"), document.body.removeChild(e);
|
|
19
|
-
}
|
|
20
|
-
function i() {
|
|
21
|
-
const [o, e] = n.useState(null), r = n.useCallback((t) => {
|
|
22
|
-
(async () => {
|
|
23
|
-
var u;
|
|
24
|
-
try {
|
|
25
|
-
if ((u = navigator == null ? void 0 : navigator.clipboard) != null && u.writeText)
|
|
26
|
-
await navigator.clipboard.writeText(t), e(t);
|
|
27
|
-
else
|
|
28
|
-
throw new Error("writeText not supported");
|
|
29
|
-
} catch {
|
|
30
|
-
s(t), e(t);
|
|
31
|
-
}
|
|
32
|
-
})();
|
|
33
|
-
}, []);
|
|
34
|
-
return [o, r];
|
|
35
|
-
}
|
|
36
|
-
function m(o, e) {
|
|
37
|
-
const [r, t] = n.useState(o);
|
|
38
|
-
return n.useEffect(() => {
|
|
39
|
-
const c = setTimeout(() => {
|
|
40
|
-
t(o);
|
|
41
|
-
}, e);
|
|
42
|
-
return () => {
|
|
43
|
-
clearTimeout(c);
|
|
44
|
-
};
|
|
45
|
-
}, [o, e]), r;
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
d as useClickAway,
|
|
49
|
-
i as useCopyToClipboard,
|
|
50
|
-
m as useDebounce
|
|
51
|
-
};
|