From 06012544b1078c2f878ba3dbc9f2ce8381de1646 Mon Sep 17 00:00:00 2001 From: Jennie Alles Date: Mon, 22 May 2023 16:39:41 +0700 Subject: [PATCH 1/4] feat(components): refactor color system --- src/lib/app-fns/tx/submitProposal.tsx | 2 +- src/lib/app-fns/tx/upload.tsx | 2 +- src/lib/components/AccordionStepperItem.tsx | 4 +- src/lib/components/AssignMe.tsx | 2 +- src/lib/components/ButtonCard.tsx | 8 +- src/lib/components/ConnectWalletAlert.tsx | 4 +- src/lib/components/ContractSelectSection.tsx | 2 +- src/lib/components/CopyLink.tsx | 8 +- src/lib/components/CustomTab.tsx | 4 +- src/lib/components/DotSeparator.tsx | 2 +- src/lib/components/DotSeperator.tsx | 2 +- src/lib/components/Expedited.tsx | 4 +- src/lib/components/ExplorerLink.tsx | 6 +- src/lib/components/InputWithIcon.tsx | 2 +- src/lib/components/ListSelection.tsx | 14 +- src/lib/components/Loading.tsx | 2 +- src/lib/components/PermissionChip.tsx | 2 +- src/lib/components/PublicDescription.tsx | 2 +- src/lib/components/StickySidebar.tsx | 14 +- src/lib/components/TagSelection.tsx | 12 +- src/lib/components/TokenCard.tsx | 4 +- src/lib/components/TxFilterSelection.tsx | 10 +- .../components/ViewPermissionAddresses.tsx | 2 +- src/lib/components/Wallet.tsx | 2 +- src/lib/components/action-msg/SingleMsg.tsx | 2 +- src/lib/components/button/AdminButton.tsx | 8 +- src/lib/components/button/BackButton.tsx | 2 +- .../components/button/CustomIconButton.tsx | 2 +- .../components/button/InstantiateButton.tsx | 2 +- .../components/button/NewProposalButton.tsx | 6 +- src/lib/components/button/ShowMoreButton.tsx | 4 +- src/lib/components/copy/Copier.tsx | 2 +- src/lib/components/copy/CopyButton.tsx | 2 +- src/lib/components/dropzone/index.tsx | 8 +- src/lib/components/filter/FilterComponents.ts | 2 +- .../components/filter/FilterDropdownItem.tsx | 4 +- src/lib/components/filter/FilterInput.tsx | 4 +- src/lib/components/forms/SelectInput.tsx | 16 +- src/lib/components/icon/UploadIcon.tsx | 4 +- src/lib/components/json/JsonInput.tsx | 6 +- src/lib/components/json/JsonReadOnly.tsx | 4 +- src/lib/components/json/ViewFullMsgButton.tsx | 4 +- src/lib/components/links/GitHubLink.tsx | 4 +- src/lib/components/modal/ActionModal.tsx | 6 +- src/lib/components/modal/CodeSnippet.tsx | 6 +- src/lib/components/modal/NoMobile.tsx | 2 +- src/lib/components/modal/RedoModal.tsx | 10 +- .../modal/UnsupportedTokensModal.tsx | 8 +- .../modal/code/CodeDetailsTemplate.tsx | 2 +- src/lib/components/modal/code/SaveNewCode.tsx | 6 +- .../modal/contract/AddToOtherList.tsx | 2 +- .../components/modal/contract/ClearAdmin.tsx | 2 +- .../contract/ContractDetailsTemplate.tsx | 2 +- .../modal/contract/SaveNewContract.tsx | 6 +- .../components/modal/list/CreateNewList.tsx | 2 +- .../components/modal/list/EditListName.tsx | 2 +- src/lib/components/pagination/index.tsx | 2 +- src/lib/components/select-code/CodeSelect.tsx | 4 +- .../select-code/CodeSelectDrawerButton.tsx | 6 +- .../select-contract/ContractListCard.tsx | 6 +- .../select-contract/SelectContractAdmin.tsx | 2 +- .../SelectContractInstantiator.tsx | 10 +- src/lib/components/state/EmptyState.tsx | 2 +- src/lib/components/state/InvalidState.tsx | 2 +- src/lib/components/state/ZeroState.tsx | 4 +- src/lib/components/stepper/StepperItem.tsx | 4 +- src/lib/components/table/AccordionTx.tsx | 2 +- src/lib/components/table/EditableCell.tsx | 6 +- src/lib/components/table/TableTitle.tsx | 2 +- .../components/table/codes/CodesTableRow.tsx | 2 +- .../table/codes/CodesTableWithWallet.tsx | 2 +- .../table/contracts/ContractsTableRow.tsx | 2 +- .../table/contracts/ContractsTableRowCTA.tsx | 12 +- .../components/table/contracts/EditTags.tsx | 9 +- .../components/table/contracts/TagsCell.tsx | 2 +- .../components/table/proposals/StatusChip.tsx | 6 +- src/lib/components/table/tableComponents.ts | 4 +- .../table/transactions/RelationChip.tsx | 4 +- .../transactions/TransactionsTableRow.tsx | 6 +- .../TransactionsTableWithWallet.tsx | 2 +- src/lib/components/tx/TxReceiptRender.tsx | 2 +- src/lib/components/tx/modal/ButtonSection.tsx | 6 +- src/lib/components/tx/modal/index.tsx | 2 +- .../upload/components/UploadCard.tsx | 4 +- src/lib/layout/Footer.tsx | 8 +- src/lib/layout/Header.tsx | 10 +- src/lib/layout/Searchbar.tsx | 10 +- src/lib/layout/SubHeader.tsx | 12 +- src/lib/layout/index.tsx | 4 +- src/lib/layout/navbar/Collapse.tsx | 12 +- src/lib/layout/navbar/Expand.tsx | 16 +- .../components/ErrorFetching.tsx | 7 +- .../delegations/NonRedelegatableSection.tsx | 4 +- .../components/delegations/RadioCard.tsx | 2 +- .../delegations/RedelegationsSection.tsx | 2 +- .../components/delegations/TotalCard.tsx | 2 +- .../tables/bonded/BondedTableRow.tsx | 2 +- .../redelegation/RedelegationTableRow.tsx | 4 +- src/lib/pages/account-details/index.tsx | 12 +- .../components/BlockDetailsTop.tsx | 6 +- .../components/table/NoContracts.tsx | 2 +- src/lib/pages/code-details/index.tsx | 4 +- src/lib/pages/codes/index.tsx | 2 +- .../components/CommandSection.tsx | 4 +- .../components/ContractTop.tsx | 8 +- .../components/InstantiateInfo.tsx | 2 +- .../contract-details/components/JsonInfo.tsx | 6 +- .../contract-description/UserContractDesc.tsx | 6 +- .../components/contract-description/index.tsx | 2 +- src/lib/pages/contract-details/index.tsx | 2 +- src/lib/pages/contract-list/slug.tsx | 6 +- src/lib/pages/deploy/index.tsx | 4 +- src/lib/pages/execute/index.tsx | 2 +- src/lib/pages/faucet/index.tsx | 2 +- .../pages/home/components/PastTransaction.tsx | 4 +- src/lib/pages/home/components/QuickMenu.tsx | 16 +- .../home/components/RecentActivities.tsx | 12 +- src/lib/pages/instantiate/completed.tsx | 2 +- .../pages/instantiate/component/Footer.tsx | 2 +- src/lib/pages/instantiate/instantiate.tsx | 2 +- src/lib/pages/network-overview/index.tsx | 12 +- src/lib/pages/not-found/index.tsx | 2 +- src/lib/pages/past-txs/index.tsx | 2 +- .../pages/proposal/components/AssetBox.tsx | 4 +- src/lib/pages/proposal/components/Footer.tsx | 2 +- src/lib/pages/proposal/utils/getAlert.tsx | 4 +- src/lib/pages/proposal/whitelist/index.tsx | 10 +- .../proposals/components/ProposalTextCell.tsx | 2 +- .../components/ProposalTypeFilter.tsx | 2 +- .../proposals/table/ProposalTableHeader.tsx | 2 +- .../proposals/table/ProposalTableRow.tsx | 6 +- .../components/BookmarkButton.tsx | 4 +- .../components/DetailHeader.tsx | 2 +- .../components/PublicProjectCard.tsx | 4 +- .../table/account/PublicProjectAccountRow.tsx | 2 +- .../table/code/PublicProjectCodeRow.tsx | 2 +- .../contract/PublicProjectContractRow.tsx | 8 +- src/lib/pages/public-project/slug.tsx | 2 +- src/lib/pages/query/index.tsx | 2 +- .../pages/tx-details/components/TxHeader.tsx | 2 +- .../components/tx-message/EventBox.tsx | 15 +- .../components/tx-message/TxMsgExpand.tsx | 10 +- .../tx-message/msg-receipts/index.tsx | 2 +- .../tx-message/msg-receipts/renderUtils.tsx | 2 +- src/lib/styles/theme/colors.ts | 23 ++- src/lib/styles/theme/components/alert.ts | 12 +- src/lib/styles/theme/components/badge.ts | 8 +- src/lib/styles/theme/components/button.ts | 138 +++++++++--------- src/lib/styles/theme/components/drawer.ts | 2 +- src/lib/styles/theme/components/form.ts | 2 +- src/lib/styles/theme/components/input.ts | 10 +- src/lib/styles/theme/components/link.ts | 2 +- src/lib/styles/theme/components/menu.ts | 8 +- src/lib/styles/theme/components/modal.ts | 2 +- src/lib/styles/theme/components/radio.ts | 14 +- src/lib/styles/theme/components/select.ts | 6 +- src/lib/styles/theme/components/spinner.ts | 4 +- src/lib/styles/theme/components/switch.ts | 2 +- src/lib/styles/theme/components/tag.ts | 26 ++-- src/lib/styles/theme/components/textarea.ts | 10 +- src/lib/styles/theme/components/tooltip.ts | 4 +- src/lib/utils/codePermission.ts | 2 +- 162 files changed, 463 insertions(+), 495 deletions(-) diff --git a/src/lib/app-fns/tx/submitProposal.tsx b/src/lib/app-fns/tx/submitProposal.tsx index 95c14a0d8..96ef893c1 100644 --- a/src/lib/app-fns/tx/submitProposal.tsx +++ b/src/lib/app-fns/tx/submitProposal.tsx @@ -89,7 +89,7 @@ export const submitProposalTx = ({ headerIcon: ( ), diff --git a/src/lib/app-fns/tx/upload.tsx b/src/lib/app-fns/tx/upload.tsx index 423d72831..5f925a9af 100644 --- a/src/lib/app-fns/tx/upload.tsx +++ b/src/lib/app-fns/tx/upload.tsx @@ -95,7 +95,7 @@ export const uploadContractTx = ({ ), headerIcon: ( - + ), }, actionVariant: isMigrate ? "upload-migrate" : "upload", diff --git a/src/lib/components/AccordionStepperItem.tsx b/src/lib/components/AccordionStepperItem.tsx index 84ee343d1..ef648cc38 100644 --- a/src/lib/components/AccordionStepperItem.tsx +++ b/src/lib/components/AccordionStepperItem.tsx @@ -8,7 +8,7 @@ export const AccordionStepperItem = () => ( h="31px" right="45%" bottom="9px" - background="pebble.600" + background="gray.600" position="absolute" visibility="hidden" zIndex={0} @@ -18,7 +18,7 @@ export const AccordionStepperItem = () => ( borderRadius="full" h="10px" w="10px" - borderColor="pebble.600" + borderColor="gray.600" borderWidth="1px" position="relative" zIndex={1} diff --git a/src/lib/components/AssignMe.tsx b/src/lib/components/AssignMe.tsx index f1bedab86..f452b8fde 100644 --- a/src/lib/components/AssignMe.tsx +++ b/src/lib/components/AssignMe.tsx @@ -14,7 +14,7 @@ export const AssignMe = ({ onClick, isDisable = false }: AssginMeProps) => { - + ); diff --git a/src/lib/components/ConnectWalletAlert.tsx b/src/lib/components/ConnectWalletAlert.tsx index 57eacf0a5..a4e99b591 100644 --- a/src/lib/components/ConnectWalletAlert.tsx +++ b/src/lib/components/ConnectWalletAlert.tsx @@ -35,7 +35,7 @@ export const ConnectWalletAlert = ({ return !address ? ( {subtitle} - diff --git a/src/lib/components/ContractSelectSection.tsx b/src/lib/components/ContractSelectSection.tsx index 58766bfef..7a7b0b999 100644 --- a/src/lib/components/ContractSelectSection.tsx +++ b/src/lib/components/ContractSelectSection.tsx @@ -196,7 +196,7 @@ export const ContractSelectSection = observer( { }} _hover={{ textDecoration: "underline", - textDecorationColor: "lilac.light", - "& > p": { color: "lilac.light" }, + textDecorationColor: "secondary.light", + "& > p": { color: "secondary.light" }, }} cursor="pointer" onMouseEnter={() => setIsHover(true)} @@ -40,7 +40,7 @@ export const CopyLink = ({ value, amptrackSection, type }: CopyLinkProps) => { > {value === address ? `${value} (Me)` : value} @@ -50,7 +50,7 @@ export const CopyLink = ({ value, amptrackSection, type }: CopyLinkProps) => { marginLeft={2} name="copy" boxSize={3} - color="pebble.600" + color="gray.600" /> diff --git a/src/lib/components/CustomTab.tsx b/src/lib/components/CustomTab.tsx index 383fdbfea..d3b770ff3 100644 --- a/src/lib/components/CustomTab.tsx +++ b/src/lib/components/CustomTab.tsx @@ -23,7 +23,7 @@ export const CustomTab = ({ count, ...restProps }: CustomTabProps) => { mb={0} sx={{ "&[aria-selected=true]": { - color: "violet.light", + color: "primary.light", }, }} _active={{ @@ -34,7 +34,7 @@ export const CustomTab = ({ count, ...restProps }: CustomTabProps) => { {tabProps.children} {count !== undefined && ( - + {count} )} diff --git a/src/lib/components/DotSeparator.tsx b/src/lib/components/DotSeparator.tsx index 73441a265..1e6778911 100644 --- a/src/lib/components/DotSeparator.tsx +++ b/src/lib/components/DotSeparator.tsx @@ -1,5 +1,5 @@ import { Box } from "@chakra-ui/react"; export const DotSeparator = () => ( - + ); diff --git a/src/lib/components/DotSeperator.tsx b/src/lib/components/DotSeperator.tsx index 73441a265..1e6778911 100644 --- a/src/lib/components/DotSeperator.tsx +++ b/src/lib/components/DotSeperator.tsx @@ -1,5 +1,5 @@ import { Box } from "@chakra-ui/react"; export const DotSeparator = () => ( - + ); diff --git a/src/lib/components/Expedited.tsx b/src/lib/components/Expedited.tsx index 9dac00cd2..50acc297c 100644 --- a/src/lib/components/Expedited.tsx +++ b/src/lib/components/Expedited.tsx @@ -25,11 +25,11 @@ export const Expedited = ({ isActiveExpedited }: ExpeditedProps) => ( name="expedited" boxSize="4" ml="0" - color={isActiveExpedited ? "honeydew.main" : "pebble.400"} + color={isActiveExpedited ? "accent.main" : "gray.400"} /> Expedited diff --git a/src/lib/components/ExplorerLink.tsx b/src/lib/components/ExplorerLink.tsx index 64064b1e4..240de5a3b 100644 --- a/src/lib/components/ExplorerLink.tsx +++ b/src/lib/components/ExplorerLink.tsx @@ -111,9 +111,9 @@ const LinkRender = ({ const textElement = ( AmpTrack(AmpEvent.USE_SEARCH_INPUT) : undefined} /> - + ); diff --git a/src/lib/components/ListSelection.tsx b/src/lib/components/ListSelection.tsx index 0de9d2e30..03e797a4c 100644 --- a/src/lib/components/ListSelection.tsx +++ b/src/lib/components/ListSelection.tsx @@ -46,7 +46,7 @@ export const ListSelection = forwardRef( setResult, placeholder, helperText, - labelBgColor = "pebble.900", + labelBgColor = "gray.900", ...rest }: ListSelectionProps, ref @@ -127,7 +127,7 @@ export const ListSelection = forwardRef( alignItems="center" color="text.main" border="1px solid" - borderColor="pebble.700" + borderColor="gray.700" background="none" borderRadius="8px" maxW="100%" @@ -144,7 +144,7 @@ export const ListSelection = forwardRef( @@ -194,7 +194,7 @@ export const ListSelection = forwardRef( {displayOptions && ( ( selectOptionFromList(option)} > @@ -221,7 +221,7 @@ export const ListSelection = forwardRef( data-label={option.label} mr={2} name="check" - color="pebble.600" + color="gray.600" boxSize="3" /> )} @@ -235,7 +235,7 @@ export const ListSelection = forwardRef( setEnableOutside(false)} diff --git a/src/lib/components/Loading.tsx b/src/lib/components/Loading.tsx index 961308b1e..eeb87be83 100644 --- a/src/lib/components/Loading.tsx +++ b/src/lib/components/Loading.tsx @@ -3,7 +3,7 @@ import { Flex, Spinner, Text } from "@chakra-ui/react"; export const Loading = () => ( - + {instantiatePermission} diff --git a/src/lib/components/PublicDescription.tsx b/src/lib/components/PublicDescription.tsx index 920bb5967..a3266f2df 100644 --- a/src/lib/components/PublicDescription.tsx +++ b/src/lib/components/PublicDescription.tsx @@ -30,7 +30,7 @@ export const PublicDescription = ({ return ( - + {title} - + {description} @@ -69,10 +69,10 @@ export const StickySidebar = ({ gap={2} width="fit-content" transition="all 0.25s ease-in-out" - color="lilac.main" + color="secondary.main" _hover={{ - color: "lilac.light", - bgColor: "lilac.background", + color: "secondary.light", + bgColor: "secondary.background", }} onClick={() => navigate({ pathname: "/proposals/store-code" }) @@ -83,7 +83,7 @@ export const StickySidebar = ({ diff --git a/src/lib/components/TagSelection.tsx b/src/lib/components/TagSelection.tsx index fd5d3f5c5..ad887b36f 100644 --- a/src/lib/components/TagSelection.tsx +++ b/src/lib/components/TagSelection.tsx @@ -141,7 +141,7 @@ export const TagSelection = observer( borderRadius="8px" maxW="100%" border="1px solid" - borderColor="pebble.700" + borderColor="gray.700" overflowX="scroll" > {result.length > 0 && ( @@ -201,7 +201,7 @@ export const TagSelection = observer( {displayOptions && ( {noResultAndUncreatable ? ( @@ -233,7 +233,7 @@ export const TagSelection = observer( selectOptionFromList(option)} > @@ -246,7 +246,7 @@ export const TagSelection = observer( data-label={option} mr={2} name="check" - color="pebble.600" + color="gray.600" boxSize="3" /> )} @@ -257,7 +257,7 @@ export const TagSelection = observer( {canCreateOption && inputValue && ( createOption()} diff --git a/src/lib/components/TokenCard.tsx b/src/lib/components/TokenCard.tsx index 671e72a47..bdf3dcbf1 100644 --- a/src/lib/components/TokenCard.tsx +++ b/src/lib/components/TokenCard.tsx @@ -37,7 +37,7 @@ export const TokenCard = ({ minH="101px" gap={2} p={3} - background="pebble.900" + background="gray.900" borderRadius="8px" {...cardProps} > @@ -45,7 +45,7 @@ export const TokenCard = ({ gap={1} alignItems="center" borderBottom="1px solid" - borderBottomColor="pebble.700" + borderBottomColor="gray.700" pb={2} > @@ -125,7 +125,7 @@ export const TxFilterSelection = forwardRef< key={option} > selectOption(option)} > @@ -203,7 +203,7 @@ export const TxFilterSelection = forwardRef< )} diff --git a/src/lib/components/ViewPermissionAddresses.tsx b/src/lib/components/ViewPermissionAddresses.tsx index 96ff89e09..0d24070b2 100644 --- a/src/lib/components/ViewPermissionAddresses.tsx +++ b/src/lib/components/ViewPermissionAddresses.tsx @@ -35,7 +35,7 @@ export const ViewPermissionAddresses = ({ ))} {permissionAddresses.length > 1 && ( ); diff --git a/src/lib/components/button/InstantiateButton.tsx b/src/lib/components/button/InstantiateButton.tsx index cc6de6f10..2d3c32691 100644 --- a/src/lib/components/button/InstantiateButton.tsx +++ b/src/lib/components/button/InstantiateButton.tsx @@ -39,7 +39,7 @@ const getInstantiateButtonProps = ( icon: ( ), }; diff --git a/src/lib/components/button/NewProposalButton.tsx b/src/lib/components/button/NewProposalButton.tsx index f232db763..ad5294155 100644 --- a/src/lib/components/button/NewProposalButton.tsx +++ b/src/lib/components/button/NewProposalButton.tsx @@ -21,7 +21,7 @@ export const NewProposalButton = () => { } + icon={} onClick={() => { navigate({ pathname: "/proposals/store-code", @@ -31,7 +31,7 @@ export const NewProposalButton = () => { To Store Code {/* } + icon={} onClick={() => { navigate({ pathname: "/proposals/instantiate", @@ -46,7 +46,7 @@ export const NewProposalButton = () => { > } + icon={} onClick={() => { navigate({ pathname: "/proposals/whitelist", diff --git a/src/lib/components/button/ShowMoreButton.tsx b/src/lib/components/button/ShowMoreButton.tsx index 77d2cbfc5..ff5da9274 100644 --- a/src/lib/components/button/ShowMoreButton.tsx +++ b/src/lib/components/button/ShowMoreButton.tsx @@ -19,12 +19,12 @@ export const ShowMoreButton = ({ rightIcon={ } - color="lilac.main" + color="secondary.main" variant="none" w="fit-content" onClick={setToggleShowMore} > - + {toggleShowMore ? showLessText : showMoreText} diff --git a/src/lib/components/copy/Copier.tsx b/src/lib/components/copy/Copier.tsx index 773e32d50..f36e7ce58 100644 --- a/src/lib/components/copy/Copier.tsx +++ b/src/lib/components/copy/Copier.tsx @@ -35,7 +35,7 @@ export const Copier = ({ onClick={() => AmpTrackCopier(amptrackSection, type)} name="copy" boxSize="12px" - color="pebble.600" + color="gray.600" /> } /> diff --git a/src/lib/components/copy/CopyButton.tsx b/src/lib/components/copy/CopyButton.tsx index 9de15a466..acfa40de4 100644 --- a/src/lib/components/copy/CopyButton.tsx +++ b/src/lib/components/copy/CopyButton.tsx @@ -21,7 +21,7 @@ export const CopyButton = ({ size = "sm", copyLabel, hasIcon = true, - variant = "outline-info", + variant = "outline-accent", buttonText = "Copy", amptrackSection, ...buttonProps diff --git a/src/lib/components/dropzone/index.tsx b/src/lib/components/dropzone/index.tsx index 793b1870f..e80189009 100644 --- a/src/lib/components/dropzone/index.tsx +++ b/src/lib/components/dropzone/index.tsx @@ -31,13 +31,13 @@ export function DropZone({ setFile, ...componentProps }: DropZoneProps) { return ( Click to upload diff --git a/src/lib/components/filter/FilterComponents.ts b/src/lib/components/filter/FilterComponents.ts index 8c3cf5d7d..e50dec739 100644 --- a/src/lib/components/filter/FilterComponents.ts +++ b/src/lib/components/filter/FilterComponents.ts @@ -3,7 +3,7 @@ import { chakra, List } from "@chakra-ui/react"; export const DropdownContainer = chakra(List, { baseStyle: { borderRadius: "8px", - bg: "pebble.900", + bg: "gray.900", px: 2, py: 1, mt: 0, diff --git a/src/lib/components/filter/FilterDropdownItem.tsx b/src/lib/components/filter/FilterDropdownItem.tsx index 977a61e17..40a239d64 100644 --- a/src/lib/components/filter/FilterDropdownItem.tsx +++ b/src/lib/components/filter/FilterDropdownItem.tsx @@ -23,13 +23,13 @@ export const FilterDropdownItem = ({ }: FilterDropdownItemProps) => ( {filterDropdownComponent} - {isOptionSelected && } + {isOptionSelected && } ); diff --git a/src/lib/components/filter/FilterInput.tsx b/src/lib/components/filter/FilterInput.tsx index dcbd6a29d..4bf510c32 100644 --- a/src/lib/components/filter/FilterInput.tsx +++ b/src/lib/components/filter/FilterInput.tsx @@ -36,7 +36,7 @@ export const FilterInput = ({ background="none" borderRadius="8px" border="1px solid" - borderColor="pebble.700" + borderColor="gray.700" overflowX="scroll" alignItems="center" > @@ -62,7 +62,7 @@ export const FilterInput = ({ boxSize="40px" right="0px" minH="full" - color="pebble.600" + color="gray.600" backgroundColor="background.main" onClick={() => setIsDropdown(!isDropdown)} /> diff --git a/src/lib/components/forms/SelectInput.tsx b/src/lib/components/forms/SelectInput.tsx index c6c9fd184..66b3dcac2 100644 --- a/src/lib/components/forms/SelectInput.tsx +++ b/src/lib/components/forms/SelectInput.tsx @@ -49,7 +49,7 @@ const SelectItem = ({ children, onSelect, disabled }: SelectItemProps) => ( cursor="pointer" gap={2} aria-disabled={disabled} - _hover={{ bg: "pebble.800" }} + _hover={{ bg: "gray.800" }} transition="all .25s ease-in-out" _disabled={{ opacity: 0.4, pointerEvents: "none" }} > @@ -97,7 +97,7 @@ export const SelectInput = ({ "&[aria-expanded=true]": { "> input": { border: "2px solid", - borderColor: "lilac.main", + borderColor: "secondary.main", }, }, "& .form-label": { @@ -116,7 +116,7 @@ export const SelectInput = ({
{formLabel}
{selectedOption?.icon && ( - + )} ({ pl={selectedOption?.icon ? 9 : 4} /> - + ({ sx={{ "> div:not(:last-of-type)": { borderBottom: hasDivider && "1px solid", - borderBottomColor: hasDivider && "pebble.700", + borderBottomColor: hasDivider && "gray.700", }, }} > @@ -162,7 +162,7 @@ export const SelectInput = ({ }} disabled={disabled} > - {icon && } + {icon && } {label} ))} @@ -172,7 +172,7 @@ export const SelectInput = ({ h={`${ITEM_HEIGHT}px`} align="center" borderTop={!hasDivider ? "1px solid" : "none"} - borderTopColor="pebble.700" + borderTopColor="gray.700" > {helperTextComponent}
diff --git a/src/lib/components/icon/UploadIcon.tsx b/src/lib/components/icon/UploadIcon.tsx index d67584ab3..c959a8c96 100644 --- a/src/lib/components/icon/UploadIcon.tsx +++ b/src/lib/components/icon/UploadIcon.tsx @@ -9,10 +9,10 @@ interface UploadIconProps { const getVariantStyle = (variant: UploadIconProps["variant"]) => { switch (variant) { case "muted": - return { bgColor: "pebble.700", color: "text.dark" }; + return { bgColor: "gray.700", color: "text.dark" }; case "primary": default: - return { bgColor: "lilac.background", color: "lilac.main" }; + return { bgColor: "secondary.background", color: "secondary.main" }; } }; diff --git a/src/lib/components/json/JsonInput.tsx b/src/lib/components/json/JsonInput.tsx index 3e9329ba4..4d7a11ae3 100644 --- a/src/lib/components/json/JsonInput.tsx +++ b/src/lib/components/json/JsonInput.tsx @@ -109,12 +109,12 @@ const JsonInput = ({ { rel="noreferrer noopener" style={{ display: "flex" }} > - + {org}/{repo}
diff --git a/src/lib/components/modal/ActionModal.tsx b/src/lib/components/modal/ActionModal.tsx index 3313d79d5..891454e74 100644 --- a/src/lib/components/modal/ActionModal.tsx +++ b/src/lib/components/modal/ActionModal.tsx @@ -41,7 +41,7 @@ export interface ActionModalProps { } export function ActionModal({ icon = "edit-solid", - iconColor = "pebble.600", + iconColor = "gray.600", title, subtitle, trigger, @@ -89,7 +89,7 @@ export function ActionModal({ @@ -106,7 +106,7 @@ export function ActionModal({ {headerContent} - {!noCloseButton && } + {!noCloseButton && } {children} diff --git a/src/lib/components/modal/CodeSnippet.tsx b/src/lib/components/modal/CodeSnippet.tsx index bf2d7f2d9..096507231 100644 --- a/src/lib/components/modal/CodeSnippet.tsx +++ b/src/lib/components/modal/CodeSnippet.tsx @@ -191,7 +191,7 @@ execute(); <> ))} @@ -65,7 +65,7 @@ const Footer = () => ( > - + {!token ? ( diff --git a/src/lib/pages/account-details/components/tables/bonded/BondedTableRow.tsx b/src/lib/pages/account-details/components/tables/bonded/BondedTableRow.tsx index f2bd9d1f9..1960f8460 100644 --- a/src/lib/pages/account-details/components/tables/bonded/BondedTableRow.tsx +++ b/src/lib/pages/account-details/components/tables/bonded/BondedTableRow.tsx @@ -24,7 +24,7 @@ export const BondedTableRow = ({ }: BondedTableRowProps) => ( diff --git a/src/lib/pages/account-details/components/tables/redelegation/RedelegationTableRow.tsx b/src/lib/pages/account-details/components/tables/redelegation/RedelegationTableRow.tsx index 2a884f1a3..695bc470c 100644 --- a/src/lib/pages/account-details/components/tables/redelegation/RedelegationTableRow.tsx +++ b/src/lib/pages/account-details/components/tables/redelegation/RedelegationTableRow.tsx @@ -18,7 +18,7 @@ export const RedelegationTableRow = ({ }: RedelegationTableRowProps) => ( @@ -26,7 +26,7 @@ export const RedelegationTableRow = ({ - + diff --git a/src/lib/pages/account-details/index.tsx b/src/lib/pages/account-details/index.tsx index 4d33d56f0..d235e9f46 100644 --- a/src/lib/pages/account-details/index.tsx +++ b/src/lib/pages/account-details/index.tsx @@ -115,7 +115,7 @@ const AccountDetailsBody = ({ accountAddress }: AccountDetailsBodyProps) => { {publicInfo?.description && ( { flex="1" > - + Public Account Description @@ -138,7 +138,7 @@ const AccountDetailsBody = ({ accountAddress }: AccountDetailsBodyProps) => { @@ -198,7 +198,7 @@ const AccountDetailsBody = ({ accountAddress }: AccountDetailsBodyProps) => { pb={8} direction="column" borderBottom="1px solid" - borderBottomColor="pebble.700" + borderBottomColor="gray.700" > Total Account Value @@ -219,13 +219,13 @@ const AccountDetailsBody = ({ accountAddress }: AccountDetailsBodyProps) => { )} - + handleTabChange(TabIndex.Assets)} /> - + handleTabChange(TabIndex.Delegations)} diff --git a/src/lib/pages/block-details/components/BlockDetailsTop.tsx b/src/lib/pages/block-details/components/BlockDetailsTop.tsx index 6a6802f38..7758e85f3 100644 --- a/src/lib/pages/block-details/components/BlockDetailsTop.tsx +++ b/src/lib/pages/block-details/components/BlockDetailsTop.tsx @@ -42,12 +42,12 @@ export const BlockDetailsTop = ({ blockData }: BlockDetailsTopProps) => { mb={12} pb={12} mt={6} - borderBottomColor="pebble.700" + borderBottomColor="gray.700" borderBottomWidth="1px" > - + {blockData.height} @@ -64,7 +64,7 @@ export const BlockDetailsTop = ({ blockData }: BlockDetailsTopProps) => { - + {dateFromNow(blockData.timestamp)} diff --git a/src/lib/pages/code-details/components/table/NoContracts.tsx b/src/lib/pages/code-details/components/table/NoContracts.tsx index b1e38ad54..dd7859935 100644 --- a/src/lib/pages/code-details/components/table/NoContracts.tsx +++ b/src/lib/pages/code-details/components/table/NoContracts.tsx @@ -11,7 +11,7 @@ const DisconnectedState = () => ( gap="16px" py="48px" borderY="1px solid" - borderColor="pebble.700" + borderColor="gray.700" > diff --git a/src/lib/pages/code-details/index.tsx b/src/lib/pages/code-details/index.tsx index 7dd0571b7..7cfa9a131 100644 --- a/src/lib/pages/code-details/index.tsx +++ b/src/lib/pages/code-details/index.tsx @@ -112,11 +112,11 @@ const CodeDetailsBody = observer( description={publicProject.publicCodeData.description} textLine={2} icon={ - + } /> )} - + diff --git a/src/lib/pages/codes/index.tsx b/src/lib/pages/codes/index.tsx index b53fa51a4..9a6d1c1d6 100644 --- a/src/lib/pages/codes/index.tsx +++ b/src/lib/pages/codes/index.tsx @@ -74,7 +74,7 @@ const Codes = observer(() => { My Codes - + All Codes My Stored Codes My Saved Codes diff --git a/src/lib/pages/contract-details/components/CommandSection.tsx b/src/lib/pages/contract-details/components/CommandSection.tsx index 2692fb389..ae1f0ee79 100644 --- a/src/lib/pages/contract-details/components/CommandSection.tsx +++ b/src/lib/pages/contract-details/components/CommandSection.tsx @@ -70,7 +70,7 @@ export const CommandSection = () => { { { aria-label="save" icon={ contractLocalInfo.lists ? ( - + ) : ( - + ) } /> @@ -83,7 +83,7 @@ export const ContractTop = ({ contractData }: ContractTopProps) => { fontSize="24px" variant="none" aria-label="save" - color="pebble.600" + color="gray.600" icon={} /> } @@ -175,7 +175,7 @@ export const ContractTop = ({ contractData }: ContractTopProps) => { fontSize="24px" variant="none" aria-label="edit" - color="pebble.600" + color="gray.600" icon={} /> } diff --git a/src/lib/pages/contract-details/components/InstantiateInfo.tsx b/src/lib/pages/contract-details/components/InstantiateInfo.tsx index 94686318b..847f937f6 100644 --- a/src/lib/pages/contract-details/components/InstantiateInfo.tsx +++ b/src/lib/pages/contract-details/components/InstantiateInfo.tsx @@ -161,7 +161,7 @@ export const InstantiateInfo = ({ )} - + {instantiateInfo && (instantiateInfo.createdHeight ? ( diff --git a/src/lib/pages/contract-details/components/JsonInfo.tsx b/src/lib/pages/contract-details/components/JsonInfo.tsx index df2987f27..fc45cd90e 100644 --- a/src/lib/pages/contract-details/components/JsonInfo.tsx +++ b/src/lib/pages/contract-details/components/JsonInfo.tsx @@ -24,8 +24,8 @@ export const JsonInfo = ({ align="center" p="12px 16px" borderRadius="8px" - background="pebble.900" - _hover={{ backgroundColor: "pebble.800" }} + background="gray.900" + _hover={{ backgroundColor: "gray.800" }} transition="all .25s ease-in-out" cursor="pointer" onClick={() => setExpand((prev) => !prev)} @@ -36,7 +36,7 @@ export const JsonInfo = ({
{ triggerElement={ diff --git a/src/lib/components/filter/FilterInput.tsx b/src/lib/components/filter/FilterInput.tsx index 4bf510c32..c6c96f07f 100644 --- a/src/lib/components/filter/FilterInput.tsx +++ b/src/lib/components/filter/FilterInput.tsx @@ -72,7 +72,7 @@ export const FilterInput = ({ position="absolute" top={0} left={0} - fontWeight="400" + fontWeight={400} color="text.dark" bgColor="background.main" pointerEvents="none" diff --git a/src/lib/components/icon/CustomIcon.tsx b/src/lib/components/icon/CustomIcon.tsx index 02019b4ba..3c99d7c80 100644 --- a/src/lib/components/icon/CustomIcon.tsx +++ b/src/lib/components/icon/CustomIcon.tsx @@ -970,7 +970,7 @@ export const ICONS = { fillRule="evenodd" clipRule="evenodd" d="M2.08451 7.16513H7.64746V1.56522C4.77078 1.97439 2.48854 4.26415 2.08451 7.16513ZM9.14746 0.599338V8.16513C9.14746 8.44127 8.9236 8.66513 8.64746 8.66513H1.11752C0.794022 8.66513 0.520846 8.41239 0.520846 8.08745C0.520846 3.6213 4.12605 0 8.57235 0C8.89585 0 9.14746 0.274396 9.14746 0.599338ZM11.4485 2.40963C14.3672 3.30016 16.5 6.03164 16.5 9.26543C16.5 13.2304 13.3017 16.4306 9.37338 16.4306C8.24526 16.4306 7.18039 16.1682 6.23456 15.6997L10.8659 11.0477C11.239 10.6729 11.4485 10.1655 11.4485 9.63665V2.40963ZM10.5595 0.683346C14.7614 1.26102 18 4.88593 18 9.26543C18 14.0529 14.136 17.9306 9.37338 17.9306C7.51147 17.9306 5.78615 17.3384 4.37714 16.3275C4.10037 16.1325 4.08239 15.7354 4.32322 15.4935L9.80283 9.98942C9.89612 9.89571 9.94849 9.76887 9.94849 9.63665V1.23936C9.94849 0.903584 10.2289 0.63641 10.5595 0.683346ZM3.42309 15.1999C3.21462 15.4129 2.87674 15.4274 2.66108 15.2252C1.24847 13.9002 0.281568 12.1058 0.00479698 10.0875C-0.0383368 9.75534 0.224055 9.47372 0.558336 9.47372H7.01017H7.05548H7.42168H7.92359C8.36858 9.47372 8.59188 10.0113 8.27782 10.3266L7.92359 10.6822L7.66515 10.9416L7.63317 10.9737L3.42309 15.1999ZM5.51589 10.9737L3.04931 13.4498C2.45716 12.7287 2.00363 11.8901 1.72792 10.9737H5.51589Z" - fill="#68688A" + fill="currentColor" /> ), viewBox: "0 0 18 17.5", diff --git a/src/lib/components/modal/CodeSnippet.tsx b/src/lib/components/modal/CodeSnippet.tsx index 096507231..1ff95b059 100644 --- a/src/lib/components/modal/CodeSnippet.tsx +++ b/src/lib/components/modal/CodeSnippet.tsx @@ -208,7 +208,7 @@ execute(); - + Code Snippet diff --git a/src/lib/components/modal/UnsupportedTokensModal.tsx b/src/lib/components/modal/UnsupportedTokensModal.tsx index 01f1b8d97..7c7b29436 100644 --- a/src/lib/components/modal/UnsupportedTokensModal.tsx +++ b/src/lib/components/modal/UnsupportedTokensModal.tsx @@ -183,7 +183,7 @@ export const UnsupportedTokensModal = ({ {address && ( - + {content.header} diff --git a/src/lib/components/modal/contract/AddToOtherList.tsx b/src/lib/components/modal/contract/AddToOtherList.tsx index c57535749..7b0616cd1 100644 --- a/src/lib/components/modal/contract/AddToOtherList.tsx +++ b/src/lib/components/modal/contract/AddToOtherList.tsx @@ -41,10 +41,10 @@ export const AddToOtherListModal = observer( headerContent={ - + Contract Name - + Contract Address diff --git a/src/lib/components/modal/contract/ContractDetailsTemplate.tsx b/src/lib/components/modal/contract/ContractDetailsTemplate.tsx index c55f272e8..612ecb0d8 100644 --- a/src/lib/components/modal/contract/ContractDetailsTemplate.tsx +++ b/src/lib/components/modal/contract/ContractDetailsTemplate.tsx @@ -92,7 +92,7 @@ export const ContractDetailsTemplateModal = ({ subtitle={subtitle} headerContent={ - + Contract Address diff --git a/src/lib/components/state/InvalidState.tsx b/src/lib/components/state/InvalidState.tsx index 529331dbe..3e5e5f88c 100644 --- a/src/lib/components/state/InvalidState.tsx +++ b/src/lib/components/state/InvalidState.tsx @@ -30,12 +30,7 @@ export const InvalidState = ({ title }: InvalidStateProps) => { {title} - + Please double-check your input and make sure you have selected the correct network. diff --git a/src/lib/components/state/ZeroState.tsx b/src/lib/components/state/ZeroState.tsx index e99bc0e53..32c8b65c1 100644 --- a/src/lib/components/state/ZeroState.tsx +++ b/src/lib/components/state/ZeroState.tsx @@ -22,7 +22,7 @@ interface ActionSectionProps { const ActionSection = ({ list, handleAction }: ActionSectionProps) => list.value === formatSlugName(INSTANTIATED_LIST_NAME) ? ( - diff --git a/src/lib/components/table/contracts/EditTags.tsx b/src/lib/components/table/contracts/EditTags.tsx index 44458db76..5c3812d5e 100644 --- a/src/lib/components/table/contracts/EditTags.tsx +++ b/src/lib/components/table/contracts/EditTags.tsx @@ -36,10 +36,10 @@ export function EditTags({ contractLocalInfo }: EditTagsProps) { headerContent={ - + Contract Name - + Contract Address diff --git a/src/lib/components/table/transactions/TransactionsTableRow.tsx b/src/lib/components/table/transactions/TransactionsTableRow.tsx index 51034332c..fb68c42d8 100644 --- a/src/lib/components/table/transactions/TransactionsTableRow.tsx +++ b/src/lib/components/table/transactions/TransactionsTableRow.tsx @@ -53,6 +53,7 @@ export const TransactionsTableRow = ({ name="chevron-down" transform={isOpen ? "rotate(0)" : "rotate(-90deg)"} transition="all .25s ease-in-out" + color="gray.600" /> )} diff --git a/src/lib/layout/Searchbar.tsx b/src/lib/layout/Searchbar.tsx index 3e71dfae7..43d322aff 100644 --- a/src/lib/layout/Searchbar.tsx +++ b/src/lib/layout/Searchbar.tsx @@ -61,7 +61,7 @@ const ResultItem = ({ type, value, handleSelectResult }: ResultItemProps) => { return ( - + {text} {route && ( diff --git a/src/lib/layout/SubHeader.tsx b/src/lib/layout/SubHeader.tsx index f962435f7..cd3418b91 100644 --- a/src/lib/layout/SubHeader.tsx +++ b/src/lib/layout/SubHeader.tsx @@ -59,7 +59,7 @@ const SubHeader = () => { /> {item.name} @@ -84,7 +84,7 @@ const SubHeader = () => { transition="all .25s ease-in-out" > - + My Page diff --git a/src/lib/layout/navbar/Expand.tsx b/src/lib/layout/navbar/Expand.tsx index 45a8a180c..8c70f6b55 100644 --- a/src/lib/layout/navbar/Expand.tsx +++ b/src/lib/layout/navbar/Expand.tsx @@ -29,7 +29,7 @@ export const ExpandNavMenu = ({ }} > - + {item.category} {item.category === "Overview" && ( diff --git a/src/lib/pages/account-details/components/asset/UserAssetInfoCard.tsx b/src/lib/pages/account-details/components/asset/UserAssetInfoCard.tsx index 99a2c8a25..9b2d18089 100644 --- a/src/lib/pages/account-details/components/asset/UserAssetInfoCard.tsx +++ b/src/lib/pages/account-details/components/asset/UserAssetInfoCard.tsx @@ -11,7 +11,7 @@ export const UserAssetInfoCard = ({ value, }: UserAssetInfoCardProps) => ( - + {helperText} - + {value} {isLoading ? ( diff --git a/src/lib/pages/account-details/components/delegations/TotalCard.tsx b/src/lib/pages/account-details/components/delegations/TotalCard.tsx index 7e553b521..2cef8663b 100644 --- a/src/lib/pages/account-details/components/delegations/TotalCard.tsx +++ b/src/lib/pages/account-details/components/delegations/TotalCard.tsx @@ -29,7 +29,7 @@ export const TotalCard = ({ ) : ( <> - + {title} diff --git a/src/lib/pages/account-details/components/tables/TokenCell.tsx b/src/lib/pages/account-details/components/tables/TokenCell.tsx index 2c1fdb395..e8200ce1a 100644 --- a/src/lib/pages/account-details/components/tables/TokenCell.tsx +++ b/src/lib/pages/account-details/components/tables/TokenCell.tsx @@ -23,7 +23,7 @@ export const TokenCell = ({ token }: TokenCellProps) => ( /> - + {formatUTokenWithPrecision(token.amount, token.precision || 0)} diff --git a/src/lib/pages/account-details/index.tsx b/src/lib/pages/account-details/index.tsx index d235e9f46..efd0c8d7e 100644 --- a/src/lib/pages/account-details/index.tsx +++ b/src/lib/pages/account-details/index.tsx @@ -200,7 +200,7 @@ const AccountDetailsBody = ({ accountAddress }: AccountDetailsBodyProps) => { borderBottom="1px solid" borderBottomColor="gray.700" > - + Total Account Value {isLoading ? ( diff --git a/src/lib/pages/contract-list/slug.tsx b/src/lib/pages/contract-list/slug.tsx index 417515fc0..a92a67a9a 100644 --- a/src/lib/pages/contract-list/slug.tsx +++ b/src/lib/pages/contract-list/slug.tsx @@ -100,7 +100,7 @@ const ContractsByList = observer(() => { variant="body2" className="ellipsis" width="250px" - fontWeight="600" + fontWeight={700} color="text.dark" > {contractListInfo.name} @@ -120,9 +120,7 @@ const ContractsByList = observer(() => { {isInstantiatedByMe ? ( ); diff --git a/src/lib/components/button/CustomIconButton.tsx b/src/lib/components/button/CustomIconButton.tsx index 6c1d9fc20..45c1192fd 100644 --- a/src/lib/components/button/CustomIconButton.tsx +++ b/src/lib/components/button/CustomIconButton.tsx @@ -17,7 +17,7 @@ export const CustomIconButton = ({ ); diff --git a/src/lib/components/button/RedoButton.tsx b/src/lib/components/button/RedoButton.tsx index 2240a8abd..40ecb234c 100644 --- a/src/lib/components/button/RedoButton.tsx +++ b/src/lib/components/button/RedoButton.tsx @@ -27,7 +27,7 @@ export const RedoButton = ({ message }: RedoButtonProps) => { ) } > - + Redo ); diff --git a/src/lib/components/button/ShowMoreButton.tsx b/src/lib/components/button/ShowMoreButton.tsx index a96388e5c..7dbab267d 100644 --- a/src/lib/components/button/ShowMoreButton.tsx +++ b/src/lib/components/button/ShowMoreButton.tsx @@ -15,7 +15,7 @@ export const ShowMoreButton = ({ setToggleShowMore, }: ShowMoreButtonProps) => ( ) : ( - + Save existing contracts to the list with { borderY="1px solid" borderColor="gray.700" width="full" - py="48px" + py={12} direction="column" alignContent="center" > - + {renderText(list.value)} {!isReadOnly && ( diff --git a/src/lib/components/stepper/StepperItem.tsx b/src/lib/components/stepper/StepperItem.tsx index 5d1f4fb26..e6ab67010 100644 --- a/src/lib/components/stepper/StepperItem.tsx +++ b/src/lib/components/stepper/StepperItem.tsx @@ -27,7 +27,7 @@ const StepLabel = ({ borderRadius="50%" > {currentStep > step ? ( - + ) : ( {step} )} diff --git a/src/lib/components/table/EditableCell.tsx b/src/lib/components/table/EditableCell.tsx index f3ac57eb6..bd8d6a0c3 100644 --- a/src/lib/components/table/EditableCell.tsx +++ b/src/lib/components/table/EditableCell.tsx @@ -204,7 +204,7 @@ export const EditableCell = ({ opacity={isHover ? 1 : 0} onClick={handleEdit} > - + )} diff --git a/src/lib/components/table/codes/CodesTableWithWallet.tsx b/src/lib/components/table/codes/CodesTableWithWallet.tsx index b05097bd3..13fe5b532 100644 --- a/src/lib/components/table/codes/CodesTableWithWallet.tsx +++ b/src/lib/components/table/codes/CodesTableWithWallet.tsx @@ -25,12 +25,7 @@ export const CodesTableWithWallet = ({ }: CodesTableWithWalletProps) => { const { address } = useWallet(); return !address ? ( - + ) : ( diff --git a/src/lib/components/table/contracts/EditTags.tsx b/src/lib/components/table/contracts/EditTags.tsx index 5c3812d5e..2780d9241 100644 --- a/src/lib/components/table/contracts/EditTags.tsx +++ b/src/lib/components/table/contracts/EditTags.tsx @@ -31,11 +31,11 @@ export function EditTags({ contractLocalInfo }: EditTagsProps) { + } headerContent={ - - + + Contract Name @@ -44,7 +44,7 @@ export function EditTags({ contractLocalInfo }: EditTagsProps) { - + {contractLocalInfo.name ?? contractLocalInfo.label} @@ -60,7 +60,7 @@ export function EditTags({ contractLocalInfo }: EditTagsProps) { otherBtnTitle="Cancel" > - + {formatStatus} - {hasCloseBtn && } + {hasCloseBtn && } ); }; diff --git a/src/lib/components/table/transactions/TransactionsTableRow.tsx b/src/lib/components/table/transactions/TransactionsTableRow.tsx index fb68c42d8..fa3d714dd 100644 --- a/src/lib/components/table/transactions/TransactionsTableRow.tsx +++ b/src/lib/components/table/transactions/TransactionsTableRow.tsx @@ -65,7 +65,7 @@ export const TransactionsTableRow = ({ showCopyOnHover /> {transaction.messages.length > 1 && ( - + {transaction.messages.length} )} diff --git a/src/lib/components/table/transactions/TransactionsTableWithWallet.tsx b/src/lib/components/table/transactions/TransactionsTableWithWallet.tsx index 5ffb776ba..af2eb1f64 100644 --- a/src/lib/components/table/transactions/TransactionsTableWithWallet.tsx +++ b/src/lib/components/table/transactions/TransactionsTableWithWallet.tsx @@ -19,7 +19,7 @@ export const TransactionsTableWithWallet = ({ }: TransactionsTableWithWalletProps) => { const { address } = useWallet(); return !address ? ( - + Proceed to instantiate - + ); @@ -86,7 +86,7 @@ export const ButtonSection = ({ }} > Proceed to Migrate - + ); case "migrate": @@ -103,7 +103,7 @@ export const ButtonSection = ({ } > View Contract Details - + ); diff --git a/src/lib/components/tx/modal/index.tsx b/src/lib/components/tx/modal/index.tsx index f193f9b48..87cd73c82 100644 --- a/src/lib/components/tx/modal/index.tsx +++ b/src/lib/components/tx/modal/index.tsx @@ -53,14 +53,14 @@ export const TxModal = ({ result, onClose }: TxModalProps) => { {(result.receiptInfo.description || result.receipts.length > 0) && ( {result.receiptInfo.description && ( - + {result.receiptInfo.description} )} )} - +

Transaction Fee:

- + ))} diff --git a/src/lib/layout/Header.tsx b/src/lib/layout/Header.tsx index 24a1c6b1b..4220fef1f 100644 --- a/src/lib/layout/Header.tsx +++ b/src/lib/layout/Header.tsx @@ -32,7 +32,7 @@ const Header = () => { justifyContent="space-between" px={6} mb={1} - gap="24px" + gap={6} > { minWidth="152px" width="152px" maxWidth="152px" - mr="36px" + mr={8} transition="all 0.25s ease-in-out" _hover={{ cursor: "pointer", opacity: 0.85 }} /> - + AmpTrack(AmpEvent.USE_SELECT_NETWORK)}> { {chainName === currentChainName && ( - + )} diff --git a/src/lib/layout/Searchbar.tsx b/src/lib/layout/Searchbar.tsx index 43d322aff..2afea1589 100644 --- a/src/lib/layout/Searchbar.tsx +++ b/src/lib/layout/Searchbar.tsx @@ -61,13 +61,13 @@ const ResultItem = ({ type, value, handleSelectResult }: ResultItemProps) => { return ( - + {text} {route && ( { overflowX="hidden" bg="background.main" > - +
diff --git a/src/lib/layout/navbar/Expand.tsx b/src/lib/layout/navbar/Expand.tsx index 8c70f6b55..d2009e2dc 100644 --- a/src/lib/layout/navbar/Expand.tsx +++ b/src/lib/layout/navbar/Expand.tsx @@ -15,8 +15,8 @@ export const ExpandNavMenu = ({ {navMenu.map((item) => ( - + {item.category} {item.category === "Overview" && ( @@ -37,7 +37,7 @@ export const ExpandNavMenu = ({ variant="ghost-accent" size="xs" iconSpacing={1} - leftIcon={} + leftIcon={} onClick={() => setIsExpand(false)} > HIDE @@ -49,7 +49,7 @@ export const ExpandNavMenu = ({ variant: "ghost-accent", iconSpacing: 1, size: "xs", - leftIcon: , + leftIcon: , children: "NEW LIST", onClick: () => AmpTrack(AmpEvent.USE_SIDEBAR), }} @@ -63,7 +63,7 @@ export const ExpandNavMenu = ({ onClick={() => AmpTrack(AmpEvent.USE_SIDEBAR)} > )} - + { flex="1" > - + Public Account Description - + {publicInfo?.description} diff --git a/src/lib/pages/admin/index.tsx b/src/lib/pages/admin/index.tsx index 386958a34..19e08244a 100644 --- a/src/lib/pages/admin/index.tsx +++ b/src/lib/pages/admin/index.tsx @@ -187,11 +187,11 @@ const UpdateAdmin = () => { return ( - + Update Admin { helperText="This address will be an admin for the deployed smart contract." value={adminAddress} setInputState={setAdminAddress} - mt="48px" + mt={12} status={adminFormStatus} /> { alignItems="center" alignSelf="flex-start" gap={1} - mt="48px" + mt={12} >

Transaction Fee:

@@ -226,11 +226,7 @@ const UpdateAdmin = () => { alignSelf="flex-start" /> )} -
diff --git a/src/lib/pages/block-details/components/BlockDetailsTop.tsx b/src/lib/pages/block-details/components/BlockDetailsTop.tsx index 7758e85f3..73642d3a9 100644 --- a/src/lib/pages/block-details/components/BlockDetailsTop.tsx +++ b/src/lib/pages/block-details/components/BlockDetailsTop.tsx @@ -47,7 +47,7 @@ export const BlockDetailsTop = ({ blockData }: BlockDetailsTopProps) => { > - + {blockData.height} diff --git a/src/lib/pages/block-details/components/BlockInfo.tsx b/src/lib/pages/block-details/components/BlockInfo.tsx index 856040996..b4e9a496d 100644 --- a/src/lib/pages/block-details/components/BlockInfo.tsx +++ b/src/lib/pages/block-details/components/BlockInfo.tsx @@ -15,7 +15,7 @@ export const BlockInfo = ({ blockData }: BlockInfoProps) => { Block Information - + {blockData.network} {`${blockData.gasUsed ? formatInteger(blockData.gasUsed) : 0} / ${ diff --git a/src/lib/pages/blocks/components/BlocksRow.tsx b/src/lib/pages/blocks/components/BlocksRow.tsx index 39a0ad498..704703fe0 100644 --- a/src/lib/pages/blocks/components/BlocksRow.tsx +++ b/src/lib/pages/blocks/components/BlocksRow.tsx @@ -36,7 +36,7 @@ export const BlocksRow = ({ templateColumns, blockData }: BlocksRowProps) => { - + {formatUTC(blockData.timestamp)} diff --git a/src/lib/pages/code-details/components/table/NoContracts.tsx b/src/lib/pages/code-details/components/table/NoContracts.tsx index dd7859935..2957eef97 100644 --- a/src/lib/pages/code-details/components/table/NoContracts.tsx +++ b/src/lib/pages/code-details/components/table/NoContracts.tsx @@ -8,8 +8,8 @@ const DisconnectedState = () => ( @@ -18,7 +18,7 @@ const DisconnectedState = () => ( No contract instances from this code. - + In order to instantiate contract from this code, you need to diff --git a/src/lib/pages/code-details/index.tsx b/src/lib/pages/code-details/index.tsx index 7cfa9a131..9cf3b2c0f 100644 --- a/src/lib/pages/code-details/index.tsx +++ b/src/lib/pages/code-details/index.tsx @@ -111,9 +111,7 @@ const CodeDetailsBody = observer( title="Public Code Description" description={publicProject.publicCodeData.description} textLine={2} - icon={ - - } + icon={} /> )} diff --git a/src/lib/pages/codes/components/MySavedCodesSection.tsx b/src/lib/pages/codes/components/MySavedCodesSection.tsx index 52bb7e8d8..fdf4e898e 100644 --- a/src/lib/pages/codes/components/MySavedCodesSection.tsx +++ b/src/lib/pages/codes/components/MySavedCodesSection.tsx @@ -19,7 +19,7 @@ export const MySavedCodesSection = ({ isSearching, }: MySavedCodesSectionProps) => ( - + My Saved Codes diff --git a/src/lib/pages/codes/components/MyStoredCodesSection.tsx b/src/lib/pages/codes/components/MyStoredCodesSection.tsx index 51c9ccf5c..868e520c4 100644 --- a/src/lib/pages/codes/components/MyStoredCodesSection.tsx +++ b/src/lib/pages/codes/components/MyStoredCodesSection.tsx @@ -21,7 +21,7 @@ export const MyStoredCodesSection = ({ isSearching, }: MyStoredCodesSectionProps) => ( - + My Stored Codes diff --git a/src/lib/pages/codes/index.tsx b/src/lib/pages/codes/index.tsx index 9a6d1c1d6..69d76c8b7 100644 --- a/src/lib/pages/codes/index.tsx +++ b/src/lib/pages/codes/index.tsx @@ -74,7 +74,7 @@ const Codes = observer(() => { My Codes - + All Codes My Stored Codes My Saved Codes @@ -112,7 +112,7 @@ const Codes = observer(() => { isSearching={isSearching} /> - + { isSearching={isSearching} /> - + { button": { marginInlineStart: "0 !important", diff --git a/src/lib/pages/contract-details/components/contract-description/UserContractDesc.tsx b/src/lib/pages/contract-details/components/contract-description/UserContractDesc.tsx index 9ee15990e..c8c899691 100644 --- a/src/lib/pages/contract-details/components/contract-description/UserContractDesc.tsx +++ b/src/lib/pages/contract-details/components/contract-description/UserContractDesc.tsx @@ -40,7 +40,7 @@ export const UserContractDesc = ({ contractData }: UserContractDescProps) => { size="xs" color="secondary.main" variant="ghost-secondary" - leftIcon={} + leftIcon={} > {description ? "Edit" : "Add Description"} @@ -68,7 +68,7 @@ export const UserContractDesc = ({ contractData }: UserContractDescProps) => { role="group" > - + Your Contract Description diff --git a/src/lib/pages/contract-details/components/contract-description/index.tsx b/src/lib/pages/contract-details/components/contract-description/index.tsx index 29a096cd9..237477a99 100644 --- a/src/lib/pages/contract-details/components/contract-description/index.tsx +++ b/src/lib/pages/contract-details/components/contract-description/index.tsx @@ -16,7 +16,7 @@ export const ContractDesc = ({ contractData }: ContractDescProps) => ( title="Public Contract Description" description={contractData.publicProject.publicInfo.description} textLine={contractData.contractLocalInfo?.description ? 4 : 2} - icon={} + icon={} /> )} diff --git a/src/lib/pages/contract-list/index.tsx b/src/lib/pages/contract-list/index.tsx index 0cb6895f0..794b1e444 100644 --- a/src/lib/pages/contract-list/index.tsx +++ b/src/lib/pages/contract-list/index.tsx @@ -36,7 +36,7 @@ const AllContractListsPage = observer(() => { , + leftIcon: , children: "Create new list", }} /> diff --git a/src/lib/pages/contract-list/slug.tsx b/src/lib/pages/contract-list/slug.tsx index a92a67a9a..553a00dfd 100644 --- a/src/lib/pages/contract-list/slug.tsx +++ b/src/lib/pages/contract-list/slug.tsx @@ -84,7 +84,7 @@ const ContractsByList = observer(() => { w="full" spacing="4px" separator={ - + } > { }} buttonProps={{ variant: "outline-primary", - leftIcon: , + leftIcon: , children: "Save Contract", }} /> diff --git a/src/lib/pages/deploy/index.tsx b/src/lib/pages/deploy/index.tsx index 66e5a12fd..62bf176b8 100644 --- a/src/lib/pages/deploy/index.tsx +++ b/src/lib/pages/deploy/index.tsx @@ -78,7 +78,7 @@ const Deploy = () => { DEPLOY NEW CONTRACT - + Select Deploy Option { } disabled={!enableUpload || !address} onClick={() => navigate({ pathname: "/upload" })} - mb="16px" + mb={4} /> { onClick={() => navigate({ pathname: "/instantiate" })} disabled={!address} /> - + diff --git a/src/lib/pages/faucet/index.tsx b/src/lib/pages/faucet/index.tsx index e4aeaaa45..3c0491bc3 100644 --- a/src/lib/pages/faucet/index.tsx +++ b/src/lib/pages/faucet/index.tsx @@ -98,7 +98,7 @@ const Faucet = () => { @@ -189,7 +189,7 @@ const Faucet = () => { diff --git a/src/lib/pages/home/components/QuickMenu.tsx b/src/lib/pages/home/components/QuickMenu.tsx index b4e0a0fed..d00c14e9b 100644 --- a/src/lib/pages/home/components/QuickMenu.tsx +++ b/src/lib/pages/home/components/QuickMenu.tsx @@ -48,7 +48,7 @@ const secondaryMenu: SecondaryMenuType[] = [ ]; export const QuickMenu = () => ( - + Start using Celatone diff --git a/src/lib/pages/home/components/RecentActivities.tsx b/src/lib/pages/home/components/RecentActivities.tsx index 9a82f9256..2ce585659 100644 --- a/src/lib/pages/home/components/RecentActivities.tsx +++ b/src/lib/pages/home/components/RecentActivities.tsx @@ -54,7 +54,7 @@ export const RecentActivities = observer(() => { {item.type === "query" ? "Query" : "Execute"} - + { }, [router.isReady]); return chainConfig.isWasm ? ( - + diff --git a/src/lib/pages/instantiate/completed.tsx b/src/lib/pages/instantiate/completed.tsx index 880c07d6f..2eedd0a29 100644 --- a/src/lib/pages/instantiate/completed.tsx +++ b/src/lib/pages/instantiate/completed.tsx @@ -20,7 +20,7 @@ const Completed = ({ txInfo }: CompletedProps) => { const txFee = txInfo.events.find((e) => e.type === "tx")?.attributes[0].value; return ( - + Instantiate Complete! diff --git a/src/lib/pages/instantiate/component/FailedModal.tsx b/src/lib/pages/instantiate/component/FailedModal.tsx index 91a4a23cd..ea1fedf3c 100644 --- a/src/lib/pages/instantiate/component/FailedModal.tsx +++ b/src/lib/pages/instantiate/component/FailedModal.tsx @@ -26,11 +26,11 @@ export const FailedModal = ({ errorLog, onClose }: FailedModalProps) => ( - + Failed to instantiate @@ -40,12 +40,12 @@ export const FailedModal = ({ errorLog, onClose }: FailedModalProps) => ( Something went wrong. Here are the error logs. - + {errorLog} - + { DEPLOY NEW CONTRACT - + Instantiate new contract { label="Label" helperText="The contract's label help briefly describe the contract and what it does." variant="floating" - mb="32px" + mb={8} rules={{ required: "Label is required" }} /> {
} /> - + Instantiate Message { setText={(newVal: string) => setValue("initMsg", newVal)} minLines={10} /> - + Send asset to contract @@ -196,7 +196,7 @@ export const MigrateContract = ({ alignSelf="flex-start" alignItems="center" display="flex" - gap="4px" + gap={1} >

Transaction Fee:

- +
diff --git a/src/lib/pages/recent-codes/index.tsx b/src/lib/pages/recent-codes/index.tsx index 75e615f73..e3db87bfa 100644 --- a/src/lib/pages/recent-codes/index.tsx +++ b/src/lib/pages/recent-codes/index.tsx @@ -50,7 +50,7 @@ const RecentCodes = observer(() => { return ( - + ( - + ); export const TxHeader = ({ txData, ...flexProps }: TxHeaderProps) => { diff --git a/src/lib/pages/upload/index.tsx b/src/lib/pages/upload/index.tsx index d98c669a3..fe9517389 100644 --- a/src/lib/pages/upload/index.tsx +++ b/src/lib/pages/upload/index.tsx @@ -21,12 +21,12 @@ const Upload = () => { DEPLOY NEW CONTRACT - + Upload Wasm file router.back()} />