Commit Graph

395 Commits

Author SHA1 Message Date
shadcn d0eece06d4 fix: update registry (#5530) 2024-10-23 17:35:26 +04:00
DADDOU Mohamed El Amine 0d31293c7b docs: add missing installation step in the sidebar documentation (#5467) 2024-10-22 12:15:03 +04:00
Jacob Paris 3d1d19fc1b fix(sidebar): only apply text-sidebar-foreground to sidebar (#5491)
The text-sidebar-foreground class was applied to the SidebarProvider, which is designed to wrap the whole app, therefore making the whole app inherit its font color. This has been removed. The correct place for it is in the Sidebar component

Of the 3 possible return cases in the Sidebar component, 2 already applied the text-sidebar-foreground and I have added it to the third
2024-10-22 08:02:20 +00:00
BNaushad e5b56c84a9 docs(sidebar): fix typo in sidebar documentation (#5487) 2024-10-22 11:42:38 +04:00
shadcn 630afe836e fix: sidebar provider 2024-10-21 12:38:51 +04:00
Jakob Ortmann 52c12bc27a fix import in sidebar example (#5438) 2024-10-21 11:46:27 +04:00
JEM 182f2083cd docs(sidebar): Fix sidebar toggle text for consistent behavior (#5428) 2024-10-21 11:45:11 +04:00
Phaired 3febcdc523 docs: fix type in sidebar.mdx (#5452) 2024-10-21 11:43:35 +04:00
EdamAmex ced2513137 docs: fix prop name (#5460) 2024-10-21 11:43:08 +04:00
shadcn 3259fb7ca1 fix: overflow on icon 2024-10-19 01:28:07 +04:00
shadcn d8397d80a8 chore: rebuild registry 2024-10-18 23:25:49 +04:00
shadcn 06e74fce78 Merge branch 'shadcn/sidebar-tsx'
# Conflicts:
#	apps/www/public/r/styles/default/use-mobile.json
#	apps/www/public/r/styles/new-york/button.json
#	apps/www/public/r/styles/new-york/dropdown-menu.json
#	apps/www/public/r/styles/new-york/use-mobile.json
#	apps/www/registry/new-york/ui/button.tsx
#	apps/www/registry/new-york/ui/dropdown-menu.tsx
2024-10-18 23:14:27 +04:00
shadcn c9b69d0836 docs: remove beta 2024-10-18 22:22:25 +04:00
shadcn 539212c49e feat: add redirect 2024-10-18 15:29:28 +04:00
shadcn 123887c36c fix: blocks 2024-10-18 00:54:19 +04:00
shadcn 35c1ba57c2 feat: add login-01 to v0 2024-10-18 00:34:03 +04:00
shadcn b34516f471 fix: lint 2024-10-17 22:59:23 +04:00
shadcn 66b95402c1 feat: add v0 registry blocks 2024-10-17 22:58:20 +04:00
shadcn 5460177a7a fix: sidebar-07 2024-10-17 19:49:28 +04:00
shadcn b0049c2266 fix: data-name 2024-10-17 17:13:47 +04:00
shadcn 4e6e21f094 fix: dark mode blocks 2024-10-17 17:01:24 +04:00
shadcn 3b808c83be fix: lint 2024-10-17 16:33:34 +04:00
shadcn 0e6b37e99a feat: update preview for mobile 2024-10-17 16:28:09 +04:00
shadcn 9ec433838f fix: lint 2024-10-17 01:11:00 +04:00
shadcn 444ff70590 feat: add notice 2024-10-17 01:06:35 +04:00
shadcn 27bc5deff1 docs: beta testers 2024-10-17 00:55:28 +04:00
shadcn cacd7c8798 fix: use-mobile 2024-10-17 00:36:50 +04:00
shadcn f227f93742 fix: sidebar 2024-10-17 00:34:50 +04:00
shadcn 87e099a3d7 feat: update button and dropdown menu (#5408) 2024-10-17 00:21:03 +04:00
shadcn 303d65718c chore: registry updates 2024-10-16 23:58:44 +04:00
shadcn 909219df14 docs 2024-10-16 15:33:16 +04:00
shadcn e8ada4e3c7 docs 2024-10-16 14:33:43 +04:00
shadcn 8fc80836ff docs 2024-10-16 12:54:21 +04:00
shadcn d0a308cc64 fix: edit in v0 2024-10-16 11:12:58 +04:00
shadcn e461c02389 feat: update open in v0 2024-10-15 21:28:38 +04:00
shadcn 50c2f6045a chore: fix lint 2024-10-15 12:52:40 +04:00
shadcn 14aca65eee docs: add sidebar docs 2024-10-15 12:49:22 +04:00
shadcn 14c952b594 chore: update registry 2024-10-15 12:41:20 +04:00
shadcn 1e9434e6f9 chore: build registry 2024-10-15 12:38:45 +04:00
shadcn f3d14c48cb feat(www): update button and tooltip 2024-10-15 12:38:32 +04:00
shadcn c668c35bb9 feat(www): add sidebar components 2024-10-15 12:37:47 +04:00
shadcn 1297abc882 fix: v0 2024-10-07 21:13:33 +04:00
shadcn 36ebbf26dc docs(www): update figma 2024-09-29 14:52:52 +04:00
Artem Zakharchenko 7dfdb029e7 use "?url" suffix in "tailwind.css" import (Remix) (#4945)
Importing `tailwind.css` is incorrect as it will treat that file as a CSS Module, throwing that it has no `default` export. 

Instead, the tutorial relies on the import returning a _URL_ to the stylesheet. Adding `?url` to the import specifier is the way to go.
2024-09-26 12:42:49 +00:00
Hichem Fantar 52d223393a (fix Input) choose file text color in dark mode (#4843)
This pull request fixes the issue with the choose file text color in dark mode. The changes ensure that the text color is correctly displayed in dark mode.

the reason this bug doesn't happen in the shadcn website is because it sets `color-scheme:dark` on the document;

this fix makes sure this always works even if color scheme isn't set.

Closes #4842

![image](https://github.com/user-attachments/assets/37cb3f2a-c1a7-49b3-8ef1-77823dd7bd45)

![image](https://github.com/user-attachments/assets/92913fec-5651-4cfc-8e16-2f12c06c33b8)
2024-09-15 09:20:19 +00:00
Devansh Mahant a9ab7afebf Fix Incorrect Hook Import Path in Toast Component Example in ShadCN Docs (#4811)
#### Summary:
This pull request addresses a documentation error found in the ShadCN website's Toast component example. Specifically, the import route for the hook is incorrect in the example. and fixes [#4816](https://github.com/shadcn-ui/ui/issues/4816)

#### Issue:
Upon reviewing the [ShadCN Toast documentation](https://ui.shadcn.com/docs/components/toast), I found that the import path for the Toast component hook was wrongly mentioned as being located in the `components` folder. According to the `component.json` file, the correct location of the hook is within the `hooks` folder inside the main directory.

#### Fix:
- Corrected the import path in the Toast component example from `components` to `hooks`, as per the `component.json` file structure.

#### Example of Fix:
**Before:**
```js
import { useToast } from "@/components/use-toast";
```

**After:**
```js
import { useToast } from "@/hooks/use-toast";
```

#### Testing:
- Verified that the corrected path resolves correctly.
- Ensured the example works as expected after the change.

#### Impact:
This fix prevents confusion for users following the example and ensures that the import path accurately reflects the project structure, improving the overall developer experience.
2024-09-15 08:45:29 +00:00
Quinn Blenkinsop b6221ea524 fix(www): update broken link to headless ui (#3542)
The link appears to have broken at some point, I've updated it

Co-authored-by: shadcn <m@shadcn.com>
2024-09-15 12:31:28 +04:00
shadcn 64b2f1a5ad feat(shadcn): add experimental docs (#4820)
* feat(shadcn): add cli docs

* chore: add changeset

* fix: tests
2024-09-12 17:51:59 +04:00
shadcn 078dfe6607 docs(www): Open in v0 docs (#4734)
* feat(www): open in v0

* feat: update copy

* fix: sidebar link

* fix(tests): snapshots
2024-09-04 00:37:57 +04:00
xuxucode 77fc5ec8db Fix use-toast module path (#4728) 2024-09-03 18:37:11 +00:00