@dolanske/vui 1.11.9 → 1.11.10
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.
package/dist/src/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { default as Badge } from './components/Badge/Badge.vue';
|
|
|
8
8
|
import { default as BreadcrumbItem } from './components/Breadcrumbs/BreadcrumbItem.vue';
|
|
9
9
|
import { default as Breadcrumbs } from './components/Breadcrumbs/Breadcrumbs.vue';
|
|
10
10
|
import { default as Button } from './components/Button/Button.vue';
|
|
11
|
-
import { default as ButtonGroup } from './components/
|
|
11
|
+
import { default as ButtonGroup } from './components/Button/ButtonGroup.vue';
|
|
12
12
|
import { default as Calendar } from './components/Calendar/Calendar.vue';
|
|
13
13
|
import { default as Card } from './components/Card/Card.vue';
|
|
14
14
|
import { default as Carousel } from './components/Carousel/Carousel.vue';
|
|
@@ -2,12 +2,19 @@ import { ShallowRef, VNode } from 'vue';
|
|
|
2
2
|
type VNodesProps<T extends object> = Array<VNode & {
|
|
3
3
|
props: T;
|
|
4
4
|
}>;
|
|
5
|
+
type SlotFn = () => VNode[] | VNode | undefined;
|
|
5
6
|
/**
|
|
6
7
|
* Flattens slot children and keeps them in sync reactively.
|
|
8
|
+
*
|
|
9
|
+
* @param slotFn The slot function (e.g., slots.default)
|
|
10
|
+
*/
|
|
11
|
+
export declare function useFlattenedSlot<T extends object>(slotFn?: SlotFn): ShallowRef<VNodesProps<T>>;
|
|
12
|
+
/**
|
|
13
|
+
* Returns a computed array of top-level VNodes from the provided slot function
|
|
14
|
+
*
|
|
7
15
|
* @param slotFn The slot function (e.g., slots.default)
|
|
8
|
-
* @returns Computed array of flattened VNodes
|
|
9
16
|
*/
|
|
10
|
-
export declare function
|
|
17
|
+
export declare function useTopLevelSlots(slotFn?: SlotFn): ShallowRef<VNodesProps<any>>;
|
|
11
18
|
/**
|
|
12
19
|
* Checks whether all of the provided VNodes are of the same type. Throws an
|
|
13
20
|
* error if not. This function should be used in components that only allow a
|