Skip to content

Commit e4aaf26

Browse files
authored
feat!: update to vocs 1.x, tailwindcss 4 (#50)
1 parent 08423a1 commit e4aaf26

File tree

8 files changed

+2438
-2228
lines changed

8 files changed

+2438
-2228
lines changed

docs/components/KeyPoint.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export const KeyPoint: FC<PropsWithChildren<{ title: string }>> = ({
44
title,
55
children,
66
}) => (
7-
<div className="w-full border rounded border-gray-500 p-4 text-left">
8-
<div className="text-[--vocs-color_heading] text-lg py-2 font-bold">
7+
<div className="w-full border rounded-sm border-gray-500 p-4 text-left">
8+
<div className="text-(--vocs-color_heading) text-lg py-2 font-bold">
99
{title}
1010
</div>
1111
<div>{children}</div>

docs/components/Tabs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ export const Root = ({
99
options: Record<string, string>
1010
}>) => (
1111
<Tabs.Root
12-
className="Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]"
12+
className="Tabs__root border rounded-sm bg-(--vocs-color_codeBlockBackground) border-(--vocs-color_codeInlineBorder)"
1313
defaultValue={Object.keys(options)[0]}
1414
>
15-
<Tabs.List className="Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]">
15+
<Tabs.List className="Tabs__list flex flex-wrap px-2 bg-(--vocs-color_codeTitleBackground)">
1616
{Object.entries(options).map(([value, label]) => (
1717
<Tabs.Trigger
1818
key={value}
19-
className="text-sm p-3 pb-2 text-[--vocs-color_text3] border-b border-transparent hover:text-[--vocs-color_text] [&[data-state='active']]:text-[--vocs-color_text] [&[data-state='active']]:border-[--vocs-color_borderAccent]"
19+
className="text-sm p-3 pb-2 text-(--vocs-color_text3) border-b border-transparent hover:text-(--vocs-color_text) data-[state='active']:text-(--vocs-color_text) data-[state='active']:font-bold data-[state='active']:border-(--vocs-color_borderAccent)"
2020
value={value}
2121
>
2222
{label}

docs/pages/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { KeyPoint } from "../components/KeyPoint"
3535
</div>
3636

3737
<div className="text-left w-full max-w-5xl p-2">
38-
<h2 className="text-[--vocs-color_heading] text-3xl py-4 border-b border-gray-500 mb-4">Features</h2>
38+
<h2 className="text-(--vocs-color_heading) text-3xl py-4 border-b border-gray-500 mb-4">Features</h2>
3939

4040
- 🪶 **Light client first**: built on top of the [new JSON-RPC spec](https://paritytech.github.io/json-rpc-interface-spec/) to fully leverage the potential of light-clients.
4141
- 💡 Delightful **TypeScript support** with types and docs generated from on-chain metadata.

docs/styles.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
@layer vocs_preflight {
2-
@tailwind base;
3-
}
4-
@tailwind components;
5-
@tailwind utilities;
1+
@import "tailwindcss";

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@
1010
"prepare": "husky"
1111
},
1212
"dependencies": {
13-
"@radix-ui/react-tabs": "^1.1.1",
14-
"@types/react": "^18.3.12",
15-
"react": "^18.3.1",
16-
"react-dom": "^18.3.1",
17-
"typescript": "^5.7.2",
18-
"vocs": "1.0.0-alpha.62"
13+
"@radix-ui/react-tabs": "^1.1.4",
14+
"@types/react": "^19.1.1",
15+
"react": "^19.1.0",
16+
"react-dom": "^19.1.0",
17+
"typescript": "^5.8.3",
18+
"vocs": "1.0.11"
1919
},
2020
"devDependencies": {
21-
"@homer0/prettier-plugin-jsdoc": "^9.1.0",
21+
"@homer0/prettier-plugin-jsdoc": "^10.0.0",
2222
"husky": "^9.1.7",
23-
"lint-staged": "^15.4.3",
24-
"prettier": "^3.4.1"
23+
"lint-staged": "^15.5.1",
24+
"prettier": "^3.5.3",
25+
"tailwindcss": "^4.1.3"
2526
},
2627
"prettier": {
2728
"printWidth": 80,
@@ -34,5 +35,5 @@
3435
"lint-staged": {
3536
"*.{js,jsx,ts,tsx,json,md,mdx,css,cjs}": "prettier --write"
3637
},
37-
"packageManager": "pnpm@9.14.2+sha512.6e2baf77d06b9362294152c851c4f278ede37ab1eba3a55fda317a4a17b209f4dbb973fb250a77abc463a341fcb1f17f17cfa24091c4eb319cda0d9b84278387"
38+
"packageManager": "pnpm@10.8.0+sha512.0e82714d1b5b43c74610193cb20734897c1d00de89d0e18420aebc5977fa13d780a9cb05734624e81ebd81cc876cd464794850641c48b9544326b5622ca29971"
3839
}

0 commit comments

Comments
 (0)