shadcn
93cb808f3a
chore: debug edit
2024-04-21 00:50:59 +04:00
Luca Félix
9aaaf429d9
fix: 🐛 lift mode duplicate ids lead to incorrect behavior ( #3433 )
...
## Bug:
When clicking on the "Lift Mode" Text instead of the toggle itself, since there were multiple `lift-mode` ids before (one for each block), the incorrect toggle would be activated.
https://github.com/shadcn-ui/ui/assets/61006057/261ec82f-9274-4e0a-ac21-5e3aa3ceece3
## Fix:
Instead of the id being static I changes the `id`, as well as the `htmlFor` attributes to `lift-mode-${block.name}`. This prevents duplicate ids, as long as there are no two blocks with the same name.
2024-04-18 06:14:13 +00:00
shadcn
afc553d8f8
fix: edit components
2024-04-17 23:05:45 +04:00
shadcn
11c31af94f
feat(www): add description and edit in v0 to examples ( #3518 )
...
* feat(www): add description and edit in v0 to examples
* fix: missing icon
2024-04-17 22:14:40 +04:00
shadcn
bebc2843f0
fix(www): remove unused chunk
2024-04-09 21:10:49 +04:00
Aakash
bf0c8b596b
fix(blocks): replace code with @/components/ui imports while copying from lift-mode ( #3401 )
...
FIXES : https://x.com/jimmeyer/status/1776487418150981661?s=46
The copy button in lift mode was copying code having imports as "@/registry/.../*.tsx"
This PR replaces all the imports by "@/components/ui/*.tsx"
2024-04-08 17:25:46 +00:00
shadcn
7590fb7636
feat: lift mode ( #3380 )
...
* feat(www): wip break everything
* feat(www): wip chunks
* feat(www): wip chunk mode
* feat: lift mode
* feat: update chunks
* fix: resize in lift mode
* fix: hasLiftMode
* fix: types
* fix: toolbar
Thanks @mrnbpt
* chore: format check
* feat: add tracking for enable_lift_mode
* chore: format write
* docs: add changelog
2024-04-05 21:28:05 +04:00
shadcn
f47bb973be
feat: e-commerce dashboard blocks ( #3236 )
...
* feat(blocks): add e-commerce dashboard
* feat(blocks): add products pages
* style(blocks): run prettier
* feat(www): update dashboard-05
* feat(www): update gap for dashboard-05
* feat(www): update dashboards
* fix(www): review a11y for new blocks
* fix(blocks): a11y for dashboard-07
* fix(www): blocks background
* chore: update registry
2024-03-29 00:14:32 +04:00
shadcn
9813c59886
fix(www): update url for request a block
2024-03-26 09:34:05 +04:00
shadcn
eda92749e9
chore: convert issue_template to discussion_template ( #3156 )
2024-03-26 09:15:35 +04:00
Zero
1da3e740e4
fix(dashboard-3): align aside and header borders in default style ( #3137 )
2024-03-26 08:46:03 +04:00
Yan Lyra
5c50a32e8f
chore(vaul): upgrade vaul version to a more recent ( #3134 )
...
It also fix #3093
2024-03-25 12:26:39 +00:00
shadcn
7c3da3e348
fix: display of txt code block ( #3149 )
2024-03-25 16:16:40 +04:00
keremcs
d4872067a6
fix: authentication-03 block misalignment ( #3101 )
...
* Update authentication-03.tsx
* new york
2024-03-25 08:22:03 +04:00
Ishaan Dey
37c726e60e
fix: dashboard-02 block (shadcn-ui#3098) ( #3099 )
2024-03-23 15:01:04 +04:00
shadcn
79c054ac7a
feat: blocks ( #3094 )
2024-03-22 21:39:33 +04:00
Dominik Ferber
3a4c3b2f7d
fix nextjs docs ( #3075 )
2024-03-21 13:38:21 +04:00
shadcn
f199dd3bbf
feat: switch input-otp to composition ( #3052 )
...
* feat: switch input-otp to composition
* feat: add disabled
2024-03-19 10:25:06 +04:00
Luca Félix
5ec881d176
fix: 🐛 breadcrumb file paths code preview ( #2946 )
...
Co-authored-by: shadcn <m@shadcn.com >
2024-03-13 08:38:17 +04:00
kevinmitch14
3f76d5fdc2
fix: use ?? instead of || ( #2941 )
...
Co-authored-by: shadcn <m@shadcn.com >
2024-03-11 19:42:27 +04:00
shadcn
1f0a7008d6
docs(www): update chancelog
2024-03-08 06:04:57 +04:00
shadcn
c04f1cac2d
docs: update changelog ( #2937 )
...
* docs(www): changelog
* docs(www): update changelog
2024-03-07 23:56:37 +04:00
shadcn
e8856d1dea
feat: add input-otp ( #2919 )
...
* feat: add input-otp
* feat: update input-otp and add examples
* feat(input-otp): add controlled and form examples
* chore(input-otp): update to latest
* docs(www): fix example code for input-otp
* fix(www): disable menu
2024-03-07 22:57:33 +04:00
its-monotype
7f0af435e1
feat(breadcrumb): add breadcrumb component ( #133 )
...
* feat(breadcrumb): add breadcrumb component
* refactor(breadcrumb): improve variable name and simplify object key passing
* refactor(breadcrumb): remove unnecessary color transition
* chore(breadcrumb): wip
* chore: build registry
* feat: update breadcrumb component
* fix(breadcrumb): update code highlight
* chore(www): remove menu
---------
Co-authored-by: shadcn <m@shadcn.com >
2024-03-07 22:42:39 +04:00
Gram Liu
59412bbb08
fix(components): Add "use client" directive to Toast ( #2048 )
...
Resolves #2025
This adds the "use client" directive to the Toast component, since it makes use of client-only features like `useState`. When absent, this causes errors in rendering as described in the issue.
2024-03-03 11:33:30 +00:00
alpaca
2de7bbf32e
docs(next-installation): Fixed type error in Next.js installation by removing export from fontSans ( #2673 )
...
This PR fixes the issue [#2337 ](https://github.com/shadcn-ui/ui/issues/2377 ).
I removed `export` of `fontSans` from `app/layout.tsx`, which was causing a type error.
I have ensured that this modification does not impact other functionalities. Your feedback on this pull request would be greatly appreciated.
Thank you for your consideration.
2024-03-03 11:03:04 +00:00
Șener Ali
f859d4857e
feat(components): skeleton example ( #2036 )
...
Co-authored-by: Sener <sener@MacBook-Pro-3.local >
2024-01-28 13:23:06 +04:00
Gravy59
f3ff4a4fc3
fix(build): replace ts-node with tsx to resolve issues with modules ( #1977 )
...
This pull request resolves #1926 and prevents issues like it from happening in the future
## Rationale for this PR
This PR changes the TypeScript execution package for use in scripts like `build:registry` from `ts-node` to `tsx`. This is because `ts-node` has many difficult quirks to work through (and is slow). In addition, it also has a difficult to understand error for newcomers that *is* reproducible.
### The ts-node error
As shown in #1926 , using `ts-node` (specifically in `build:registry`) results in this error: `Unknown file extension ".ts" for /ui/apps/www/scripts/build-registry.ts`. There are many issues in the `ts-node` repository documenting this problem:
* TypeStrong/ts-node/issues/1062
* TypeStrong/ts-node/issues/2033
* TypeStrong/ts-node/issues/1997
Switching the typescript-in-node system to `tsx`, which uses esbuild under the hood, resolves this error.
This PR shouldn't affect tests, representation, etc. and is merely a change of build tools. There is no urgent need to merge this.
I accidentally deleted the head repository on #1937 . That will not happen again.
2024-01-28 09:18:18 +00:00
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