gavia-ui 0.7.0 → 0.8.1

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/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { WlIconName } from './icons.generated';
1
+ import { WlIconInput } from './iconNames';
2
2
  export type WlSize = "xs" | "sm" | "md" | "lg";
3
3
  export type WlSizeSm = "sm" | "md" | "lg";
4
4
  export type WlDensity = "default" | "compact";
@@ -14,10 +14,11 @@ export type WlSwitchSize = "sm" | "md";
14
14
  export type WlSpinnerSize = "sm" | "md" | "lg";
15
15
  export type WlDrawerPosition = "left" | "right" | "top" | "bottom" | "full";
16
16
  export type { WlIconName } from './icons.generated';
17
+ export type { WlIconInput } from './iconNames';
17
18
  export interface WlTabItem {
18
19
  key: string;
19
20
  label: string;
20
- icon?: WlIconName;
21
+ icon?: WlIconInput;
21
22
  count?: number;
22
23
  }
23
24
  export type WlIconButtonVariant = "ghost" | "secondary" | "soft";
@@ -25,19 +26,19 @@ export type WlPillVariant = "neutral" | "info" | "ok" | "warn" | "err";
25
26
  export interface WlSegmentedOption {
26
27
  label: string;
27
28
  value: string;
28
- icon?: WlIconName;
29
+ icon?: WlIconInput;
29
30
  disabled?: boolean;
30
31
  }
31
32
  export interface WlBreadcrumbItem {
32
33
  label: string;
33
34
  to?: string;
34
35
  href?: string;
35
- icon?: WlIconName;
36
+ icon?: WlIconInput;
36
37
  }
37
38
  export interface WlMenuItem {
38
39
  key?: string;
39
40
  label?: string;
40
- icon?: WlIconName;
41
+ icon?: WlIconInput;
41
42
  shortcut?: string;
42
43
  danger?: boolean;
43
44
  disabled?: boolean;
@@ -48,7 +49,7 @@ export interface WlMenuItem {
48
49
  export interface WlSidebarItem {
49
50
  key: string;
50
51
  label: string;
51
- icon?: WlIconName;
52
+ icon?: WlIconInput;
52
53
  badge?: number | string;
53
54
  href?: string;
54
55
  disabled?: boolean;
@@ -66,7 +67,7 @@ export interface WlCommandPaletteItem {
66
67
  label: string;
67
68
  description?: string;
68
69
  keywords?: string[];
69
- icon?: WlIconName;
70
+ icon?: WlIconInput;
70
71
  shortcut?: string;
71
72
  href?: string;
72
73
  target?: "_self" | "_blank" | "_parent" | "_top";
@@ -4,7 +4,7 @@ export interface AnchoredOverlay {
4
4
  panel: Ref<HTMLElement | null>;
5
5
  style: Ref<Record<string, string>>;
6
6
  show: (event?: Event) => void;
7
- hide: () => void;
7
+ hide: (event?: Event) => void;
8
8
  toggle: (event?: Event) => void;
9
9
  }
10
10
  /** Position and dismissal shared by the kit's non-modal overlays. */
@@ -2,7 +2,7 @@ import { Ref } from 'vue';
2
2
  export type OptionResolver = string | ((option: any) => unknown) | undefined;
3
3
  export declare function optionValue(option: unknown, resolver: OptionResolver): unknown;
4
4
  export declare function optionLabel(option: unknown, resolver: OptionResolver): string;
5
- export declare function useListNavigation(length: () => number, select: (index: number) => void, close: () => void): {
5
+ export declare function useListNavigation(length: () => number, select: (index: number) => void, close: (event?: KeyboardEvent) => void): {
6
6
  active: Ref<number>;
7
7
  onKeydown: (event: KeyboardEvent) => void;
8
8
  };
@@ -0,0 +1,11 @@
1
+ /** Shared ownership and Escape order for modal and anchored body portals. */
2
+ export interface OverlayLayer {
3
+ visible: () => boolean;
4
+ panel: () => HTMLElement | null;
5
+ anchor: () => HTMLElement | null;
6
+ }
7
+ export declare function removeOverlayLayer(layer: OverlayLayer): void;
8
+ export declare function addOverlayLayer(layer: OverlayLayer): void;
9
+ export declare function isTopOverlayLayer(layer: OverlayLayer): boolean;
10
+ /** A descendant portal belongs to a panel through the anchor that opened it. */
11
+ export declare function ownsOverlayTarget(layer: OverlayLayer, target: Node, visited?: Set<OverlayLayer>): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gavia-ui",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "description": "Gavia UI — a free, open source Vue 3 and TypeScript component library and design system",
5
5
  "type": "module",
6
6
  "license": "MIT",