Skip to content

Commit 721a901

Browse files
committed
Merge branch 'main' of github.com:HubbeDev/shadcn-svelte into feat/tasks-example
* 'main' of github.com:HubbeDev/shadcn-svelte: (45 commits) fix required form select props (huntabyte#359) Add colorscheme (huntabyte#358) fix: form example typo (huntabyte#357) Update dependencies (huntabyte#356) Fix file input button text not visible in darkmode (huntabyte#353) Stop scroll to top while navigating between examples in doc. (huntabyte#355) try to fix lockfile (huntabyte#354) fix pnpm lockfile fix: check icon in checkbox is off-center (huntabyte#330) fx: add the special `<alpha-value>` placeholder (huntabyte#341) Footer no longer has a border (huntabyte#339) Use regular click event (huntabyte#328) Fix support rule (huntabyte#326) Fixes `build:registry` script (huntabyte#327) Fix disabled checkbox styles (huntabyte#307) fix toggle doc code snippets (huntabyte#316) fix: slate theme missing % character from ring color value (huntabyte#314) Docs: Change CardTitle -> Card.Title (huntabyte#303) chore: remove tailwindcssAnimate from docs (huntabyte#299) fixing the typo (huntabyte#296) ...
2 parents 229ac90 + 272e005 commit 721a901

File tree

143 files changed

+2976
-1279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+2976
-1279
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+38-34
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,41 @@ name: 🐛 Bug Report
33
description: Report an issue or bug
44
labels: ["type: bug"]
55
body:
6-
- type: textarea
7-
attributes:
8-
label: Current Behavior
9-
description: A description of what you're experiencing.
10-
validations:
11-
required: true
12-
- type: textarea
13-
attributes:
14-
label: Expected Behavior
15-
description: A description of what you're experiencing.
16-
validations:
17-
required: true
18-
- type: textarea
19-
attributes:
20-
label: Steps To Reproduce
21-
description: Describe how to reproduce the issue.
22-
placeholder: |
23-
1. Using this component...
24-
2. With these properties...
25-
3. Click '...'
26-
4. See error...
27-
validations:
28-
required: true
29-
- type: input
30-
id: reproduction
31-
attributes:
32-
label: Link to Reproduction / Stackblitz
33-
- type: textarea
34-
attributes:
35-
label: More Information
36-
description: |
37-
Provide relevant links or additionl information.
38-
validations:
39-
required: false
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Before submitting a bug report, ensure you're running the latest version of the dependencies (`bits-ui` & `formsnap`/`sveltekit-superforms` if you're using forms). If you have a question, please ask it in the [Discussions](https://github.com/huntabyte/shadcn-svelte/discussions) or [Discord](https://hbyt.us/discord), not here.
10+
- type: textarea
11+
attributes:
12+
label: Current Behavior
13+
description: A description of what you're experiencing.
14+
validations:
15+
required: true
16+
- type: textarea
17+
attributes:
18+
label: Expected Behavior
19+
description: A description of what you're experiencing.
20+
validations:
21+
required: true
22+
- type: textarea
23+
attributes:
24+
label: Steps To Reproduce
25+
description: Describe how to reproduce the issue.
26+
placeholder: |
27+
1. Using this component...
28+
2. With these properties...
29+
3. Click '...'
30+
4. See error...
31+
validations:
32+
required: true
33+
- type: input
34+
id: reproduction
35+
attributes:
36+
label: Link to Reproduction / Stackblitz
37+
- type: textarea
38+
attributes:
39+
label: More Information
40+
description: |
41+
Provide relevant links or additionl information.
42+
validations:
43+
required: false

CONTRIBUTING.md

+29-22
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,48 @@ We appreciate your interest in contributing. This guide will help you get starte
66

77
- [Contributing to shadcn-svelte](#contributing-to-shadcn-svelte)
88
- [Table of Contents](#table-of-contents)
9+
- [Ways to contribute](#ways-to-contribute)
10+
- [How to contribute](#how-to-contribute)
911
- [Questions](#questions)
10-
- [Contributing](#contributing)
11-
- [Submitting a Pull Request](#submitting-a-pull-request)
1212
- [License](#license)
1313

14-
## Questions
15-
16-
If you have questions about the project, please start a new discussion in the [Discussions](https://github.com/huntabyte/shadcn-svelte/discussions), or join the [Discord](https://discord.gg/SRbSSrvXug) and ask your question under the `shadcn-svelte` -> `shadcn-support` channel.
17-
18-
## Contributing
14+
## Ways to contribute
1915

2016
This project is open to contributions from the community.
2117

2218
We welcome contributions in the following areas:
2319

24-
- **Feedback**: We're always looking for feedback on the project. If you have any suggestions or ideas, please open an issue to discuss it.
25-
- **Support**: If you feel confident in your ability to help others with their questions, please join the [Discord](https://discord.gg/SRbSSrvXug) and help out in the `shadcn-svelte` -> `shadcn-support` channel.
26-
- **Feature enhancements**: If you have an idea for a new feature, please open an issue to discuss it before starting work on it to make sure it aligns with the project roadmap and you don't end up wasting your time.
27-
- **Documentation improvements**: See a typo or broken link? Or do you think the documentation could be improved in some other way? Please open an issue to discuss it before making any changes.
28-
- **Code optimizations**: If you see a way to improve the code, please open an issue to discuss it before making any changes.
20+
- **Feedback**: We're always looking for feedback on the project. If you have any suggestions, ideas, please open an issue to discuss it. One thing that should be noted is that this project is a port of `shadcn/ui`, meaning we won't be adding new components to this project unless they are added to `shadcn/ui` first.
21+
- **Support**: If you feel confident in your ability to help others with their questions, please join the [Discord](https://discord.gg/SRbSSrvXug) and help out in the `libs` -> `shadcn-support` channel, or answer questions asked in [Discussions](https://github.com/huntabyte/shadcn-svelte/discussions).
22+
- **Documentation improvements**: See a typo or broken link? Or do you think the documentation could be improved in some other way? If it's a typo/broken link, feel free to open a PR. If the change would involve more than a few line changes, please open an issue to discuss it first before spending time on it.
23+
- **Code optimizations**: If you see a way to improve the code, please open an issue to discuss it.
24+
25+
## How to contribute
2926

30-
## Submitting a Pull Request
27+
This project operates using a process that makes maintaining the project less stressful, while also preventing wasted time and effort on contributions that may not be merged into the project.
3128

32-
We use pull requests to propose changes to the project. The process generally goes like this:
29+
Here's what the process looks like:
3330

34-
1. A user opens an issue to discuss a new feature or to report a bug
35-
2. A maintainer reviews the issue and may label it as `status: needs owner`
36-
3. The issues author can volunteer to work on the issue, or someone else can
37-
4. A maintainer assigns the issue to whoeever volunteers to work on it
38-
5. The issue owner submits a pull request to address/resolve the issue
39-
6. A maintainer reviews the pull request and if no changes are needed, merges it into the main repository
31+
1. A user opens an issue to report a bug, request a new feature, or propose a change
32+
2. A maintainer reviews the issue and assigns it a status label
33+
1. `needs owner` - the issue is ready to be worked on, but no one has volunteered to work on it yet. If you would like to work on the issue, please leave a comment on the issue to let us know along with a brief description of how you plan to address the issue (if it's not already clear from the issue description).
34+
2. `accepted` - the issue has been assigned to someone and they are working on a solution for it.
35+
3. `duplicate` - the issue is a duplicate of another issue. The issue will be closed and a link to the original issue will be provided.
36+
4. `blocked` - the issue is blocked by another issue either within this project or another.
37+
5. `revisions needed` - the issue requires additional information or reproduction details before it will be considered for implementation/fix.
38+
6. `under review` - further discussion is needed before a decision can be made on how to proceed with the issue.
39+
3. The issue author can volunteer to work on the issue within the issue itself, or someone else can volunteer to work on it.
40+
4. A maintainer assigns the issue to whoever volunteers to work on it and becomes the "owner" of the issue.
41+
5. The issue owner submits a pull request to address/resolve the issue.
42+
6. A maintainer reviews the pull request and if no revisions are needed, adds the changesets (if required) and merges it into the main repository.
4043

41-
**Note:** Do not submit a pull request until a relevant issue has been opened and assigned to you, otherwise, you may end up wasting time on work that may not be merged into the project.
44+
**NOTE:** Do not submit a pull request for anything other than minor documentation/typo fixes without first opening an issue and having it assigned to you. We don't want you to waste time on something that may not be merged/accepted.
45+
46+
To volunteer to solve someone else's issue, please leave a comment on the issue to let us know that you'd like to work on it, along with a brief description of how you plan to address the issue (if it's not already clear from the issue description), and we'll assign the issue to you.
47+
48+
## Questions
4249

43-
To volunteer to solve someone else's issue, please leave a comment on the issue to let us know that you'd like to work on it, along with a brief description of how you plan to address the issue.
50+
If you're looking to contribute and have questions about the process or the codebase in general, feel free to ask in the [Discord](https://hbyt.us/discord) in the `libs`->`shadcn-chat` channel!
4451

4552
## License
4653

apps/www/.env.example

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PUBLIC_FATHOM_URL=""
2+
PUBLIC_FATHOM_ID=""

apps/www/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ node_modules
99
vite.config.js.timestamp-*
1010
vite.config.ts.timestamp-*
1111
.turbo
12-
.vercel
12+
.vercel

apps/www/__registry__/index.js

+84
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ export const Index = {
164164
component: () => import("../src/lib/registry/default/example/checkbox-disabled.svelte").then((m) => m.default),
165165
files: ["../src/lib/registry/default/example/checkbox-disabled.svelte"],
166166
},
167+
"checkbox-form-single": {
168+
name: "checkbox-form-single",
169+
type: "components:example",
170+
registryDependencies: ["form"],
171+
component: () => import("../src/lib/registry/default/example/checkbox-form-single.svelte").then((m) => m.default),
172+
files: ["../src/lib/registry/default/example/checkbox-form-single.svelte"],
173+
},
167174
"checkbox-with-text": {
168175
name: "checkbox-with-text",
169176
type: "components:example",
@@ -220,6 +227,13 @@ export const Index = {
220227
component: () => import("../src/lib/registry/default/example/dropdown-menu-radio-group.svelte").then((m) => m.default),
221228
files: ["../src/lib/registry/default/example/dropdown-menu-radio-group.svelte"],
222229
},
230+
"form-demo": {
231+
name: "form-demo",
232+
type: "components:example",
233+
registryDependencies: ["form"],
234+
component: () => import("../src/lib/registry/default/example/form-demo.svelte").then((m) => m.default),
235+
files: ["../src/lib/registry/default/example/form-demo.svelte"],
236+
},
223237
"hover-card-demo": {
224238
name: "hover-card-demo",
225239
type: "components:example",
@@ -304,13 +318,27 @@ export const Index = {
304318
component: () => import("../src/lib/registry/default/example/radio-group-demo.svelte").then((m) => m.default),
305319
files: ["../src/lib/registry/default/example/radio-group-demo.svelte"],
306320
},
321+
"radio-group-form": {
322+
name: "radio-group-form",
323+
type: "components:example",
324+
registryDependencies: ["form","label"],
325+
component: () => import("../src/lib/registry/default/example/radio-group-form.svelte").then((m) => m.default),
326+
files: ["../src/lib/registry/default/example/radio-group-form.svelte"],
327+
},
307328
"select-demo": {
308329
name: "select-demo",
309330
type: "components:example",
310331
registryDependencies: ["select"],
311332
component: () => import("../src/lib/registry/default/example/select-demo.svelte").then((m) => m.default),
312333
files: ["../src/lib/registry/default/example/select-demo.svelte"],
313334
},
335+
"select-form": {
336+
name: "select-form",
337+
type: "components:example",
338+
registryDependencies: ["form"],
339+
component: () => import("../src/lib/registry/default/example/select-form.svelte").then((m) => m.default),
340+
files: ["../src/lib/registry/default/example/select-form.svelte"],
341+
},
314342
"separator-demo": {
315343
name: "separator-demo",
316344
type: "components:example",
@@ -353,6 +381,13 @@ export const Index = {
353381
component: () => import("../src/lib/registry/default/example/switch-demo.svelte").then((m) => m.default),
354382
files: ["../src/lib/registry/default/example/switch-demo.svelte"],
355383
},
384+
"switch-form": {
385+
name: "switch-form",
386+
type: "components:example",
387+
registryDependencies: ["form"],
388+
component: () => import("../src/lib/registry/default/example/switch-form.svelte").then((m) => m.default),
389+
files: ["../src/lib/registry/default/example/switch-form.svelte"],
390+
},
356391
"table-demo": {
357392
name: "table-demo",
358393
type: "components:example",
@@ -381,6 +416,13 @@ export const Index = {
381416
component: () => import("../src/lib/registry/default/example/textarea-disabled.svelte").then((m) => m.default),
382417
files: ["../src/lib/registry/default/example/textarea-disabled.svelte"],
383418
},
419+
"textarea-form": {
420+
name: "textarea-form",
421+
type: "components:example",
422+
registryDependencies: ["form"],
423+
component: () => import("../src/lib/registry/default/example/textarea-form.svelte").then((m) => m.default),
424+
files: ["../src/lib/registry/default/example/textarea-form.svelte"],
425+
},
384426
"textarea-with-button": {
385427
name: "textarea-with-button",
386428
type: "components:example",
@@ -711,6 +753,13 @@ export const Index = {
711753
component: () => import("../src/lib/registry/new-york/example/checkbox-disabled.svelte").then((m) => m.default),
712754
files: ["../src/lib/registry/new-york/example/checkbox-disabled.svelte"],
713755
},
756+
"checkbox-form-single": {
757+
name: "checkbox-form-single",
758+
type: "components:example",
759+
registryDependencies: ["form"],
760+
component: () => import("../src/lib/registry/new-york/example/checkbox-form-single.svelte").then((m) => m.default),
761+
files: ["../src/lib/registry/new-york/example/checkbox-form-single.svelte"],
762+
},
714763
"checkbox-with-text": {
715764
name: "checkbox-with-text",
716765
type: "components:example",
@@ -767,6 +816,13 @@ export const Index = {
767816
component: () => import("../src/lib/registry/new-york/example/dropdown-menu-radio-group.svelte").then((m) => m.default),
768817
files: ["../src/lib/registry/new-york/example/dropdown-menu-radio-group.svelte"],
769818
},
819+
"form-demo": {
820+
name: "form-demo",
821+
type: "components:example",
822+
registryDependencies: ["form"],
823+
component: () => import("../src/lib/registry/new-york/example/form-demo.svelte").then((m) => m.default),
824+
files: ["../src/lib/registry/new-york/example/form-demo.svelte"],
825+
},
770826
"hover-card-demo": {
771827
name: "hover-card-demo",
772828
type: "components:example",
@@ -851,13 +907,27 @@ export const Index = {
851907
component: () => import("../src/lib/registry/new-york/example/radio-group-demo.svelte").then((m) => m.default),
852908
files: ["../src/lib/registry/new-york/example/radio-group-demo.svelte"],
853909
},
910+
"radio-group-form": {
911+
name: "radio-group-form",
912+
type: "components:example",
913+
registryDependencies: ["form","label"],
914+
component: () => import("../src/lib/registry/new-york/example/radio-group-form.svelte").then((m) => m.default),
915+
files: ["../src/lib/registry/new-york/example/radio-group-form.svelte"],
916+
},
854917
"select-demo": {
855918
name: "select-demo",
856919
type: "components:example",
857920
registryDependencies: ["select"],
858921
component: () => import("../src/lib/registry/new-york/example/select-demo.svelte").then((m) => m.default),
859922
files: ["../src/lib/registry/new-york/example/select-demo.svelte"],
860923
},
924+
"select-form": {
925+
name: "select-form",
926+
type: "components:example",
927+
registryDependencies: ["form"],
928+
component: () => import("../src/lib/registry/new-york/example/select-form.svelte").then((m) => m.default),
929+
files: ["../src/lib/registry/new-york/example/select-form.svelte"],
930+
},
861931
"separator-demo": {
862932
name: "separator-demo",
863933
type: "components:example",
@@ -900,6 +970,13 @@ export const Index = {
900970
component: () => import("../src/lib/registry/new-york/example/switch-demo.svelte").then((m) => m.default),
901971
files: ["../src/lib/registry/new-york/example/switch-demo.svelte"],
902972
},
973+
"switch-form": {
974+
name: "switch-form",
975+
type: "components:example",
976+
registryDependencies: ["form"],
977+
component: () => import("../src/lib/registry/new-york/example/switch-form.svelte").then((m) => m.default),
978+
files: ["../src/lib/registry/new-york/example/switch-form.svelte"],
979+
},
903980
"table-demo": {
904981
name: "table-demo",
905982
type: "components:example",
@@ -928,6 +1005,13 @@ export const Index = {
9281005
component: () => import("../src/lib/registry/new-york/example/textarea-disabled.svelte").then((m) => m.default),
9291006
files: ["../src/lib/registry/new-york/example/textarea-disabled.svelte"],
9301007
},
1008+
"textarea-form": {
1009+
name: "textarea-form",
1010+
type: "components:example",
1011+
registryDependencies: ["form"],
1012+
component: () => import("../src/lib/registry/new-york/example/textarea-form.svelte").then((m) => m.default),
1013+
files: ["../src/lib/registry/new-york/example/textarea-form.svelte"],
1014+
},
9311015
"textarea-with-button": {
9321016
name: "textarea-with-button",
9331017
type: "components:example",

0 commit comments

Comments
 (0)