reka-ui 2.9.9 → 2.9.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/Combobox/ComboboxContentImpl.cjs +8 -2
- package/dist/Combobox/ComboboxContentImpl.cjs.map +1 -1
- package/dist/Combobox/ComboboxContentImpl.js +8 -2
- package/dist/Combobox/ComboboxContentImpl.js.map +1 -1
- package/dist/Dialog/DialogContent.cjs +2 -1
- package/dist/Dialog/DialogContent.cjs.map +1 -1
- package/dist/Dialog/DialogContent.js +2 -1
- package/dist/Dialog/DialogContent.js.map +1 -1
- package/dist/Dialog/DialogContentModal.cjs +4 -3
- package/dist/Dialog/DialogContentModal.cjs.map +1 -1
- package/dist/Dialog/DialogContentModal.js +4 -3
- package/dist/Dialog/DialogContentModal.js.map +1 -1
- package/dist/DismissableLayer/DismissableLayer.cjs +10 -9
- package/dist/DismissableLayer/DismissableLayer.cjs.map +1 -1
- package/dist/DismissableLayer/DismissableLayer.js +11 -10
- package/dist/DismissableLayer/DismissableLayer.js.map +1 -1
- package/dist/Listbox/ListboxRoot.cjs +4 -1
- package/dist/Listbox/ListboxRoot.cjs.map +1 -1
- package/dist/Listbox/ListboxRoot.js +4 -1
- package/dist/Listbox/ListboxRoot.js.map +1 -1
- package/dist/Listbox/ListboxVirtualizer.cjs +7 -3
- package/dist/Listbox/ListboxVirtualizer.cjs.map +1 -1
- package/dist/Listbox/ListboxVirtualizer.js +7 -3
- package/dist/Listbox/ListboxVirtualizer.js.map +1 -1
- package/dist/index3.d.cts +19 -19
- package/dist/index3.d.ts +3 -3
- package/dist/index4.d.cts +631 -628
- package/dist/index4.d.cts.map +1 -1
- package/dist/index4.d.ts +675 -672
- package/dist/index4.d.ts.map +1 -1
- package/dist/internal.d.ts +2 -2
- package/dist/internal.d.ts.map +1 -1
- package/dist/shared/useId.cjs +7 -8
- package/dist/shared/useId.cjs.map +1 -1
- package/dist/shared/useId.js +7 -8
- package/dist/shared/useId.js.map +1 -1
- package/package.json +6 -5
- package/src/Combobox/ComboboxContentImpl.vue +17 -4
- package/src/Dialog/DialogContent.vue +7 -1
- package/src/Dialog/DialogContentModal.vue +4 -2
- package/src/DismissableLayer/DismissableLayer.vue +39 -21
- package/src/Listbox/ListboxRoot.vue +7 -4
- package/src/Listbox/ListboxVirtualizer.vue +19 -3
- package/src/shared/useId.ts +14 -6
package/dist/index3.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CalendarDateTime, DateValue, DateValue as DateValue$1, Time, ZonedDateTime } from "@internationalized/date";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue0 from "vue";
|
|
3
3
|
import { ComponentPublicInstance, DefineComponent, MaybeRef, MaybeRefOrGetter, Ref, UnwrapNestedRefs, VNode, VNodeProps } from "vue";
|
|
4
4
|
import { MaybeElementRef } from "@vueuse/core";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _vueuse_shared8 from "@vueuse/shared";
|
|
6
6
|
import { ComponentProps } from "vue-component-type-helpers";
|
|
7
7
|
|
|
8
8
|
//#region src/shared/arrays.d.ts
|
|
@@ -308,12 +308,12 @@ interface ArrowNavigationOptions {
|
|
|
308
308
|
declare function useArrowNavigation(e: KeyboardEvent, currentElement: HTMLElement, parentElement: HTMLElement | undefined, options?: ArrowNavigationOptions): HTMLElement | null;
|
|
309
309
|
//#endregion
|
|
310
310
|
//#region src/shared/useBodyScrollLock.d.ts
|
|
311
|
-
declare function useBodyScrollLock(initialState?: boolean | undefined):
|
|
311
|
+
declare function useBodyScrollLock(initialState?: boolean | undefined): vue0.WritableComputedRef<boolean, boolean>;
|
|
312
312
|
//# sourceMappingURL=useBodyScrollLock.d.ts.map
|
|
313
313
|
//#endregion
|
|
314
314
|
//#region src/shared/useComposing.d.ts
|
|
315
315
|
declare function useComposing(onEnd?: (event: CompositionEvent) => void): {
|
|
316
|
-
isComposing:
|
|
316
|
+
isComposing: vue0.Ref<boolean, boolean>;
|
|
317
317
|
handleCompositionStart: () => void;
|
|
318
318
|
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
319
319
|
};
|
|
@@ -357,7 +357,7 @@ declare function useDateFormatter(initialLocale: string, opts?: DateFormatterOpt
|
|
|
357
357
|
* @param {Ref<Direction | undefined>} [dir] - An optional ref containing the direction (ltr or rtl).
|
|
358
358
|
* @returns computed value that combines with the resolved direction.
|
|
359
359
|
*/
|
|
360
|
-
declare function useDirection(dir?: Ref<Direction | undefined>):
|
|
360
|
+
declare function useDirection(dir?: Ref<Direction | undefined>): vue0.ComputedRef<Direction>;
|
|
361
361
|
//# sourceMappingURL=useDirection.d.ts.map
|
|
362
362
|
//#endregion
|
|
363
363
|
//#region src/shared/useEmitAsProps.d.ts
|
|
@@ -406,14 +406,14 @@ declare function useFocusGuards(): void;
|
|
|
406
406
|
//# sourceMappingURL=useFocusGuards.d.ts.map
|
|
407
407
|
//#endregion
|
|
408
408
|
//#region src/shared/useFormControl.d.ts
|
|
409
|
-
declare function useFormControl(el: MaybeElementRef):
|
|
409
|
+
declare function useFormControl(el: MaybeElementRef): vue0.ComputedRef<boolean>;
|
|
410
410
|
//# sourceMappingURL=useFormControl.d.ts.map
|
|
411
411
|
//#endregion
|
|
412
412
|
//#region src/shared/useForwardExpose.d.ts
|
|
413
413
|
declare function useForwardExpose<T extends ComponentPublicInstance>(): {
|
|
414
414
|
forwardRef: (ref: Element | T | null) => void;
|
|
415
|
-
currentRef:
|
|
416
|
-
currentElement:
|
|
415
|
+
currentRef: vue0.Ref<Element | T | null | undefined, Element | T | null | undefined>;
|
|
416
|
+
currentElement: vue0.ComputedRef<HTMLElement>;
|
|
417
417
|
};
|
|
418
418
|
//# sourceMappingURL=useForwardExpose.d.ts.map
|
|
419
419
|
//#endregion
|
|
@@ -431,7 +431,7 @@ type WithOptionalBooleans<T> = { [K in keyof T as [T[K]] extends [boolean] ? K :
|
|
|
431
431
|
* component.
|
|
432
432
|
* @returns computed value that combines the default props, preserved props, and assigned props.
|
|
433
433
|
*/
|
|
434
|
-
declare function useForwardProps<T extends Record<string, any>>(props: MaybeRefOrGetter<T>):
|
|
434
|
+
declare function useForwardProps<T extends Record<string, any>>(props: MaybeRefOrGetter<T>): vue0.ComputedRef<WithOptionalBooleans<T>>;
|
|
435
435
|
//#endregion
|
|
436
436
|
//#region src/shared/useForwardPropsEmits.d.ts
|
|
437
437
|
/**
|
|
@@ -446,7 +446,7 @@ declare function useForwardProps<T extends Record<string, any>>(props: MaybeRefO
|
|
|
446
446
|
* @returns a computed property that combines the parsed
|
|
447
447
|
* props and emits as props.
|
|
448
448
|
*/
|
|
449
|
-
declare function useForwardPropsEmits<T extends Record<string, any>, Name extends string>(props: MaybeRefOrGetter<T>, emit?: (name: Name, ...args: any[]) => void):
|
|
449
|
+
declare function useForwardPropsEmits<T extends Record<string, any>, Name extends string>(props: MaybeRefOrGetter<T>, emit?: (name: Name, ...args: any[]) => void): vue0.ComputedRef<{ [K in keyof T as [T[K]] extends [boolean] ? K : never]?: T[K] | undefined } & { [K_1 in keyof T as [T[K_1]] extends [boolean] ? never : K_1]: T[K_1] } & Record<string, any>>;
|
|
450
450
|
//# sourceMappingURL=useForwardPropsEmits.d.ts.map
|
|
451
451
|
//#endregion
|
|
452
452
|
//#region src/shared/useForwardRef.d.ts
|
|
@@ -455,8 +455,8 @@ declare function useForwardRef(): (ref: Element | ComponentPublicInstance | null
|
|
|
455
455
|
//#endregion
|
|
456
456
|
//#region src/shared/useGraceArea.d.ts
|
|
457
457
|
declare function useGraceArea(triggerElement: Ref<HTMLElement | undefined>, containerElement: Ref<HTMLElement | undefined>): {
|
|
458
|
-
isPointerInTransit:
|
|
459
|
-
onPointerExit:
|
|
458
|
+
isPointerInTransit: _vueuse_shared8.RefAutoResetReturn<boolean>;
|
|
459
|
+
onPointerExit: _vueuse_shared8.EventHookOn<void>;
|
|
460
460
|
};
|
|
461
461
|
//# sourceMappingURL=useGraceArea.d.ts.map
|
|
462
462
|
|
|
@@ -474,12 +474,12 @@ declare function useHideOthers(target: MaybeElementRef): void;
|
|
|
474
474
|
//#endregion
|
|
475
475
|
//#region src/shared/useId.d.ts
|
|
476
476
|
/**
|
|
477
|
-
* The `useId` function generates a unique identifier using a provided deterministic ID
|
|
478
|
-
*
|
|
477
|
+
* The `useId` function generates a unique identifier using a provided deterministic ID,
|
|
478
|
+
* a configured `<ConfigProvider>` ID source, Vue's native `useId`, or a fallback counter.
|
|
479
479
|
* @param {string | null | undefined} [deterministicId] - The `useId` function you provided takes an
|
|
480
480
|
* optional parameter `deterministicId`, which can be a string, null, or undefined. If
|
|
481
481
|
* `deterministicId` is provided, the function will return it. Otherwise, it will generate an id using
|
|
482
|
-
* the
|
|
482
|
+
* the configured ID source.
|
|
483
483
|
*/
|
|
484
484
|
declare function useId(deterministicId?: string | null | undefined, prefix?: string): string;
|
|
485
485
|
//# sourceMappingURL=useId.d.ts.map
|
|
@@ -571,7 +571,7 @@ declare function useTestKbd(): {
|
|
|
571
571
|
* @param {Ref<string | undefined>} [locale] - An optional ref containing the locale.
|
|
572
572
|
* @returns A computed ref holding the resolved locale.
|
|
573
573
|
*/
|
|
574
|
-
declare function useLocale(locale?: Ref<string | undefined>):
|
|
574
|
+
declare function useLocale(locale?: Ref<string | undefined>): vue0.ComputedRef<string>;
|
|
575
575
|
//# sourceMappingURL=useLocale.d.ts.map
|
|
576
576
|
//#endregion
|
|
577
577
|
//#region src/shared/useSelectionBehavior.d.ts
|
|
@@ -590,8 +590,8 @@ declare function useSelectionBehavior<T>(modelValue: Ref<T | T[]>, props: Unwrap
|
|
|
590
590
|
//#endregion
|
|
591
591
|
//#region src/shared/useSize.d.ts
|
|
592
592
|
declare function useSize(element: MaybeElementRef): {
|
|
593
|
-
width:
|
|
594
|
-
height:
|
|
593
|
+
width: vue0.ComputedRef<number>;
|
|
594
|
+
height: vue0.ComputedRef<number>;
|
|
595
595
|
};
|
|
596
596
|
//# sourceMappingURL=useSize.d.ts.map
|
|
597
597
|
//#endregion
|
|
@@ -622,7 +622,7 @@ declare function useStateMachine<M>(initialState: MachineState<M>, machine: M &
|
|
|
622
622
|
//#endregion
|
|
623
623
|
//#region src/shared/useTypeahead.d.ts
|
|
624
624
|
declare function useTypeahead(callback?: (search: string) => void): {
|
|
625
|
-
search:
|
|
625
|
+
search: _vueuse_shared8.RefAutoResetReturn<string>;
|
|
626
626
|
handleTypeaheadSearch: (key: string, items: {
|
|
627
627
|
ref: HTMLElement;
|
|
628
628
|
value?: any;
|
package/dist/index3.d.ts
CHANGED
|
@@ -474,12 +474,12 @@ declare function useHideOthers(target: MaybeElementRef): void;
|
|
|
474
474
|
//#endregion
|
|
475
475
|
//#region src/shared/useId.d.ts
|
|
476
476
|
/**
|
|
477
|
-
* The `useId` function generates a unique identifier using a provided deterministic ID
|
|
478
|
-
*
|
|
477
|
+
* The `useId` function generates a unique identifier using a provided deterministic ID,
|
|
478
|
+
* a configured `<ConfigProvider>` ID source, Vue's native `useId`, or a fallback counter.
|
|
479
479
|
* @param {string | null | undefined} [deterministicId] - The `useId` function you provided takes an
|
|
480
480
|
* optional parameter `deterministicId`, which can be a string, null, or undefined. If
|
|
481
481
|
* `deterministicId` is provided, the function will return it. Otherwise, it will generate an id using
|
|
482
|
-
* the
|
|
482
|
+
* the configured ID source.
|
|
483
483
|
*/
|
|
484
484
|
declare function useId(deterministicId?: string | null | undefined, prefix?: string): string;
|
|
485
485
|
//# sourceMappingURL=useId.d.ts.map
|