@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.
- package/README.md +1 -1
- package/dist/Alert.svelte +1 -1
- package/dist/Alert.svelte.d.ts +1 -1
- package/dist/ApiDeclarationList.svelte +1 -1
- package/dist/ApiDeclarationList.svelte.d.ts +1 -1
- package/dist/ApiIndex.svelte +3 -3
- package/dist/ApiIndex.svelte.d.ts +2 -2
- package/dist/ApiModule.svelte +4 -4
- package/dist/ApiModule.svelte.d.ts +2 -2
- package/dist/ApiModulesList.svelte +1 -1
- package/dist/ApiModulesList.svelte.d.ts +1 -1
- package/dist/Breadcrumb.svelte +5 -5
- package/dist/Card.svelte +1 -7
- package/dist/ColorSchemeInput.svelte +4 -5
- package/dist/ColorSchemeInput.svelte.d.ts +1 -1
- package/dist/Contextmenu.svelte +1 -1
- package/dist/ContextmenuEntry.svelte +4 -6
- package/dist/ContextmenuEntry.svelte.d.ts +2 -2
- package/dist/ContextmenuIcon.svelte +1 -1
- package/dist/ContextmenuIcon.svelte.d.ts +1 -1
- package/dist/ContextmenuLinkEntry.svelte +6 -9
- package/dist/ContextmenuLinkEntry.svelte.d.ts +1 -1
- package/dist/ContextmenuMenu.svelte +3 -3
- package/dist/ContextmenuMenu.svelte.d.ts +2 -2
- package/dist/ContextmenuRoot.svelte +2 -2
- package/dist/ContextmenuRoot.svelte.d.ts +1 -1
- package/dist/ContextmenuRootForSafariCompatibility.svelte +3 -3
- package/dist/ContextmenuRootForSafariCompatibility.svelte.d.ts +1 -1
- package/dist/ContextmenuSeparator.svelte +1 -1
- package/dist/ContextmenuSubmenu.svelte +6 -7
- package/dist/ContextmenuSubmenu.svelte.d.ts +1 -1
- package/dist/ContextmenuTextEntry.svelte +2 -2
- package/dist/ContextmenuTextEntry.svelte.d.ts +2 -2
- package/dist/CopyToClipboard.svelte +7 -7
- package/dist/CopyToClipboard.svelte.d.ts +1 -1
- package/dist/CopyToClipboard.svelte.d.ts.map +1 -1
- package/dist/DeclarationDetail.svelte +3 -3
- package/dist/DeclarationDetail.svelte.d.ts +1 -1
- package/dist/DeclarationLink.svelte +4 -4
- package/dist/Dialog.svelte +3 -4
- package/dist/Dialog.svelte.d.ts +1 -1
- package/dist/DialogContent.svelte +3 -3
- package/dist/DialogContent.svelte.d.ts +1 -1
- package/dist/Docs.svelte +4 -4
- package/dist/Docs.svelte.d.ts +1 -1
- package/dist/DocsContent.svelte +2 -2
- package/dist/DocsContent.svelte.d.ts +2 -2
- package/dist/DocsFooter.svelte +2 -2
- package/dist/DocsFooter.svelte.d.ts +1 -1
- package/dist/DocsLink.svelte +4 -4
- package/dist/DocsLink.svelte.d.ts +3 -3
- package/dist/DocsList.svelte +1 -1
- package/dist/DocsMenu.svelte +2 -2
- package/dist/DocsMenu.svelte.d.ts +1 -1
- package/dist/DocsPageLinks.svelte +10 -9
- package/dist/DocsPageLinks.svelte.d.ts.map +1 -1
- package/dist/DocsPrimaryNav.svelte +2 -2
- package/dist/DocsSearch.svelte +1 -1
- package/dist/DocsSecondaryNav.svelte +2 -2
- package/dist/DocsSecondaryNav.svelte.d.ts +1 -1
- package/dist/DocsTertiaryNav.svelte +3 -3
- package/dist/DocsTertiaryNav.svelte.d.ts +1 -1
- package/dist/EcosystemLinks.svelte +2 -2
- package/dist/GithubLink.svelte +2 -2
- package/dist/HueInput.svelte +1 -1
- package/dist/HueInput.svelte.d.ts +1 -1
- package/dist/LibraryDetail.svelte +14 -11
- package/dist/LibraryDetail.svelte.d.ts +2 -2
- package/dist/LibraryDetail.svelte.d.ts.map +1 -1
- package/dist/LibrarySummary.svelte +3 -4
- package/dist/LibrarySummary.svelte.d.ts +1 -1
- package/dist/MdnLink.svelte +2 -2
- package/dist/ModuleLink.svelte +4 -4
- package/dist/PendingAnimation.svelte +7 -5
- package/dist/PendingAnimation.svelte.d.ts +1 -1
- package/dist/PendingAnimation.svelte.d.ts.map +1 -1
- package/dist/PendingButton.svelte +1 -2
- package/dist/ProjectLinks.svelte +2 -2
- package/dist/Redirect.svelte +1 -1
- package/dist/Spiders.svelte +3 -3
- package/dist/StyleVariableButton.svelte +3 -4
- package/dist/Svg.svelte +4 -4
- package/dist/Svg.svelte.d.ts +1 -1
- package/dist/ThemeInput.svelte +5 -6
- package/dist/ThemeInput.svelte.d.ts +1 -1
- package/dist/ThemeRoot.svelte +4 -4
- package/dist/ThemeRoot.svelte.d.ts +2 -2
- package/dist/TomeContent.svelte +3 -3
- package/dist/TomeContent.svelte.d.ts +1 -1
- package/dist/TomeHeader.svelte +2 -2
- package/dist/TomeLink.svelte +2 -2
- package/dist/TomeSection.svelte +3 -3
- package/dist/TomeSectionHeader.svelte +2 -2
- package/dist/TomeSectionHeader.svelte.d.ts +1 -1
- package/dist/TypeLink.svelte +1 -1
- package/dist/api_search.svelte.d.ts +3 -3
- package/dist/contextmenu_helpers.d.ts +1 -1
- package/dist/contextmenu_helpers.js +3 -3
- package/dist/contextmenu_state.svelte.d.ts +3 -3
- package/dist/contextmenu_state.svelte.js +6 -6
- package/dist/csp.d.ts +1 -1
- package/dist/declaration.svelte.d.ts +1 -1
- package/dist/declaration.svelte.js +1 -1
- package/dist/declaration_contextmenu.d.ts +2 -2
- package/dist/dialog.js +1 -1
- package/dist/docs_helpers.svelte.d.ts +1 -1
- package/dist/docs_helpers.svelte.js +3 -3
- package/dist/intersect.svelte.js +1 -1
- package/dist/library.svelte.d.ts +5 -5
- package/dist/library.svelte.js +5 -5
- package/dist/library_helpers.d.ts +1 -1
- package/dist/library_helpers.js +2 -2
- package/dist/module.svelte.d.ts +2 -2
- package/dist/module.svelte.js +2 -2
- package/dist/module_contextmenu.d.ts +2 -2
- package/dist/site.svelte.d.ts +3 -3
- package/dist/site.svelte.js +2 -2
- package/dist/style_variable_helpers.svelte.d.ts +1 -1
- package/dist/style_variable_helpers.svelte.js +1 -1
- package/dist/theme_state.svelte.d.ts +1 -1
- package/dist/theme_state.svelte.js +4 -4
- package/dist/tome.js +3 -3
- package/dist/vite_plugin_pkg_json.d.ts +3 -3
- package/dist/vite_plugin_pkg_json.js +3 -3
- package/package.json +5 -5
- package/src/lib/api_search.svelte.ts +3 -3
- package/src/lib/contextmenu_helpers.ts +3 -3
- package/src/lib/contextmenu_state.svelte.ts +8 -8
- package/src/lib/csp.ts +1 -1
- package/src/lib/declaration.svelte.ts +2 -2
- package/src/lib/declaration_contextmenu.ts +2 -2
- package/src/lib/dialog.ts +1 -1
- package/src/lib/docs_helpers.svelte.ts +3 -3
- package/src/lib/icons.ts +1 -1
- package/src/lib/intersect.svelte.ts +1 -1
- package/src/lib/library.svelte.ts +7 -7
- package/src/lib/library_helpers.ts +2 -2
- package/src/lib/logos.ts +1 -1
- package/src/lib/module.svelte.ts +3 -3
- package/src/lib/module_contextmenu.ts +2 -2
- package/src/lib/site.svelte.ts +5 -5
- package/src/lib/style_variable_helpers.svelte.ts +2 -2
- package/src/lib/theme_state.svelte.ts +4 -4
- package/src/lib/tome.ts +3 -3
- 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.
|
|
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.
|
|
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/}
|
package/dist/Alert.svelte.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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';
|
package/dist/ApiIndex.svelte
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {set_library_context_with_fallback, type Library} from './library.svelte.
|
|
3
|
-
import {tome_get_by_slug, type Tome} from './tome.
|
|
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.
|
|
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.
|
|
2
|
-
import { type Tome } from './tome.
|
|
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.
|
package/dist/ApiModule.svelte
CHANGED
|
@@ -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.
|
|
8
|
+
} from '@fuzdev/mdz/mdz_contexts.ts';
|
|
9
9
|
|
|
10
|
-
import {set_library_context_with_fallback, type Library} from './library.svelte.
|
|
11
|
-
import {tome_get_by_slug, type Tome} from './tome.
|
|
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.
|
|
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.
|
|
2
|
-
import { type Tome } from './tome.
|
|
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.
|
|
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';
|
package/dist/Breadcrumb.svelte
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {parse_path_pieces} from '@fuzdev/fuz_util/path.
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
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=
|
|
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.
|
|
3
|
-
import {color_schemes, type ColorScheme} from '@fuzdev/fuz_css/theme.
|
|
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.
|
|
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=
|
|
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);
|
package/dist/Contextmenu.svelte
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
7
|
-
import type {SvgData} from './svg.
|
|
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=
|
|
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.
|
|
3
|
-
import type { SvgData } from './svg.
|
|
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,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {strip_start} from '@fuzdev/fuz_util/string.
|
|
3
|
-
import {swallow} from '@fuzdev/fuz_util/dom.
|
|
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.
|
|
8
|
-
import {icon_external_link, icon_link} from './icons.
|
|
9
|
-
import type {SvgData} from './svg.
|
|
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=
|
|
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}
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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.
|
|
3
|
+
import {swallow} from '@fuzdev/fuz_util/dom.ts';
|
|
4
4
|
|
|
5
|
-
import {contextmenu_context, contextmenu_dimensions_context} from './contextmenu_state.svelte.
|
|
6
|
-
import {contextmenu_calculate_submenu_translate} from './contextmenu_helpers.
|
|
7
|
-
import type {Dimensions} from './dimensions.svelte.
|
|
8
|
-
import type {SvgData} from './svg.
|
|
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=
|
|
72
|
-
class:selected
|
|
71
|
+
class={['menuitem plain selectable', {selected}]}
|
|
73
72
|
role="menuitem"
|
|
74
73
|
aria-haspopup="menu"
|
|
75
74
|
tabindex="-1"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type {Snippet} from 'svelte';
|
|
3
3
|
|
|
4
|
-
import type {SvgData} from './svg.
|
|
4
|
+
import type {SvgData} from './svg.ts';
|
|
5
5
|
import ContextmenuEntry from './ContextmenuEntry.svelte';
|
|
6
|
-
import type {ContextmenuRun} from './contextmenu_state.svelte.
|
|
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.
|
|
3
|
-
import type { ContextmenuRun } from './contextmenu_state.svelte.
|
|
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.
|
|
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.
|
|
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=
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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.
|
|
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;
|
|
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.
|
|
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.
|
|
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.
|
|
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,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.
|
|
3
|
+
import {ensure_start} from '@fuzdev/fuz_util/string.ts';
|
|
4
4
|
|
|
5
|
-
import {library_context} from './library.svelte.
|
|
6
|
-
import {contextmenu_attachment} from './contextmenu_state.svelte.
|
|
7
|
-
import {create_declaration_contextmenu} from './declaration_contextmenu.
|
|
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,
|
package/dist/Dialog.svelte
CHANGED
|
@@ -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.
|
|
5
|
+
import {swallow} from '@fuzdev/fuz_util/dom.ts';
|
|
6
6
|
|
|
7
|
-
import {dialog_context, type DialogContext, type DialogAlign} from './dialog.
|
|
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=
|
|
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
|
package/dist/Dialog.svelte.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
6
|
-
import {icon_close} from './icons.
|
|
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
|
|
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.
|
|
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
|