@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,41 @@
1
+ /** Localized text for the remove controls, status messages, and native validation. */
2
+ export interface GhostTagsInputMessages {
3
+ /** Accessible name of the native remove button for this tag. */
4
+ removeLabel(value: string): string;
5
+ /** Announcement for the tags accepted together in proposal order. */
6
+ added(values: readonly string[]): string;
7
+ /** Announcement after the tag is removed. */
8
+ removed(value: string): string;
9
+ /** Announcement when a user entry already exists. */
10
+ duplicate(value: string): string;
11
+ /** Message for the native required constraint on committed tags. */
12
+ required: string;
13
+ }
14
+ /** Public props for the native text entry and its committed tag list. */
15
+ export interface GhostTagsInputProps {
16
+ /** Controlled committed tags. Omit to use local state. */
17
+ modelValue?: readonly string[] | undefined;
18
+ /** Initial uncontrolled tags and the reset baseline for either mode. */
19
+ defaultValue?: readonly string[];
20
+ /** Opt-in key and paste separators. Enter always commits. */
21
+ delimiters?: readonly (',' | ';')[];
22
+ /** Name of repeated form entries for the committed tags. */
23
+ name?: string | undefined;
24
+ /** Suppresses editing, focus, and form submission. */
25
+ disabled?: boolean;
26
+ /** Suppresses editing and removal while preserving focus and submission. */
27
+ readonly?: boolean;
28
+ /** Requires a committed tag in an editable field. */
29
+ required?: boolean;
30
+ /** Consumer-owned invalid state. */
31
+ invalid?: boolean;
32
+ /** Reactive overrides. Omitted entries use the English defaults. */
33
+ messages?: Partial<GhostTagsInputMessages> | undefined;
34
+ }
35
+ /** Handle returned by a TagsInput template ref. */
36
+ export interface GhostTagsInputExposed {
37
+ /** Native text entry, or null while unmounted. */
38
+ readonly element: HTMLInputElement | null;
39
+ /** Focuses the native text entry. */
40
+ focus(): void;
41
+ }
@@ -29,9 +29,20 @@ export interface GhostTooltipProviderContext {
29
29
  * focus timing stays per-root.
30
30
  */
31
31
  resolveOpenDelay: (tooltipDelay: number | undefined, viaPointer: boolean) => number;
32
- /** Called when a descendant tooltip transitions to open. */
33
- onTooltipDidOpen: () => void;
34
- /** Called when a descendant tooltip transitions to closed. */
35
- onTooltipDidClose: () => void;
32
+ /**
33
+ * Called when a descendant tooltip transitions to open.
34
+ *
35
+ * @param dismiss - Hides that tooltip immediately. The provider calls it
36
+ * when a different descendant opens, so only one tooltip in the group is
37
+ * visible at a time.
38
+ */
39
+ onTooltipDidOpen: (dismiss?: () => void) => void;
40
+ /**
41
+ * Called when a descendant tooltip transitions to closed.
42
+ *
43
+ * @param dismiss - The same callback passed to `onTooltipDidOpen`, so the
44
+ * provider stops tracking that tooltip.
45
+ */
46
+ onTooltipDidClose: (dismiss?: () => void) => void;
36
47
  }
37
48
  export declare const ghostTooltipProviderContextKey: InjectionKey<GhostTooltipProviderContext>;