Skip to content

Commit ed729d2

Browse files
committed
restore rebase removal of shadcn
1 parent 96a2c7d commit ed729d2

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
"node": ">=20"
77
},
88
"scripts": {
9-
"publish-repo": "lerna publish",
10-
"changed": "lerna changed",
119
"test": "lerna run test --stream --concurrency=1",
1210
"test:ci": "lerna run test:ci --stream --concurrency=1",
1311
"test:update": "lerna run --concurrency 2 --stream test:update",
@@ -84,6 +82,7 @@
8482
"packages/utils",
8583
"packages/validator-ajv8",
8684
"packages/snapshot-tests",
87-
"packages/shadcn"
85+
"packages/shadcn",
86+
"packages/uswds"
8887
]
8988
}

packages/playground/src/app.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ import { Theme as SuiTheme } from '@rjsf/semantic-ui';
44
import { Theme as AntdTheme } from '@rjsf/antd';
55
import { Theme as BootstrapTheme } from '@rjsf/react-bootstrap';
66
import { Theme as ChakraUITheme } from '@rjsf/chakra-ui';
7-
<<<<<<< HEAD
8-
import { Theme as shadcnTheme } from '@rjsf/shadcn';
9-
import { Theme as DaisyUITheme } from '@rjsf/daisyui';
10-
=======
11-
>>>>>>> f066e3da (Add USWDS theme)
127
import { Theme as UswdsTheme } from '@rjsf/uswds';
8+
import { Theme as DaisyUITheme } from '@rjsf/daisyui';
9+
import { Theme as ShadcnTheme } from '@rjsf/shadcn';
1310
import v8Validator, { customizeValidator } from '@rjsf/validator-ajv8';
1411
import Ajv2019 from 'ajv/dist/2019.js';
1512
import Ajv2020 from 'ajv/dist/2020.js';
@@ -160,6 +157,10 @@ const themes: PlaygroundProps['themes'] = {
160157
stylesheet: '//cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css',
161158
theme: SuiTheme,
162159
},
160+
shadcn: {
161+
stylesheet: 'https://cdn.jsdelivr.net/gh/tuanphung2308/rjsf-shadcn-css@main/public/zinc.css',
162+
theme: ShadcnTheme,
163+
},
163164
uswds: {
164165
stylesheet: '//cdn.jsdelivr.net/npm/uswds/dist/css/uswds.min.css',
165166
theme: UswdsTheme,

packages/playground/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default defineConfig({
2222
'@rjsf/mui': path.resolve(__dirname, '../mui/src'),
2323
'@rjsf/react-bootstrap': path.resolve(__dirname, '../react-bootstrap/src'),
2424
'@rjsf/semantic-ui': path.resolve(__dirname, '../semantic-ui/src'),
25+
'@rjsf/shadcn': path.resolve(__dirname, '../shadcn/src'),
2526
'@rjsf/uswds': path.resolve(__dirname, '../uswds/src'),
2627
'@rjsf/utils': path.resolve(__dirname, '../utils/src'),
2728
'@rjsf/validator-ajv8': path.resolve(__dirname, '../validator-ajv8/src'),

packages/uswds/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build": "tsc",
1010
"cs-check": "prettier -c --ignore-path ../../.prettierignore \"src/**/*.{js,jsx,ts,tsx,json}\"",
1111
"cs-format": "prettier -w --ignore-path ../../.prettierignore \"src/**/*.{js,jsx,ts,tsx,json}\"",
12-
"lint": "eslint src",
12+
"lint": "eslint src test",
1313
"test": "jest",
1414
"test:update": "jest --u"
1515
},

packages/uswds/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./dist",
55
"rootDir": "./src",
6-
"jsx": "react"
6+
"jsx": "react-jsx"
77
},
88
"include": ["src/**/*"],
99
"exclude": ["node_modules", "dist", "test"]

0 commit comments

Comments
 (0)