@leavepulse/ui 0.41.0 → 0.43.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 (157) hide show
  1. package/dist/assets/{LpCommandPalette-DyT6aGdW.css → LpCommandPalette-s_kKuCRf.css} +21 -21
  2. package/dist/chunks/{LpAddressInput-CMjaPQVw.js → LpAddressInput-B-Zvxsn7.js} +1 -1
  3. package/dist/chunks/{LpAppShell-Bcv6EhqU.js → LpAppShell-BGQVIY-3.js} +1 -1
  4. package/dist/chunks/{LpConfirmDialog-BNAvOR24.js → LpConfirmDialog-Q-bxff8z.js} +1 -1
  5. package/dist/chunks/{LpDrawer-DgaS2s2i.js → LpDrawer-BZ6k3hvo.js} +3 -3
  6. package/dist/chunks/{LpLightbox-oLqyjOln.js → LpLightbox-2sYVMY-S.js} +12 -4
  7. package/dist/chunks/{LpMediaGallery-Cid7PGYx.js → LpMediaGallery-FF-NquIo.js} +1 -1
  8. package/dist/chunks/{LpModal-8bja5bWS.js → LpModal-Bt0pQCI_.js} +2 -2
  9. package/dist/chunks/{LpModalNav-w9kfwHqO.js → LpModalNav-YaifHrXC.js} +2 -2
  10. package/dist/chunks/{LpSidebar-DlTn5nXc.js → LpSidebar-ClBUwoEz.js} +1 -1
  11. package/dist/components/LpAddressInput.vue.js +1 -1
  12. package/dist/components/LpAppShell.vue.js +1 -1
  13. package/dist/components/LpCommandPalette.vue.js +124 -115
  14. package/dist/components/LpConfirmDialog.vue.js +1 -1
  15. package/dist/components/LpDrawer.vue.js +1 -1
  16. package/dist/components/LpLightbox.vue.js +1 -1
  17. package/dist/components/LpMediaGallery.vue.js +1 -1
  18. package/dist/components/LpModal.vue.js +1 -1
  19. package/dist/components/LpModalNav.vue.js +1 -1
  20. package/dist/components/LpShortcutsDialog.vue.js +1 -1
  21. package/dist/components/LpSidebar.vue.js +1 -1
  22. package/dist/components/commandSearch.js +66 -0
  23. package/dist/components/modalDepth.js +3 -2
  24. package/dist/composables/useHotkeys.js +41 -21
  25. package/dist/index.js +13 -9
  26. package/package.json +3 -3
  27. package/src/components/LpCommandPalette.vue +81 -99
  28. package/src/components/LpDrawer.vue +3 -3
  29. package/src/components/LpLightbox.vue +11 -5
  30. package/src/components/LpModal.vue +2 -2
  31. package/src/components/commandSearch.ts +92 -0
  32. package/src/components/modalDepth.ts +4 -48
  33. package/src/composables/useHotkeys.ts +54 -33
  34. package/src/index.ts +2 -0
  35. package/src/tokens/tokens.css +13 -19
  36. package/dist/component-names.d.ts +0 -1
  37. package/dist/components/LayoutCanvas.vue.d.ts +0 -28
  38. package/dist/components/LayoutNode.vue.d.ts +0 -40
  39. package/dist/components/LpActionBar.vue.d.ts +0 -84
  40. package/dist/components/LpAddressInput.vue.d.ts +0 -70
  41. package/dist/components/LpAlert.vue.d.ts +0 -44
  42. package/dist/components/LpAppShell.vue.d.ts +0 -123
  43. package/dist/components/LpAutocomplete.vue.d.ts +0 -50
  44. package/dist/components/LpAvatar.vue.d.ts +0 -34
  45. package/dist/components/LpBadge.vue.d.ts +0 -20
  46. package/dist/components/LpBreadcrumbs.vue.d.ts +0 -32
  47. package/dist/components/LpButton.vue.d.ts +0 -113
  48. package/dist/components/LpCalendar.vue.d.ts +0 -29
  49. package/dist/components/LpCard.vue.d.ts +0 -60
  50. package/dist/components/LpChart.vue.d.ts +0 -130
  51. package/dist/components/LpCheckbox.vue.d.ts +0 -32
  52. package/dist/components/LpCodeBlock.vue.d.ts +0 -58
  53. package/dist/components/LpColorPicker.vue.d.ts +0 -124
  54. package/dist/components/LpCommandPalette.vue.d.ts +0 -206
  55. package/dist/components/LpConfirmDialog.vue.d.ts +0 -59
  56. package/dist/components/LpContextMenu.vue.d.ts +0 -44
  57. package/dist/components/LpDatePicker.vue.d.ts +0 -33
  58. package/dist/components/LpDisclosure.vue.d.ts +0 -47
  59. package/dist/components/LpDivider.vue.d.ts +0 -17
  60. package/dist/components/LpDrawer.vue.d.ts +0 -170
  61. package/dist/components/LpDropdownMenu.vue.d.ts +0 -23
  62. package/dist/components/LpDropzone.vue.d.ts +0 -90
  63. package/dist/components/LpEmptyState.vue.d.ts +0 -28
  64. package/dist/components/LpFileTree.vue.d.ts +0 -126
  65. package/dist/components/LpFileTreeNode.vue.d.ts +0 -62
  66. package/dist/components/LpFormField.vue.d.ts +0 -24
  67. package/dist/components/LpIcon.vue.d.ts +0 -8
  68. package/dist/components/LpImageEditor.vue.d.ts +0 -106
  69. package/dist/components/LpInfraNode.vue.d.ts +0 -65
  70. package/dist/components/LpInput.vue.d.ts +0 -80
  71. package/dist/components/LpLaneNode.vue.d.ts +0 -24
  72. package/dist/components/LpLightbox.vue.d.ts +0 -62
  73. package/dist/components/LpLink.vue.d.ts +0 -93
  74. package/dist/components/LpLogViewer.vue.d.ts +0 -153
  75. package/dist/components/LpMapPicker.vue.d.ts +0 -59
  76. package/dist/components/LpMediaGallery.vue.d.ts +0 -80
  77. package/dist/components/LpModal.vue.d.ts +0 -66
  78. package/dist/components/LpModalNav.vue.d.ts +0 -66
  79. package/dist/components/LpNotificationBell.vue.d.ts +0 -85
  80. package/dist/components/LpNumberField.vue.d.ts +0 -21
  81. package/dist/components/LpNumberFlow.vue.d.ts +0 -35
  82. package/dist/components/LpOtpInput.vue.d.ts +0 -39
  83. package/dist/components/LpPagination.vue.d.ts +0 -35
  84. package/dist/components/LpPasswordInput.vue.d.ts +0 -36
  85. package/dist/components/LpPhoneInput.vue.d.ts +0 -49
  86. package/dist/components/LpPie.vue.d.ts +0 -196
  87. package/dist/components/LpPopover.vue.d.ts +0 -34
  88. package/dist/components/LpProgress.vue.d.ts +0 -66
  89. package/dist/components/LpRadio.vue.d.ts +0 -18
  90. package/dist/components/LpRadioGroup.vue.d.ts +0 -26
  91. package/dist/components/LpRollingText.vue.d.ts +0 -33
  92. package/dist/components/LpScrollArea.vue.d.ts +0 -28
  93. package/dist/components/LpSection.vue.d.ts +0 -120
  94. package/dist/components/LpSegmented.vue.d.ts +0 -30
  95. package/dist/components/LpSelect.vue.d.ts +0 -47
  96. package/dist/components/LpServiceNode.vue.d.ts +0 -14
  97. package/dist/components/LpShift.vue.d.ts +0 -36
  98. package/dist/components/LpShortcutsDialog.vue.d.ts +0 -24
  99. package/dist/components/LpSidebar.vue.d.ts +0 -146
  100. package/dist/components/LpSidebarNav.vue.d.ts +0 -54
  101. package/dist/components/LpSkeleton.vue.d.ts +0 -16
  102. package/dist/components/LpSlider.vue.d.ts +0 -30
  103. package/dist/components/LpSparkline.vue.d.ts +0 -48
  104. package/dist/components/LpStat.vue.d.ts +0 -69
  105. package/dist/components/LpStepper.vue.d.ts +0 -36
  106. package/dist/components/LpSwitch.vue.d.ts +0 -42
  107. package/dist/components/LpTable.vue.d.ts +0 -124
  108. package/dist/components/LpTableOfContents.vue.d.ts +0 -19
  109. package/dist/components/LpTabs.vue.d.ts +0 -47
  110. package/dist/components/LpTextarea.vue.d.ts +0 -22
  111. package/dist/components/LpThemeSwitcher.vue.d.ts +0 -47
  112. package/dist/components/LpTilt.vue.d.ts +0 -31
  113. package/dist/components/LpTimeField.vue.d.ts +0 -24
  114. package/dist/components/LpToaster.vue.d.ts +0 -3
  115. package/dist/components/LpTooltip.vue.d.ts +0 -58
  116. package/dist/components/LpTopologyCanvas.vue.d.ts +0 -205
  117. package/dist/components/LpUptimeBar.vue.d.ts +0 -46
  118. package/dist/components/LpWaypointEdge.vue.d.ts +0 -21
  119. package/dist/components/actionBar.d.ts +0 -19
  120. package/dist/components/address.d.ts +0 -107
  121. package/dist/components/chart.d.ts +0 -180
  122. package/dist/components/codeHighlight.d.ts +0 -8
  123. package/dist/components/color.d.ts +0 -65
  124. package/dist/components/countries-data.d.ts +0 -2
  125. package/dist/components/countries.d.ts +0 -20
  126. package/dist/components/dropdown.d.ts +0 -29
  127. package/dist/components/fileTree.d.ts +0 -79
  128. package/dist/components/lightbox.d.ts +0 -24
  129. package/dist/components/modalDepth.d.ts +0 -15
  130. package/dist/components/sidebar.d.ts +0 -42
  131. package/dist/composables/easing.d.ts +0 -46
  132. package/dist/composables/useAsyncTask.d.ts +0 -18
  133. package/dist/composables/useClipboard.d.ts +0 -46
  134. package/dist/composables/useFormDraft.d.ts +0 -67
  135. package/dist/composables/useGlass.d.ts +0 -9
  136. package/dist/composables/useHotkeys.d.ts +0 -99
  137. package/dist/composables/useInputFilter.d.ts +0 -14
  138. package/dist/composables/useMergedClass.d.ts +0 -42
  139. package/dist/composables/usePillTransition.d.ts +0 -21
  140. package/dist/composables/useReveal.d.ts +0 -26
  141. package/dist/composables/useRovingFocus.d.ts +0 -49
  142. package/dist/composables/useSettled.d.ts +0 -26
  143. package/dist/composables/useShift.d.ts +0 -35
  144. package/dist/composables/useTilt.d.ts +0 -23
  145. package/dist/composables/useToast.d.ts +0 -41
  146. package/dist/composables/useZoomPan.d.ts +0 -58
  147. package/dist/icons.d.ts +0 -1
  148. package/dist/index.d.ts +0 -160
  149. package/dist/layout/registry.d.ts +0 -26
  150. package/dist/layout/tree.d.ts +0 -75
  151. package/dist/layout/useLayout.d.ts +0 -39
  152. package/dist/theme/backdrop.d.ts +0 -9
  153. package/dist/theme/config.d.ts +0 -16
  154. package/dist/theme/define.d.ts +0 -12
  155. package/dist/theme/presets.d.ts +0 -20
  156. package/dist/theme/tokens.d.ts +0 -75
  157. package/dist/theme/useTheme.d.ts +0 -46
@@ -1,58 +0,0 @@
1
- import { CodeLang } from './codeHighlight';
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
4
- declare const __VLS_export: import('vue').DefineComponent<{
5
- /** The code (v-model when editable). */
6
- modelValue?: string;
7
- lang?: CodeLang;
8
- /** Show 1-based gutter line numbers. */
9
- lineNumbers?: boolean;
10
- /** Wrap long lines instead of scrolling horizontally. */
11
- wrap?: boolean;
12
- /** Read-only. Set false for an editable field with a lock toggle. */
13
- locked?: boolean;
14
- /** Show the lock/unlock toggle in the header (opt-in editability). */
15
- lockToggle?: boolean;
16
- /** Show the copy button. */
17
- copyable?: boolean;
18
- /** Caption shown in the header (e.g. a filename). */
19
- title?: string;
20
- /** Fixed height; defaults to content height. */
21
- height?: string;
22
- /** Auto-collapse a leading import/package block (no markers needed). */
23
- foldImports?: boolean;
24
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
25
- "update:modelValue": (value: string) => any;
26
- "update:locked": (value: boolean) => any;
27
- }, string, import('vue').PublicProps, Readonly<{
28
- /** The code (v-model when editable). */
29
- modelValue?: string;
30
- lang?: CodeLang;
31
- /** Show 1-based gutter line numbers. */
32
- lineNumbers?: boolean;
33
- /** Wrap long lines instead of scrolling horizontally. */
34
- wrap?: boolean;
35
- /** Read-only. Set false for an editable field with a lock toggle. */
36
- locked?: boolean;
37
- /** Show the lock/unlock toggle in the header (opt-in editability). */
38
- lockToggle?: boolean;
39
- /** Show the copy button. */
40
- copyable?: boolean;
41
- /** Caption shown in the header (e.g. a filename). */
42
- title?: string;
43
- /** Fixed height; defaults to content height. */
44
- height?: string;
45
- /** Auto-collapse a leading import/package block (no markers needed). */
46
- foldImports?: boolean;
47
- }> & Readonly<{
48
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
49
- "onUpdate:locked"?: ((value: boolean) => any) | undefined;
50
- }>, {
51
- lang: CodeLang;
52
- wrap: boolean;
53
- lineNumbers: boolean;
54
- locked: boolean;
55
- lockToggle: boolean;
56
- copyable: boolean;
57
- foldImports: boolean;
58
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,124 +0,0 @@
1
- import { ColorFormat } from './color';
2
- import { ContextMenuItemDef } from './LpContextMenu.vue';
3
- /**
4
- * Every user-facing string the picker renders on its own — the menu items, the
5
- * "Recent" heading, and the accessible names the area, rails and text field
6
- * carry. Apps with i18n pass their translations in; the English defaults keep
7
- * the component usable bare. Without this an app in another language would
8
- * still announce "Saturation and brightness" to a screen reader.
9
- */
10
- export interface ColorPickerLabels {
11
- saturation?: string;
12
- hue?: string;
13
- opacity?: string;
14
- value?: string;
15
- recent?: string;
16
- copyHex?: string;
17
- copyRgb?: string;
18
- copyHsl?: string;
19
- paste?: string;
20
- /** Submenu title for the "show the value as…" format switch. */
21
- formatAs?: string;
22
- format_hex?: string;
23
- format_rgb?: string;
24
- format_hsl?: string;
25
- /** Read out as the area's value, with {s} and {v} as whole percentages. */
26
- saturationValueText?: string;
27
- }
28
- type __VLS_Props = {
29
- /** The colour as a CSS string (v-model). Hex, rgb()/rgba() or hsl()/hsla(). */
30
- modelValue?: string;
31
- /** Shape of the emitted string. Parsing accepts all three either way. */
32
- format?: ColorFormat;
33
- /** Show the alpha rail and emit a colour carrying its alpha. */
34
- alpha?: boolean;
35
- /** Preset colours under the rails. Pass [] to drop the row entirely. */
36
- swatches?: readonly string[];
37
- /** Hide the hex/CSS text field (leaves the field, rails and presets). */
38
- hideInput?: boolean;
39
- disabled?: boolean;
40
- invalid?: boolean;
41
- size?: "sm" | "md" | "lg";
42
- /** Trigger text beside the swatch. Defaults to the colour's own value. */
43
- label?: string;
44
- /** Accessible name for the trigger when it carries no visible text. */
45
- ariaLabel?: string;
46
- /** Popover side, as LpPopover. */
47
- side?: "top" | "right" | "bottom" | "left";
48
- align?: "start" | "center" | "end";
49
- /**
50
- * Right-click menu on the trigger. Copy-as-hex/rgb/hsl and paste are built
51
- * in — the thing a person actually wants from a colour swatch is to take
52
- * the value somewhere else, and reading it off the trigger by hand is how
53
- * a hex ends up mistyped. These come first; `menuItems` is appended below a
54
- * separator. Pass `menu="none"` to drop the built-ins and keep only yours.
55
- */
56
- menu?: "default" | "none";
57
- /** Extra right-click items, appended after the built-in ones. */
58
- menuItems?: ContextMenuItemDef[];
59
- /**
60
- * Remember the colours picked here and offer them back as a "Recent" row.
61
- * A person who tints one tag reaches for the same colour on the next one,
62
- * and the presets cannot know it. Off by default: history is a per-person
63
- * convenience, and a component that wrote to storage uninvited would be a
64
- * surprise in a form that is meant to be stateless.
65
- */
66
- recent?: boolean;
67
- /**
68
- * Storage key for that history, so two pickers can share a list or keep
69
- * separate ones (e.g. "lp.color.tag" vs "lp.color.calendar").
70
- */
71
- recentKey?: string;
72
- /** How many recent colours to keep. */
73
- recentLimit?: number;
74
- /** Translations for the strings the picker renders itself. */
75
- labels?: ColorPickerLabels;
76
- /**
77
- * Toast raised after a successful copy, with `{value}` standing in for the
78
- * colour. `false` copies silently — for a page that already confirms it, or
79
- * one where a toast per copy would be noise. Translate it via `labels`
80
- * rather than here if the rest of your strings go through i18n.
81
- */
82
- copyToast?: string | false;
83
- };
84
- declare var __VLS_56: {
85
- color: string;
86
- hsv: {
87
- h: number;
88
- s: number;
89
- v: number;
90
- a: number;
91
- };
92
- };
93
- type __VLS_Slots = {} & {
94
- default?: (props: typeof __VLS_56) => any;
95
- };
96
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
97
- open: import('vue').Ref<boolean, boolean>;
98
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
99
- change: (value: string) => any;
100
- "update:modelValue": (value: string) => any;
101
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
102
- onChange?: ((value: string) => any) | undefined;
103
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
104
- }>, {
105
- size: "sm" | "md" | "lg";
106
- format: ColorFormat;
107
- align: "start" | "center" | "end";
108
- modelValue: string;
109
- side: "top" | "right" | "bottom" | "left";
110
- alpha: boolean;
111
- swatches: readonly string[];
112
- recent: boolean;
113
- recentKey: string;
114
- recentLimit: number;
115
- copyToast: string | false;
116
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
117
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
118
- declare const _default: typeof __VLS_export;
119
- export default _default;
120
- type __VLS_WithSlots<T, S> = T & {
121
- new (): {
122
- $slots: S;
123
- };
124
- };
@@ -1,206 +0,0 @@
1
- export interface Command {
2
- id: string;
3
- label: string;
4
- /** Second line under the label. */
5
- description?: string;
6
- /**
7
- * A passage of the matched text, wrapped over several lines (clamped by
8
- * `excerptLines`) instead of truncated to one. For results a server found
9
- * inside long text — a docs section, a ticket, a message — where the reason
10
- * the row matched is the part worth reading before opening it.
11
- */
12
- excerpt?: string;
13
- /**
14
- * Extra words to highlight besides the typed query. A server that matches
15
- * word forms or typos knows which words actually matched; the query alone
16
- * would leave those unmarked.
17
- */
18
- highlight?: string[];
19
- icon?: string;
20
- /** Right-aligned hint, e.g. "⌘P". */
21
- shortcut?: string;
22
- /** Extra search terms not shown but matched against the query. */
23
- keywords?: string[];
24
- /** Section heading this command sits under. */
25
- group?: string;
26
- disabled?: boolean;
27
- /**
28
- * Hidden from the default (empty-query) list — only surfaces once the user
29
- * types something it matches. For rarely-used or destructive actions (prune,
30
- * decommission, …) that shouldn't clutter the palette but stay reachable.
31
- */
32
- hidden?: boolean;
33
- /**
34
- * Picking this opens a mode instead of closing: a nested list, either given
35
- * outright or fetched from the query typed inside it. This is what keeps a
36
- * palette from flattening "restart <service>" into one row per service —
37
- * and what lets the second step search a list too big to enumerate.
38
- *
39
- * `onSelect` still runs when the mode opens, so a command can both act and
40
- * drill in.
41
- */
42
- children?: Command[] | ((query: string) => Command[] | Promise<Command[]>);
43
- /** Placeholder while inside this command's mode. */
44
- childPlaceholder?: string;
45
- /**
46
- * Keep the palette open after this runs. For a command that toggles
47
- * something the user may want to toggle again (a theme, a filter) without
48
- * reopening and retyping.
49
- */
50
- keepOpen?: boolean;
51
- /**
52
- * Where the command leads. The row renders as a real link, so Ctrl/⌘-click,
53
- * Shift-click and middle-click open it the way the browser opens any link,
54
- * and Ctrl/⌘+Enter opens it in a new tab from the keyboard. A plain pick
55
- * still runs `onSelect` (a router push, say); without one it follows the
56
- * link.
57
- */
58
- href?: string;
59
- /**
60
- * Further things to do with this result besides opening it — copy its id,
61
- * open it elsewhere, share it. Tab on the highlighted row lists them as a
62
- * mode named after the row. A command with `href` gets "open in new tab"
63
- * and "copy link" after its own.
64
- */
65
- actions?: Command[];
66
- /**
67
- * The whole text behind this result, for the preview pane (`previewPane`):
68
- * the section a docs hit points into, the ticket body, the message. Line
69
- * breaks are kept. Without it the pane shows the `excerpt`.
70
- */
71
- preview?: string;
72
- onSelect?: () => void;
73
- }
74
- /** Footer hints and the mode chip, spelled out so an app can translate them. */
75
- export interface PaletteLabels {
76
- navigate: string;
77
- select: string;
78
- close: string;
79
- /** Hint for leaving a mode, shown only while inside one. */
80
- back: string;
81
- searching: string;
82
- /** Shown when `search` (or a fetching mode) threw. */
83
- searchFailed: string;
84
- retry: string;
85
- /** The row that unfolds a group cut by `groupLimit`; `{count}` is how many are hidden. */
86
- showMore: string;
87
- /** Footer hint for Tab while the highlighted row has actions. */
88
- actions: string;
89
- openInNewTab: string;
90
- copyLink: string;
91
- /** Toast after "copy link"; empty for none. */
92
- linkCopied: string;
93
- /**
94
- * @deprecated The pane now closes for a row with nothing to show, so this
95
- * text is never displayed. Kept so existing `labels` objects still type-check.
96
- */
97
- noPreview?: string;
98
- }
99
- type __VLS_Props = {
100
- open?: boolean;
101
- commands: Command[];
102
- placeholder?: string;
103
- emptyText?: string;
104
- /** Bind a global ⌘K / Ctrl-K toggle. */
105
- hotkey?: boolean;
106
- /**
107
- * Commands fetched from the typed query — what reaches the things too many
108
- * (or too remote) to hand over as a list: people, files, tickets. Called
109
- * debounced, never for a query shorter than `minChars`, and only its
110
- * newest call counts: an earlier one that lands late is dropped, so a slow
111
- * response can't overwrite a fresher list.
112
- *
113
- * Results join the static commands, so a palette can do both.
114
- */
115
- search?: (query: string, signal: AbortSignal) => Command[] | Promise<Command[]>;
116
- /** Wait after the last keystroke before `search` runs. */
117
- debounce?: number;
118
- /** Shortest query `search` runs for. */
119
- minChars?: number;
120
- /**
121
- * Ids of recently picked commands, newest first — bind it to storage and
122
- * the palette opens on what this person actually uses. It only reorders
123
- * commands already in the list; an id that no longer resolves is skipped,
124
- * so a stored history never resurrects a command that has gone away.
125
- */
126
- recent?: string[];
127
- /** How many recent commands to surface. */
128
- recentLimit?: number;
129
- /** Headings the palette adds itself. */
130
- recentLabel?: string;
131
- resultsLabel?: string;
132
- /** Footer hints and the mode chip, spelled out for translation. */
133
- labels?: Partial<PaletteLabels>;
134
- /** Lines an `excerpt` may wrap to before it is clamped. */
135
- excerptLines?: number;
136
- /**
137
- * Rows a group shows before folding the rest behind a "Show N more" row.
138
- * One provider answering with thirty people would otherwise push every
139
- * other group off the screen. 0 shows everything.
140
- */
141
- groupLimit?: number;
142
- /**
143
- * When the query matches nothing, retry it as if typed in the other
144
- * keyboard layout (QWERTY ↔ ЙЦУКЕН). Off for an app whose commands are
145
- * meant to be typed in one layout only.
146
- */
147
- layoutFallback?: boolean;
148
- /**
149
- * A pane beside the list showing the highlighted result in full — its
150
- * `preview` text, or the `preview` slot. For palettes that search
151
- * content rather than commands: the excerpt says why a row matched, the
152
- * pane lets it be read without leaving the page. It opens only for a row
153
- * with `preview` or `excerpt` (any row, with the slot): the dialog eases
154
- * wider, the pane slides in, and the text arrives paragraph by paragraph.
155
- * Hidden below the md breakpoint, where there is no room beside the list.
156
- *
157
- * The width is an inline style rather than a pair of classes: a base
158
- * width plus an `md:` override could be emitted by a consumer's Tailwind
159
- * build in an order where the base won, and the pane opened squeezed.
160
- */
161
- previewPane?: boolean;
162
- /**
163
- * Frosted glass instead of a solid panel: the page shows through,
164
- * blurred, under a lighter scrim (.lp-glass-overlay, .lp-scrim--light).
165
- * A look, not a behaviour, so it is the app's call: unset follows
166
- * `provideGlass`, and without one it is off.
167
- */
168
- glass?: boolean;
169
- };
170
- type __VLS_Slots = {
171
- /** Body of the preview pane for the highlighted command. */
172
- preview?: (props: {
173
- command: Command;
174
- }) => unknown;
175
- };
176
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
177
- select: (command: Command) => any;
178
- "update:open": (value: boolean) => any;
179
- run: (id: string, command: Command) => any;
180
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
181
- onSelect?: ((command: Command) => any) | undefined;
182
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
183
- onRun?: ((id: string, command: Command) => any) | undefined;
184
- }>, {
185
- placeholder: string;
186
- emptyText: string;
187
- minChars: number;
188
- glass: boolean;
189
- debounce: number;
190
- recentLimit: number;
191
- hotkey: boolean;
192
- recentLabel: string;
193
- resultsLabel: string;
194
- excerptLines: number;
195
- groupLimit: number;
196
- layoutFallback: boolean;
197
- previewPane: boolean;
198
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
199
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
200
- declare const _default: typeof __VLS_export;
201
- export default _default;
202
- type __VLS_WithSlots<T, S> = T & {
203
- new (): {
204
- $slots: S;
205
- };
206
- };
@@ -1,59 +0,0 @@
1
- type __VLS_Props = {
2
- open?: boolean;
3
- title?: string;
4
- description?: string;
5
- confirmLabel?: string;
6
- cancelLabel?: string;
7
- /**
8
- * The action destroys something. Colours the confirm button, and marks the
9
- * title with a warning glyph — a destructive prompt should be recognisable
10
- * before the words are read, since it is the one dialog people dismiss on
11
- * reflex.
12
- */
13
- danger?: boolean;
14
- /**
15
- * Override the marker: any iconify name, or `""` to leave the title plain —
16
- * for a `danger` action whose dialog body already carries the warning and
17
- * would otherwise state it twice.
18
- *
19
- * A string rather than `string | false`, deliberately: a union including
20
- * Boolean makes Vue boolean-cast the prop, so an absent `icon` would arrive
21
- * as `false` and be indistinguishable from a caller suppressing the marker.
22
- */
23
- icon?: string;
24
- /**
25
- * The confirm action is in flight: the button disables and swaps to
26
- * `loadingLabel`, and confirming no longer closes the dialog — the owner
27
- * closes it once the work settles, so a failure can stay on screen.
28
- */
29
- loading?: boolean;
30
- loadingLabel?: string;
31
- /** Frosted glass panel, passed to LpModal. Follows `provideGlass` when unset. */
32
- glass?: boolean;
33
- };
34
- declare var __VLS_16: {};
35
- type __VLS_Slots = {} & {
36
- default?: (props: typeof __VLS_16) => any;
37
- };
38
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
39
- cancel: () => any;
40
- "update:open": (value: boolean) => any;
41
- confirm: () => any;
42
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
43
- onCancel?: (() => any) | undefined;
44
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
45
- onConfirm?: (() => any) | undefined;
46
- }>, {
47
- glass: boolean;
48
- confirmLabel: string;
49
- cancelLabel: string;
50
- loadingLabel: string;
51
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
52
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
53
- declare const _default: typeof __VLS_export;
54
- export default _default;
55
- type __VLS_WithSlots<T, S> = T & {
56
- new (): {
57
- $slots: S;
58
- };
59
- };
@@ -1,44 +0,0 @@
1
- export interface ContextMenuItemDef {
2
- label: string;
3
- icon?: string;
4
- /** Right-aligned hint, e.g. "⌘C". */
5
- shortcut?: string;
6
- danger?: boolean;
7
- disabled?: boolean;
8
- separatorBefore?: boolean;
9
- onSelect?: () => void;
10
- /** Nested submenu. When present, onSelect is ignored. */
11
- children?: ContextMenuItemDef[];
12
- /**
13
- * Renders as a tick-box rather than a plain item, and the menu stays open on
14
- * select. For the lists where the point is to set several at once — which
15
- * columns to show, which values to filter by — and closing after each one
16
- * would mean reopening the menu for every tick.
17
- */
18
- checked?: boolean;
19
- }
20
- type __VLS_Props = {
21
- items: ContextMenuItemDef[];
22
- /**
23
- * Keep the reka menu mounted even while `items` is momentarily empty. Use when
24
- * the items are resolved on the right-click itself (e.g. a list that figures
25
- * out which row was clicked): without this the trigger would still be in
26
- * native-menu mode on that first click and swallow it.
27
- */
28
- always?: boolean;
29
- };
30
- declare var __VLS_1: {}, __VLS_18: {};
31
- type __VLS_Slots = {} & {
32
- default?: (props: typeof __VLS_1) => any;
33
- } & {
34
- default?: (props: typeof __VLS_18) => any;
35
- };
36
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
- declare const _default: typeof __VLS_export;
39
- export default _default;
40
- type __VLS_WithSlots<T, S> = T & {
41
- new (): {
42
- $slots: S;
43
- };
44
- };
@@ -1,33 +0,0 @@
1
- type __VLS_Props = {
2
- /** Selected date "YYYY-MM-DD" (v-model). */
3
- modelValue?: string;
4
- placeholder?: string;
5
- min?: string;
6
- max?: string;
7
- isDisabled?: (iso: string) => boolean;
8
- clearable?: boolean;
9
- disabled?: boolean;
10
- invalid?: boolean;
11
- size?: "sm" | "md" | "lg";
12
- /** Intl format for the displayed date. */
13
- format?: Intl.DateTimeFormatOptions;
14
- /** Also pick a minute; the model becomes "YYYY-MM-DDTHH:mm". */
15
- time?: boolean;
16
- /** Time a freshly picked day starts at, "HH:mm". */
17
- defaultTime?: string;
18
- /** Label of the button that closes the popover in `time` mode. */
19
- doneLabel?: string;
20
- };
21
- declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
- "update:modelValue": (value: string | undefined) => any;
23
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
- "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
25
- }>, {
26
- size: "sm" | "md" | "lg";
27
- format: Intl.DateTimeFormatOptions;
28
- placeholder: string;
29
- defaultTime: string;
30
- doneLabel: string;
31
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
- declare const _default: typeof __VLS_export;
33
- export default _default;
@@ -1,47 +0,0 @@
1
- declare const _default: typeof __VLS_export;
2
- export default _default;
3
- declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
4
- /** Controlled open state. Omit to let the component own it (with `defaultOpen`). */
5
- open?: boolean;
6
- defaultOpen?: boolean;
7
- /** Trigger label (or use the #trigger slot for richer content). */
8
- label?: string;
9
- /** Optional iconify name shown left of the label. */
10
- icon?: string;
11
- /**
12
- * On open, smooth-scroll the block to the top of the nearest scroll
13
- * container so its content isn't left below the fold. Fires immediately,
14
- * in parallel with the expand.
15
- */
16
- scrollIntoView?: boolean;
17
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
- "update:open": (value: boolean) => any;
19
- }, string, import('vue').PublicProps, Readonly<{
20
- /** Controlled open state. Omit to let the component own it (with `defaultOpen`). */
21
- open?: boolean;
22
- defaultOpen?: boolean;
23
- /** Trigger label (or use the #trigger slot for richer content). */
24
- label?: string;
25
- /** Optional iconify name shown left of the label. */
26
- icon?: string;
27
- /**
28
- * On open, smooth-scroll the block to the top of the nearest scroll
29
- * container so its content isn't left below the fold. Fires immediately,
30
- * in parallel with the expand.
31
- */
32
- scrollIntoView?: boolean;
33
- }> & Readonly<{
34
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
35
- }>, {
36
- defaultOpen: boolean;
37
- scrollIntoView: boolean;
38
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
39
- trigger?: (props: {}) => any;
40
- } & {
41
- default?: (props: {}) => any;
42
- }>;
43
- type __VLS_WithSlots<T, S> = T & {
44
- new (): {
45
- $slots: S;
46
- };
47
- };
@@ -1,17 +0,0 @@
1
- type __VLS_Props = {
2
- vertical?: boolean;
3
- label?: string;
4
- };
5
- declare var __VLS_1: {};
6
- type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_1) => any;
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<{}>, {}, {}, {}, {}, 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
- };