Skip to content

Commit a49de52

Browse files
committed
upgrade fuz
1 parent 7a6ed71 commit a49de52

File tree

9 files changed

+32
-27
lines changed

9 files changed

+32
-27
lines changed

.changeset/fast-items-grin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ryanatkn/fuz_code": minor
3+
---
4+
5+
upgrade fuz

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
},
3333
"devDependencies": {
3434
"@changesets/changelog-git": "^0.2.0",
35-
"@ryanatkn/belt": "^0.20.4",
35+
"@ryanatkn/belt": "^0.20.5",
3636
"@ryanatkn/eslint-config": "^0.1.0",
37-
"@ryanatkn/fuz": "^0.88.0",
37+
"@ryanatkn/fuz": "^0.89.0",
3838
"@ryanatkn/gro": "^0.112.3",
3939
"@sveltejs/adapter-static": "^3.0.1",
4040
"@sveltejs/kit": "^2.5.1",

src/lib/Code.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
<style>
3838
pre {
3939
background-color: var(--fg_1);
40-
border-radius: var(--border_radius_xs);
41-
padding: var(--spacing_xs3) var(--spacing_xs);
40+
border-radius: var(--radius_xs);
41+
padding: var(--space_3xs) var(--space_xs);
4242
}
4343
code {
4444
background-color: unset;

src/routes/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
<style>
3131
main {
3232
/* TODO hacky */
33-
margin-bottom: var(--spacing_5);
34-
padding: var(--spacing_3) 0;
33+
margin-bottom: var(--space_5xl);
34+
padding: var(--space_3xl) 0;
3535
}
3636
section {
37-
margin-bottom: var(--spacing_5);
37+
margin-bottom: var(--space_5xl);
3838
display: flex;
3939
flex-direction: column;
4040
align-items: center;

src/routes/Code_Tome.svelte

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script lang="ts">
22
// import Tome from '@ryanatkn/fuz/Tome.svelte';
33
// import LibraryItem from '@ryanatkn/fuz/LibraryItem.svelte';
4-
// import Library_Vocab from '@ryanatkn/fuz/Library_Vocab.svelte';
5-
import Library_Vocab from '$routes/Library_Vocab.svelte';
4+
// import Library_Tome_Link from '@ryanatkn/fuz/Library_Tome_Link.svelte';
5+
import Library_Tome_Link from '$routes/Library_Tome_Link.svelte';
66
import Code from '$lib/Code.svelte';
77
88
// TODO what convention? `LibraryTome`? Maybe just `Tome`? `/tomes`? both? what other options?
@@ -15,7 +15,7 @@
1515
<section>
1616
<p>
1717
The
18-
<Library_Vocab name="Code" />
18+
<Library_Tome_Link name="Code" />
1919
component supports syntax highlighting with
2020
<a href="https://prismjs.com/">Prism</a> (<a href="https://github.com/PrismJS/prism">repo</a
2121
>).
@@ -31,7 +31,7 @@ import '@ryanatkn/fuz/theme.css'; // or your own
3131
// add this:
3232
import '@ryanatkn/fuz_code/prism.css'; // add this"
3333
/>
34-
<p>then use <Library_Vocab name="Code" />:</p>
34+
<p>then use <Library_Tome_Link name="Code" />:</p>
3535
<Code
3636
content={'<!-- Something.svelte -->\n<' +
3737
`script>\n\timport Code from '@ryanatkn/fuz_code/Code.svelte';\n</script>\n\n<Code content="<header>hello world</header>" />`}
@@ -48,7 +48,7 @@ import '@ryanatkn/fuz_code/prism.css'; // add this"
4848
</section>
4949
<section>
5050
<p>
51-
<Library_Vocab name="Code" /> highlights
51+
<Library_Tome_Link name="Code" /> highlights
5252
<a href="https://svelte.dev/">Svelte</a>
5353
by default:
5454
</p>
@@ -72,7 +72,7 @@ import '@ryanatkn/fuz_code/prism.css'; // add this"
7272
</section>
7373
<section>
7474
<p>
75-
<Library_Vocab name="Code" /> supports TypeScript with <code>lang="ts"</code>:
75+
<Library_Tome_Link name="Code" /> supports TypeScript with <code>lang="ts"</code>:
7676
</p>
7777
<div class="spaced">
7878
<Code content={`<Code lang="ts" content="export type A<T> = ('b' | 3) & T;" />`} />
@@ -92,14 +92,14 @@ import '@ryanatkn/fuz_code/prism.css'; // add this"
9292
</section>
9393
<section>
9494
<p>
95-
<Library_Vocab name="Code" /> is a block by default:
95+
<Library_Tome_Link name="Code" /> is a block by default:
9696
</p>
9797
<p>ab<Code content="c" /></p>
9898
<Code content={'<p>ab<Code content="c" /></p>'} />
9999
</section>
100100
<section>
101101
<p>
102-
<Library_Vocab name="Code" /> can be inlined with <Code
102+
<Library_Tome_Link name="Code" /> can be inlined with <Code
103103
inline
104104
content={`<Code inline content="..." />`}
105105
/>
@@ -144,7 +144,7 @@ export default config;`}
144144
<style>
145145
section {
146146
/* TODO not sure about this -- maybe make it a util class? or a component? */
147-
padding: var(--spacing_2);
147+
padding: var(--space_2xl);
148148
display: flex;
149149
flex-direction: column;
150150
}

src/routes/about/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@
4444
text-align: center;
4545
}
4646
section {
47-
margin-bottom: var(--spacing_5);
47+
margin-bottom: var(--space_5xl);
4848
}
4949
</style>

src/routes/package.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ export const package_json = {
2525
peerDependencies: {'prism-svelte': '*', prismjs: '*', svelte: '*'},
2626
devDependencies: {
2727
'@changesets/changelog-git': '^0.2.0',
28-
'@ryanatkn/belt': '^0.20.4',
28+
'@ryanatkn/belt': '^0.20.5',
2929
'@ryanatkn/eslint-config': '^0.1.0',
30-
'@ryanatkn/fuz': '^0.88.0',
30+
'@ryanatkn/fuz': '^0.89.0',
3131
'@ryanatkn/gro': '^0.112.3',
3232
'@sveltejs/adapter-static': '^3.0.1',
3333
'@sveltejs/kit': '^2.5.1',

0 commit comments

Comments
 (0)