@dorsk/tsumikit 0.67.1 → 0.68.0

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.
@@ -0,0 +1,42 @@
1
+ export interface RadialArc {
2
+ /** Degrees, 0 = right, counter-clockwise. */
3
+ from: number;
4
+ to: number;
5
+ }
6
+ import { type Snippet } from 'svelte';
7
+ import type { HTMLButtonAttributes } from 'svelte/elements';
8
+ import { type IconName } from '../atoms/Icon.svelte';
9
+ import type { MenuItem } from './Menu.svelte';
10
+ import { type Tone } from '../../tone';
11
+ type Own = {
12
+ items: MenuItem[];
13
+ /** Accessible name of the trigger and the menu. */
14
+ label: string;
15
+ open?: boolean;
16
+ onopen?: () => void;
17
+ onclose?: () => void;
18
+ /** Replaces the default FAB content. */
19
+ trigger?: Snippet<[{
20
+ open: boolean;
21
+ }]>;
22
+ icon?: IconName;
23
+ closeIcon?: IconName;
24
+ /** Small line under the FAB glyph ("● bot"). */
25
+ caption?: Snippet | string;
26
+ /** Colour of the FAB ring. */
27
+ tone?: Tone;
28
+ arc?: RadialArc;
29
+ /** Preferred arc radius; defaults to `--radial-radius`, else 8.5rem. */
30
+ radius?: string;
31
+ /** Petal diameter; defaults to `--radial-petal-size`, else 3.5rem. */
32
+ petalSize?: string;
33
+ scrim?: boolean;
34
+ /** A line centred above the arc while open. */
35
+ status?: Snippet;
36
+ class?: string;
37
+ style?: string;
38
+ };
39
+ type $$ComponentProps = Omit<HTMLButtonAttributes, keyof Own> & Own;
40
+ declare const RadialMenu: import("svelte").Component<$$ComponentProps, {}, "open">;
41
+ type RadialMenu = ReturnType<typeof RadialMenu>;
42
+ export default RadialMenu;