Rakibul Islam
9a9c5b1faa
fix #2008 ( #2009 )
...
Co-authored-by: shadcn <m@shadcn.com >
2024-01-28 13:02:00 +04:00
kevinmitch14
7df1007a5b
refactor: update zod import ( #2466 )
2024-01-28 12:47:45 +04:00
Thomas Marrec
a465432a66
fix(carousel): adjust types for embla-carousel-react@8 ( #2326 )
...
Fixes #2322 , #2281
Thanks to @akynau & @nianiam
2024-01-18 07:22:45 +00:00
Oguz Kazkayasi
7822e06904
Adds missing display names to Pagination Elements ( #2178 )
...
* fix: add missing pagination names
* chore: build registry
---------
Co-authored-by: shadcn <m@shadcn.com >
2024-01-18 11:08:25 +04:00
Takeshi Kriang
578d2c1823
fix(pagination): remove incorrect nested li from pagination link ( #2190 )
...
* feat: remove PaginationItem
* chore: build registry
---------
Co-authored-by: shadcn <m@shadcn.com >
2024-01-18 10:58:22 +04:00
shadcn
0374ba874d
feat(cli): add min-config support for Next.js ( #2454 )
...
* feat(cli): add zero-config support for Next.js
* chore: add changeset
* feat(cli): add preflight
2024-01-16 22:05:39 +04:00
Vulcan-Coder
0e721be8dd
Update models.ts ( #2374 )
...
Fixed the space at the start of the UUID
2024-01-14 11:27:26 +00:00
shadcn
7640ef7bbc
feat: add support for adding devDependencies in the cli ( #2419 )
...
* feat(cli): add support for install devDependencies
* chore: add changeset
2024-01-14 15:21:57 +04:00
김태강
8f3b28f50f
feat(components): add "use client" directive to carousel, resizable component ( #2319 )
...
[Reopen a PR that was accidentally closed.](https://github.com/shadcn-ui/ui/pull/2233 )
carousel, resizable components to be used by the app router, a "use client" directive is required.
2024-01-07 09:24:23 +00:00
vinay
73be841162
[Docs] Update CLI options while configuring components.json ( #2283 )
...
New Line added to the docs.
Just for the consistency.

2024-01-07 09:23:35 +00:00
Nuriman Quddus
ad32fdeb7d
fix: typo on carousel import ( #2216 )
...
# What's changed
- [x] Fixed the typo on carousel component
before fix: "@/registry/new-york/ui/carousel"
after fix: "@/components/ui/carousel"
this is ease the user to copy paste without error
2024-01-07 08:04:54 +00:00
Clarence
2dd7864007
fix: Github case correction ( #2268 )
2024-01-07 07:59:20 +00:00
Andrew Qiao
5d37bae1b8
fix(www): incorrect toggle aria labels and values ( #2163 )
...
- some `Toggle` and `ToggleGroup` demos had incorrect `aria-label` or `value` props
2024-01-07 07:49:26 +00:00
Chase
4b59cb812e
fix(docs): Resizable panel direction should be horizontal ( #2295 )
...
In the [resizable documentation](https://ui.shadcn.com/docs/components/resizable ) the handle example shows a horizontal handle but the code example has `direction="vertical"` when it should be `direction="horizontal"`
<img width="745" alt="Screenshot 2024-01-05 at 9 34 43 AM" src="https://github.com/shadcn-ui/ui/assets/7241069/68c21241-e0c7-41b1-81d7-579306149520 ">
2024-01-07 07:43:51 +00:00
Anshul Kanwar
4b200ebf59
docs: typo in drawer, dialog and sheet ( #2306 )
2024-01-07 07:26:21 +00:00
Tilak Thapa
33795426dd
Fix: Add e.preventDefault() to prevent page reload ( #2278 )
...
Fixes #2277
Add `e.preventDefault()` to prevent page reload in mail component

2024-01-07 07:17:47 +00:00
shadcn
be580dbf76
feat(cli): add support for custom ui dir ( #2266 )
...
* feat(cli): add support for custom ui dir
* docs(www): update docs for aliases.ui
* chore: add changeset
2024-01-02 22:32:15 +04:00
shadcn
98859e7b1c
feat(www): update keyboard handling for command menu ( #2264 )
2024-01-02 11:48:27 +04:00
kal07
6b523b60db
Update pagination.mdx ( #2191 )
...
fix the Nextjs import example
2023-12-26 14:23:04 +00:00
Ghribi Ouassim
e3d5377a3e
Added new label for mobile navigation ( #2182 )
...
- Update the `mobile-nav` component and added `new` label if `item.label` is present in the `docsConfig.sidebarNav`.

2023-12-26 14:17:40 +00:00
shadcn
f60945c252
fix: add tailwind.prefix to schema ( #2200 )
...
* fix: add tailwind.prefix to schema
* fix(www): format
2023-12-26 18:00:26 +04:00
Rishabh
5eb33f7830
docs(pagination): wrong import path of components in pagination usage ( #2180 )
...
This PR:
Fixes : #2150
2023-12-26 13:35:19 +00:00
Rishabh
f6fef4a2ed
docs(drawer): missing drawer footer import in drawer usage example ( #2169 )
...
This PR:
- Fixes: #2168
2023-12-24 05:47:02 +00:00
arshad
f6f64ce773
Update: Rename 'ResizableGroup' to 'ResizablePanelGroup' in Documentation ( #2166 )
...
### Overview
This pull request updates the documentation to reflect the correct component name, changing `ResizableGroup` to `ResizablePanelGroup`. This change ensures consistency and correctness in the documentation, aiding developers in correctly implementing the component.
### Changes Made
- In the code examples within the documentation, `ResizableGroup` has been renamed to `ResizablePanelGroup`.
- This change is applied to both horizontal and vertical orientation examples.
### Additional Information
- These changes are confined to documentation and do not alter the actual implementation or functionality of the components in question.
Please review the changes for accuracy and merge if appropriate. Thanks!
2023-12-24 05:40:05 +00:00
Nader Ferjani
7ce4414445
docs: typo in drawer ( #2164 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-12-24 09:35:26 +04:00
shadcn
319c7c55cc
fix(www): mail icon size ( #2173 )
2023-12-24 09:32:46 +04:00
shadcn
57d404b5d3
feat: new components ( #2144 )
2023-12-22 23:36:59 +04:00
ocavue
1cf5fad881
fix(toast): replace MAX_VALUE with MAX_SAFE_INTEGER ( #1982 )
...
This PR replaces the maximum id from `Number.MAX_VALUE` to `Number.MAX_SAFE_INTEGER` in `use-toast.ts`. Considering how JS stores numbers, it's unsafe to plus one if the number is larger than `Number.MAX_SAFE_INTEGER`. Here is an example:
```js
> let num
> num = Number.MAX_VALUE - 1
> num + 1 === num
true
> num = Number.MAX_SAFE_INTEGER - 1
> num + 1 === num
false
```
2023-11-21 12:13:44 +00:00
Js Park
6f3050248c
docs(www): update installation of Astro ( #1958 )
...
- The latest version of Astro generates `tailwind.config.mjs` file instead of `tailwind.config.cjs`.
- The `index.astro` file is located in `/src/pages`.
2023-11-19 07:24:12 +00:00
Gravy59
1903eb94a8
fix(www): typo in metric cards ( #1975 )
2023-11-19 11:16:27 +04:00
Danilo Britto
9f3ae7746f
docs(www): add indeterminate state checkboxes on all data table demos and code examples ( #1959 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-11-19 11:15:44 +04:00
Dimitri POSTOLOV
c579e9232c
add missing return Update page.tsx ( #1952 )
2023-11-17 00:20:36 +04:00
兰天游
08018ed623
feat: fix for column grouping ( #945 )
2023-11-12 19:12:40 +00:00
Max Wiseman
1db90baaf2
feat(toggle-group): add toggle-group component ( #1547 )
...
* feat: added toggle-group component
* fix(components): ran build:registry script
* fix(components): fixed colors in toggle-group
- Dark mode border color is now consistent with the toggle component
* fix(components): fixed component.json toggle-group
- Added the content field to `components.json` for toggle-group
- Ran build:registry again
* feat(toggle-group): simplify implementation
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-11-12 23:03:14 +04:00
shadcn
3dc6207e97
chore: build registry
2023-11-12 22:13:40 +04:00
Yahor Barkouski
5d2373fb7a
fix(www): update faker version, reduce int() deprecation ( #1832 )
...
* fix: update faker version, reduce int() deprecation
* chore: pnpm format:write
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-11-12 22:12:58 +04:00
Peeranat Danaidusadeekul
e67c0d4507
style(command): add import type for Command component ( #1490 )
...
* style: add import type for Command component
* style(code): format code
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-11-12 22:12:16 +04:00
Mubin Ansari
147206c168
Remove Redundant md:w-full class in DialogPrimitive.Content in dialog and alert-dialog ( #1640 )
...
closes #1639
2023-11-12 11:09:14 +00:00
Thomas Alberola
e6e9a6772b
Move className overwrite of AccordionContent to the children component ( #1670 )
...
In order to have a smooth opening of the accordion, moving the `AccordionContent` `className` overwrite to the children wrapper component allow Radix to calculate correctly the animation and execute a smooth animation in case of `className` on the `AccordionContent` component.
Possibly related to https://github.com/shadcn-ui/ui/issues/944
2023-11-12 10:56:52 +00:00
Chongyi Zheng
1ae9ffcf58
chore: upgrade @radix-ui/react-select to 2.0.0 ( #1688 )
2023-11-12 10:32:03 +00:00
shadcn
8fad64a854
feat(select): add scroll up and down button
2023-11-12 14:25:35 +04:00
shadcn
7527ff490a
Merge branch 'main' into main
2023-11-12 13:49:12 +04:00
Tanish Baansal
3a279a2766
refactor(calendar): updated css so date doesn't show up selected twice in DatePickerComponent ( #1852 )
...
React Day Picker also has a unique styling distinction that designates the `day_outside` dates as unselected, and the selection of `day_outside` only highlights the dates in the next month. This PR will fix this issue - https://github.com/shadcn-ui/ui/issues/1762 and help with a cleaner UX ✨
<br/>
| Old Date Range Picker | New Date Range Picker |
| ---------------------- | ---------------------- |
|  |  |
<br/>
#### React Day Picker
<img width="444" alt="image" src="https://github.com/shadcn-ui/ui/assets/7449806/aaeae160-b38c-4c16-bb2d-66898cf290d3 ">
2023-11-12 09:36:12 +00:00
Gravy59
51c8c3d798
fix( #1686 ): remove redundant children prop ( #1717 )
...
This pull request resolves #1686 .
## Rationale for this PR
This PR affects the code for `RadioGroupItem` in both styles by removing the `children` prop from the component. The children prop is automatically passed in by the use of the spread operator (`...props`) and is redundant because it is never used in the component.
This PR shouldn't affect tests, representation, etc. and is merely a cosmetic change. There is no urgent need to merge this.
2023-11-12 09:28:07 +00:00
Shubhdeep Chhabra
a2ed2883ac
fix(alert-dialog): removed unused children prop ( #1828 )
2023-11-12 11:46:21 +04:00
Greg
66c7f6d73b
fix(scroll-area): horizontal scroll bar not visible ( #1829 )
...
PRs #1515 and #1296 interfere with each other and cause the horizontal scroll bar to not be visible. This removes the conditional `flex-1`, however you could also remove `flex-col` to achieve the same result.
before:
https://github.com/shadcn-ui/ui/assets/9381099/6514de2e-e353-4d0b-bd24-aff79e0d5161
after:
https://github.com/shadcn-ui/ui/assets/9381099/3205baad-569b-4096-8dcd-9beb794de536
2023-11-12 07:36:35 +00:00
shadcn
6e399abdb4
fix(table): update style for table footer ( #1931 )
...
* fix(table): update table footer style
* chore: run registry
* style: fix docs
2023-11-12 11:20:18 +04:00
Martini
3c22784a98
docs(www): Fix typo ( #1853 )
2023-11-12 10:18:34 +04:00
Cole Cline
c82a6fab5f
docs(www): Missing import statement ( #1877 )
...
Added missing import statement in fonts example in Next.js installation docs
2023-11-12 10:17:56 +04:00
Innei
3fccfeb301
fix(switch): change width unit to rem ( #1891 )
...
Signed-off-by: Innei <i@innei.in >
Co-authored-by: shadcn <m@shadcn.com >
2023-11-12 10:17:07 +04:00