Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
should change the heading of the (upcoming) version to include a major version bump.

-->
# 6.1.1

## @rjsf/shadcn

- Updated `package.json` to copy css files to new `resources` directory

## Dev / docs / playground

- Updated the `playground` to use the css files for `@rjsf/shadcn` from the CDN connected with github, pointing to the new resources directory

# 6.1.0

## @rjsf/antd
Expand Down
23 changes: 13 additions & 10 deletions packages/playground/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,35 +324,38 @@ const themes: PlaygroundProps['themes'] = {
theme: SuiTheme,
},
shadcn: {
stylesheet: '//cdn.jsdelivr.net/gh/tuanphung2308/rjsf-shadcn-css@main/public/v4/default.css',
stylesheet: '//cdn.jsdelivr.net/gh/rjsf-team/react-jsonschema-form@main/packages/shadcn/resources/default.css',
theme: shadcnTheme,
subthemes: {
default: {
stylesheet: '//cdn.jsdelivr.net/gh/tuanphung2308/rjsf-shadcn-css@main/public/v4/default.css',
stylesheet: '//cdn.jsdelivr.net/gh/rjsf-team/react-jsonschema-form@main/packages/shadcn/resources/default.css',
},
'Amethyst Haze': {
stylesheet: '//cdn.jsdelivr.net/gh/tuanphung2308/rjsf-shadcn-css@main/public/v4/amethyst-haze.css',
stylesheet:
'//cdn.jsdelivr.net/gh/rjsf-team/react-jsonschema-form@main/packages/shadcn/resources/amethyst-haze.css',
},
Caffeine: {
stylesheet: '//cdn.jsdelivr.net/gh/tuanphung2308/rjsf-shadcn-css@main/public/v4/caffeine.css',
stylesheet: '//cdn.jsdelivr.net/gh/rjsf-team/react-jsonschema-form@main/packages/shadcn/resources/caffeine.css',
},
Claude: {
stylesheet: '//cdn.jsdelivr.net/gh/tuanphung2308/rjsf-shadcn-css@main/public/v4/claude.css',
stylesheet: '//cdn.jsdelivr.net/gh/rjsf-team/react-jsonschema-form@main/packages/shadcn/resources/claude.css',
},
'Neo Brutalism': {
stylesheet: '//cdn.jsdelivr.net/gh/tuanphung2308/rjsf-shadcn-css@main/public/v4/neo-brutalism.css',
stylesheet:
'//cdn.jsdelivr.net/gh/rjsf-team/react-jsonschema-form@main/packages/shadcn/resources/neo-brutalism.css',
},
'Pastel Dreams': {
stylesheet: '//cdn.jsdelivr.net/gh/tuanphung2308/rjsf-shadcn-css@main/public/v4/pastel-dreams.css',
stylesheet:
'//cdn.jsdelivr.net/gh/rjsf-team/react-jsonschema-form@main/packages/shadcn/resources/pastel-dreams.css',
},
'Soft Pop': {
stylesheet: '//cdn.jsdelivr.net/gh/tuanphung2308/rjsf-shadcn-css@main/public/v4/soft-pop.css',
stylesheet: '//cdn.jsdelivr.net/gh/rjsf-team/react-jsonschema-form@main/packages/shadcn/resources/soft-pop.css',
},
Twitter: {
stylesheet: '//cdn.jsdelivr.net/gh/tuanphung2308/rjsf-shadcn-css@main/public/v4/twitter.css',
stylesheet: '//cdn.jsdelivr.net/gh/rjsf-team/react-jsonschema-form@main/packages/shadcn/resources/twitter.css',
},
Vercel: {
stylesheet: '//cdn.jsdelivr.net/gh/tuanphung2308/rjsf-shadcn-css@main/public/v4/vercel.css',
stylesheet: '//cdn.jsdelivr.net/gh/rjsf-team/react-jsonschema-form@main/packages/shadcn/resources/vercel.css',
},
},
},
Expand Down
3 changes: 2 additions & 1 deletion packages/shadcn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@
"scripts": {
"build:css": "tsx build-css.ts",
"compileReplacer": "tsc -p tsconfig.replacer.json && move-file lodashReplacer.js lodashReplacer.cjs",
"copy-resources": "cp dist/*.css resources",
"build:ts": "npm run compileReplacer && rimraf ./lib && tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.cjs --sourcemap --packages=external --format=cjs",
"build:esm": "esbuild ./src/index.ts --bundle --outfile=dist/rjsf-shadcn.esm.js --sourcemap --packages=external --format=esm",
"build:umd": "rollup dist/rjsf-shadcn.esm.js --format=umd --file=dist/rjsf-shadcn.umd.js --name=@rjsf/rjsf-shadcn",
"build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:css",
"build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:css && npm run copy-resources",
"cs-check": "prettier -l \"{src,test}/**/*.ts?(x)\"",
"cs-format": "prettier \"{src,test}/**/*.ts?(x)\" --write",
"lint": "eslint src test",
Expand Down
2 changes: 2 additions & 0 deletions packages/shadcn/resources/amethyst-haze.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/shadcn/resources/caffeine.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/shadcn/resources/claude.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/shadcn/resources/clean-slate.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/shadcn/resources/default.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/shadcn/resources/neo-brutalism.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/shadcn/resources/pastel-dreams.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/shadcn/resources/soft-pop.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/shadcn/resources/twitter.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/shadcn/resources/vercel.css

Large diffs are not rendered by default.