@ghostvue/vue 0.1.0 → 0.2.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.
Files changed (53) hide show
  1. package/dist/GhostCheckboxGroup.vue.d.ts +24 -0
  2. package/dist/GhostComboboxContent.vue.d.ts +2 -2
  3. package/dist/GhostContextMenuContent.vue.d.ts +2 -2
  4. package/dist/GhostDatePickerContent.vue.d.ts +2 -2
  5. package/dist/GhostDropdownMenuContent.vue.d.ts +2 -2
  6. package/dist/GhostField.vue.d.ts +8 -5
  7. package/dist/GhostFieldError.vue.d.ts +3 -6
  8. package/dist/GhostFileUpload.vue.d.ts +1 -1
  9. package/dist/GhostForm.vue.d.ts +25 -0
  10. package/dist/GhostHoverCardContent.vue.d.ts +2 -2
  11. package/dist/GhostMenubarContent.vue.d.ts +2 -2
  12. package/dist/GhostPopoverContent.vue.d.ts +2 -2
  13. package/dist/GhostPresence.vue.d.ts +27 -0
  14. package/dist/GhostScrollSpy.vue.d.ts +1 -1
  15. package/dist/GhostScrollSpyItem.vue.d.ts +1 -1
  16. package/dist/GhostSelect.vue.d.ts +19 -46
  17. package/dist/GhostSelectContent.vue.d.ts +2 -2
  18. package/dist/GhostSelectValue.vue.d.ts +4 -7
  19. package/dist/GhostSubmenu.vue.d.ts +23 -0
  20. package/dist/GhostSubmenuContent.vue.d.ts +20 -0
  21. package/dist/GhostSubmenuTrigger.vue.d.ts +17 -0
  22. package/dist/GhostTagsInput.vue.d.ts +26 -0
  23. package/dist/GhostTooltipContent.vue.d.ts +2 -2
  24. package/dist/GhostTree.vue.d.ts +1 -1
  25. package/dist/dev-codes.d.ts +36 -0
  26. package/dist/dialog-shared.d.ts +15 -6
  27. package/dist/dismissable-layer-stack.d.ts +1 -0
  28. package/dist/form-reset.d.ts +9 -1
  29. package/dist/ghost-checkbox-group.d.ts +88 -0
  30. package/dist/ghost-dialog.d.ts +2 -0
  31. package/dist/ghost-field.d.ts +22 -1
  32. package/dist/ghost-form.d.ts +273 -0
  33. package/dist/ghost-presence.d.ts +78 -0
  34. package/dist/ghost-select.d.ts +63 -6
  35. package/dist/ghost-submenu.d.ts +20 -0
  36. package/dist/ghost-tags-input.d.ts +41 -0
  37. package/dist/ghost-tooltip-provider.d.ts +15 -4
  38. package/dist/ghostvue.js +7988 -5869
  39. package/dist/index.d.ts +17 -2
  40. package/dist/manifest.json +1378 -70
  41. package/dist/resolver.js +1 -1
  42. package/dist/track-reactive-reads.d.ts +13 -0
  43. package/dist/use-dismissable-layer.d.ts +8 -0
  44. package/dist/use-focus-scope.d.ts +7 -0
  45. package/dist/use-ghost-checkbox-group.d.ts +13 -0
  46. package/dist/use-ghost-form.d.ts +7 -0
  47. package/dist/use-ghost-menu-branch.d.ts +54 -0
  48. package/dist/use-ghost-menu-collection.d.ts +11 -0
  49. package/dist/use-ghost-menu-root.d.ts +13 -0
  50. package/dist/use-ghost-presence.d.ts +48 -0
  51. package/dist/use-ghost-select.d.ts +18 -8
  52. package/dist/use-roving-focus.d.ts +2 -0
  53. package/package.json +2 -1
@@ -0,0 +1,24 @@
1
+ import { type GhostCheckboxGroupExposed, type GhostCheckboxGroupProps } from './ghost-checkbox-group.js';
2
+ declare const __VLS_export: <TValue extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<GhostCheckboxGroupProps<TValue> & {
4
+ "onUpdate:modelValue"?: (value: TValue[]) => any;
5
+ }> & (typeof globalThis extends {
6
+ __VLS_PROPS_FALLBACK: infer P;
7
+ } ? P : {});
8
+ expose: (exposed: import("vue").ShallowUnwrapRef<GhostCheckboxGroupExposed>) => void;
9
+ attrs: any;
10
+ slots: {
11
+ /** Member checkboxes, labels, legend, descriptions, and non-member content. */
12
+ default?(): unknown;
13
+ };
14
+ emit: (evt: "update:modelValue", value: TValue[]) => void;
15
+ }>) => import("vue").VNode & {
16
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
17
+ };
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
21
+ [K in keyof T]: T[K];
22
+ } : {
23
+ [K in keyof T as K]: T[K];
24
+ }) & {};
@@ -23,11 +23,11 @@ declare const __VLS_template: () => {
23
23
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
24
24
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostComboboxContentExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
25
  shift: boolean | GhostComboboxShiftOptions;
26
+ offset: boolean | GhostComboboxOffsetOptions | undefined;
27
+ flip: boolean | GhostComboboxFlipOptions;
26
28
  placement: import("@floating-ui/dom").Placement;
27
29
  as: GhostComboboxContentElement;
28
30
  strategy: import("@floating-ui/dom").Strategy;
29
- offset: boolean | GhostComboboxOffsetOptions | undefined;
30
- flip: boolean | GhostComboboxFlipOptions;
31
31
  portal: boolean;
32
32
  portalTo: GhostPortalTarget;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -21,11 +21,11 @@ declare const __VLS_template: () => {
21
21
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostContextMenuContentExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
23
  shift: boolean | GhostContextMenuShiftOptions;
24
+ offset: boolean | GhostContextMenuOffsetOptions | undefined;
25
+ flip: boolean | GhostContextMenuFlipOptions;
24
26
  placement: import("@floating-ui/dom").Placement;
25
27
  as: GhostContextMenuContentElement;
26
28
  strategy: import("@floating-ui/dom").Strategy;
27
- offset: boolean | GhostContextMenuOffsetOptions | undefined;
28
- flip: boolean | GhostContextMenuFlipOptions;
29
29
  portal: boolean;
30
30
  portalTo: GhostPortalTarget;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -27,10 +27,10 @@ type __VLS_Slots = {
27
27
  };
28
28
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostDatePickerPartExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
29
29
  shift: boolean | GhostPopoverShiftOptions;
30
- placement: import("@floating-ui/dom").Placement;
31
- strategy: import("@floating-ui/dom").Strategy;
32
30
  offset: boolean | GhostPopoverOffsetOptions | undefined;
33
31
  flip: boolean | GhostPopoverFlipOptions;
32
+ placement: import("@floating-ui/dom").Placement;
33
+ strategy: import("@floating-ui/dom").Strategy;
34
34
  portal: boolean;
35
35
  portalTo: GhostPortalTarget;
36
36
  closeLabel: string;
@@ -21,11 +21,11 @@ declare const __VLS_template: () => {
21
21
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostDropdownMenuContentExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
23
  shift: boolean | GhostDropdownMenuShiftOptions;
24
+ offset: boolean | GhostDropdownMenuOffsetOptions | undefined;
25
+ flip: boolean | GhostDropdownMenuFlipOptions;
24
26
  placement: import("@floating-ui/dom").Placement;
25
27
  as: GhostDropdownMenuContentElement;
26
28
  strategy: import("@floating-ui/dom").Strategy;
27
- offset: boolean | GhostDropdownMenuOffsetOptions | undefined;
28
- flip: boolean | GhostDropdownMenuFlipOptions;
29
29
  portal: boolean;
30
30
  portalTo: GhostPortalTarget;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,22 +1,25 @@
1
- import { type GhostFieldExposed } from './ghost-field.js';
1
+ import { type GhostFieldExposed, type GhostFieldSlotProps } from './ghost-field.js';
2
2
  type __VLS_Props = {
3
3
  /** Optional control id override for label association. */
4
4
  id?: string | undefined;
5
+ /** Canonical dot-path key associating this field with an ancestor `GhostForm`. */
6
+ name?: string | undefined;
5
7
  /** Propagates disabled semantics to the control. */
6
8
  disabled?: boolean;
7
- /** Propagates invalid semantics and root `data-state`. */
8
- invalid?: boolean;
9
+ /** Propagates invalid semantics and root `data-state`; overrides form state when explicitly boolean. */
10
+ invalid?: boolean | undefined;
9
11
  /** Propagates required semantics to the control. */
10
12
  required?: boolean;
11
13
  };
12
14
  type __VLS_Slots = {
13
- default(): unknown;
15
+ default?: (props: GhostFieldSlotProps) => unknown;
14
16
  };
15
17
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostFieldExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
18
  id: string | undefined;
17
19
  disabled: boolean;
18
20
  required: boolean;
19
- invalid: boolean;
21
+ name: string | undefined;
22
+ invalid: boolean | undefined;
20
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
25
  declare const _default: typeof __VLS_export;
@@ -1,13 +1,10 @@
1
- import { type GhostFieldErrorElement, type GhostFieldErrorExposed } from './ghost-field.js';
1
+ import { type GhostFieldErrorElement, type GhostFieldErrorExposed, type GhostFieldErrorSlotProps } from './ghost-field.js';
2
2
  type __VLS_Props = {
3
3
  as?: GhostFieldErrorElement;
4
4
  };
5
- declare const __VLS_template: () => {
6
- __VLS_Slots: {
7
- default?: (props: {}) => any;
8
- };
5
+ type __VLS_Slots = {
6
+ default?: (props: GhostFieldErrorSlotProps) => unknown;
9
7
  };
10
- type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
11
8
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostFieldErrorExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
9
  as: GhostFieldErrorElement;
13
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -48,10 +48,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostFileUp
48
48
  accept: string | undefined;
49
49
  modelValue: File[] | undefined;
50
50
  defaultValue: File[];
51
+ validate: GhostFileUploadValidate | undefined;
51
52
  messages: Partial<GhostFileUploadMessages> | undefined;
52
53
  maxFileSize: number | undefined;
53
54
  maxFiles: number | undefined;
54
- validate: GhostFileUploadValidate | undefined;
55
55
  preventDocumentDrop: boolean;
56
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
57
57
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -0,0 +1,25 @@
1
+ import type { GhostFormExposed, GhostFormProps, GhostFormSlotProps, StandardSchemaV1 } from './ghost-form.js';
2
+ declare const __VLS_export: <TSchema extends StandardSchemaV1 = StandardSchemaV1, TValues = StandardSchemaV1.InferInput<TSchema>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<GhostFormProps<TSchema, TValues> & {
4
+ onInvalid?: (payload: import("./ghost-form.js").GhostFormInvalidPayload<TValues>) => any;
5
+ onReset?: (event: Event | null) => any;
6
+ onSubmit?: (payload: import("./ghost-form.js").GhostFormSubmitPayload<StandardSchemaV1.InferOutput<TSchema>, TValues>) => any;
7
+ }> & (typeof globalThis extends {
8
+ __VLS_PROPS_FALLBACK: infer P;
9
+ } ? P : {});
10
+ expose: (exposed: import("vue").ShallowUnwrapRef<GhostFormExposed<TSchema, TValues>>) => void;
11
+ attrs: any;
12
+ slots: {
13
+ default?: (props: GhostFormSlotProps<TSchema, TValues>) => unknown;
14
+ };
15
+ emit: ((evt: "invalid", payload: import("./ghost-form.js").GhostFormInvalidPayload<TValues>) => void) & ((evt: "reset", event: Event | null) => void) & ((evt: "submit", payload: import("./ghost-form.js").GhostFormSubmitPayload<StandardSchemaV1.InferOutput<TSchema>, TValues>) => void);
16
+ }>) => import("vue").VNode & {
17
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
18
+ };
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
22
+ [K in keyof T]: T[K];
23
+ } : {
24
+ [K in keyof T as K]: T[K];
25
+ }) & {};
@@ -29,11 +29,11 @@ declare const __VLS_template: () => {
29
29
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
30
30
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostHoverCardContentExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
31
31
  shift: boolean | GhostHoverCardShiftOptions;
32
+ offset: boolean | GhostHoverCardOffsetOptions | undefined;
33
+ flip: boolean | GhostHoverCardFlipOptions;
32
34
  placement: import("@floating-ui/dom").Placement;
33
35
  as: GhostHoverCardContentElement;
34
36
  strategy: import("@floating-ui/dom").Strategy;
35
- offset: boolean | GhostHoverCardOffsetOptions | undefined;
36
- flip: boolean | GhostHoverCardFlipOptions;
37
37
  portal: boolean;
38
38
  portalTo: GhostPortalTarget;
39
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -21,11 +21,11 @@ declare const __VLS_template: () => {
21
21
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostMenubarContentExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
23
  shift: boolean | GhostMenubarShiftOptions;
24
+ offset: boolean | GhostMenubarOffsetOptions | undefined;
25
+ flip: boolean | GhostMenubarFlipOptions;
24
26
  placement: import("@floating-ui/dom").Placement;
25
27
  as: GhostMenubarContentElement;
26
28
  strategy: import("@floating-ui/dom").Strategy;
27
- offset: boolean | GhostMenubarOffsetOptions | undefined;
28
- flip: boolean | GhostMenubarFlipOptions;
29
29
  portal: boolean;
30
30
  portalTo: GhostPortalTarget;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -29,11 +29,11 @@ declare const __VLS_template: () => {
29
29
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
30
30
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostPopoverContentExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
31
31
  shift: boolean | GhostPopoverShiftOptions;
32
+ offset: boolean | GhostPopoverOffsetOptions | undefined;
33
+ flip: boolean | GhostPopoverFlipOptions;
32
34
  placement: import("@floating-ui/dom").Placement;
33
35
  as: GhostPopoverContentElement;
34
36
  strategy: import("@floating-ui/dom").Strategy;
35
- offset: boolean | GhostPopoverOffsetOptions | undefined;
36
- flip: boolean | GhostPopoverFlipOptions;
37
37
  portal: boolean;
38
38
  portalTo: GhostPortalTarget;
39
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,27 @@
1
+ import { type VNode } from 'vue';
2
+ import type { GhostPresenceSlotProps } from './ghost-presence.js';
3
+ type __VLS_Props = {
4
+ /** Logical open/mounted state. When `true`, mounts the default slot; when `false`, transitions through `exiting` before unmount. */
5
+ present: boolean;
6
+ /** When `true`, bypasses exit waiting and unmounts immediately when `present` turns `false`. */
7
+ disabled?: boolean;
8
+ };
9
+ type __VLS_Slots = {
10
+ /** Content mounted while present. A single element or component root is decorated automatically; otherwise bind `setElement`, `state`, and `exiting` on the animated surface. */
11
+ default(props: GhostPresenceSlotProps): VNode[];
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ exitComplete: () => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onExitComplete?: () => any;
17
+ }>, {
18
+ disabled: boolean;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -40,9 +40,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostScroll
40
40
  }) => any;
41
41
  }>, {
42
42
  label: string;
43
+ scrollBehavior: ScrollBehavior;
43
44
  as: GhostScrollSpyElement;
44
45
  orientation: GhostScrollSpyOrientation;
45
- scrollBehavior: ScrollBehavior;
46
46
  historyMode: "replace" | "push" | "none";
47
47
  focusTarget: boolean;
48
48
  travelSettleMs: number;
@@ -13,8 +13,8 @@ declare const __VLS_template: () => {
13
13
  };
14
14
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
15
15
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostScrollSpyItemExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
- as: GhostScrollSpyItemElement;
17
16
  target: string;
17
+ as: GhostScrollSpyItemElement;
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
20
  declare const _default: typeof __VLS_export;
@@ -1,51 +1,24 @@
1
- import { type GhostSelectMessages } from './ghost-select.js';
2
- type __VLS_Props = {
3
- modelValue?: string | undefined;
4
- defaultValue?: string | undefined;
5
- name?: string | undefined;
6
- form?: string | undefined;
7
- disabled?: boolean;
8
- required?: boolean;
9
- invalid?: boolean;
10
- open?: boolean | undefined;
11
- defaultOpen?: boolean;
12
- placeholder?: string | undefined;
13
- messages?: GhostSelectMessages | undefined;
14
- };
15
- declare const __VLS_template: () => {
16
- __VLS_Slots: {
1
+ import { type GhostSelectExposed, type GhostSelectModelValue, type GhostSelectProps } from './ghost-select.js';
2
+ declare const __VLS_export: <Multiple extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<GhostSelectProps<Multiple> & {
4
+ "onUpdate:open"?: (open: boolean) => any;
5
+ "onUpdate:modelValue"?: (value: GhostSelectModelValue<Multiple>) => any;
6
+ }> & (typeof globalThis extends {
7
+ __VLS_PROPS_FALLBACK: infer P;
8
+ } ? P : {});
9
+ expose: (exposed: import("vue").ShallowUnwrapRef<GhostSelectExposed>) => void;
10
+ attrs: any;
11
+ slots: {
17
12
  default?: (props: {}) => any;
18
13
  };
14
+ emit: ((evt: "update:open", open: boolean) => void) & ((evt: "update:modelValue", value: GhostSelectModelValue<Multiple>) => void);
15
+ }>) => import("vue").VNode & {
16
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
19
17
  };
20
- type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
21
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
22
- readonly element: HTMLElement | null;
23
- focus(options?: FocusOptions): void;
24
- blur(): void;
25
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
- "update:open": (open: boolean) => any;
27
- "update:modelValue": (value: string | undefined) => any;
28
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- "onUpdate:open"?: (open: boolean) => any;
30
- "onUpdate:modelValue"?: (value: string | undefined) => any;
31
- }>, {
32
- form: string | undefined;
33
- disabled: boolean;
34
- required: boolean;
35
- name: string | undefined;
36
- invalid: boolean;
37
- open: boolean | undefined;
38
- placeholder: string | undefined;
39
- modelValue: string | undefined;
40
- defaultValue: string | undefined;
41
- messages: GhostSelectMessages | undefined;
42
- defaultOpen: boolean;
43
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
45
18
  declare const _default: typeof __VLS_export;
46
19
  export default _default;
47
- type __VLS_WithSlots<T, S> = T & {
48
- new (): {
49
- $slots: S;
50
- };
51
- };
20
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
21
+ [K in keyof T]: T[K];
22
+ } : {
23
+ [K in keyof T as K]: T[K];
24
+ }) & {};
@@ -23,11 +23,11 @@ declare const __VLS_template: () => {
23
23
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
24
24
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostSelectContentExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
25
  shift: boolean | GhostSelectShiftOptions;
26
+ offset: boolean | GhostSelectOffsetOptions | undefined;
27
+ flip: boolean | GhostSelectFlipOptions;
26
28
  placement: import("@floating-ui/dom").Placement;
27
29
  as: GhostSelectContentElement;
28
30
  strategy: import("@floating-ui/dom").Strategy;
29
- offset: boolean | GhostSelectOffsetOptions | undefined;
30
- flip: boolean | GhostSelectFlipOptions;
31
31
  portal: boolean;
32
32
  portalTo: GhostPortalTarget;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,11 +1,8 @@
1
- declare const __VLS_template: () => {
2
- __VLS_Slots: {
3
- default?: (props: {}) => any;
4
- } & {
5
- placeholder?: (props: {}) => any;
6
- };
1
+ import { type GhostSelectValueSlotProps } from './ghost-select.js';
2
+ type __VLS_Slots = {
3
+ default?: (props: GhostSelectValueSlotProps) => unknown;
4
+ placeholder?: () => unknown;
7
5
  };
8
- type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
9
6
  declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
7
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
8
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ open?: boolean | undefined;
3
+ defaultOpen?: boolean;
4
+ };
5
+ type __VLS_Slots = {
6
+ default(): unknown;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:open": (open: boolean) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:open"?: (open: boolean) => any;
12
+ }>, {
13
+ open: boolean | undefined;
14
+ defaultOpen: boolean;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,20 @@
1
+ import type { GhostPortalTarget } from './ghost-portal.js';
2
+ type __VLS_Props = {
3
+ portal?: boolean;
4
+ portalTo?: GhostPortalTarget;
5
+ };
6
+ type __VLS_Slots = {
7
+ default(): unknown;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ portal: boolean;
11
+ portalTo: GhostPortalTarget;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ disabled?: boolean;
3
+ };
4
+ type __VLS_Slots = {
5
+ default(): unknown;
6
+ };
7
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ disabled: boolean;
9
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,26 @@
1
+ import type { GhostTagsInputExposed, GhostTagsInputProps } from './ghost-tags-input.js';
2
+ type __VLS_Slots = {
3
+ tag(props: {
4
+ value: string;
5
+ }): unknown;
6
+ };
7
+ declare const __VLS_base: import("vue").DefineComponent<GhostTagsInputProps, GhostTagsInputExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "update:modelValue": (value: string[]) => any;
9
+ }, string, import("vue").PublicProps, Readonly<GhostTagsInputProps> & Readonly<{
10
+ "onUpdate:modelValue"?: (value: string[]) => any;
11
+ }>, {
12
+ disabled: boolean;
13
+ required: boolean;
14
+ invalid: boolean;
15
+ readonly: boolean;
16
+ defaultValue: readonly string[];
17
+ delimiters: readonly ("," | ";")[];
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -29,11 +29,11 @@ declare const __VLS_template: () => {
29
29
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
30
30
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostTooltipContentExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
31
31
  shift: boolean | GhostTooltipShiftOptions;
32
+ offset: boolean | GhostTooltipOffsetOptions | undefined;
33
+ flip: boolean | GhostTooltipFlipOptions;
32
34
  placement: import("@floating-ui/dom").Placement;
33
35
  as: GhostTooltipContentElement;
34
36
  strategy: import("@floating-ui/dom").Strategy;
35
- offset: boolean | GhostTooltipOffsetOptions | undefined;
36
- flip: boolean | GhostTooltipFlipOptions;
37
37
  portal: boolean;
38
38
  portalTo: GhostPortalTarget;
39
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -39,10 +39,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostTreeEx
39
39
  }>, {
40
40
  dir: GhostTreeDirection | undefined;
41
41
  disabled: boolean;
42
+ expanded: string[] | undefined;
42
43
  as: GhostTreeElement;
43
44
  modelValue: GhostTreeValue;
44
45
  defaultValue: GhostTreeValue;
45
- expanded: string[] | undefined;
46
46
  loop: boolean;
47
47
  allowDeselect: boolean;
48
48
  selectionMode: GhostTreeSelectionMode;
@@ -102,6 +102,42 @@ export declare const ghostCodes: {
102
102
  readonly message: "Two GhostScrollSpyLink components in one GhostScrollSpy use the target \"{target}\". Each section id should appear once. Duplicate registrations resolve to the first enabled link in DOM order.";
103
103
  readonly relatedDocs: "./components/scroll-spy.md";
104
104
  };
105
+ readonly GHOST014: {
106
+ readonly level: "warn";
107
+ readonly title: "GhostPresence surface not resolved";
108
+ readonly message: "GhostPresence closed without a resolved surface element, so it unmounted immediately without an exit animation. When the default slot renders a fragment, several roots, or a GhostPortal/Teleport wrapper, bind :ref=\"setElement\" (plus data-state and inert) on the animated element.";
109
+ readonly relatedDocs: "./components/presence.md";
110
+ };
111
+ readonly GHOST015: {
112
+ readonly level: "warn";
113
+ readonly title: "External form attribute ignored in GhostCheckboxGroup";
114
+ readonly message: "GhostCheckboxGroup does not support an external form attribute on {target}. Place the group inside its ancestor form instead; the form attribute was omitted so submission and reset stay aligned.";
115
+ readonly relatedDocs: "./components/checkbox-group.md";
116
+ };
117
+ readonly GHOST016: {
118
+ readonly level: "warn";
119
+ readonly title: "Checkbox member model prop ignored";
120
+ readonly message: "GhostCheckbox with value \"{value}\" inside GhostCheckboxGroup ignores {prop}. Bind v-model or defaultValue on GhostCheckboxGroup instead.";
121
+ readonly relatedDocs: "./components/checkbox-group.md";
122
+ };
123
+ readonly GHOST017: {
124
+ readonly level: "warn";
125
+ readonly title: "Checkbox member name overridden by group";
126
+ readonly message: "GhostCheckbox with value \"{value}\" passed name=\"{itemName}\", which differs from GhostCheckboxGroup name=\"{groupName}\". Using the group name.";
127
+ readonly relatedDocs: "./components/checkbox-group.md";
128
+ };
129
+ readonly GHOST018: {
130
+ readonly level: "warn";
131
+ readonly title: "Duplicate checkbox group option value";
132
+ readonly message: "Two GhostCheckbox members in one GhostCheckboxGroup share the value \"{value}\". Give every member a unique value.";
133
+ readonly relatedDocs: "./components/checkbox-group.md";
134
+ };
135
+ readonly GHOST019: {
136
+ readonly level: "warn";
137
+ readonly title: "GhostSelect multiple mode changed after setup";
138
+ readonly message: "GhostSelect \"multiple\" was read at setup as {initial} and changed to {next}. Keep the mode fixed for the lifetime of the instance.";
139
+ readonly relatedDocs: "./components/select.md";
140
+ };
105
141
  };
106
142
  /**
107
143
  * Formerly assigned codes. Kept so the number cannot be given to a new meaning.
@@ -25,6 +25,12 @@ import type { GhostPortalTarget } from './ghost-portal.js';
25
25
  */
26
26
  export type DialogPartsContext = GhostDialogContext & {
27
27
  openedAtMount: Ref<boolean>;
28
+ /**
29
+ * Internal: skips exit retention for the content surface. Set by
30
+ * `GhostDatePickerContent` so an anchored picker closed before its first
31
+ * positioning (still `visibility: hidden`) unmounts immediately.
32
+ */
33
+ skipExitPresence?: () => boolean;
28
34
  };
29
35
  /** Ref contract every part exposes through `defineExpose`. */
30
36
  export interface DialogPartExposed {
@@ -113,11 +119,9 @@ export declare function useDialogOverlayPart(context: DialogPartsContext, hostRe
113
119
  extraAttrs?: ExtraAttrs;
114
120
  }): {
115
121
  attrs: import("vue").Attrs;
116
- visible: ComputedRef<boolean>;
117
- overlayAttrs: ComputedRef<{
118
- 'aria-hidden': string;
119
- 'data-part': string;
120
- 'data-state': string;
122
+ isPresent: ComputedRef<boolean>;
123
+ overlayAttrs: ComputedRef<Record<string, unknown> & {
124
+ style?: unknown;
121
125
  }>;
122
126
  exposed: DialogPartExposed;
123
127
  };
@@ -163,7 +167,12 @@ export declare function useDialogContentPart(context: DialogPartsContext, props:
163
167
  }): {
164
168
  attrs: import("vue").Attrs;
165
169
  contentElement: ComputedRef<HTMLElement | null>;
166
- contentAttrs: ComputedRef<Record<string, unknown>>;
170
+ presentElement: ComputedRef<HTMLElement | null>;
171
+ isPresent: ComputedRef<boolean>;
172
+ contentAttrs: ComputedRef<Record<string, unknown> & {
173
+ inert?: boolean;
174
+ style?: unknown;
175
+ }>;
167
176
  exposed: DialogPartExposed;
168
177
  };
169
178
  export {};
@@ -6,6 +6,7 @@
6
6
  export interface DismissableLayerEntry {
7
7
  readonly id: symbol;
8
8
  readonly element: HTMLElement;
9
+ readonly branches?: (() => readonly HTMLElement[]) | undefined;
9
10
  /**
10
11
  * Escape-only layers (such as an open tooltip) take part in `Escape`
11
12
  * ordering but never in outside-pointer dismissal or focus ownership, so they
@@ -10,6 +10,14 @@
10
10
  * after the whole dispatch finishes.
11
11
  */
12
12
  export declare function afterNativeFormReset(event: Event, apply: () => void): () => void;
13
+ /**
14
+ * Registers a callback to run once every {@link afterNativeFormReset} macrotask
15
+ * scheduled for `event` has finished or been cancelled on unmount. Invokes
16
+ * `onSettled` immediately when no pending callbacks remain for `event`.
17
+ */
18
+ export declare function afterNativeFormResetSettled(event: Event, onSettled: () => void): () => void;
19
+ /** Resolves once every {@link afterNativeFormReset} callback for `event` settles. */
20
+ export declare function whenNativeFormResetSettled(event: Event): Promise<void>;
13
21
  /** Awaits the macrotask scheduled by {@link afterNativeFormReset} (for tests). */
14
22
  export declare function waitForFormResetDeferral(): Promise<void>;
15
23
  /**
@@ -18,4 +26,4 @@ export declare function waitForFormResetDeferral(): Promise<void>;
18
26
  */
19
27
  export declare function useNativeFormReset(getElement: () => (HTMLElement & {
20
28
  form?: HTMLFormElement | null;
21
- }) | null, apply: () => void): void;
29
+ }) | null, apply: (owner: HTMLFormElement) => void): void;