mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-30 16:14:13 +00:00
Compare commits
2 Commits
@shadcn/re
...
shadcn/09-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00a10e0404 | ||
|
|
1940798555 |
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
"shadcn": minor
|
|
||||||
---
|
|
||||||
|
|
||||||
add theme vars support
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
"shadcn": minor
|
|
||||||
---
|
|
||||||
|
|
||||||
add tailwind version detection
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
"shadcn": minor
|
|
||||||
---
|
|
||||||
|
|
||||||
add support for tailwind v4
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
"shadcn": minor
|
|
||||||
---
|
|
||||||
|
|
||||||
default for new-york for v4
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
"shadcn": minor
|
|
||||||
---
|
|
||||||
|
|
||||||
fix handling of sidebar colors
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
"shadcn": minor
|
|
||||||
---
|
|
||||||
|
|
||||||
hotswap style for v4
|
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
"react-resizable-panels": "^2.1.7",
|
"react-resizable-panels": "^2.1.7",
|
||||||
"recharts": "2.15.1",
|
"recharts": "2.15.1",
|
||||||
"rimraf": "^6.0.1",
|
"rimraf": "^6.0.1",
|
||||||
"shadcn": "2.3.0",
|
"shadcn": "2.4.0",
|
||||||
"sonner": "^1.7.4",
|
"sonner": "^1.7.4",
|
||||||
"tailwind-merge": "^3.0.1",
|
"tailwind-merge": "^3.0.1",
|
||||||
"tailwindcss": "^4.0.1",
|
"tailwindcss": "^4.0.1",
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
"react-resizable-panels": "^2.0.22",
|
"react-resizable-panels": "^2.0.22",
|
||||||
"react-wrap-balancer": "^0.4.1",
|
"react-wrap-balancer": "^0.4.1",
|
||||||
"recharts": "2.12.7",
|
"recharts": "2.12.7",
|
||||||
"shadcn": "2.3.0",
|
"shadcn": "2.4.0",
|
||||||
"sharp": "^0.31.3",
|
"sharp": "^0.31.3",
|
||||||
"sonner": "^1.2.3",
|
"sonner": "^1.2.3",
|
||||||
"swr": "2.2.6-beta.3",
|
"swr": "2.2.6-beta.3",
|
||||||
|
|||||||
@@ -1,5 +1,21 @@
|
|||||||
# @shadcn/ui
|
# @shadcn/ui
|
||||||
|
|
||||||
|
## 2.4.0
|
||||||
|
|
||||||
|
### Minor Changes
|
||||||
|
|
||||||
|
- [#6487](https://github.com/shadcn-ui/ui/pull/6487) [`5ef2bc5f455dfc394116267788c0514b696e13b0`](https://github.com/shadcn-ui/ui/commit/5ef2bc5f455dfc394116267788c0514b696e13b0) Thanks [@shadcn](https://github.com/shadcn)! - add theme vars support
|
||||||
|
|
||||||
|
- [#6478](https://github.com/shadcn-ui/ui/pull/6478) [`8f6a64f176defdb1f9c493598d952fb4e9844cd0`](https://github.com/shadcn-ui/ui/commit/8f6a64f176defdb1f9c493598d952fb4e9844cd0) Thanks [@shadcn](https://github.com/shadcn)! - add tailwind version detection
|
||||||
|
|
||||||
|
- [#6490](https://github.com/shadcn-ui/ui/pull/6490) [`9a14c1d0925d3df2c8f57a3381d212cc3e54f4a6`](https://github.com/shadcn-ui/ui/commit/9a14c1d0925d3df2c8f57a3381d212cc3e54f4a6) Thanks [@shadcn](https://github.com/shadcn)! - add support for tailwind v4
|
||||||
|
|
||||||
|
- [#6574](https://github.com/shadcn-ui/ui/pull/6574) [`1e357cb20d6024b2bc9766fb15f61cb989eb7024`](https://github.com/shadcn-ui/ui/commit/1e357cb20d6024b2bc9766fb15f61cb989eb7024) Thanks [@shadcn](https://github.com/shadcn)! - default for new-york for v4
|
||||||
|
|
||||||
|
- [#6515](https://github.com/shadcn-ui/ui/pull/6515) [`d1eb24e23a973646d78cf101fa1e0a22861ac9fd`](https://github.com/shadcn-ui/ui/commit/d1eb24e23a973646d78cf101fa1e0a22861ac9fd) Thanks [@shadcn](https://github.com/shadcn)! - fix handling of sidebar colors
|
||||||
|
|
||||||
|
- [#6571](https://github.com/shadcn-ui/ui/pull/6571) [`c74a094f14a6e338124709547932dbb20c8d1324`](https://github.com/shadcn-ui/ui/commit/c74a094f14a6e338124709547932dbb20c8d1324) Thanks [@shadcn](https://github.com/shadcn)! - hotswap style for v4
|
||||||
|
|
||||||
## 2.2.0
|
## 2.2.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "shadcn",
|
"name": "shadcn",
|
||||||
"version": "2.3.0",
|
"version": "2.4.0",
|
||||||
"description": "Add components to your apps.",
|
"description": "Add components to your apps.",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -14,6 +14,21 @@ import { Command } from "commander"
|
|||||||
import prompts from "prompts"
|
import prompts from "prompts"
|
||||||
import { z } from "zod"
|
import { z } from "zod"
|
||||||
|
|
||||||
|
const DEPRECATED_COMPONENTS = [
|
||||||
|
{
|
||||||
|
name: "toast",
|
||||||
|
deprecatedBy: "sonner",
|
||||||
|
message:
|
||||||
|
"The toast component is deprecated. Use the sonner component instead.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "toaster",
|
||||||
|
deprecatedBy: "sonner",
|
||||||
|
message:
|
||||||
|
"The toaster component is deprecated. Use the sonner component instead.",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
export const addOptionsSchema = z.object({
|
export const addOptionsSchema = z.object({
|
||||||
components: z.array(z.string()).optional(),
|
components: z.array(z.string()).optional(),
|
||||||
yes: z.boolean(),
|
yes: z.boolean(),
|
||||||
@@ -81,6 +96,19 @@ export const add = new Command()
|
|||||||
options.components = await promptForRegistryComponents(options)
|
options.components = await promptForRegistryComponents(options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const deprecatedComponents = DEPRECATED_COMPONENTS.filter((component) =>
|
||||||
|
options.components?.includes(component.name)
|
||||||
|
)
|
||||||
|
|
||||||
|
if (deprecatedComponents?.length) {
|
||||||
|
logger.break()
|
||||||
|
deprecatedComponents.forEach((component) => {
|
||||||
|
logger.warn(highlighter.warn(component.message))
|
||||||
|
})
|
||||||
|
logger.break()
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
let { errors, config } = await preFlightAdd(options)
|
let { errors, config } = await preFlightAdd(options)
|
||||||
|
|
||||||
// No components.json file. Prompt the user to run init.
|
// No components.json file. Prompt the user to run init.
|
||||||
@@ -190,7 +218,13 @@ async function promptForRegistryComponents(
|
|||||||
hint: "Space to select. A to toggle all. Enter to submit.",
|
hint: "Space to select. A to toggle all. Enter to submit.",
|
||||||
instructions: false,
|
instructions: false,
|
||||||
choices: registryIndex
|
choices: registryIndex
|
||||||
.filter((entry) => entry.type === "registry:ui")
|
.filter(
|
||||||
|
(entry) =>
|
||||||
|
entry.type === "registry:ui" &&
|
||||||
|
!DEPRECATED_COMPONENTS.some(
|
||||||
|
(component) => component.name === entry.name
|
||||||
|
)
|
||||||
|
)
|
||||||
.map((entry) => ({
|
.map((entry) => ({
|
||||||
title: entry.name,
|
title: entry.name,
|
||||||
value: entry.name,
|
value: entry.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user