ropav 0.0.9 → 0.0.11

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 (289) hide show
  1. package/README.md +6 -0
  2. package/dist/accordion.css +115 -111
  3. package/dist/accordion.js +60 -16
  4. package/dist/alert.css +110 -108
  5. package/dist/alert.js +48 -26
  6. package/dist/aspect-ratio.css +17 -15
  7. package/dist/aspect-ratio.js +20 -6
  8. package/dist/avatar.css +98 -96
  9. package/dist/avatar.js +27 -16
  10. package/dist/badge.css +95 -93
  11. package/dist/badge.js +29 -16
  12. package/dist/base.css +672 -671
  13. package/dist/button-group.css +39 -37
  14. package/dist/button-group.js +23 -12
  15. package/dist/button-link.css +160 -158
  16. package/dist/button-link.js +43 -24
  17. package/dist/button.css +160 -158
  18. package/dist/button.js +37 -19
  19. package/dist/card.css +109 -107
  20. package/dist/card.js +42 -17
  21. package/dist/checkbox.css +139 -137
  22. package/dist/checkbox.js +79 -28
  23. package/dist/collapse.css +29 -27
  24. package/dist/collapse.js +44 -10
  25. package/dist/color-input.css +137 -107
  26. package/dist/color-input.js +91 -17
  27. package/dist/color-picker.css +309 -303
  28. package/dist/color-picker.js +250 -77
  29. package/dist/color-picker2.js +9 -1
  30. package/dist/color-swatch.css +48 -46
  31. package/dist/color-swatch.js +15 -11
  32. package/dist/color-swatch2.js +4 -0
  33. package/dist/components/accordion/accordion-item.d.ts +16 -4
  34. package/dist/components/accordion/accordion.d.ts +1 -1
  35. package/dist/components/accordion/index.d.ts +5 -4
  36. package/dist/components/accordion/index.js +2 -2
  37. package/dist/components/accordion/types.d.ts +10 -5
  38. package/dist/components/accordion/useAccordion.d.ts +1 -1
  39. package/dist/components/alert/alert.d.ts +3 -3
  40. package/dist/components/alert/index.d.ts +3 -3
  41. package/dist/components/alert/index.js +2 -2
  42. package/dist/components/alert/types.d.ts +5 -2
  43. package/dist/components/alert/useAlertColor.d.ts +1 -1
  44. package/dist/components/aspect-ratio/aspect-ratio.d.ts +1 -1
  45. package/dist/components/aspect-ratio/index.d.ts +3 -2
  46. package/dist/components/aspect-ratio/index.js +2 -2
  47. package/dist/components/aspect-ratio/types.d.ts +4 -1
  48. package/dist/components/avatar/avatar.d.ts +1 -1
  49. package/dist/components/avatar/index.d.ts +3 -3
  50. package/dist/components/avatar/index.js +2 -2
  51. package/dist/components/avatar/types.d.ts +5 -2
  52. package/dist/components/avatar/useAvatarColor.d.ts +1 -1
  53. package/dist/components/badge/badge.d.ts +1 -1
  54. package/dist/components/badge/index.d.ts +3 -3
  55. package/dist/components/badge/index.js +2 -2
  56. package/dist/components/badge/types.d.ts +5 -2
  57. package/dist/components/badge/useBadgeColor.d.ts +1 -1
  58. package/dist/components/button/button.d.ts +1 -1
  59. package/dist/components/button/index.d.ts +3 -2
  60. package/dist/components/button/index.js +2 -2
  61. package/dist/components/button/types.d.ts +5 -2
  62. package/dist/components/button/useButtonColor.d.ts +1 -1
  63. package/dist/components/button-group/button-group.d.ts +1 -1
  64. package/dist/components/button-group/index.d.ts +3 -2
  65. package/dist/components/button-group/index.js +2 -2
  66. package/dist/components/button-group/types.d.ts +4 -1
  67. package/dist/components/button-link/button-link.d.ts +1 -1
  68. package/dist/components/button-link/index.d.ts +3 -2
  69. package/dist/components/button-link/index.js +2 -2
  70. package/dist/components/button-link/types.d.ts +5 -2
  71. package/dist/components/card/card.d.ts +1 -1
  72. package/dist/components/card/index.d.ts +3 -2
  73. package/dist/components/card/index.js +2 -2
  74. package/dist/components/card/types.d.ts +5 -1
  75. package/dist/components/checkbox/checkbox.d.ts +5 -2
  76. package/dist/components/checkbox/index.d.ts +3 -2
  77. package/dist/components/checkbox/index.js +2 -2
  78. package/dist/components/checkbox/types.d.ts +7 -2
  79. package/dist/components/checkbox/useCheckbox.d.ts +4 -2
  80. package/dist/components/collapse/collapse.d.ts +2 -2
  81. package/dist/components/collapse/index.d.ts +4 -3
  82. package/dist/components/collapse/index.js +2 -2
  83. package/dist/components/collapse/types.d.ts +9 -2
  84. package/dist/components/collapse/useCollapse.d.ts +1 -1
  85. package/dist/components/color-input/color-input.d.ts +1 -1
  86. package/dist/components/color-input/index.d.ts +3 -2
  87. package/dist/components/color-input/index.js +2 -2
  88. package/dist/components/color-input/types.d.ts +8 -4
  89. package/dist/components/color-input/useColorInput.d.ts +5 -5
  90. package/dist/components/color-input/useColorInputEyeDropper.d.ts +1 -1
  91. package/dist/components/color-input/useColorInputPopover.d.ts +2 -2
  92. package/dist/components/color-input/useColorInputValue.d.ts +1 -1
  93. package/dist/components/color-picker/color-picker-saturation.d.ts +1 -1
  94. package/dist/components/color-picker/color-picker-slider.d.ts +1 -1
  95. package/dist/components/color-picker/color-picker-utils.d.ts +1 -1
  96. package/dist/components/color-picker/color-picker.d.ts +1 -1
  97. package/dist/components/color-picker/index.d.ts +3 -3
  98. package/dist/components/color-picker/index.js +2 -2
  99. package/dist/components/color-picker/types.d.ts +13 -1
  100. package/dist/components/color-picker/useColorPickerDrag.d.ts +7 -2
  101. package/dist/components/color-picker/useColorPickerSwatches.d.ts +1 -1
  102. package/dist/components/color-picker/useColorPickerValue.d.ts +2 -2
  103. package/dist/components/color-swatch/color-swatch.d.ts +1 -1
  104. package/dist/components/color-swatch/index.d.ts +3 -2
  105. package/dist/components/color-swatch/index.js +2 -1
  106. package/dist/components/color-swatch/types.d.ts +4 -1
  107. package/dist/components/dropdown-menu/dropdown-menu-items.d.ts +15 -6
  108. package/dist/components/dropdown-menu/dropdown-menu-primitives.d.ts +724 -0
  109. package/dist/components/dropdown-menu/dropdown-menu-utils.d.ts +1 -1
  110. package/dist/components/dropdown-menu/dropdown-menu.d.ts +3 -3
  111. package/dist/components/dropdown-menu/index.d.ts +55 -3
  112. package/dist/components/dropdown-menu/index.js +2 -2
  113. package/dist/components/dropdown-menu/types.d.ts +142 -6
  114. package/dist/components/dropdown-menu/useDropdownMenu.d.ts +21 -12
  115. package/dist/components/dropdown-menu/useDropdownMenuDisclosure.d.ts +6 -4
  116. package/dist/components/dropdown-menu/useDropdownMenuDom.d.ts +4 -3
  117. package/dist/components/dropdown-menu/useDropdownMenuHoverIntent.d.ts +2 -2
  118. package/dist/components/dropdown-menu/useDropdownMenuInteractions.d.ts +5 -5
  119. package/dist/components/dropdown-menu/useDropdownMenuNavigation.d.ts +3 -3
  120. package/dist/components/dropdown-menu/useDropdownMenuPortalPosition.d.ts +19 -0
  121. package/dist/components/dropdown-menu/useDropdownMenuRenderItems.d.ts +25 -5
  122. package/dist/components/dropdown-menu/useDropdownSubmenus.d.ts +3 -3
  123. package/dist/components/field/field.d.ts +2 -2
  124. package/dist/components/field/index.d.ts +3 -2
  125. package/dist/components/field/index.js +2 -2
  126. package/dist/components/field/types.d.ts +4 -1
  127. package/dist/components/field/useField.d.ts +1 -1
  128. package/dist/components/floating/index.d.ts +1 -0
  129. package/dist/components/floating/index.js +0 -0
  130. package/dist/components/floating/types.d.ts +31 -0
  131. package/dist/components/floating/useFloatingPosition.d.ts +38 -0
  132. package/dist/components/focus-trap/focus-trap.d.ts +31 -0
  133. package/dist/components/focus-trap/index.d.ts +4 -0
  134. package/dist/components/focus-trap/index.js +3 -0
  135. package/dist/components/focus-trap/types.d.ts +41 -0
  136. package/dist/components/focus-trap/useFocusTrap.d.ts +2 -0
  137. package/dist/components/icon-button/icon-button.d.ts +1 -1
  138. package/dist/components/icon-button/index.d.ts +3 -2
  139. package/dist/components/icon-button/index.js +2 -1
  140. package/dist/components/icon-button/types.d.ts +5 -2
  141. package/dist/components/input/index.d.ts +3 -2
  142. package/dist/components/input/index.js +2 -1
  143. package/dist/components/input/input.d.ts +1 -1
  144. package/dist/components/input/types.d.ts +4 -1
  145. package/dist/components/input/useInput.d.ts +2 -2
  146. package/dist/components/modal/index.d.ts +3 -2
  147. package/dist/components/modal/index.js +2 -2
  148. package/dist/components/modal/modal.d.ts +1 -1
  149. package/dist/components/modal/types.d.ts +9 -2
  150. package/dist/components/modal/useModal.d.ts +1 -1
  151. package/dist/components/number-input/index.d.ts +3 -2
  152. package/dist/components/number-input/index.js +2 -2
  153. package/dist/components/number-input/number-input.d.ts +1 -1
  154. package/dist/components/number-input/types.d.ts +5 -2
  155. package/dist/components/number-input/useNumberInput.d.ts +2 -2
  156. package/dist/components/overlay/index.d.ts +3 -2
  157. package/dist/components/overlay/index.js +2 -1
  158. package/dist/components/overlay/overlay.d.ts +1 -1
  159. package/dist/components/overlay/types.d.ts +4 -1
  160. package/dist/components/overlay/useOverlay.d.ts +1 -1
  161. package/dist/components/popover/index.d.ts +3 -3
  162. package/dist/components/popover/index.js +2 -2
  163. package/dist/components/popover/popover.d.ts +2 -2
  164. package/dist/components/popover/types.d.ts +21 -11
  165. package/dist/components/popover/usePopover.d.ts +11 -2
  166. package/dist/components/progress/index.d.ts +3 -3
  167. package/dist/components/progress/index.js +2 -2
  168. package/dist/components/progress/progress.d.ts +1 -1
  169. package/dist/components/progress/types.d.ts +5 -2
  170. package/dist/components/progress/useProgress.d.ts +2 -2
  171. package/dist/components/radio/index.d.ts +4 -3
  172. package/dist/components/radio/index.js +2 -2
  173. package/dist/components/radio/radio-group.d.ts +1 -1
  174. package/dist/components/radio/radio.d.ts +9 -4
  175. package/dist/components/radio/types.d.ts +21 -4
  176. package/dist/components/radio/useRadio.d.ts +10 -5
  177. package/dist/components/select/index.d.ts +3 -2
  178. package/dist/components/select/index.js +2 -2
  179. package/dist/components/select/select.d.ts +1 -1
  180. package/dist/components/select/types.d.ts +4 -1
  181. package/dist/components/select/useSelect.d.ts +4 -3
  182. package/dist/components/slider/index.d.ts +4 -4
  183. package/dist/components/slider/index.js +2 -2
  184. package/dist/components/slider/range-slider-tooltip.d.ts +37 -0
  185. package/dist/components/slider/range-slider.d.ts +8 -13
  186. package/dist/components/slider/slider.d.ts +5 -2
  187. package/dist/components/slider/sliderCore.d.ts +35 -0
  188. package/dist/components/slider/types.d.ts +14 -7
  189. package/dist/components/slider/useRangeSlider.d.ts +5 -7
  190. package/dist/components/slider/useRangeSliderPointer.d.ts +19 -0
  191. package/dist/components/slider/useRangeSliderTooltipCollision.d.ts +31 -2
  192. package/dist/components/slider/useRangeSliderTooltipState.d.ts +23 -0
  193. package/dist/components/slider/useSlider.d.ts +11 -15
  194. package/dist/components/switch/index.d.ts +3 -2
  195. package/dist/components/switch/index.js +2 -2
  196. package/dist/components/switch/switch.d.ts +5 -2
  197. package/dist/components/switch/types.d.ts +7 -2
  198. package/dist/components/switch/useSwitch.d.ts +4 -2
  199. package/dist/components/tabs/index.d.ts +7 -6
  200. package/dist/components/tabs/index.js +2 -2
  201. package/dist/components/tabs/tabs-content.d.ts +2 -2
  202. package/dist/components/tabs/tabs-list.d.ts +4 -4
  203. package/dist/components/tabs/tabs-trigger.d.ts +5 -5
  204. package/dist/components/tabs/tabs.d.ts +5 -5
  205. package/dist/components/tabs/types.d.ts +13 -4
  206. package/dist/components/tabs/useTabs.d.ts +1 -1
  207. package/dist/components/teleport-provider/index.d.ts +2 -0
  208. package/dist/components/teleport-provider/index.js +2 -0
  209. package/dist/components/teleport-provider/teleport-provider.d.ts +21 -0
  210. package/dist/components/teleport-provider/types.d.ts +4 -0
  211. package/dist/components/teleport-provider/useTeleportTarget.d.ts +5 -0
  212. package/dist/components/textarea/index.d.ts +3 -2
  213. package/dist/components/textarea/index.js +2 -2
  214. package/dist/components/textarea/textarea.d.ts +5 -2
  215. package/dist/components/textarea/types.d.ts +6 -1
  216. package/dist/components/textarea/useTextarea.d.ts +3 -2
  217. package/dist/components/toast/defaults.d.ts +7 -0
  218. package/dist/components/toast/index.d.ts +7 -0
  219. package/dist/components/toast/index.js +2 -0
  220. package/dist/components/toast/toast-provider.d.ts +21 -0
  221. package/dist/components/toast/toast-viewport.d.ts +34 -0
  222. package/dist/components/toast/toast.d.ts +31 -0
  223. package/dist/components/toast/types.d.ts +110 -0
  224. package/dist/components/toast/useToast.d.ts +4 -0
  225. package/dist/components/toast/useToastColor.d.ts +3 -0
  226. package/dist/components/toast/useToastState.d.ts +2 -0
  227. package/dist/components/tooltip/index.d.ts +3 -2
  228. package/dist/components/tooltip/index.js +2 -1
  229. package/dist/components/tooltip/tooltip.d.ts +2 -2
  230. package/dist/components/tooltip/types.d.ts +14 -13
  231. package/dist/components/tooltip/useTooltip.d.ts +15 -3
  232. package/dist/dropdown-menu.css +191 -107
  233. package/dist/dropdown-menu.js +1729 -107
  234. package/dist/field.css +41 -39
  235. package/dist/field.js +40 -16
  236. package/dist/focus-trap.js +80 -0
  237. package/dist/icon-button.css +193 -189
  238. package/dist/icon-button.js +23 -18
  239. package/dist/icon-button2.js +8 -0
  240. package/dist/index.d.ts +35 -30
  241. package/dist/index.js +36 -31
  242. package/dist/input.css +122 -120
  243. package/dist/input.js +47 -34
  244. package/dist/input2.js +9 -0
  245. package/dist/legacy-unlayered.css +5461 -0
  246. package/dist/modal.css +129 -127
  247. package/dist/modal.js +160 -200
  248. package/dist/number-input.css +87 -85
  249. package/dist/number-input.js +61 -17
  250. package/dist/overlay.css +26 -24
  251. package/dist/overlay.js +17 -9
  252. package/dist/overlay2.js +4 -0
  253. package/dist/popover.css +140 -107
  254. package/dist/popover.js +295 -189
  255. package/dist/popover2.js +6 -1
  256. package/dist/progress.css +101 -99
  257. package/dist/progress.js +50 -28
  258. package/dist/radio.css +114 -105
  259. package/dist/radio.js +154 -56
  260. package/dist/select.css +244 -242
  261. package/dist/select.js +92 -47
  262. package/dist/slider.css +1109 -904
  263. package/dist/slider.js +1118 -923
  264. package/dist/styles-api.d.ts +22 -0
  265. package/dist/styles-api.js +49 -0
  266. package/dist/switch.css +120 -108
  267. package/dist/switch.js +89 -33
  268. package/dist/tabs.css +286 -278
  269. package/dist/tabs.js +60 -21
  270. package/dist/teleport-provider.js +15 -0
  271. package/dist/textarea.css +132 -130
  272. package/dist/textarea.js +77 -29
  273. package/dist/toast.css +236 -0
  274. package/dist/toast.js +739 -0
  275. package/dist/tooltip.css +137 -107
  276. package/dist/tooltip.js +182 -223
  277. package/dist/tooltip2.js +8 -0
  278. package/dist/useClickOutside.js +1 -1
  279. package/dist/useFloatingPosition.js +1284 -0
  280. package/dist/useFocusTrap.js +130 -0
  281. package/dist/useTeleportTarget.js +29 -0
  282. package/dist/utils/componentColors.d.ts +60 -0
  283. package/docs/public-styles-api.md +133 -0
  284. package/docs/public-tokens.md +545 -0
  285. package/package.json +44 -12
  286. package/src/styles/_tokens.scss +33 -28
  287. package/src/styles/_utilities.scss +11 -9
  288. package/src/styles/styles-manifest.json +4125 -0
  289. package/dist/components/slider/useRangeSliderTooltipTransition.d.ts +0 -4
@@ -0,0 +1,38 @@
1
+ import { CSSProperties, Ref } from 'vue';
2
+ import { FloatingCollisionPadding, FloatingOffset, FloatingPlacement, FloatingReference, FloatingStrategy, FloatingTarget } from './types.js';
3
+ type Source<T> = () => T;
4
+ export interface UseFloatingPositionOptions<TPlacement extends FloatingPlacement> {
5
+ reference: Readonly<Ref<FloatingReference | null>>;
6
+ floating: Ref<HTMLElement | null>;
7
+ arrow?: Ref<HTMLElement | null>;
8
+ open: Readonly<Ref<boolean>>;
9
+ placement: Source<TPlacement>;
10
+ strategy: Source<FloatingStrategy>;
11
+ offset: Source<FloatingOffset | undefined>;
12
+ flip: Source<boolean>;
13
+ shift: Source<boolean>;
14
+ collisionPadding: Source<FloatingCollisionPadding>;
15
+ arrowEnabled: Source<boolean>;
16
+ restartKey?: Source<unknown>;
17
+ }
18
+ export interface UseFloatingPositionReturn<TPlacement extends FloatingPlacement> {
19
+ actualPlacement: Ref<TPlacement>;
20
+ arrowStyle: Ref<CSSProperties | undefined>;
21
+ floatingStyle: Ref<CSSProperties>;
22
+ isPositioned: Ref<boolean>;
23
+ start: () => void;
24
+ stop: () => void;
25
+ update: () => Promise<void>;
26
+ }
27
+ export declare function readFloatingTarget(target: FloatingTarget | null | undefined): string | FloatingReference | null | undefined;
28
+ export declare function isVirtualReference(value: unknown): value is FloatingReference;
29
+ export declare function isElementReference(value: unknown): value is Element;
30
+ export declare function resolveFloatingTarget(target: string | FloatingReference | null | undefined): FloatingReference | null;
31
+ export declare function useFloatingTarget(getTarget: Source<FloatingTarget | null | undefined>, fallback: Readonly<Ref<Element | null>>): {
32
+ isExplicitTarget: import('vue').ComputedRef<boolean>;
33
+ reference: import('vue').ComputedRef<FloatingReference | null>;
34
+ resolvedTarget: import('vue').ShallowRef<FloatingReference | null, FloatingReference | null>;
35
+ syncTarget: () => void;
36
+ };
37
+ export declare function useFloatingPosition<TPlacement extends FloatingPlacement>(options: UseFloatingPositionOptions<TPlacement>): UseFloatingPositionReturn<TPlacement>;
38
+ export {};
@@ -0,0 +1,31 @@
1
+ import { FocusTrapPauseOptions, FocusTrapProps, FocusTrapUnpauseOptions } from './types.js';
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
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<FocusTrapProps & {
4
+ "onUpdate:active"?: ((value: boolean) => any) | undefined;
5
+ "onUpdate:paused"?: ((value: boolean) => any) | undefined;
6
+ }> & (typeof globalThis extends {
7
+ __VLS_PROPS_FALLBACK: infer P;
8
+ } ? P : {});
9
+ expose: (exposed: {}) => void;
10
+ attrs: any;
11
+ slots: {
12
+ default?: (props: {
13
+ active: boolean;
14
+ paused: boolean;
15
+ activate: (options?: import('./types.js').FocusTrapActivateOptions) => void;
16
+ deactivate: (options?: import('./types.js').FocusTrapDeactivateOptions) => void;
17
+ pause: (options?: FocusTrapPauseOptions) => void;
18
+ unpause: (options?: FocusTrapUnpauseOptions) => void;
19
+ }) => any;
20
+ };
21
+ emit: ((evt: "update:active", value: boolean) => void) & ((evt: "update:paused", value: boolean) => void);
22
+ }>) => import('vue').VNode & {
23
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
24
+ };
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
28
+ [K in keyof T]: T[K];
29
+ } : {
30
+ [K in keyof T as K]: T[K];
31
+ }) & {};
@@ -0,0 +1,4 @@
1
+ export { default as FocusTrap } from './focus-trap.js';
2
+ export { focusTrapParts } from './types.js';
3
+ export { useFocusTrap } from './useFocusTrap.js';
4
+ export type { FocusTrapActivateOptions, FocusTrapContainer, FocusTrapContainers, FocusTrapDeactivateOptions, FocusTrapInitialFocus, FocusTrapOptions, FocusTrapPauseOptions, FocusTrapPart, FocusTrapProps, FocusTrapSlotProps, FocusTrapTarget, FocusTrapUnpauseOptions, UseFocusTrapOptions, UseFocusTrapReturn, } from './types.js';
@@ -0,0 +1,3 @@
1
+ import { t as useFocusTrap } from "../../useFocusTrap.js";
2
+ import { n as focus_trap_default, t as focusTrapParts } from "../../focus-trap.js";
3
+ export { focus_trap_default as FocusTrap, focusTrapParts, useFocusTrap };
@@ -0,0 +1,41 @@
1
+ import { FocusTrap as FocusTrapInstance, FocusTargetValueOrFalse, Options as FocusTrapOptions } from 'focus-trap';
2
+ import { MaybeRefOrGetter, Ref, ShallowRef } from 'vue';
3
+ import { StylesApiProps } from '../../styles-api.js';
4
+ export declare const focusTrapParts: readonly ["root"];
5
+ export type FocusTrapPart = (typeof focusTrapParts)[number];
6
+ export type { FocusTrapOptions };
7
+ export type FocusTrapContainer = HTMLElement | SVGElement | string;
8
+ export type FocusTrapContainers = FocusTrapContainer | FocusTrapContainer[];
9
+ export type FocusTrapTarget = MaybeRefOrGetter<FocusTrapContainers | null | undefined>;
10
+ export type FocusTrapInitialFocus = NonNullable<FocusTrapOptions['initialFocus']> | Ref<FocusTargetValueOrFalse | null | undefined>;
11
+ export type FocusTrapActivateOptions = Parameters<FocusTrapInstance['activate']>[0];
12
+ export type FocusTrapDeactivateOptions = Parameters<FocusTrapInstance['deactivate']>[0];
13
+ export type FocusTrapPauseOptions = Parameters<FocusTrapInstance['pause']>[0];
14
+ export type FocusTrapUnpauseOptions = Parameters<FocusTrapInstance['unpause']>[0];
15
+ export interface UseFocusTrapOptions extends FocusTrapOptions {
16
+ immediate?: boolean;
17
+ }
18
+ export interface FocusTrapProps extends StylesApiProps<FocusTrapPart> {
19
+ active?: boolean;
20
+ paused?: boolean;
21
+ as?: keyof HTMLElementTagNameMap;
22
+ options?: FocusTrapOptions;
23
+ }
24
+ export interface FocusTrapSlotProps {
25
+ active: boolean;
26
+ paused: boolean;
27
+ activate: (options?: FocusTrapActivateOptions) => void;
28
+ deactivate: (options?: FocusTrapDeactivateOptions) => void;
29
+ pause: (options?: FocusTrapPauseOptions) => void;
30
+ unpause: (options?: FocusTrapUnpauseOptions) => void;
31
+ }
32
+ export interface UseFocusTrapReturn {
33
+ focusTrap: ShallowRef<FocusTrapInstance | null>;
34
+ isActive: Readonly<Ref<boolean>>;
35
+ isPaused: Readonly<Ref<boolean>>;
36
+ activate: (options?: FocusTrapActivateOptions) => void;
37
+ deactivate: (options?: FocusTrapDeactivateOptions) => void;
38
+ pause: (options?: FocusTrapPauseOptions) => void;
39
+ unpause: (options?: FocusTrapUnpauseOptions) => void;
40
+ updateContainerElements: (containers: FocusTrapContainers) => void;
41
+ }
@@ -0,0 +1,2 @@
1
+ import { FocusTrapTarget, UseFocusTrapOptions, UseFocusTrapReturn } from './types.js';
2
+ export declare function useFocusTrap(target: FocusTrapTarget, options?: Readonly<UseFocusTrapOptions>): UseFocusTrapReturn;
@@ -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,3 @@
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 { iconButtonParts } from './types.js';
3
+ export type { IconButtonColor, IconButtonPart, IconButtonProps, IconButtonRadius, IconButtonSize, IconButtonVariant, } from './types.js';
@@ -1,2 +1,3 @@
1
1
  import { t as icon_button_default } from "../../icon-button.js";
2
- export { icon_button_default as IconButton };
2
+ import { t as iconButtonParts } from "../../icon-button2.js";
3
+ export { icon_button_default as IconButton, iconButtonParts };
@@ -1,9 +1,12 @@
1
- import { ButtonColor, ButtonRadius, ButtonSize, ButtonVariant } from '../button/types';
1
+ import { ButtonColor, ButtonRadius, ButtonSize, ButtonVariant } from '../button/types.js';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export declare const iconButtonParts: readonly ["root", "loader", "icon"];
4
+ export type IconButtonPart = (typeof iconButtonParts)[number];
2
5
  export type IconButtonColor = ButtonColor;
3
6
  export type IconButtonSize = ButtonSize;
4
7
  export type IconButtonRadius = ButtonRadius;
5
8
  export type IconButtonVariant = ButtonVariant;
6
- export interface IconButtonProps {
9
+ export interface IconButtonProps extends StylesApiProps<IconButtonPart> {
7
10
  ariaLabel: string;
8
11
  variant?: IconButtonVariant;
9
12
  color?: IconButtonColor;
@@ -1,2 +1,3 @@
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 { inputParts } from './types.js';
3
+ export type { InputPart, InputProps, InputRadius, InputSize } from './types.js';
@@ -1,2 +1,3 @@
1
1
  import { t as input_default } from "../../input.js";
2
- export { input_default as Input };
2
+ import { t as inputParts } from "../../input2.js";
3
+ export { input_default as Input, inputParts };
@@ -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,10 @@
1
1
  import { InputHTMLAttributes } from 'vue';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export declare const inputParts: readonly ["root", "input", "left", "right"];
4
+ export type InputPart = (typeof inputParts)[number];
2
5
  export type InputRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
6
  export type InputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
- export interface InputProps {
7
+ export interface InputProps extends StylesApiProps<InputPart> {
5
8
  id?: string;
6
9
  name?: string;
7
10
  modelValue: string;
@@ -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;
@@ -1,2 +1,3 @@
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 { modalParts } from './types.js';
3
+ export type { ModalFocusTrapOptions, ModalInitialFocus, ModalPart, ModalPresetSize, ModalProps, ModalRole, ModalSize, ModalSlotProps, } from './types.js';
@@ -1,2 +1,2 @@
1
- import { t as modal_default } from "../../modal.js";
2
- export { modal_default as Modal };
1
+ import { n as modal_default, t as modalParts } from "../../modal.js";
2
+ export { modal_default as Modal, modalParts };
@@ -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,17 +1,23 @@
1
1
  import { Ref } from 'vue';
2
- import { OverlayProps } from '../overlay/types';
2
+ import { FocusTrapOptions } from '../focus-trap/types.js';
3
+ import { TeleportProps } from '../floating/types.js';
4
+ import { OverlayProps } from '../overlay/types.js';
5
+ import { StylesApiProps } from '../../styles-api.js';
6
+ export declare const modalParts: readonly ["root", "overlay", "panel", "header", "title", "description", "body", "footer", "close"];
7
+ export type ModalPart = (typeof modalParts)[number];
3
8
  export type ModalPresetSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
4
9
  export type ModalSize = ModalPresetSize | (string & {});
5
10
  export type ModalRole = 'dialog' | 'alertdialog';
6
11
  export type ModalInitialFocus = string | HTMLElement | Ref<HTMLElement | null | undefined>;
7
12
  export type ModalOverlayProps = Pick<OverlayProps, 'color' | 'opacity' | 'gradient' | 'blur'>;
13
+ export type ModalFocusTrapOptions = Omit<FocusTrapOptions, 'allowOutsideClick' | 'clickOutsideDeactivates' | 'escapeDeactivates' | 'fallbackFocus' | 'initialFocus' | 'preventScroll' | 'returnFocusOnDeactivate'>;
8
14
  export interface ModalSlotProps {
9
15
  isOpen: boolean;
10
16
  open: () => void;
11
17
  close: () => void;
12
18
  toggle: () => void;
13
19
  }
14
- export interface ModalProps {
20
+ export interface ModalProps extends TeleportProps, StylesApiProps<ModalPart> {
15
21
  id?: string;
16
22
  open?: boolean;
17
23
  title?: string;
@@ -28,4 +34,5 @@ export interface ModalProps {
28
34
  preventScroll?: boolean;
29
35
  returnFocus?: boolean;
30
36
  keepMounted?: boolean;
37
+ focusTrapOptions?: ModalFocusTrapOptions;
31
38
  }
@@ -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,3 @@
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 { numberInputParts } from './types.js';
3
+ export type { NumberInputControlsPosition, NumberInputPart, NumberInputProps, NumberInputRadius, NumberInputSize, NumberInputTextAlign, NumberInputValue, } from './types.js';
@@ -1,2 +1,2 @@
1
- import { t as number_input_default } from "../../number-input.js";
2
- export { number_input_default as NumberInput };
1
+ import { n as number_input_default, t as numberInputParts } from "../../number-input.js";
2
+ export { number_input_default as NumberInput, numberInputParts };
@@ -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,11 +1,14 @@
1
1
  import { InputHTMLAttributes } from 'vue';
2
- import { InputRadius, InputSize } from '../input/types';
2
+ import { InputRadius, InputSize } from '../input/types.js';
3
+ import { StylesApiProps } from '../../styles-api.js';
4
+ export declare const numberInputParts: readonly ["root", "input", "control"];
5
+ export type NumberInputPart = (typeof numberInputParts)[number];
3
6
  export type NumberInputValue = number | null;
4
7
  export type NumberInputRadius = InputRadius;
5
8
  export type NumberInputSize = InputSize;
6
9
  export type NumberInputControlsPosition = 'left' | 'right' | 'split';
7
10
  export type NumberInputTextAlign = 'left' | 'center' | 'right';
8
- export interface NumberInputProps {
11
+ export interface NumberInputProps extends StylesApiProps<NumberInputPart> {
9
12
  id?: string;
10
13
  name?: string;
11
14
  modelValue: NumberInputValue;
@@ -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,3 @@
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 { overlayParts } from './types.js';
3
+ export type { OverlayBlur, OverlayPart, OverlayProps, OverlayZIndex } from './types.js';
@@ -1,2 +1,3 @@
1
1
  import { t as overlay_default } from "../../overlay.js";
2
- export { overlay_default as Overlay };
2
+ import { t as overlayParts } from "../../overlay2.js";
3
+ export { overlay_default as Overlay, overlayParts };
@@ -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,7 +1,10 @@
1
1
  import { CSSProperties } from 'vue';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export declare const overlayParts: readonly ["root"];
4
+ export type OverlayPart = (typeof overlayParts)[number];
2
5
  export type OverlayZIndex = CSSProperties['zIndex'];
3
6
  export type OverlayBlur = number | string;
4
- export interface OverlayProps {
7
+ export interface OverlayProps extends StylesApiProps<OverlayPart> {
5
8
  color?: string;
6
9
  opacity?: number;
7
10
  gradient?: string;
@@ -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 { popoverParts, popoverPlacements } from './types.js';
3
+ export type { PopoverContentSlotProps, PopoverFocusTrapOptions, PopoverOffset, PopoverOffsetOptions, PopoverPart, PopoverPlacement, PopoverProps, PopoverRole, PopoverSlotProps, PopoverTarget, PopoverTriggerProps, } from './types.js';
@@ -1,3 +1,3 @@
1
1
  import { t as popover_default } from "../../popover.js";
2
- import { t as popoverPlacements } from "../../popover2.js";
3
- export { popover_default as Popover, popoverPlacements };
2
+ import { n as popoverPlacements, t as popoverParts } from "../../popover2.js";
3
+ export { popover_default as Popover, popoverParts, popoverPlacements };
@@ -1,4 +1,4 @@
1
- import { PopoverProps } from './types';
1
+ import { PopoverProps, PopoverTriggerProps } 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: PopoverTriggerProps;
13
13
  isOpen: boolean;
14
14
  open: () => void;
15
15
  close: () => void;
@@ -1,17 +1,24 @@
1
- import { Ref } from 'vue';
1
+ import { HTMLAttributes } from 'vue';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ import { FocusTrapInitialFocus, FocusTrapOptions } from '../focus-trap/types.js';
4
+ import { FloatingOffset, FloatingOffsetOptions, FloatingPositionProps, FloatingTarget } from '../floating/types.js';
2
5
  export declare const popoverPlacements: readonly ["top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-start", "bottom", "bottom-end", "left-start", "left", "left-end"];
6
+ export declare const popoverParts: readonly ["root", "trigger", "content"];
7
+ export type PopoverPart = (typeof popoverParts)[number];
3
8
  export type PopoverPlacement = (typeof popoverPlacements)[number];
4
- export type PopoverTarget = string | HTMLElement | Ref<HTMLElement | null | undefined>;
5
- export interface PopoverOffsetOptions {
6
- mainAxis?: number;
7
- crossAxis?: number;
8
- }
9
- export type PopoverOffset = number | PopoverOffsetOptions;
9
+ export type PopoverTarget = FloatingTarget;
10
+ export type PopoverOffsetOptions = FloatingOffsetOptions;
11
+ export type PopoverOffset = FloatingOffset;
10
12
  export type PopoverRole = 'dialog';
13
+ export type PopoverFocusTrapOptions = Omit<FocusTrapOptions, 'allowOutsideClick' | 'clickOutsideDeactivates' | 'escapeDeactivates' | 'fallbackFocus' | 'initialFocus' | 'returnFocusOnDeactivate'>;
11
14
  export interface PopoverTriggerProps {
12
15
  'aria-controls'?: string;
13
16
  'aria-expanded'?: boolean;
14
17
  'aria-haspopup'?: PopoverRole;
18
+ class?: HTMLAttributes['class'];
19
+ style?: HTMLAttributes['style'];
20
+ 'data-state'?: 'open' | 'closed';
21
+ 'data-disabled'?: '';
15
22
  onClick: (event: MouseEvent) => void;
16
23
  onKeydown: (event: KeyboardEvent) => void;
17
24
  }
@@ -28,11 +35,9 @@ export interface PopoverContentSlotProps {
28
35
  close: () => void;
29
36
  toggle: () => void;
30
37
  }
31
- export interface PopoverProps {
38
+ export interface PopoverProps extends FloatingPositionProps<PopoverPlacement>, StylesApiProps<PopoverPart> {
32
39
  id?: string;
33
- target?: PopoverTarget | null;
34
- placement?: PopoverPlacement;
35
- offset?: PopoverOffset;
40
+ contentClass?: string;
36
41
  open?: boolean;
37
42
  disabled?: boolean;
38
43
  role?: PopoverRole;
@@ -41,4 +46,9 @@ export interface PopoverProps {
41
46
  ariaDescribedby?: string;
42
47
  closeOnOutsideClick?: boolean;
43
48
  closeOnEscape?: boolean;
49
+ keepMounted?: boolean;
50
+ trapFocus?: boolean;
51
+ initialFocus?: FocusTrapInitialFocus | null;
52
+ returnFocus?: boolean;
53
+ focusTrapOptions?: PopoverFocusTrapOptions;
44
54
  }
@@ -1,9 +1,12 @@
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
+ contentRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
6
+ arrowRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
5
7
  popoverId: import('vue').ComputedRef<string>;
6
8
  isOpen: import('vue').ComputedRef<boolean>;
9
+ isDisabled: import('vue').ComputedRef<boolean>;
7
10
  isVisible: import('vue').ComputedRef<boolean>;
8
11
  isTargetMode: import('vue').ComputedRef<boolean>;
9
12
  popoverRole: import('vue').ComputedRef<"dialog">;
@@ -11,13 +14,19 @@ export declare function usePopover(props: Readonly<PopoverProps>, emitOpenChange
11
14
  ariaLabelledby: import('vue').ComputedRef<string | undefined>;
12
15
  ariaDescribedby: import('vue').ComputedRef<string | undefined>;
13
16
  shouldRenderContent: import('vue').ComputedRef<boolean>;
17
+ shouldShowContent: import('vue').ComputedRef<boolean>;
14
18
  rootClass: import('vue').ComputedRef<string[]>;
15
- contentStyle: import('vue').ComputedRef<CSSProperties | undefined>;
19
+ contentStyle: import('vue').ComputedRef<CSSProperties>;
16
20
  triggerProps: import('vue').ComputedRef<PopoverTriggerProps>;
17
21
  slotProps: import('vue').ComputedRef<PopoverSlotProps>;
18
22
  contentSlotProps: import('vue').ComputedRef<PopoverContentSlotProps>;
23
+ actualPlacement: import('vue').Ref<"left" | "right" | "bottom" | "top" | "left-end" | "left-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "top-end" | "top-start", "left" | "right" | "bottom" | "top" | "left-end" | "left-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "top-end" | "top-start">;
24
+ placementSide: import('vue').ComputedRef<string>;
25
+ arrowStyle: import('vue').Ref<CSSProperties | undefined, CSSProperties | undefined>;
26
+ teleportTo: import('vue').ComputedRef<import('../floating/index.js').TeleportTargetValue>;
19
27
  openPopover: () => void;
20
28
  closePopover: () => void;
21
29
  togglePopover: () => void;
22
30
  onTriggerKeydown: (event: KeyboardEvent) => void;
31
+ onCompositeFocusout: (event: FocusEvent) => void;
23
32
  };
@@ -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, progressParts, progressRadiuses, progressSizes } from './types.js';
3
+ export type { ProgressColor, ProgressPart, ProgressProps, ProgressRadius, ProgressSize, ProgressValueFormatter, } from './types.js';
@@ -1,2 +1,2 @@
1
- import { i as progress_default, n as progressRadiuses, r as progressSizes, t as progressColors } from "../../progress.js";
2
- export { progress_default as Progress, progressColors, progressRadiuses, progressSizes };
1
+ import { a as progress_default, i as progressSizes, n as progressParts, r as progressRadiuses, t as progressColors } from "../../progress.js";
2
+ export { progress_default as Progress, progressColors, progressParts, progressRadiuses, progressSizes };
@@ -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,7 @@
1
- import { ComponentColorValue } from '../../utils/componentColors';
1
+ import { ComponentColorValue } from '../../utils/componentColors.js';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export declare const progressParts: readonly ["root", "label", "value", "track", "indicator"];
4
+ export type ProgressPart = (typeof progressParts)[number];
2
5
  export declare const progressColors: readonly ["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "teal", "green", "lime", "yellow", "orange"];
3
6
  export declare const progressSizes: readonly ["xs", "sm", "md", "lg", "xl"];
4
7
  export declare const progressRadiuses: readonly ["none", "xs", "sm", "md", "lg", "xl", "full"];
@@ -6,7 +9,7 @@ export type ProgressColor = ComponentColorValue;
6
9
  export type ProgressSize = (typeof progressSizes)[number];
7
10
  export type ProgressRadius = (typeof progressRadiuses)[number];
8
11
  export type ProgressValueFormatter = (value: number, percent: number) => string | number;
9
- export interface ProgressProps {
12
+ export interface ProgressProps extends StylesApiProps<ProgressPart> {
10
13
  id?: string;
11
14
  value?: number | null;
12
15
  min?: number;
@@ -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,4 @@
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 { radioGroupParts, radioParts } from './types.js';
4
+ export type { RadioColor, RadioGroupOrientation, RadioGroupPart, RadioGroupProps, RadioProps, RadioPart, RadioSize, RadioVariant, } from './types.js';
@@ -1,2 +1,2 @@
1
- import { n as radio_default, t as radio_group_default } from "../../radio.js";
2
- export { radio_default as Radio, radio_group_default as RadioGroup };
1
+ import { i as radioParts, n as radio_default, r as radioGroupParts, t as radio_group_default } from "../../radio.js";
2
+ export { radio_default as Radio, radio_group_default as RadioGroup, radioGroupParts, radioParts };
@@ -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,14 +1,19 @@
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
- props: import('vue').PublicProps & __VLS_PrettifyLocal<RadioProps> & (typeof globalThis extends {
3
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<RadioProps & {
4
+ onChange?: ((event: Event) => any) | undefined;
5
+ }> & (typeof globalThis extends {
4
6
  __VLS_PROPS_FALLBACK: infer P;
5
7
  } ? P : {});
6
- expose: (exposed: {}) => void;
8
+ expose: (exposed: import('vue').ShallowUnwrapRef<{
9
+ nativeElement: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
10
+ focus: (options?: FocusOptions) => void;
11
+ }>) => void;
7
12
  attrs: any;
8
13
  slots: {
9
14
  default?: (props: {}) => any;
10
15
  };
11
- emit: {};
16
+ emit: (evt: "change", event: Event) => void;
12
17
  }>) => import('vue').VNode & {
13
18
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
14
19
  };