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

upgrade Moss #45

Merged
merged 9 commits into from
Jul 22, 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/nervous-olives-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ryanatkn/fuz': patch
---

add `light` class to `:root` when not auto
5 changes: 5 additions & 0 deletions .changeset/thick-crews-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ryanatkn/fuz': minor
---

upgrade `@ryanatkn/moss@0.11` from `0.10.1`
36 changes: 18 additions & 18 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
},
"devDependencies": {
"@changesets/changelog-git": "^0.2.0",
"@ryanatkn/belt": "^0.24.10",
"@ryanatkn/belt": "^0.24.11",
"@ryanatkn/eslint-config": "^0.4.2",
"@ryanatkn/fuz_code": "^0.16.0",
"@ryanatkn/gro": "^0.133.2",
"@ryanatkn/moss": "^0.9.0",
"@ryanatkn/gro": "^0.133.4",
"@ryanatkn/moss": "^0.11.0",
"@sveltejs/adapter-static": "^3.0.2",
"@sveltejs/kit": "^2.5.18",
"@sveltejs/package": "^2.3.2",
Expand All @@ -65,7 +65,7 @@
"prettier-plugin-svelte": "^3.2.6",
"prism-svelte": "^0.5.0",
"prismjs": "^1.29.0",
"svelte": "^5.0.0-next.192",
"svelte": "^5.0.0-next.193",
"svelte-check": "^3.8.4",
"tslib": "^2.6.3",
"typescript": "^5.5.3",
Expand Down
12 changes: 11 additions & 1 deletion src/lib/Earbetter_Logo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@
*/
height?: string;
label?: string;
inline?: boolean;
classes?: string;
path_attrs?: SvelteHTMLElements['path'];
attrs?: SvelteHTMLElements['svg'];
}

const {
fill = 'hsl(var(--color_d_5))',
fill = 'var(--color_d_5)',
size,
width,
height,
label = 'two beamed musical notes with ears',
inline,
classes,
path_attrs,
attrs,
Expand All @@ -44,10 +46,18 @@
style:width={final_width}
style:height={final_height}
class={classes}
class:inline
>
<path
{...path_attrs}
style:fill
d="M 18.684523,21.594255 92.665673,0.07053376 89.964671,71.044731 c 0,0 -9.264538,0.553683 -10.550847,3.374284 -0.683564,1.498909 2.903421,3.007843 2.64697,4.635178 -0.27412,1.739453 -1.668602,2.208126 -1.657522,3.969011 0.01167,1.854005 2.077972,1.739288 2.901318,3.400484 0.970337,1.957767 2.234864,4.524264 1.194002,6.445464 -0.86141,1.589971 -3.246154,2.492774 -5.008045,2.085619 -1.944653,-0.44939 -2.899151,-2.049885 -4.585116,-3.118131 -1.579454,-1.000759 -3.269281,-1.803465 -4.761852,-2.929709 -2.922448,-2.205183 -4.425992,-5.928773 -5.821865,-9.313308 -1.377546,-3.340097 -2.936044,-6.995405 -2.404161,-10.569056 0.67834,-4.557676 3.253462,-9.893748 6.858685,-12.763405 5.737692,-4.567043 15.203616,3.720745 15.203616,3.720745 L 84.951434,19.725274 24.286494,33.208618 25.8216,81.03472 c 0,0 -5.914069,0.5073 -6.738183,2.531712 -0.40301,0.989982 2.060887,2.442228 2.151944,3.507212 0.09657,1.129399 -1.230571,2.199804 -0.900669,3.284254 0.323103,1.062103 1.718831,1.404202 2.204871,2.402312 0.776635,1.594863 2.345641,3.859334 1.265582,5.446649 -0.813159,1.195063 -2.768174,1.499027 -4.123144,0.995579 -1.307377,-0.485765 -2.424803,-1.789733 -3.56737,-2.589572 -1.184983,-0.829532 -1.858228,-1.023748 -2.999009,-1.913087 -2.26063,-1.76236 -3.4455617,-4.656726 -4.5264081,-7.311558 -1.1719601,-2.87863 -2.523621,-6.033763 -2.0251418,-9.101583 0.614849,-3.784001 2.7986309,-7.637587 5.9238179,-9.857926 3.138305,-2.229658 8.364184,1.875505 8.364184,1.875505"
/>
</svg>

<style>
.inline {
display: inline-block;
vertical-align: middle;
}
</style>
7 changes: 5 additions & 2 deletions src/lib/Fuz_Logo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@
*/
height?: string;
label?: string;
inline?: boolean;
classes?: string;
path_attrs?: SvelteHTMLElements['path'];
attrs?: SvelteHTMLElements['svg'];
}

const {project, fill, size, width, height, label, classes, path_attrs, attrs}: Props = $props();
const {project, fill, size, width, height, label, inline, classes, path_attrs, attrs}: Props =
$props();

const final_fill = $derived(
project ? to_fuz_project_color(project) : (fill ?? 'hsl(var(--color_f_5))'),
project ? to_fuz_project_color(project) : (fill ?? 'var(--color_f_5)'),
);
const final_label = $derived(
label ??
Expand All @@ -51,6 +53,7 @@
{width}
{height}
label={final_label}
{inline}
{classes}
{path_attrs}
{attrs}
Expand Down
10 changes: 10 additions & 0 deletions src/lib/Github_Logo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
height?: string;
label?: string;
inline?: boolean;
classes?: string;
attrs?: any; // TODO type
}
Expand All @@ -24,6 +25,7 @@
width,
height,
label = 'the GitHub icon, an octocat silhouette',
inline,
classes,
attrs,
}: Props = $props();
Expand All @@ -40,6 +42,7 @@
style:width={final_width}
style:height={final_height}
class={classes}
class:inline
>
<path
{fill}
Expand All @@ -59,3 +62,10 @@
transform="scale(64)"
/>
</svg>

<style>
.inline {
display: inline-block;
vertical-align: middle;
}
</style>
10 changes: 10 additions & 0 deletions src/lib/Gro_Logo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
height?: string;
label?: string;
inline?: boolean;
classes?: string;
path_attrs?: SvelteHTMLElements['path'];
attrs?: SvelteHTMLElements['svg'];
Expand All @@ -25,6 +26,7 @@
width,
height,
label = 'a pixelated green oak acorn with a glint of sun',
inline,
classes,
path_attrs,
attrs,
Expand All @@ -42,6 +44,7 @@
style:width={final_width}
style:height={final_height}
class={classes}
class:inline
>
<path
{...path_attrs}
Expand Down Expand Up @@ -79,3 +82,10 @@
d="M 93.75,31.25 H 87.5 V 25 h 6.25 v 6.25 H 100 v 12.5 H 93.75 Z M 75,18.75 h 6.25 V 25 H 75 Z M 37.5,12.5 H 50 V 6.25 h 6.25 v 6.25 h 12.5 v 6.25 H 53.125 37.5 Z"
/>
</svg>

<style>
.inline {
display: inline-block;
vertical-align: middle;
}
</style>
2 changes: 1 addition & 1 deletion src/lib/Library_Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
border: var(--border_width) double var(--border_color);
}
.logo a:hover {
--border_color: hsl(var(--color_a_5));
--border_color: var(--color_a_5);
}
.root_url {
/* TODO messy */
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Mdn_Link.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
const final_children = $derived(children ?? strip_end(path, '/').split('/').at(-1)!);
</script>

<a {...attrs} {href} class="chip nowrap"
<a {...attrs} {href} class="chip white_space_nowrap"
>{#if typeof final_children === 'string'}
<span class="font_mono">{final_children}</span>
{:else}
{@render final_children()}
{/if}
<Mdn_Logo classes="inline_block mx_xs3 vertical_align_middle" /></a
<Mdn_Logo inline classes="mx_xs3" /></a
>
10 changes: 10 additions & 0 deletions src/lib/Mdn_Logo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
height?: string;
label?: string;
inline?: boolean;
classes?: string;
attrs?: any;
}
Expand All @@ -24,6 +25,7 @@
height,
fill = '#8cb4ff',
label = 'GitHub icon',
inline,
classes,
attrs,
}: Props = $props();
Expand All @@ -40,9 +42,17 @@
style:width={final_width}
style:height={final_height}
class={classes}
class:inline
>
<path
d="M42 .2 13.4 92.3H1.7L30.2.2Zm10.4 0v92.1H42V.2Zm40.3 0L64.2 92.3H52.5L81 .2Zm10.4 0v92.1H92.7V.2Z"
{fill}
/>
</svg>

<style>
.inline {
display: inline-block;
vertical-align: middle;
}
</style>
16 changes: 14 additions & 2 deletions src/lib/Moss_Logo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,19 @@
*/
height?: string;
label?: string;
inline?: boolean;
classes?: string;
path_attrs?: SvelteHTMLElements['path'];
attrs?: SvelteHTMLElements['svg'];
}

const {
fill = 'hsl(var(--color_b_5))',
fill = 'var(--color_b_5)',
size,
width,
height,
label = 'a fuzzy tuft of green moss',
inline,
classes,
path_attrs,
attrs,
Expand All @@ -39,4 +41,14 @@
const style = $derived(attrs?.style ? transform + '; ' + attrs.style : transform);
</script>

<Spider {fill} {size} {width} {height} {label} {classes} {path_attrs} attrs={{...attrs, style}} />
<Spider
{fill}
{size}
{width}
{height}
{label}
{inline}
{classes}
{path_attrs}
attrs={{...attrs, style}}
/>
16 changes: 8 additions & 8 deletions src/lib/Package_Detail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -294,16 +294,16 @@
padding: var(--space_xs);
}
.ts {
--link_color: hsl(var(--color_a_5));
--link_color: var(--color_a_5);
}
.svelte {
--link_color: hsl(var(--color_e_5));
--link_color: var(--color_e_5);
}
.css {
--link_color: hsl(var(--color_b_5));
--link_color: var(--color_b_5);
}
.json {
--link_color: hsl(var(--color_f_5));
--link_color: var(--color_f_5);
}
/* TODO extract */
.declarations {
Expand All @@ -322,15 +322,15 @@
margin-right: var(--space_xs2);
}
.variable_declaration {
color: hsl(var(--color_d_5));
color: var(--color_d_5);
}
.function_declaration {
color: hsl(var(--color_c_5));
color: var(--color_c_5);
}
.type_declaration {
color: hsl(var(--color_g_5));
color: var(--color_g_5);
}
.class_declaration {
color: hsl(var(--color_f_5));
color: var(--color_f_5);
}
</style>
Loading
Loading