Bumsik Kim
cf0dadafce
fix(example): Prevent hydration error in music example ( #1569 )
...
<DisalogTrigger> should have asChild when a button used.
2023-10-21 12:58:30 +00:00
/raj
5877dcd21a
docs(www): bunx scripts run using bun instead of node ( #1590 )
...
* fix: using bun to initialize project works now
* style(www): format write
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-10-21 16:47:21 +04: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
Karan Janthe
5a13def46d
fix: updated error msg for jsconfig in cli ( #1696 )
...
* fix: updated error msg for jsconfig in cli
* chore: add changeset
* style(cli): format
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-10-21 16:35:55 +04:00
kevinmitch14
b8810caac7
fix: remove invalid collapsible prop ( #496 )
...
only available when type="single"
Co-authored-by: shadcn <m@shadcn.com >
2023-10-21 16:28:00 +04:00
Peeranat Danaidusadeekul
24ec36ee7b
docs: add missing tailwind config in Astro install ( #1264 )
...
* docs: add missing tailwind config in Astro install
* style: prettier format
---------
Co-authored-by: Peeranat Danaidusadeekul <ppeeranat.d@skooldio.com >
Co-authored-by: shadcn <m@shadcn.com >
2023-10-21 16:26:28 +04:00
onurhan
dd94aa936f
fix(docs): present useForm when copy form ( #1486 )
...
When I tried it after the attached issue, I realized;
For someone who's absolutely copying and pasting form the guide, this would give an error, as useForm is not imported in the guide. So I fixed that.
Related issue: https://github.com/shadcn-ui/ui/issues/1482
Fix #1482
2023-10-21 12:16:22 +00: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
Olle Månsson
648ddde3a2
Fix support rule in site-header.tsx ( #1628 )
...
Fixes https://github.com/shadcn-ui/ui/issues/1627 if that is desired.
2023-10-19 18:10:45 +00:00
Luka Hartwig
4ec8a67dab
Support tailwind.config.ts ( #1247 )
...
Fixes #659
Fixes #633
Create Next App is using `tailwind.config.ts` in the TypeScript template. Since this is a very common use case it would be nice to preserve the type safety of the file.
I added new templates for TypeScript files. I see there is an issue #1073 which asks for ESM support as well. This is not included in this PR.
I also fixed the type error in the keyframes that is also handled in #636
2023-10-19 17:44:11 +00:00
CamTheGoblin
9091dcdc1b
docs(install): Clarify & Match tsconfig Edits ( #1642 )
...
This is a small update to the installation instructions for some of the frameworks to make the instructions on editing the tsconfig file consistant across the frameworks, and remove some potentially confusing wording (if people read too fast...like me).
Mainly applying the gatsby tsconfig instructions to vite and astro, as it is the most clear.
Additionally changed the wording from:
```
Add the code below to the compilerOptions...
```
to:
```
Add the following code to the compilerOptions...
```
to avoid people easily misreading it as "add the code **below the** compilerOptions".
2023-10-19 17:27:01 +00: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
545423c93b
chore: add kodiak
2023-10-19 21:12:17 +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
Caíque de Castro Soares da Silva
46f247c47f
style(shadcn-ui): use space instead of tab on config fixture ( #1707 )
...
* style: use space instead of tab on config fixture
* style: fix identation on template script
* chore(shadcn-ui): add changeset
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-10-16 13:16:55 +04:00
Robert Soriano
4083876e80
docs: update Remix config to use ESM ( #1710 )
...
* docs(remix): replace postcss config sample to use export default
* docs(remix): replace tailwind config sample to use export default
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-10-16 12:56:08 +04:00
alex
0176754ff2
docs(www): add astro dark mode implementation ( #1755 )
...
* docs(www): add astro dark mode implementation
* docs(www): reduce redundancy in mode toggle
2023-10-16 12:37:25 +04: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
shadcn
43c4023ed8
chore: rebuild registry
2023-10-03 18:47:47 +04:00
github-actions[bot]
c765635e13
chore(release): version packages ( #1663 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
shadcn-ui@0.4.1
2023-10-03 18:39:32 +04:00
shadcn
95a9673b1e
minify cli ( #1662 )
...
* chore(shadcn-ui): minify build
* chore: add changeset
2023-10-03 18:20:58 +04: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
Rohan Godha
4f8d768e59
docs(www): add bun support for installation commands ( #1445 )
...
* feat(www): add bun support for commands
* chore: remove changeset
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-09-21 17:30:29 +04:00
Shoaib Ahmed
c0deeac0d0
fix(table): add relative class to handle overflow issue ( #1370 )
2023-09-19 19:17:38 +04:00
github-actions[bot]
897376329b
chore(release): version packages ( #1556 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
shadcn-ui@0.4.0
2023-09-19 17:14:39 +04:00
shadcn
d3d52fc687
docs(cli): update link to documentation ( #1555 )
...
* docs(cli): update link to documentation
* chore: add changeset
2023-09-19 16:52:45 +04:00
shadcn
4d0864a5c2
Merge branch 'main' of github.com:shadcn/ui
2023-09-19 16:36:06 +04:00
shadcn
e8f58932bd
chore: update repo for changeset
2023-09-19 16:35:50 +04:00
shadcn
2f0dbca221
feat(cli): do not ask for confirmation ( #1554 )
...
* feat(cli): do not confirm
* chore: add changeset
2023-09-19 16:25:57 +04:00
Paul Ebose
58d012e342
feat(cli): add overwrite confirmation for existing components ( #973 )
...
* feat(cli): add overwrite confirmation for existing components
* fix(cli): handle overwrite for multiple items
* chore: add changeset
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-09-19 15:57:19 +04:00
Shishir
963114e118
feat(cli): support adding all components via CLI ( #1033 )
...
* feat: support adding all components via CLI
`shadcn-ui add --all`
This was manually tested to work as expected.
* chore: run prettier
* fix(cli): rename to all
* chore: add changeset
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-09-19 07:37:35 +04:00
Ayhan
0a4286500e
fix(cli): handle ts file extension ( #1466 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-09-19 07:23:07 +04:00
Santi Dalmasso
ae845788f6
fix(cli): deduplicate classNames in applyColorMapping ( #1089 )
...
* fix(cli): deduplicate classNames in applyColorMapping
* refactor: simplify applyColorMapping return
* chore: add changeset
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-09-19 07:04:57 +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
Abderrahim Guerfi
b838ffe8cc
docs(www): add missing prop to ThemeProvider ( #1447 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-09-18 16:47:58 +04:00
Robert Soriano
7ce6c495bd
fix(www): rename DataTableFacetedFilter interface ( #1438 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-09-18 16:31:21 +04:00
MD
c9ca64d2b9
docs(www): update manual.mdx ( #1471 )
...
Fix file name
Co-authored-by: shadcn <m@shadcn.com >
2023-09-18 16:25:26 +04:00
Arjun Raj
4bb9e9de53
docs(www): update cli add options ( #1484 )
2023-09-18 16:23:47 +04:00
Nikhar Pandya
c21ecfb665
docs(www): update contrubuting.md and next.mdx ( #1343 )
...
* docs: Update CONTRIBUTING.md
added commit convention section to the contribution docs.
* docs: Update next.mdx for dark mode
---------
Co-authored-by: shadcn <m@shadcn.com >
2023-08-31 17:01:36 +04:00
sanka
613ec3583f
docs(www): update dark-mode for vite ( #1118 )
...
Co-authored-by: sanka <sanka.s@fidenz.com >
Co-authored-by: shadcn <m@shadcn.com >
2023-08-26 14:45:34 +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
rcrosbourne
c34193cd34
docs(www): add Laravel install docs ( #1279 )
...
Co-authored-by: shadcn <m@shadcn.com >
2023-08-24 20:01:29 +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