@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,66 +0,0 @@
1
- type __VLS_Props = {
2
- value?: number;
3
- max?: number;
4
- /**
5
- * `"auto"` colours by how full the bar is — calm up to `warnAt`, accent
6
- * past it, danger past `dangerAt`.
7
- *
8
- * A gauge of a finite resource (disk, memory, quota) means something
9
- * different at 92% than at 12%, and consumers were each re-deriving that
10
- * with their own palette — which also put raw colours back into components
11
- * the theme can no longer reach.
12
- */
13
- tone?: "brand" | "action" | "danger" | "accent" | "auto";
14
- /** `auto` tone: the fill fraction, 0–1, where the bar turns accent. */
15
- warnAt?: number;
16
- /** `auto` tone: the fill fraction, 0–1, where it turns danger. */
17
- dangerAt?: number;
18
- /**
19
- * Bar only: a name for what is being measured, printed above the bar. With
20
- * `caption` it forms the "CPU … 42%" header a usage row wants.
21
- */
22
- title?: string;
23
- /**
24
- * Bar only: the reading, printed opposite `title`. `true` prints the
25
- * rounded percentage; a string says it in the units that matter
26
- * ("23 GB / 64 GB"), which a percentage alone cannot.
27
- */
28
- caption?: boolean | string;
29
- /** `bar` (default) fills horizontally; `ring` draws a dial. */
30
- variant?: "bar" | "ring";
31
- /** Ring only: outer diameter in px. */
32
- size?: number;
33
- /** Ring only: stroke width in px. */
34
- thickness?: number;
35
- /**
36
- * Ring only: print the rounded percentage in the middle. Pass a string to
37
- * label it with something else ("12.4k", "3/8") — the ring shows progress,
38
- * the caption says what it is progress of.
39
- */
40
- label?: boolean | string;
41
- /**
42
- * Grow from empty on first render instead of appearing already filled.
43
- *
44
- * A dial that arrives complete states a fact; one that fills shows a
45
- * quantity being measured, and the eye follows the sweep to where it stops —
46
- * which is the number the tile is actually about. Both variants already ease
47
- * every later change, so this only concerns the first paint.
48
- */
49
- animateOnMount?: boolean;
50
- /** How long the fill takes, in ms. The counter in a ring matches it. */
51
- duration?: number;
52
- };
53
- declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
54
- size: number;
55
- max: number;
56
- value: number;
57
- duration: number;
58
- variant: "bar" | "ring";
59
- tone: "brand" | "action" | "danger" | "accent" | "auto";
60
- animateOnMount: boolean;
61
- warnAt: number;
62
- dangerAt: number;
63
- thickness: number;
64
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
65
- declare const _default: typeof __VLS_export;
66
- export default _default;
@@ -1,18 +0,0 @@
1
- declare const _default: typeof __VLS_export;
2
- export default _default;
3
- declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
4
- value: string;
5
- label?: string;
6
- disabled?: boolean;
7
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
8
- value: string;
9
- label?: string;
10
- disabled?: boolean;
11
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
12
- default?: (props: {}) => any;
13
- }>;
14
- type __VLS_WithSlots<T, S> = T & {
15
- new (): {
16
- $slots: S;
17
- };
18
- };
@@ -1,26 +0,0 @@
1
- export interface RadioOption {
2
- value: string;
3
- label: string;
4
- }
5
- declare const _default: typeof __VLS_export;
6
- export default _default;
7
- declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
8
- modelValue?: string;
9
- options?: RadioOption[];
10
- disabled?: boolean;
11
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
- "update:modelValue": (value: string) => any;
13
- }, string, import('vue').PublicProps, Readonly<{
14
- modelValue?: string;
15
- options?: RadioOption[];
16
- disabled?: boolean;
17
- }> & Readonly<{
18
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
19
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
20
- default?: (props: {}) => any;
21
- }>;
22
- type __VLS_WithSlots<T, S> = T & {
23
- new (): {
24
- $slots: S;
25
- };
26
- };
@@ -1,33 +0,0 @@
1
- type __VLS_Props = {
2
- /** The text. A change to this is what triggers the transition. */
3
- value: string | number;
4
- mode?: "slide" | "flip";
5
- /** Which way "slide" travels. `up` moves the old text up and out. */
6
- direction?: "up" | "down";
7
- duration?: number;
8
- /**
9
- * Alignment inside the clipped box, for when the two values differ in
10
- * width — a value that grows shouldn't shove its neighbours.
11
- */
12
- align?: "start" | "center" | "end";
13
- };
14
- declare var __VLS_7: {
15
- value: string | number;
16
- };
17
- type __VLS_Slots = {} & {
18
- default?: (props: typeof __VLS_7) => any;
19
- };
20
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
21
- mode: "slide" | "flip";
22
- direction: "up" | "down";
23
- align: "start" | "center" | "end";
24
- duration: number;
25
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
- declare const _default: typeof __VLS_export;
28
- export default _default;
29
- type __VLS_WithSlots<T, S> = T & {
30
- new (): {
31
- $slots: S;
32
- };
33
- };
@@ -1,28 +0,0 @@
1
- type __VLS_Props = {
2
- fade?: boolean;
3
- instant?: boolean;
4
- contentClass?: string;
5
- barInsetTop?: string;
6
- };
7
- declare var __VLS_44: {};
8
- type __VLS_Slots = {} & {
9
- default?: (props: typeof __VLS_44) => any;
10
- };
11
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
12
- viewportEl: import('vue').ComputedRef<HTMLElement | null>;
13
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- scroll: (event: Event) => any;
15
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
- onScroll?: ((event: Event) => any) | undefined;
17
- }>, {
18
- instant: boolean;
19
- fade: boolean;
20
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
- declare const _default: typeof __VLS_export;
23
- export default _default;
24
- type __VLS_WithSlots<T, S> = T & {
25
- new (): {
26
- $slots: S;
27
- };
28
- };
@@ -1,120 +0,0 @@
1
- import { VariantProps } from 'tailwind-variants';
2
- declare const section: import('tailwind-variants').TVReturnType<{
3
- described: {
4
- true: {
5
- root: string;
6
- };
7
- false: {
8
- root: string;
9
- };
10
- };
11
- level: {
12
- sm: {
13
- title: string;
14
- };
15
- md: {
16
- title: string;
17
- };
18
- lg: {
19
- title: string;
20
- };
21
- xl: {
22
- title: string;
23
- };
24
- };
25
- }, {
26
- root: string;
27
- title: string;
28
- description: string;
29
- actions: string;
30
- }, undefined, {
31
- described: {
32
- true: {
33
- root: string;
34
- };
35
- false: {
36
- root: string;
37
- };
38
- };
39
- level: {
40
- sm: {
41
- title: string;
42
- };
43
- md: {
44
- title: string;
45
- };
46
- lg: {
47
- title: string;
48
- };
49
- xl: {
50
- title: string;
51
- };
52
- };
53
- }, {
54
- root: string;
55
- title: string;
56
- description: string;
57
- actions: string;
58
- }, import('tailwind-variants').TVReturnType<{
59
- described: {
60
- true: {
61
- root: string;
62
- };
63
- false: {
64
- root: string;
65
- };
66
- };
67
- level: {
68
- sm: {
69
- title: string;
70
- };
71
- md: {
72
- title: string;
73
- };
74
- lg: {
75
- title: string;
76
- };
77
- xl: {
78
- title: string;
79
- };
80
- };
81
- }, {
82
- root: string;
83
- title: string;
84
- description: string;
85
- actions: string;
86
- }, undefined, unknown, unknown, undefined>>;
87
- type SectionVariants = VariantProps<typeof section>;
88
- type __VLS_Props = {
89
- title?: string;
90
- /** One line under the title. */
91
- description?: string;
92
- /** Iconify name shown before the title, e.g. "lucide:server". */
93
- icon?: string;
94
- /** Visual size. Independent of `as`, see the note above. */
95
- level?: SectionVariants["level"];
96
- /** The heading element to render. Pick it for the document outline. */
97
- as?: "h1" | "h2" | "h3" | "h4" | "p";
98
- };
99
- type __VLS_Slots = {
100
- /** Title markup, when a plain string is not enough. */
101
- title?: () => unknown;
102
- /** Description markup, when a plain string is not enough. */
103
- description?: () => unknown;
104
- /** Right-aligned controls: buttons, filters, a count. */
105
- actions?: () => unknown;
106
- /** Extra content beside the title: a badge, a count, a status dot. */
107
- meta?: () => unknown;
108
- };
109
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
110
- as: "h1" | "h2" | "h3" | "h4" | "p";
111
- level: "sm" | "md" | "lg" | "xl";
112
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
113
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
114
- declare const _default: typeof __VLS_export;
115
- export default _default;
116
- type __VLS_WithSlots<T, S> = T & {
117
- new (): {
118
- $slots: S;
119
- };
120
- };
@@ -1,30 +0,0 @@
1
- export interface SegmentedOption {
2
- value: string;
3
- label?: string;
4
- /** Optional iconify name shown before the label (or alone, icon-only). */
5
- icon?: string;
6
- }
7
- declare const _default: typeof __VLS_export;
8
- export default _default;
9
- declare const __VLS_export: import('vue').DefineComponent<{
10
- modelValue?: string;
11
- options: SegmentedOption[];
12
- size?: "sm" | "md";
13
- /** Stretch to fill the container with equal-width segments. */
14
- block?: boolean;
15
- disabled?: boolean;
16
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
- "update:modelValue": (value: string) => any;
18
- }, string, import('vue').PublicProps, Readonly<{
19
- modelValue?: string;
20
- options: SegmentedOption[];
21
- size?: "sm" | "md";
22
- /** Stretch to fill the container with equal-width segments. */
23
- block?: boolean;
24
- disabled?: boolean;
25
- }> & Readonly<{
26
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
27
- }>, {
28
- size: "sm" | "md";
29
- block: boolean;
30
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,47 +0,0 @@
1
- export type SelectValue = string | number;
2
- export interface SelectOption<V extends SelectValue = SelectValue> {
3
- value: V;
4
- label: string;
5
- description?: string;
6
- }
7
- declare const __VLS_export: <V extends SelectValue = 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<{
8
- props: import('vue').PublicProps & __VLS_PrettifyLocal<{
9
- modelValue?: V | V[] | undefined;
10
- options: SelectOption<V>[];
11
- placeholder?: string;
12
- searchPlaceholder?: string;
13
- searchable?: boolean;
14
- multiple?: boolean;
15
- clearable?: boolean;
16
- disabled?: boolean;
17
- emptyText?: string;
18
- searchTerm?: string;
19
- loading?: boolean;
20
- loadingText?: string;
21
- /** Trigger height, keyed to --size-control-*. Default "md". */
22
- size?: "sm" | "md" | "lg";
23
- } & {
24
- onChange?: ((value: V) => any) | undefined;
25
- "onUpdate:modelValue"?: ((value: V | V[] | undefined) => any) | undefined;
26
- "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
27
- }> & (typeof globalThis extends {
28
- __VLS_PROPS_FALLBACK: infer P;
29
- } ? P : {});
30
- expose: (exposed: {}) => void;
31
- attrs: any;
32
- slots: {};
33
- emit: {
34
- (e: "update:modelValue", value: V | V[] | undefined): void;
35
- (e: "change", value: V): void;
36
- (e: "update:searchTerm", value: string): void;
37
- };
38
- }>) => import('vue').VNode & {
39
- __ctx?: Awaited<typeof __VLS_setup>;
40
- };
41
- declare const _default: typeof __VLS_export;
42
- export default _default;
43
- type __VLS_PrettifyLocal<T> = (T extends any ? {
44
- [K in keyof T]: T[K];
45
- } : {
46
- [K in keyof T as K]: T[K];
47
- }) & {};
@@ -1,14 +0,0 @@
1
- export interface ServiceNodeData {
2
- name: string;
3
- kind?: string;
4
- stack?: string;
5
- /** Fade the node back (search miss / not part of the focused node's graph). */
6
- dimmed?: boolean;
7
- }
8
- type __VLS_Props = {
9
- data: ServiceNodeData;
10
- selected?: boolean;
11
- };
12
- declare const __VLS_export: 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>;
13
- declare const _default: typeof __VLS_export;
14
- export default _default;
@@ -1,36 +0,0 @@
1
- import { ShiftAxis } from '../composables/useShift';
2
- type __VLS_Props = {
3
- /**
4
- * Which dimension eases. `"width"` for a row that gains/loses controls,
5
- * `"height"` for a stack whose content grows, `"both"` when either can.
6
- */
7
- axis?: ShiftAxis;
8
- /** Tween length in ms. Defaults to the kit's `--duration-fast`. */
9
- duration?: number;
10
- /**
11
- * Turn the easing off entirely — the wrapper stays, the box resizes
12
- * instantly. For a box that is being driven by something else (a drag, a
13
- * canvas), where a tween would fight the thing already animating it.
14
- */
15
- disabled?: boolean;
16
- };
17
- declare var __VLS_1: {
18
- resizing: boolean;
19
- };
20
- type __VLS_Slots = {} & {
21
- default?: (props: typeof __VLS_1) => any;
22
- };
23
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
24
- resizing: import('vue').Ref<boolean, boolean>;
25
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
26
- disabled: boolean;
27
- axis: ShiftAxis;
28
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
- declare const _default: typeof __VLS_export;
31
- export default _default;
32
- type __VLS_WithSlots<T, S> = T & {
33
- new (): {
34
- $slots: S;
35
- };
36
- };
@@ -1,24 +0,0 @@
1
- import { ShortcutGroup } from '../composables/useHotkeys';
2
- type __VLS_Props = {
3
- open?: boolean;
4
- groups?: ShortcutGroup[];
5
- /** Also list the bindings mounted right now (`useHotkeys` with `help`). */
6
- live?: boolean;
7
- title?: string;
8
- description?: string;
9
- /** Frosted glass panel, passed to LpModal. Follows `provideGlass` when unset. */
10
- glass?: boolean;
11
- };
12
- declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
- "update:open": (value: boolean) => any;
14
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
16
- }>, {
17
- title: string;
18
- open: boolean;
19
- glass: boolean;
20
- groups: ShortcutGroup[];
21
- live: boolean;
22
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
- declare const _default: typeof __VLS_export;
24
- export default _default;
@@ -1,146 +0,0 @@
1
- import { SidebarItem, SidebarSection } from './sidebar';
2
- export type { SidebarItem, SidebarSection } from './sidebar';
3
- type __VLS_Props = {
4
- /** Active item id (v-model). Ignored when `isActive` is provided. */
5
- modelValue?: string;
6
- /** Flat items, or sections for grouped nav. */
7
- items?: SidebarItem[];
8
- sections?: SidebarSection[];
9
- /**
10
- * Custom active test — for router-driven nav where "active" is a path-prefix
11
- * match (e.g. /billing vs /billing-details), not a simple id compare. When
12
- * given it overrides the modelValue check. The consumer owns the routing.
13
- */
14
- isActive?: (item: SidebarItem) => boolean;
15
- /**
16
- * Put a filter field above the nav. A hundred-item sidebar is not read, it
17
- * is searched: past a screenful, scanning costs more than typing, and every
18
- * app that has one had built the same LpInput into the #header slot.
19
- *
20
- * Filtering is on `label` (and any `keywords` on the item), case- and
21
- * accent-insensitive. Sections whose items all fail drop out rather than
22
- * leaving a run of empty headings, and a collapsed section opens while a
23
- * query is active — a hidden match is the same as no match.
24
- */
25
- searchable?: boolean;
26
- /** Placeholder for that field. */
27
- searchPlaceholder?: string;
28
- /** The query, when the app wants to own it (v-model:search). */
29
- search?: string;
30
- /** Show a skeleton placeholder instead of the items. */
31
- loading?: boolean;
32
- /** Skeleton row count while loading. */
33
- skeletonRows?: number;
34
- /** Render the user/header skeleton row too (paired with a #header avatar). */
35
- skeletonHeader?: boolean;
36
- /**
37
- * Collapse to a swipeable drawer on phones. Off by default so existing
38
- * static-rail usage is unchanged.
39
- */
40
- responsive?: boolean;
41
- /** Drawer open state on mobile (v-model:open). Only used when `responsive`. */
42
- open?: boolean;
43
- /** Tailwind breakpoint below which the drawer takes over. */
44
- mobileBreakpoint?: "sm" | "md" | "lg" | "xl";
45
- /** Let a pull from the left screen edge drag the mobile drawer open. */
46
- edgeOpen?: boolean;
47
- /**
48
- * Draw a hairline rule between the #header (logo) and the nav. On by
49
- * default — it visually anchors the brand above the items. Pass false for a
50
- * flush, header-less look.
51
- */
52
- divider?: boolean;
53
- /**
54
- * Where this nav lives.
55
- *
56
- * `rail` is the app shell's edge: one hairline on the inner side, square
57
- * corners, the raised shell background.
58
- *
59
- * `panel` is a nav that sits inside a page next to the content it drives —
60
- * a settings index, a table picker. It is a card: boxed on all four sides
61
- * and rounded. Without it the rail's single border reads as a stray line
62
- * down the middle of the page, and a consumer cannot cancel it with a class
63
- * of their own.
64
- */
65
- variant?: "rail" | "panel";
66
- /**
67
- * Rail width. A plain `class` cannot set it — the component's own `w-60`
68
- * wins, and the kit does not merge conflicting Tailwind classes — so the
69
- * width is a prop. Any CSS length; a page-embedded nav usually wants to
70
- * match the column it lives in.
71
- */
72
- width?: string;
73
- /**
74
- * Which collapsible groups are folded away (v-model:collapsed). Leave it
75
- * unbound to let the sidebar fold long navs on its own — see
76
- * `autoCollapseAfter`.
77
- */
78
- collapsed?: string[];
79
- /**
80
- * Fold collapsible groups automatically once the nav has more than this
81
- * many rows, counting headings and items alike.
82
- *
83
- * The reason is the reader, not the pixels: a short nav is taken in at a
84
- * glance, a long one has to be searched, and searching a list you did not
85
- * choose to have is the part that grates. Past the threshold the groups
86
- * that are not today's work fold themselves, and the one holding the
87
- * current page always stays open.
88
- *
89
- * 0 turns it off — the app then owns the state through `collapsed`.
90
- */
91
- autoCollapseAfter?: number;
92
- };
93
- declare var __VLS_1: {}, __VLS_18: {
94
- item: SidebarItem;
95
- active: boolean;
96
- }, __VLS_20: {}, __VLS_22: {}, __VLS_32: {}, __VLS_49: {
97
- item: SidebarItem;
98
- active: boolean;
99
- }, __VLS_51: {}, __VLS_53: {};
100
- type __VLS_Slots = {} & {
101
- header?: (props: typeof __VLS_1) => any;
102
- } & {
103
- item?: (props: typeof __VLS_18) => any;
104
- } & {
105
- actions?: (props: typeof __VLS_20) => any;
106
- } & {
107
- footer?: (props: typeof __VLS_22) => any;
108
- } & {
109
- header?: (props: typeof __VLS_32) => any;
110
- } & {
111
- item?: (props: typeof __VLS_49) => any;
112
- } & {
113
- actions?: (props: typeof __VLS_51) => any;
114
- } & {
115
- footer?: (props: typeof __VLS_53) => any;
116
- };
117
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
118
- select: (item: SidebarItem) => any;
119
- "update:modelValue": (id: string) => any;
120
- "update:open": (value: boolean) => any;
121
- "update:collapsed": (keys: string[]) => any;
122
- "update:search": (value: string) => any;
123
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
124
- onSelect?: ((item: SidebarItem) => any) | undefined;
125
- "onUpdate:modelValue"?: ((id: string) => any) | undefined;
126
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
127
- "onUpdate:collapsed"?: ((keys: string[]) => any) | undefined;
128
- "onUpdate:search"?: ((value: string) => any) | undefined;
129
- }>, {
130
- variant: "rail" | "panel";
131
- searchPlaceholder: string;
132
- skeletonRows: number;
133
- skeletonHeader: boolean;
134
- responsive: boolean;
135
- mobileBreakpoint: "sm" | "md" | "lg" | "xl";
136
- divider: boolean;
137
- autoCollapseAfter: number;
138
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
139
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
140
- declare const _default: typeof __VLS_export;
141
- export default _default;
142
- type __VLS_WithSlots<T, S> = T & {
143
- new (): {
144
- $slots: S;
145
- };
146
- };
@@ -1,54 +0,0 @@
1
- import { SidebarItem, SidebarSection } from './sidebar';
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
4
- declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
5
- /** Normalised section list (LpSidebar collapses items/sections into this). */
6
- groups: SidebarSection[];
7
- /** Shared layoutId so the active pill flies between desktop/drawer renders. */
8
- pillId: string;
9
- itemActive: (item: SidebarItem) => boolean;
10
- loading?: boolean;
11
- skeletonRows?: number;
12
- skeletonHeader?: boolean;
13
- /**
14
- * Keys of the groups currently folded away. The owner holds this so the
15
- * choice can outlive the component (a setting, a stored preference) — the
16
- * nav itself only reports the intent to change it.
17
- */
18
- collapsedKeys?: string[];
19
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
- "toggle-section": (key: string, collapsed: boolean) => any;
21
- activate: (item: SidebarItem) => any;
22
- }, string, import('vue').PublicProps, Readonly<{
23
- /** Normalised section list (LpSidebar collapses items/sections into this). */
24
- groups: SidebarSection[];
25
- /** Shared layoutId so the active pill flies between desktop/drawer renders. */
26
- pillId: string;
27
- itemActive: (item: SidebarItem) => boolean;
28
- loading?: boolean;
29
- skeletonRows?: number;
30
- skeletonHeader?: boolean;
31
- /**
32
- * Keys of the groups currently folded away. The owner holds this so the
33
- * choice can outlive the component (a setting, a stored preference) — the
34
- * nav itself only reports the intent to change it.
35
- */
36
- collapsedKeys?: string[];
37
- }> & Readonly<{
38
- "onToggle-section"?: ((key: string, collapsed: boolean) => any) | undefined;
39
- onActivate?: ((item: SidebarItem) => any) | undefined;
40
- }>, {
41
- skeletonRows: number;
42
- skeletonHeader: boolean;
43
- collapsedKeys: string[];
44
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
45
- item?: (props: {
46
- item: SidebarItem;
47
- active: boolean;
48
- }) => any;
49
- }>;
50
- type __VLS_WithSlots<T, S> = T & {
51
- new (): {
52
- $slots: S;
53
- };
54
- };
@@ -1,16 +0,0 @@
1
- type __VLS_Props = {
2
- rounded?: "control" | "card" | "pill";
3
- };
4
- declare var __VLS_1: {};
5
- type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_1) => any;
7
- };
8
- 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>;
9
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
- declare const _default: typeof __VLS_export;
11
- export default _default;
12
- type __VLS_WithSlots<T, S> = T & {
13
- new (): {
14
- $slots: S;
15
- };
16
- };