Skip to content

Commit 64f8baf

Browse files
authored
feat(shadcn): allow empty files items (#8110)
* feat(shadcn): allow no files items * feat(v4): add themes * chore: changeset * fix
1 parent 4b44c64 commit 64f8baf

18 files changed

Lines changed: 1779 additions & 624 deletions

File tree

.changeset/mighty-falcons-type.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"shadcn": minor
3+
---
4+
5+
allow no files items

apps/v4/content/docs/(root)/changelog.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ const SheetContent = React.forwardRef<
10711071
{...props}
10721072
>
10731073
{children}
1074-
<SheetPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none">
1074+
<SheetPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none">
10751075
<X className="h-4 w-4" />
10761076
<span className="sr-only">Close</span>
10771077
</SheetPrimitive.Close>

apps/v4/public/r/styles/new-york-v4/registry.json

Lines changed: 338 additions & 147 deletions
Large diffs are not rendered by default.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
3+
"name": "theme-gray",
4+
"type": "registry:theme",
5+
"cssVars": {
6+
"light": {
7+
"background": "oklch(1 0 0)",
8+
"foreground": "oklch(0.13 0.028 261.692)",
9+
"card": "oklch(1 0 0)",
10+
"card-foreground": "oklch(0.13 0.028 261.692)",
11+
"popover": "oklch(1 0 0)",
12+
"popover-foreground": "oklch(0.13 0.028 261.692)",
13+
"primary": "oklch(0.21 0.034 264.665)",
14+
"primary-foreground": "oklch(0.985 0.002 247.839)",
15+
"secondary": "oklch(0.967 0.003 264.542)",
16+
"secondary-foreground": "oklch(0.21 0.034 264.665)",
17+
"muted": "oklch(0.967 0.003 264.542)",
18+
"muted-foreground": "oklch(0.551 0.027 264.364)",
19+
"accent": "oklch(0.967 0.003 264.542)",
20+
"accent-foreground": "oklch(0.21 0.034 264.665)",
21+
"destructive": "oklch(0.577 0.245 27.325)",
22+
"border": "oklch(0.928 0.006 264.531)",
23+
"input": "oklch(0.928 0.006 264.531)",
24+
"ring": "oklch(0.707 0.022 261.325)",
25+
"chart-1": "oklch(0.646 0.222 41.116)",
26+
"chart-2": "oklch(0.6 0.118 184.704)",
27+
"chart-3": "oklch(0.398 0.07 227.392)",
28+
"chart-4": "oklch(0.828 0.189 84.429)",
29+
"chart-5": "oklch(0.769 0.188 70.08)",
30+
"radius": "0.625rem",
31+
"sidebar": "oklch(0.985 0.002 247.839)",
32+
"sidebar-foreground": "oklch(0.13 0.028 261.692)",
33+
"sidebar-primary": "oklch(0.21 0.034 264.665)",
34+
"sidebar-primary-foreground": "oklch(0.985 0.002 247.839)",
35+
"sidebar-accent": "oklch(0.967 0.003 264.542)",
36+
"sidebar-accent-foreground": "oklch(0.21 0.034 264.665)",
37+
"sidebar-border": "oklch(0.928 0.006 264.531)",
38+
"sidebar-ring": "oklch(0.707 0.022 261.325)"
39+
},
40+
"dark": {
41+
"background": "oklch(0.13 0.028 261.692)",
42+
"foreground": "oklch(0.985 0.002 247.839)",
43+
"card": "oklch(0.21 0.034 264.665)",
44+
"card-foreground": "oklch(0.985 0.002 247.839)",
45+
"popover": "oklch(0.21 0.034 264.665)",
46+
"popover-foreground": "oklch(0.985 0.002 247.839)",
47+
"primary": "oklch(0.928 0.006 264.531)",
48+
"primary-foreground": "oklch(0.21 0.034 264.665)",
49+
"secondary": "oklch(0.278 0.033 256.848)",
50+
"secondary-foreground": "oklch(0.985 0.002 247.839)",
51+
"muted": "oklch(0.278 0.033 256.848)",
52+
"muted-foreground": "oklch(0.707 0.022 261.325)",
53+
"accent": "oklch(0.278 0.033 256.848)",
54+
"accent-foreground": "oklch(0.985 0.002 247.839)",
55+
"destructive": "oklch(0.704 0.191 22.216)",
56+
"border": "oklch(1 0 0 / 10%)",
57+
"input": "oklch(1 0 0 / 15%)",
58+
"ring": "oklch(0.551 0.027 264.364)",
59+
"chart-1": "oklch(0.488 0.243 264.376)",
60+
"chart-2": "oklch(0.696 0.17 162.48)",
61+
"chart-3": "oklch(0.769 0.188 70.08)",
62+
"chart-4": "oklch(0.627 0.265 303.9)",
63+
"chart-5": "oklch(0.645 0.246 16.439)",
64+
"sidebar": "oklch(0.21 0.034 264.665)",
65+
"sidebar-foreground": "oklch(0.985 0.002 247.839)",
66+
"sidebar-primary": "oklch(0.488 0.243 264.376)",
67+
"sidebar-primary-foreground": "oklch(0.985 0.002 247.839)",
68+
"sidebar-accent": "oklch(0.278 0.033 256.848)",
69+
"sidebar-accent-foreground": "oklch(0.985 0.002 247.839)",
70+
"sidebar-border": "oklch(1 0 0 / 10%)",
71+
"sidebar-ring": "oklch(0.551 0.027 264.364)"
72+
}
73+
}
74+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
3+
"name": "theme-neutral",
4+
"type": "registry:theme",
5+
"cssVars": {
6+
"light": {
7+
"background": "oklch(1 0 0)",
8+
"foreground": "oklch(0.145 0 0)",
9+
"card": "oklch(1 0 0)",
10+
"card-foreground": "oklch(0.145 0 0)",
11+
"popover": "oklch(1 0 0)",
12+
"popover-foreground": "oklch(0.145 0 0)",
13+
"primary": "oklch(0.205 0 0)",
14+
"primary-foreground": "oklch(0.985 0 0)",
15+
"secondary": "oklch(0.97 0 0)",
16+
"secondary-foreground": "oklch(0.205 0 0)",
17+
"muted": "oklch(0.97 0 0)",
18+
"muted-foreground": "oklch(0.556 0 0)",
19+
"accent": "oklch(0.97 0 0)",
20+
"accent-foreground": "oklch(0.205 0 0)",
21+
"destructive": "oklch(0.577 0.245 27.325)",
22+
"border": "oklch(0.922 0 0)",
23+
"input": "oklch(0.922 0 0)",
24+
"ring": "oklch(0.708 0 0)",
25+
"chart-1": "oklch(0.646 0.222 41.116)",
26+
"chart-2": "oklch(0.6 0.118 184.704)",
27+
"chart-3": "oklch(0.398 0.07 227.392)",
28+
"chart-4": "oklch(0.828 0.189 84.429)",
29+
"chart-5": "oklch(0.769 0.188 70.08)",
30+
"radius": "0.625rem",
31+
"sidebar": "oklch(0.985 0 0)",
32+
"sidebar-foreground": "oklch(0.145 0 0)",
33+
"sidebar-primary": "oklch(0.205 0 0)",
34+
"sidebar-primary-foreground": "oklch(0.985 0 0)",
35+
"sidebar-accent": "oklch(0.97 0 0)",
36+
"sidebar-accent-foreground": "oklch(0.205 0 0)",
37+
"sidebar-border": "oklch(0.922 0 0)",
38+
"sidebar-ring": "oklch(0.708 0 0)"
39+
},
40+
"dark": {
41+
"background": "oklch(0.145 0 0)",
42+
"foreground": "oklch(0.985 0 0)",
43+
"card": "oklch(0.205 0 0)",
44+
"card-foreground": "oklch(0.985 0 0)",
45+
"popover": "oklch(0.205 0 0)",
46+
"popover-foreground": "oklch(0.985 0 0)",
47+
"primary": "oklch(0.922 0 0)",
48+
"primary-foreground": "oklch(0.205 0 0)",
49+
"secondary": "oklch(0.269 0 0)",
50+
"secondary-foreground": "oklch(0.985 0 0)",
51+
"muted": "oklch(0.269 0 0)",
52+
"muted-foreground": "oklch(0.708 0 0)",
53+
"accent": "oklch(0.269 0 0)",
54+
"accent-foreground": "oklch(0.985 0 0)",
55+
"destructive": "oklch(0.704 0.191 22.216)",
56+
"border": "oklch(1 0 0 / 10%)",
57+
"input": "oklch(1 0 0 / 15%)",
58+
"ring": "oklch(0.556 0 0)",
59+
"chart-1": "oklch(0.488 0.243 264.376)",
60+
"chart-2": "oklch(0.696 0.17 162.48)",
61+
"chart-3": "oklch(0.769 0.188 70.08)",
62+
"chart-4": "oklch(0.627 0.265 303.9)",
63+
"chart-5": "oklch(0.645 0.246 16.439)",
64+
"sidebar": "oklch(0.205 0 0)",
65+
"sidebar-foreground": "oklch(0.985 0 0)",
66+
"sidebar-primary": "oklch(0.488 0.243 264.376)",
67+
"sidebar-primary-foreground": "oklch(0.985 0 0)",
68+
"sidebar-accent": "oklch(0.269 0 0)",
69+
"sidebar-accent-foreground": "oklch(0.985 0 0)",
70+
"sidebar-border": "oklch(1 0 0 / 10%)",
71+
"sidebar-ring": "oklch(0.556 0 0)"
72+
}
73+
}
74+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
3+
"name": "theme-slate",
4+
"type": "registry:theme",
5+
"cssVars": {
6+
"light": {
7+
"background": "oklch(1 0 0)",
8+
"foreground": "oklch(0.129 0.042 264.695)",
9+
"card": "oklch(1 0 0)",
10+
"card-foreground": "oklch(0.129 0.042 264.695)",
11+
"popover": "oklch(1 0 0)",
12+
"popover-foreground": "oklch(0.129 0.042 264.695)",
13+
"primary": "oklch(0.208 0.042 265.755)",
14+
"primary-foreground": "oklch(0.984 0.003 247.858)",
15+
"secondary": "oklch(0.968 0.007 247.896)",
16+
"secondary-foreground": "oklch(0.208 0.042 265.755)",
17+
"muted": "oklch(0.968 0.007 247.896)",
18+
"muted-foreground": "oklch(0.554 0.046 257.417)",
19+
"accent": "oklch(0.968 0.007 247.896)",
20+
"accent-foreground": "oklch(0.208 0.042 265.755)",
21+
"destructive": "oklch(0.577 0.245 27.325)",
22+
"border": "oklch(0.929 0.013 255.508)",
23+
"input": "oklch(0.929 0.013 255.508)",
24+
"ring": "oklch(0.704 0.04 256.788)",
25+
"chart-1": "oklch(0.646 0.222 41.116)",
26+
"chart-2": "oklch(0.6 0.118 184.704)",
27+
"chart-3": "oklch(0.398 0.07 227.392)",
28+
"chart-4": "oklch(0.828 0.189 84.429)",
29+
"chart-5": "oklch(0.769 0.188 70.08)",
30+
"radius": "0.625rem",
31+
"sidebar": "oklch(0.984 0.003 247.858)",
32+
"sidebar-foreground": "oklch(0.129 0.042 264.695)",
33+
"sidebar-primary": "oklch(0.208 0.042 265.755)",
34+
"sidebar-primary-foreground": "oklch(0.984 0.003 247.858)",
35+
"sidebar-accent": "oklch(0.968 0.007 247.896)",
36+
"sidebar-accent-foreground": "oklch(0.208 0.042 265.755)",
37+
"sidebar-border": "oklch(0.929 0.013 255.508)",
38+
"sidebar-ring": "oklch(0.704 0.04 256.788)"
39+
},
40+
"dark": {
41+
"background": "oklch(0.129 0.042 264.695)",
42+
"foreground": "oklch(0.984 0.003 247.858)",
43+
"card": "oklch(0.208 0.042 265.755)",
44+
"card-foreground": "oklch(0.984 0.003 247.858)",
45+
"popover": "oklch(0.208 0.042 265.755)",
46+
"popover-foreground": "oklch(0.984 0.003 247.858)",
47+
"primary": "oklch(0.929 0.013 255.508)",
48+
"primary-foreground": "oklch(0.208 0.042 265.755)",
49+
"secondary": "oklch(0.279 0.041 260.031)",
50+
"secondary-foreground": "oklch(0.984 0.003 247.858)",
51+
"muted": "oklch(0.279 0.041 260.031)",
52+
"muted-foreground": "oklch(0.704 0.04 256.788)",
53+
"accent": "oklch(0.279 0.041 260.031)",
54+
"accent-foreground": "oklch(0.984 0.003 247.858)",
55+
"destructive": "oklch(0.704 0.191 22.216)",
56+
"border": "oklch(1 0 0 / 10%)",
57+
"input": "oklch(1 0 0 / 15%)",
58+
"ring": "oklch(0.551 0.027 264.364)",
59+
"chart-1": "oklch(0.488 0.243 264.376)",
60+
"chart-2": "oklch(0.696 0.17 162.48)",
61+
"chart-3": "oklch(0.769 0.188 70.08)",
62+
"chart-4": "oklch(0.627 0.265 303.9)",
63+
"chart-5": "oklch(0.645 0.246 16.439)",
64+
"sidebar": "oklch(0.208 0.042 265.755)",
65+
"sidebar-foreground": "oklch(0.984 0.003 247.858)",
66+
"sidebar-primary": "oklch(0.488 0.243 264.376)",
67+
"sidebar-primary-foreground": "oklch(0.984 0.003 247.858)",
68+
"sidebar-accent": "oklch(0.279 0.041 260.031)",
69+
"sidebar-accent-foreground": "oklch(0.984 0.003 247.858)",
70+
"sidebar-border": "oklch(1 0 0 / 10%)",
71+
"sidebar-ring": "oklch(0.551 0.027 264.364)"
72+
}
73+
}
74+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
3+
"name": "theme-stone",
4+
"type": "registry:theme",
5+
"cssVars": {
6+
"light": {
7+
"background": "oklch(1 0 0)",
8+
"foreground": "oklch(0.147 0.004 49.25)",
9+
"card": "oklch(1 0 0)",
10+
"card-foreground": "oklch(0.147 0.004 49.25)",
11+
"popover": "oklch(1 0 0)",
12+
"popover-foreground": "oklch(0.147 0.004 49.25)",
13+
"primary": "oklch(0.216 0.006 56.043)",
14+
"primary-foreground": "oklch(0.985 0.001 106.423)",
15+
"secondary": "oklch(0.97 0.001 106.424)",
16+
"secondary-foreground": "oklch(0.216 0.006 56.043)",
17+
"muted": "oklch(0.97 0.001 106.424)",
18+
"muted-foreground": "oklch(0.553 0.013 58.071)",
19+
"accent": "oklch(0.97 0.001 106.424)",
20+
"accent-foreground": "oklch(0.216 0.006 56.043)",
21+
"destructive": "oklch(0.577 0.245 27.325)",
22+
"border": "oklch(0.923 0.003 48.717)",
23+
"input": "oklch(0.923 0.003 48.717)",
24+
"ring": "oklch(0.709 0.01 56.259)",
25+
"chart-1": "oklch(0.646 0.222 41.116)",
26+
"chart-2": "oklch(0.6 0.118 184.704)",
27+
"chart-3": "oklch(0.398 0.07 227.392)",
28+
"chart-4": "oklch(0.828 0.189 84.429)",
29+
"chart-5": "oklch(0.769 0.188 70.08)",
30+
"radius": "0.625rem",
31+
"sidebar": "oklch(0.985 0.001 106.423)",
32+
"sidebar-foreground": "oklch(0.147 0.004 49.25)",
33+
"sidebar-primary": "oklch(0.216 0.006 56.043)",
34+
"sidebar-primary-foreground": "oklch(0.985 0.001 106.423)",
35+
"sidebar-accent": "oklch(0.97 0.001 106.424)",
36+
"sidebar-accent-foreground": "oklch(0.216 0.006 56.043)",
37+
"sidebar-border": "oklch(0.923 0.003 48.717)",
38+
"sidebar-ring": "oklch(0.709 0.01 56.259)"
39+
},
40+
"dark": {
41+
"background": "oklch(0.147 0.004 49.25)",
42+
"foreground": "oklch(0.985 0.001 106.423)",
43+
"card": "oklch(0.216 0.006 56.043)",
44+
"card-foreground": "oklch(0.985 0.001 106.423)",
45+
"popover": "oklch(0.216 0.006 56.043)",
46+
"popover-foreground": "oklch(0.985 0.001 106.423)",
47+
"primary": "oklch(0.923 0.003 48.717)",
48+
"primary-foreground": "oklch(0.216 0.006 56.043)",
49+
"secondary": "oklch(0.268 0.007 34.298)",
50+
"secondary-foreground": "oklch(0.985 0.001 106.423)",
51+
"muted": "oklch(0.268 0.007 34.298)",
52+
"muted-foreground": "oklch(0.709 0.01 56.259)",
53+
"accent": "oklch(0.268 0.007 34.298)",
54+
"accent-foreground": "oklch(0.985 0.001 106.423)",
55+
"destructive": "oklch(0.704 0.191 22.216)",
56+
"border": "oklch(1 0 0 / 10%)",
57+
"input": "oklch(1 0 0 / 15%)",
58+
"ring": "oklch(0.553 0.013 58.071)",
59+
"chart-1": "oklch(0.488 0.243 264.376)",
60+
"chart-2": "oklch(0.696 0.17 162.48)",
61+
"chart-3": "oklch(0.769 0.188 70.08)",
62+
"chart-4": "oklch(0.627 0.265 303.9)",
63+
"chart-5": "oklch(0.645 0.246 16.439)",
64+
"sidebar": "oklch(0.216 0.006 56.043)",
65+
"sidebar-foreground": "oklch(0.985 0.001 106.423)",
66+
"sidebar-primary": "oklch(0.488 0.243 264.376)",
67+
"sidebar-primary-foreground": "oklch(0.985 0.001 106.423)",
68+
"sidebar-accent": "oklch(0.268 0.007 34.298)",
69+
"sidebar-accent-foreground": "oklch(0.985 0.001 106.423)",
70+
"sidebar-border": "oklch(1 0 0 / 10%)",
71+
"sidebar-ring": "oklch(0.553 0.013 58.071)"
72+
}
73+
}
74+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
3+
"name": "theme-zinc",
4+
"type": "registry:theme",
5+
"cssVars": {
6+
"light": {
7+
"background": "oklch(1 0 0)",
8+
"foreground": "oklch(0.141 0.005 285.823)",
9+
"card": "oklch(1 0 0)",
10+
"card-foreground": "oklch(0.141 0.005 285.823)",
11+
"popover": "oklch(1 0 0)",
12+
"popover-foreground": "oklch(0.141 0.005 285.823)",
13+
"primary": "oklch(0.21 0.006 285.885)",
14+
"primary-foreground": "oklch(0.985 0 0)",
15+
"secondary": "oklch(0.967 0.001 286.375)",
16+
"secondary-foreground": "oklch(0.21 0.006 285.885)",
17+
"muted": "oklch(0.967 0.001 286.375)",
18+
"muted-foreground": "oklch(0.552 0.016 285.938)",
19+
"accent": "oklch(0.967 0.001 286.375)",
20+
"accent-foreground": "oklch(0.21 0.006 285.885)",
21+
"destructive": "oklch(0.577 0.245 27.325)",
22+
"border": "oklch(0.92 0.004 286.32)",
23+
"input": "oklch(0.92 0.004 286.32)",
24+
"ring": "oklch(0.705 0.015 286.067)",
25+
"chart-1": "oklch(0.646 0.222 41.116)",
26+
"chart-2": "oklch(0.6 0.118 184.704)",
27+
"chart-3": "oklch(0.398 0.07 227.392)",
28+
"chart-4": "oklch(0.828 0.189 84.429)",
29+
"chart-5": "oklch(0.769 0.188 70.08)",
30+
"radius": "0.625rem",
31+
"sidebar": "oklch(0.985 0 0)",
32+
"sidebar-foreground": "oklch(0.141 0.005 285.823)",
33+
"sidebar-primary": "oklch(0.21 0.006 285.885)",
34+
"sidebar-primary-foreground": "oklch(0.985 0 0)",
35+
"sidebar-accent": "oklch(0.967 0.001 286.375)",
36+
"sidebar-accent-foreground": "oklch(0.21 0.006 285.885)",
37+
"sidebar-border": "oklch(0.92 0.004 286.32)",
38+
"sidebar-ring": "oklch(0.705 0.015 286.067)"
39+
},
40+
"dark": {
41+
"background": "oklch(0.141 0.005 285.823)",
42+
"foreground": "oklch(0.985 0 0)",
43+
"card": "oklch(0.21 0.006 285.885)",
44+
"card-foreground": "oklch(0.985 0 0)",
45+
"popover": "oklch(0.21 0.006 285.885)",
46+
"popover-foreground": "oklch(0.985 0 0)",
47+
"primary": "oklch(0.92 0.004 286.32)",
48+
"primary-foreground": "oklch(0.21 0.006 285.885)",
49+
"secondary": "oklch(0.274 0.006 286.033)",
50+
"secondary-foreground": "oklch(0.985 0 0)",
51+
"muted": "oklch(0.274 0.006 286.033)",
52+
"muted-foreground": "oklch(0.705 0.015 286.067)",
53+
"accent": "oklch(0.274 0.006 286.033)",
54+
"accent-foreground": "oklch(0.985 0 0)",
55+
"destructive": "oklch(0.704 0.191 22.216)",
56+
"border": "oklch(1 0 0 / 10%)",
57+
"input": "oklch(1 0 0 / 15%)",
58+
"ring": "oklch(0.552 0.016 285.938)",
59+
"chart-1": "oklch(0.488 0.243 264.376)",
60+
"chart-2": "oklch(0.696 0.17 162.48)",
61+
"chart-3": "oklch(0.769 0.188 70.08)",
62+
"chart-4": "oklch(0.627 0.265 303.9)",
63+
"chart-5": "oklch(0.645 0.246 16.439)",
64+
"sidebar": "oklch(0.21 0.006 285.885)",
65+
"sidebar-foreground": "oklch(0.985 0 0)",
66+
"sidebar-primary": "oklch(0.488 0.243 264.376)",
67+
"sidebar-primary-foreground": "oklch(0.985 0 0)",
68+
"sidebar-accent": "oklch(0.274 0.006 286.033)",
69+
"sidebar-accent-foreground": "oklch(0.985 0 0)",
70+
"sidebar-border": "oklch(1 0 0 / 10%)",
71+
"sidebar-ring": "oklch(0.552 0.016 285.938)"
72+
}
73+
}
74+
}

0 commit comments

Comments
 (0)