Skip to content

Commit 9a2fc6f

Browse files
besekumhartington
andauthored
Add (SVG) icon support to Button component and clean up variants (#7743)
* Update button to use icons correctly and apply correct variant names * Apply variant changes to apps * Add icon font support as well as SVGs * Caught a missing old variant * Fixes for the rabbit * Fix implementaion of links to follow best practice * Fix build error in Docs * Fix merge regression * Fix merge regression * Fix merge regression * Fix merge regression * Fix merge issues * fix(blog): update blog post with new button syntax * fix(blog): cspell --------- Co-authored-by: Mike Hartington <mikehartington@gmail.com>
1 parent 786ece4 commit 9a2fc6f

File tree

47 files changed

+990
-1268
lines changed

Some content is hidden

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

47 files changed

+990
-1268
lines changed

apps/blog/content/blog/the-next-evolution-of-prisma-orm/index.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,13 @@ Today we’re publishing the Prisma Next repo so you can follow the work as it h
442442
If you want to stay close to the work, **star + watch** the repo.
443443

444444
<Button
445+
asChild
445446
variant="ppg"
446-
href="https://github.com/prisma/prisma-next"
447447
className="no-underline hover:no-underline w-1/3 mx-auto"
448448
>
449-
Star and watch the repository
449+
<a href="https://github.com/prisma/prisma-next">
450+
Star and watch the repository
451+
</a>
450452
</Button>
451453

452454
If you want to build alongside us, join `#prisma-next` on [Discord](http://pris.ly/discord?utm_campaign=prisma-next).

apps/blog/content/blog/try-prisma-announcment-Kv6bwRcdjd/index.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,14 @@ Open up the new project and head to the README for information on how to start e
9696
If you are curious about all of the options available via the CLI, head over to the [`try-prisma` repository](https://github.com/prisma/try-prisma) and check out the README.
9797

9898
<Button
99+
asChild
99100
variant="ppg"
100-
href="https://github.com/prisma/try-prisma"
101101
className="no-underline hover:no-underline w-fit mx-auto px-4"
102-
>Head over to the try-prisma repository</Button>
102+
>
103+
<a href="https://github.com/prisma/try-prisma">
104+
Head over to the try-prisma repository
105+
</a>
106+
</Button>
103107

104108
If you run into any issues, feel free to leave an issue in the repository's [issues](https://github.com/prisma/try-prisma/issues) tab.
105109

apps/docs/content/docs/orm/prisma-client/special-fields-and-types/working-with-geometry-fields.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,7 @@ All native geometry filters (`near`, `within`, `intersects`) are optimized to us
756756

757757
:::warning PostgreSQL 16 users with large datasets
758758

759-
If you're using **PostgreSQL 16** with datasets containing thousands of records, you may encounter slow spatial queries (3-5 seconds instead of < 100ms) due to a query planner bug that was fixed in PostgreSQL 17+.
760-
759+
If you're using **PostgreSQL 16** with datasets containing thousands of records, you may encounter slow spatial queries (3-5 seconds instead of `<100ms`) due to a query planner bug that was fixed in PostgreSQL 17+.
761760
**Symptom:** Queries with `near`, `within`, or `intersects` are unexpectedly slow despite having GIST indexes.
762761

763762
**Cause:** PostgreSQL 16 underestimates the number of rows returned by spatial Common Table Expressions (CTEs), causing it to choose Nested Loop joins instead of Hash Joins. This results in thousands of unnecessary loop iterations.

apps/docs/cspell.json

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"Baselining",
2525
"behaviour",
2626
"betterauth",
27-
"BIGSERIAL",
2827
"bigserial",
28+
"BIGSERIAL",
2929
"bindefault",
3030
"biograpy",
3131
"blobshape",
@@ -39,8 +39,8 @@
3939
"bytea",
4040
"BYTEA",
4141
"Candycane",
42-
"Cerbos",
4342
"cerbos",
43+
"Cerbos",
4444
"citext",
4545
"Citext",
4646
"cloudflare",
@@ -59,8 +59,8 @@
5959
"datetimeoffset",
6060
"dbgenerated",
6161
"dblink",
62-
"DBML",
6362
"dbml",
63+
"DBML",
6464
"dbname",
6565
"distancesphere",
6666
"Distroless",
@@ -70,14 +70,14 @@
7070
"dotenvx",
7171
"Dreamies",
7272
"earthdistance",
73-
"Ecommerce",
7473
"ecommerce",
74+
"Ecommerce",
7575
"edouardb",
76-
"Elysia",
77-
"epsg",
7876
"elysia",
77+
"Elysia",
7978
"Emelie",
8079
"Enya",
80+
"epsg",
8181
"everytime",
8282
"extralight",
8383
"favorited",
@@ -92,11 +92,11 @@
9292
"Fumadocs",
9393
"fuzzystrmatch",
9494
"Galera",
95+
"geoexample",
9596
"geofencing",
9697
"Geofencing",
97-
"geoexample",
98-
"Glassmorphism",
9998
"glassmorphism",
99+
"Glassmorphism",
100100
"gofmt",
101101
"Graphile",
102102
"Haines",
@@ -119,8 +119,8 @@
119119
"jaegertracing",
120120
"janedoe",
121121
"johndoe",
122-
"Koyeb",
123122
"koyeb",
123+
"Koyeb",
124124
"kysely",
125125
"Kysely",
126126
"lastname",
@@ -133,8 +133,8 @@
133133
"libsql",
134134
"LIBSQL",
135135
"libz",
136-
"Linktree",
137136
"linktree",
137+
"Linktree",
138138
"llms",
139139
"localdb",
140140
"LONGBLOB",
@@ -174,15 +174,15 @@
174174
"nvarchar",
175175
"NVARCHAR",
176176
"nzpppscrldfwlzfalbrf",
177-
"Ollama",
178177
"ollama",
178+
"Ollama",
179179
"onrender",
180180
"orms",
181-
"ossp",
182181
"OSGB",
182+
"ossp",
183183
"Overfetching",
184-
"Pacman",
185184
"packagemanager",
185+
"Pacman",
186186
"pageinspect",
187187
"permitio",
188188
"pgbouncer",
@@ -208,8 +208,8 @@
208208
"postgresql",
209209
"PostgreSQL",
210210
"Postico",
211-
"Prisma",
212211
"prisma",
212+
"Prisma",
213213
"prismabox",
214214
"Prismabox",
215215
"Prismas",
@@ -242,53 +242,54 @@
242242
"schemaname",
243243
"secondtolastproduct",
244244
"serverful",
245-
"Sevalla",
246245
"sevalla",
246+
"Sevalla",
247+
"shopt",
247248
"Silverlake",
248249
"slonik",
249250
"smalldatetime",
250251
"smallmoney",
251252
"smallserial",
252253
"SMALLSERIAL",
253-
"Solidstart",
254254
"solidstart",
255+
"Solidstart",
255256
"Sonali",
256257
"Sorcha",
257258
"specialised",
258259
"SPGIST",
259260
"sqlcommenter",
260-
"SRID",
261261
"srid",
262+
"SRID",
262263
"sslaccept",
263264
"sslcert",
264265
"sslidentity",
265266
"sslinfo",
266267
"sslmode",
267268
"sslpassword",
268269
"Stammerjohann",
269-
"Sunsetting",
270-
"Streamdal",
271270
"streamdal",
271+
"Streamdal",
272272
"Subtacts",
273-
"Supabase",
273+
"Sunsetting",
274274
"supabase",
275+
"Supabase",
275276
"Supavisor",
276277
"Superblog",
277278
"Svetlana",
278279
"tablefunc",
279280
"tablename",
280281
"tablenames",
281-
"Tabnine",
282282
"tabnine",
283+
"Tabnine",
283284
"timestamptz",
284285
"Timestamptz",
285286
"TIMESTAMPTZ",
287+
"timetz",
286288
"Timetz",
287289
"TIMETZ",
288-
"timetz",
289290
"TINYBLOB",
290-
"TINYINT",
291291
"tinyint",
292+
"TINYINT",
292293
"TINYTEXT",
293294
"traceparent",
294295
"Treatos",
@@ -308,8 +309,8 @@
308309
"typegraphql",
309310
"unaccent",
310311
"unexecutable",
311-
"unikernels",
312312
"unikernel",
313+
"unikernels",
313314
"unindexed",
314315
"unixepoch",
315316
"uploadthing",
@@ -344,6 +345,8 @@
344345
"pattern": "/videoId=\"[A-Za-z0-9_-]{6,}\"/g"
345346
}
346347
],
347-
"ignoreRegExpList": ["mdxVideoIdAttribute"],
348+
"ignoreRegExpList": [
349+
"mdxVideoIdAttribute"
350+
],
348351
"ignorePaths": []
349352
}

0 commit comments

Comments
 (0)