@leavepulse/ui 0.12.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 (170) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -0
  3. package/dist/component-names.d.ts +1 -0
  4. package/dist/components/LayoutCanvas.vue.d.ts +28 -0
  5. package/dist/components/LayoutNode.vue.d.ts +40 -0
  6. package/dist/components/LpAlert.vue.d.ts +44 -0
  7. package/dist/components/LpAppShell.vue.d.ts +83 -0
  8. package/dist/components/LpAutocomplete.vue.d.ts +50 -0
  9. package/dist/components/LpAvatar.vue.d.ts +20 -0
  10. package/dist/components/LpBadge.vue.d.ts +47 -0
  11. package/dist/components/LpBreadcrumbs.vue.d.ts +14 -0
  12. package/dist/components/LpButton.vue.d.ts +113 -0
  13. package/dist/components/LpCalendar.vue.d.ts +20 -0
  14. package/dist/components/LpCard.vue.d.ts +29 -0
  15. package/dist/components/LpCheckbox.vue.d.ts +28 -0
  16. package/dist/components/LpCodeBlock.vue.d.ts +39 -0
  17. package/dist/components/LpCommandPalette.vue.d.ts +42 -0
  18. package/dist/components/LpConfirmDialog.vue.d.ts +32 -0
  19. package/dist/components/LpContextMenu.vue.d.ts +30 -0
  20. package/dist/components/LpDatePicker.vue.d.ts +25 -0
  21. package/dist/components/LpDisclosure.vue.d.ts +37 -0
  22. package/dist/components/LpDivider.vue.d.ts +17 -0
  23. package/dist/components/LpDrawer.vue.d.ts +88 -0
  24. package/dist/components/LpDropdownMenu.vue.d.ts +23 -0
  25. package/dist/components/LpEmptyState.vue.d.ts +18 -0
  26. package/dist/components/LpFormField.vue.d.ts +21 -0
  27. package/dist/components/LpIcon.vue.d.ts +8 -0
  28. package/dist/components/LpInfraNode.vue.d.ts +21 -0
  29. package/dist/components/LpInput.vue.d.ts +68 -0
  30. package/dist/components/LpLaneNode.vue.d.ts +24 -0
  31. package/dist/components/LpLink.vue.d.ts +27 -0
  32. package/dist/components/LpLogViewer.vue.d.ts +92 -0
  33. package/dist/components/LpModal.vue.d.ts +43 -0
  34. package/dist/components/LpNotificationBell.vue.d.ts +51 -0
  35. package/dist/components/LpNumberField.vue.d.ts +14 -0
  36. package/dist/components/LpOtpInput.vue.d.ts +27 -0
  37. package/dist/components/LpPagination.vue.d.ts +25 -0
  38. package/dist/components/LpPasswordInput.vue.d.ts +28 -0
  39. package/dist/components/LpPhoneInput.vue.d.ts +37 -0
  40. package/dist/components/LpPopover.vue.d.ts +34 -0
  41. package/dist/components/LpProgress.vue.d.ts +12 -0
  42. package/dist/components/LpRadio.vue.d.ts +18 -0
  43. package/dist/components/LpRadioGroup.vue.d.ts +26 -0
  44. package/dist/components/LpScrollArea.vue.d.ts +24 -0
  45. package/dist/components/LpSegmented.vue.d.ts +24 -0
  46. package/dist/components/LpSelect.vue.d.ts +45 -0
  47. package/dist/components/LpServiceNode.vue.d.ts +14 -0
  48. package/dist/components/LpSidebar.vue.d.ts +85 -0
  49. package/dist/components/LpSidebarNav.vue.d.ts +34 -0
  50. package/dist/components/LpSkeleton.vue.d.ts +6 -0
  51. package/dist/components/LpSlider.vue.d.ts +23 -0
  52. package/dist/components/LpStat.vue.d.ts +22 -0
  53. package/dist/components/LpStepper.vue.d.ts +10 -0
  54. package/dist/components/LpSwitch.vue.d.ts +11 -0
  55. package/dist/components/LpTable.vue.d.ts +63 -0
  56. package/dist/components/LpTableOfContents.vue.d.ts +19 -0
  57. package/dist/components/LpTabs.vue.d.ts +45 -0
  58. package/dist/components/LpTextarea.vue.d.ts +17 -0
  59. package/dist/components/LpThemeSwitcher.vue.d.ts +40 -0
  60. package/dist/components/LpToaster.vue.d.ts +3 -0
  61. package/dist/components/LpTooltip.vue.d.ts +19 -0
  62. package/dist/components/LpTopologyCanvas.vue.d.ts +154 -0
  63. package/dist/components/LpUptimeBar.vue.d.ts +30 -0
  64. package/dist/components/codeHighlight.d.ts +8 -0
  65. package/dist/components/countries-data.d.ts +2 -0
  66. package/dist/components/countries.d.ts +20 -0
  67. package/dist/components/dropdown.d.ts +29 -0
  68. package/dist/components/sidebar.d.ts +18 -0
  69. package/dist/composables/useInputFilter.d.ts +14 -0
  70. package/dist/composables/usePillTransition.d.ts +9 -0
  71. package/dist/composables/useToast.d.ts +39 -0
  72. package/dist/countries-data-9rgqJWHo.js +203 -0
  73. package/dist/icons.d.ts +1 -0
  74. package/dist/index.css +1 -0
  75. package/dist/index.d.ts +100 -0
  76. package/dist/index.js +17600 -0
  77. package/dist/layout/registry.d.ts +26 -0
  78. package/dist/layout/tree.d.ts +75 -0
  79. package/dist/layout/useLayout.d.ts +39 -0
  80. package/dist/theme/config.d.ts +16 -0
  81. package/dist/theme/define.d.ts +12 -0
  82. package/dist/theme/presets.d.ts +20 -0
  83. package/dist/theme/tokens.d.ts +72 -0
  84. package/dist/theme/useTheme.d.ts +36 -0
  85. package/package.json +93 -0
  86. package/src/canvas.css +67 -0
  87. package/src/component-names.ts +65 -0
  88. package/src/components/LayoutCanvas.vue +76 -0
  89. package/src/components/LayoutNode.vue +248 -0
  90. package/src/components/LpAlert.vue +59 -0
  91. package/src/components/LpAppShell.vue +210 -0
  92. package/src/components/LpAutocomplete.vue +244 -0
  93. package/src/components/LpAvatar.vue +67 -0
  94. package/src/components/LpBadge.vue +32 -0
  95. package/src/components/LpBreadcrumbs.vue +35 -0
  96. package/src/components/LpButton.vue +111 -0
  97. package/src/components/LpCalendar.vue +134 -0
  98. package/src/components/LpCard.vue +71 -0
  99. package/src/components/LpCheckbox.vue +44 -0
  100. package/src/components/LpCodeBlock.vue +298 -0
  101. package/src/components/LpCommandPalette.vue +323 -0
  102. package/src/components/LpConfirmDialog.vue +49 -0
  103. package/src/components/LpContextMenu.vue +111 -0
  104. package/src/components/LpDatePicker.vue +117 -0
  105. package/src/components/LpDisclosure.vue +92 -0
  106. package/src/components/LpDivider.vue +20 -0
  107. package/src/components/LpDrawer.vue +402 -0
  108. package/src/components/LpDropdownMenu.vue +54 -0
  109. package/src/components/LpEmptyState.vue +21 -0
  110. package/src/components/LpFormField.vue +31 -0
  111. package/src/components/LpIcon.vue +49 -0
  112. package/src/components/LpInfraNode.vue +108 -0
  113. package/src/components/LpInput.vue +147 -0
  114. package/src/components/LpLaneNode.vue +48 -0
  115. package/src/components/LpLink.vue +48 -0
  116. package/src/components/LpLogViewer.vue +569 -0
  117. package/src/components/LpModal.vue +123 -0
  118. package/src/components/LpNotificationBell.vue +238 -0
  119. package/src/components/LpNumberField.vue +56 -0
  120. package/src/components/LpOtpInput.vue +81 -0
  121. package/src/components/LpPagination.vue +165 -0
  122. package/src/components/LpPasswordInput.vue +50 -0
  123. package/src/components/LpPhoneInput.vue +241 -0
  124. package/src/components/LpPopover.vue +42 -0
  125. package/src/components/LpProgress.vue +30 -0
  126. package/src/components/LpRadio.vue +28 -0
  127. package/src/components/LpRadioGroup.vue +43 -0
  128. package/src/components/LpScrollArea.vue +82 -0
  129. package/src/components/LpSegmented.vue +83 -0
  130. package/src/components/LpSelect.vue +0 -0
  131. package/src/components/LpServiceNode.vue +57 -0
  132. package/src/components/LpSidebar.vue +200 -0
  133. package/src/components/LpSidebarNav.vue +118 -0
  134. package/src/components/LpSkeleton.vue +16 -0
  135. package/src/components/LpSlider.vue +53 -0
  136. package/src/components/LpStat.vue +90 -0
  137. package/src/components/LpStepper.vue +46 -0
  138. package/src/components/LpSwitch.vue +19 -0
  139. package/src/components/LpTable.vue +252 -0
  140. package/src/components/LpTableOfContents.vue +183 -0
  141. package/src/components/LpTabs.vue +120 -0
  142. package/src/components/LpTextarea.vue +39 -0
  143. package/src/components/LpThemeSwitcher.vue +168 -0
  144. package/src/components/LpToaster.vue +216 -0
  145. package/src/components/LpTooltip.vue +30 -0
  146. package/src/components/LpTopologyCanvas.vue +370 -0
  147. package/src/components/LpUptimeBar.vue +126 -0
  148. package/src/components/codeHighlight.ts +137 -0
  149. package/src/components/countries-data.ts +207 -0
  150. package/src/components/countries.ts +67 -0
  151. package/src/components/dropdown.ts +64 -0
  152. package/src/components/sidebar.ts +26 -0
  153. package/src/composables/useInputFilter.ts +89 -0
  154. package/src/composables/usePillTransition.ts +19 -0
  155. package/src/composables/useToast.ts +92 -0
  156. package/src/icons.ts +11 -0
  157. package/src/index.css +21 -0
  158. package/src/index.ts +146 -0
  159. package/src/layout/registry.ts +44 -0
  160. package/src/layout/tree.ts +288 -0
  161. package/src/layout/useLayout.ts +134 -0
  162. package/src/nuxt.ts +22 -0
  163. package/src/theme/config.ts +48 -0
  164. package/src/theme/define.ts +50 -0
  165. package/src/theme/presets.ts +279 -0
  166. package/src/theme/tokens.ts +151 -0
  167. package/src/theme/useTheme.ts +288 -0
  168. package/src/tokens/scrollbar.css +138 -0
  169. package/src/tokens/tokens.css +333 -0
  170. package/src/tokens/utilities.css +23 -0
@@ -0,0 +1,51 @@
1
+ import { ContextMenuItemDef } from './LpContextMenu.vue';
2
+ export interface NotificationItem {
3
+ id: string;
4
+ title: string;
5
+ body?: string;
6
+ /** Optional icon name (e.g. "lucide:check-circle"). */
7
+ icon?: string;
8
+ /** Optional deep link; the row becomes clickable when set. */
9
+ link?: string;
10
+ /** ISO-8601 creation time; rendered as a relative label. */
11
+ createdAt?: string;
12
+ /** Whether the notification has been read. */
13
+ read?: boolean;
14
+ }
15
+ type __VLS_Props = {
16
+ items?: NotificationItem[];
17
+ /** Unread count for the badge; falls back to counting unread items. */
18
+ unreadCount?: number;
19
+ loading?: boolean;
20
+ emptyLabel?: string;
21
+ title?: string;
22
+ /** Cap the badge display (e.g. "9+"). */
23
+ maxBadge?: number;
24
+ /** Right-click menu items; overrides the built-in quick actions. */
25
+ menuItems?: ContextMenuItemDef[];
26
+ };
27
+ type __VLS_ModelProps = {
28
+ "open"?: boolean;
29
+ };
30
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
31
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
+ "update:open": (value: boolean) => any;
33
+ } & {
34
+ select: (item: NotificationItem) => any;
35
+ markRead: (id: string) => any;
36
+ markUnread: (id: string) => any;
37
+ markAllRead: () => any;
38
+ dismiss: (id: string) => any;
39
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
40
+ onSelect?: ((item: NotificationItem) => any) | undefined;
41
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
42
+ onMarkRead?: ((id: string) => any) | undefined;
43
+ onMarkUnread?: ((id: string) => any) | undefined;
44
+ onMarkAllRead?: (() => any) | undefined;
45
+ onDismiss?: ((id: string) => any) | undefined;
46
+ }>, {
47
+ items: NotificationItem[];
48
+ maxBadge: number;
49
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
50
+ declare const _default: typeof __VLS_export;
51
+ export default _default;
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ modelValue?: number | null;
3
+ min?: number;
4
+ max?: number;
5
+ step?: number;
6
+ disabled?: boolean;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ "update:modelValue": (value: number | null) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,27 @@
1
+ type __VLS_Props = {
2
+ /** The code as one string, e.g. "123456". Bind with v-model. */
3
+ modelValue?: string;
4
+ /** Number of cells. */
5
+ length?: number;
6
+ disabled?: boolean;
7
+ /** Mask entered characters (•) — for sensitive codes. */
8
+ mask?: boolean;
9
+ /** Allow letters too (backup codes). Default: digits only (TOTP). */
10
+ alphanumeric?: boolean;
11
+ /** Error state — tints the cells red (e.g. wrong code). */
12
+ invalid?: boolean;
13
+ size?: "sm" | "md" | "lg";
14
+ };
15
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ "update:modelValue": (value: string) => any;
17
+ complete: (value: string) => any;
18
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
20
+ onComplete?: ((value: string) => any) | undefined;
21
+ }>, {
22
+ size: "sm" | "md" | "lg";
23
+ length: number;
24
+ alphanumeric: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
@@ -0,0 +1,25 @@
1
+ type __VLS_Props = {
2
+ /** Current page, 1-based (v-model:page). */
3
+ page?: number;
4
+ /** Total item count — used with pageSize to derive the page count. */
5
+ total?: number;
6
+ pageSize?: number;
7
+ /** Direct page count; wins over total/pageSize when given. */
8
+ pageCount?: number;
9
+ /** Pages shown on each side of the current one in the inner run. */
10
+ siblings?: number;
11
+ disabled?: boolean;
12
+ };
13
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ change: (value: number) => any;
15
+ "update:page": (value: number) => any;
16
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ onChange?: ((value: number) => any) | undefined;
18
+ "onUpdate:page"?: ((value: number) => any) | undefined;
19
+ }>, {
20
+ page: number;
21
+ pageSize: number;
22
+ siblings: number;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -0,0 +1,28 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
4
+ modelValue?: string;
5
+ placeholder?: string;
6
+ invalid?: boolean;
7
+ disabled?: boolean;
8
+ }, {
9
+ focus: (options?: FocusOptions) => void | undefined;
10
+ blur: () => void | undefined;
11
+ select: () => void | undefined;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ "update:modelValue": (value: string) => any;
14
+ }, string, import('vue').PublicProps, Readonly<{
15
+ modelValue?: string;
16
+ placeholder?: string;
17
+ invalid?: boolean;
18
+ disabled?: boolean;
19
+ }> & Readonly<{
20
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
22
+ leading?: (props: {}) => any;
23
+ }>;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,37 @@
1
+ import { Country } from './countries';
2
+ export interface PhoneDetail {
3
+ /** Matched country, or undefined when the prefix matches none. */
4
+ country?: Country;
5
+ /** Dial code without "+", e.g. "380". Empty if unknown. */
6
+ dialCode: string;
7
+ /** National part (digits after the dial code). */
8
+ number: string;
9
+ }
10
+ type __VLS_Props = {
11
+ /** Full phone string, e.g. "+380501234567". Bind with v-model. */
12
+ modelValue?: string;
13
+ /** Restrict the country list (ISO2 codes). Omit for all countries. */
14
+ only?: string[];
15
+ /** Default country (ISO2) used when the field is empty. */
16
+ defaultCountry?: string;
17
+ placeholder?: string;
18
+ disabled?: boolean;
19
+ invalid?: boolean;
20
+ size?: "sm" | "md" | "lg";
21
+ emptyText?: string;
22
+ searchPlaceholder?: string;
23
+ };
24
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
25
+ change: (detail: PhoneDetail) => any;
26
+ "update:modelValue": (value: string) => any;
27
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ onChange?: ((detail: PhoneDetail) => any) | undefined;
29
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
30
+ }>, {
31
+ size: "sm" | "md" | "lg";
32
+ placeholder: string;
33
+ emptyText: string;
34
+ searchPlaceholder: string;
35
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
@@ -0,0 +1,34 @@
1
+ type __VLS_Props = {
2
+ side?: "top" | "right" | "bottom" | "left";
3
+ align?: "start" | "center" | "end";
4
+ sideOffset?: number;
5
+ /** Extra classes for the floating panel (width, padding, overflow). */
6
+ panelClass?: string;
7
+ };
8
+ type __VLS_ModelProps = {
9
+ "open"?: boolean;
10
+ };
11
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
+ declare var __VLS_14: {}, __VLS_28: {};
13
+ type __VLS_Slots = {} & {
14
+ trigger?: (props: typeof __VLS_14) => any;
15
+ } & {
16
+ default?: (props: typeof __VLS_28) => any;
17
+ };
18
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ "update:open": (value: boolean | undefined) => any;
20
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
+ "onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
22
+ }>, {
23
+ align: "start" | "center" | "end";
24
+ side: "top" | "right" | "bottom" | "left";
25
+ sideOffset: number;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ value?: number;
3
+ max?: number;
4
+ tone?: "brand" | "action" | "danger";
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ max: number;
8
+ value: number;
9
+ tone: "brand" | "action" | "danger";
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ value: string;
3
+ label?: string;
4
+ disabled?: boolean;
5
+ };
6
+ declare var __VLS_13: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_13) => any;
9
+ };
10
+ 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>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,26 @@
1
+ export interface RadioOption {
2
+ value: string;
3
+ label: string;
4
+ }
5
+ type __VLS_Props = {
6
+ modelValue?: string;
7
+ options?: RadioOption[];
8
+ disabled?: boolean;
9
+ };
10
+ declare var __VLS_10: {};
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_10) => any;
13
+ };
14
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ "update:modelValue": (value: string) => any;
16
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
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
+ };
@@ -0,0 +1,24 @@
1
+ type __VLS_Props = {
2
+ fade?: boolean;
3
+ contentClass?: string;
4
+ barInsetTop?: string;
5
+ };
6
+ declare var __VLS_18: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_18) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
11
+ viewportEl: import('vue').ComputedRef<HTMLElement | null>;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ scroll: (event: Event) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onScroll?: ((event: Event) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,24 @@
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
+ type __VLS_Props = {
8
+ modelValue?: string;
9
+ options: SegmentedOption[];
10
+ size?: "sm" | "md";
11
+ /** Stretch to fill the container with equal-width segments. */
12
+ block?: boolean;
13
+ disabled?: boolean;
14
+ };
15
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ "update:modelValue": (value: string) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
19
+ }>, {
20
+ size: "sm" | "md";
21
+ block: boolean;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,45 @@
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
+ } & {
22
+ onChange?: ((value: V) => any) | undefined;
23
+ "onUpdate:modelValue"?: ((value: V | V[] | undefined) => any) | undefined;
24
+ "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
25
+ }> & (typeof globalThis extends {
26
+ __VLS_PROPS_FALLBACK: infer P;
27
+ } ? P : {});
28
+ expose: (exposed: {}) => void;
29
+ attrs: any;
30
+ slots: {};
31
+ emit: {
32
+ (e: "update:modelValue", value: V | V[] | undefined): void;
33
+ (e: "change", value: V): void;
34
+ (e: "update:searchTerm", value: string): void;
35
+ };
36
+ }>) => import('vue').VNode & {
37
+ __ctx?: Awaited<typeof __VLS_setup>;
38
+ };
39
+ declare const _default: typeof __VLS_export;
40
+ export default _default;
41
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
42
+ [K in keyof T]: T[K];
43
+ } : {
44
+ [K in keyof T as K]: T[K];
45
+ }) & {};
@@ -0,0 +1,14 @@
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;
@@ -0,0 +1,85 @@
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
+ /** Show a skeleton placeholder instead of the items. */
16
+ loading?: boolean;
17
+ /** Skeleton row count while loading. */
18
+ skeletonRows?: number;
19
+ /** Render the user/header skeleton row too (paired with a #header avatar). */
20
+ skeletonHeader?: boolean;
21
+ /**
22
+ * Collapse to a swipeable drawer on phones. Off by default so existing
23
+ * static-rail usage is unchanged.
24
+ */
25
+ responsive?: boolean;
26
+ /** Drawer open state on mobile (v-model:open). Only used when `responsive`. */
27
+ open?: boolean;
28
+ /** Tailwind breakpoint below which the drawer takes over. */
29
+ mobileBreakpoint?: "sm" | "md" | "lg" | "xl";
30
+ /** Let a pull from the left screen edge drag the mobile drawer open. */
31
+ edgeOpen?: boolean;
32
+ /**
33
+ * Draw a hairline rule between the #header (logo) and the nav. On by
34
+ * default — it visually anchors the brand above the items. Pass false for a
35
+ * flush, header-less look.
36
+ */
37
+ divider?: boolean;
38
+ };
39
+ declare var __VLS_1: {}, __VLS_12: {
40
+ item: SidebarItem;
41
+ active: boolean;
42
+ }, __VLS_14: {}, __VLS_16: {}, __VLS_26: {}, __VLS_37: {
43
+ item: SidebarItem;
44
+ active: boolean;
45
+ }, __VLS_39: {}, __VLS_41: {};
46
+ type __VLS_Slots = {} & {
47
+ header?: (props: typeof __VLS_1) => any;
48
+ } & {
49
+ item?: (props: typeof __VLS_12) => any;
50
+ } & {
51
+ actions?: (props: typeof __VLS_14) => any;
52
+ } & {
53
+ footer?: (props: typeof __VLS_16) => any;
54
+ } & {
55
+ header?: (props: typeof __VLS_26) => any;
56
+ } & {
57
+ item?: (props: typeof __VLS_37) => any;
58
+ } & {
59
+ actions?: (props: typeof __VLS_39) => any;
60
+ } & {
61
+ footer?: (props: typeof __VLS_41) => any;
62
+ };
63
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
64
+ select: (item: SidebarItem) => any;
65
+ "update:modelValue": (id: string) => any;
66
+ "update:open": (value: boolean) => any;
67
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
68
+ onSelect?: ((item: SidebarItem) => any) | undefined;
69
+ "onUpdate:modelValue"?: ((id: string) => any) | undefined;
70
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
71
+ }>, {
72
+ skeletonRows: number;
73
+ skeletonHeader: boolean;
74
+ responsive: boolean;
75
+ mobileBreakpoint: "sm" | "md" | "lg" | "xl";
76
+ divider: boolean;
77
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
78
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
79
+ declare const _default: typeof __VLS_export;
80
+ export default _default;
81
+ type __VLS_WithSlots<T, S> = T & {
82
+ new (): {
83
+ $slots: S;
84
+ };
85
+ };
@@ -0,0 +1,34 @@
1
+ import { SidebarItem, SidebarSection } from './sidebar';
2
+ type __VLS_Props = {
3
+ /** Normalised section list (LpSidebar collapses items/sections into this). */
4
+ groups: SidebarSection[];
5
+ /** Shared layoutId so the active pill flies between desktop/drawer renders. */
6
+ pillId: string;
7
+ itemActive: (item: SidebarItem) => boolean;
8
+ loading?: boolean;
9
+ skeletonRows?: number;
10
+ skeletonHeader?: boolean;
11
+ };
12
+ declare var __VLS_27: {
13
+ item: SidebarItem;
14
+ active: boolean;
15
+ };
16
+ type __VLS_Slots = {} & {
17
+ item?: (props: typeof __VLS_27) => any;
18
+ };
19
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
+ activate: (item: SidebarItem) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onActivate?: ((item: SidebarItem) => any) | undefined;
23
+ }>, {
24
+ skeletonRows: number;
25
+ skeletonHeader: boolean;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ rounded?: "control" | "card" | "pill";
3
+ };
4
+ 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>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ modelValue?: number;
3
+ min?: number;
4
+ max?: number;
5
+ step?: number;
6
+ disabled?: boolean;
7
+ /** Accessible name for the thumb when there's no visible label. */
8
+ ariaLabel?: string;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ change: (value: number) => any;
12
+ "update:modelValue": (value: number) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onChange?: ((value: number) => any) | undefined;
15
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
16
+ }>, {
17
+ max: number;
18
+ min: number;
19
+ step: number;
20
+ modelValue: number;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ value: string;
4
+ hint?: string;
5
+ icon?: string;
6
+ online?: boolean;
7
+ /** Change vs. a previous period. Renders a coloured arrow + this text. A
8
+ * number is shown with a sign; a string is shown verbatim (e.g. "+12%"). */
9
+ delta?: number | string;
10
+ /** Appended to a numeric delta, e.g. "%". Ignored for string deltas. */
11
+ deltaSuffix?: string;
12
+ /** Trend direction. "auto" derives it from a numeric delta's sign. */
13
+ trend?: "auto" | "up" | "down" | "flat";
14
+ /** For metrics where down is good (latency, errors): swaps the colours so a
15
+ * downward trend reads as positive (action) and upward as danger. */
16
+ invertTrend?: boolean;
17
+ };
18
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ trend: "auto" | "up" | "down" | "flat";
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1,10 @@
1
+ export interface Step {
2
+ label: string;
3
+ }
4
+ type __VLS_Props = {
5
+ steps: Step[];
6
+ current: number;
7
+ };
8
+ 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>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,11 @@
1
+ type __VLS_Props = {
2
+ modelValue?: boolean;
3
+ disabled?: boolean;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "update:modelValue": (value: boolean) => any;
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,63 @@
1
+ import { ContextMenuItemDef } from './LpContextMenu.vue';
2
+ export interface TableColumn<Row> {
3
+ key: string;
4
+ label: string;
5
+ align?: "left" | "right" | "center";
6
+ width?: string;
7
+ /** Allow clicking the header to sort by this column. */
8
+ sortable?: boolean;
9
+ }
10
+ export interface SortState {
11
+ key: string;
12
+ dir: "asc" | "desc";
13
+ }
14
+ declare const __VLS_export: <T extends Record<string, unknown>>(__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<{
15
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<{
16
+ columns: TableColumn<T>[];
17
+ rows: T[];
18
+ /** Stable id per row — required for selection; falls back to index otherwise. */
19
+ rowKey?: keyof T | ((row: T) => string | number);
20
+ emptyLabel?: string;
21
+ emptyIcon?: string;
22
+ /** Render a leading checkbox column; selection binds via v-model:selected. */
23
+ selectable?: boolean;
24
+ /** Selected row keys (v-model:selected). */
25
+ selected?: (string | number)[];
26
+ /** Active sort (v-model:sort). When set, the parent owns ordering (server
27
+ * side); otherwise the table sorts its own rows client-side. */
28
+ sort?: SortState | null;
29
+ /** Pin the header while the body scrolls. Pair with a height on the wrapper. */
30
+ stickyHeader?: boolean;
31
+ /** Per-row right-click menu. Return [] (or omit the prop) to disable it for
32
+ * a row; the row then keeps the browser's native context menu. */
33
+ rowMenu?: (row: T) => ContextMenuItemDef[];
34
+ } & {
35
+ "onUpdate:selected"?: ((value: (string | number)[]) => any) | undefined;
36
+ "onUpdate:sort"?: ((value: SortState | null) => any) | undefined;
37
+ onRowClick?: ((row: T) => any) | undefined;
38
+ }> & (typeof globalThis extends {
39
+ __VLS_PROPS_FALLBACK: infer P;
40
+ } ? P : {});
41
+ expose: (exposed: {}) => void;
42
+ attrs: any;
43
+ slots: {
44
+ [x: `cell-${string}`]: ((props: {
45
+ row: T;
46
+ value: unknown;
47
+ }) => any) | undefined;
48
+ };
49
+ emit: {
50
+ (e: "update:selected", value: (string | number)[]): void;
51
+ (e: "update:sort", value: SortState | null): void;
52
+ (e: "rowClick", row: T): void;
53
+ };
54
+ }>) => import('vue').VNode & {
55
+ __ctx?: Awaited<typeof __VLS_setup>;
56
+ };
57
+ declare const _default: typeof __VLS_export;
58
+ export default _default;
59
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
60
+ [K in keyof T]: T[K];
61
+ } : {
62
+ [K in keyof T as K]: T[K];
63
+ }) & {};