ropav 0.0.9 → 0.0.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/color-input.css +19 -19
- package/dist/color-input.js +8 -3
- package/dist/color-picker.css +20 -20
- package/dist/color-picker.js +107 -27
- package/dist/components/accordion/accordion-item.d.ts +4 -4
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/index.d.ts +4 -4
- package/dist/components/accordion/types.d.ts +1 -1
- package/dist/components/accordion/useAccordion.d.ts +1 -1
- package/dist/components/alert/alert.d.ts +1 -1
- package/dist/components/alert/index.d.ts +3 -3
- package/dist/components/alert/types.d.ts +1 -1
- package/dist/components/alert/useAlertColor.d.ts +1 -1
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +1 -1
- package/dist/components/aspect-ratio/index.d.ts +2 -2
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/avatar/types.d.ts +1 -1
- package/dist/components/avatar/useAvatarColor.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/components/badge/types.d.ts +1 -1
- package/dist/components/badge/useBadgeColor.d.ts +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/types.d.ts +1 -1
- package/dist/components/button/useButtonColor.d.ts +1 -1
- package/dist/components/button-group/button-group.d.ts +1 -1
- package/dist/components/button-group/index.d.ts +2 -2
- package/dist/components/button-link/button-link.d.ts +1 -1
- package/dist/components/button-link/index.d.ts +2 -2
- package/dist/components/button-link/types.d.ts +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox/types.d.ts +1 -1
- package/dist/components/checkbox/useCheckbox.d.ts +2 -2
- package/dist/components/collapse/collapse.d.ts +2 -2
- package/dist/components/collapse/index.d.ts +3 -3
- package/dist/components/collapse/useCollapse.d.ts +1 -1
- package/dist/components/color-input/color-input.d.ts +1 -1
- package/dist/components/color-input/index.d.ts +2 -2
- package/dist/components/color-input/types.d.ts +4 -3
- package/dist/components/color-input/useColorInput.d.ts +5 -5
- package/dist/components/color-input/useColorInputEyeDropper.d.ts +1 -1
- package/dist/components/color-input/useColorInputPopover.d.ts +2 -2
- package/dist/components/color-input/useColorInputValue.d.ts +1 -1
- package/dist/components/color-picker/color-picker-saturation.d.ts +1 -1
- package/dist/components/color-picker/color-picker-slider.d.ts +1 -1
- package/dist/components/color-picker/color-picker-utils.d.ts +1 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -1
- package/dist/components/color-picker/index.d.ts +3 -3
- package/dist/components/color-picker/useColorPickerDrag.d.ts +7 -2
- package/dist/components/color-picker/useColorPickerSwatches.d.ts +1 -1
- package/dist/components/color-picker/useColorPickerValue.d.ts +2 -2
- package/dist/components/color-swatch/color-swatch.d.ts +1 -1
- package/dist/components/color-swatch/index.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-items.d.ts +15 -6
- package/dist/components/dropdown-menu/dropdown-menu-utils.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu/index.d.ts +3 -3
- package/dist/components/dropdown-menu/useDropdownMenu.d.ts +11 -10
- package/dist/components/dropdown-menu/useDropdownMenuDisclosure.d.ts +2 -2
- package/dist/components/dropdown-menu/useDropdownMenuDom.d.ts +2 -2
- package/dist/components/dropdown-menu/useDropdownMenuHoverIntent.d.ts +2 -2
- package/dist/components/dropdown-menu/useDropdownMenuInteractions.d.ts +2 -2
- package/dist/components/dropdown-menu/useDropdownMenuNavigation.d.ts +3 -3
- package/dist/components/dropdown-menu/useDropdownMenuRenderItems.d.ts +12 -4
- package/dist/components/dropdown-menu/useDropdownSubmenus.d.ts +3 -3
- package/dist/components/field/field.d.ts +2 -2
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/field/useField.d.ts +1 -1
- package/dist/components/icon-button/icon-button.d.ts +1 -1
- package/dist/components/icon-button/index.d.ts +2 -2
- package/dist/components/icon-button/types.d.ts +1 -1
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/useInput.d.ts +2 -2
- package/dist/components/modal/index.d.ts +2 -2
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/modal/types.d.ts +1 -1
- package/dist/components/modal/useModal.d.ts +1 -1
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/number-input/number-input.d.ts +1 -1
- package/dist/components/number-input/types.d.ts +1 -1
- package/dist/components/number-input/useNumberInput.d.ts +2 -2
- package/dist/components/overlay/index.d.ts +2 -2
- package/dist/components/overlay/overlay.d.ts +1 -1
- package/dist/components/overlay/useOverlay.d.ts +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/popover/types.d.ts +1 -0
- package/dist/components/popover/usePopover.d.ts +2 -1
- package/dist/components/progress/index.d.ts +3 -3
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/progress/types.d.ts +1 -1
- package/dist/components/progress/useProgress.d.ts +2 -2
- package/dist/components/radio/index.d.ts +3 -3
- package/dist/components/radio/radio-group.d.ts +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/types.d.ts +1 -1
- package/dist/components/radio/useRadio.d.ts +2 -2
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/useSelect.d.ts +2 -2
- package/dist/components/slider/index.d.ts +4 -4
- package/dist/components/slider/range-slider-tooltip.d.ts +34 -0
- package/dist/components/slider/range-slider.d.ts +4 -12
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/slider/sliderCore.d.ts +35 -0
- package/dist/components/slider/types.d.ts +2 -5
- package/dist/components/slider/useRangeSlider.d.ts +5 -7
- package/dist/components/slider/useRangeSliderPointer.d.ts +19 -0
- package/dist/components/slider/useRangeSliderTooltipCollision.d.ts +31 -2
- package/dist/components/slider/useRangeSliderTooltipState.d.ts +23 -0
- package/dist/components/slider/useSlider.d.ts +11 -15
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/types.d.ts +1 -1
- package/dist/components/switch/useSwitch.d.ts +2 -2
- package/dist/components/tabs/index.d.ts +6 -6
- package/dist/components/tabs/tabs-content.d.ts +2 -2
- package/dist/components/tabs/tabs-list.d.ts +4 -4
- package/dist/components/tabs/tabs-trigger.d.ts +5 -5
- package/dist/components/tabs/tabs.d.ts +5 -5
- package/dist/components/tabs/useTabs.d.ts +1 -1
- package/dist/components/textarea/index.d.ts +2 -2
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/useTextarea.d.ts +2 -2
- package/dist/components/toast/defaults.d.ts +7 -0
- package/dist/components/toast/index.d.ts +7 -0
- package/dist/components/toast/index.js +2 -0
- package/dist/components/toast/toast-provider.d.ts +21 -0
- package/dist/components/toast/toast-viewport.d.ts +34 -0
- package/dist/components/toast/toast.d.ts +31 -0
- package/dist/components/toast/types.d.ts +106 -0
- package/dist/components/toast/useToast.d.ts +4 -0
- package/dist/components/toast/useToastColor.d.ts +3 -0
- package/dist/components/toast/useToastState.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/tooltip/types.d.ts +1 -1
- package/dist/components/tooltip/useTooltip.d.ts +3 -1
- package/dist/dropdown-menu.js +160 -39
- package/dist/index.d.ts +31 -30
- package/dist/index.js +2 -1
- package/dist/popover.css +28 -28
- package/dist/popover.js +25 -14
- package/dist/rafScheduler.js +34 -0
- package/dist/slider.css +355 -228
- package/dist/slider.js +890 -862
- package/dist/textarea.js +8 -2
- package/dist/toast.css +232 -0
- package/dist/toast.js +679 -0
- package/dist/tooltip.js +17 -10
- package/dist/utils/componentColors.d.ts +60 -0
- package/package.json +17 -9
- package/dist/components/slider/useRangeSliderTooltipTransition.d.ts +0 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Modal } from './modal';
|
|
2
|
-
export type { ModalInitialFocus, ModalPresetSize, ModalProps, ModalRole, ModalSize, ModalSlotProps, } from './types';
|
|
1
|
+
export { default as Modal } from './modal.js';
|
|
2
|
+
export type { ModalInitialFocus, ModalPresetSize, ModalProps, ModalRole, ModalSize, ModalSlotProps, } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModalProps } from './types';
|
|
1
|
+
import { ModalProps } from './types.js';
|
|
2
2
|
declare const __VLS_export: (__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<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<ModalProps & {
|
|
4
4
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { OverlayProps } from '../overlay/types';
|
|
2
|
+
import { OverlayProps } from '../overlay/types.js';
|
|
3
3
|
export type ModalPresetSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
4
4
|
export type ModalSize = ModalPresetSize | (string & {});
|
|
5
5
|
export type ModalRole = 'dialog' | 'alertdialog';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { ModalProps, ModalRole, ModalSlotProps } from './types';
|
|
2
|
+
import { ModalProps, ModalRole, ModalSlotProps } from './types.js';
|
|
3
3
|
export declare function useModal(props: Readonly<ModalProps>, emitOpenChange?: (open: boolean) => void): {
|
|
4
4
|
panelRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
5
5
|
modalId: import('vue').ComputedRef<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as NumberInput } from './number-input';
|
|
2
|
-
export type { NumberInputControlsPosition, NumberInputProps, NumberInputRadius, NumberInputSize, NumberInputTextAlign, NumberInputValue, } from './types';
|
|
1
|
+
export { default as NumberInput } from './number-input.js';
|
|
2
|
+
export type { NumberInputControlsPosition, NumberInputProps, NumberInputRadius, NumberInputSize, NumberInputTextAlign, NumberInputValue, } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NumberInputProps, NumberInputValue } from './types';
|
|
1
|
+
import { NumberInputProps, NumberInputValue } from './types.js';
|
|
2
2
|
declare const __VLS_export: (__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<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<NumberInputProps & {
|
|
4
4
|
"onUpdate:modelValue"?: ((value: NumberInputValue) => any) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'vue';
|
|
2
|
-
import { InputRadius, InputSize } from '../input/types';
|
|
2
|
+
import { InputRadius, InputSize } from '../input/types.js';
|
|
3
3
|
export type NumberInputValue = number | null;
|
|
4
4
|
export type NumberInputRadius = InputRadius;
|
|
5
5
|
export type NumberInputSize = InputSize;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'vue';
|
|
2
|
-
import { NumberInputControlsPosition, NumberInputProps, NumberInputTextAlign, NumberInputValue } from './types';
|
|
2
|
+
import { NumberInputControlsPosition, NumberInputProps, NumberInputTextAlign, NumberInputValue } from './types.js';
|
|
3
3
|
export interface NumberInputBounds {
|
|
4
4
|
min: number | undefined;
|
|
5
5
|
max: number | undefined;
|
|
@@ -14,7 +14,7 @@ export declare function parseNumberInputValue(value: string): NumberInputValue;
|
|
|
14
14
|
export declare function normalizeNumberInputControlsPosition(position: NumberInputControlsPosition | undefined): NumberInputControlsPosition;
|
|
15
15
|
export declare function normalizeNumberInputTextAlign(textAlign: NumberInputTextAlign | undefined): NumberInputTextAlign;
|
|
16
16
|
export declare function useNumberInput(props: Readonly<NumberInputProps>, emitUpdate: (value: NumberInputValue) => void): {
|
|
17
|
-
control: import('../../composables/useControlState').ControlState;
|
|
17
|
+
control: import('../../composables/useControlState.js').ControlState;
|
|
18
18
|
rootClass: import('vue').ComputedRef<string[]>;
|
|
19
19
|
bounds: import('vue').ComputedRef<NumberInputBounds>;
|
|
20
20
|
nativeStep: import('vue').ComputedRef<number>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Overlay } from './overlay';
|
|
2
|
-
export type { OverlayBlur, OverlayProps, OverlayZIndex } from './types';
|
|
1
|
+
export { default as Overlay } from './overlay.js';
|
|
2
|
+
export type { OverlayBlur, OverlayProps, OverlayZIndex } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OverlayProps } from './types';
|
|
1
|
+
import { OverlayProps } from './types.js';
|
|
2
2
|
declare const __VLS_export: (__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<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<OverlayProps> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { OverlayProps } from './types';
|
|
2
|
+
import { OverlayProps } from './types.js';
|
|
3
3
|
export declare function useOverlay(props: Readonly<OverlayProps>): {
|
|
4
4
|
isRendered: import('vue').ComputedRef<boolean>;
|
|
5
5
|
rootClass: import('vue').ComputedRef<string[]>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Popover } from './popover';
|
|
2
|
-
export { popoverPlacements } from './types';
|
|
3
|
-
export type { PopoverContentSlotProps, PopoverOffset, PopoverOffsetOptions, PopoverPlacement, PopoverProps, PopoverRole, PopoverSlotProps, PopoverTarget, PopoverTriggerProps, } from './types';
|
|
1
|
+
export { default as Popover } from './popover.js';
|
|
2
|
+
export { popoverPlacements } from './types.js';
|
|
3
|
+
export type { PopoverContentSlotProps, PopoverOffset, PopoverOffsetOptions, PopoverPlacement, PopoverProps, PopoverRole, PopoverSlotProps, PopoverTarget, PopoverTriggerProps, } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PopoverProps } from './types';
|
|
1
|
+
import { PopoverProps } from './types.js';
|
|
2
2
|
declare const __VLS_export: (__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<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<PopoverProps & {
|
|
4
4
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
@@ -9,7 +9,7 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: {
|
|
11
11
|
default?: (props: {
|
|
12
|
-
triggerProps: import('./types').PopoverTriggerProps;
|
|
12
|
+
triggerProps: import('./types.js').PopoverTriggerProps;
|
|
13
13
|
isOpen: boolean;
|
|
14
14
|
open: () => void;
|
|
15
15
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { PopoverContentSlotProps, PopoverProps, PopoverSlotProps, PopoverTriggerProps } from './types';
|
|
2
|
+
import { PopoverContentSlotProps, PopoverProps, PopoverSlotProps, PopoverTriggerProps } from './types.js';
|
|
3
3
|
export declare function usePopover(props: Readonly<PopoverProps>, emitOpenChange?: (open: boolean) => void): {
|
|
4
4
|
rootRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
5
5
|
popoverId: import('vue').ComputedRef<string>;
|
|
@@ -11,6 +11,7 @@ export declare function usePopover(props: Readonly<PopoverProps>, emitOpenChange
|
|
|
11
11
|
ariaLabelledby: import('vue').ComputedRef<string | undefined>;
|
|
12
12
|
ariaDescribedby: import('vue').ComputedRef<string | undefined>;
|
|
13
13
|
shouldRenderContent: import('vue').ComputedRef<boolean>;
|
|
14
|
+
shouldShowContent: import('vue').ComputedRef<boolean>;
|
|
14
15
|
rootClass: import('vue').ComputedRef<string[]>;
|
|
15
16
|
contentStyle: import('vue').ComputedRef<CSSProperties | undefined>;
|
|
16
17
|
triggerProps: import('vue').ComputedRef<PopoverTriggerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Progress } from './progress';
|
|
2
|
-
export { progressColors, progressRadiuses, progressSizes } from './types';
|
|
3
|
-
export type { ProgressColor, ProgressProps, ProgressRadius, ProgressSize, ProgressValueFormatter, } from './types';
|
|
1
|
+
export { default as Progress } from './progress.js';
|
|
2
|
+
export { progressColors, progressRadiuses, progressSizes } from './types.js';
|
|
3
|
+
export type { ProgressColor, ProgressProps, ProgressRadius, ProgressSize, ProgressValueFormatter, } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProgressProps } from './types';
|
|
1
|
+
import { ProgressProps } from './types.js';
|
|
2
2
|
declare const __VLS_export: (__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<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<ProgressProps> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentColorValue } from '../../utils/componentColors';
|
|
1
|
+
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
2
2
|
export declare const progressColors: readonly ["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "teal", "green", "lime", "yellow", "orange"];
|
|
3
3
|
export declare const progressSizes: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
4
4
|
export declare const progressRadiuses: readonly ["none", "xs", "sm", "md", "lg", "xl", "full"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { ProgressProps } from './types';
|
|
2
|
+
import { ProgressProps } from './types.js';
|
|
3
3
|
type ProgressStateProps = Readonly<ProgressProps & {
|
|
4
4
|
min: number;
|
|
5
5
|
max: number;
|
|
@@ -13,7 +13,7 @@ export declare function normalizeProgressBounds(min: number, max: number): {
|
|
|
13
13
|
export declare function normalizeProgressValue(value: number | null | undefined, min: number, max: number): number;
|
|
14
14
|
export declare function getProgressValuePercent(value: number, min: number, max: number): number;
|
|
15
15
|
export declare function useProgress(props: ProgressStateProps): {
|
|
16
|
-
control: import('../../composables/useControlState').ControlState;
|
|
16
|
+
control: import('../../composables/useControlState.js').ControlState;
|
|
17
17
|
rootClass: import('vue').ComputedRef<string[]>;
|
|
18
18
|
rootStyle: import('vue').ComputedRef<CSSProperties>;
|
|
19
19
|
isIndeterminate: import('vue').ComputedRef<boolean>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Radio } from './radio';
|
|
2
|
-
export { default as RadioGroup } from './radio-group';
|
|
3
|
-
export type { RadioColor, RadioGroupProps, RadioProps, RadioSize, RadioVariant } from './types';
|
|
1
|
+
export { default as Radio } from './radio.js';
|
|
2
|
+
export { default as RadioGroup } from './radio-group.js';
|
|
3
|
+
export type { RadioColor, RadioGroupProps, RadioProps, RadioSize, RadioVariant } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RadioGroupProps } from './types';
|
|
1
|
+
import { RadioGroupProps } from './types.js';
|
|
2
2
|
declare const __VLS_export: (__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<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<RadioGroupProps & {
|
|
4
4
|
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RadioProps } from './types';
|
|
1
|
+
import { RadioProps } from './types.js';
|
|
2
2
|
declare const __VLS_export: (__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<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<RadioProps> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
|
-
import { ComponentColorValue } from '../../utils/componentColors';
|
|
2
|
+
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
3
3
|
export type RadioColor = ComponentColorValue;
|
|
4
4
|
export type RadioSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
5
|
export type RadioVariant = 'solid' | 'outline';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { RadioGroupContext, RadioGroupProps, RadioProps } from './types';
|
|
2
|
+
import { RadioGroupContext, RadioGroupProps, RadioProps } from './types.js';
|
|
3
3
|
export declare function useRadio(props: Readonly<RadioProps>): {
|
|
4
4
|
group: RadioGroupContext;
|
|
5
5
|
isChecked: import('vue').ComputedRef<boolean>;
|
|
@@ -9,6 +9,6 @@ export declare function useRadio(props: Readonly<RadioProps>): {
|
|
|
9
9
|
onSelect: () => void;
|
|
10
10
|
};
|
|
11
11
|
export declare function useRadioGroup(props: Readonly<RadioGroupProps>, emitUpdate: (value: string | number | null) => void): {
|
|
12
|
-
control: import('../../composables/useControlState').ControlState;
|
|
12
|
+
control: import('../../composables/useControlState.js').ControlState;
|
|
13
13
|
rootClass: import('vue').ComputedRef<string[]>;
|
|
14
14
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Select } from './select';
|
|
2
|
-
export type { SelectOption, SelectProps, SelectRadius, SelectSize } from './types';
|
|
1
|
+
export { default as Select } from './select.js';
|
|
2
|
+
export type { SelectOption, SelectProps, SelectRadius, SelectSize } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectProps } from './types';
|
|
1
|
+
import { SelectProps } from './types.js';
|
|
2
2
|
declare const __VLS_export: (__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<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<SelectProps & {
|
|
4
4
|
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectOption, SelectProps } from './types';
|
|
1
|
+
import { SelectOption, SelectProps } from './types.js';
|
|
2
2
|
type SelectValue = string | number | null;
|
|
3
3
|
export declare function useSelect(props: Readonly<SelectProps>, emitUpdate: (value: SelectValue) => void): {
|
|
4
4
|
selectRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -6,7 +6,7 @@ export declare function useSelect(props: Readonly<SelectProps>, emitUpdate: (val
|
|
|
6
6
|
isOpen: import('vue').Ref<boolean, boolean>;
|
|
7
7
|
selectId: string;
|
|
8
8
|
listboxId: string;
|
|
9
|
-
control: import('../../composables/useControlState').ControlState;
|
|
9
|
+
control: import('../../composables/useControlState.js').ControlState;
|
|
10
10
|
visibleOptions: import('vue').ComputedRef<SelectOption[]>;
|
|
11
11
|
focusedIndex: import('vue').Ref<number, number>;
|
|
12
12
|
activeDescendantId: import('vue').ComputedRef<string | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as Slider } from './slider';
|
|
2
|
-
export { default as RangeSlider } from './range-slider';
|
|
3
|
-
export { sliderColors, sliderOrientations, sliderSizes } from './types';
|
|
4
|
-
export type { RangeSliderAriaValueText, RangeSliderEndpointValueText, RangeSliderProps, RangeSliderThumb, RangeSliderValue, SliderColor, SliderMark, SliderMarkColor, SliderMarkInput, SliderOrientation, SliderProps, SliderPresetColor, SliderSize, SliderThumbStyle, SliderTooltip, SliderTooltipMode, SliderTooltipOptions, SliderValueFormatter, } from './types';
|
|
1
|
+
export { default as Slider } from './slider.js';
|
|
2
|
+
export { default as RangeSlider } from './range-slider.js';
|
|
3
|
+
export { sliderColors, sliderOrientations, sliderSizes } from './types.js';
|
|
4
|
+
export type { RangeSliderAriaValueText, RangeSliderEndpointValueText, RangeSliderProps, RangeSliderThumb, RangeSliderValue, SliderColor, SliderMark, SliderMarkColor, SliderMarkInput, SliderOrientation, SliderProps, SliderPresetColor, SliderSize, SliderThumbStyle, SliderTooltip, SliderTooltipMode, SliderTooltipOptions, SliderValueFormatter, } from './types.js';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TooltipColor, TooltipOffset, TooltipPlacement } from '../tooltip/types.js';
|
|
2
|
+
import { RangeSliderValue, SliderOrientation } from './types.js';
|
|
3
|
+
declare const __VLS_export: (__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<{
|
|
4
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
arrow?: boolean;
|
|
6
|
+
color?: TooltipColor;
|
|
7
|
+
content: [string, string];
|
|
8
|
+
ids: [string | undefined, string | undefined];
|
|
9
|
+
mergedContent: string;
|
|
10
|
+
mergedId?: string;
|
|
11
|
+
offset?: TooltipOffset;
|
|
12
|
+
open: boolean;
|
|
13
|
+
orientation: SliderOrientation;
|
|
14
|
+
placement: TooltipPlacement;
|
|
15
|
+
valuePercent: RangeSliderValue;
|
|
16
|
+
} & {
|
|
17
|
+
"onUpdate:overlapping"?: ((value: boolean) => any) | undefined;
|
|
18
|
+
}> & (typeof globalThis extends {
|
|
19
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
20
|
+
} ? P : {});
|
|
21
|
+
expose: (exposed: {}) => void;
|
|
22
|
+
attrs: any;
|
|
23
|
+
slots: {};
|
|
24
|
+
emit: (evt: "update:overlapping", value: boolean) => void;
|
|
25
|
+
}>) => import('vue').VNode & {
|
|
26
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} : {
|
|
33
|
+
[K in keyof T as K]: T[K];
|
|
34
|
+
}) & {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RangeSliderProps } from './types';
|
|
1
|
+
import { RangeSliderProps } from './types.js';
|
|
2
2
|
declare const __VLS_export: (__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<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<RangeSliderProps & {
|
|
4
4
|
"onUpdate:modelValue"?: ((value: [number, number]) => any) | undefined;
|
|
@@ -11,21 +11,13 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
|
|
|
11
11
|
default?: (props: {}) => any;
|
|
12
12
|
} & {
|
|
13
13
|
value?: (props: {
|
|
14
|
-
value: import('./types').RangeSliderValue;
|
|
14
|
+
value: import('./types.js').RangeSliderValue;
|
|
15
15
|
formattedValue: [string | number, string | number];
|
|
16
|
-
percent: import('./types').RangeSliderValue;
|
|
16
|
+
percent: import('./types.js').RangeSliderValue;
|
|
17
17
|
}) => any;
|
|
18
18
|
} & {
|
|
19
19
|
thumb?: (props: {
|
|
20
|
-
thumb:
|
|
21
|
-
index: number;
|
|
22
|
-
value: number;
|
|
23
|
-
formattedValue: string | number;
|
|
24
|
-
percent: number;
|
|
25
|
-
}) => any;
|
|
26
|
-
} & {
|
|
27
|
-
thumb?: (props: {
|
|
28
|
-
thumb: string;
|
|
20
|
+
thumb: "lower" | "upper";
|
|
29
21
|
index: number;
|
|
30
22
|
value: number;
|
|
31
23
|
formattedValue: string | number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SliderProps } from './types';
|
|
1
|
+
import { SliderProps } from './types.js';
|
|
2
2
|
declare const __VLS_export: (__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<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<SliderProps & {
|
|
4
4
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
import { SliderMarkInput, SliderProps, SliderThumbStyle, SliderTooltipMode, SliderTooltipOptions } from './types.js';
|
|
3
|
+
export interface SliderBounds {
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
}
|
|
7
|
+
interface SliderMarkStyleProperties {
|
|
8
|
+
position: `--_rp-${string}`;
|
|
9
|
+
colors: readonly `--_rp-${string}`[];
|
|
10
|
+
}
|
|
11
|
+
interface SliderThumbStyleProperties {
|
|
12
|
+
size: `--_rp-${string}`;
|
|
13
|
+
border: `--_rp-${string}`;
|
|
14
|
+
padding: `--_rp-${string}`;
|
|
15
|
+
borderColor: `--_rp-${string}`;
|
|
16
|
+
}
|
|
17
|
+
export declare function normalizeSliderBounds(min: number, max: number): SliderBounds;
|
|
18
|
+
export declare function normalizeSliderStep(step: number | 'any'): number | "any";
|
|
19
|
+
export declare function normalizeSliderValue(value: number, min: number, max: number, step: number | 'any'): number;
|
|
20
|
+
export declare function getSliderValuePercent(value: number, min: number, max: number): number;
|
|
21
|
+
export declare function setSliderStyleValue(style: CSSProperties, property: `--_rp-${string}`, value: string | undefined): void;
|
|
22
|
+
export declare function applySliderThumbStyle(style: CSSProperties, thumbStyle: SliderThumbStyle | undefined, properties: SliderThumbStyleProperties): void;
|
|
23
|
+
export declare function createSliderMarkItems(marks: SliderMarkInput[] | undefined, min: number, max: number, isFilled: (value: number, percent: number) => boolean, properties: SliderMarkStyleProperties): {
|
|
24
|
+
key: string;
|
|
25
|
+
value: number;
|
|
26
|
+
label: string | number | undefined;
|
|
27
|
+
hasLabel: boolean;
|
|
28
|
+
filled: boolean;
|
|
29
|
+
style: CSSProperties;
|
|
30
|
+
}[];
|
|
31
|
+
export declare function getFormattedSliderValue(value: number, formatter: SliderProps['formatValue']): string | number;
|
|
32
|
+
export declare function getSliderAriaValueText(value: number, ariaValueText: string | SliderProps['formatValue'] | undefined, formatter: SliderProps['formatValue']): string | undefined;
|
|
33
|
+
export declare function getSliderTooltipOptions(tooltip: NonNullable<SliderProps['tooltip']>): SliderTooltipOptions;
|
|
34
|
+
export declare function getSliderTooltipMode(tooltip: NonNullable<SliderProps['tooltip']>): SliderTooltipMode | false;
|
|
35
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TooltipProps } from '../tooltip/types';
|
|
2
|
-
import { ComponentColorValue } from '../../utils/componentColors';
|
|
1
|
+
import { TooltipProps } from '../tooltip/types.js';
|
|
2
|
+
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
3
3
|
export declare const sliderColors: readonly ["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "teal", "green", "lime", "yellow", "orange"];
|
|
4
4
|
export declare const sliderSizes: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
5
5
|
export declare const sliderOrientations: readonly ["horizontal", "vertical"];
|
|
@@ -45,9 +45,6 @@ export interface SliderProps {
|
|
|
45
45
|
size?: SliderSize;
|
|
46
46
|
orientation?: SliderOrientation;
|
|
47
47
|
disabled?: boolean;
|
|
48
|
-
required?: boolean;
|
|
49
|
-
invalid?: boolean;
|
|
50
|
-
valid?: boolean;
|
|
51
48
|
ariaLabel?: string;
|
|
52
49
|
ariaValueText?: string | SliderValueFormatter;
|
|
53
50
|
describedby?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { RangeSliderProps, RangeSliderThumb, RangeSliderValue } from './types';
|
|
2
|
+
import { RangeSliderProps, RangeSliderThumb, RangeSliderValue } from './types.js';
|
|
3
3
|
type RangeSliderStateProps = Readonly<RangeSliderProps & {
|
|
4
4
|
min: number;
|
|
5
5
|
max: number;
|
|
@@ -13,7 +13,7 @@ export declare function normalizeRangeSliderMinRange(minRange: number, min: numb
|
|
|
13
13
|
export declare function normalizeRangeSliderValue(value: RangeSliderValue, min: number, max: number, step: number | 'any', minRange?: number): RangeSliderValue;
|
|
14
14
|
export declare function getClosestRangeSliderThumb(value: number, range: RangeSliderValue, activeThumb?: RangeSliderThumb): RangeSliderThumb;
|
|
15
15
|
export declare function useRangeSlider(props: RangeSliderStateProps, emitUpdate: (value: RangeSliderValue) => void): {
|
|
16
|
-
control: import('../../composables/useControlState').ControlState;
|
|
16
|
+
control: import('../../composables/useControlState.js').ControlState;
|
|
17
17
|
nativeMin: import('vue').ComputedRef<RangeSliderValue>;
|
|
18
18
|
nativeMax: import('vue').ComputedRef<RangeSliderValue>;
|
|
19
19
|
nativeStep: import('vue').ComputedRef<number | "any">;
|
|
@@ -37,11 +37,11 @@ export declare function useRangeSlider(props: RangeSliderStateProps, emitUpdate:
|
|
|
37
37
|
activeThumb: import('vue').Ref<RangeSliderThumb | undefined, RangeSliderThumb | undefined>;
|
|
38
38
|
tooltipVisible: import('vue').ComputedRef<boolean>;
|
|
39
39
|
tooltipOpen: import('vue').ComputedRef<boolean>;
|
|
40
|
-
tooltipPlacement: import('vue').ComputedRef<import('../tooltip').TooltipPlacement>;
|
|
40
|
+
tooltipPlacement: import('vue').ComputedRef<import('../tooltip/index.js').TooltipPlacement>;
|
|
41
41
|
tooltipIds: import('vue').ComputedRef<[string | undefined, string | undefined]>;
|
|
42
42
|
mergedTooltipId: import('vue').ComputedRef<string | undefined>;
|
|
43
|
-
tooltipColor: import('vue').ComputedRef<import('../../utils/componentColors').ComponentColorValue | undefined>;
|
|
44
|
-
tooltipOffset: import('vue').ComputedRef<import('../tooltip').TooltipOffset | undefined>;
|
|
43
|
+
tooltipColor: import('vue').ComputedRef<import('../../utils/componentColors.js').ComponentColorValue | undefined>;
|
|
44
|
+
tooltipOffset: import('vue').ComputedRef<import('../tooltip/index.js').TooltipOffset | undefined>;
|
|
45
45
|
tooltipOpenDelay: import('vue').ComputedRef<number>;
|
|
46
46
|
tooltipArrow: import('vue').ComputedRef<boolean>;
|
|
47
47
|
tooltipContent: import('vue').ComputedRef<[string, string]>;
|
|
@@ -52,8 +52,6 @@ export declare function useRangeSlider(props: RangeSliderStateProps, emitUpdate:
|
|
|
52
52
|
onTooltipBlur: (thumb: RangeSliderThumb) => void;
|
|
53
53
|
onTooltipTrackMouseEnter: () => void;
|
|
54
54
|
onTooltipTrackMouseLeave: () => void;
|
|
55
|
-
openTooltip: (thumb: RangeSliderThumb) => void;
|
|
56
|
-
closeTooltip: (thumb?: RangeSliderThumb) => void;
|
|
57
55
|
onTooltipKeydown: (thumb: RangeSliderThumb, event: KeyboardEvent) => void;
|
|
58
56
|
};
|
|
59
57
|
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RangeSliderThumb } from './types.js';
|
|
2
|
+
interface UseRangeSliderPointerOptions<TGeometry> {
|
|
3
|
+
disabled: () => boolean;
|
|
4
|
+
getPointerGeometry: (track: HTMLElement) => TGeometry | undefined;
|
|
5
|
+
getPointerValue: (event: PointerEvent, geometry: TGeometry) => number | undefined;
|
|
6
|
+
getThumb: (event: PointerEvent, value: number) => RangeSliderThumb;
|
|
7
|
+
getAnchorValue: (thumb: RangeSliderThumb) => number;
|
|
8
|
+
setActiveThumb: (thumb: RangeSliderThumb) => void;
|
|
9
|
+
focusThumb: (track: HTMLElement, thumb: RangeSliderThumb) => void;
|
|
10
|
+
updateThumb: (thumb: RangeSliderThumb, value: number, anchorValue: number) => RangeSliderThumb;
|
|
11
|
+
transferFocusedThumb: (track: HTMLElement, from: RangeSliderThumb, to: RangeSliderThumb) => void;
|
|
12
|
+
startDrag: (thumb: RangeSliderThumb) => void;
|
|
13
|
+
endDrag: (thumb: RangeSliderThumb) => void;
|
|
14
|
+
transferDrag: (from: RangeSliderThumb, to: RangeSliderThumb) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function useRangeSliderPointer<TGeometry>(options: UseRangeSliderPointerOptions<TGeometry>): {
|
|
17
|
+
onTrackPointerDown: (event: PointerEvent) => void;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -1,7 +1,36 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
1
|
+
import { Ref, WatchSource } from 'vue';
|
|
2
|
+
import { TooltipPlacement } from '../tooltip/types.js';
|
|
3
|
+
import { RangeSliderValue, SliderOrientation } from './types.js';
|
|
2
4
|
type TooltipRect = Pick<DOMRect, 'bottom' | 'height' | 'left' | 'right' | 'top' | 'width'>;
|
|
5
|
+
export interface RangeSliderTooltipSize {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
}
|
|
9
|
+
export interface RangeSliderTooltipCollisionLayout {
|
|
10
|
+
gap?: number;
|
|
11
|
+
lowerPercent: number;
|
|
12
|
+
lowerSize: RangeSliderTooltipSize;
|
|
13
|
+
orientation: SliderOrientation;
|
|
14
|
+
placement: TooltipPlacement;
|
|
15
|
+
trackLength: number;
|
|
16
|
+
upperPercent: number;
|
|
17
|
+
upperSize: RangeSliderTooltipSize;
|
|
18
|
+
}
|
|
19
|
+
interface UseRangeSliderTooltipCollisionOptions {
|
|
20
|
+
enabled: Ref<boolean>;
|
|
21
|
+
lower: Ref<HTMLElement | null>;
|
|
22
|
+
orientation: Ref<SliderOrientation>;
|
|
23
|
+
placement: Ref<TooltipPlacement>;
|
|
24
|
+
root: Ref<HTMLElement | null>;
|
|
25
|
+
sizeDependencies?: readonly WatchSource[];
|
|
26
|
+
upper: Ref<HTMLElement | null>;
|
|
27
|
+
valuePercent: Ref<RangeSliderValue>;
|
|
28
|
+
}
|
|
3
29
|
export declare function areRangeSliderTooltipRectsOverlapping(lower: TooltipRect, upper: TooltipRect, gap?: number): boolean;
|
|
4
|
-
export declare function
|
|
30
|
+
export declare function areRangeSliderTooltipLayoutsOverlapping({ gap, lowerPercent, lowerSize, orientation, placement, trackLength, upperPercent, upperSize, }: RangeSliderTooltipCollisionLayout): boolean;
|
|
31
|
+
export declare function useRangeSliderTooltipCollision({ enabled, lower, orientation, placement, root, sizeDependencies, upper, valuePercent, }: UseRangeSliderTooltipCollisionOptions): {
|
|
5
32
|
tooltipsOverlapping: Ref<boolean, boolean>;
|
|
33
|
+
mergedArrowOffset: import('vue').ComputedRef<number>;
|
|
34
|
+
mergedMinSize: import('vue').ComputedRef<number>;
|
|
6
35
|
};
|
|
7
36
|
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { RangeSliderThumb, SliderTooltipMode } from './types.js';
|
|
3
|
+
export type RangeSliderTooltipInteractionReason = 'focus' | 'drag';
|
|
4
|
+
interface UseRangeSliderTooltipStateOptions {
|
|
5
|
+
mode: ComputedRef<SliderTooltipMode | false>;
|
|
6
|
+
openDelay: ComputedRef<number>;
|
|
7
|
+
disabled: () => boolean;
|
|
8
|
+
setActiveThumb: (thumb: RangeSliderThumb) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function useRangeSliderTooltipState(options: UseRangeSliderTooltipStateOptions): {
|
|
11
|
+
visible: ComputedRef<boolean>;
|
|
12
|
+
alwaysVisible: ComputedRef<boolean>;
|
|
13
|
+
open: ComputedRef<boolean>;
|
|
14
|
+
startInteraction: (thumb: RangeSliderThumb, reason: RangeSliderTooltipInteractionReason) => void;
|
|
15
|
+
endInteraction: (thumb: RangeSliderThumb, reason: RangeSliderTooltipInteractionReason) => void;
|
|
16
|
+
transferInteraction: (from: RangeSliderThumb, to: RangeSliderThumb, reason: RangeSliderTooltipInteractionReason) => void;
|
|
17
|
+
onFocus: (thumb: RangeSliderThumb) => void;
|
|
18
|
+
onBlur: (thumb: RangeSliderThumb) => void;
|
|
19
|
+
onTrackMouseEnter: () => void;
|
|
20
|
+
onTrackMouseLeave: () => void;
|
|
21
|
+
onKeydown: (thumb: RangeSliderThumb, event: KeyboardEvent) => boolean;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { SliderProps } from './types';
|
|
2
|
+
import { SliderProps } from './types.js';
|
|
3
|
+
export { getSliderValuePercent, normalizeSliderBounds, normalizeSliderStep, normalizeSliderValue, } from './sliderCore.js';
|
|
3
4
|
type SliderStateProps = Readonly<SliderProps & {
|
|
4
5
|
min: number;
|
|
5
6
|
max: number;
|
|
@@ -7,15 +8,8 @@ type SliderStateProps = Readonly<SliderProps & {
|
|
|
7
8
|
tooltip: NonNullable<SliderProps['tooltip']>;
|
|
8
9
|
orientation: NonNullable<SliderProps['orientation']>;
|
|
9
10
|
}>;
|
|
10
|
-
export declare function normalizeSliderValue(value: number, min: number, max: number, step: number | 'any'): number;
|
|
11
|
-
export declare function normalizeSliderBounds(min: number, max: number): {
|
|
12
|
-
min: number;
|
|
13
|
-
max: number;
|
|
14
|
-
};
|
|
15
|
-
export declare function normalizeSliderStep(step: number | 'any'): number | "any";
|
|
16
|
-
export declare function getSliderValuePercent(value: number, min: number, max: number): number;
|
|
17
11
|
export declare function useSlider(props: SliderStateProps, emitUpdate: (value: number) => void): {
|
|
18
|
-
control: import('../../composables/useControlState').ControlState;
|
|
12
|
+
control: import('../../composables/useControlState.js').ControlState;
|
|
19
13
|
nativeMin: import('vue').ComputedRef<number>;
|
|
20
14
|
nativeMax: import('vue').ComputedRef<number>;
|
|
21
15
|
nativeStep: import('vue').ComputedRef<number | "any">;
|
|
@@ -35,16 +29,18 @@ export declare function useSlider(props: SliderStateProps, emitUpdate: (value: n
|
|
|
35
29
|
trackStyle: import('vue').ComputedRef<CSSProperties>;
|
|
36
30
|
tooltipVisible: import('vue').ComputedRef<boolean>;
|
|
37
31
|
tooltipOpen: import('vue').ComputedRef<boolean>;
|
|
38
|
-
tooltipPlacement: import('vue').ComputedRef<import('../tooltip').TooltipPlacement>;
|
|
32
|
+
tooltipPlacement: import('vue').ComputedRef<import('../tooltip/index.js').TooltipPlacement>;
|
|
39
33
|
tooltipId: import('vue').ComputedRef<string | undefined>;
|
|
40
|
-
tooltipColor: import('vue').ComputedRef<import('../../utils/componentColors').ComponentColorValue | undefined>;
|
|
41
|
-
tooltipOffset: import('vue').ComputedRef<import('../tooltip').TooltipOffset | undefined>;
|
|
34
|
+
tooltipColor: import('vue').ComputedRef<import('../../utils/componentColors.js').ComponentColorValue | undefined>;
|
|
35
|
+
tooltipOffset: import('vue').ComputedRef<import('../tooltip/index.js').TooltipOffset | undefined>;
|
|
42
36
|
tooltipOpenDelay: import('vue').ComputedRef<number>;
|
|
43
37
|
tooltipArrow: import('vue').ComputedRef<boolean>;
|
|
44
38
|
tooltipContent: import('vue').ComputedRef<string>;
|
|
45
39
|
onInput: (e: Event) => void;
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
onTooltipPointerDown: (event: PointerEvent) => void;
|
|
41
|
+
onTooltipMouseEnter: () => void;
|
|
42
|
+
onTooltipMouseLeave: () => void;
|
|
43
|
+
onTooltipFocusIn: () => void;
|
|
44
|
+
onTooltipFocusOut: () => void;
|
|
48
45
|
onTooltipKeydown: (event: KeyboardEvent) => void;
|
|
49
46
|
};
|
|
50
|
-
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Switch } from './switch';
|
|
2
|
-
export type { SwitchColor, SwitchProps, SwitchSize } from './types';
|
|
1
|
+
export { default as Switch } from './switch.js';
|
|
2
|
+
export type { SwitchColor, SwitchProps, SwitchSize } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SwitchProps } from './types';
|
|
1
|
+
import { SwitchProps } from './types.js';
|
|
2
2
|
declare const __VLS_export: (__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<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<SwitchProps & {
|
|
4
4
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentColorValue } from '../../utils/componentColors';
|
|
1
|
+
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
2
2
|
export type SwitchColor = ComponentColorValue;
|
|
3
3
|
export type SwitchSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export interface SwitchProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { SwitchProps } from './types';
|
|
2
|
+
import { SwitchProps } from './types.js';
|
|
3
3
|
export declare function useSwitch(props: Readonly<SwitchProps>, emitUpdate: (value: boolean) => void): {
|
|
4
|
-
control: import('../../composables/useControlState').ControlState;
|
|
4
|
+
control: import('../../composables/useControlState.js').ControlState;
|
|
5
5
|
rootClass: import('vue').ComputedRef<string[]>;
|
|
6
6
|
rootStyle: import('vue').ComputedRef<CSSProperties | undefined>;
|
|
7
7
|
onChange: (e: Event) => void;
|