@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/README.md CHANGED
@@ -64,7 +64,7 @@ import 'virtual:fuz.css';
64
64
  import ThemeRoot from '@fuzdev/fuz_ui/ThemeRoot.svelte';
65
65
 
66
66
  // and Fuz TypeScript modules:
67
- import {type Theme, theme_state_context} from '@fuzdev/fuz_ui/theme_state.svelte.js';
67
+ import {type Theme, theme_state_context} from '@fuzdev/fuz_ui/theme_state.svelte.ts';
68
68
  ```
69
69
 
70
70
  See [the library](https://ui.fuz.dev/docs) for more.
package/dist/Alert.svelte CHANGED
@@ -2,7 +2,7 @@
2
2
  import type {Snippet} from 'svelte';
3
3
  import type {HTMLAttributes, SvelteHTMLElements} from 'svelte/elements';
4
4
 
5
- import {alert_status_options, type AlertStatus} from './alert.js';
5
+ import {alert_status_options, type AlertStatus} from './alert.ts';
6
6
 
7
7
  /**
8
8
  * @see {@link https://www.w3.org/WAI/ARIA/apg/patterns/alert/}
@@ -1,6 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { HTMLAttributes, SvelteHTMLElements } from 'svelte/elements';
3
- import { type AlertStatus } from './alert.js';
3
+ import { type AlertStatus } from './alert.ts';
4
4
  type $$ComponentProps = // generic element attrs, the common denominator of the rendered roots -
5
5
  HTMLAttributes<HTMLElement> & {
6
6
  status?: AlertStatus;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type {Declaration} from './declaration.svelte.js';
2
+ import type {Declaration} from './declaration.svelte.ts';
3
3
  import DeclarationDetail from './DeclarationDetail.svelte';
4
4
  import TomeSection from './TomeSection.svelte';
5
5
  import TomeSectionHeader from './TomeSectionHeader.svelte';
@@ -1,4 +1,4 @@
1
- import type { Declaration } from './declaration.svelte.js';
1
+ import type { Declaration } from './declaration.svelte.ts';
2
2
  type $$ComponentProps = {
3
3
  declarations: Array<Declaration>;
4
4
  search_query?: string;
@@ -1,12 +1,12 @@
1
1
  <script lang="ts">
2
- import {set_library_context_with_fallback, type Library} from './library.svelte.js';
3
- import {tome_get_by_slug, type Tome} from './tome.js';
2
+ import {set_library_context_with_fallback, type Library} from './library.svelte.ts';
3
+ import {tome_get_by_slug, type Tome} from './tome.ts';
4
4
  import TomeContent from './TomeContent.svelte';
5
5
  import TomeLink from './TomeLink.svelte';
6
6
  import DocsSearch from './DocsSearch.svelte';
7
7
  import ApiModulesList from './ApiModulesList.svelte';
8
8
  import ApiDeclarationList from './ApiDeclarationList.svelte';
9
- import {create_api_search} from './api_search.svelte.js';
9
+ import {create_api_search} from './api_search.svelte.ts';
10
10
 
11
11
  const {
12
12
  library: library_prop,
@@ -1,5 +1,5 @@
1
- import { type Library } from './library.svelte.js';
2
- import { type Tome } from './tome.js';
1
+ import { type Library } from './library.svelte.ts';
2
+ import { type Tome } from './tome.ts';
3
3
  type $$ComponentProps = {
4
4
  /**
5
5
  * The library instance to render API docs for.
@@ -5,10 +5,10 @@
5
5
  mdz_code_context,
6
6
  mdz_codeblock_context,
7
7
  mdz_set_context_with_fallback,
8
- } from '@fuzdev/mdz/mdz_contexts.js';
8
+ } from '@fuzdev/mdz/mdz_contexts.ts';
9
9
 
10
- import {set_library_context_with_fallback, type Library} from './library.svelte.js';
11
- import {tome_get_by_slug, type Tome} from './tome.js';
10
+ import {set_library_context_with_fallback, type Library} from './library.svelte.ts';
11
+ import {tome_get_by_slug, type Tome} from './tome.ts';
12
12
  import TomeContent from './TomeContent.svelte';
13
13
  import TomeSection from './TomeSection.svelte';
14
14
  import TomeSectionHeader from './TomeSectionHeader.svelte';
@@ -17,7 +17,7 @@
17
17
  import DocsLink from './DocsLink.svelte';
18
18
  import DeclarationLink from './DeclarationLink.svelte';
19
19
  import ApiDeclarationList from './ApiDeclarationList.svelte';
20
- import {create_module_declaration_search} from './api_search.svelte.js';
20
+ import {create_module_declaration_search} from './api_search.svelte.ts';
21
21
 
22
22
  const {
23
23
  module_path: module_path_param,
@@ -1,5 +1,5 @@
1
- import { type Library } from './library.svelte.js';
2
- import { type Tome } from './tome.js';
1
+ import { type Library } from './library.svelte.ts';
2
+ import { type Tome } from './tome.ts';
3
3
  type $$ComponentProps = {
4
4
  /**
5
5
  * The module path parameter from the route (e.g., "lib/Button.svelte").
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type {Module} from './module.svelte.js';
2
+ import type {Module} from './module.svelte.ts';
3
3
  import ModuleLink from './ModuleLink.svelte';
4
4
  import TomeSection from './TomeSection.svelte';
5
5
  import TomeSectionHeader from './TomeSectionHeader.svelte';
@@ -1,4 +1,4 @@
1
- import type { Module } from './module.svelte.js';
1
+ import type { Module } from './module.svelte.ts';
2
2
  type $$ComponentProps = {
3
3
  /**
4
4
  * The modules to display.
@@ -1,13 +1,13 @@
1
1
  <script lang="ts">
2
- import {parse_path_pieces} from '@fuzdev/fuz_util/path.js';
2
+ import {parse_path_pieces} from '@fuzdev/fuz_util/path.ts';
3
3
  import {resolve} from '$app/paths';
4
4
  import {page} from '$app/state';
5
5
  import type {Snippet} from 'svelte';
6
- import {strip_start, ensure_end} from '@fuzdev/fuz_util/string.js';
6
+ import {strip_start, ensure_end} from '@fuzdev/fuz_util/string.ts';
7
7
  import type {SvelteHTMLElements} from 'svelte/elements';
8
8
 
9
9
  import Svg from './Svg.svelte';
10
- import {site_context} from './site.svelte.js';
10
+ import {site_context} from './site.svelte.ts';
11
11
 
12
12
  const {
13
13
  path,
@@ -61,14 +61,14 @@
61
61
 
62
62
  <div {...rest} class="breadcrumb {rest.class}">
63
63
  <!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
64
- <a href={root_path} class:selected={root_path === final_base_path + final_selected_path}
64
+ <a href={root_path} class={{selected: root_path === final_base_path + final_selected_path}}
65
65
  >{#if children}{@render children()}{:else if icon_data}<Svg
66
66
  data={icon_data}
67
67
  size="1em"
68
68
  />{:else if glyph_text}{glyph_text}{:else}•{/if}</a
69
69
  >{#each path_pieces as path_piece (path_piece)}{#if path_piece.type === 'piece'}<!-- eslint-disable-next-line svelte/no-navigation-without-resolve --><a
70
70
  href={final_base_path + path_piece.path}
71
- class:selected={path_piece.path === final_selected_path}>{path_piece.name}</a
71
+ class={{selected: path_piece.path === final_selected_path}}>{path_piece.name}</a
72
72
  >{:else}<span class="separator"
73
73
  >{#if separator}{@render separator()}{:else}/{/if}</span
74
74
  >{/if}{/each}
package/dist/Card.svelte CHANGED
@@ -55,13 +55,7 @@
55
55
  this={final_tag}
56
56
  {...rest}
57
57
  {...inferred_attrs}
58
- class="card {rest.class} {inferred_attrs?.class}"
59
- class:link
60
- class:selected
61
- class:left
62
- class:right
63
- class:above
64
- class:below
58
+ class={['card', rest.class, inferred_attrs?.class, {link, selected, left, right, above, below}]}
65
59
  >
66
60
  {#if align === 'left' || align === 'above'}
67
61
  {@render icon_snippet()}
@@ -1,9 +1,9 @@
1
1
  <script lang="ts">
2
- import {swallow} from '@fuzdev/fuz_util/dom.js';
3
- import {color_schemes, type ColorScheme} from '@fuzdev/fuz_css/theme.js';
2
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
3
+ import {color_schemes, type ColorScheme} from '@fuzdev/fuz_css/theme.ts';
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
5
 
6
- import {theme_state_context} from './theme_state.svelte.js';
6
+ import {theme_state_context} from './theme_state.svelte.ts';
7
7
 
8
8
  const get_theme_state = theme_state_context.get();
9
9
 
@@ -22,12 +22,11 @@ https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/menubar_ro
22
22
  {@const selected = color_scheme === value.color_scheme}
23
23
  <button
24
24
  type="button"
25
- class="color-scheme color_a"
25
+ class={['color-scheme color_a', {selected}]}
26
26
  role="menuitemradio"
27
27
  title={selected
28
28
  ? `${color_scheme} color scheme is selected`
29
29
  : `select ${color_scheme} color scheme`}
30
- class:selected
31
30
  aria-checked={selected}
32
31
  onclick={(e) => {
33
32
  swallow(e);
@@ -1,4 +1,4 @@
1
- import { type ColorScheme } from '@fuzdev/fuz_css/theme.js';
1
+ import { type ColorScheme } from '@fuzdev/fuz_css/theme.ts';
2
2
  import type { SvelteHTMLElements } from 'svelte/elements';
3
3
  type $$ComponentProps = SvelteHTMLElements['menu'] & {
4
4
  value?: {
@@ -2,7 +2,7 @@
2
2
  import type {Snippet} from 'svelte';
3
3
  import type {SvelteHTMLElements} from 'svelte/elements';
4
4
 
5
- import {contextmenu_attachment} from './contextmenu_state.svelte.js';
5
+ import {contextmenu_attachment} from './contextmenu_state.svelte.ts';
6
6
 
7
7
  /* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
8
8
 
@@ -1,10 +1,10 @@
1
1
  <script lang="ts">
2
2
  import {onDestroy, type Snippet} from 'svelte';
3
- import {swallow} from '@fuzdev/fuz_util/dom.js';
3
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
4
4
 
5
5
  import PendingAnimation from './PendingAnimation.svelte';
6
- import {contextmenu_context, type ContextmenuRun} from './contextmenu_state.svelte.js';
7
- import type {SvgData} from './svg.js';
6
+ import {contextmenu_context, type ContextmenuRun} from './contextmenu_state.svelte.ts';
7
+ import type {SvgData} from './svg.ts';
8
8
  import ContextmenuIcon from './ContextmenuIcon.svelte';
9
9
 
10
10
  const {
@@ -40,9 +40,7 @@
40
40
  <!-- disabling the a11y warning because a parent element handles keyboard events -->
41
41
  <!-- svelte-ignore a11y_click_events_have_key_events -->
42
42
  <li
43
- class="menuitem plain selectable deselectable"
44
- class:selected
45
- class:disabled
43
+ class={['menuitem plain selectable deselectable', {selected, disabled}]}
46
44
  role="menuitem"
47
45
  aria-disabled={disabled}
48
46
  tabindex="-1"
@@ -1,6 +1,6 @@
1
1
  import { type Snippet } from 'svelte';
2
- import { type ContextmenuRun } from './contextmenu_state.svelte.js';
3
- import type { SvgData } from './svg.js';
2
+ import { type ContextmenuRun } from './contextmenu_state.svelte.ts';
3
+ import type { SvgData } from './svg.ts';
4
4
  type $$ComponentProps = {
5
5
  run: ContextmenuRun;
6
6
  icon?: SvgData | string | Snippet;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import type {Snippet} from 'svelte';
3
3
 
4
- import type {SvgData} from './svg.js';
4
+ import type {SvgData} from './svg.ts';
5
5
  import Svg from './Svg.svelte';
6
6
 
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  import type { Snippet } from 'svelte';
2
- import type { SvgData } from './svg.js';
2
+ import type { SvgData } from './svg.ts';
3
3
  type $$ComponentProps = {
4
4
  icon?: SvgData | string | Snippet;
5
5
  };
@@ -1,12 +1,12 @@
1
1
  <script lang="ts">
2
- import {strip_start} from '@fuzdev/fuz_util/string.js';
3
- import {swallow} from '@fuzdev/fuz_util/dom.js';
2
+ import {strip_start} from '@fuzdev/fuz_util/string.ts';
3
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
4
4
  import type {Snippet} from 'svelte';
5
5
  import {page} from '$app/state';
6
6
 
7
- import {contextmenu_context} from './contextmenu_state.svelte.js';
8
- import {icon_external_link, icon_link} from './icons.js';
9
- import type {SvgData} from './svg.js';
7
+ import {contextmenu_context} from './contextmenu_state.svelte.ts';
8
+ import {icon_external_link, icon_link} from './icons.ts';
9
+ import type {SvgData} from './svg.ts';
10
10
  import Svg from './Svg.svelte';
11
11
  import ContextmenuIcon from './ContextmenuIcon.svelte';
12
12
 
@@ -64,10 +64,7 @@
64
64
  <!-- eslint-disable svelte/no-navigation-without-resolve -->
65
65
  <a
66
66
  bind:this={anchor_el}
67
- class="menuitem plain"
68
- class:selected
69
- class:disabled
70
- class:deselectable={!disabled}
67
+ class={['menuitem plain', {selected, disabled, deselectable: !disabled}]}
71
68
  role="menuitem"
72
69
  aria-disabled={disabled}
73
70
  aria-current={current_page ? 'page' : undefined}
@@ -1,5 +1,5 @@
1
1
  import type { Snippet } from 'svelte';
2
- import type { SvgData } from './svg.js';
2
+ import type { SvgData } from './svg.ts';
3
3
  type $$ComponentProps = {
4
4
  href: string;
5
5
  icon?: SvgData | string | Snippet;
@@ -13,13 +13,13 @@
13
13
  * the roots own gesture detection, i.e. how the menu opens. Holds no gesture
14
14
  * state of its own; the `open_guard` it consults is owned and armed by the root.
15
15
  */
16
- import {swallow} from '@fuzdev/fuz_util/dom.js';
16
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
17
17
  import type {ComponentProps, Snippet} from 'svelte';
18
18
 
19
19
  import {
20
20
  contextmenu_dimensions_context,
21
21
  type ContextmenuState,
22
- } from './contextmenu_state.svelte.js';
22
+ } from './contextmenu_state.svelte.ts';
23
23
  import ContextmenuLinkEntry from './ContextmenuLinkEntry.svelte';
24
24
  import ContextmenuTextEntry from './ContextmenuTextEntry.svelte';
25
25
  import ContextmenuSeparator from './ContextmenuSeparator.svelte';
@@ -31,7 +31,7 @@
31
31
  contextmenu_calculate_constrained_y,
32
32
  contextmenu_popover_attachment,
33
33
  type ContextmenuOpenGuard,
34
- } from './contextmenu_helpers.js';
34
+ } from './contextmenu_helpers.ts';
35
35
 
36
36
  let {
37
37
  contextmenu,
@@ -1,10 +1,10 @@
1
1
  export { link_entry_default, text_entry_default, separator_entry_default };
2
2
  import type { ComponentProps, Snippet } from 'svelte';
3
- import { type ContextmenuState } from './contextmenu_state.svelte.js';
3
+ import { type ContextmenuState } from './contextmenu_state.svelte.ts';
4
4
  import ContextmenuLinkEntry from './ContextmenuLinkEntry.svelte';
5
5
  import ContextmenuTextEntry from './ContextmenuTextEntry.svelte';
6
6
  import ContextmenuSeparator from './ContextmenuSeparator.svelte';
7
- import { type ContextmenuOpenGuard } from './contextmenu_helpers.js';
7
+ import { type ContextmenuOpenGuard } from './contextmenu_helpers.ts';
8
8
  type $$ComponentProps = {
9
9
  /**
10
10
  * The contextmenu state owned by the root.
@@ -20,7 +20,7 @@
20
20
  contextmenu_context,
21
21
  ContextmenuState,
22
22
  contextmenu_check_global_root,
23
- } from './contextmenu_state.svelte.js';
23
+ } from './contextmenu_state.svelte.ts';
24
24
  import ContextmenuMenu, {
25
25
  link_entry_default,
26
26
  text_entry_default,
@@ -36,7 +36,7 @@
36
36
  ContextmenuBypassTracker,
37
37
  ContextmenuOpenGuard,
38
38
  type ContextmenuRootBaseProps,
39
- } from './contextmenu_helpers.js';
39
+ } from './contextmenu_helpers.ts';
40
40
 
41
41
  const {
42
42
  contextmenu = new ContextmenuState(),
@@ -1,4 +1,4 @@
1
- import { type ContextmenuRootBaseProps } from './contextmenu_helpers.js';
1
+ import { type ContextmenuRootBaseProps } from './contextmenu_helpers.ts';
2
2
  declare const ContextmenuRoot: import("svelte").Component<ContextmenuRootBaseProps, {}, "">;
3
3
  type ContextmenuRoot = ReturnType<typeof ContextmenuRoot>;
4
4
  export default ContextmenuRoot;
@@ -17,7 +17,7 @@
17
17
  * Otherwise, use the default `ContextmenuRoot.svelte` which is much simpler
18
18
  * and relies on the standard `contextmenu` event.
19
19
  */
20
- import {swallow} from '@fuzdev/fuz_util/dom.js';
20
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
21
21
  import {on} from 'svelte/events';
22
22
 
23
23
  import {
@@ -25,7 +25,7 @@
25
25
  ContextmenuState,
26
26
  contextmenu_open,
27
27
  contextmenu_check_global_root,
28
- } from './contextmenu_state.svelte.js';
28
+ } from './contextmenu_state.svelte.ts';
29
29
  import ContextmenuMenu, {
30
30
  link_entry_default,
31
31
  text_entry_default,
@@ -43,7 +43,7 @@
43
43
  ContextmenuBypassTracker,
44
44
  ContextmenuOpenGuard,
45
45
  type ContextmenuRootBaseProps,
46
- } from './contextmenu_helpers.js';
46
+ } from './contextmenu_helpers.ts';
47
47
 
48
48
  const {
49
49
  contextmenu = new ContextmenuState(),
@@ -1,4 +1,4 @@
1
- import { type ContextmenuRootBaseProps } from './contextmenu_helpers.js';
1
+ import { type ContextmenuRootBaseProps } from './contextmenu_helpers.ts';
2
2
  type $$ComponentProps = ContextmenuRootBaseProps & {
3
3
  /**
4
4
  * The number of pixels the pointer can be moved without canceling `longpress`.
@@ -5,7 +5,7 @@
5
5
  </script>
6
6
 
7
7
  <!-- `aria-orientation` is omitted - it defaults to horizontal, correct for a vertical menu's rule -->
8
- <li role="separator" {...rest} class:contextmenu-separator={true}></li>
8
+ <li role="separator" {...rest} class={['contextmenu-separator', rest.class]}></li>
9
9
 
10
10
  <style>
11
11
  .contextmenu-separator {
@@ -1,11 +1,11 @@
1
1
  <script lang="ts">
2
2
  import {onDestroy, type Snippet} from 'svelte';
3
- import {swallow} from '@fuzdev/fuz_util/dom.js';
3
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
4
4
 
5
- import {contextmenu_context, contextmenu_dimensions_context} from './contextmenu_state.svelte.js';
6
- import {contextmenu_calculate_submenu_translate} from './contextmenu_helpers.js';
7
- import type {Dimensions} from './dimensions.svelte.js';
8
- import type {SvgData} from './svg.js';
5
+ import {contextmenu_context, contextmenu_dimensions_context} from './contextmenu_state.svelte.ts';
6
+ import {contextmenu_calculate_submenu_translate} from './contextmenu_helpers.ts';
7
+ import type {Dimensions} from './dimensions.svelte.ts';
8
+ import type {SvgData} from './svg.ts';
9
9
  import ContextmenuIcon from './ContextmenuIcon.svelte';
10
10
 
11
11
  const {
@@ -68,8 +68,7 @@
68
68
  <li role="none" style:--contextmenu_depth={submenu.depth}>
69
69
  <!-- disabling the a11y warning because a parent element handles keyboard events -->
70
70
  <div
71
- class="menuitem plain selectable"
72
- class:selected
71
+ class={['menuitem plain selectable', {selected}]}
73
72
  role="menuitem"
74
73
  aria-haspopup="menu"
75
74
  tabindex="-1"
@@ -1,5 +1,5 @@
1
1
  import { type Snippet } from 'svelte';
2
- import type { SvgData } from './svg.js';
2
+ import type { SvgData } from './svg.ts';
3
3
  type $$ComponentProps = {
4
4
  icon?: SvgData | string | Snippet;
5
5
  menu: Snippet;
@@ -1,9 +1,9 @@
1
1
  <script lang="ts">
2
2
  import type {Snippet} from 'svelte';
3
3
 
4
- import type {SvgData} from './svg.js';
4
+ import type {SvgData} from './svg.ts';
5
5
  import ContextmenuEntry from './ContextmenuEntry.svelte';
6
- import type {ContextmenuRun} from './contextmenu_state.svelte.js';
6
+ import type {ContextmenuRun} from './contextmenu_state.svelte.ts';
7
7
 
8
8
  const {
9
9
  run,
@@ -1,6 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
- import type { SvgData } from './svg.js';
3
- import type { ContextmenuRun } from './contextmenu_state.svelte.js';
2
+ import type { SvgData } from './svg.ts';
3
+ import type { ContextmenuRun } from './contextmenu_state.svelte.ts';
4
4
  type $$ComponentProps = {
5
5
  run: ContextmenuRun;
6
6
  content: string;
@@ -1,10 +1,10 @@
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
  import {scale, slide} from 'svelte/transition';
6
6
 
7
- import {icon_checkmark, icon_copy} from './icons.js';
7
+ import {icon_checkmark, icon_copy} from './icons.ts';
8
8
  import Svg from './Svg.svelte';
9
9
 
10
10
  // TODO @many should this have the Button suffix?
@@ -66,11 +66,11 @@
66
66
  type="button"
67
67
  title="copy to clipboard"
68
68
  {...rest}
69
- class="copy-to-clipboard {rest.class}"
70
- class:icon_button={children ? false : icon_button}
71
- class:copied
72
- class:failed
73
- class:color_c={failed}
69
+ class={[
70
+ 'copy-to-clipboard',
71
+ rest.class,
72
+ {icon_button: children ? false : icon_button, copied, failed, color_c: failed},
73
+ ]}
74
74
  onclick={(e) => {
75
75
  onclick?.(e); // before the internal handler, which is async
76
76
  void copy(e);
@@ -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['button'], 'children'> & {
@@ -1 +1 @@
1
- {"version":3,"file":"CopyToClipboard.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/CopyToClipboard.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;AAMvD,KAAK,gBAAgB,GAAI,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,GAAG;IAC/E,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACvD,CAAC;AAsEH,QAAA,MAAM,eAAe,sDAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"CopyToClipboard.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/CopyToClipboard.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;AAMvD,KAAK,gBAAgB,GAAI,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,GAAG;IAC/E,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACvD,CAAC;AA0EH,QAAA,MAAM,eAAe,sDAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
@@ -12,15 +12,15 @@ including parameters, props, members, overloads, intersects, and more.
12
12
  <script lang="ts">
13
13
  import Code from '@fuzdev/fuz_code/Code.svelte';
14
14
  import Mdz from '@fuzdev/mdz/Mdz.svelte';
15
- import {mdz_from_tsdoc} from '@fuzdev/mdz/tsdoc_mdz.js';
15
+ import {mdz_from_tsdoc} from '@fuzdev/mdz/tsdoc_mdz.ts';
16
16
  import {
17
17
  mdz_code_context,
18
18
  mdz_codeblock_context,
19
19
  mdz_set_context_with_fallback,
20
- } from '@fuzdev/mdz/mdz_contexts.js';
20
+ } from '@fuzdev/mdz/mdz_contexts.ts';
21
21
  import type {ParameterJsonInput} from 'svelte-docinfo/types.js';
22
22
 
23
- import type {Declaration} from './declaration.svelte.js';
23
+ import type {Declaration} from './declaration.svelte.ts';
24
24
  import TypeLink from './TypeLink.svelte';
25
25
  import ModuleLink from './ModuleLink.svelte';
26
26
  import DocsLink from './DocsLink.svelte';
@@ -1,4 +1,4 @@
1
- import type { Declaration } from './declaration.svelte.js';
1
+ import type { Declaration } from './declaration.svelte.ts';
2
2
  type $$ComponentProps = {
3
3
  declaration: Declaration;
4
4
  };
@@ -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_declaration_contextmenu} from './declaration_contextmenu.js';
5
+ import {library_context} from './library.svelte.ts';
6
+ import {contextmenu_attachment} from './contextmenu_state.svelte.ts';
7
+ import {create_declaration_contextmenu} from './declaration_contextmenu.ts';
8
8
 
9
9
  const {
10
10
  name,
@@ -2,9 +2,9 @@
2
2
  import type {Snippet} from 'svelte';
3
3
  import type {SvelteHTMLElements} from 'svelte/elements';
4
4
  import {SvelteSet} from 'svelte/reactivity';
5
- import {swallow} from '@fuzdev/fuz_util/dom.js';
5
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
6
6
 
7
- import {dialog_context, type DialogContext, type DialogAlign} from './dialog.js';
7
+ import {dialog_context, type DialogContext, type DialogAlign} from './dialog.ts';
8
8
 
9
9
  /**
10
10
  * This component renders a native `<dialog>` opened with `showModal()`, which
@@ -149,8 +149,7 @@
149
149
  {#if show}
150
150
  <dialog
151
151
  {...rest}
152
- class="dialog {rest.class}"
153
- class:align-top={align === 'top'}
152
+ class={['dialog', rest.class, {'align-top': align === 'top'}]}
154
153
  {@attach setup_dialog}
155
154
  >
156
155
  <div
@@ -1,6 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { SvelteHTMLElements } from 'svelte/elements';
3
- import { type DialogContext, type DialogAlign } from './dialog.js';
3
+ import { type DialogContext, type DialogAlign } from './dialog.ts';
4
4
  type $$ComponentProps = Omit<SvelteHTMLElements['dialog'], 'children' | 'onclose'> & {
5
5
  /**
6
6
  * Whether the dialog is shown. When the `<dialog>` mounts it opens via
@@ -2,8 +2,8 @@
2
2
  import type {Snippet} from 'svelte';
3
3
  import type {HTMLAttributes, SvelteHTMLElements} from 'svelte/elements';
4
4
 
5
- import {dialog_context, type DialogContext, type DialogCloseButtonAttrs} from './dialog.js';
6
- import {icon_close} from './icons.js';
5
+ import {dialog_context, type DialogContext, type DialogCloseButtonAttrs} from './dialog.ts';
6
+ import {icon_close} from './icons.ts';
7
7
  import Svg from './Svg.svelte';
8
8
 
9
9
  /**
@@ -123,7 +123,7 @@ dismiss zone outside the card, where a press lands on the wrapper and closes the
123
123
  content with its own overflow (e.g. `Code`) scrolls instead of forcing the card wider. -->
124
124
  <div
125
125
  {...rest}
126
- class:pane
126
+ class={[rest.class, {pane}]}
127
127
  style:padding
128
128
  style:margin={gutter}
129
129
  style:max-width={max_width}
@@ -1,6 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
- import { type DialogContext, type DialogCloseButtonAttrs } from './dialog.js';
3
+ import { type DialogContext, type DialogCloseButtonAttrs } from './dialog.ts';
4
4
  type $$ComponentProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
5
5
  /**
6
6
  * The content surface's padding, set as an inline style. Defaults to