LiuJie
102b0b0c62
fix: calendar icon components' props not use. ( #5222 )
...
* fix: calendar icon components' props not use.
* fix: calendar icon components' props not use.
* style: revert the original className order
* fix: calendar icon components' props not use.
---------
Co-authored-by: shadcn <m@shadcn.com >
2024-12-14 15:16:52 +04:00
Ahad Rizvi
387756c4ab
Remove unused imports from shadcn chart ( #4391 )
...
* Remove unused imports from shadcn chart
* chore: rebuild registry
---------
Co-authored-by: shadcn <m@shadcn.com >
2024-12-14 15:03:01 +04:00
shadcn
05145e66d3
feat: refactor registry ( #6071 )
...
* feat(www): add login blocks
* chore(www): restructure for blocks
* chore: build registry
* chore: clean up chunks
* fix(www): chart categories
* feat(www): big registry refactor
* feat(www): update blocks
* feat: complex blocks
* fix: update schema
* feat: sync new-york and default
* fix: lint
* feat: move charts
* fix(www): code
* fix: src path
* chore: rebuild registry
* fix: screenshot
* fix: set new-york as default
2024-12-14 14:52:55 +04:00
Jens Astrup
a1bed464f3
chore(apps): Update lodash ( #4397 )
...
* chore(apps): Refactor usage of lodash.template to lodash to address security vulnerability
* chore(cli): Refactor usage of lodash.template to lodash to address security vulnerability
* deps: update lock
* chore: changesets
* style: fix format
* fix: import
* chore: build registry
---------
Co-authored-by: shadcn <m@shadcn.com >
2024-12-09 12:33:28 +04:00
JEM
4a0d4cfdb9
refactor(components): remove redundant empty interfaces from Input, Command, and Textarea components ( #5657 )
...
* refactor(components): remove redundant empty interfaces from Input, Command, and Textarea components
Simplified props handling by removing redundant empty interfaces (`InputProps`, `CommandDialogProps`, `TextareaProps`). Directly extended native HTML attributes/lib for each component, enhancing code clarity and maintainability. This refactor ensures compliance with ESLint rules and streamlines future modifications without altering component functionality.
* updated the registry
* rerun build:registry with updated command
* Refactor input and textarea components to use `React.ComponentProps`
* update registry
2024-11-08 20:26:01 +04:00
shadcn
8f0c26f22a
feat(www): code for blocks ( #5756 )
...
* feat: update blocks
* fix: scrollbars
* fix: code viewer
* test(shadcn): fix
2024-11-07 17:09:41 +04:00
shadcn
13c97acf9f
fix: font size
2024-11-06 17:16:21 +04:00
shadcn
2c2fe97eb9
feat: move new-york to lucide-react ( #5602 )
...
* feat: move new-york to lucide-react
* fix: mail open
* chore: update registry
* chore: add test:dev
* chore: add changeset
* feat: build an icon registry
* chore: add missing registry icons
* feat: add an icons debug page
* feat: add an icon migration
* chore(www): migrate all radix icons to lucide
* feat: update migration script
* chore: update changeset
* feat(shadcn): implement icons transformer
* fix: missing registry icons
* fix(shadcn): handling of missing icons
* feat: add support for multiple libraries
2024-11-06 00:00:41 +04:00
shadcn
9e35d229ae
feat: www updates ( #5688 )
...
* feat: www updates
* fix: lint
2024-11-03 14:35:04 +04:00
shadcn
961e0b62d7
fix: a11y for card and calendar
2024-11-03 13:27:10 +04:00
Felix Lu
debd51a854
refactor(sidebar): improve setOpen callback logic ( #5593 )
...
* refactor(sidebar): improve setOpen callback logic
- Simplify state handling
- Ensure consistent cookie setting
- Added ability for users to persist sidebar state via cookies
- Update sidebar.mdx doc with SSR persistence instructions
- Run pnpm registry:build to update component
* docs: updates
---------
Co-authored-by: shadcn <m@shadcn.com >
2024-10-30 17:09:09 +04:00
shadcn
f0cff7e0eb
fix: gaps in command and dropdown-menu ( #5570 )
...
* fix: gaps in command and dropdown-menu
* chore: update snapshots
2024-10-25 18:13:13 +04:00
shadcn
d0eece06d4
fix: update registry ( #5530 )
2024-10-23 17:35:26 +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
shadcn
630afe836e
fix: sidebar provider
2024-10-21 12:38:51 +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
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
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
0e6b37e99a
feat: update preview for mobile
2024-10-17 16:28:09 +04:00
shadcn
f227f93742
fix: sidebar
2024-10-17 00:34:50 +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
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
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
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


2024-09-15 09:20:19 +00: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
adrianhelvikspond
4e4118f3cf
Fix init command for default style - fixes #4722 ( #4724 )
...
* Fix init command for default style
The empty dependency string was tripping up package managers.
* fix(www): registry dependencies for default
---------
Co-authored-by: shadcn <m@shadcn.com >
2024-09-03 22:21:51 +04:00
shadcn
a62a155aac
(1/N) cli: framework support ( #4569 )
2024-08-31 01:54:48 +04:00
shadcn
dc8853c8df
chore: rebuild registry
2024-08-30 23:50:06 +04:00
Justin Nguyen
59a931055f
fix(command): disabled items and cmdk 1.0.0 ( #2945 )
...
* fix: fix breaking changes for Command component that comes with cmdk 1.0.0
* chore: build registry
* chore: moving paths for some examples
* chore: moving paths for some examples
* chore: use data instead of aria
* fix: update command and pin cmdk
* fix: model selector
* fix: command for new york
---------
Co-authored-by: shadcn <m@shadcn.com >
2024-08-05 15:28:14 +04:00
shadcn
6e2d83bf42
fix: pin react-day-picker ( #4387 )
2024-07-23 11:14:14 +04:00
shadcn
12539b3664
feat(www): tooltip examples ( #4309 )
...
* feat(www): more chart examples
* feat(www): add tooltip examples
* feat: add themes support on blocks page
* chore: build registry
* fix: colors on charts
* fix: styles
* fix: downgrade rehype-pretty-code
* chore: fix
* fix: frame
* fix: code
* feat: update charts nav
* fix: use client
* feat: update all charts
2024-07-17 19:22:38 +04:00
shadcn
210010f5ed
more chart examples ( #4304 )
...
* feat(www): more chart examples
* feat: add themes support on blocks page
* chore: build registry
* fix: colors on charts
* fix: styles
* fix: downgrade rehype-pretty-code
* chore: fix
* fix: frame
* fix: code
2024-07-17 18:58:40 +04:00
Leo Lin
58637a34d1
chore(www): update indentation in build script ( #4293 )
...
Co-authored-by: shadcn <m@shadcn.com >
2024-07-15 12:34:07 +04:00
shadcn
650b3b9bda
chore(www): switch to contentlayer2 ( #4292 )
...
* chore(www): switch to contentlayer2
* chore: rebuild registry
* fix: build
2024-07-15 12:18:58 +04:00
Ariel
f170784f78
bug fix: type error in chart.tsx ( #4230 )
...
# Current Issue
when running `next lint`, the typescript compiler fails on the chart component (closes #4229 )
`Type error: Type 'string[]' is not assignable to type 'string | TrustedHTML'.`
# Resolution
We can coerce the `string[]` into a valid type by `join`ing.
2024-07-11 13:14:44 +00:00
rds_agi
36a9c1bb71
Fixed all issues related Command component ( #4154 )
...
# Fix Command Component issues and update documentation
## Changes
- Resolve Command Component issues by wrapping `<CommandGroup />` inside `<CommandList>`
- Update deprecated docs in `combobox.mdx` to reflect latest `<Command />` component usage
### Code Changes
From:
```tsx
<Command>
...
<CommandGroup>
...
</CommandGroup>
</Command>
```
To:
```tsx
<Command>
...
<CommandList>
<CommandGroup>
...
</CommandGroup>
</CommandList>
</Command>
```
## Visual Comparison
Before & After comparison:
https://github.com/shadcn-ui/ui/assets/77154365/156b7180-54e6-45aa-8934-b4fb99e6160e
## Summary
By wrapping `<CommandGroup />` inside `<CommandList>{children}</CommandList>`, all issues related to the Command Component have been resolved.
2024-07-10 12:40:55 +00:00
liruifengv
949e6f65ef
fix type import in toggle-group.tsx ( #4234 )
...
## description
fix type import in toggle-group.tsx
2024-07-10 12:40:38 +00:00
Batuhan Tomo
248347a389
fix: Update ChartTooltipContent to handle "0" item value ( #4215 )
...
Fix #4214 : Update ChartTooltipContent to handle "0" item value
2024-07-10 12:08:25 +00:00
shadcn
f0093d6a41
feat: add chart colors to base colors ( #4228 )
...
* feat: add chart colors to base colors
* fix: format
2024-07-09 15:29:20 +04:00
shadcn
c1b955444d
fix: deps
2024-07-06 02:13:35 +04:00
shadcn
4ac9db98fe
Charts ( #4181 )
2024-07-06 02:06:40 +04:00
kevinmitch14
4aa8b02980
feat: bump cmdk + use data attributes for styling ( #2626 )
...
* feat: bump `cmdk` + use data attributes for styling
* refactor: bump again
* Merge remote-tracking branch 'upstream/main' into cmdk-bump-and-styles
* Revert "Merge remote-tracking branch 'upstream/main' into cmdk-bump-and-styles"
This reverts commit d74be6bb60 .
* chore: sync `pnpm-lock`
2024-06-03 12:12:37 +04:00