@fuzdev/fuz_ui 0.205.0 → 0.205.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/README.md +1 -1
  2. package/dist/Alert.svelte +1 -1
  3. package/dist/Alert.svelte.d.ts +1 -1
  4. package/dist/ApiDeclarationList.svelte +1 -1
  5. package/dist/ApiDeclarationList.svelte.d.ts +1 -1
  6. package/dist/ApiIndex.svelte +3 -3
  7. package/dist/ApiIndex.svelte.d.ts +2 -2
  8. package/dist/ApiModule.svelte +4 -4
  9. package/dist/ApiModule.svelte.d.ts +2 -2
  10. package/dist/ApiModulesList.svelte +1 -1
  11. package/dist/ApiModulesList.svelte.d.ts +1 -1
  12. package/dist/Breadcrumb.svelte +5 -5
  13. package/dist/Card.svelte +1 -7
  14. package/dist/ColorSchemeInput.svelte +4 -5
  15. package/dist/ColorSchemeInput.svelte.d.ts +1 -1
  16. package/dist/Contextmenu.svelte +1 -1
  17. package/dist/ContextmenuEntry.svelte +4 -6
  18. package/dist/ContextmenuEntry.svelte.d.ts +2 -2
  19. package/dist/ContextmenuIcon.svelte +1 -1
  20. package/dist/ContextmenuIcon.svelte.d.ts +1 -1
  21. package/dist/ContextmenuLinkEntry.svelte +6 -9
  22. package/dist/ContextmenuLinkEntry.svelte.d.ts +1 -1
  23. package/dist/ContextmenuMenu.svelte +3 -3
  24. package/dist/ContextmenuMenu.svelte.d.ts +2 -2
  25. package/dist/ContextmenuRoot.svelte +2 -2
  26. package/dist/ContextmenuRoot.svelte.d.ts +1 -1
  27. package/dist/ContextmenuRootForSafariCompatibility.svelte +3 -3
  28. package/dist/ContextmenuRootForSafariCompatibility.svelte.d.ts +1 -1
  29. package/dist/ContextmenuSeparator.svelte +1 -1
  30. package/dist/ContextmenuSubmenu.svelte +6 -7
  31. package/dist/ContextmenuSubmenu.svelte.d.ts +1 -1
  32. package/dist/ContextmenuTextEntry.svelte +2 -2
  33. package/dist/ContextmenuTextEntry.svelte.d.ts +2 -2
  34. package/dist/CopyToClipboard.svelte +7 -7
  35. package/dist/CopyToClipboard.svelte.d.ts +1 -1
  36. package/dist/CopyToClipboard.svelte.d.ts.map +1 -1
  37. package/dist/DeclarationDetail.svelte +3 -3
  38. package/dist/DeclarationDetail.svelte.d.ts +1 -1
  39. package/dist/DeclarationLink.svelte +4 -4
  40. package/dist/Dialog.svelte +3 -4
  41. package/dist/Dialog.svelte.d.ts +1 -1
  42. package/dist/DialogContent.svelte +3 -3
  43. package/dist/DialogContent.svelte.d.ts +1 -1
  44. package/dist/Docs.svelte +4 -4
  45. package/dist/Docs.svelte.d.ts +1 -1
  46. package/dist/DocsContent.svelte +2 -2
  47. package/dist/DocsContent.svelte.d.ts +2 -2
  48. package/dist/DocsFooter.svelte +2 -2
  49. package/dist/DocsFooter.svelte.d.ts +1 -1
  50. package/dist/DocsLink.svelte +4 -4
  51. package/dist/DocsLink.svelte.d.ts +3 -3
  52. package/dist/DocsList.svelte +1 -1
  53. package/dist/DocsMenu.svelte +2 -2
  54. package/dist/DocsMenu.svelte.d.ts +1 -1
  55. package/dist/DocsPageLinks.svelte +10 -9
  56. package/dist/DocsPageLinks.svelte.d.ts.map +1 -1
  57. package/dist/DocsPrimaryNav.svelte +2 -2
  58. package/dist/DocsSearch.svelte +1 -1
  59. package/dist/DocsSecondaryNav.svelte +2 -2
  60. package/dist/DocsSecondaryNav.svelte.d.ts +1 -1
  61. package/dist/DocsTertiaryNav.svelte +3 -3
  62. package/dist/DocsTertiaryNav.svelte.d.ts +1 -1
  63. package/dist/EcosystemLinks.svelte +2 -2
  64. package/dist/GithubLink.svelte +2 -2
  65. package/dist/HueInput.svelte +1 -1
  66. package/dist/HueInput.svelte.d.ts +1 -1
  67. package/dist/LibraryDetail.svelte +14 -11
  68. package/dist/LibraryDetail.svelte.d.ts +2 -2
  69. package/dist/LibraryDetail.svelte.d.ts.map +1 -1
  70. package/dist/LibrarySummary.svelte +3 -4
  71. package/dist/LibrarySummary.svelte.d.ts +1 -1
  72. package/dist/MdnLink.svelte +2 -2
  73. package/dist/ModuleLink.svelte +4 -4
  74. package/dist/PendingAnimation.svelte +7 -5
  75. package/dist/PendingAnimation.svelte.d.ts +1 -1
  76. package/dist/PendingAnimation.svelte.d.ts.map +1 -1
  77. package/dist/PendingButton.svelte +1 -2
  78. package/dist/ProjectLinks.svelte +2 -2
  79. package/dist/Redirect.svelte +1 -1
  80. package/dist/Spiders.svelte +3 -3
  81. package/dist/StyleVariableButton.svelte +3 -4
  82. package/dist/Svg.svelte +4 -4
  83. package/dist/Svg.svelte.d.ts +1 -1
  84. package/dist/ThemeInput.svelte +5 -6
  85. package/dist/ThemeInput.svelte.d.ts +1 -1
  86. package/dist/ThemeRoot.svelte +4 -4
  87. package/dist/ThemeRoot.svelte.d.ts +2 -2
  88. package/dist/TomeContent.svelte +3 -3
  89. package/dist/TomeContent.svelte.d.ts +1 -1
  90. package/dist/TomeHeader.svelte +2 -2
  91. package/dist/TomeLink.svelte +2 -2
  92. package/dist/TomeSection.svelte +3 -3
  93. package/dist/TomeSectionHeader.svelte +2 -2
  94. package/dist/TomeSectionHeader.svelte.d.ts +1 -1
  95. package/dist/TypeLink.svelte +1 -1
  96. package/dist/api_search.svelte.d.ts +3 -3
  97. package/dist/contextmenu_helpers.d.ts +1 -1
  98. package/dist/contextmenu_helpers.js +3 -3
  99. package/dist/contextmenu_state.svelte.d.ts +3 -3
  100. package/dist/contextmenu_state.svelte.js +6 -6
  101. package/dist/csp.d.ts +1 -1
  102. package/dist/declaration.svelte.d.ts +1 -1
  103. package/dist/declaration.svelte.js +1 -1
  104. package/dist/declaration_contextmenu.d.ts +2 -2
  105. package/dist/dialog.js +1 -1
  106. package/dist/docs_helpers.svelte.d.ts +1 -1
  107. package/dist/docs_helpers.svelte.js +3 -3
  108. package/dist/intersect.svelte.js +1 -1
  109. package/dist/library.svelte.d.ts +5 -5
  110. package/dist/library.svelte.js +5 -5
  111. package/dist/library_helpers.d.ts +1 -1
  112. package/dist/library_helpers.js +2 -2
  113. package/dist/module.svelte.d.ts +2 -2
  114. package/dist/module.svelte.js +2 -2
  115. package/dist/module_contextmenu.d.ts +2 -2
  116. package/dist/site.svelte.d.ts +3 -3
  117. package/dist/site.svelte.js +2 -2
  118. package/dist/style_variable_helpers.svelte.d.ts +1 -1
  119. package/dist/style_variable_helpers.svelte.js +1 -1
  120. package/dist/theme_state.svelte.d.ts +1 -1
  121. package/dist/theme_state.svelte.js +4 -4
  122. package/dist/tome.js +3 -3
  123. package/dist/vite_plugin_pkg_json.d.ts +3 -3
  124. package/dist/vite_plugin_pkg_json.js +3 -3
  125. package/package.json +5 -5
  126. package/src/lib/api_search.svelte.ts +3 -3
  127. package/src/lib/contextmenu_helpers.ts +3 -3
  128. package/src/lib/contextmenu_state.svelte.ts +8 -8
  129. package/src/lib/csp.ts +1 -1
  130. package/src/lib/declaration.svelte.ts +2 -2
  131. package/src/lib/declaration_contextmenu.ts +2 -2
  132. package/src/lib/dialog.ts +1 -1
  133. package/src/lib/docs_helpers.svelte.ts +3 -3
  134. package/src/lib/icons.ts +1 -1
  135. package/src/lib/intersect.svelte.ts +1 -1
  136. package/src/lib/library.svelte.ts +7 -7
  137. package/src/lib/library_helpers.ts +2 -2
  138. package/src/lib/logos.ts +1 -1
  139. package/src/lib/module.svelte.ts +3 -3
  140. package/src/lib/module_contextmenu.ts +2 -2
  141. package/src/lib/site.svelte.ts +5 -5
  142. package/src/lib/style_variable_helpers.svelte.ts +2 -2
  143. package/src/lib/theme_state.svelte.ts +4 -4
  144. package/src/lib/tome.ts +3 -3
  145. package/src/lib/vite_plugin_pkg_json.ts +4 -4
package/dist/Docs.svelte CHANGED
@@ -5,16 +5,16 @@
5
5
  import {page} from '$app/state';
6
6
 
7
7
  import Breadcrumb from './Breadcrumb.svelte';
8
- import {Tome, tomes_context} from './tome.js';
8
+ import {Tome, tomes_context} from './tome.ts';
9
9
  import DocsPrimaryNav from './DocsPrimaryNav.svelte';
10
10
  import DocsSecondaryNav from './DocsSecondaryNav.svelte';
11
11
  import DocsTertiaryNav from './DocsTertiaryNav.svelte';
12
12
  import Dialog from './Dialog.svelte';
13
13
  import DialogContent from './DialogContent.svelte';
14
14
  import DocsFooter from './DocsFooter.svelte';
15
- import {site_context} from './site.svelte.js';
16
- import {FUZ_DEV_URL} from './constants.js';
17
- import {DocsLinks, docs_links_context} from './docs_helpers.svelte.js';
15
+ import {site_context} from './site.svelte.ts';
16
+ import {FUZ_DEV_URL} from './constants.ts';
17
+ import {DocsLinks, docs_links_context} from './docs_helpers.svelte.ts';
18
18
 
19
19
  const {
20
20
  tomes,
@@ -1,5 +1,5 @@
1
1
  import type { Snippet } from 'svelte';
2
- import { Tome } from './tome.js';
2
+ import { Tome } from './tome.ts';
3
3
  type $$ComponentProps = {
4
4
  tomes: Array<Tome>;
5
5
  children: Snippet;
@@ -2,8 +2,8 @@
2
2
  import type {Snippet} from 'svelte';
3
3
  import type {SvelteHTMLElements} from 'svelte/elements';
4
4
 
5
- import type {Library} from './library.svelte.js';
6
- import type {Tome} from './tome.js';
5
+ import type {Library} from './library.svelte.ts';
6
+ import type {Tome} from './tome.ts';
7
7
  import LibrarySummary from './LibrarySummary.svelte';
8
8
 
9
9
  const {
@@ -1,7 +1,7 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { SvelteHTMLElements } from 'svelte/elements';
3
- import type { Library } from './library.svelte.js';
4
- import type { Tome } from './tome.js';
3
+ import type { Library } from './library.svelte.ts';
4
+ import type { Tome } from './tome.ts';
5
5
  type $$ComponentProps = SvelteHTMLElements['div'] & {
6
6
  tomes: Array<Tome>;
7
7
  library: Library;
@@ -1,10 +1,10 @@
1
1
  <script lang="ts">
2
- import {format_url, type Url} from '@fuzdev/fuz_util/url.js';
2
+ import {format_url, type Url} from '@fuzdev/fuz_util/url.ts';
3
3
  import type {Snippet} from 'svelte';
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
5
 
6
6
  import Svg from './Svg.svelte';
7
- import {logo_github} from './logos.js';
7
+ import {logo_github} from './logos.ts';
8
8
 
9
9
  const {
10
10
  repo_url,
@@ -1,4 +1,4 @@
1
- import { type Url } from '@fuzdev/fuz_util/url.js';
1
+ import { type Url } from '@fuzdev/fuz_util/url.ts';
2
2
  import type { Snippet } from 'svelte';
3
3
  import type { SvelteHTMLElements } from 'svelte/elements';
4
4
  type $$ComponentProps = SvelteHTMLElements['footer'] & {
@@ -1,13 +1,13 @@
1
1
  <script lang="ts">
2
2
  import type {Snippet} from 'svelte';
3
3
  import type {HTMLAttributes, SvelteHTMLElements} from 'svelte/elements';
4
- import type {OmitStrict} from '@fuzdev/fuz_util/types.js';
4
+ import type {OmitStrict} from '@fuzdev/fuz_util/types.ts';
5
5
 
6
6
  import ModuleLink from './ModuleLink.svelte';
7
7
  import DeclarationLink from './DeclarationLink.svelte';
8
- import {library_context} from './library.svelte.js';
9
- import type {Declaration} from './declaration.svelte.js';
10
- import type {Module} from './module.svelte.js';
8
+ import {library_context} from './library.svelte.ts';
9
+ import type {Declaration} from './declaration.svelte.ts';
10
+ import type {Module} from './module.svelte.ts';
11
11
 
12
12
  const {
13
13
  reference,
@@ -1,8 +1,8 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { HTMLAttributes, SvelteHTMLElements } from 'svelte/elements';
3
- import type { OmitStrict } from '@fuzdev/fuz_util/types.js';
4
- import type { Declaration } from './declaration.svelte.js';
5
- import type { Module } from './module.svelte.js';
3
+ import type { OmitStrict } from '@fuzdev/fuz_util/types.ts';
4
+ import type { Declaration } from './declaration.svelte.ts';
5
+ import type { Module } from './module.svelte.ts';
6
6
  type $$ComponentProps = // generic element attrs, the common denominator of the rendered roots -
7
7
  OmitStrict<HTMLAttributes<HTMLElement>, 'children'> & {
8
8
  reference: string;
@@ -14,7 +14,7 @@
14
14
  } = $props();
15
15
  </script>
16
16
 
17
- <div {...rest} class="docs-list {rest.class}" class:expand-width={expand_width} class:margin>
17
+ <div {...rest} class={['docs-list', rest.class, {'expand-width': expand_width, margin}]}>
18
18
  {@render children()}
19
19
  </div>
20
20
 
@@ -5,7 +5,7 @@
5
5
  import type {SvelteHTMLElements} from 'svelte/elements';
6
6
 
7
7
  import DocsList from './DocsList.svelte';
8
- import {tome_to_pathname, tome_to_title, type Tome} from './tome.js';
8
+ import {tome_to_pathname, tome_to_title, type Tome} from './tome.ts';
9
9
  import DocsMenuHeader from './DocsMenuHeader.svelte';
10
10
 
11
11
  const {
@@ -39,7 +39,7 @@
39
39
  {#each tomes as item (item)}
40
40
  {@const pathname = tome_to_pathname(item)}
41
41
  <li role="none" transition:slide>
42
- <a class="menuitem" href={pathname} class:selected={pathname === page.url.pathname}
42
+ <a class={['menuitem', {selected: pathname === page.url.pathname}]} href={pathname}
43
43
  ><div class="ellipsis">{tome_to_title(item)}</div></a
44
44
  >
45
45
  </li>
@@ -1,6 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { SvelteHTMLElements } from 'svelte/elements';
3
- import { type Tome } from './tome.js';
3
+ import { type Tome } from './tome.ts';
4
4
  type $$ComponentProps = SvelteHTMLElements['div'] & {
5
5
  tomes: Array<Tome>;
6
6
  children?: Snippet<[category: string]>;
@@ -4,7 +4,7 @@
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
5
 
6
6
  import DocsList from './DocsList.svelte';
7
- import {docs_links_context} from './docs_helpers.svelte.js';
7
+ import {docs_links_context} from './docs_helpers.svelte.ts';
8
8
 
9
9
  const {
10
10
  sidebar = true,
@@ -36,16 +36,17 @@
36
36
  <li
37
37
  role="none"
38
38
  transition:slide
39
- class:pl_xl={item.depth === 2}
40
- class:pl_xl2={item.depth === 3}
41
- class:pl_xl3={item.depth >= 4}
39
+ class={{pl_xl: item.depth === 2, pl_xl2: item.depth === 3, pl_xl3: item.depth >= 4}}
42
40
  >
43
41
  <a
44
- class="menuitem"
45
- href="#{item.fragment}"
46
- class:selected={item.fragment === hash}
47
- class:highlighted={docs_links.fragments_onscreen.has(item.fragment)}
48
- ><div class="ellipsis">{item.text}</div></a
42
+ class={[
43
+ 'menuitem',
44
+ {
45
+ selected: item.fragment === hash,
46
+ highlighted: docs_links.fragments_onscreen.has(item.fragment),
47
+ },
48
+ ]}
49
+ href="#{item.fragment}"><div class="ellipsis">{item.text}</div></a
49
50
  >
50
51
  </li>
51
52
  {/each}
@@ -1 +1 @@
1
- {"version":3,"file":"DocsPageLinks.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/DocsPageLinks.svelte"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAKvD,KAAK,gBAAgB,GAAI,kBAAkB,CAAC,KAAK,CAAC,GAAG;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AA6CH,QAAA,MAAM,aAAa,sDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"DocsPageLinks.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/DocsPageLinks.svelte"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAKvD,KAAK,gBAAgB,GAAI,kBAAkB,CAAC,KAAK,CAAC,GAAG;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAmDH,QAAA,MAAM,aAAa,sDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import {is_iframed} from '@fuzdev/fuz_util/dom.js';
2
+ import {is_iframed} from '@fuzdev/fuz_util/dom.ts';
3
3
  import type {Snippet} from 'svelte';
4
4
  import {scrollY} from 'svelte/reactivity/window';
5
5
  import type {SvelteHTMLElements} from 'svelte/elements';
@@ -20,7 +20,7 @@
20
20
  </script>
21
21
 
22
22
  {#if enabled}
23
- <div {...rest} class="docs-primary-nav {rest.class}" class:scrolled>
23
+ <div {...rest} class={['docs-primary-nav', rest.class, {scrolled}]}>
24
24
  <div class="background" aria-hidden="true"></div>
25
25
  <div class="content">
26
26
  <nav aria-label="Primary nav">
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import type {SvelteHTMLElements} from 'svelte/elements';
3
3
 
4
- import {icon_close} from './icons.js';
4
+ import {icon_close} from './icons.ts';
5
5
  import Svg from './Svg.svelte';
6
6
 
7
7
  let {
@@ -2,7 +2,7 @@
2
2
  import type {SvelteHTMLElements} from 'svelte/elements';
3
3
 
4
4
  import DocsMenu from './DocsMenu.svelte';
5
- import {Tome} from './tome.js';
5
+ import {Tome} from './tome.ts';
6
6
 
7
7
  const {
8
8
  tomes,
@@ -16,7 +16,7 @@
16
16
  const expand_width = $derived(!sidebar);
17
17
  </script>
18
18
 
19
- <aside {...rest} class="docs-secondary-nav unstyled {rest.class}" class:sidebar>
19
+ <aside {...rest} class={['docs-secondary-nav unstyled', rest.class, {sidebar}]}>
20
20
  <nav aria-label="Secondary nav">
21
21
  <DocsMenu {tomes} {expand_width} />
22
22
  </nav>
@@ -1,5 +1,5 @@
1
1
  import type { SvelteHTMLElements } from 'svelte/elements';
2
- import { Tome } from './tome.js';
2
+ import { Tome } from './tome.ts';
3
3
  type $$ComponentProps = SvelteHTMLElements['aside'] & {
4
4
  tomes: Array<Tome>;
5
5
  sidebar?: boolean;
@@ -3,9 +3,9 @@
3
3
  import type {SvelteHTMLElements} from 'svelte/elements';
4
4
 
5
5
  import DocsPageLinks from './DocsPageLinks.svelte';
6
- import {tome_to_pathname, Tome} from './tome.js';
7
- import {docs_links_context} from './docs_helpers.svelte.js';
8
- import {library_context} from './library.svelte.js';
6
+ import {tome_to_pathname, Tome} from './tome.ts';
7
+ import {docs_links_context} from './docs_helpers.svelte.ts';
8
+ import {library_context} from './library.svelte.ts';
9
9
  import TomeLink from './TomeLink.svelte';
10
10
  import ModuleLink from './ModuleLink.svelte';
11
11
  import DeclarationLink from './DeclarationLink.svelte';
@@ -1,5 +1,5 @@
1
1
  import type { SvelteHTMLElements } from 'svelte/elements';
2
- import { Tome } from './tome.js';
2
+ import { Tome } from './tome.ts';
3
3
  type $$ComponentProps = SvelteHTMLElements['aside'] & {
4
4
  tomes: Array<Tome>;
5
5
  tomes_by_slug: Map<string, Tome>;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import type {SvelteHTMLElements} from 'svelte/elements';
3
3
 
4
- import {FUZ_DEV_URL} from './constants.js';
4
+ import {FUZ_DEV_URL} from './constants.ts';
5
5
 
6
6
  const {
7
7
  selected,
@@ -14,7 +14,7 @@
14
14
  <ul {...rest}>
15
15
  <li>
16
16
  <!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
17
- <a rel="me" href={FUZ_DEV_URL} class:selected={selected === 'fuz.dev'}>fuz.dev</a>
17
+ <a rel="me" href={FUZ_DEV_URL} class={{selected: selected === 'fuz.dev'}}>fuz.dev</a>
18
18
  - the Fuz stack homepage{#if selected === 'fuz.dev'}, you are here{/if}
19
19
  </li>
20
20
  <li>
@@ -1,10 +1,10 @@
1
1
  <script lang="ts">
2
- import {ensure_start, strip_start} from '@fuzdev/fuz_util/string.js';
2
+ import {ensure_start, strip_start} from '@fuzdev/fuz_util/string.ts';
3
3
  import type {SvelteHTMLElements} from 'svelte/elements';
4
4
  import {DEV} from 'esm-env';
5
5
 
6
6
  import Svg from './Svg.svelte';
7
- import {logo_github} from './logos.js';
7
+ import {logo_github} from './logos.ts';
8
8
 
9
9
  const {
10
10
  path,
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type {Hue} from '@fuzdev/fuz_util/colors.js';
2
+ import type {Hue} from '@fuzdev/fuz_util/colors.ts';
3
3
  import type {Snippet} from 'svelte';
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
5
 
@@ -1,4 +1,4 @@
1
- import type { Hue } from '@fuzdev/fuz_util/colors.js';
1
+ import type { Hue } from '@fuzdev/fuz_util/colors.ts';
2
2
  import type { Snippet } from 'svelte';
3
3
  import type { SvelteHTMLElements } from 'svelte/elements';
4
4
  type $$ComponentProps = SvelteHTMLElements['div'] & {
@@ -9,16 +9,16 @@ with file-type coloring. Uses svelte-docinfo's file type predicates for module c
9
9
  -->
10
10
  <script lang="ts">
11
11
  import {page} from '$app/state';
12
- import {format_url} from '@fuzdev/fuz_util/url.js';
13
- import type {OmitStrict} from '@fuzdev/fuz_util/types.js';
12
+ import {format_url} from '@fuzdev/fuz_util/url.ts';
13
+ import type {OmitStrict} from '@fuzdev/fuz_util/types.ts';
14
14
  import type {Snippet} from 'svelte';
15
15
  import type {SvelteHTMLElements} from 'svelte/elements';
16
16
 
17
- import {library_context, type Library} from './library.svelte.js';
17
+ import {library_context, type Library} from './library.svelte.ts';
18
18
  import ImgOrSvg from './ImgOrSvg.svelte';
19
19
  import DeclarationLink from './DeclarationLink.svelte';
20
20
  import ModuleLink from './ModuleLink.svelte';
21
- import {url_github_file} from '@fuzdev/fuz_util/package_helpers.js';
21
+ import {url_github_file} from '@fuzdev/fuz_util/package_helpers.ts';
22
22
  import {isTypescript, isSvelte, isCss, isJson} from 'svelte-docinfo/source.js';
23
23
 
24
24
  const {
@@ -106,8 +106,7 @@ with file-type coloring. Uses svelte-docinfo's file type predicates for module c
106
106
  <span class="title">homepage</span>
107
107
  <div class="content">
108
108
  <a
109
- class="chip"
110
- class:selected={library.homepage_url === page.url.href}
109
+ class={['chip', {selected: library.homepage_url === page.url.href}]}
111
110
  href={library.homepage_url}
112
111
  >
113
112
  {#if library.logo_url}
@@ -168,11 +167,15 @@ with file-type coloring. Uses svelte-docinfo's file type predicates for module c
168
167
  {#each library.modules as module (module.path)}
169
168
  <!-- TODO improve rendering and enrich data - start with the type (not just extension - mime?) -->
170
169
  <li
171
- class="module"
172
- class:ts={isTypescript(module.path)}
173
- class:svelte={isSvelte(module.path)}
174
- class:css={isCss(module.path)}
175
- class:json={isJson(module.path)}
170
+ class={[
171
+ 'module',
172
+ {
173
+ ts: isTypescript(module.path),
174
+ svelte: isSvelte(module.path),
175
+ css: isCss(module.path),
176
+ json: isJson(module.path),
177
+ },
178
+ ]}
176
179
  >
177
180
  <div class="module-content">
178
181
  <span class="font_size_xl">
@@ -1,7 +1,7 @@
1
- import type { OmitStrict } from '@fuzdev/fuz_util/types.js';
1
+ import type { OmitStrict } from '@fuzdev/fuz_util/types.ts';
2
2
  import type { Snippet } from 'svelte';
3
3
  import type { SvelteHTMLElements } from 'svelte/elements';
4
- import { type Library } from './library.svelte.js';
4
+ import { type Library } from './library.svelte.ts';
5
5
  type $$ComponentProps = OmitStrict<SvelteHTMLElements['div'], 'children'> & {
6
6
  library: Library;
7
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"LibraryDetail.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/LibraryDetail.svelte"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AACpC,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAkB,KAAK,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAOjE,KAAK,gBAAgB,GAAI,UAAU,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IAC5E,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;CACvC,CAAC;AAsKH;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,sDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"LibraryDetail.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/LibraryDetail.svelte"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AACpC,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAkB,KAAK,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAOjE,KAAK,gBAAgB,GAAI,UAAU,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IAC5E,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;CACvC,CAAC;AA8KH;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,sDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
@@ -2,9 +2,9 @@
2
2
  import {page} from '$app/state';
3
3
  import type {Snippet} from 'svelte';
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
- import {format_url} from '@fuzdev/fuz_util/url.js';
5
+ import {format_url} from '@fuzdev/fuz_util/url.ts';
6
6
 
7
- import type {Library} from './library.svelte.js';
7
+ import type {Library} from './library.svelte.ts';
8
8
  import ImgOrSvg from './ImgOrSvg.svelte';
9
9
 
10
10
  const {
@@ -83,8 +83,7 @@
83
83
  <div class="mb_lg">
84
84
  <!-- eslint-disable svelte/no-navigation-without-resolve -->
85
85
  <a
86
- class="chip"
87
- class:selected={library.homepage_url === page.url.href}
86
+ class={['chip', {selected: library.homepage_url === page.url.href}]}
88
87
  href={library.homepage_url}>{format_url(library.homepage_url)}</a
89
88
  >
90
89
  <!-- eslint-enable svelte/no-navigation-without-resolve -->
@@ -1,6 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { SvelteHTMLElements } from 'svelte/elements';
3
- import type { Library } from './library.svelte.js';
3
+ import type { Library } from './library.svelte.ts';
4
4
  type $$ComponentProps = SvelteHTMLElements['div'] & {
5
5
  library: Library;
6
6
  repo_name?: Snippet<[repo_name: string]>;
@@ -1,9 +1,9 @@
1
1
  <script lang="ts">
2
- import {ensure_start, strip_end, strip_start} from '@fuzdev/fuz_util/string.js';
2
+ import {ensure_start, strip_end, strip_start} from '@fuzdev/fuz_util/string.ts';
3
3
  import type {SvelteHTMLElements} from 'svelte/elements';
4
4
 
5
5
  import Svg from './Svg.svelte';
6
- import {logo_mdn} from './logos.js';
6
+ import {logo_mdn} from './logos.ts';
7
7
 
8
8
  const {
9
9
  path,
@@ -1,10 +1,10 @@
1
1
  <script lang="ts">
2
2
  import type {SvelteHTMLElements} from 'svelte/elements';
3
- import {ensure_start} from '@fuzdev/fuz_util/string.js';
3
+ import {ensure_start} from '@fuzdev/fuz_util/string.ts';
4
4
 
5
- import {library_context} from './library.svelte.js';
6
- import {contextmenu_attachment} from './contextmenu_state.svelte.js';
7
- import {create_module_contextmenu} from './module_contextmenu.js';
5
+ import {library_context} from './library.svelte.ts';
6
+ import {contextmenu_attachment} from './contextmenu_state.svelte.ts';
7
+ import {create_module_contextmenu} from './module_contextmenu.ts';
8
8
 
9
9
  const {
10
10
  module_path,
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type {OmitStrict} from '@fuzdev/fuz_util/types.js';
2
+ import type {OmitStrict} from '@fuzdev/fuz_util/types.ts';
3
3
  import type {Snippet} from 'svelte';
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
5
 
@@ -21,10 +21,12 @@
21
21
 
22
22
  <span
23
23
  {...rest}
24
- class="pending-animation {rest.class} {inline
25
- ? 'display:inline-flex align-items:center'
26
- : 'display:flex'}"
27
- class:running
24
+ class={[
25
+ 'pending-animation',
26
+ rest.class,
27
+ inline ? 'display:inline-flex align-items:center' : 'display:flex',
28
+ {running},
29
+ ]}
28
30
  ><span {...item_attrs} style:animation-delay="0s"
29
31
  >{#if children}{@render children(0)}{:else}•{/if}</span
30
32
  ><span {...item_attrs} style:animation-delay="0.09s"
@@ -1,4 +1,4 @@
1
- import type { OmitStrict } from '@fuzdev/fuz_util/types.js';
1
+ import type { OmitStrict } from '@fuzdev/fuz_util/types.ts';
2
2
  import type { Snippet } from 'svelte';
3
3
  import type { SvelteHTMLElements } from 'svelte/elements';
4
4
  type $$ComponentProps = OmitStrict<SvelteHTMLElements['span'], 'children'> & {
@@ -1 +1 @@
1
- {"version":3,"file":"PendingAnimation.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/PendingAnimation.svelte"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AACpC,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAEvD,KAAK,gBAAgB,GAAI,UAAU,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG;IAC7E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;CACpC,CAAC;AAyBH,QAAA,MAAM,gBAAgB,sDAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"PendingAnimation.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/PendingAnimation.svelte"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AACpC,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAEvD,KAAK,gBAAgB,GAAI,UAAU,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG;IAC7E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;CACpC,CAAC;AA4BH,QAAA,MAAM,gBAAgB,sDAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
@@ -30,9 +30,8 @@
30
30
  bind:this={el}
31
31
  type="button"
32
32
  {...rest}
33
- class="pending-button {rest.class}"
33
+ class={['pending-button', rest.class, {pending}]}
34
34
  disabled={disabled_prop ?? pending}
35
- class:pending
36
35
  {onclick}
37
36
  >
38
37
  <span class="content">
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import Svg from './Svg.svelte';
3
- import type {SvgData} from './svg.js';
3
+ import type {SvgData} from './svg.ts';
4
4
  import {
5
5
  // TODO when fuz.dev is ready
6
6
  // logo_fuz,
@@ -16,7 +16,7 @@
16
16
  logo_fuz_docs,
17
17
  logo_svelte_docinfo,
18
18
  logo_fuz_app,
19
- } from './logos.js';
19
+ } from './logos.ts';
20
20
 
21
21
  // TODO refactor
22
22
  interface ProjectItem {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {page} from '$app/state';
3
- import {strip_start} from '@fuzdev/fuz_util/string.js';
3
+ import {strip_start} from '@fuzdev/fuz_util/string.ts';
4
4
  import {goto} from '$app/navigation';
5
5
  import {onMount, type Snippet} from 'svelte';
6
6
 
@@ -6,12 +6,12 @@
6
6
  </script>
7
7
 
8
8
  <script lang="ts">
9
- import {random_int, shuffle} from '@fuzdev/fuz_util/random.js';
10
- import {create_random_alea} from '@fuzdev/fuz_util/random_alea.js';
9
+ import {random_int, shuffle} from '@fuzdev/fuz_util/random.ts';
10
+ import {create_random_alea} from '@fuzdev/fuz_util/random_alea.ts';
11
11
  import type {SvelteHTMLElements} from 'svelte/elements';
12
12
 
13
13
  import Svg from './Svg.svelte';
14
- import {logo_fuz} from './logos.js';
14
+ import {logo_fuz} from './logos.ts';
15
15
 
16
16
  const {
17
17
  spiders = [
@@ -1,8 +1,8 @@
1
1
  <script lang="ts">
2
2
  import type {SvelteHTMLElements} from 'svelte/elements';
3
- import {default_variables} from '@fuzdev/fuz_css/variables.js';
3
+ import {default_variables} from '@fuzdev/fuz_css/variables.ts';
4
4
 
5
- import {selected_variable_context} from './style_variable_helpers.svelte.js';
5
+ import {selected_variable_context} from './style_variable_helpers.svelte.ts';
6
6
 
7
7
  const {
8
8
  name,
@@ -31,8 +31,7 @@
31
31
  <button
32
32
  type="button"
33
33
  {...rest}
34
- class:inline
35
- class:plain
34
+ class={[rest.class, {inline, plain}]}
36
35
  onclick={(e) => {
37
36
  selected_variable.value = variable;
38
37
  onclick?.(e);
package/dist/Svg.svelte CHANGED
@@ -1,8 +1,8 @@
1
1
  <script lang="ts">
2
- import {ensure_end} from '@fuzdev/fuz_util/string.js';
2
+ import {ensure_end} from '@fuzdev/fuz_util/string.ts';
3
3
  import type {SvelteHTMLElements} from 'svelte/elements';
4
4
 
5
- import type {SvgData} from './svg.js';
5
+ import type {SvgData} from './svg.ts';
6
6
 
7
7
  /**
8
8
  * Renders an `SvgData` icon definition to inline `svg` markup, never via `@html`.
@@ -30,7 +30,7 @@
30
30
  const {
31
31
  data,
32
32
  fill,
33
- size = 'var(--font_size, auto)',
33
+ size = 'var(--font_size, 1em)',
34
34
  width,
35
35
  height,
36
36
  label,
@@ -79,7 +79,7 @@
79
79
  viewBox={data.viewBox ?? '0 0 100 100'}
80
80
  {...rest}
81
81
  aria-label={label ?? data.label ?? rest['aria-label']}
82
- class:inline
82
+ class={[rest.class, {inline}]}
83
83
  style:width={final_width}
84
84
  style:height={final_height}
85
85
  style:flex-shrink={shrink ? 1 : 0}
@@ -1,5 +1,5 @@
1
1
  import type { SvelteHTMLElements } from 'svelte/elements';
2
- import type { SvgData } from './svg.js';
2
+ import type { SvgData } from './svg.ts';
3
3
  type $$ComponentProps = SvelteHTMLElements['svg'] & {
4
4
  data: SvgData;
5
5
  /**
@@ -1,10 +1,10 @@
1
1
  <script lang="ts">
2
- import {swallow} from '@fuzdev/fuz_util/dom.js';
3
- import type {Theme} from '@fuzdev/fuz_css/theme.js';
4
- import {default_themes} from '@fuzdev/fuz_css/themes.js';
2
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
3
+ import type {Theme} from '@fuzdev/fuz_css/theme.ts';
4
+ import {default_themes} from '@fuzdev/fuz_css/themes.ts';
5
5
  import type {SvelteHTMLElements} from 'svelte/elements';
6
6
 
7
- import {theme_state_context} from './theme_state.svelte.js';
7
+ import {theme_state_context} from './theme_state.svelte.ts';
8
8
 
9
9
  const get_theme_state = theme_state_context.get();
10
10
 
@@ -35,11 +35,10 @@
35
35
  <li class="row" role="none">
36
36
  <button
37
37
  type="button"
38
- class="theme-button color_a"
38
+ class={['theme-button color_a', {selected}]}
39
39
  role="menuitemradio"
40
40
  aria-label="{theme.name} theme"
41
41
  aria-checked={selected}
42
- class:selected
43
42
  onclick={(e) => {
44
43
  swallow(e);
45
44
  if (select?.(theme) !== false) {
@@ -1,4 +1,4 @@
1
- import type { Theme } from '@fuzdev/fuz_css/theme.js';
1
+ import type { Theme } from '@fuzdev/fuz_css/theme.ts';
2
2
  import type { SvelteHTMLElements } from 'svelte/elements';
3
3
  type $$ComponentProps = SvelteHTMLElements['menu'] & {
4
4
  selected_theme?: {