diff --git a/packages/app-commons/src/components/PageTitle/PageTitle.tsx b/packages/app-commons/src/components/PageTitle/PageTitle.tsx
index 927e9dcf3..fc1af246e 100644
--- a/packages/app-commons/src/components/PageTitle/PageTitle.tsx
+++ b/packages/app-commons/src/components/PageTitle/PageTitle.tsx
@@ -1,72 +1,35 @@
'use client';
-import type { BaseProps } from '@fuels/ui';
-import { Badge, HStack, Heading } from '@fuels/ui';
-import { tv } from 'tailwind-variants';
+import { Flex, HStack, HStackProps, Text } from '@fuels/ui';
-export type PageTitleProps = BaseProps<{
- as?: string;
- size?: '1' | '2' | '3';
- children: React.ReactNode;
- icon?: React.ReactNode;
- rightElement?: React.ReactNode;
-}>;
+export type PageTitleProps = {
+ title: string;
+ children?: React.ReactNode;
+ subtitle?: React.ReactNode;
+ inverse?: boolean;
+ mb?: HStackProps['mb'];
+};
export function PageTitle({
+ title,
children,
- as = 'h2',
- size = '1',
- icon,
- rightElement,
- className,
+ subtitle,
+ inverse = false,
+ mb = '7',
}: PageTitleProps) {
- const classes = styles({ size });
return (
-
- {icon && (
-
- {icon}
-
- )}
- {children}
-
- {rightElement}
-
-
+
+
+
+ {title}
+
+ {subtitle && (
+
+ {subtitle}
+
+ )}
+
+
+ {children}
+
);
}
-
-const styles = tv({
- slots: {
- root: [
- 'first:mb-8 flex items-center justify-between gap-2',
- 'border-border border-b',
- 'tablet:flex-nowrap tablet:gap-4',
- ],
- icon: ['h-full flex-shrink-0 px-2', 'tablet:self-start tablet:mt-1.5'],
- title: [
- 'items-center basis-full gap-3 order-3 flex-shrink-0 justify-between',
- 'tablet:flex-col tablet:items-start tablet:gap-0',
- 'text-[1.7rem] tablet:text-[2rem] laptop:text-[2.2rem]',
- 'tablet:order-none tablet:flex-1 tablet:justify-start',
- ],
- },
- variants: {
- size: {
- '1': {
- root: 'flex-wrap pb-2 tablet:pb-4',
- title: 'text-[1.7rem] tablet:text-[2rem] laptop:text-[2.2rem]',
- },
- '2': {
- title: 'text-[1.4rem] tablet:text-[1.7rem] laptop:text-[1.9rem]',
- root: 'pb-2 tablet:pb-4',
- },
- '3': {
- title: 'text-[1.2rem] tablet:text-[1.4rem] laptop:text-[1.6rem]',
- root: 'pb-2',
- },
- },
- },
- defaultVariants: {
- size: '1',
- },
-});
diff --git a/packages/app-explorer/.storybook/fonts.css b/packages/app-explorer/.storybook/fonts.css
index 8191a3cd7..2f08c1a77 100644
--- a/packages/app-explorer/.storybook/fonts.css
+++ b/packages/app-explorer/.storybook/fonts.css
@@ -1,7 +1,7 @@
/* this is just for storybook */
@font-face {
- font-family: 'GeistSans';
- src: url('/fonts/GeistVariableVF.woff2') format('woff2');
+ font-family: 'Inter';
+ src: url('/fonts/InterVariable.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
@@ -14,7 +14,7 @@
}
:root {
- --font-geist-sans: 'GeistSans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
+ --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
--font-geist-mono: 'GeistMono', 'SF Mono', 'Segoe UI Mono', 'Roboto Mono',
Menlo, Courier, monospace;
diff --git a/packages/app-explorer/.storybook/preview.tsx b/packages/app-explorer/.storybook/preview.tsx
index 7a27de3a5..8c107cee5 100644
--- a/packages/app-explorer/.storybook/preview.tsx
+++ b/packages/app-explorer/.storybook/preview.tsx
@@ -4,14 +4,13 @@ import './fonts.css';
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
import type { Preview } from '@storybook/react';
-import React from 'react';
import { withThemeDecorator } from 'storybook-addon-theme';
import type { ReactNode } from 'react';
-import { Provider } from '../src/systems/Core/components/Provider';
+import { ThemeProvider } from '../src/systems/Core/components/Theme';
function ThemeWrapper({ children }: { children: ReactNode }) {
- return {children};
+ return {children};
}
const preview: Preview = {
diff --git a/packages/app-explorer/public/fonts/GeistVariableVF.woff2 b/packages/app-explorer/public/fonts/GeistVariableVF.woff2
deleted file mode 100644
index fa004e702..000000000
Binary files a/packages/app-explorer/public/fonts/GeistVariableVF.woff2 and /dev/null differ
diff --git a/packages/app-explorer/public/fonts/InterVariable.woff2 b/packages/app-explorer/public/fonts/InterVariable.woff2
new file mode 100644
index 000000000..22a12b04e
Binary files /dev/null and b/packages/app-explorer/public/fonts/InterVariable.woff2 differ
diff --git a/packages/app-explorer/src/app/error.css b/packages/app-explorer/src/app/error.css
index 8191a3cd7..2f08c1a77 100644
--- a/packages/app-explorer/src/app/error.css
+++ b/packages/app-explorer/src/app/error.css
@@ -1,7 +1,7 @@
/* this is just for storybook */
@font-face {
- font-family: 'GeistSans';
- src: url('/fonts/GeistVariableVF.woff2') format('woff2');
+ font-family: 'Inter';
+ src: url('/fonts/InterVariable.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
@@ -14,7 +14,7 @@
}
:root {
- --font-geist-sans: 'GeistSans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
+ --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
--font-geist-mono: 'GeistMono', 'SF Mono', 'Segoe UI Mono', 'Roboto Mono',
Menlo, Courier, monospace;
diff --git a/packages/app-explorer/src/app/global-error.tsx b/packages/app-explorer/src/app/global-error.tsx
index 4a80b9825..9415af2b4 100644
--- a/packages/app-explorer/src/app/global-error.tsx
+++ b/packages/app-explorer/src/app/global-error.tsx
@@ -6,7 +6,7 @@ import './globals.css';
import Cookies from 'js-cookie';
import type { Metadata } from 'next';
import { ErrorPageComponent } from '~/systems/Core/components/ErrorPage/ErrorPage';
-import { Provider } from '~/systems/Core/components/Provider';
+import { ThemeProvider } from '~/systems/Core/components/Theme';
import { cx } from '~/systems/Core/utils/cx';
export const metadata: Metadata = {
@@ -35,9 +35,9 @@ export default function Page() {
-
+
-
+