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

next: Svelte 5 #1182

Draft
wants to merge 168 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
0a18762
next init
huntabyte Jul 12, 2024
e566ff9
my hand hurts
huntabyte Jul 13, 2024
75e5cb2
my hand really hurts
huntabyte Jul 13, 2024
8c7921a
more
huntabyte Jul 13, 2024
06b8950
my hand really hurts now...
huntabyte Jul 14, 2024
9f5ff59
commit
huntabyte Jul 15, 2024
6b66943
another
huntabyte Jul 15, 2024
8c4ddd0
size
huntabyte Jul 15, 2024
8b7d2b8
size-5
huntabyte Jul 15, 2024
b9febd5
size-6
huntabyte Jul 15, 2024
96bced2
size-7
huntabyte Jul 15, 2024
f0d440d
size-8
huntabyte Jul 15, 2024
fd69c7c
size-9
huntabyte Jul 15, 2024
55d59e9
size-10
huntabyte Jul 15, 2024
f678823
size-12
huntabyte Jul 15, 2024
cf1f12b
size-2.5
huntabyte Jul 15, 2024
98eb3a9
more progress
huntabyte Jul 15, 2024
8744340
size 3
huntabyte Jul 15, 2024
9bfe518
stuff
huntabyte Jul 15, 2024
d470d6d
more svelte 5 work
huntabyte Jul 15, 2024
4e85727
more stuff
huntabyte Jul 15, 2024
12131b6
urg type narrowing
huntabyte Jul 15, 2024
3638067
docs build with local bits
huntabyte Jul 17, 2024
465b13e
more
huntabyte Jul 17, 2024
ec2db92
data tables
huntabyte Jul 17, 2024
cb58f1f
more work
huntabyte Jul 17, 2024
4539d7c
tailwind animate
huntabyte Jul 17, 2024
b992047
transitions
huntabyte Jul 18, 2024
03ab2ef
work
huntabyte Jul 22, 2024
bf1a53e
add tooltip provider
huntabyte Jul 22, 2024
ca868b7
add tooltip provider
huntabyte Jul 22, 2024
85aebe9
fix action
huntabyte Jul 22, 2024
85d6bbc
maybe we try again
huntabyte Jul 22, 2024
54d6245
pls
huntabyte Jul 22, 2024
464442e
Merge branch 'main' into next
huntabyte Jul 22, 2024
0746e01
work
huntabyte Jul 23, 2024
eb27964
more next
huntabyte Jul 28, 2024
e1effd4
update paneforge
huntabyte Jul 31, 2024
5734ebc
drawer
huntabyte Aug 6, 2024
3497b07
fix chunk transformer
AdrianGonz97 Aug 9, 2024
2f22469
next: Updates (#1284)
huntabyte Sep 25, 2024
267389f
Merge branch 'main' into next
huntabyte Sep 25, 2024
93a80d8
next: Fix toggle `$bindable` (#1286)
huntabyte Sep 25, 2024
8e2a8e4
next: resolve all `svelte-check` issues (#1288)
huntabyte Sep 26, 2024
bacd61c
fix: Next Button Component with href (#1294)
reesebre82 Oct 3, 2024
ef2705e
next: update formsnap and bits (#1303)
huntabyte Oct 6, 2024
1eea35d
Merge branch 'main' into next
huntabyte Oct 6, 2024
221a9fe
registry stuff
huntabyte Oct 6, 2024
1dbc70e
formatting
huntabyte Oct 6, 2024
88c1e48
next: fix circular deps (#1305)
huntabyte Oct 7, 2024
2893f33
next: update vaul to `@next` (#1309)
huntabyte Oct 9, 2024
2a36dde
patch: correct calendar direction buttons (#1310)
shyakadavis Oct 11, 2024
2ce7923
next: Tanstack Table (#1318)
huntabyte Oct 14, 2024
58f288e
next: docs work (#1322)
huntabyte Oct 14, 2024
68feb42
doc styles (#1323)
huntabyte Oct 20, 2024
2c4fb1a
next: Sidebars (#1337)
huntabyte Oct 24, 2024
cc22608
Merge branch 'main' into next
huntabyte Oct 24, 2024
e78c887
next: remove playgrounds (#1345)
huntabyte Oct 25, 2024
a148777
next: Upgrade `package-manager-detector` to v0.2.2 (#1319)
ieedan Oct 25, 2024
9ff1dfe
next: fix mail account selector width (#1346)
huntabyte Oct 25, 2024
493a49d
next: replace `latest` with `next` (#1347)
huntabyte Oct 25, 2024
a4ce4fa
fix: select scroll up button (#1350)
huntabyte Oct 25, 2024
5d57bad
next: improve overwrite to include block comps & simplify pages (#1351)
huntabyte Oct 26, 2024
2cc7bc5
next(chore): update `.gitignore` (#1352)
huntabyte Oct 26, 2024
999c63b
next: CLI tweaks (#1355)
AdrianGonz97 Oct 26, 2024
ea535b6
next: update docs to `[email protected]` (#1356)
huntabyte Oct 26, 2024
b4db980
next: enter prerelease mode (#1357)
huntabyte Oct 27, 2024
09a8475
next: fix sheet/update vaul-svelte (#1360)
huntabyte Oct 27, 2024
b479077
next: initial `@next` release (#1361)
huntabyte Oct 27, 2024
f278123
chore(release): version package (next) (#1362)
github-actions[bot] Oct 27, 2024
633d883
next: select default demo (#1363)
huntabyte Oct 27, 2024
abc1aca
next: Fix various elements to use Svelte types vs internal (#1366)
huntabyte Oct 27, 2024
e1886e4
fix: properly strip types for JS registry (#1371)
AdrianGonz97 Oct 27, 2024
b4f2a80
merge into main
huntabyte Oct 27, 2024
ee4734e
fix: date range picker (#1374)
huntabyte Oct 27, 2024
385b243
next: Input OTP component (#1375)
huntabyte Oct 27, 2024
9c192a0
fix: mobile blocks (#1377)
huntabyte Oct 28, 2024
969ee4d
docs: fix select labels (#1380)
shyakadavis Oct 28, 2024
8732f3e
next: update bits (#1381)
huntabyte Oct 28, 2024
374cd33
docs: fix calendar with selects demo (#1384)
huntabyte Oct 28, 2024
18b18f9
next: fix scroll area (#1387)
huntabyte Oct 28, 2024
6e76ed9
docs: update import path for AppSidebar component (#1396)
shyakadavis Oct 29, 2024
64ecdad
docs: consistent component import examples (#1391)
shyakadavis Oct 29, 2024
99e1438
docs: fix tailwind typo (#1397)
pwnedshell Oct 29, 2024
099be76
docs: Remove Select.Value in Select component (#1400)
shyakadavis Oct 30, 2024
9c88dd0
fix: update tabindex attributes to use numbers (#1402)
shyakadavis Oct 30, 2024
b15bd8e
docs: update DatePicker/Popover usage example (#1403)
shyakadavis Oct 30, 2024
37e3cf3
resolve merge conflicts
huntabyte Oct 30, 2024
f3245bb
next: tidy up docs (#1404)
huntabyte Oct 30, 2024
75c23a5
docs: highlight correct line in Sonner example (#1405)
shyakadavis Oct 30, 2024
c832188
docs: remove unused imports & correct attribute casing (#1409)
shyakadavis Oct 31, 2024
d947b82
docs: checkbox values missing on multiple checkbox for forms (#1410)
lapppius Oct 31, 2024
8477b4b
docs: fix typo in sidebar.md (#1412)
abteilung Oct 31, 2024
25747d0
fix: wrong icon import for `ScrollDownButton` in `Select` (#1414)
nchaikh Nov 1, 2024
cb7d618
fix: range calendar button (#1416)
huntabyte Nov 1, 2024
6e720aa
patch: animate tooltips (#1417)
shyakadavis Nov 1, 2024
c6c25b1
docs: fix card select showing [object object] (#1425)
JanTrichter Nov 1, 2024
a6b5d3c
Merge branch 'main' into next
huntabyte Nov 1, 2024
40d2c80
next: docs cleanup (#1429)
huntabyte Nov 2, 2024
802a328
docs: data table source link (#1439)
huntabyte Nov 4, 2024
e06303c
fix(next): Fix `<Table.Footer>` foreground color (#1449)
ieedan Nov 6, 2024
237d4c3
fix(next): Hardcoded pixel values on `<Switch/>` (#1447)
ieedan Nov 6, 2024
e29f8f5
fix(next): Update command doesn't update component code (#1421)
ieedan Nov 7, 2024
0d8f9fc
chore(release): version package (next) (#1463)
github-actions[bot] Nov 7, 2024
fd144a2
docs(next): Migration instruction (#1446)
ieedan Nov 8, 2024
638bb23
chore(next): bump bits-ui (#1465)
ieedan Nov 9, 2024
ef9b3a5
docs: Typo in next data table docs (#1467)
ddxv Nov 9, 2024
d856a12
next(breaking): update bits & adjust checkbox `indeterminate` (#1470)
huntabyte Nov 9, 2024
fb7c683
fix(next): add newline to end of components.json (#1479)
kaechele Nov 12, 2024
3689d50
chore(release): version package (next) (#1480)
github-actions[bot] Nov 12, 2024
fa0fbf4
next(breaking): replace radix icons with lucide (#1472)
huntabyte Nov 13, 2024
11d0ff3
fix(next): resolve command for sveltekit sync as `execute-local` (#1487)
ieedan Nov 15, 2024
378b615
chore(release): version package (next) (#1492)
github-actions[bot] Nov 15, 2024
a817cfb
fix(next): ensure registry:ui components don't depend on themselves (…
ieedan Nov 15, 2024
65b8769
fix(next): Mirror Card title size to shadcn-ui (#1488)
ieedan Nov 15, 2024
03c4e3d
docs: Fixed accordion variable names in migration guide (#1494)
TheOnlyTails Nov 16, 2024
103f7d5
docs(next): Refactor `PM` comps to use package-manager-detector (#1491)
ieedan Nov 18, 2024
f8e2343
merge main into next
huntabyte Nov 18, 2024
9d35389
feat (next): Add ability disable portal for portalled components (#1482)
saturnonearth Nov 20, 2024
22a3a81
docs: fix command in block toolbar (#1509)
huntabyte Nov 20, 2024
f932494
fix(next): normalize `ui` and `hooks` path aliases (#1516)
AdrianGonz97 Nov 22, 2024
8b0c6d2
chore(release): version package (next) (#1517)
github-actions[bot] Nov 23, 2024
0ec81e1
docs: Remove outdated card docs (#1543)
ieedan Dec 10, 2024
8ec120d
fix: Errors when importing Radio Group (#1546)
AlexDev404 Dec 11, 2024
426f549
fix: Update text sizes in inputs for improved Safari support (#1550)
ieedan Dec 12, 2024
d8098c5
merge main
huntabyte Dec 12, 2024
e769f9b
fix(next): parse `<script module>` tags for imports (#1551)
ieedan Dec 13, 2024
727fd11
Merge branch 'main' into next
huntabyte Dec 13, 2024
8a31449
next: use `formsnap@latest` (#1554)
huntabyte Dec 13, 2024
0a3a9fc
fix combo-box margin (#1566)
ieedan Dec 19, 2024
1ef2cb1
chore:(docs-migration-svelte-5) replaced \\ with / (#1567)
diamondalltheway Dec 19, 2024
22aa978
chore(next): runed `MediaQuery` -> svelte `MediaQuery` (#1569)
ieedan Dec 20, 2024
1dfa7cd
Merge branch 'main' into next
huntabyte Dec 20, 2024
1fc31d7
fix(next): misplaced `className` in `cn` functions (#1585)
ieedan Dec 28, 2024
f06d2a1
breaking: update bits slider for `single` and `multiple` types (#1588)
huntabyte Dec 31, 2024
aed255b
docs: update data-table example code (#1591)
rxliuli Jan 2, 2025
c1a9f81
next: remove controlled* props in favor of Function Bindings (#1595)
huntabyte Jan 3, 2025
db4f160
docs: update form component example code for Svelte 5 props rune synt…
bigjangmon Jan 8, 2025
8deb4d0
docs: update installation for vite (#1606)
rxliuli Jan 8, 2025
aa0a647
docs(next): Fix input-otp usage example + update migration docs with …
ieedan Jan 11, 2025
401b857
merge
huntabyte Jan 11, 2025
cfedcff
fix: use `add` instead of `install` (#1617)
ieedan Jan 12, 2025
8acd473
fix: add svg css to command-link-item (#1618)
witer33 Jan 12, 2025
ee58aa3
docs: fix form docs (#1632)
ieedan Jan 18, 2025
6659ad9
feat(next): update `IsMobile` to use Svelte's `MediaQuery` class (#1616)
Wombosvideo Jan 19, 2025
3dc8f14
docs: fixed imports and removed useless css (#1633)
witer33 Jan 19, 2025
fcc1530
docs: update install command (#1664)
rxliuli Feb 4, 2025
4136a6b
docs: pin `sv` version until official tailwind v4 support (#1672)
ieedan Feb 8, 2025
42d56ff
fix: removed duplicate avatar on themes page (#1676)
oliverrr123 Feb 12, 2025
f662bfc
Merge branch 'main' into next
huntabyte Feb 12, 2025
e482728
next: bits 1.0 (#1685)
huntabyte Feb 13, 2025
055ad31
chore(docs): remove enhanced image (#1695)
huntabyte Feb 15, 2025
12885b8
chore: Remove unnecessary install run from installation (#1697)
ieedan Feb 17, 2025
0ace24b
Merge branch 'main' into next
huntabyte Feb 17, 2025
31e318f
feat: Allow bind:files on input component (#1700)
ieedan Feb 18, 2025
e498dc1
fix(next): remove rounded-full from avatar-fallback + use size instea…
ieedan Feb 18, 2025
99dd57d
feat(next): Vertical sliders (#1706)
ieedan Feb 19, 2025
61d98fd
chore(cli)(next): Add peerDependency precondition to CLI (#1699)
ieedan Feb 19, 2025
a782ca1
chore(release): version package (next) (#1707)
github-actions[bot] Feb 19, 2025
225599c
fix(docs): update bits-ui installation command in migration guide (#1…
shyakadavis Feb 24, 2025
3c97463
fix(next): fix typo (#1724)
HarryAllen1 Mar 2, 2025
6c2e6d1
fix(next): registry caching issues (#1734)
huntabyte Mar 3, 2025
839c8f9
fix: registry (#1735)
huntabyte Mar 3, 2025
7669720
fix: registry tree fetch (#1736)
huntabyte Mar 3, 2025
ef7a94c
chore(release): version package (next) (#1737)
github-actions[bot] Mar 3, 2025
bfacb91
fix: missing var() (#1710)
nathancahill Mar 6, 2025
8826014
feat: improve error messages when fetching registry (#1746)
ieedan Mar 8, 2025
1c11407
chore(release): version package (next) (#1749)
github-actions[bot] Mar 8, 2025
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
Prev Previous commit
Next Next commit
size-5
huntabyte committed Jul 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 8b7d2b8a3d7f077c8970867c1ff905d2cc2c8bd1
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@
aria-label="Select a team"
class={cn("w-[200px] justify-between", className)}
>
<Avatar.Root class="mr-2 h-5 w-5">
<Avatar.Root class="mr-2 size-5">
<Avatar.Image
src="https://avatar.vercel.sh/${selectedTeam.value}.png"
alt={selectedTeam.label}
@@ -95,7 +95,7 @@
value={team.label}
class="text-sm"
>
<Avatar.Root class="mr-2 h-5 w-5">
<Avatar.Root class="mr-2 size-5">
<Avatar.Image
src="https://avatar.vercel.sh/${team.value}.png"
alt={team.label}
@@ -124,7 +124,7 @@
showTeamDialog = true;
}}
>
<PlusCircled class="mr-2 h-5 w-5" />
<PlusCircled class="mr-2 size-5" />
Create Team
</Command.Item>
</Command.Group>
2 changes: 1 addition & 1 deletion apps/www/src/lib/components/docs/icons/hamburger.svelte
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
class="size-5"
{...$$restProps}
>
<path
2 changes: 1 addition & 1 deletion apps/www/src/lib/components/docs/nav/mobile-nav.svelte
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@
variant="ghost"
class="mr-2 px-0 text-base hover:bg-transparent focus-visible:bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0 md:hidden"
>
<Icons.Hamburger class="h-5 w-5" />
<Icons.Hamburger class="size-5" />
<span class="sr-only">Toggle Menu</span>
</Button>
</Sheet.Trigger>
Original file line number Diff line number Diff line change
@@ -103,7 +103,7 @@
style="--theme-primary: hsl({theme.activeColor[$mode ?? 'dark']})"
>
<span
class="mr-1 flex h-5 w-5 shrink-0 -translate-x-1 items-center justify-center rounded-full bg-[--theme-primary]"
class="mr-1 flex size-5 shrink-0 -translate-x-1 items-center justify-center rounded-full bg-[--theme-primary]"
>
{#if isActive}
<Check class="size-4 text-white" />
4 changes: 2 additions & 2 deletions apps/www/src/lib/registry/default/block/dashboard-01.svelte
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@
class="shrink-0 md:hidden"
builders={[builder]}
>
<Menu class="h-5 w-5" />
<Menu class="size-5" />
<span class="sr-only">Toggle navigation menu</span>
</Button>
</Sheet.Trigger>
@@ -89,7 +89,7 @@
size="icon"
class="rounded-full"
>
<CircleUser class="h-5 w-5" />
<CircleUser class="size-5" />
<span class="sr-only">Toggle user menu</span>
</Button>
</DropdownMenu.Trigger>
14 changes: 7 additions & 7 deletions apps/www/src/lib/registry/default/block/dashboard-02.svelte
Original file line number Diff line number Diff line change
@@ -103,7 +103,7 @@
class="shrink-0 md:hidden"
builders={[builder]}
>
<Menu class="h-5 w-5" />
<Menu class="size-5" />
<span class="sr-only">Toggle navigation menu</span>
</Button>
</Sheet.Trigger>
@@ -117,14 +117,14 @@
href="##"
class="mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 text-muted-foreground hover:text-foreground"
>
<Home class="h-5 w-5" />
<Home class="size-5" />
Dashboard
</a>
<a
href="##"
class="mx-[-0.65rem] flex items-center gap-4 rounded-xl bg-muted px-3 py-2 text-foreground hover:text-foreground"
>
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
Orders
<Badge
class="ml-auto flex h-6 w-6 shrink-0 items-center justify-center rounded-full"
@@ -136,21 +136,21 @@
href="##"
class="mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 text-muted-foreground hover:text-foreground"
>
<Package class="h-5 w-5" />
<Package class="size-5" />
Products
</a>
<a
href="##"
class="mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 text-muted-foreground hover:text-foreground"
>
<Users class="h-5 w-5" />
<Users class="size-5" />
Customers
</a>
<a
href="##"
class="mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 text-muted-foreground hover:text-foreground"
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
Analytics
</a>
</nav>
@@ -190,7 +190,7 @@
size="icon"
class="rounded-full"
>
<CircleUser class="h-5 w-5" />
<CircleUser class="size-5" />
<span class="sr-only">Toggle user menu</span>
</Button>
</DropdownMenu.Trigger>
4 changes: 2 additions & 2 deletions apps/www/src/lib/registry/default/block/dashboard-04.svelte
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
class="shrink-0 md:hidden"
builders={[builder]}
>
<Menu class="h-5 w-5" />
<Menu class="size-5" />
<span class="sr-only">Toggle navigation menu</span>
</Button>
</Sheet.Trigger>
@@ -82,7 +82,7 @@
size="icon"
class="rounded-full"
>
<CircleUser class="h-5 w-5" />
<CircleUser class="size-5" />
<span class="sr-only">Toggle user menu</span>
</Button>
</DropdownMenu.Trigger>
26 changes: 13 additions & 13 deletions apps/www/src/lib/registry/default/block/dashboard-05.svelte
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@
use:builder.action
{...builder}
>
<Home class="h-5 w-5" />
<Home class="size-5" />
<span class="sr-only">Dashboard</span>
</a>
</Tooltip.Trigger>
@@ -64,7 +64,7 @@
use:builder.action
{...builder}
>
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
<span class="sr-only">Orders</span>
</a>
</Tooltip.Trigger>
@@ -78,7 +78,7 @@
use:builder.action
{...builder}
>
<Package class="h-5 w-5" />
<Package class="size-5" />
<span class="sr-only">Products</span>
</a>
</Tooltip.Trigger>
@@ -92,7 +92,7 @@
use:builder.action
{...builder}
>
<UsersRound class="h-5 w-5" />
<UsersRound class="size-5" />
<span class="sr-only">Customers</span>
</a>
</Tooltip.Trigger>
@@ -106,7 +106,7 @@
use:builder.action
{...builder}
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
<span class="sr-only">Analytics</span>
</a>
</Tooltip.Trigger>
@@ -122,7 +122,7 @@
use:builder.action
{...builder}
>
<Settings class="h-5 w-5" />
<Settings class="size-5" />
<span class="sr-only">Settings</span>
</a>
</Tooltip.Trigger>
@@ -137,7 +137,7 @@
<Sheet.Root>
<Sheet.Trigger asChild let:builder>
<Button builders={[builder]} size="icon" variant="outline" class="sm:hidden">
<PanelLeft class="h-5 w-5" />
<PanelLeft class="size-5" />
<span class="sr-only">Toggle Menu</span>
</Button>
</Sheet.Trigger>
@@ -147,39 +147,39 @@
href="##"
class="group flex h-10 w-10 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:text-base"
>
<Package2 class="h-5 w-5 transition-all group-hover:scale-110" />
<Package2 class="size-5 transition-all group-hover:scale-110" />
<span class="sr-only">Acme Inc</span>
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<Home class="h-5 w-5" />
<Home class="size-5" />
Dashboard
</a>
<a href="##" class="flex items-center gap-4 px-2.5 text-foreground">
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
Orders
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<Package class="h-5 w-5" />
<Package class="size-5" />
Products
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<UsersRound class="h-5 w-5" />
<UsersRound class="size-5" />
Customers
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
Settings
</a>
</nav>
26 changes: 13 additions & 13 deletions apps/www/src/lib/registry/default/block/dashboard-06.svelte
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@
use:builder.action
{...builder}
>
<Home class="h-5 w-5" />
<Home class="size-5" />
<span class="sr-only">Dashboard</span>
</a>
</Tooltip.Trigger>
@@ -57,7 +57,7 @@
use:builder.action
{...builder}
>
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
<span class="sr-only">Orders</span>
</a>
</Tooltip.Trigger>
@@ -71,7 +71,7 @@
use:builder.action
{...builder}
>
<Package class="h-5 w-5" />
<Package class="size-5" />
<span class="sr-only">Products</span>
</a>
</Tooltip.Trigger>
@@ -85,7 +85,7 @@
use:builder.action
{...builder}
>
<UsersRound class="h-5 w-5" />
<UsersRound class="size-5" />
<span class="sr-only">Customers</span>
</a>
</Tooltip.Trigger>
@@ -99,7 +99,7 @@
use:builder.action
{...builder}
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
<span class="sr-only">Analytics</span>
</a>
</Tooltip.Trigger>
@@ -115,7 +115,7 @@
use:builder.action
{...builder}
>
<Settings class="h-5 w-5" />
<Settings class="size-5" />
<span class="sr-only">Settings</span>
</a>
</Tooltip.Trigger>
@@ -130,7 +130,7 @@
<Sheet.Root>
<Sheet.Trigger asChild let:builder>
<Button builders={[builder]} size="icon" variant="outline" class="sm:hidden">
<PanelLeft class="h-5 w-5" />
<PanelLeft class="size-5" />
<span class="sr-only">Toggle Menu</span>
</Button>
</Sheet.Trigger>
@@ -140,39 +140,39 @@
href="##"
class="group flex h-10 w-10 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:text-base"
>
<Package2 class="h-5 w-5 transition-all group-hover:scale-110" />
<Package2 class="size-5 transition-all group-hover:scale-110" />
<span class="sr-only">Acme Inc</span>
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<Home class="h-5 w-5" />
<Home class="size-5" />
Dashboard
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
Orders
</a>
<a href="##" class="flex items-center gap-4 px-2.5 text-foreground">
<Package class="h-5 w-5" />
<Package class="size-5" />
Products
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<UsersRound class="h-5 w-5" />
<UsersRound class="size-5" />
Customers
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
Settings
</a>
</nav>
26 changes: 13 additions & 13 deletions apps/www/src/lib/registry/default/block/dashboard-07.svelte
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
use:builder.action
{...builder}
>
<Home class="h-5 w-5" />
<Home class="size-5" />
<span class="sr-only">Dashboard</span>
</a>
</Tooltip.Trigger>
@@ -59,7 +59,7 @@
use:builder.action
{...builder}
>
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
<span class="sr-only">Orders</span>
</a>
</Tooltip.Trigger>
@@ -73,7 +73,7 @@
use:builder.action
{...builder}
>
<Package class="h-5 w-5" />
<Package class="size-5" />
<span class="sr-only">Products</span>
</a>
</Tooltip.Trigger>
@@ -87,7 +87,7 @@
use:builder.action
{...builder}
>
<UsersRound class="h-5 w-5" />
<UsersRound class="size-5" />
<span class="sr-only">Customers</span>
</a>
</Tooltip.Trigger>
@@ -101,7 +101,7 @@
use:builder.action
{...builder}
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
<span class="sr-only">Analytics</span>
</a>
</Tooltip.Trigger>
@@ -117,7 +117,7 @@
use:builder.action
{...builder}
>
<Settings class="h-5 w-5" />
<Settings class="size-5" />
<span class="sr-only">Settings</span>
</a>
</Tooltip.Trigger>
@@ -132,7 +132,7 @@
<Sheet.Root>
<Sheet.Trigger asChild let:builder>
<Button builders={[builder]} size="icon" variant="outline" class="sm:hidden">
<PanelLeft class="h-5 w-5" />
<PanelLeft class="size-5" />
<span class="sr-only">Toggle Menu</span>
</Button>
</Sheet.Trigger>
@@ -142,39 +142,39 @@
href="##"
class="group flex h-10 w-10 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:text-base"
>
<Package2 class="h-5 w-5 transition-all group-hover:scale-110" />
<Package2 class="size-5 transition-all group-hover:scale-110" />
<span class="sr-only">Acme Inc</span>
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<Home class="h-5 w-5" />
<Home class="size-5" />
Dashboard
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
Orders
</a>
<a href="##" class="flex items-center gap-4 px-2.5 text-foreground">
<Package class="h-5 w-5" />
<Package class="size-5" />
Products
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<UsersRound class="h-5 w-5" />
<UsersRound class="size-5" />
Customers
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
Settings
</a>
</nav>
Original file line number Diff line number Diff line change
@@ -181,7 +181,7 @@
</p>
</div>
{#if selectedUsers.includes(user)}
<Check class="ml-auto flex h-5 w-5 text-primary" />
<Check class="ml-auto flex size-5 text-primary" />
{/if}
</Command.Item>
{/each}
Original file line number Diff line number Diff line change
@@ -14,14 +14,14 @@
<div
class="flex items-center space-x-4 rounded-md p-2 hover:bg-accent hover:text-accent-foreground"
>
<Bell class="h-5 w-5" />
<Bell class="size-5" />
<div class="space-y-1">
<p class="text-sm font-medium leading-none">Everything</p>
<p class="text-sm text-muted-foreground">Email digest, mentions & all activity.</p>
</div>
</div>
<div class="flex items-center space-x-4 rounded-md bg-accent p-2 text-accent-foreground">
<AtSign class="h-5 w-5" />
<AtSign class="size-5" />
<div class="space-y-1">
<p class="text-sm font-medium leading-none">Available</p>
<p class="text-sm text-muted-foreground">Only mentions and comments.</p>
@@ -30,7 +30,7 @@
<div
class="flex items-center space-x-4 rounded-md p-2 hover:bg-accent hover:text-accent-foreground"
>
<BellOff class="h-5 w-5" />
<BellOff class="size-5" />
<div class="space-y-1">
<p class="text-sm font-medium leading-none">Ignoring</p>
<p class="text-sm text-muted-foreground">Turn off all notifications.</p>
4 changes: 2 additions & 2 deletions apps/www/src/lib/registry/new-york/block/dashboard-01.svelte
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@
class="shrink-0 md:hidden"
builders={[builder]}
>
<Menu class="h-5 w-5" />
<Menu class="size-5" />
<span class="sr-only">Toggle navigation menu</span>
</Button>
</Sheet.Trigger>
@@ -89,7 +89,7 @@
size="icon"
class="rounded-full"
>
<CircleUser class="h-5 w-5" />
<CircleUser class="size-5" />
<span class="sr-only">Toggle user menu</span>
</Button>
</DropdownMenu.Trigger>
14 changes: 7 additions & 7 deletions apps/www/src/lib/registry/new-york/block/dashboard-02.svelte
Original file line number Diff line number Diff line change
@@ -103,7 +103,7 @@
class="shrink-0 md:hidden"
builders={[builder]}
>
<Menu class="h-5 w-5" />
<Menu class="size-5" />
<span class="sr-only">Toggle navigation menu</span>
</Button>
</Sheet.Trigger>
@@ -117,14 +117,14 @@
href="##"
class="mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 text-muted-foreground hover:text-foreground"
>
<Home class="h-5 w-5" />
<Home class="size-5" />
Dashboard
</a>
<a
href="##"
class="mx-[-0.65rem] flex items-center gap-4 rounded-xl bg-muted px-3 py-2 text-foreground hover:text-foreground"
>
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
Orders
<Badge
class="ml-auto flex h-6 w-6 shrink-0 items-center justify-center rounded-full"
@@ -136,21 +136,21 @@
href="##"
class="mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 text-muted-foreground hover:text-foreground"
>
<Package class="h-5 w-5" />
<Package class="size-5" />
Products
</a>
<a
href="##"
class="mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 text-muted-foreground hover:text-foreground"
>
<Users class="h-5 w-5" />
<Users class="size-5" />
Customers
</a>
<a
href="##"
class="mx-[-0.65rem] flex items-center gap-4 rounded-xl px-3 py-2 text-muted-foreground hover:text-foreground"
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
Analytics
</a>
</nav>
@@ -190,7 +190,7 @@
size="icon"
class="rounded-full"
>
<CircleUser class="h-5 w-5" />
<CircleUser class="size-5" />
<span class="sr-only">Toggle user menu</span>
</Button>
</DropdownMenu.Trigger>
4 changes: 2 additions & 2 deletions apps/www/src/lib/registry/new-york/block/dashboard-04.svelte
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
class="shrink-0 md:hidden"
builders={[builder]}
>
<Menu class="h-5 w-5" />
<Menu class="size-5" />
<span class="sr-only">Toggle navigation menu</span>
</Button>
</Sheet.Trigger>
@@ -82,7 +82,7 @@
size="icon"
class="rounded-full"
>
<CircleUser class="h-5 w-5" />
<CircleUser class="size-5" />
<span class="sr-only">Toggle user menu</span>
</Button>
</DropdownMenu.Trigger>
26 changes: 13 additions & 13 deletions apps/www/src/lib/registry/new-york/block/dashboard-05.svelte
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@
use:builder.action
{...builder}
>
<Home class="h-5 w-5" />
<Home class="size-5" />
<span class="sr-only">Dashboard</span>
</a>
</Tooltip.Trigger>
@@ -64,7 +64,7 @@
use:builder.action
{...builder}
>
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
<span class="sr-only">Orders</span>
</a>
</Tooltip.Trigger>
@@ -78,7 +78,7 @@
use:builder.action
{...builder}
>
<Package class="h-5 w-5" />
<Package class="size-5" />
<span class="sr-only">Products</span>
</a>
</Tooltip.Trigger>
@@ -92,7 +92,7 @@
use:builder.action
{...builder}
>
<UsersRound class="h-5 w-5" />
<UsersRound class="size-5" />
<span class="sr-only">Customers</span>
</a>
</Tooltip.Trigger>
@@ -106,7 +106,7 @@
use:builder.action
{...builder}
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
<span class="sr-only">Analytics</span>
</a>
</Tooltip.Trigger>
@@ -122,7 +122,7 @@
use:builder.action
{...builder}
>
<Settings class="h-5 w-5" />
<Settings class="size-5" />
<span class="sr-only">Settings</span>
</a>
</Tooltip.Trigger>
@@ -137,7 +137,7 @@
<Sheet.Root>
<Sheet.Trigger asChild let:builder>
<Button builders={[builder]} size="icon" variant="outline" class="sm:hidden">
<PanelLeft class="h-5 w-5" />
<PanelLeft class="size-5" />
<span class="sr-only">Toggle Menu</span>
</Button>
</Sheet.Trigger>
@@ -147,39 +147,39 @@
href="##"
class="group flex h-10 w-10 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:text-base"
>
<Package2 class="h-5 w-5 transition-all group-hover:scale-110" />
<Package2 class="size-5 transition-all group-hover:scale-110" />
<span class="sr-only">Acme Inc</span>
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<Home class="h-5 w-5" />
<Home class="size-5" />
Dashboard
</a>
<a href="##" class="flex items-center gap-4 px-2.5 text-foreground">
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
Orders
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<Package class="h-5 w-5" />
<Package class="size-5" />
Products
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<UsersRound class="h-5 w-5" />
<UsersRound class="size-5" />
Customers
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
Settings
</a>
</nav>
26 changes: 13 additions & 13 deletions apps/www/src/lib/registry/new-york/block/dashboard-06.svelte
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@
use:builder.action
{...builder}
>
<Home class="h-5 w-5" />
<Home class="size-5" />
<span class="sr-only">Dashboard</span>
</a>
</Tooltip.Trigger>
@@ -57,7 +57,7 @@
use:builder.action
{...builder}
>
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
<span class="sr-only">Orders</span>
</a>
</Tooltip.Trigger>
@@ -71,7 +71,7 @@
use:builder.action
{...builder}
>
<Package class="h-5 w-5" />
<Package class="size-5" />
<span class="sr-only">Products</span>
</a>
</Tooltip.Trigger>
@@ -85,7 +85,7 @@
use:builder.action
{...builder}
>
<UsersRound class="h-5 w-5" />
<UsersRound class="size-5" />
<span class="sr-only">Customers</span>
</a>
</Tooltip.Trigger>
@@ -99,7 +99,7 @@
use:builder.action
{...builder}
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
<span class="sr-only">Analytics</span>
</a>
</Tooltip.Trigger>
@@ -115,7 +115,7 @@
use:builder.action
{...builder}
>
<Settings class="h-5 w-5" />
<Settings class="size-5" />
<span class="sr-only">Settings</span>
</a>
</Tooltip.Trigger>
@@ -130,7 +130,7 @@
<Sheet.Root>
<Sheet.Trigger asChild let:builder>
<Button builders={[builder]} size="icon" variant="outline" class="sm:hidden">
<PanelLeft class="h-5 w-5" />
<PanelLeft class="size-5" />
<span class="sr-only">Toggle Menu</span>
</Button>
</Sheet.Trigger>
@@ -140,39 +140,39 @@
href="##"
class="group flex h-10 w-10 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:text-base"
>
<Package2 class="h-5 w-5 transition-all group-hover:scale-110" />
<Package2 class="size-5 transition-all group-hover:scale-110" />
<span class="sr-only">Acme Inc</span>
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<Home class="h-5 w-5" />
<Home class="size-5" />
Dashboard
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
Orders
</a>
<a href="##" class="flex items-center gap-4 px-2.5 text-foreground">
<Package class="h-5 w-5" />
<Package class="size-5" />
Products
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<UsersRound class="h-5 w-5" />
<UsersRound class="size-5" />
Customers
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
Settings
</a>
</nav>
26 changes: 13 additions & 13 deletions apps/www/src/lib/registry/new-york/block/dashboard-07.svelte
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
use:builder.action
{...builder}
>
<Home class="h-5 w-5" />
<Home class="size-5" />
<span class="sr-only">Dashboard</span>
</a>
</Tooltip.Trigger>
@@ -59,7 +59,7 @@
use:builder.action
{...builder}
>
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
<span class="sr-only">Orders</span>
</a>
</Tooltip.Trigger>
@@ -73,7 +73,7 @@
use:builder.action
{...builder}
>
<Package class="h-5 w-5" />
<Package class="size-5" />
<span class="sr-only">Products</span>
</a>
</Tooltip.Trigger>
@@ -87,7 +87,7 @@
use:builder.action
{...builder}
>
<UsersRound class="h-5 w-5" />
<UsersRound class="size-5" />
<span class="sr-only">Customers</span>
</a>
</Tooltip.Trigger>
@@ -101,7 +101,7 @@
use:builder.action
{...builder}
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
<span class="sr-only">Analytics</span>
</a>
</Tooltip.Trigger>
@@ -117,7 +117,7 @@
use:builder.action
{...builder}
>
<Settings class="h-5 w-5" />
<Settings class="size-5" />
<span class="sr-only">Settings</span>
</a>
</Tooltip.Trigger>
@@ -132,7 +132,7 @@
<Sheet.Root>
<Sheet.Trigger asChild let:builder>
<Button builders={[builder]} size="icon" variant="outline" class="sm:hidden">
<PanelLeft class="h-5 w-5" />
<PanelLeft class="size-5" />
<span class="sr-only">Toggle Menu</span>
</Button>
</Sheet.Trigger>
@@ -142,39 +142,39 @@
href="##"
class="group flex h-10 w-10 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:text-base"
>
<Package2 class="h-5 w-5 transition-all group-hover:scale-110" />
<Package2 class="size-5 transition-all group-hover:scale-110" />
<span class="sr-only">Acme Inc</span>
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<Home class="h-5 w-5" />
<Home class="size-5" />
Dashboard
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<ShoppingCart class="h-5 w-5" />
<ShoppingCart class="size-5" />
Orders
</a>
<a href="##" class="flex items-center gap-4 px-2.5 text-foreground">
<Package class="h-5 w-5" />
<Package class="size-5" />
Products
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<UsersRound class="h-5 w-5" />
<UsersRound class="size-5" />
Customers
</a>
<a
href="##"
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
>
<LineChart class="h-5 w-5" />
<LineChart class="size-5" />
Settings
</a>
</nav>
Original file line number Diff line number Diff line change
@@ -181,7 +181,7 @@
</p>
</div>
{#if selectedUsers.includes(user)}
<Check class="ml-auto flex h-5 w-5 text-primary" />
<Check class="ml-auto flex size-5 text-primary" />
{/if}
</Command.Item>
{/each}
Original file line number Diff line number Diff line change
@@ -14,14 +14,14 @@
<div
class="flex items-center space-x-4 rounded-md p-2 hover:bg-accent hover:text-accent-foreground"
>
<Bell class="h-5 w-5" />
<Bell class="size-5" />
<div class="space-y-1">
<p class="text-sm font-medium leading-none">Everything</p>
<p class="text-sm text-muted-foreground">Email digest, mentions & all activity.</p>
</div>
</div>
<div class="flex items-center space-x-4 rounded-md bg-accent p-2 text-accent-foreground">
<AtSign class="h-5 w-5" />
<AtSign class="size-5" />
<div class="space-y-1">
<p class="text-sm font-medium leading-none">Available</p>
<p class="text-sm text-muted-foreground">Only mentions and comments.</p>
@@ -30,7 +30,7 @@
<div
class="flex items-center space-x-4 rounded-md p-2 hover:bg-accent hover:text-accent-foreground"
>
<BellOff class="h-5 w-5" />
<BellOff class="size-5" />
<div class="space-y-1">
<p class="text-sm font-medium leading-none">Ignoring</p>
<p class="text-sm text-muted-foreground">Turn off all notifications.</p>
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
<div
class="-mx-2 flex items-start space-x-4 rounded-md p-2 transition-all hover:bg-accent hover:text-accent-foreground"
>
<Bell class="mt-px h-5 w-5" />
<Bell class="mt-px size-5" />
<div class="space-y-1">
<p class="text-sm font-medium leading-none">Everything</p>
<p class="text-sm text-muted-foreground">Email digest, mentions & all activity.</p>
@@ -23,7 +23,7 @@
<div
class="-mx-2 flex items-start space-x-4 rounded-md bg-accent p-2 text-accent-foreground transition-all"
>
<Person class="mt-px h-5 w-5" />
<Person class="mt-px size-5" />
<div class="space-y-1">
<p class="text-sm font-medium leading-none">Available</p>
<p class="text-sm text-muted-foreground">Only mentions and comments.</p>
@@ -32,7 +32,7 @@
<div
class="-mx-2 flex items-start space-x-4 rounded-md p-2 transition-all hover:bg-accent hover:text-accent-foreground"
>
<EyeNone class="mt-px h-5 w-5" />
<EyeNone class="mt-px size-5" />
<div class="space-y-1">
<p class="text-sm font-medium leading-none">Ignoring</p>
<p class="text-sm text-muted-foreground">Turn off all notifications.</p>
6 changes: 3 additions & 3 deletions apps/www/src/routes/(app)/examples/playground/+page.svelte
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="none"
class="h-5 w-5"
class="size-5"
>
<rect
x="4"
@@ -137,7 +137,7 @@
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="none"
class="h-5 w-5"
class="size-5"
>
<path
fill-rule="evenodd"
@@ -177,7 +177,7 @@
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="none"
class="h-5 w-5"
class="size-5"
>
<rect
x="4"
2 changes: 1 addition & 1 deletion apps/www/static/registry/styles/default-js/slider.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
},
{
"name": "slider.svelte",
"content": "<script>\n\timport { Slider as SliderPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\tlet className = undefined;\n\texport let value = [0];\n\texport { className as class };\n</script>\n\n<SliderPrimitive.Root\n\tbind:value\n\tclass={cn(\"relative flex w-full touch-none select-none items-center\", className)}\n\t{...$$restProps}\n\tlet:thumbs\n>\n\t<span class=\"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary\">\n\t\t<SliderPrimitive.Range class=\"absolute h-full bg-primary\" />\n\t</span>\n\t{#each thumbs as thumb}\n\t\t<SliderPrimitive.Thumb\n\t\t\t{thumb}\n\t\t\tclass=\"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\"\n\t\t/>\n\t{/each}\n</SliderPrimitive.Root>\n"
"content": "<script>\n\timport { Slider as SliderPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\tlet className = undefined;\n\texport let value = [0];\n\texport { className as class };\n</script>\n\n<SliderPrimitive.Root\n\tbind:value\n\tclass={cn(\"relative flex w-full touch-none select-none items-center\", className)}\n\t{...$$restProps}\n\tlet:thumbs\n>\n\t<span class=\"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary\">\n\t\t<SliderPrimitive.Range class=\"absolute h-full bg-primary\" />\n\t</span>\n\t{#each thumbs as thumb}\n\t\t<SliderPrimitive.Thumb\n\t\t\t{thumb}\n\t\t\tclass=\"block size-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\"\n\t\t/>\n\t{/each}\n</SliderPrimitive.Root>\n"
}
],
"type": "components:ui"
2 changes: 1 addition & 1 deletion apps/www/static/registry/styles/default-js/switch.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
},
{
"name": "switch.svelte",
"content": "<script>\n\timport { Switch as SwitchPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\tlet className = undefined;\n\texport let checked = undefined;\n\texport { className as class };\n</script>\n\n<SwitchPrimitive.Root\n\tbind:checked\n\tclass={cn(\n\t\t\"peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n\ton:click\n\ton:keydown\n>\n\t<SwitchPrimitive.Thumb\n\t\tclass={cn(\n\t\t\t\"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\"\n\t\t)}\n\t/>\n</SwitchPrimitive.Root>\n"
"content": "<script>\n\timport { Switch as SwitchPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\tlet className = undefined;\n\texport let checked = undefined;\n\texport { className as class };\n</script>\n\n<SwitchPrimitive.Root\n\tbind:checked\n\tclass={cn(\n\t\t\"peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n\ton:click\n\ton:keydown\n>\n\t<SwitchPrimitive.Thumb\n\t\tclass={cn(\n\t\t\t\"pointer-events-none block size-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\"\n\t\t)}\n\t/>\n</SwitchPrimitive.Root>\n"
}
],
"type": "components:ui"
2 changes: 1 addition & 1 deletion apps/www/static/registry/styles/default/slider.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
},
{
"name": "slider.svelte",
"content": "<script lang=\"ts\">\n\timport { Slider as SliderPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\ttype $$Props = SliderPrimitive.Props;\n\n\tlet className: $$Props[\"class\"] = undefined;\n\texport let value: $$Props[\"value\"] = [0];\n\texport { className as class };\n</script>\n\n<SliderPrimitive.Root\n\tbind:value\n\tclass={cn(\"relative flex w-full touch-none select-none items-center\", className)}\n\t{...$$restProps}\n\tlet:thumbs\n>\n\t<span class=\"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary\">\n\t\t<SliderPrimitive.Range class=\"absolute h-full bg-primary\" />\n\t</span>\n\t{#each thumbs as thumb}\n\t\t<SliderPrimitive.Thumb\n\t\t\t{thumb}\n\t\t\tclass=\"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\"\n\t\t/>\n\t{/each}\n</SliderPrimitive.Root>\n"
"content": "<script lang=\"ts\">\n\timport { Slider as SliderPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\ttype $$Props = SliderPrimitive.Props;\n\n\tlet className: $$Props[\"class\"] = undefined;\n\texport let value: $$Props[\"value\"] = [0];\n\texport { className as class };\n</script>\n\n<SliderPrimitive.Root\n\tbind:value\n\tclass={cn(\"relative flex w-full touch-none select-none items-center\", className)}\n\t{...$$restProps}\n\tlet:thumbs\n>\n\t<span class=\"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary\">\n\t\t<SliderPrimitive.Range class=\"absolute h-full bg-primary\" />\n\t</span>\n\t{#each thumbs as thumb}\n\t\t<SliderPrimitive.Thumb\n\t\t\t{thumb}\n\t\t\tclass=\"block size-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\"\n\t\t/>\n\t{/each}\n</SliderPrimitive.Root>\n"
}
],
"type": "components:ui"
2 changes: 1 addition & 1 deletion apps/www/static/registry/styles/default/switch.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
},
{
"name": "switch.svelte",
"content": "<script lang=\"ts\">\n\timport { Switch as SwitchPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\ttype $$Props = SwitchPrimitive.Props;\n\ttype $$Events = SwitchPrimitive.Events;\n\n\tlet className: $$Props[\"class\"] = undefined;\n\texport let checked: $$Props[\"checked\"] = undefined;\n\texport { className as class };\n</script>\n\n<SwitchPrimitive.Root\n\tbind:checked\n\tclass={cn(\n\t\t\"peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n\ton:click\n\ton:keydown\n>\n\t<SwitchPrimitive.Thumb\n\t\tclass={cn(\n\t\t\t\"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\"\n\t\t)}\n\t/>\n</SwitchPrimitive.Root>\n"
"content": "<script lang=\"ts\">\n\timport { Switch as SwitchPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\ttype $$Props = SwitchPrimitive.Props;\n\ttype $$Events = SwitchPrimitive.Events;\n\n\tlet className: $$Props[\"class\"] = undefined;\n\texport let checked: $$Props[\"checked\"] = undefined;\n\texport { className as class };\n</script>\n\n<SwitchPrimitive.Root\n\tbind:checked\n\tclass={cn(\n\t\t\"peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n\ton:click\n\ton:keydown\n>\n\t<SwitchPrimitive.Thumb\n\t\tclass={cn(\n\t\t\t\"pointer-events-none block size-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\"\n\t\t)}\n\t/>\n</SwitchPrimitive.Root>\n"
}
],
"type": "components:ui"