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
miquelvir
35f776d38c
Fix combobox examples using labels as value ( #1788 )
...
Fix #1785
2023-10-21 14:09:57 +00:00
Greg
e0782b328b
docs(scroll-area): add example for horizontal scroll area ( #1515 )
...
Adds documentation to the `<ScrollArea>` component for creating a scroll area with a horizontal scrollbar. There is also a commit to fix the improper sizing of a horizontal scroll bars.
Before:
https://github.com/shadcn-ui/ui/assets/9381099/a8b512f1-37f7-4107-a9fa-42a26e124696
After:
https://github.com/shadcn-ui/ui/assets/9381099/480f881c-b0fe-4b1b-9472-c533135e6769
2023-10-21 13:54:16 +00:00
Stefan Schulz
95be4835b1
fix(calendar): showOutsideDays=false ( #1731 )
...
showOutsideDays=false will shift the missing days of a month to the start of the row (cause of 'flex' in classnames: row), to fix it, we can use the same height and width in a cell as in a day
Co-authored-by: shadcn <m@shadcn.com >
2023-10-21 16:47:00 +04:00
IDRISSI HAMZA
44f35d55b0
fix(components): fix text wrapping issue in buttons ( #1548 )
...
## What does this PR do?
This pull request resolves an issue where the button text wraps onto the next line in specific screen sizes when the text contains two or more words. By applying the whitespace-nowrap utility class to the button element, the text now remains on a single line, even on screens with limited space. This enhancement ensures a consistent and visually pleasing user experience across various devices :
### Before (Get Started Button)

### After (Get Started Button)

This problem arises in other projects utilizing Shadcn, and this pull request addresses and resolves the issue, as demonstrated in the Cal.com project example:
### Before (Set Up Button)

### After (Set Up Button)

2023-10-21 12:09:10 +00:00
N8
958a0fdb18
docs: ✏️ Add defaultValues to input in form examples ( #1610 )
...
Fixes: https://github.com/shadcn-ui/ui/issues/1609
2023-10-21 11:57:26 +00:00
Lachlan Heywood
6b660033fb
fix(components): remove className from dialog portals ( #1606 )
...
Fixes #1595 , #1644
This PR changes the components that use the `DialogPortal` element to be aliases rather than components that pass a className prop.
The `DialogPortalProps` type from `@radix/react-dialog` recently had a patch update that probably should have been a minor or maybe a major update which is causing a few people to see the error `Property 'className' does not exist on type 'DialogPortalProps'`.
Since the `DialogPortal` component doesn't actually output any DOM elements, it never technically supported the `className` prop and the fact that it surfaced that prop was really a bug.
The `AlertDialog` and `Dialog` components were updated in #1603 , but the `Sheet` component still references `className` which is resolved in this PR.
2023-10-21 11:56:31 +00:00
iaingymware
dac5a0bd2c
Merge branch 'main' into main
2023-10-20 19:46:52 +01:00
Josiah Hawkins
33f89e9654
docs: remove unused imports ( #1661 )
...
- Remove unused import from Alert Default example
- Remove unused imports from Alert Destructive example
- Remove unused imports from Dropdown Menu Radio Group example
2023-10-19 17:20:34 +00:00
shadcn
82528a62a0
Merge branch 'main' into main
2023-10-18 21:37:12 +04:00
Deveesh Shetty
14abbd94b5
fix(www): removes redundant class-name from H2 component ( #1703 )
...
* chore: removes redundant class from typography-h2
* chore: remove class from new york style
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-10-18 21:33:24 +04:00
iaingymware
1be434bc64
Merge branch 'main' into main
2023-10-15 21:12:50 +01:00
shadcn
2a346ede51
feat(www): add custom close button example ( #1753 )
2023-10-15 16:28:57 +04:00
shadcn
82c56f9503
docs(www): add fonts docs ( #1752 )
2023-10-15 15:37:25 +04:00
Iain Wandless
ef9fa600a5
feat(select): scrollable with large datasets
...
update to default ui
2023-10-10 14:01:43 +01:00
Oguz Kazkayasi
617cdd0e77
docs(www): framework is changed to language at language search example ( #1646 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-10-03 17:38:10 +04:00
shadcn
1536b7824e
feat: export portal and overlay for alert-dialog, dialog and sheet ( #1660 )
2023-10-03 17:12:40 +04:00
Rohid
524e4b8b95
fix(alert-dialog): update portal component ( #1603 )
2023-10-03 17:02:31 +04:00
Diego Franchina
1f16cf4728
fix(scroll-area): added conditional flex-1 ( #1296 )
2023-09-25 15:29:05 +04:00
Shoaib Ahmed
c0deeac0d0
fix(table): add relative class to handle overflow issue ( #1370 )
2023-09-19 19:17:38 +04:00
oasisy
ccb2d695a7
fix(www): enable input editing in the dialog demo ( #1428 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-09-18 17:35:27 +04:00
Diego Franchina
170d3c087c
fix(scroll-area): missing key prop error ( #1295 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-08-25 07:24:04 +04:00
kevinmitch14
4b0fbe27fa
fix(www): don't allow empty chat messages ( #1137 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-08-25 06:51:19 +04:00
Deveesh Shetty
88fdc989e9
chore(www): remove unneccesary imports ( #1311 )
...
* chore: remove uneccesary imports
* chore: remove from new-york style
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-08-24 09:26:12 +04:00
Dani
33b77e2f31
fix(toast): toast add missing text color class ( #1162 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-08-17 15:27:23 +04:00
Alonso Ureña
9441130f05
fix(www): payment method :has selector not working on Firefox ( #1209 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-08-16 21:11:49 +04:00
shadcn
3c9f7ca0e2
feat: themes ( #1135 )
2023-08-07 22:39:16 +04:00
vinay
6a1354e52d
fix(examples): update keyboard shortcut for opening dialog on Windows ( #1004 )
2023-08-03 22:22:38 +04:00
Bernardo Ferrari
eaa91d43df
style(card): remove extra spacing ( #1082 )
2023-08-01 19:07:03 +04:00
Antsiferov Maxim
8cf0c7f3ba
fix(alert): padding on Firefox ( #1059 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-07-30 15:50:11 +04:00
Abdulelah
da7729644c
fix(combobox): search language by label in examples ( #989 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-07-30 15:33:18 +04:00