@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,44 +0,0 @@
1
- import { VariantProps } from 'tailwind-variants';
2
- declare const alert: import('tailwind-variants').TVReturnType<{
3
- variant: {
4
- info: string;
5
- success: string;
6
- warning: string;
7
- danger: string;
8
- };
9
- }, undefined, "flex gap-3 rounded-card border p-4 text-sm", {
10
- variant: {
11
- info: string;
12
- success: string;
13
- warning: string;
14
- danger: string;
15
- };
16
- }, undefined, import('tailwind-variants').TVReturnType<{
17
- variant: {
18
- info: string;
19
- success: string;
20
- warning: string;
21
- danger: string;
22
- };
23
- }, undefined, "flex gap-3 rounded-card border p-4 text-sm", unknown, unknown, undefined>>;
24
- type AlertVariants = VariantProps<typeof alert>;
25
- type __VLS_Props = {
26
- variant?: AlertVariants["variant"];
27
- title?: string;
28
- icon?: string;
29
- };
30
- declare var __VLS_6: {};
31
- type __VLS_Slots = {} & {
32
- default?: (props: typeof __VLS_6) => any;
33
- };
34
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
35
- variant: "info" | "danger" | "success" | "warning";
36
- }, {}, {}, {}, 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,123 +0,0 @@
1
- import { SidebarItem, SidebarSection } from './sidebar';
2
- export type { SidebarItem, SidebarSection } from './sidebar';
3
- declare const _default: typeof __VLS_export;
4
- export default _default;
5
- declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
6
- /** Flat items, or sections for grouped nav. Forwarded to LpSidebar. */
7
- items?: SidebarItem[];
8
- sections?: SidebarSection[];
9
- /** Folded nav groups (v-model:collapsed). Forwarded to LpSidebar. */
10
- collapsed?: string[];
11
- /** Fold long navs automatically; 0 disables. Forwarded to LpSidebar. */
12
- autoCollapseAfter?: number;
13
- /** Active item id (v-model) when not using a custom `isActive`. */
14
- modelValue?: string;
15
- /**
16
- * The current route path. Enables the built-in prefix-match active test and
17
- * the derived page title without the host wiring its own `isActive`. Pass
18
- * `route.path`. Ignored when a custom `isActive` is provided.
19
- */
20
- path?: string;
21
- /**
22
- * Custom active test (router-driven nav). Overrides `path`/`modelValue`.
23
- */
24
- isActive?: (item: SidebarItem) => boolean;
25
- /** Override the header title. Falls back to the active item's label. */
26
- title?: string;
27
- /** Mobile drawer open state (v-model:open). */
28
- open?: boolean;
29
- /** Tailwind breakpoint below which the rail becomes a drawer. */
30
- mobileBreakpoint?: "sm" | "md" | "lg" | "xl";
31
- /** Show the brand/header divider in the rail. */
32
- divider?: boolean;
33
- /** Max content width inside main (Tailwind class), or null to fill. */
34
- contentClass?: string;
35
- /**
36
- * Full-bleed main: render the page slot directly into main with NO
37
- * scroll-area wrapper and NO padding, so the page owns the whole region
38
- * (for a canvas / map / graph that fills the viewport and pans internally).
39
- */
40
- fullBleed?: boolean;
41
- /** Loading skeleton for the nav. */
42
- loading?: boolean;
43
- }, {
44
- openDrawer: () => void;
45
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
46
- select: (item: SidebarItem) => any;
47
- "update:modelValue": (id: string) => any;
48
- "update:open": (value: boolean) => any;
49
- "update:collapsed": (keys: string[]) => any;
50
- }, string, import('vue').PublicProps, Readonly<{
51
- /** Flat items, or sections for grouped nav. Forwarded to LpSidebar. */
52
- items?: SidebarItem[];
53
- sections?: SidebarSection[];
54
- /** Folded nav groups (v-model:collapsed). Forwarded to LpSidebar. */
55
- collapsed?: string[];
56
- /** Fold long navs automatically; 0 disables. Forwarded to LpSidebar. */
57
- autoCollapseAfter?: number;
58
- /** Active item id (v-model) when not using a custom `isActive`. */
59
- modelValue?: string;
60
- /**
61
- * The current route path. Enables the built-in prefix-match active test and
62
- * the derived page title without the host wiring its own `isActive`. Pass
63
- * `route.path`. Ignored when a custom `isActive` is provided.
64
- */
65
- path?: string;
66
- /**
67
- * Custom active test (router-driven nav). Overrides `path`/`modelValue`.
68
- */
69
- isActive?: (item: SidebarItem) => boolean;
70
- /** Override the header title. Falls back to the active item's label. */
71
- title?: string;
72
- /** Mobile drawer open state (v-model:open). */
73
- open?: boolean;
74
- /** Tailwind breakpoint below which the rail becomes a drawer. */
75
- mobileBreakpoint?: "sm" | "md" | "lg" | "xl";
76
- /** Show the brand/header divider in the rail. */
77
- divider?: boolean;
78
- /** Max content width inside main (Tailwind class), or null to fill. */
79
- contentClass?: string;
80
- /**
81
- * Full-bleed main: render the page slot directly into main with NO
82
- * scroll-area wrapper and NO padding, so the page owns the whole region
83
- * (for a canvas / map / graph that fills the viewport and pans internally).
84
- */
85
- fullBleed?: boolean;
86
- /** Loading skeleton for the nav. */
87
- loading?: boolean;
88
- }> & Readonly<{
89
- onSelect?: ((item: SidebarItem) => any) | undefined;
90
- "onUpdate:modelValue"?: ((id: string) => any) | undefined;
91
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
92
- "onUpdate:collapsed"?: ((keys: string[]) => any) | undefined;
93
- }>, {
94
- contentClass: string;
95
- mobileBreakpoint: "sm" | "md" | "lg" | "xl";
96
- divider: boolean;
97
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
98
- logo?: (props: {}) => any;
99
- } & {
100
- 'sidebar-actions'?: (props: {}) => any;
101
- } & {
102
- 'sidebar-footer'?: (props: {}) => any;
103
- } & {
104
- 'sidebar-item'?: (props: {
105
- item: SidebarItem;
106
- active: boolean;
107
- }) => any;
108
- } & {
109
- 'header-title'?: (props: {}) => any;
110
- } & {
111
- 'header-actions'?: (props: {}) => any;
112
- } & {
113
- default?: (props: {}) => any;
114
- } & {
115
- default?: (props: {}) => any;
116
- } & {
117
- overlays?: (props: {}) => any;
118
- }>;
119
- type __VLS_WithSlots<T, S> = T & {
120
- new (): {
121
- $slots: S;
122
- };
123
- };
@@ -1,50 +0,0 @@
1
- export interface AutocompleteOption {
2
- value: string;
3
- label?: string;
4
- description?: string;
5
- }
6
- type __VLS_Props = {
7
- /** The free text. This is the model — bind with v-model. */
8
- modelValue?: string;
9
- /** Suggestions. Strings or {value,label,description}. */
10
- options?: (AutocompleteOption | string)[];
11
- placeholder?: string;
12
- disabled?: boolean;
13
- clearable?: boolean;
14
- size?: "sm" | "md" | "lg";
15
- icon?: string;
16
- invalid?: boolean;
17
- emptyText?: string;
18
- loading?: boolean;
19
- loadingText?: string;
20
- /**
21
- * Filter suggestions client-side against the typed text. Off when the
22
- * parent fetches matches itself (server-side) — then pass the already
23
- * narrowed `options` and leave this false.
24
- */
25
- filter?: boolean;
26
- /** Min chars before the list opens. 0 = open on focus. */
27
- minChars?: number;
28
- /** Validation RegExp/string for the whole value (see LpInput). */
29
- pattern?: RegExp | string;
30
- /** Allowed-character RegExp; hard-blocks other input (see LpInput). */
31
- restrict?: RegExp;
32
- };
33
- declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
34
- select: (value: string) => any;
35
- "update:modelValue": (value: string) => any;
36
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
37
- onSelect?: ((value: string) => any) | undefined;
38
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
39
- }>, {
40
- size: "sm" | "md" | "lg";
41
- filter: boolean;
42
- placeholder: string;
43
- loading: boolean;
44
- clearable: boolean;
45
- emptyText: string;
46
- loadingText: string;
47
- minChars: number;
48
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
49
- declare const _default: typeof __VLS_export;
50
- export default _default;
@@ -1,34 +0,0 @@
1
- import { ContextMenuItemDef } from './LpContextMenu.vue';
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
4
- declare const __VLS_export: import('vue').DefineComponent<{
5
- src?: string;
6
- alt?: string;
7
- fallback?: string;
8
- size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
9
- /** Explicit pixel size, wins over `size` — for avatars keyed to a layout. */
10
- pixelSize?: number;
11
- /** Silhouette: circle for people, soft/square for servers and projects. */
12
- shape?: "circle" | "square" | "soft" | undefined;
13
- /** Draws a hairline ring, for avatars laid over imagery or other avatars. */
14
- ring?: boolean;
15
- /** Right-click menu (e.g. account quick actions). Consumer-supplied. */
16
- menuItems?: ContextMenuItemDef[];
17
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
18
- src?: string;
19
- alt?: string;
20
- fallback?: string;
21
- size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
22
- /** Explicit pixel size, wins over `size` — for avatars keyed to a layout. */
23
- pixelSize?: number;
24
- /** Silhouette: circle for people, soft/square for servers and projects. */
25
- shape?: "circle" | "square" | "soft" | undefined;
26
- /** Draws a hairline ring, for avatars laid over imagery or other avatars. */
27
- ring?: boolean;
28
- /** Right-click menu (e.g. account quick actions). Consumer-supplied. */
29
- menuItems?: ContextMenuItemDef[];
30
- }> & Readonly<{}>, {
31
- size: "sm" | "md" | "lg" | "xs" | "xl";
32
- shape: "circle" | "square" | "soft";
33
- ring: boolean;
34
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,20 +0,0 @@
1
- declare const _default: typeof __VLS_export;
2
- export default _default;
3
- declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
4
- tone?: "action" | "outline" | "danger" | "success" | "warning" | "neutral" | "brand" | undefined;
5
- /** `sm` is the one that does not disturb a text-sm line it sits on. */
6
- size?: "sm" | "md" | "lg" | undefined;
7
- dot?: boolean;
8
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
9
- tone?: "action" | "outline" | "danger" | "success" | "warning" | "neutral" | "brand" | undefined;
10
- /** `sm` is the one that does not disturb a text-sm line it sits on. */
11
- size?: "sm" | "md" | "lg" | undefined;
12
- dot?: boolean;
13
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
14
- default?: (props: {}) => any;
15
- }>;
16
- type __VLS_WithSlots<T, S> = T & {
17
- new (): {
18
- $slots: S;
19
- };
20
- };
@@ -1,32 +0,0 @@
1
- import { Component } from 'vue';
2
- export interface Crumb {
3
- label: string;
4
- href?: string;
5
- /** Destination for router links; passed straight to the `as` component. */
6
- to?: string | Record<string, unknown>;
7
- /** Leading icon, for crumbs that carry a glyph (a home root, a section). */
8
- icon?: string;
9
- }
10
- declare const _default: typeof __VLS_export;
11
- export default _default;
12
- declare const __VLS_export: import('vue').DefineComponent<{
13
- items: Crumb[];
14
- /**
15
- * Root element/component for linked crumbs. Defaults to a native <a>;
16
- * pass a router link component to keep client-side navigation.
17
- */
18
- as?: string | Component;
19
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
- navigate: (item: Crumb, index: number) => any;
21
- }, string, import('vue').PublicProps, Readonly<{
22
- items: Crumb[];
23
- /**
24
- * Root element/component for linked crumbs. Defaults to a native <a>;
25
- * pass a router link component to keep client-side navigation.
26
- */
27
- as?: string | Component;
28
- }> & Readonly<{
29
- onNavigate?: ((item: Crumb, index: number) => any) | undefined;
30
- }>, {
31
- as: string | Component;
32
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,113 +0,0 @@
1
- import { VariantProps } from 'tailwind-variants';
2
- import { Component } from 'vue';
3
- declare const button: import('tailwind-variants').TVReturnType<{
4
- variant: {
5
- solid: string;
6
- action: string;
7
- outline: string;
8
- soft: string;
9
- ghost: string;
10
- muted: string;
11
- light: string;
12
- danger: string;
13
- };
14
- size: {
15
- xs: string;
16
- sm: string;
17
- md: string;
18
- lg: string;
19
- };
20
- block: {
21
- true: string;
22
- };
23
- square: {
24
- true: string;
25
- };
26
- glow: {
27
- true: string;
28
- };
29
- }, undefined, string[], {
30
- variant: {
31
- solid: string;
32
- action: string;
33
- outline: string;
34
- soft: string;
35
- ghost: string;
36
- muted: string;
37
- light: string;
38
- danger: string;
39
- };
40
- size: {
41
- xs: string;
42
- sm: string;
43
- md: string;
44
- lg: string;
45
- };
46
- block: {
47
- true: string;
48
- };
49
- square: {
50
- true: string;
51
- };
52
- glow: {
53
- true: string;
54
- };
55
- }, undefined, import('tailwind-variants').TVReturnType<{
56
- variant: {
57
- solid: string;
58
- action: string;
59
- outline: string;
60
- soft: string;
61
- ghost: string;
62
- muted: string;
63
- light: string;
64
- danger: string;
65
- };
66
- size: {
67
- xs: string;
68
- sm: string;
69
- md: string;
70
- lg: string;
71
- };
72
- block: {
73
- true: string;
74
- };
75
- square: {
76
- true: string;
77
- };
78
- glow: {
79
- true: string;
80
- };
81
- }, undefined, string[], unknown, unknown, undefined>>;
82
- type ButtonVariants = VariantProps<typeof button>;
83
- type __VLS_Props = {
84
- variant?: ButtonVariants["variant"];
85
- size?: ButtonVariants["size"];
86
- block?: boolean;
87
- square?: boolean;
88
- glow?: boolean;
89
- /**
90
- * Root element/component. Defaults to a native <button>. Pass a router link
91
- * component (e.g. NuxtLink) or "a" to render a link-styled button; the kit
92
- * stays DOM-agnostic, the consumer supplies the link component.
93
- */
94
- as?: string | Component;
95
- type?: "button" | "submit" | "reset";
96
- disabled?: boolean;
97
- };
98
- declare var __VLS_8: {};
99
- type __VLS_Slots = {} & {
100
- default?: (props: typeof __VLS_8) => any;
101
- };
102
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
103
- type: "button" | "submit" | "reset";
104
- as: string | Component;
105
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
106
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
107
- declare const _default: typeof __VLS_export;
108
- export default _default;
109
- type __VLS_WithSlots<T, S> = T & {
110
- new (): {
111
- $slots: S;
112
- };
113
- };
@@ -1,29 +0,0 @@
1
- declare const _default: typeof __VLS_export;
2
- export default _default;
3
- declare const __VLS_export: import('vue').DefineComponent<{
4
- /** Selected date as "YYYY-MM-DD" (v-model). */
5
- modelValue?: string;
6
- /** Earliest selectable date, "YYYY-MM-DD". */
7
- min?: string;
8
- /** Latest selectable date, "YYYY-MM-DD". */
9
- max?: string;
10
- /** Predicate to disable specific days; receives the ISO string. */
11
- isDisabled?: (iso: string) => boolean;
12
- weekdayFormat?: "narrow" | "short" | "long";
13
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
- "update:modelValue": (value: string | undefined) => any;
15
- }, string, import('vue').PublicProps, Readonly<{
16
- /** Selected date as "YYYY-MM-DD" (v-model). */
17
- modelValue?: string;
18
- /** Earliest selectable date, "YYYY-MM-DD". */
19
- min?: string;
20
- /** Latest selectable date, "YYYY-MM-DD". */
21
- max?: string;
22
- /** Predicate to disable specific days; receives the ISO string. */
23
- isDisabled?: (iso: string) => boolean;
24
- weekdayFormat?: "narrow" | "short" | "long";
25
- }> & Readonly<{
26
- "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
27
- }>, {
28
- weekdayFormat: "narrow" | "short" | "long";
29
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,60 +0,0 @@
1
- import { ContextMenuItemDef } from './LpContextMenu.vue';
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
4
- declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
5
- variant?: "flat" | "ghost" | "raised" | undefined;
6
- padded?: boolean;
7
- interactive?: boolean;
8
- /** Right-click menu for the card. Omit (or pass []) to keep the native one. */
9
- menuItems?: ContextMenuItemDef[];
10
- /** Element to render as. A card inside a <ul> has to be an `li` to be valid. */
11
- as?: string;
12
- /**
13
- * Colour of a stripe down the card's leading edge. ANY CSS colour — this is
14
- * for sources that hand you an arbitrary value (a Discord role colour, a
15
- * per-project hex out of a config), which is why it is a string and not a
16
- * set of tonal variants. When the colour IS semantic, LpAlert's
17
- * info/success/warning/danger say so in a way a raw hex cannot.
18
- *
19
- * The stripe costs no layout: content starts in the same place with and
20
- * without it, and it rounds into `rounded-card` by itself.
21
- */
22
- accent?: string;
23
- /** Width of the `accent` stripe. */
24
- accentWidth?: string;
25
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
26
- variant?: "flat" | "ghost" | "raised" | undefined;
27
- padded?: boolean;
28
- interactive?: boolean;
29
- /** Right-click menu for the card. Omit (or pass []) to keep the native one. */
30
- menuItems?: ContextMenuItemDef[];
31
- /** Element to render as. A card inside a <ul> has to be an `li` to be valid. */
32
- as?: string;
33
- /**
34
- * Colour of a stripe down the card's leading edge. ANY CSS colour — this is
35
- * for sources that hand you an arbitrary value (a Discord role colour, a
36
- * per-project hex out of a config), which is why it is a string and not a
37
- * set of tonal variants. When the colour IS semantic, LpAlert's
38
- * info/success/warning/danger say so in a way a raw hex cannot.
39
- *
40
- * The stripe costs no layout: content starts in the same place with and
41
- * without it, and it rounds into `rounded-card` by itself.
42
- */
43
- accent?: string;
44
- /** Width of the `accent` stripe. */
45
- accentWidth?: string;
46
- }> & Readonly<{}>, {
47
- as: string;
48
- variant: "flat" | "ghost" | "raised";
49
- padded: boolean;
50
- interactive: boolean;
51
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
52
- default?: (props: {}) => any;
53
- } & {
54
- default?: (props: {}) => any;
55
- }>;
56
- type __VLS_WithSlots<T, S> = T & {
57
- new (): {
58
- $slots: S;
59
- };
60
- };
@@ -1,130 +0,0 @@
1
- import { ChartSeries } from './chart';
2
- import { ContextMenuItemDef } from './LpContextMenu.vue';
3
- /** What was under the pointer when a point was clicked or right-clicked. */
4
- export interface ChartPointEvent {
5
- index: number;
6
- label: string;
7
- /** Every series' value at this index, in `series` order (hidden included). */
8
- values: (number | null)[];
9
- /** The original event, for callers that need modifiers or coordinates. */
10
- originalEvent: MouseEvent;
11
- }
12
- declare const _default: typeof __VLS_export;
13
- export default _default;
14
- declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
15
- series: ChartSeries[];
16
- /** Shared x-axis labels; a point's own `x` overrides its slot. */
17
- labels?: string[];
18
- type?: "line" | "area" | "bar";
19
- /** Plot height in px. The width always fills the container. */
20
- height?: number;
21
- /** Headline above the plot. */
22
- title?: string;
23
- /** Sub-headline under the title. */
24
- subtitle?: string;
25
- /** Curve tension for line/area. 0 = straight polyline, 1 = fully smooth. */
26
- smooth?: number;
27
- /** Draw a dot at every point rather than only the hovered one. */
28
- showPoints?: boolean;
29
- showGrid?: boolean;
30
- showXAxis?: boolean;
31
- showYAxis?: boolean;
32
- /** Legend also toggles series visibility on click. */
33
- showLegend?: boolean;
34
- /** Roughly how many y ticks to aim for; bounds are rounded to fit. */
35
- yTicks?: number;
36
- /** Force the y-axis to include 0 (bars always do). */
37
- includeZero?: boolean;
38
- /** Appended to values in ticks and the tooltip, e.g. "%" or " ms". */
39
- unit?: string;
40
- /** Unit for series on the right axis. Falls back to `unit`. */
41
- rightUnit?: string;
42
- /** Custom value formatter; overrides the compact 1.2k default. */
43
- formatValue?: (v: number) => string;
44
- /** Formatter for the right axis. Falls back to `formatValue`. */
45
- formatRightValue?: (v: number) => string;
46
- /** Stack bars instead of grouping them side by side. */
47
- stacked?: boolean;
48
- /** Grow the marks in on mount and on data change. */
49
- animate?: boolean;
50
- /** Shown when every series is empty. */
51
- emptyLabel?: string;
52
- /**
53
- * Right-click menu for a point, built from whatever was hit. Return [] to
54
- * leave the browser's own menu alone for that point. Which actions a point
55
- * offers is an application question — "compare with last week", "open the
56
- * incident", "copy value" — so the chart supplies the context and the
57
- * caller supplies the items.
58
- */
59
- menuItems?: (point: ChartPointEvent) => ContextMenuItemDef[];
60
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
61
- pointClick: (payload: ChartPointEvent) => any;
62
- pointContextMenu: (payload: ChartPointEvent) => any;
63
- }, string, import('vue').PublicProps, Readonly<{
64
- series: ChartSeries[];
65
- /** Shared x-axis labels; a point's own `x` overrides its slot. */
66
- labels?: string[];
67
- type?: "line" | "area" | "bar";
68
- /** Plot height in px. The width always fills the container. */
69
- height?: number;
70
- /** Headline above the plot. */
71
- title?: string;
72
- /** Sub-headline under the title. */
73
- subtitle?: string;
74
- /** Curve tension for line/area. 0 = straight polyline, 1 = fully smooth. */
75
- smooth?: number;
76
- /** Draw a dot at every point rather than only the hovered one. */
77
- showPoints?: boolean;
78
- showGrid?: boolean;
79
- showXAxis?: boolean;
80
- showYAxis?: boolean;
81
- /** Legend also toggles series visibility on click. */
82
- showLegend?: boolean;
83
- /** Roughly how many y ticks to aim for; bounds are rounded to fit. */
84
- yTicks?: number;
85
- /** Force the y-axis to include 0 (bars always do). */
86
- includeZero?: boolean;
87
- /** Appended to values in ticks and the tooltip, e.g. "%" or " ms". */
88
- unit?: string;
89
- /** Unit for series on the right axis. Falls back to `unit`. */
90
- rightUnit?: string;
91
- /** Custom value formatter; overrides the compact 1.2k default. */
92
- formatValue?: (v: number) => string;
93
- /** Formatter for the right axis. Falls back to `formatValue`. */
94
- formatRightValue?: (v: number) => string;
95
- /** Stack bars instead of grouping them side by side. */
96
- stacked?: boolean;
97
- /** Grow the marks in on mount and on data change. */
98
- animate?: boolean;
99
- /** Shown when every series is empty. */
100
- emptyLabel?: string;
101
- /**
102
- * Right-click menu for a point, built from whatever was hit. Return [] to
103
- * leave the browser's own menu alone for that point. Which actions a point
104
- * offers is an application question — "compare with last week", "open the
105
- * incident", "copy value" — so the chart supplies the context and the
106
- * caller supplies the items.
107
- */
108
- menuItems?: (point: ChartPointEvent) => ContextMenuItemDef[];
109
- }> & Readonly<{
110
- onPointClick?: ((payload: ChartPointEvent) => any) | undefined;
111
- onPointContextMenu?: ((payload: ChartPointEvent) => any) | undefined;
112
- }>, {
113
- type: "line" | "area" | "bar";
114
- height: number;
115
- animate: boolean;
116
- smooth: number;
117
- showGrid: boolean;
118
- showXAxis: boolean;
119
- showYAxis: boolean;
120
- showLegend: boolean;
121
- yTicks: number;
122
- emptyLabel: string;
123
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
124
- actions?: (props: {}) => any;
125
- }>;
126
- type __VLS_WithSlots<T, S> = T & {
127
- new (): {
128
- $slots: S;
129
- };
130
- };
@@ -1,32 +0,0 @@
1
- declare const _default: typeof __VLS_export;
2
- export default _default;
3
- declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
4
- modelValue?: boolean;
5
- /** Mixed state (e.g. a "select all" with a partial selection). Shows a dash. */
6
- indeterminate?: boolean;
7
- disabled?: boolean;
8
- label?: string;
9
- id?: string;
10
- name?: string;
11
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
- change: (value: boolean) => any;
13
- "update:modelValue": (value: boolean) => any;
14
- }, string, import('vue').PublicProps, Readonly<{
15
- modelValue?: boolean;
16
- /** Mixed state (e.g. a "select all" with a partial selection). Shows a dash. */
17
- indeterminate?: boolean;
18
- disabled?: boolean;
19
- label?: string;
20
- id?: string;
21
- name?: string;
22
- }> & Readonly<{
23
- onChange?: ((value: boolean) => any) | undefined;
24
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
25
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
26
- default?: (props: {}) => any;
27
- }>;
28
- type __VLS_WithSlots<T, S> = T & {
29
- new (): {
30
- $slots: S;
31
- };
32
- };