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.
Files changed (159) hide show
  1. package/dist/color-input.css +19 -19
  2. package/dist/color-input.js +8 -3
  3. package/dist/color-picker.css +20 -20
  4. package/dist/color-picker.js +107 -27
  5. package/dist/components/accordion/accordion-item.d.ts +4 -4
  6. package/dist/components/accordion/accordion.d.ts +1 -1
  7. package/dist/components/accordion/index.d.ts +4 -4
  8. package/dist/components/accordion/types.d.ts +1 -1
  9. package/dist/components/accordion/useAccordion.d.ts +1 -1
  10. package/dist/components/alert/alert.d.ts +1 -1
  11. package/dist/components/alert/index.d.ts +3 -3
  12. package/dist/components/alert/types.d.ts +1 -1
  13. package/dist/components/alert/useAlertColor.d.ts +1 -1
  14. package/dist/components/aspect-ratio/aspect-ratio.d.ts +1 -1
  15. package/dist/components/aspect-ratio/index.d.ts +2 -2
  16. package/dist/components/avatar/avatar.d.ts +1 -1
  17. package/dist/components/avatar/index.d.ts +3 -3
  18. package/dist/components/avatar/types.d.ts +1 -1
  19. package/dist/components/avatar/useAvatarColor.d.ts +1 -1
  20. package/dist/components/badge/badge.d.ts +1 -1
  21. package/dist/components/badge/index.d.ts +3 -3
  22. package/dist/components/badge/types.d.ts +1 -1
  23. package/dist/components/badge/useBadgeColor.d.ts +1 -1
  24. package/dist/components/button/button.d.ts +1 -1
  25. package/dist/components/button/index.d.ts +2 -2
  26. package/dist/components/button/types.d.ts +1 -1
  27. package/dist/components/button/useButtonColor.d.ts +1 -1
  28. package/dist/components/button-group/button-group.d.ts +1 -1
  29. package/dist/components/button-group/index.d.ts +2 -2
  30. package/dist/components/button-link/button-link.d.ts +1 -1
  31. package/dist/components/button-link/index.d.ts +2 -2
  32. package/dist/components/button-link/types.d.ts +1 -1
  33. package/dist/components/card/card.d.ts +1 -1
  34. package/dist/components/card/index.d.ts +2 -2
  35. package/dist/components/checkbox/checkbox.d.ts +1 -1
  36. package/dist/components/checkbox/index.d.ts +2 -2
  37. package/dist/components/checkbox/types.d.ts +1 -1
  38. package/dist/components/checkbox/useCheckbox.d.ts +2 -2
  39. package/dist/components/collapse/collapse.d.ts +2 -2
  40. package/dist/components/collapse/index.d.ts +3 -3
  41. package/dist/components/collapse/useCollapse.d.ts +1 -1
  42. package/dist/components/color-input/color-input.d.ts +1 -1
  43. package/dist/components/color-input/index.d.ts +2 -2
  44. package/dist/components/color-input/types.d.ts +4 -3
  45. package/dist/components/color-input/useColorInput.d.ts +5 -5
  46. package/dist/components/color-input/useColorInputEyeDropper.d.ts +1 -1
  47. package/dist/components/color-input/useColorInputPopover.d.ts +2 -2
  48. package/dist/components/color-input/useColorInputValue.d.ts +1 -1
  49. package/dist/components/color-picker/color-picker-saturation.d.ts +1 -1
  50. package/dist/components/color-picker/color-picker-slider.d.ts +1 -1
  51. package/dist/components/color-picker/color-picker-utils.d.ts +1 -1
  52. package/dist/components/color-picker/color-picker.d.ts +1 -1
  53. package/dist/components/color-picker/index.d.ts +3 -3
  54. package/dist/components/color-picker/useColorPickerDrag.d.ts +7 -2
  55. package/dist/components/color-picker/useColorPickerSwatches.d.ts +1 -1
  56. package/dist/components/color-picker/useColorPickerValue.d.ts +2 -2
  57. package/dist/components/color-swatch/color-swatch.d.ts +1 -1
  58. package/dist/components/color-swatch/index.d.ts +2 -2
  59. package/dist/components/dropdown-menu/dropdown-menu-items.d.ts +15 -6
  60. package/dist/components/dropdown-menu/dropdown-menu-utils.d.ts +1 -1
  61. package/dist/components/dropdown-menu/dropdown-menu.d.ts +1 -1
  62. package/dist/components/dropdown-menu/index.d.ts +3 -3
  63. package/dist/components/dropdown-menu/useDropdownMenu.d.ts +11 -10
  64. package/dist/components/dropdown-menu/useDropdownMenuDisclosure.d.ts +2 -2
  65. package/dist/components/dropdown-menu/useDropdownMenuDom.d.ts +2 -2
  66. package/dist/components/dropdown-menu/useDropdownMenuHoverIntent.d.ts +2 -2
  67. package/dist/components/dropdown-menu/useDropdownMenuInteractions.d.ts +2 -2
  68. package/dist/components/dropdown-menu/useDropdownMenuNavigation.d.ts +3 -3
  69. package/dist/components/dropdown-menu/useDropdownMenuRenderItems.d.ts +12 -4
  70. package/dist/components/dropdown-menu/useDropdownSubmenus.d.ts +3 -3
  71. package/dist/components/field/field.d.ts +2 -2
  72. package/dist/components/field/index.d.ts +2 -2
  73. package/dist/components/field/useField.d.ts +1 -1
  74. package/dist/components/icon-button/icon-button.d.ts +1 -1
  75. package/dist/components/icon-button/index.d.ts +2 -2
  76. package/dist/components/icon-button/types.d.ts +1 -1
  77. package/dist/components/input/index.d.ts +2 -2
  78. package/dist/components/input/input.d.ts +1 -1
  79. package/dist/components/input/useInput.d.ts +2 -2
  80. package/dist/components/modal/index.d.ts +2 -2
  81. package/dist/components/modal/modal.d.ts +1 -1
  82. package/dist/components/modal/types.d.ts +1 -1
  83. package/dist/components/modal/useModal.d.ts +1 -1
  84. package/dist/components/number-input/index.d.ts +2 -2
  85. package/dist/components/number-input/number-input.d.ts +1 -1
  86. package/dist/components/number-input/types.d.ts +1 -1
  87. package/dist/components/number-input/useNumberInput.d.ts +2 -2
  88. package/dist/components/overlay/index.d.ts +2 -2
  89. package/dist/components/overlay/overlay.d.ts +1 -1
  90. package/dist/components/overlay/useOverlay.d.ts +1 -1
  91. package/dist/components/popover/index.d.ts +3 -3
  92. package/dist/components/popover/popover.d.ts +2 -2
  93. package/dist/components/popover/types.d.ts +1 -0
  94. package/dist/components/popover/usePopover.d.ts +2 -1
  95. package/dist/components/progress/index.d.ts +3 -3
  96. package/dist/components/progress/progress.d.ts +1 -1
  97. package/dist/components/progress/types.d.ts +1 -1
  98. package/dist/components/progress/useProgress.d.ts +2 -2
  99. package/dist/components/radio/index.d.ts +3 -3
  100. package/dist/components/radio/radio-group.d.ts +1 -1
  101. package/dist/components/radio/radio.d.ts +1 -1
  102. package/dist/components/radio/types.d.ts +1 -1
  103. package/dist/components/radio/useRadio.d.ts +2 -2
  104. package/dist/components/select/index.d.ts +2 -2
  105. package/dist/components/select/select.d.ts +1 -1
  106. package/dist/components/select/useSelect.d.ts +2 -2
  107. package/dist/components/slider/index.d.ts +4 -4
  108. package/dist/components/slider/range-slider-tooltip.d.ts +34 -0
  109. package/dist/components/slider/range-slider.d.ts +4 -12
  110. package/dist/components/slider/slider.d.ts +1 -1
  111. package/dist/components/slider/sliderCore.d.ts +35 -0
  112. package/dist/components/slider/types.d.ts +2 -5
  113. package/dist/components/slider/useRangeSlider.d.ts +5 -7
  114. package/dist/components/slider/useRangeSliderPointer.d.ts +19 -0
  115. package/dist/components/slider/useRangeSliderTooltipCollision.d.ts +31 -2
  116. package/dist/components/slider/useRangeSliderTooltipState.d.ts +23 -0
  117. package/dist/components/slider/useSlider.d.ts +11 -15
  118. package/dist/components/switch/index.d.ts +2 -2
  119. package/dist/components/switch/switch.d.ts +1 -1
  120. package/dist/components/switch/types.d.ts +1 -1
  121. package/dist/components/switch/useSwitch.d.ts +2 -2
  122. package/dist/components/tabs/index.d.ts +6 -6
  123. package/dist/components/tabs/tabs-content.d.ts +2 -2
  124. package/dist/components/tabs/tabs-list.d.ts +4 -4
  125. package/dist/components/tabs/tabs-trigger.d.ts +5 -5
  126. package/dist/components/tabs/tabs.d.ts +5 -5
  127. package/dist/components/tabs/useTabs.d.ts +1 -1
  128. package/dist/components/textarea/index.d.ts +2 -2
  129. package/dist/components/textarea/textarea.d.ts +1 -1
  130. package/dist/components/textarea/useTextarea.d.ts +2 -2
  131. package/dist/components/toast/defaults.d.ts +7 -0
  132. package/dist/components/toast/index.d.ts +7 -0
  133. package/dist/components/toast/index.js +2 -0
  134. package/dist/components/toast/toast-provider.d.ts +21 -0
  135. package/dist/components/toast/toast-viewport.d.ts +34 -0
  136. package/dist/components/toast/toast.d.ts +31 -0
  137. package/dist/components/toast/types.d.ts +106 -0
  138. package/dist/components/toast/useToast.d.ts +4 -0
  139. package/dist/components/toast/useToastColor.d.ts +3 -0
  140. package/dist/components/toast/useToastState.d.ts +2 -0
  141. package/dist/components/tooltip/index.d.ts +2 -2
  142. package/dist/components/tooltip/tooltip.d.ts +2 -2
  143. package/dist/components/tooltip/types.d.ts +1 -1
  144. package/dist/components/tooltip/useTooltip.d.ts +3 -1
  145. package/dist/dropdown-menu.js +160 -39
  146. package/dist/index.d.ts +31 -30
  147. package/dist/index.js +2 -1
  148. package/dist/popover.css +28 -28
  149. package/dist/popover.js +25 -14
  150. package/dist/rafScheduler.js +34 -0
  151. package/dist/slider.css +355 -228
  152. package/dist/slider.js +890 -862
  153. package/dist/textarea.js +8 -2
  154. package/dist/toast.css +232 -0
  155. package/dist/toast.js +679 -0
  156. package/dist/tooltip.js +17 -10
  157. package/dist/utils/componentColors.d.ts +60 -0
  158. package/package.json +17 -9
  159. package/dist/components/slider/useRangeSliderTooltipTransition.d.ts +0 -4
@@ -1,2 +1,2 @@
1
- export { default as Button } from './button';
2
- export type { ButtonColor, ButtonProps, ButtonRadius, ButtonSize, ButtonVariant } from './types';
1
+ export { default as Button } from './button.js';
2
+ export type { ButtonColor, ButtonProps, ButtonRadius, ButtonSize, ButtonVariant } from './types.js';
@@ -1,4 +1,4 @@
1
- import { ComponentColorValue } from '../../utils/componentColors';
1
+ import { ComponentColorValue } from '../../utils/componentColors.js';
2
2
  export type ButtonColor = ComponentColorValue;
3
3
  export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
4
  export type ButtonRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -1,3 +1,3 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { ButtonColor, ButtonVariant } from './types';
2
+ import { ButtonColor, ButtonVariant } from './types.js';
3
3
  export declare function getButtonColorStyle(color: ButtonColor | undefined, variant: ButtonVariant | undefined, autoContrast: boolean | undefined): CSSProperties | undefined;
@@ -1,4 +1,4 @@
1
- import { ButtonGroupProps } from './types';
1
+ import { ButtonGroupProps } 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<ButtonGroupProps> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
@@ -1,2 +1,2 @@
1
- export { default as ButtonGroup } from './button-group';
2
- export type { ButtonGroupOrientation, ButtonGroupProps } from './types';
1
+ export { default as ButtonGroup } from './button-group.js';
2
+ export type { ButtonGroupOrientation, ButtonGroupProps } from './types.js';
@@ -1,4 +1,4 @@
1
- import { ButtonLinkProps } from './types';
1
+ import { ButtonLinkProps } 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<ButtonLinkProps> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
@@ -1,2 +1,2 @@
1
- export { default as ButtonLink } from './button-link';
2
- export type { ButtonLinkColor, ButtonLinkProps, ButtonLinkRadius, ButtonLinkSize, ButtonLinkTarget, ButtonLinkVariant, } from './types';
1
+ export { default as ButtonLink } from './button-link.js';
2
+ export type { ButtonLinkColor, ButtonLinkProps, ButtonLinkRadius, ButtonLinkSize, ButtonLinkTarget, ButtonLinkVariant, } from './types.js';
@@ -1,4 +1,4 @@
1
- import { ButtonColor, ButtonRadius, ButtonSize, ButtonVariant } from '../button/types';
1
+ import { ButtonColor, ButtonRadius, ButtonSize, ButtonVariant } from '../button/types.js';
2
2
  export type ButtonLinkColor = ButtonColor;
3
3
  export type ButtonLinkSize = ButtonSize;
4
4
  export type ButtonLinkRadius = ButtonRadius;
@@ -1,4 +1,4 @@
1
- import { CardProps } from './types';
1
+ import { CardProps } 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<CardProps> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
@@ -1,2 +1,2 @@
1
- export { default as Card } from './card';
2
- export type { CardLayer, CardPadding, CardProps, CardRadius } from './types';
1
+ export { default as Card } from './card.js';
2
+ export type { CardLayer, CardPadding, CardProps, CardRadius } from './types.js';
@@ -1,4 +1,4 @@
1
- import { CheckboxProps } from './types';
1
+ import { CheckboxProps } 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<CheckboxProps & {
4
4
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -1,2 +1,2 @@
1
- export { default as Checkbox } from './checkbox';
2
- export type { CheckboxColor, CheckboxProps, CheckboxRadius, CheckboxSize, CheckboxVariant, } from './types';
1
+ export { default as Checkbox } from './checkbox.js';
2
+ export type { CheckboxColor, CheckboxProps, CheckboxRadius, CheckboxSize, CheckboxVariant, } from './types.js';
@@ -1,4 +1,4 @@
1
- import { ComponentColorValue } from '../../utils/componentColors';
1
+ import { ComponentColorValue } from '../../utils/componentColors.js';
2
2
  export type CheckboxColor = ComponentColorValue;
3
3
  export type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
4
  export type CheckboxRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { CheckboxProps } from './types';
2
+ import { CheckboxProps } from './types.js';
3
3
  export declare function useCheckbox(props: Readonly<CheckboxProps>, 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;
@@ -1,4 +1,4 @@
1
- import { CollapseProps } from './types';
1
+ import { CollapseProps } 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<CollapseProps & {
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
  trigger?: (props: {
12
- triggerProps: import('./types').CollapseTriggerProps;
12
+ triggerProps: import('./types.js').CollapseTriggerProps;
13
13
  isOpen: boolean;
14
14
  open: () => void;
15
15
  close: () => void;
@@ -1,3 +1,3 @@
1
- export { default as Collapse } from './collapse';
2
- export { useCollapse } from './useCollapse';
3
- export type { CollapseContentProps, CollapseContentRole, CollapseOption, CollapseProps, CollapseRootProps, CollapseSlotProps, CollapseState, CollapseTriggerProps, CollapseTriggerSlotProps, UseCollapseOptions, UseCollapseReturn, } from './types';
1
+ export { default as Collapse } from './collapse.js';
2
+ export { useCollapse } from './useCollapse.js';
3
+ export type { CollapseContentProps, CollapseContentRole, CollapseOption, CollapseProps, CollapseRootProps, CollapseSlotProps, CollapseState, CollapseTriggerProps, CollapseTriggerSlotProps, UseCollapseOptions, UseCollapseReturn, } from './types.js';
@@ -1,2 +1,2 @@
1
- import { UseCollapseOptions, UseCollapseReturn } from './types';
1
+ import { UseCollapseOptions, UseCollapseReturn } from './types.js';
2
2
  export declare function useCollapse(options?: Readonly<UseCollapseOptions>, emitOpenChange?: (open: boolean) => void): UseCollapseReturn;
@@ -1,4 +1,4 @@
1
- import { ColorInputProps } from './types';
1
+ import { ColorInputProps } 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<ColorInputProps & {
4
4
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
@@ -1,2 +1,2 @@
1
- export { default as ColorInput } from './color-input';
2
- export type { ColorInputProps } from './types';
1
+ export { default as ColorInput } from './color-input.js';
2
+ export type { ColorInputProps } from './types.js';
@@ -1,7 +1,7 @@
1
1
  import { InputHTMLAttributes } from 'vue';
2
- import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types';
3
- import { InputRadius, InputSize } from '../input/types';
4
- import { PopoverPlacement } from '../popover/types';
2
+ import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types.js';
3
+ import { InputRadius, InputSize } from '../input/types.js';
4
+ import { PopoverPlacement } from '../popover/types.js';
5
5
  export interface ColorInputProps {
6
6
  id?: string;
7
7
  name?: string;
@@ -27,6 +27,7 @@ export interface ColorInputProps {
27
27
  swatchesPerRow?: number;
28
28
  placement?: PopoverPlacement;
29
29
  open?: boolean;
30
+ keepMounted?: boolean;
30
31
  popoverId?: string;
31
32
  pickerAriaLabel?: string;
32
33
  withEyeDropper?: boolean;
@@ -1,5 +1,5 @@
1
- import { ColorPickerValue } from '../color-picker/types';
2
- import { ColorInputProps } from './types';
1
+ import { ColorPickerValue } from '../color-picker/types.js';
2
+ import { ColorInputProps } from './types.js';
3
3
  interface UseColorInputEmitters {
4
4
  modelValue: (value: ColorPickerValue) => void;
5
5
  open: (value: boolean) => void;
@@ -12,15 +12,15 @@ export declare function useColorInput(props: Readonly<ColorInputProps>, emit: Us
12
12
  isPickingColor: import('vue').Ref<boolean, boolean>;
13
13
  pickScreenColor: (closePicker: () => void) => Promise<void>;
14
14
  getInputTriggerAttrs: (slotProps: unknown) => import('vue').InputHTMLAttributes;
15
- rememberClose: (slotProps: import('../popover').PopoverSlotProps | import('../popover').PopoverContentSlotProps) => void;
16
- onPickerKeydown: (event: KeyboardEvent, popover: import('../popover').PopoverContentSlotProps) => void;
15
+ rememberClose: (slotProps: import('../popover/index.js').PopoverSlotProps | import('../popover/index.js').PopoverContentSlotProps) => void;
16
+ onPickerKeydown: (event: KeyboardEvent, popover: import('../popover/index.js').PopoverContentSlotProps) => void;
17
17
  onFocusOut: (event: FocusEvent) => void;
18
18
  previewColor: import('vue').ComputedRef<string | undefined>;
19
19
  hasValidSwatches: import('vue').ComputedRef<boolean>;
20
20
  hasInvalidColor: import('vue').ComputedRef<boolean | undefined>;
21
21
  isInvalid: import('vue').ComputedRef<boolean | undefined>;
22
22
  colorValidationMessage: import('vue').ComputedRef<string | undefined>;
23
- control: import('../../composables/useControlState').ControlState;
23
+ control: import('../../composables/useControlState.js').ControlState;
24
24
  rootClass: import('vue').ComputedRef<string[]>;
25
25
  popoverDisabled: import('vue').ComputedRef<boolean>;
26
26
  };
@@ -1,4 +1,4 @@
1
- import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types';
1
+ import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types.js';
2
2
  interface UseColorInputEyeDropperOptions {
3
3
  enabled: () => boolean;
4
4
  disabled: () => boolean;
@@ -1,6 +1,6 @@
1
1
  import { InputHTMLAttributes } from 'vue';
2
- import { PopoverContentSlotProps, PopoverSlotProps } from '../popover/types';
3
- import { ColorInputProps } from './types';
2
+ import { PopoverContentSlotProps, PopoverSlotProps } from '../popover/types.js';
3
+ import { ColorInputProps } from './types.js';
4
4
  declare function onPickerKeydown(event: KeyboardEvent, popover: PopoverContentSlotProps): void;
5
5
  export declare function useColorInputPopover(getInputAttrs: () => ColorInputProps['inputAttrs']): {
6
6
  getInputTriggerAttrs: (slotProps: unknown) => InputHTMLAttributes;
@@ -1,4 +1,4 @@
1
- import { ColorInputProps } from './types';
1
+ import { ColorInputProps } from './types.js';
2
2
  export declare function useColorInputValue(props: Readonly<ColorInputProps>, isControlInvalid: () => boolean): {
3
3
  previewColor: import('vue').ComputedRef<string | undefined>;
4
4
  hasValidSwatches: import('vue').ComputedRef<boolean>;
@@ -1,4 +1,4 @@
1
- import { ColorPickerSaturationProps, ColorPickerSelection } from './types';
1
+ import { ColorPickerSaturationProps, ColorPickerSelection } 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<ColorPickerSaturationProps & {
4
4
  "onUpdate:modelValue"?: ((value: ColorPickerSelection) => any) | undefined;
@@ -1,4 +1,4 @@
1
- import { ColorPickerSliderProps } from './types';
1
+ import { ColorPickerSliderProps } 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<ColorPickerSliderProps & {
4
4
  "onUpdate:value"?: ((value: number) => any) | undefined;
@@ -1,4 +1,4 @@
1
- import { ColorPickerFormat } from './types';
1
+ import { ColorPickerFormat } from './types.js';
2
2
  export declare const DEFAULT_HUE = 0;
3
3
  export declare const HUE_MAX = 359;
4
4
  export declare const KEYBOARD_STEP = 1;
@@ -1,4 +1,4 @@
1
- import { ColorPickerProps } from './types';
1
+ import { ColorPickerProps } 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<ColorPickerProps & {
4
4
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
@@ -1,3 +1,3 @@
1
- export { default as ColorPicker } from './color-picker';
2
- export { colorPickerFormats, colorPickerSizes } from './types';
3
- export type { ColorPickerFormat, ColorPickerProps, ColorPickerSelection, ColorPickerSize, ColorPickerValue, } from './types';
1
+ export { default as ColorPicker } from './color-picker.js';
2
+ export { colorPickerFormats, colorPickerSizes } from './types.js';
3
+ export type { ColorPickerFormat, ColorPickerProps, ColorPickerSelection, ColorPickerSize, ColorPickerValue, } from './types.js';
@@ -1,11 +1,16 @@
1
1
  import { Ref } from 'vue';
2
+ export interface ColorPickerPointerCoordinates {
3
+ clientX: number;
4
+ clientY: number;
5
+ }
2
6
  interface UseColorPickerDragOptions {
3
7
  target: Ref<HTMLElement | null>;
4
8
  focusTarget?: Ref<HTMLElement | null>;
5
9
  readonly: () => boolean;
6
- updateFromPointer: (event: PointerEvent, target: HTMLElement) => void;
10
+ isGeometryValid: (rect: DOMRect) => boolean;
11
+ updateFromPointer: (pointer: ColorPickerPointerCoordinates, rect: DOMRect) => void;
7
12
  }
8
- export declare function useColorPickerDrag({ target, focusTarget, readonly, updateFromPointer, }: UseColorPickerDragOptions): {
13
+ export declare function useColorPickerDrag({ target, focusTarget, readonly, isGeometryValid, updateFromPointer, }: UseColorPickerDragOptions): {
9
14
  onPointerDown: (event: PointerEvent) => void;
10
15
  };
11
16
  export {};
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { ColorPickerProps } from './types';
2
+ import { ColorPickerProps } from './types.js';
3
3
  type ColorPickerSwatchesProps = Readonly<Pick<ColorPickerProps, 'swatches' | 'swatchesPerRow'>>;
4
4
  interface UseColorPickerSwatchesOptions {
5
5
  isSelected: (swatch: string) => boolean;
@@ -1,5 +1,5 @@
1
- import { ColorPickerHsvColor } from './color-picker-utils';
2
- import { ColorPickerProps, ColorPickerSelection, ColorPickerValue } from './types';
1
+ import { ColorPickerHsvColor } from './color-picker-utils.js';
2
+ import { ColorPickerProps, ColorPickerSelection, ColorPickerValue } from './types.js';
3
3
  type ColorPickerValueProps = Readonly<Pick<ColorPickerProps, 'modelValue' | 'format' | 'readonly'>>;
4
4
  export declare function useColorPickerValue(props: ColorPickerValueProps, emitUpdate: (value: ColorPickerValue) => void): {
5
5
  selectedColor: import('vue').ComputedRef<ColorPickerHsvColor>;
@@ -1,4 +1,4 @@
1
- import { ColorSwatchProps } from './types';
1
+ import { ColorSwatchProps } 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<ColorSwatchProps> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
@@ -1,2 +1,2 @@
1
- export { default as ColorSwatch } from './color-swatch';
2
- export type { ColorSwatchProps, ColorSwatchSize } from './types';
1
+ export { default as ColorSwatch } from './color-swatch.js';
2
+ export type { ColorSwatchProps, ColorSwatchSize } from './types.js';
@@ -1,15 +1,24 @@
1
- import { PropType } from 'vue';
2
- import { DropdownMenuRenderedItem } from './types';
1
+ import { PropType, VNode } from 'vue';
2
+ import { DropdownMenuItem } from './types.js';
3
+ import { DropdownMenuRenderContext } from './useDropdownMenuRenderItems.js';
3
4
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ context: {
6
+ readonly type: PropType<DropdownMenuRenderContext>;
7
+ readonly required: true;
8
+ };
4
9
  items: {
5
- type: PropType<DropdownMenuRenderedItem[]>;
10
+ type: PropType<DropdownMenuItem[]>;
6
11
  required: true;
7
12
  };
8
- }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
13
+ }>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
9
14
  [key: string]: any;
10
- }>[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ context: {
17
+ readonly type: PropType<DropdownMenuRenderContext>;
18
+ readonly required: true;
19
+ };
11
20
  items: {
12
- type: PropType<DropdownMenuRenderedItem[]>;
21
+ type: PropType<DropdownMenuItem[]>;
13
22
  required: true;
14
23
  };
15
24
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,4 @@
1
- import { DropdownMenuFocusTarget, DropdownMenuItem, DropdownMenuItemPath, DropdownMenuOpenOptions, DropdownMenuPlacement } from './types';
1
+ import { DropdownMenuFocusTarget, DropdownMenuItem, DropdownMenuItemPath, DropdownMenuOpenOptions, DropdownMenuPlacement } from './types.js';
2
2
  export declare const DEFAULT_PLACEMENT: DropdownMenuPlacement;
3
3
  export declare const DEFAULT_FOCUS_TARGET: DropdownMenuFocusTarget;
4
4
  export type ItemPath = DropdownMenuItemPath;
@@ -1,4 +1,4 @@
1
- import { DropdownMenuItem, DropdownMenuItemSlotProps, DropdownMenuProps, DropdownMenuSlotProps } from './types';
1
+ import { DropdownMenuItem, DropdownMenuItemSlotProps, DropdownMenuProps, DropdownMenuSlotProps } 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<DropdownMenuProps & {
4
4
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
@@ -1,3 +1,3 @@
1
- export { default as DropdownMenu } from './dropdown-menu';
2
- export { useDropdownMenu } from './useDropdownMenu';
3
- export type { DropdownMenuCloseOptions, DropdownMenuContentProps, DropdownMenuFocusTarget, DropdownMenuItem, DropdownMenuItemPath, DropdownMenuItemProps, DropdownMenuItemSlotProps, DropdownMenuItemValue, DropdownMenuOpenOptions, DropdownMenuPlacement, DropdownMenuProps, DropdownMenuRenderedItem, DropdownMenuSlotProps, DropdownMenuSubmenuProps, DropdownMenuTriggerProps, } from './types';
1
+ export { default as DropdownMenu } from './dropdown-menu.js';
2
+ export { useDropdownMenu } from './useDropdownMenu.js';
3
+ export type { DropdownMenuCloseOptions, DropdownMenuContentProps, DropdownMenuFocusTarget, DropdownMenuItem, DropdownMenuItemPath, DropdownMenuItemProps, DropdownMenuItemSlotProps, DropdownMenuItemValue, DropdownMenuOpenOptions, DropdownMenuPlacement, DropdownMenuProps, DropdownMenuRenderedItem, DropdownMenuSlotProps, DropdownMenuSubmenuProps, DropdownMenuTriggerProps, } from './types.js';
@@ -1,4 +1,4 @@
1
- import { DropdownMenuContentProps, DropdownMenuItem, DropdownMenuProps, DropdownMenuSlotProps, DropdownMenuTriggerProps } from './types';
1
+ import { DropdownMenuContentProps, DropdownMenuItem, DropdownMenuProps, DropdownMenuSlotProps, DropdownMenuTriggerProps } from './types.js';
2
2
  export declare function useDropdownMenu(props: Readonly<DropdownMenuProps>, emit?: {
3
3
  openChange?: (open: boolean) => void;
4
4
  select?: (item: DropdownMenuItem) => void;
@@ -9,24 +9,25 @@ export declare function useDropdownMenu(props: Readonly<DropdownMenuProps>, emit
9
9
  isVisible: import('vue').ComputedRef<boolean>;
10
10
  isEmpty: import('vue').ComputedRef<boolean>;
11
11
  visibleItems: import('vue').ComputedRef<DropdownMenuItem[]>;
12
- renderedItems: import('vue').ComputedRef<import('./types').DropdownMenuRenderedItem[]>;
12
+ renderedItems: import('vue').ComputedRef<import('./types.js').DropdownMenuRenderedItem[]>;
13
+ renderContext: import('./useDropdownMenuRenderItems.js').DropdownMenuRenderContext;
13
14
  focusedIndex: import('vue').ComputedRef<number>;
14
- focusedPath: import('vue').Ref<number[], number[] | import('./types').DropdownMenuItemPath>;
15
+ focusedPath: import('vue').Ref<number[], number[] | import('./types.js').DropdownMenuItemPath>;
15
16
  activeDescendantId: import('vue').ComputedRef<string | undefined>;
16
17
  rootClass: import('vue').ComputedRef<string[]>;
17
18
  contentClass: import('vue').ComputedRef<string[]>;
18
19
  triggerProps: import('vue').ComputedRef<DropdownMenuTriggerProps>;
19
20
  contentProps: import('vue').ComputedRef<DropdownMenuContentProps>;
20
21
  slotProps: import('vue').ComputedRef<DropdownMenuSlotProps>;
21
- open: (options?: import('./types').DropdownMenuOpenOptions | import('./types').DropdownMenuFocusTarget) => void;
22
- close: (options?: import('./types').DropdownMenuCloseOptions) => void;
22
+ open: (options?: import('./types.js').DropdownMenuOpenOptions | import('./types.js').DropdownMenuFocusTarget) => void;
23
+ close: (options?: import('./types.js').DropdownMenuCloseOptions) => void;
23
24
  toggle: () => void;
24
25
  selectItem: (item: DropdownMenuItem) => void;
25
- openSubmenu: (path: import('./dropdown-menu-utils').ItemPath, focus?: import('./dropdown-menu-utils').SubmenuFocusTarget, point?: import('./dropdown-menu-utils').PointerPoint) => boolean;
26
- closeSubmenu: (path: import('./dropdown-menu-utils').ItemPath) => boolean;
27
- onItemMouseenter: (item: DropdownMenuItem, indexOrPath: number | import('./dropdown-menu-utils').ItemPath, event?: MouseEvent) => void;
26
+ openSubmenu: (path: import('./dropdown-menu-utils.js').ItemPath, focus?: import('./dropdown-menu-utils.js').SubmenuFocusTarget, point?: import('./dropdown-menu-utils.js').PointerPoint) => boolean;
27
+ closeSubmenu: (path: import('./dropdown-menu-utils.js').ItemPath) => boolean;
28
+ onItemMouseenter: (item: DropdownMenuItem, indexOrPath: number | import('./dropdown-menu-utils.js').ItemPath, event?: MouseEvent) => void;
28
29
  onTriggerKeydown: (event: KeyboardEvent) => void;
29
30
  onMenuKeydown: (event: KeyboardEvent) => void;
30
- getItemProps: (item: DropdownMenuItem, indexOrPath: number | import('./dropdown-menu-utils').ItemPath, focused?: boolean, disabled?: boolean) => import('./types').DropdownMenuItemProps;
31
- getItemSlotProps: (item: DropdownMenuItem, indexOrPath: number | import('./dropdown-menu-utils').ItemPath, focused?: boolean, disabled?: boolean) => import('./types').DropdownMenuItemSlotProps;
31
+ getItemProps: (item: DropdownMenuItem, indexOrPath: number | import('./dropdown-menu-utils.js').ItemPath, focused?: boolean, disabled?: boolean, submenuOpen?: boolean) => import('./types.js').DropdownMenuItemProps;
32
+ getItemSlotProps: (item: DropdownMenuItem, indexOrPath: number | import('./dropdown-menu-utils.js').ItemPath, focused?: boolean, disabled?: boolean, submenuOpen?: boolean) => import('./types.js').DropdownMenuItemSlotProps;
32
33
  };
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { DropdownMenuCloseOptions, DropdownMenuFocusTarget, DropdownMenuItem, DropdownMenuOpenOptions, DropdownMenuProps } from './types';
3
- import { ItemPath } from './dropdown-menu-utils';
2
+ import { DropdownMenuCloseOptions, DropdownMenuFocusTarget, DropdownMenuItem, DropdownMenuOpenOptions, DropdownMenuProps } from './types.js';
3
+ import { ItemPath } from './dropdown-menu-utils.js';
4
4
  type BooleanSource = Readonly<Ref<boolean>>;
5
5
  type UseDropdownMenuDisclosureOptions = {
6
6
  props: Readonly<DropdownMenuProps>;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { DropdownMenuPlacement } from './types';
3
- import { ItemPath } from './dropdown-menu-utils';
2
+ import { DropdownMenuPlacement } from './types.js';
3
+ import { ItemPath } from './dropdown-menu-utils.js';
4
4
  type StringSource = {
5
5
  readonly value: string;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { DropdownMenuItem } from './types';
3
- import { ItemPath, PointerPoint } from './dropdown-menu-utils';
2
+ import { DropdownMenuItem } from './types.js';
3
+ import { ItemPath, PointerPoint } from './dropdown-menu-utils.js';
4
4
  export type SafeTriangle = [PointerPoint, PointerPoint, PointerPoint];
5
5
  type GetSafeTriangleOptions = {
6
6
  itemRect: DOMRect | null;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { DropdownMenuCloseOptions, DropdownMenuFocusTarget, DropdownMenuItem, DropdownMenuOpenOptions, DropdownMenuProps } from './types';
3
- import { ItemPath, PointerPoint, SubmenuFocusTarget } from './dropdown-menu-utils';
2
+ import { DropdownMenuCloseOptions, DropdownMenuFocusTarget, DropdownMenuItem, DropdownMenuOpenOptions, DropdownMenuProps } from './types.js';
3
+ import { ItemPath, PointerPoint, SubmenuFocusTarget } from './dropdown-menu-utils.js';
4
4
  type BooleanSource = Readonly<Ref<boolean>>;
5
5
  type DisclosureControls = {
6
6
  open: (options?: DropdownMenuOpenOptions | DropdownMenuFocusTarget) => void;
@@ -1,10 +1,10 @@
1
- import { DropdownMenuFocusTarget, DropdownMenuItem } from './types';
2
- import { ItemPath } from './dropdown-menu-utils';
1
+ import { DropdownMenuFocusTarget, DropdownMenuItem } from './types.js';
2
+ import { ItemPath } from './dropdown-menu-utils.js';
3
3
  type DropdownMenuItemsSource = {
4
4
  readonly value: DropdownMenuItem[];
5
5
  };
6
6
  export declare function useDropdownMenuNavigation(items: DropdownMenuItemsSource): {
7
- focusedPath: import('vue').Ref<number[], number[] | import('./types').DropdownMenuItemPath>;
7
+ focusedPath: import('vue').Ref<number[], number[] | import('./types.js').DropdownMenuItemPath>;
8
8
  focusedIndex: import('vue').ComputedRef<number>;
9
9
  getItemsAtPath: (path: ItemPath) => DropdownMenuItem[];
10
10
  getItemAtPath: (path: ItemPath) => DropdownMenuItem | undefined;
@@ -1,5 +1,5 @@
1
- import { DropdownMenuCloseOptions, DropdownMenuFocusTarget, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuItemSlotProps, DropdownMenuRenderedItem } from './types';
2
- import { ItemPath } from './dropdown-menu-utils';
1
+ import { DropdownMenuCloseOptions, DropdownMenuFocusTarget, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuItemSlotProps, DropdownMenuRenderedItem, DropdownMenuSubmenuProps } from './types.js';
2
+ import { ItemPath } from './dropdown-menu-utils.js';
3
3
  type DropdownMenuItemsSource = {
4
4
  readonly value: DropdownMenuItem[];
5
5
  };
@@ -17,9 +17,17 @@ type UseDropdownMenuRenderItemsOptions = {
17
17
  closeSubmenu: (path: ItemPath) => void;
18
18
  close: (options?: DropdownMenuCloseOptions) => void;
19
19
  };
20
+ export interface DropdownMenuRenderContext {
21
+ isItemFocused: (indexOrPath: number | ItemPath) => boolean;
22
+ isSubmenuOpen: (path: ItemPath) => boolean;
23
+ getItemProps: (item: DropdownMenuItem, indexOrPath: number | ItemPath, focused?: boolean, disabled?: boolean, submenuOpen?: boolean) => DropdownMenuItemProps;
24
+ getSubmenuProps: (item: DropdownMenuItem, path: ItemPath, submenuOpen?: boolean) => DropdownMenuSubmenuProps;
25
+ getItemSlotProps: (item: DropdownMenuItem, indexOrPath: number | ItemPath, focused?: boolean, disabled?: boolean, submenuOpen?: boolean) => DropdownMenuItemSlotProps;
26
+ }
20
27
  export declare function useDropdownMenuRenderItems({ items, getItemId, getSubmenuId, getMenuActiveDescendant, isItemFocused, isSubmenuOpen, activateItem, focusHoveredItem, selectItem, openSubmenu, closeSubmenu, close, }: UseDropdownMenuRenderItemsOptions): {
21
28
  renderedItems: import('vue').ComputedRef<DropdownMenuRenderedItem[]>;
22
- getItemProps: (item: DropdownMenuItem, indexOrPath: number | ItemPath, focused?: boolean, disabled?: boolean) => DropdownMenuItemProps;
23
- getItemSlotProps: (item: DropdownMenuItem, indexOrPath: number | ItemPath, focused?: boolean, disabled?: boolean) => DropdownMenuItemSlotProps;
29
+ renderContext: DropdownMenuRenderContext;
30
+ getItemProps: (item: DropdownMenuItem, indexOrPath: number | ItemPath, focused?: boolean, disabled?: boolean, submenuOpen?: boolean) => DropdownMenuItemProps;
31
+ getItemSlotProps: (item: DropdownMenuItem, indexOrPath: number | ItemPath, focused?: boolean, disabled?: boolean, submenuOpen?: boolean) => DropdownMenuItemSlotProps;
24
32
  };
25
33
  export {};
@@ -1,13 +1,13 @@
1
1
  import { Ref } from 'vue';
2
- import { DropdownMenuItem } from './types';
3
- import { ItemPath, SubmenuFocusTarget } from './dropdown-menu-utils';
2
+ import { DropdownMenuItem } from './types.js';
3
+ import { ItemPath, SubmenuFocusTarget } from './dropdown-menu-utils.js';
4
4
  type UseDropdownSubmenusOptions = {
5
5
  focusedPath: Ref<ItemPath>;
6
6
  getItemAtPath: (path: ItemPath) => DropdownMenuItem | undefined;
7
7
  focusItem: (target: Exclude<SubmenuFocusTarget, false>, menuPath?: ItemPath) => boolean;
8
8
  };
9
9
  export declare function useDropdownSubmenus({ focusedPath, getItemAtPath, focusItem, }: UseDropdownSubmenusOptions): {
10
- openSubmenuPath: Ref<number[], number[] | import('./types').DropdownMenuItemPath>;
10
+ openSubmenuPath: Ref<number[], number[] | import('./types.js').DropdownMenuItemPath>;
11
11
  resetSubmenus: () => void;
12
12
  isSubmenuOpen: (path: ItemPath) => boolean;
13
13
  closeSubmenusAfter: (menuPath: ItemPath) => void;
@@ -1,4 +1,4 @@
1
- import { FieldProps } from './types';
1
+ import { FieldProps } 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<FieldProps> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
@@ -15,7 +15,7 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
15
15
  invalid: true | undefined;
16
16
  labelledby: string | undefined;
17
17
  describedby: string | undefined;
18
- controlProps: import('./types').FieldControlProps;
18
+ controlProps: import('./types.js').FieldControlProps;
19
19
  }) => any;
20
20
  } & {
21
21
  description?: (props: {}) => any;
@@ -1,2 +1,2 @@
1
- export { default as Field } from './field';
2
- export type { FieldControlProps, FieldProps, FieldSlotProps } from './types';
1
+ export { default as Field } from './field.js';
2
+ export type { FieldControlProps, FieldProps, FieldSlotProps } from './types.js';
@@ -1,4 +1,4 @@
1
- import { FieldControlProps, FieldProps } from './types';
1
+ import { FieldControlProps, FieldProps } from './types.js';
2
2
  export declare function useField(props: Readonly<FieldProps>): {
3
3
  controlId: import('vue').ComputedRef<string>;
4
4
  labelId: import('vue').ComputedRef<string>;
@@ -1,4 +1,4 @@
1
- import { IconButtonProps } from './types';
1
+ import { IconButtonProps } 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<IconButtonProps> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
@@ -1,2 +1,2 @@
1
- export { default as IconButton } from './icon-button';
2
- export type { IconButtonColor, IconButtonProps, IconButtonRadius, IconButtonSize, IconButtonVariant, } from './types';
1
+ export { default as IconButton } from './icon-button.js';
2
+ export type { IconButtonColor, IconButtonProps, IconButtonRadius, IconButtonSize, IconButtonVariant, } from './types.js';
@@ -1,4 +1,4 @@
1
- import { ButtonColor, ButtonRadius, ButtonSize, ButtonVariant } from '../button/types';
1
+ import { ButtonColor, ButtonRadius, ButtonSize, ButtonVariant } from '../button/types.js';
2
2
  export type IconButtonColor = ButtonColor;
3
3
  export type IconButtonSize = ButtonSize;
4
4
  export type IconButtonRadius = ButtonRadius;
@@ -1,2 +1,2 @@
1
- export { default as Input } from './input';
2
- export type { InputProps, InputRadius, InputSize } from './types';
1
+ export { default as Input } from './input.js';
2
+ export type { InputProps, InputRadius, InputSize } from './types.js';
@@ -1,4 +1,4 @@
1
- import { InputProps } from './types';
1
+ import { InputProps } 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<InputProps & {
4
4
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
@@ -1,7 +1,7 @@
1
- import { InputProps } from './types';
1
+ import { InputProps } from './types.js';
2
2
  export declare function useInput(props: Readonly<InputProps>, emitUpdate: (value: string) => void): {
3
3
  inputRef: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
4
- control: import('../../composables/useControlState').ControlState;
4
+ control: import('../../composables/useControlState.js').ControlState;
5
5
  rootClass: import('vue').ComputedRef<string[]>;
6
6
  onInput: (e: Event) => void;
7
7
  focusInput: (e: MouseEvent) => void;