shadcn
2f6c3e74bb
fix(v4): use tailwind var
2025-03-05 16:58:06 +04:00
Valentin Gavran
a106fc5412
fix(dropdown-menu): make dropdown scrollable if height is limited ( #6679 )
...
* fix(dropdown-menu): make dropdown content scrollable if height is limited
Dropdown menu content now becomes scrollable when the browser window height is too small to display the full menu. This improves usability on smaller screens.
Radix also supports the same behavior with other components. I will also submit a PR for the other components separately.
* chore: build registry
---------
Co-authored-by: shadcn <m@shadcn.com >
2025-03-05 16:51:46 +04:00
omar2205
fc0e8c0c52
use type import in react-hook-form ( #4183 )
...
* use type import in react-hook-form
* fix(form): fix type and rebuild registry
---------
Co-authored-by: shadcn <m@shadcn.com >
2025-03-05 15:34:13 +04:00
shadcn
3baef994d7
feat(v4): add combobox with checkbox example ( #6862 )
...
* feat(v4): add combobox with checkbox example
* fix: remove unused checkbox
* fix: rounded
2025-03-05 11:21:07 +04:00
shadcn
26dc03b545
fix: chart and input-otp lint errors ( #6853 )
2025-03-04 14:00:25 +04:00
shadcn
be3c1a9a98
chore: minor fixes for registry blocks ( #6850 )
2025-03-04 13:26:40 +04:00
shadcn
418b2d9e14
fix(v4): misc select and tabs fixes ( #6836 )
2025-03-03 11:56:29 +04:00
JEM
7eb77fb3b9
fix(navigation-menu): 6825 - Update open state styles and remove unused classes ( #6827 )
...
* fix(navigation-menu): 6825 - Update open state styles and remove unused classes
Adjusts navigation menu trigger open styles to apply opacity /50 only when not hover/focused.
Removes unused data-[active] and data-[active=true] classes.
Fixes #6825
* Adds data-[active=true] back to NavigationMenuLink component.
Includes text color changes for open/active states to improve UI consistency.
* v3 registry
* v4 registry
2025-03-03 11:56:15 +04:00
JEM
0b288883d2
fix(sidebar, sidebar-16): 6651 - Resolve unnecessary vertical scroll ( #6782 )
...
* fix(sidebar, sidebar-16): 6651 - Resolve unnecessary vertical scroll
Includes "label" in registry dependencies for sidebar-16 components.
Adjusts sidebar and sidebar inset dimensions to eliminate unwanted scroll behavior.
Fixes #6651
* chore: build registry
* Add label component to registry and adjust sidebar styles
Adds 'label' component to the registry.
Corrects sidebar styles and layout for better responsiveness.
* fix(sidebar-09): Add missing Label component dependency
Ensures the Label component is included in the registry dependencies for sidebar-09 to prevent missing component errors.
---------
Co-authored-by: shadcn <m@shadcn.com >
2025-03-02 15:33:09 +04:00
shadcn
d44971b6c2
feat(v4): add products-01 block
2025-02-28 23:14:59 +04:00
shadcn
3a2a87386f
fix(v4): badge overflow
2025-02-28 15:44:04 +04:00
shadcn
f90f5148eb
fix(v4): responsive for the demo ( #6803 )
...
* fix(v4): responsive
* fix: type
* fix(v4): remove the login link
2025-02-28 13:31:06 +04:00
shadcn
99b0a5ac90
fix(v4): remove login and sandbox links
2025-02-28 13:29:16 +04:00
shadcn
984cb2a1ea
feat(v4): update default ring colors
2025-02-28 13:28:17 +04:00
shadcn
fed2bac1d9
Merge branch 'main' of github.com:shadcn-ui/ui
2025-02-27 15:51:17 +04:00
shadcn
1ebfcd7cd9
feat(registry): update sidebars
2025-02-27 15:51:05 +04:00
Keit Oliveira
535a7d9220
fix(form): avoid undefined message error as string ( #6729 )
...
Add validation to prevent converting `undefined` error messages to string in the `FormMessage` component.
This fix addresses issues that occur in complex validation structures, such as validating entire objects.
```ts
const formSchema = z.object({
location: z.object({
city: z.string().nonempty(),
state: z.string().nonempty(),
country: z.string().nonempty(),
}).superRefine((data, ctx) => {
...
});
```
```tsx
<FormField
control={form.control}
name="location"
render={() => (
<FormItem>
<FormField
control={form.control}
name="location.city"
render={({ field }) => (
<FormItem>
<FormLabel>City</FormLabel>
<FormControl>
<Input placeholder="Enter city" {...field} />
</FormControl>
</FormItem>
)}
/>
<FormField
control={form.control}
name="location.state"
render={({ field }) => (
<FormItem>
<FormLabel>State</FormLabel>
<FormControl>
<Input placeholder="Enter state" {...field} />
</FormControl>
</FormItem>
)}
/>
<FormField
control={form.control}
name="location.country"
render={({ field }) => (
<FormItem>
<FormLabel>Country</FormLabel>
<FormControl>
<Input placeholder="Enter country" {...field} />
</FormControl>
</FormItem>
)}
/>
<FormMessage />
</FormItem>
)}
/>
```
2025-02-26 20:35:01 +00:00
shadcn
575c0214da
feat(v4): minor component updates
2025-02-26 17:28:49 +04:00
Pasquale Vitiello
b567f7a6c1
fix: class name typo ( #6633 )
...
Co-authored-by: shadcn <m@shadcn.com >
2025-02-22 13:43:57 +04:00
shadcn
7d2499c803
fix(v4): dark mode
2025-02-21 21:08:07 +04:00
shadcn
84b88440c3
fix(v4): login spacing
2025-02-21 21:05:52 +04:00
shadcn
3b90317e3c
feat(v4): update cards
2025-02-21 20:44:09 +04:00
shadcn
957df8997c
fix: misc fixes for v4 components ( #6719 )
...
* feat(v4): login tests
* feat(v4): fix button and toggle
2025-02-21 20:07:48 +04:00
shadcn
5953229417
fix(v4): input otp
2025-02-20 23:41:37 +04:00
shadcn
b0774b0578
fix: slider and demo components
2025-02-20 23:03:39 +04:00
shadcn
7cefabbe98
fix: switch focus
2025-02-20 22:56:33 +04:00
shadcn
3740373f99
feat(v4): update colors ( #6693 )
...
* feat(v4): update colors
* fix: sonner button
* feat(shadcn): update base colors to oklch
* fix: button gaps
* fix: sidebar and chart
* feat: update ring colors
* feat(v4): neutral color and fixes
* fix: fonts
* chore: changeset
* fix: revert utils
2025-02-20 19:32:56 +04:00
shadcn
f9037239af
fix: v4 page
2025-02-06 20:42:21 +04:00
shadcn
14e4726400
feat: misc updates for icons and tooltip ( #6584 )
2025-02-06 16:44:40 +04:00
shadcn
6339aaa315
(7/n) shadcn: improve focus-visible for all elements ( #6573 )
...
* feat: focus visible colors
* fix: lint
* fix: tabs
2025-02-05 17:49:20 +04:00
shadcn
c74a094f14
(6/n) shadcn: handle registry for v4 ( #6571 )
...
* feat(shadcn): hotswap registry style for v4
* chore: changeset
* style(shadcn): remove unused import
* chore: registry
* fix(shadcn): cmon
2025-02-05 14:54:24 +04:00
shadcn
bfb5b6357e
feat: add vercel analytics
2025-02-05 11:34:14 +04:00
shadcn
ac3d965c6e
chore: remove unused code
2025-02-05 11:33:10 +04:00
shadcn
6e7cd11d68
fix(v4): charts
2025-02-05 11:31:50 +04:00
shadcn
a75b4ca80e
fix: build
2025-02-05 11:17:48 +04:00
shadcn
475abbbb20
refactor: new-york-v4
2025-02-05 10:38:28 +04:00
shadcn
762cd73554
chore: build registry
2025-02-05 10:17:03 +04:00
shadcn
e516481394
(5/n) shadcn: migrate all components and blocks ( #6567 )
...
* feat: add v3
* feat: upgrade lucide-react
* feat: upgrade components to Tailwind v4
* feat(v3): add dark mode
* wip
* feat: components upgrade
* style: format
* feat: add select
* feat: more components
* feat: more components
* fix: shadow
* feat: upgrade sidebar
* refactor: registry
* refactor: internal
* fix: registry
* fix: charts
* chore: build registry
* fix: charts
* feat: form
* feat: clean up
* fix: icons
* fix: command demo
* chore: add new-york-v4 to registry
* fix: revert command in www registry
* fix
* chore: fix tests
* fix: types
* fix: lint errors
* chore: build v4 registry
* fix
* fix: types
2025-02-05 00:15:07 +04:00