Skip to content

Commit d75209a

Browse files
authored
Merge pull request #23 from TanStack/feat/add-devtools-ui
feat: add devtools/ui
2 parents ba84ffb + fb787cc commit d75209a

File tree

21 files changed

+662
-181
lines changed

21 files changed

+662
-181
lines changed

.changeset/green-bags-admire.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@tanstack/devtools': minor
3+
'@tanstack/devtools-ui': patch
4+
---
5+
6+
extracted common UI components into a separate package

packages/devtools-ui/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# @tanstack/devtools-ui
2+
3+
Set of Solid.js UI components for TanStack Devtools.
4+
5+
These are used across the TanStack ecosystem to provide a consistent and customizable user interface for your devtools.

packages/devtools-ui/eslint.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @ts-check
2+
3+
import rootConfig from '../../eslint.config.js'
4+
5+
export default [
6+
...rootConfig,
7+
{
8+
rules: {},
9+
},
10+
]

packages/devtools-ui/package.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"name": "@tanstack/devtools-ui",
3+
"version": "0.2.1",
4+
"description": "TanStack Devtools UI is a set of UI components for building devtool panels for your application.",
5+
"author": "Tanner Linsley",
6+
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/TanStack/devtools.git",
10+
"directory": "packages/devtools"
11+
},
12+
"homepage": "https://tanstack.com/devtools",
13+
"funding": {
14+
"type": "github",
15+
"url": "https://github.com/sponsors/tannerlinsley"
16+
},
17+
"keywords": [
18+
"devtools"
19+
],
20+
"type": "module",
21+
"types": "dist/esm/index.d.ts",
22+
"main": "dist/cjs/index.cjs",
23+
"module": "dist/esm/index.js",
24+
"exports": {
25+
".": {
26+
"import": {
27+
"types": "./dist/esm/index.d.ts",
28+
"default": "./dist/esm/index.js"
29+
},
30+
"require": {
31+
"types": "./dist/cjs/index.d.cts",
32+
"default": "./dist/cjs/index.cjs"
33+
}
34+
},
35+
"./package.json": "./package.json"
36+
},
37+
"sideEffects": false,
38+
"engines": {
39+
"node": ">=18"
40+
},
41+
"files": [
42+
"dist/",
43+
"src"
44+
],
45+
"scripts": {
46+
"clean": "premove ./build ./dist",
47+
"lint:fix": "eslint ./src --fix",
48+
"test:eslint": "eslint ./src",
49+
"test:lib": "vitest",
50+
"test:lib:dev": "pnpm test:lib --watch",
51+
"test:types": "tsc",
52+
"test:build": "publint --strict",
53+
"build": "vite build"
54+
},
55+
"dependencies": {
56+
"goober": "^2.1.16",
57+
"solid-js": "^1.9.7"
58+
},
59+
"peerDependencies": {
60+
"solid-js": ">=1.9.7"
61+
},
62+
"devDependencies": {
63+
"vite-plugin-solid": "^2.11.6"
64+
}
65+
}

packages/devtools-ui/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export { Checkbox } from './components/checkbox'
2+
export { Input } from './components/input'
3+
export { Select } from './components/select'
4+
export { TanStackLogo } from './components/logo'

0 commit comments

Comments
 (0)