Azhar Zaman
f2e33415c6
fix(www): combobox examples error ( #4503 )
...
* bug-fix: added command-list component to eliminate error
Wrap CommandEmpty and CommandGroup inside CommandList
Eliminated Error: TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
* fix(www): command examples
---------
Co-authored-by: shadcn <m@shadcn.com >
2024-08-06 01:42:26 +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
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
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
4ac9db98fe
Charts ( #4181 )
2024-07-06 02:06:40 +04:00
shadcn
06cc0cdf3d
fix(www): combobox
2024-06-03 21:22:36 +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
Ricardo Raposo
13d9693808
fix: quick fix to data attribute at CommandPrimitive.Item that was applying a disabled state style all the time ( #3680 )
...
Data attributes at <CommandPrimite.List /> component should be written as data-[disabled=true] in order to avoid styles being applied to element, even when it's not disabled.
2024-05-13 05:01:29 +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
Zero
1da3e740e4
fix(dashboard-3): align aside and header borders in default style ( #3137 )
2024-03-26 08:46:03 +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
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
kevinmitch14
3f76d5fdc2
fix: use ?? instead of || ( #2941 )
...
Co-authored-by: shadcn <m@shadcn.com >
2024-03-11 19:42:27 +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
Ș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
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
김태강
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
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
Anshul Kanwar
4b200ebf59
docs: typo in drawer, dialog and sheet ( #2306 )
2024-01-07 07:26:21 +00: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
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
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
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
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
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
iaingymware
ef73e591c8
Merge branch 'main' into main
2023-10-24 19:50:21 +01:00
miquelvir
c6917799ce
docs(card): remove unused line #1652 ( #1798 )
...
Fixes #1652
2023-10-24 12:27:21 +00:00
iaingymware
b4efc8aa4d
Merge branch 'main' into main
2023-10-24 12:15:43 +01:00