Skip to content

Commit

Permalink
chore: replace caption 2 with label03
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Mar 8, 2024
1 parent 5aff902 commit a4e0ffd
Show file tree
Hide file tree
Showing 22 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export function BitcoinContractEntryPointLayout(props: BitcoinContractEntryPoint
</BasicTooltip>
</HStack>
<HStack alignItems="center" justifyContent="space-between" width="100%">
<styled.span textStyle="caption.02">{caption}</styled.span>
<styled.span textStyle="label.03">{caption}</styled.span>
<Flex>
{isLoading ? '' : <styled.span textStyle="caption.02">{usdBalance}</styled.span>}
{isLoading ? '' : <styled.span textStyle="label.03">{usdBalance}</styled.span>}
</Flex>
</HStack>
</Flag>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function FeesListItem({
</Flex>
<Flex justifyContent="center">
<styled.span
textStyle="caption.02"
textStyle="label.03"
data-testid={SharedComponentsSelectors.FeesListItemFeeValue}
>
{`${feeFiatValue} | ${feeRate} sats/vB | ${feeAmount}`}
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/disclaimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface DisclaimerProps extends BoxProps {
export function Disclaimer({ disclaimerText, learnMoreUrl, ...props }: DisclaimerProps) {
return (
<Box lineHeight="1.4" {...props}>
<styled.span textStyle="caption.02">
<styled.span textStyle="label.03">
{disclaimerText}
{learnMoreUrl ? (
<Link display="inline" fontSize="14px" onClick={() => openInNewTab(learnMoreUrl)}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export function InscriptionMetadata({
<Flex alignItems="flex-start" flexDirection="column" justifyContent="center">
{icon && icon}
<styled.span textStyle="label.01">{title}</styled.span>
<styled.span textStyle="caption.02">{subtitle}</styled.span>
<styled.span textStyle="label.03">{subtitle}</styled.span>
{action ? (
<Link color="stacks" onClick={() => action()} textStyle="caption.02" variant="text">
<Link color="stacks" onClick={() => action()} textStyle="label.03" variant="text">
{actionLabel}
</Link>
) : null}
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/no-fees-warning-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ interface NoFeesWarningRowProps {
export function NoFeesWarningRow({ chainId }: NoFeesWarningRowProps) {
return (
<HStack alignItems="center" justifyContent="space-between">
<styled.span textStyle="caption.02">No fees are incurred</styled.span>
<styled.span textStyle="caption.02">
<styled.span textStyle="label.03">No fees are incurred</styled.span>
<styled.span textStyle="label.03">
{whenStacksChainId(chainId)({
[ChainID.Testnet]: 'Testnet',
[ChainID.Mainnet]: 'Mainnet',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function ChooseFeeSubtitle({ isSendingMax }: { isSendingMax: boolean }) {
);

return (
<styled.span color="ink.text-subdued" textAlign="center" textStyle="caption.02">
<styled.span color="ink.text-subdued" textAlign="center" textStyle="label.03">
{subtitle}
</styled.span>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function TaprootBalanceDisplayer({ onSelectRetrieveBalance }: TaprootBala
if (balance.amount.isLessThanOrEqualTo(0)) return null;
return (
<BasicTooltip label={taprootSpendNotSupportedYetMsg} asChild>
<Link onClick={() => onSelectRetrieveBalance()} textStyle="caption.02" variant="text">
<Link onClick={() => onSelectRetrieveBalance()} textStyle="label.03" variant="text">
{formatMoney(balance)}
</Link>
</BasicTooltip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function HiroMessageItem(props: HiroMessageItemProps) {
</styled.span>
)}
<styled.span
textStyle="caption.02"
textStyle="label.03"
display="inline-block"
fontSize="inherit"
mr={['space.02', 'space.04']}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function LeatherIntroDialogPart2() {
Learn more →
</styled.a>
</Box>
<styled.span textStyle="caption.02" display="block" textAlign="left" mt="16px">
<styled.span textStyle="label.03" display="block" textAlign="left" mt="16px">
Leather Wallet will now be provided by Leather Wallet LLC [a subsidiary of Nassau Machines
Inc]. Please review and accept Leather Wallet{' '}
<styled.a href="https://leather.io/terms" textDecoration="underline" target="_blank">
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/message-signer/hash-drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function HashDrawer(props: HashDrawerProps) {
color="ink.text-subdued"
lineHeight="1.6"
wordBreak="break-all"
textStyle="caption.02"
textStyle="label.03"
>
{displayHash}
</styled.span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function PsbtInputOutputItemLayout({
variant="text"
>
<BasicTooltip disabled={!txIdHoverLabel} label={txIdHoverLabel} side="bottom">
<styled.span textStyle="caption.02">{txId}</styled.span>
<styled.span textStyle="label.03">{txId}</styled.span>
</BasicTooltip>
</Link>
) : null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function PsbtRequestFee(props: { fee: Money }) {
<styled.span textStyle="label.01">Transaction fee</styled.span>
<Stack alignItems="flex-end" gap="space.01">
<styled.span textStyle="label.01">{formatMoney(fee)}</styled.span>
<styled.span textStyle="caption.02">
<styled.span textStyle="label.03">
{i18nFormatCurrency(calculateBitcoinFiatValue(fee))}
</styled.span>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function StructuredDataBox(props: {
<Box fontSize="14px" lineHeight="1.7" px="space.05">
<HStack alignItems="center" justifyContent="space-between">
<styled.h2 textStyle="label.01">{domainName}</styled.h2>
<styled.span lineHeight="1.5" textStyle="caption.02">
<styled.span lineHeight="1.5" textStyle="label.03">
{domainVersion} {domainChainName}
</styled.span>
</HStack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function GetAddressesLayout(props: GetAddressesLayoutProps) {
alignSelf="bottom"
bg="ink.background-secondary"
>
<styled.p textStyle="caption.02">
<styled.p textStyle="label.03">
By connecting you give permission to {requester} to see all addresses linked to this
account
</styled.p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function RecipientAddressDisplayer({ address }: RecipientAddressDisplayer
return (
<HStack mb="space.04" width="100%" px="space.04" mt="space.02">
<styled.span
textStyle="caption.02"
textStyle="label.03"
data-testid={SendCryptoAssetSelectors.RecipientBnsAddressLabel}
>
{address}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function BtcSendForm() {
{currentNetwork.chain.bitcoin.bitcoinNetwork === 'testnet' && (
<Callout variant="warning" mt="space.04">
{'This is a Bitcoin testnet transaction. Funds have no value. '}
<Link href="https://coinfaucet.eu/en/btc-testnet" textStyle="caption.02">
<Link href="https://coinfaucet.eu/en/btc-testnet" textStyle="label.03">
Get testnet BTC here ↗
</Link>
</Callout>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/swap/components/swap-amount-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function SwapAmountField({ amountAsFiat, isDisabled, name }: SwapAmountFi
}}
/>
{amountAsFiat ? (
<styled.span color={showError ? 'error' : 'ink.text-subdued'} textStyle="caption.02">
<styled.span color={showError ? 'error' : 'ink.text-subdued'} textStyle="label.03">
{amountAsFiat}
</styled.span>
) : null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function SwapAssetItemLayout({ caption, icon, symbol, value }: SwapAssetI
spacing="space.03"
width="100%"
>
<styled.span color="ink.text-subdued" textStyle="caption.02">
<styled.span color="ink.text-subdued" textStyle="label.03">
{caption}
</styled.span>
<HStack alignItems="center" justifyContent="space-between">
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/swap/components/swap-selected-asset.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function SwapSelectedAssetLayout({
<styled.span
color={captionTextColor}
cursor={tooltipLabel ? 'pointer' : 'unset'}
textStyle="caption.02"
textStyle="label.03"
>
{showError ? error : caption}
</styled.span>
Expand All @@ -88,7 +88,7 @@ export function SwapSelectedAssetLayout({
onClick={onClickHandler ? onClickHandler : noop}
variant={onClickHandler ? 'underlined' : 'text'}
>
<styled.span textStyle="caption.02">{value}</styled.span>
<styled.span textStyle="label.03">{value}</styled.span>
</Link>
</HStack>
) : null}
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/components/callout/callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function Callout(props: CalloutProps & CalloutVariants) {
{title}
</styled.span>
)}
{children && <styled.span textStyle="caption.02">{children}</styled.span>}
{children && <styled.span textStyle="label.03">{children}</styled.span>}
</Stack>
</Flag>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/components/item/item.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function ItemLayout({
{isValidElement(captionRight) ? (
captionRight
) : (
<styled.span className={itemCaptionStyles} textStyle="caption.02">
<styled.span className={itemCaptionStyles} textStyle="label.03">
{captionRight}
</styled.span>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/components/typography/caption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const Caption = forwardRef<HTMLSpanElement, HTMLStyledProps<'span'>>(
_disabled={{ color: 'ink.non-interactive' }}
color="ink.text-subdued"
ref={ref}
textStyle="caption.02"
textStyle="label.03"
{...props}
>
{children}
Expand Down

0 comments on commit a4e0ffd

Please sign in to comment.