Skip to content

Commit f3ddf1e

Browse files
committed
feat(ui): add ui-components package
1 parent 1b10adc commit f3ddf1e

File tree

209 files changed

+3240
-1457
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+3240
-1457
lines changed

apps/site/.storybook/preview.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { NextIntlClientProvider } from 'next-intl';
66
import { STORYBOOK_MODES, STORYBOOK_SIZES } from '@/.storybook/constants';
77
import { NotificationProvider } from '@/providers/notificationProvider';
88

9-
import '../styles/index.css';
9+
import '@node-core/ui-components/styles/index.css';
1010

1111
const preview: Preview = {
1212
parameters: {

apps/site/app/[locale]/error.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ArrowRightIcon } from '@heroicons/react/24/solid';
44
import { useTranslations } from 'next-intl';
55
import type { FC } from 'react';
66

7-
import Button from '@/components/Common/Button';
7+
import Button from '@/components/withButton';
88
import GlowingBackdropLayout from '@/layouts/GlowingBackdrop';
99

1010
const ErrorPage: FC<{ error: Error }> = () => {

apps/site/app/[locale]/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { availableLocalesMap, defaultLocale } from '@/next.locales.mjs';
1010
import { LocaleProvider } from '@/providers/localeProvider';
1111
import { ThemeProvider } from '@/providers/themeProvider';
1212

13-
import '@/styles/index.css';
13+
import '@node-core/ui-components/styles/index.css';
1414

1515
const fontClasses = classNames(IBM_PLEX_MONO.variable, OPEN_SANS.variable);
1616

apps/site/app/[locale]/next-data/og/[category]/[title]/route.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import HexagonGridIcon from '@node-core/ui-components/Icons/HexagonGrid';
2+
import JsWhiteIcon from '@node-core/ui-components/Icons/Logos/JsWhite';
13
import { ImageResponse } from 'next/og';
24

3-
import HexagonGrid from '@/components/Icons/HexagonGrid';
4-
import JsIconWhite from '@/components/Icons/Logos/JsIconWhite';
55
import { DEFAULT_CATEGORY_OG_TYPE } from '@/next.constants.mjs';
66
import { defaultLocale } from '@/next.locales.mjs';
77
import tailwindConfig from '@/tailwind.config';
@@ -34,10 +34,10 @@ export const GET = async (_: Request, props: StaticParams) => {
3434
return new ImageResponse(
3535
(
3636
<div tw="relative flex items-center justify-center bg-black w-[1200px] h-[600px]">
37-
<HexagonGrid style={{ background: gridBackground }} />
37+
<HexagonGridIcon style={{ background: gridBackground }} />
3838

3939
<div tw="absolute mx-auto flex max-w-xl flex-col text-center text-3xl font-semibold text-white">
40-
<JsIconWhite width={71} height={80} tw="mx-auto" />
40+
<JsWhiteIcon width={71} height={80} tw="mx-auto" />
4141

4242
<h2>{params.title.slice(0, 100)}</h2>
4343
</div>

apps/site/app/[locale]/not-found.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Image from 'next/image';
55
import { useTranslations } from 'next-intl';
66
import type { FC } from 'react';
77

8-
import Button from '@/components/Common/Button';
8+
import Button from '@/components/withButton';
99
import GlowingBackdropLayout from '@/layouts/GlowingBackdrop';
1010

1111
const NotFoundPage: FC = () => {

apps/site/app/global-error.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { ArrowRightIcon } from '@heroicons/react/24/solid';
44
import type { FC } from 'react';
55

6-
import Button from '@/components/Common/Button';
6+
import Button from '@/components/withButton';
77
import BaseLayout from '@/layouts/Base';
88
import GlowingBackdropLayout from '@/layouts/GlowingBackdrop';
99

apps/site/components/Common/AvatarGroup/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use client';
22

3+
import Tooltip from '@node-core/ui-components/Common/Tooltip';
34
import classNames from 'classnames';
45
import type { FC } from 'react';
56
import { useState, useMemo, Fragment } from 'react';
@@ -8,7 +9,6 @@ import type { AvatarProps } from '@/components/Common/AvatarGroup/Avatar';
89
import Avatar from '@/components/Common/AvatarGroup/Avatar';
910
import avatarstyles from '@/components/Common/AvatarGroup/Avatar/index.module.css';
1011
import AvatarOverlay from '@/components/Common/AvatarGroup/Overlay';
11-
import Tooltip from '@/components/Common/Tooltip';
1212

1313
import styles from './index.module.css';
1414

apps/site/components/Common/BlogPostCard/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import Preview from '@node-core/ui-components/Common/Preview';
12
import { useTranslations } from 'next-intl';
23
import type { FC } from 'react';
34

45
import FormattedTime from '@/components/Common/FormattedTime';
5-
import Preview from '@/components/Common/Preview';
66
import Link from '@/components/Link';
77
import WithAvatarGroup from '@/components/withAvatarGroup';
88
import type { BlogCategory } from '@/types';

apps/site/components/Common/Breadcrumbs/BreadcrumbLink/index.module.css

-20
This file was deleted.

apps/site/components/Common/Breadcrumbs/BreadcrumbRoot/index.module.css

-7
This file was deleted.

apps/site/components/Common/Button/index.module.css

-146
This file was deleted.

apps/site/components/Common/Button/index.tsx

-77
This file was deleted.

0 commit comments

Comments
 (0)