Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update Melt UI #360

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/proud-queens-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-ui": patch
---

Update Melt UI to [0.74.4](https://github.com/melt-ui/melt-ui/releases/tag/v0.74.4)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"type": "module",
"dependencies": {
"@internationalized/date": "^3.5.1",
"@melt-ui/svelte": "0.74.2",
"@melt-ui/svelte": "0.74.4",
"nanoid": "^5.0.5"
},
"peerDependencies": {
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 9 additions & 15 deletions src/components/demos/radio-group-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,28 @@
</script>

<RadioGroup.Root class="flex flex-col gap-4 text-sm font-medium">
<div
class="group flex cursor-pointer select-none items-center gap-3 text-foreground transition-all"
>
<div class="group flex select-none items-center text-foreground transition-all">
<RadioGroup.Item
id="amazing"
value="amazing"
class="size-5 shrink-0 rounded-full border border-border-input bg-background transition-all duration-100 ease-in-out hover:border-dark-40 data-[state=checked]:border-6 data-[state=checked]:border-foreground"
class="size-5 shrink-0 cursor-default rounded-full border border-border-input bg-background transition-all duration-100 ease-in-out hover:border-dark-40 data-[state=checked]:border-6 data-[state=checked]:border-foreground"
/>
<Label.Root for="amazing">Amazing</Label.Root>
<Label.Root for="amazing" class="pl-3">Amazing</Label.Root>
</div>
<div
class="group flex cursor-pointer select-none items-center gap-3 text-foreground transition-all"
>
<div class="group flex select-none items-center text-foreground transition-all">
<RadioGroup.Item
id="average"
value="average"
class="size-5 shrink-0 rounded-full border border-border-input bg-background transition-all duration-100 ease-in-out hover:border-dark-40 data-[state=checked]:border-6 data-[state=checked]:border-foreground"
class="size-5 shrink-0 cursor-default rounded-full border border-border-input bg-background transition-all duration-100 ease-in-out hover:border-dark-40 data-[state=checked]:border-6 data-[state=checked]:border-foreground"
/>
<Label.Root for="average">Average</Label.Root>
<Label.Root for="average" class="pl-3">Average</Label.Root>
</div>
<div
class="group flex cursor-pointer select-none items-center gap-3 text-foreground transition-all"
>
<div class="group flex select-none items-center text-foreground transition-all">
<RadioGroup.Item
id="terrible"
value="terrible"
class="size-5 shrink-0 rounded-full border border-border-input bg-background transition-all duration-100 ease-in-out hover:border-dark-40 data-[state=checked]:border-6 data-[state=checked]:border-foreground"
class="size-5 shrink-0 cursor-default rounded-full border border-border-input bg-background transition-all duration-100 ease-in-out hover:border-dark-40 data-[state=checked]:border-6 data-[state=checked]:border-foreground"
/>
<Label.Root for="terrible">Terrible</Label.Root>
<Label.Root for="terrible" class="pl-3">Terrible</Label.Root>
</div>
</RadioGroup.Root>
Loading