diff --git a/docs/package.json b/docs/package.json index 294dedc..6bdc83b 100644 --- a/docs/package.json +++ b/docs/package.json @@ -10,10 +10,10 @@ "lint": "next lint" }, "dependencies": { - "@tabler/icons-react": "^2.44.0", - "@types/node": "20.10.4", - "@types/react": "18.2.45", - "@types/react-dom": "18.2.17", + "@tabler/icons-react": "^2.45.0", + "@types/node": "20.11.0", + "@types/react": "18.2.47", + "@types/react-dom": "18.2.18", "next": "14.0.4", "nextra": "^2.13.2", "nextra-theme-docs": "^2.13.2", diff --git a/package.json b/package.json index be5eca8..e9b5d51 100644 --- a/package.json +++ b/package.json @@ -1,23 +1,32 @@ { "name": "section-theme-blog", "scripts": { - "build": "turbo run build --filter=section-blog-theme --filter=demo-section-blog --filter=docs", + "build:core": "turbo run build --filter=section-blog-theme", + "build": "turbo run build --filter=section-blog-theme --filter=demo-section-blog ", "dev": "turbo run dev --filter=section-blog-theme --filter=demo-section-blog ", "clean": "turbo run clean", - "build:all": "turbo run build", + "build:all": "turbo run build --filter=section-blog-theme --filter=demo-section-blog --filter=docs", "dev:docs": "turbo run dev --filter=docs", "lint": "turbo run lint", "format": "prettier --write \"**/*.{ts,tsx,md}\"", "release": "changeset publish " }, "devDependencies": { - "@turbo/gen": "^1.11.2", - "eslint": "^8.55.0", + "@turbo/gen": "^1.11.3", + "eslint": "^8.56.0", "prettier": "^3.1.1", - "turbo": "^1.11.2" + "turbo": "^1.11.3" }, "packageManager": "pnpm@8.6.9", "dependencies": { "@changesets/cli": "^2.27.1" + }, + "pnpm": { + "overrides": { + "semver@<5.7.2": ">=5.7.2", + "semver@>=6.0.0 <6.3.1": ">=6.3.1", + "zod@<=3.22.2": ">=3.22.3", + "postcss@<8.4.31": ">=8.4.31" + } } } diff --git a/packages/section-blog-theme/components.json b/packages/section-blog-theme/components.json index d1ecf5f..b5e4315 100644 --- a/packages/section-blog-theme/components.json +++ b/packages/section-blog-theme/components.json @@ -7,10 +7,11 @@ "config": "tailwind.config.js", "css": "./styles/globals.css", "baseColor": "slate", - "cssVariables": true + "cssVariables": true, + "prefix": "nx-" }, "aliases": { "components": "@/components/", "utils": "@/utility/utils" } -} +} \ No newline at end of file diff --git a/packages/section-blog-theme/components/Article/Article.tsx b/packages/section-blog-theme/components/Article/Article.tsx index e3028af..d76605c 100644 --- a/packages/section-blog-theme/components/Article/Article.tsx +++ b/packages/section-blog-theme/components/Article/Article.tsx @@ -10,7 +10,7 @@ export function Article({ className, children }: ArticleProps) { return (
diff --git a/packages/section-blog-theme/components/Banner/Banner.tsx b/packages/section-blog-theme/components/Banner/Banner.tsx index 2d0f7c1..48e9c0d 100644 --- a/packages/section-blog-theme/components/Banner/Banner.tsx +++ b/packages/section-blog-theme/components/Banner/Banner.tsx @@ -8,22 +8,22 @@ export function Banner({ hideBanner: () => void; }) { return ( -
+
{/* Message */}
{/* Exit Button */} -
+
diff --git a/packages/section-blog-theme/components/Card/Card.tsx b/packages/section-blog-theme/components/Card/Card.tsx index 88966c4..bd74c43 100644 --- a/packages/section-blog-theme/components/Card/Card.tsx +++ b/packages/section-blog-theme/components/Card/Card.tsx @@ -3,43 +3,31 @@ import type { authorType } from "@/src/types"; import { Button } from "@/components/ui/button"; import { CardContent, Card, CardFooter } from "@/components/ui/card"; -export function ArticleCard({ - title, - description, - date, - URL, - author, -}: { - title: string; - description: string; - date: string; - URL: string; - author?: string | authorType; -}) { +export function ArticleCard({ title, description, date, URL, author }: { title: string; description: string; date: string; URL: string; author?: string | authorType; }) { return ( - - -

+ + +

{title}

{typeof author === "string" ? ( -
- - - diff --git a/packages/section-blog-theme/components/Command/Command.tsx b/packages/section-blog-theme/components/Command/Command.tsx index f6a6293..88f626e 100644 --- a/packages/section-blog-theme/components/Command/Command.tsx +++ b/packages/section-blog-theme/components/Command/Command.tsx @@ -1,20 +1,7 @@ import * as React from "react"; import { CommandIcon, TextIcon } from "lucide-react"; -import { - CommandDialog, - CommandEmpty, - CommandInput, - CommandItem, - CommandList, - CommandSeparator, - CommandGroup, -} from "@/components/ui/command"; -import { - Tooltip, - TooltipContent, - TooltipProvider, - TooltipTrigger, -} from "@/components/ui/tooltip"; +import { CommandDialog, CommandEmpty, CommandInput, CommandItem, CommandList, CommandSeparator } from "@/components/ui/command"; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip"; import { Button } from "@/components/ui/button"; import { useRouter } from "next/router"; import { useFetch } from "usehooks-ts"; @@ -55,13 +42,8 @@ export function SearchCommandDialog() { - @@ -72,9 +54,9 @@ export function SearchCommandDialog() { - + - + No results found. {data && Object.entries(data).map(([key, value]) => { @@ -85,14 +67,13 @@ export function SearchCommandDialog() { if (value.data) { return ( -
- - - +
+ + {value.title}
diff --git a/packages/section-blog-theme/components/Footer/Footer.tsx b/packages/section-blog-theme/components/Footer/Footer.tsx index d13d4c3..6417e0e 100644 --- a/packages/section-blog-theme/components/Footer/Footer.tsx +++ b/packages/section-blog-theme/components/Footer/Footer.tsx @@ -18,17 +18,17 @@ export function Footer({ socialLinks: SocialLinks[]; }) { return ( -