ropav 0.0.10 → 0.0.12

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 (276) hide show
  1. package/README.md +9 -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 +103 -33
  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 +117 -30
  27. package/dist/color-picker.css +309 -303
  28. package/dist/color-picker.js +147 -54
  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 +13 -1
  34. package/dist/components/accordion/index.d.ts +2 -1
  35. package/dist/components/accordion/index.js +2 -2
  36. package/dist/components/accordion/types.d.ts +9 -4
  37. package/dist/components/alert/alert.d.ts +2 -2
  38. package/dist/components/alert/index.d.ts +2 -2
  39. package/dist/components/alert/index.js +2 -2
  40. package/dist/components/alert/types.d.ts +4 -1
  41. package/dist/components/aspect-ratio/index.d.ts +2 -1
  42. package/dist/components/aspect-ratio/index.js +2 -2
  43. package/dist/components/aspect-ratio/types.d.ts +4 -1
  44. package/dist/components/avatar/index.d.ts +2 -2
  45. package/dist/components/avatar/index.js +2 -2
  46. package/dist/components/avatar/types.d.ts +4 -1
  47. package/dist/components/badge/index.d.ts +2 -2
  48. package/dist/components/badge/index.js +2 -2
  49. package/dist/components/badge/types.d.ts +4 -1
  50. package/dist/components/button/index.d.ts +2 -1
  51. package/dist/components/button/index.js +2 -2
  52. package/dist/components/button/types.d.ts +4 -1
  53. package/dist/components/button-group/index.d.ts +2 -1
  54. package/dist/components/button-group/index.js +2 -2
  55. package/dist/components/button-group/types.d.ts +4 -1
  56. package/dist/components/button-link/index.d.ts +2 -1
  57. package/dist/components/button-link/index.js +2 -2
  58. package/dist/components/button-link/types.d.ts +4 -1
  59. package/dist/components/card/index.d.ts +2 -1
  60. package/dist/components/card/index.js +2 -2
  61. package/dist/components/card/types.d.ts +5 -1
  62. package/dist/components/checkbox/checkbox.d.ts +4 -1
  63. package/dist/components/checkbox/index.d.ts +2 -1
  64. package/dist/components/checkbox/index.js +2 -2
  65. package/dist/components/checkbox/types.d.ts +11 -2
  66. package/dist/components/checkbox/useCheckbox.d.ts +3 -1
  67. package/dist/components/collapse/collapse.d.ts +2 -2
  68. package/dist/components/collapse/index.d.ts +2 -1
  69. package/dist/components/collapse/index.js +2 -2
  70. package/dist/components/collapse/types.d.ts +9 -2
  71. package/dist/components/color-input/index.d.ts +2 -1
  72. package/dist/components/color-input/index.js +2 -2
  73. package/dist/components/color-input/types.d.ts +8 -2
  74. package/dist/components/color-input/useColorInput.d.ts +1 -1
  75. package/dist/components/color-input/useColorInputValue.d.ts +1 -1
  76. package/dist/components/color-picker/index.d.ts +2 -2
  77. package/dist/components/color-picker/index.js +2 -2
  78. package/dist/components/color-picker/types.d.ts +13 -1
  79. package/dist/components/color-swatch/index.d.ts +2 -1
  80. package/dist/components/color-swatch/index.js +2 -1
  81. package/dist/components/color-swatch/types.d.ts +4 -1
  82. package/dist/components/dialog/dialog-close.d.ts +21 -0
  83. package/dist/components/dialog/dialog-content.d.ts +32 -0
  84. package/dist/components/dialog/dialog-core.d.ts +27 -0
  85. package/dist/components/dialog/dialog-description.d.ts +21 -0
  86. package/dist/components/dialog/dialog-overlay.d.ts +21 -0
  87. package/dist/components/dialog/dialog-portal.d.ts +21 -0
  88. package/dist/components/dialog/dialog-root.d.ts +28 -0
  89. package/dist/components/dialog/dialog-title.d.ts +21 -0
  90. package/dist/components/dialog/dialog-trigger.d.ts +23 -0
  91. package/dist/components/dialog/index.d.ts +9 -0
  92. package/dist/components/dialog/index.js +2 -0
  93. package/dist/components/dialog/types.d.ts +61 -0
  94. package/dist/components/dropdown-menu/dropdown-menu-checkbox-item.d.ts +24 -0
  95. package/dist/components/dropdown-menu/dropdown-menu-content.d.ts +34 -0
  96. package/dist/components/dropdown-menu/dropdown-menu-context-trigger.d.ts +23 -0
  97. package/dist/components/dropdown-menu/dropdown-menu-item-indicator.d.ts +24 -0
  98. package/dist/components/dropdown-menu/dropdown-menu-item-row.d.ts +28 -0
  99. package/dist/components/dropdown-menu/dropdown-menu-item.d.ts +23 -0
  100. package/dist/components/dropdown-menu/dropdown-menu-items.d.ts +24 -22
  101. package/dist/components/dropdown-menu/dropdown-menu-label.d.ts +21 -0
  102. package/dist/components/dropdown-menu/dropdown-menu-outside.d.ts +3 -0
  103. package/dist/components/dropdown-menu/dropdown-menu-portal.d.ts +21 -0
  104. package/dist/components/dropdown-menu/dropdown-menu-primitive-core.d.ts +110 -0
  105. package/dist/components/dropdown-menu/dropdown-menu-primitives.d.ts +15 -0
  106. package/dist/components/dropdown-menu/dropdown-menu-radio-group.d.ts +25 -0
  107. package/dist/components/dropdown-menu/dropdown-menu-radio-item.d.ts +23 -0
  108. package/dist/components/dropdown-menu/dropdown-menu-root.d.ts +30 -0
  109. package/dist/components/dropdown-menu/dropdown-menu-separator.d.ts +19 -0
  110. package/dist/components/dropdown-menu/dropdown-menu-sub-content.d.ts +34 -0
  111. package/dist/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +28 -0
  112. package/dist/components/dropdown-menu/dropdown-menu-sub.d.ts +28 -0
  113. package/dist/components/dropdown-menu/dropdown-menu-trigger.d.ts +23 -0
  114. package/dist/components/dropdown-menu/dropdown-menu.d.ts +6 -3
  115. package/dist/components/dropdown-menu/index.d.ts +32 -1
  116. package/dist/components/dropdown-menu/index.js +2 -2
  117. package/dist/components/dropdown-menu/types.d.ts +145 -6
  118. package/dist/components/dropdown-menu/useDropdownMenu.d.ts +15 -3
  119. package/dist/components/dropdown-menu/useDropdownMenuDisclosure.d.ts +10 -3
  120. package/dist/components/dropdown-menu/useDropdownMenuDom.d.ts +2 -1
  121. package/dist/components/dropdown-menu/useDropdownMenuInteractions.d.ts +4 -4
  122. package/dist/components/dropdown-menu/useDropdownMenuPortalPosition.d.ts +19 -0
  123. package/dist/components/dropdown-menu/useDropdownMenuPrimitiveContent.d.ts +27 -0
  124. package/dist/components/dropdown-menu/useDropdownMenuRenderItems.d.ts +14 -2
  125. package/dist/components/field/index.d.ts +2 -1
  126. package/dist/components/field/index.js +2 -2
  127. package/dist/components/field/types.d.ts +4 -1
  128. package/dist/components/floating/index.d.ts +3 -0
  129. package/dist/components/floating/index.js +3 -0
  130. package/dist/components/floating/types.d.ts +105 -0
  131. package/dist/components/floating/useFloatingPosition.d.ts +15 -0
  132. package/dist/components/floating/useHoverDisclosure.d.ts +2 -0
  133. package/dist/components/focus-trap/focus-trap.d.ts +31 -0
  134. package/dist/components/focus-trap/index.d.ts +4 -0
  135. package/dist/components/focus-trap/index.js +3 -0
  136. package/dist/components/focus-trap/types.d.ts +41 -0
  137. package/dist/components/focus-trap/useFocusTrap.d.ts +2 -0
  138. package/dist/components/icon-button/index.d.ts +2 -1
  139. package/dist/components/icon-button/index.js +2 -1
  140. package/dist/components/icon-button/types.d.ts +4 -1
  141. package/dist/components/input/index.d.ts +2 -1
  142. package/dist/components/input/index.js +2 -1
  143. package/dist/components/input/input.d.ts +4 -1
  144. package/dist/components/input/types.d.ts +7 -2
  145. package/dist/components/modal/index.d.ts +2 -1
  146. package/dist/components/modal/index.js +2 -2
  147. package/dist/components/modal/modal.d.ts +3 -1
  148. package/dist/components/modal/types.d.ts +11 -1
  149. package/dist/components/modal/useModal.d.ts +7 -4
  150. package/dist/components/number-input/index.d.ts +2 -1
  151. package/dist/components/number-input/index.js +2 -2
  152. package/dist/components/number-input/types.d.ts +7 -2
  153. package/dist/components/number-input/useNumberInput.d.ts +2 -1
  154. package/dist/components/overlay/index.d.ts +2 -1
  155. package/dist/components/overlay/index.js +2 -1
  156. package/dist/components/overlay/types.d.ts +4 -1
  157. package/dist/components/popover/index.d.ts +2 -2
  158. package/dist/components/popover/index.js +2 -2
  159. package/dist/components/popover/popover.d.ts +2 -2
  160. package/dist/components/popover/types.d.ts +20 -11
  161. package/dist/components/popover/usePopover.d.ts +9 -1
  162. package/dist/components/progress/index.d.ts +2 -2
  163. package/dist/components/progress/index.js +2 -2
  164. package/dist/components/progress/types.d.ts +4 -1
  165. package/dist/components/radio/index.d.ts +2 -1
  166. package/dist/components/radio/index.js +2 -2
  167. package/dist/components/radio/radio.d.ts +8 -3
  168. package/dist/components/radio/types.d.ts +37 -4
  169. package/dist/components/radio/useRadio.d.ts +12 -4
  170. package/dist/components/select/index.d.ts +2 -1
  171. package/dist/components/select/index.js +2 -2
  172. package/dist/components/select/select.d.ts +4 -1
  173. package/dist/components/select/types.d.ts +10 -2
  174. package/dist/components/select/useSelect.d.ts +3 -1
  175. package/dist/components/slider/index.d.ts +2 -2
  176. package/dist/components/slider/index.js +2 -2
  177. package/dist/components/slider/range-slider-tooltip.d.ts +3 -0
  178. package/dist/components/slider/range-slider.d.ts +7 -4
  179. package/dist/components/slider/slider.d.ts +4 -1
  180. package/dist/components/slider/sliderCore.d.ts +4 -4
  181. package/dist/components/slider/types.d.ts +22 -4
  182. package/dist/components/slider/useRangeSlider.d.ts +2 -2
  183. package/dist/components/slider/useSlider.d.ts +2 -2
  184. package/dist/components/switch/index.d.ts +2 -1
  185. package/dist/components/switch/index.js +2 -2
  186. package/dist/components/switch/switch.d.ts +4 -1
  187. package/dist/components/switch/types.d.ts +11 -2
  188. package/dist/components/switch/useSwitch.d.ts +3 -1
  189. package/dist/components/tabs/index.d.ts +2 -1
  190. package/dist/components/tabs/index.js +2 -2
  191. package/dist/components/tabs/types.d.ts +13 -4
  192. package/dist/components/teleport-provider/index.d.ts +3 -0
  193. package/dist/components/teleport-provider/index.js +3 -0
  194. package/dist/components/teleport-provider/teleport-provider.d.ts +21 -0
  195. package/dist/components/teleport-provider/types.d.ts +4 -0
  196. package/dist/components/teleport-provider/useTeleportTarget.d.ts +6 -0
  197. package/dist/components/textarea/index.d.ts +2 -1
  198. package/dist/components/textarea/index.js +2 -2
  199. package/dist/components/textarea/textarea.d.ts +4 -1
  200. package/dist/components/textarea/types.d.ts +10 -2
  201. package/dist/components/textarea/useTextarea.d.ts +2 -1
  202. package/dist/components/toast/index.d.ts +3 -2
  203. package/dist/components/toast/index.js +2 -2
  204. package/dist/components/toast/toast-store.d.ts +2 -0
  205. package/dist/components/toast/toast.d.ts +2 -2
  206. package/dist/components/toast/types.d.ts +20 -10
  207. package/dist/components/toast/useToast.d.ts +2 -2
  208. package/dist/components/tooltip/index.d.ts +2 -1
  209. package/dist/components/tooltip/index.js +2 -1
  210. package/dist/components/tooltip/tooltip.d.ts +2 -2
  211. package/dist/components/tooltip/types.d.ts +13 -12
  212. package/dist/components/tooltip/useTooltip.d.ts +12 -2
  213. package/dist/composables/useOverlayLayer.d.ts +32 -0
  214. package/dist/dialog.js +510 -0
  215. package/dist/dropdown-menu.css +191 -108
  216. package/dist/dropdown-menu.js +1954 -198
  217. package/dist/field.css +41 -39
  218. package/dist/field.js +40 -16
  219. package/dist/floating.js +403 -0
  220. package/dist/focus-trap.js +80 -0
  221. package/dist/icon-button.css +193 -189
  222. package/dist/icon-button.js +23 -18
  223. package/dist/icon-button2.js +8 -0
  224. package/dist/index.d.ts +5 -0
  225. package/dist/index.js +39 -32
  226. package/dist/input.css +122 -120
  227. package/dist/input.js +63 -40
  228. package/dist/input2.js +9 -0
  229. package/dist/legacy-unlayered.css +5382 -0
  230. package/dist/modal.css +129 -127
  231. package/dist/modal.js +182 -281
  232. package/dist/number-input.css +87 -85
  233. package/dist/number-input.js +98 -26
  234. package/dist/overlay.css +26 -24
  235. package/dist/overlay.js +17 -9
  236. package/dist/overlay2.js +4 -0
  237. package/dist/popover.css +140 -107
  238. package/dist/popover.js +276 -196
  239. package/dist/popover2.js +6 -1
  240. package/dist/progress.css +101 -99
  241. package/dist/progress.js +50 -28
  242. package/dist/radio.css +114 -105
  243. package/dist/radio.js +237 -61
  244. package/dist/select.css +255 -242
  245. package/dist/select.js +257 -94
  246. package/dist/slider.css +1090 -1031
  247. package/dist/slider.js +443 -175
  248. package/dist/styles-api.d.ts +22 -0
  249. package/dist/styles-api.js +49 -0
  250. package/dist/switch.css +120 -108
  251. package/dist/switch.js +112 -38
  252. package/dist/tabs.css +286 -278
  253. package/dist/tabs.js +60 -21
  254. package/dist/teleport-provider.js +15 -0
  255. package/dist/textarea.css +132 -130
  256. package/dist/textarea.js +83 -31
  257. package/dist/toast.css +229 -225
  258. package/dist/toast.js +189 -118
  259. package/dist/tooltip.css +61 -106
  260. package/dist/tooltip.js +184 -228
  261. package/dist/tooltip2.js +8 -0
  262. package/dist/useControlState.js +4 -0
  263. package/dist/useFloatingPosition.js +1317 -0
  264. package/dist/useFocusTrap.js +130 -0
  265. package/dist/useFormControl.js +107 -0
  266. package/dist/useOverlayLayer.js +262 -0
  267. package/dist/useTeleportTarget.js +40 -0
  268. package/docs/public-floating-api.md +148 -0
  269. package/docs/public-styles-api.md +134 -0
  270. package/docs/public-tokens.md +545 -0
  271. package/package.json +37 -9
  272. package/src/styles/_tokens.scss +33 -28
  273. package/src/styles/_utilities.scss +11 -9
  274. package/src/styles/styles-manifest.json +4125 -0
  275. package/dist/rafScheduler.js +0 -34
  276. package/dist/useClickOutside.js +0 -24
@@ -1,2 +1,2 @@
1
- import { i as alert_default, n as alertRadiuses, r as alertVariants, t as alertColors } from "../../alert.js";
2
- export { alert_default as Alert, alertColors, alertRadiuses, alertVariants };
1
+ import { a as alert_default, i as alertVariants, n as alertParts, r as alertRadiuses, t as alertColors } from "../../alert.js";
2
+ export { alert_default as Alert, alertColors, alertParts, alertRadiuses, alertVariants };
@@ -1,4 +1,7 @@
1
1
  import { ComponentColorValue } from '../../utils/componentColors.js';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export declare const alertParts: readonly ["root", "icon", "title", "description", "body", "action", "close"];
4
+ export type AlertPart = (typeof alertParts)[number];
2
5
  export declare const alertColors: readonly ["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "teal", "green", "lime", "yellow", "orange"];
3
6
  export declare const alertVariants: readonly ["subtle", "surface", "outline", "solid"];
4
7
  export declare const alertRadiuses: readonly ["none", "xs", "sm", "md", "lg", "xl"];
@@ -6,7 +9,7 @@ export type AlertColor = ComponentColorValue;
6
9
  export type AlertVariant = (typeof alertVariants)[number];
7
10
  export type AlertRadius = (typeof alertRadiuses)[number];
8
11
  export type AlertRole = 'alert' | 'status' | 'none';
9
- export interface AlertProps {
12
+ export interface AlertProps extends StylesApiProps<AlertPart> {
10
13
  open?: boolean;
11
14
  title?: string;
12
15
  description?: string;
@@ -1,2 +1,3 @@
1
1
  export { default as AspectRatio } from './aspect-ratio.js';
2
- export type { AspectRatioProps } from './types.js';
2
+ export { aspectRatioParts } from './types.js';
3
+ export type { AspectRatioPart, AspectRatioProps } from './types.js';
@@ -1,2 +1,2 @@
1
- import { t as aspect_ratio_default } from "../../aspect-ratio.js";
2
- export { aspect_ratio_default as AspectRatio };
1
+ import { n as aspect_ratio_default, t as aspectRatioParts } from "../../aspect-ratio.js";
2
+ export { aspect_ratio_default as AspectRatio, aspectRatioParts };
@@ -1,3 +1,6 @@
1
- export interface AspectRatioProps {
1
+ import { StylesApiProps } from '../../styles-api.js';
2
+ export declare const aspectRatioParts: readonly ["root"];
3
+ export type AspectRatioPart = (typeof aspectRatioParts)[number];
4
+ export interface AspectRatioProps extends StylesApiProps<AspectRatioPart> {
2
5
  ratio?: number;
3
6
  }
@@ -1,3 +1,3 @@
1
1
  export { default as Avatar } from './avatar.js';
2
- export { avatarColors, avatarRadiuses, avatarSizes, avatarVariants } from './types.js';
3
- export type { AvatarColor, AvatarProps, AvatarRadius, AvatarSize, AvatarVariant } from './types.js';
2
+ export { avatarColors, avatarParts, avatarRadiuses, avatarSizes, avatarVariants } from './types.js';
3
+ export type { AvatarColor, AvatarPart, AvatarProps, AvatarRadius, AvatarSize, AvatarVariant, } from './types.js';
@@ -1,2 +1,2 @@
1
- import { a as avatar_default, i as avatarVariants, n as avatarRadiuses, r as avatarSizes, t as avatarColors } from "../../avatar.js";
2
- export { avatar_default as Avatar, avatarColors, avatarRadiuses, avatarSizes, avatarVariants };
1
+ import { a as avatarVariants, i as avatarSizes, n as avatarParts, o as avatar_default, r as avatarRadiuses, t as avatarColors } from "../../avatar.js";
2
+ export { avatar_default as Avatar, avatarColors, avatarParts, avatarRadiuses, avatarSizes, avatarVariants };
@@ -1,4 +1,7 @@
1
1
  import { ComponentColorValue } from '../../utils/componentColors.js';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export declare const avatarParts: readonly ["root", "image", "fallback"];
4
+ export type AvatarPart = (typeof avatarParts)[number];
2
5
  export declare const avatarColors: readonly ["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "teal", "green", "lime", "yellow", "orange"];
3
6
  export declare const avatarSizes: readonly ["xs", "sm", "md", "lg", "xl"];
4
7
  export declare const avatarRadiuses: readonly ["none", "xs", "sm", "md", "lg", "xl", "full"];
@@ -7,7 +10,7 @@ export type AvatarColor = ComponentColorValue;
7
10
  export type AvatarSize = (typeof avatarSizes)[number];
8
11
  export type AvatarRadius = (typeof avatarRadiuses)[number];
9
12
  export type AvatarVariant = (typeof avatarVariants)[number];
10
- export interface AvatarProps {
13
+ export interface AvatarProps extends StylesApiProps<AvatarPart> {
11
14
  src?: string | null;
12
15
  alt?: string;
13
16
  ariaLabel?: string;
@@ -1,3 +1,3 @@
1
1
  export { default as Badge } from './badge.js';
2
- export { badgeColors, badgeRadiuses, badgeSizes, badgeVariants } from './types.js';
3
- export type { BadgeColor, BadgeProps, BadgeRadius, BadgeSize, BadgeVariant } from './types.js';
2
+ export { badgeColors, badgeParts, badgeRadiuses, badgeSizes, badgeVariants } from './types.js';
3
+ export type { BadgeColor, BadgePart, BadgeProps, BadgeRadius, BadgeSize, BadgeVariant, } from './types.js';
@@ -1,2 +1,2 @@
1
- import { a as badge_default, i as badgeVariants, n as badgeRadiuses, r as badgeSizes, t as badgeColors } from "../../badge.js";
2
- export { badge_default as Badge, badgeColors, badgeRadiuses, badgeSizes, badgeVariants };
1
+ import { a as badgeVariants, i as badgeSizes, n as badgeParts, o as badge_default, r as badgeRadiuses, t as badgeColors } from "../../badge.js";
2
+ export { badge_default as Badge, badgeColors, badgeParts, badgeRadiuses, badgeSizes, badgeVariants };
@@ -1,4 +1,7 @@
1
1
  import { ComponentColorValue } from '../../utils/componentColors.js';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export declare const badgeParts: readonly ["root", "left", "label", "right"];
4
+ export type BadgePart = (typeof badgeParts)[number];
2
5
  export declare const badgeColors: readonly ["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "teal", "green", "lime", "yellow", "orange"];
3
6
  export declare const badgeSizes: readonly ["xs", "sm", "md", "lg", "xl"];
4
7
  export declare const badgeRadiuses: readonly ["none", "xs", "sm", "md", "lg", "xl", "full"];
@@ -7,7 +10,7 @@ export type BadgeColor = ComponentColorValue;
7
10
  export type BadgeSize = (typeof badgeSizes)[number];
8
11
  export type BadgeRadius = (typeof badgeRadiuses)[number];
9
12
  export type BadgeVariant = (typeof badgeVariants)[number];
10
- export interface BadgeProps {
13
+ export interface BadgeProps extends StylesApiProps<BadgePart> {
11
14
  variant?: BadgeVariant;
12
15
  color?: BadgeColor;
13
16
  autoContrast?: boolean;
@@ -1,2 +1,3 @@
1
1
  export { default as Button } from './button.js';
2
- export type { ButtonColor, ButtonProps, ButtonRadius, ButtonSize, ButtonVariant } from './types.js';
2
+ export { buttonParts } from './types.js';
3
+ export type { ButtonColor, ButtonPart, ButtonProps, ButtonRadius, ButtonSize, ButtonVariant, } from './types.js';
@@ -1,2 +1,2 @@
1
- import { t as button_default } from "../../button.js";
2
- export { button_default as Button };
1
+ import { n as button_default, t as buttonParts } from "../../button.js";
2
+ export { button_default as Button, buttonParts };
@@ -1,9 +1,12 @@
1
1
  import { ComponentColorValue } from '../../utils/componentColors.js';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export declare const buttonParts: readonly ["root", "loader", "left", "label", "right"];
4
+ export type ButtonPart = (typeof buttonParts)[number];
2
5
  export type ButtonColor = ComponentColorValue;
3
6
  export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
7
  export type ButtonRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
8
  export type ButtonVariant = 'solid' | 'subtle' | 'surface' | 'outline' | 'ghost' | 'plain';
6
- export interface ButtonProps {
9
+ export interface ButtonProps extends StylesApiProps<ButtonPart> {
7
10
  variant?: ButtonVariant;
8
11
  color?: ButtonColor;
9
12
  autoContrast?: boolean;
@@ -1,2 +1,3 @@
1
1
  export { default as ButtonGroup } from './button-group.js';
2
- export type { ButtonGroupOrientation, ButtonGroupProps } from './types.js';
2
+ export { buttonGroupParts } from './types.js';
3
+ export type { ButtonGroupOrientation, ButtonGroupPart, ButtonGroupProps } from './types.js';
@@ -1,2 +1,2 @@
1
- import { t as button_group_default } from "../../button-group.js";
2
- export { button_group_default as ButtonGroup };
1
+ import { n as button_group_default, t as buttonGroupParts } from "../../button-group.js";
2
+ export { button_group_default as ButtonGroup, buttonGroupParts };
@@ -1,5 +1,8 @@
1
+ import { StylesApiProps } from '../../styles-api.js';
2
+ export declare const buttonGroupParts: readonly ["root"];
3
+ export type ButtonGroupPart = (typeof buttonGroupParts)[number];
1
4
  export type ButtonGroupOrientation = 'horizontal' | 'vertical';
2
- export interface ButtonGroupProps {
5
+ export interface ButtonGroupProps extends StylesApiProps<ButtonGroupPart> {
3
6
  id?: string;
4
7
  orientation?: ButtonGroupOrientation;
5
8
  attached?: boolean;
@@ -1,2 +1,3 @@
1
1
  export { default as ButtonLink } from './button-link.js';
2
- export type { ButtonLinkColor, ButtonLinkProps, ButtonLinkRadius, ButtonLinkSize, ButtonLinkTarget, ButtonLinkVariant, } from './types.js';
2
+ export { buttonLinkParts } from './types.js';
3
+ export type { ButtonLinkColor, ButtonLinkPart, ButtonLinkProps, ButtonLinkRadius, ButtonLinkSize, ButtonLinkTarget, ButtonLinkVariant, } from './types.js';
@@ -1,2 +1,2 @@
1
- import { t as button_link_default } from "../../button-link.js";
2
- export { button_link_default as ButtonLink };
1
+ import { n as button_link_default, t as buttonLinkParts } from "../../button-link.js";
2
+ export { button_link_default as ButtonLink, buttonLinkParts };
@@ -1,10 +1,13 @@
1
1
  import { ButtonColor, ButtonRadius, ButtonSize, ButtonVariant } from '../button/types.js';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export declare const buttonLinkParts: readonly ["root", "loader", "left", "label", "right"];
4
+ export type ButtonLinkPart = (typeof buttonLinkParts)[number];
2
5
  export type ButtonLinkColor = ButtonColor;
3
6
  export type ButtonLinkSize = ButtonSize;
4
7
  export type ButtonLinkRadius = ButtonRadius;
5
8
  export type ButtonLinkVariant = ButtonVariant;
6
9
  export type ButtonLinkTarget = '_self' | '_blank' | '_parent' | '_top' | (string & {});
7
- export interface ButtonLinkProps {
10
+ export interface ButtonLinkProps extends StylesApiProps<ButtonLinkPart> {
8
11
  href?: string;
9
12
  target?: ButtonLinkTarget;
10
13
  rel?: string;
@@ -1,2 +1,3 @@
1
1
  export { default as Card } from './card.js';
2
- export type { CardLayer, CardPadding, CardProps, CardRadius } from './types.js';
2
+ export { cardParts } from './types.js';
3
+ export type { CardLayer, CardPadding, CardPart, CardProps, CardRadius } from './types.js';
@@ -1,2 +1,2 @@
1
- import { t as card_default } from "../../card.js";
2
- export { card_default as Card };
1
+ import { n as card_default, t as cardParts } from "../../card.js";
2
+ export { card_default as Card, cardParts };
@@ -1,8 +1,11 @@
1
1
  import { HTMLAttributes } from 'vue';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export declare const cardParts: readonly ["root", "header", "title", "description", "body", "footer"];
4
+ export type CardPart = (typeof cardParts)[number];
2
5
  export type CardPadding = 'none' | 'sm' | 'md' | 'lg';
3
6
  export type CardRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
7
  export type CardLayer = 'base' | 'surface' | 'raised';
5
- export interface CardProps {
8
+ export interface CardProps extends StylesApiProps<CardPart> {
6
9
  layer?: CardLayer;
7
10
  padding?: CardPadding;
8
11
  radius?: CardRadius;
@@ -11,5 +14,6 @@ export interface CardProps {
11
14
  footerBorder?: boolean;
12
15
  title?: string;
13
16
  description?: string;
17
+ /** @deprecated Use `classNames.body` instead. */
14
18
  bodyClass?: HTMLAttributes['class'];
15
19
  }
@@ -5,7 +5,10 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
5
5
  }> & (typeof globalThis extends {
6
6
  __VLS_PROPS_FALLBACK: infer P;
7
7
  } ? P : {});
8
- 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;
9
12
  attrs: any;
10
13
  slots: {
11
14
  default?: (props: {}) => any;
@@ -1,2 +1,3 @@
1
1
  export { default as Checkbox } from './checkbox.js';
2
- export type { CheckboxColor, CheckboxProps, CheckboxRadius, CheckboxSize, CheckboxVariant, } from './types.js';
2
+ export { checkboxParts } from './types.js';
3
+ export type { CheckboxColor, CheckboxPart, CheckboxProps, CheckboxRadius, CheckboxSize, CheckboxVariant, } from './types.js';
@@ -1,2 +1,2 @@
1
- import { t as checkbox_default } from "../../checkbox.js";
2
- export { checkbox_default as Checkbox };
1
+ import { n as checkbox_default, t as checkboxParts } from "../../checkbox.js";
2
+ export { checkbox_default as Checkbox, checkboxParts };
@@ -1,12 +1,19 @@
1
+ import { InputHTMLAttributes } from 'vue';
1
2
  import { ComponentColorValue } from '../../utils/componentColors.js';
3
+ import { StylesApiProps } from '../../styles-api.js';
4
+ export declare const checkboxParts: readonly ["root", "input", "indicator", "label"];
5
+ export type CheckboxPart = (typeof checkboxParts)[number];
2
6
  export type CheckboxColor = ComponentColorValue;
3
7
  export type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
8
  export type CheckboxRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
9
  export type CheckboxVariant = 'solid' | 'outline';
6
- export interface CheckboxProps {
10
+ export interface CheckboxProps extends StylesApiProps<CheckboxPart> {
7
11
  id?: string;
8
12
  name?: string;
9
- modelValue: boolean;
13
+ form?: string;
14
+ modelValue?: boolean;
15
+ defaultValue?: boolean;
16
+ value?: string | number;
10
17
  variant?: CheckboxVariant;
11
18
  color?: CheckboxColor;
12
19
  autoContrast?: boolean;
@@ -19,4 +26,6 @@ export interface CheckboxProps {
19
26
  describedby?: string;
20
27
  labelledby?: string;
21
28
  indeterminate?: boolean;
29
+ inputAttrs?: InputHTMLAttributes;
30
+ validationMessage?: string;
22
31
  }
@@ -1,8 +1,10 @@
1
1
  import { CSSProperties } from 'vue';
2
2
  import { CheckboxProps } from './types.js';
3
- export declare function useCheckbox(props: Readonly<CheckboxProps>, emitUpdate: (value: boolean) => void): {
3
+ export declare function useCheckbox(props: Readonly<CheckboxProps>, emitUpdate: (value: boolean) => void, getValue?: () => boolean): {
4
+ inputRef: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
4
5
  control: import('../../composables/useControlState.js').ControlState;
5
6
  rootClass: import('vue').ComputedRef<string[]>;
6
7
  rootStyle: import('vue').ComputedRef<CSSProperties | undefined>;
7
8
  onChange: (e: Event) => void;
9
+ focus: (options?: FocusOptions) => void;
8
10
  };
@@ -1,4 +1,4 @@
1
- import { CollapseProps } from './types.js';
1
+ import { CollapseProps, CollapseTriggerProps } 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.js').CollapseTriggerProps;
12
+ triggerProps: CollapseTriggerProps;
13
13
  isOpen: boolean;
14
14
  open: () => void;
15
15
  close: () => void;
@@ -1,3 +1,4 @@
1
1
  export { default as Collapse } from './collapse.js';
2
2
  export { useCollapse } from './useCollapse.js';
3
- export type { CollapseContentProps, CollapseContentRole, CollapseOption, CollapseProps, CollapseRootProps, CollapseSlotProps, CollapseState, CollapseTriggerProps, CollapseTriggerSlotProps, UseCollapseOptions, UseCollapseReturn, } from './types.js';
3
+ export { collapseParts } from './types.js';
4
+ export type { CollapseContentProps, CollapseContentRole, CollapseOption, CollapsePart, CollapseProps, CollapseRootProps, CollapseSlotProps, CollapseState, CollapseTriggerProps, CollapseTriggerSlotProps, UseCollapseOptions, UseCollapseReturn, } from './types.js';
@@ -1,3 +1,3 @@
1
1
  import { t as useCollapse } from "../../useCollapse.js";
2
- import { t as collapse_default } from "../../collapse.js";
3
- export { collapse_default as Collapse, useCollapse };
2
+ import { n as collapse_default, t as collapseParts } from "../../collapse.js";
3
+ export { collapse_default as Collapse, collapseParts, useCollapse };
@@ -1,4 +1,7 @@
1
- import { ComputedRef, MaybeRefOrGetter } from 'vue';
1
+ import { ComputedRef, HTMLAttributes, MaybeRefOrGetter } from 'vue';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export declare const collapseParts: readonly ["root", "trigger", "content"];
4
+ export type CollapsePart = (typeof collapseParts)[number];
2
5
  export type CollapseState = 'open' | 'closed';
3
6
  export type CollapseContentRole = 'region' | 'group';
4
7
  export type CollapseOption<T> = MaybeRefOrGetter<T>;
@@ -13,6 +16,10 @@ export interface CollapseTriggerProps {
13
16
  'aria-controls': string;
14
17
  'aria-expanded': boolean;
15
18
  'aria-disabled'?: boolean;
19
+ class?: HTMLAttributes['class'];
20
+ style?: HTMLAttributes['style'];
21
+ 'data-state'?: CollapseState;
22
+ 'data-disabled'?: '';
16
23
  onClick: (event: MouseEvent) => void;
17
24
  }
18
25
  export interface CollapseContentProps {
@@ -34,7 +41,7 @@ export interface CollapseSlotProps {
34
41
  export interface CollapseTriggerSlotProps extends CollapseSlotProps {
35
42
  triggerProps: CollapseTriggerProps;
36
43
  }
37
- export interface CollapseProps {
44
+ export interface CollapseProps extends StylesApiProps<CollapsePart> {
38
45
  id?: string;
39
46
  open?: boolean;
40
47
  disabled?: boolean;
@@ -1,2 +1,3 @@
1
1
  export { default as ColorInput } from './color-input.js';
2
- export type { ColorInputProps } from './types.js';
2
+ export { colorInputParts } from './types.js';
3
+ export type { ColorInputPart, ColorInputProps } from './types.js';
@@ -1,2 +1,2 @@
1
- import { t as color_input_default } from "../../color-input.js";
2
- export { color_input_default as ColorInput };
1
+ import { n as color_input_default, t as colorInputParts } from "../../color-input.js";
2
+ export { color_input_default as ColorInput, colorInputParts };
@@ -2,10 +2,15 @@ import { InputHTMLAttributes } from 'vue';
2
2
  import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types.js';
3
3
  import { InputRadius, InputSize } from '../input/types.js';
4
4
  import { PopoverPlacement } from '../popover/types.js';
5
- export interface ColorInputProps {
5
+ import { StylesApiProps } from '../../styles-api.js';
6
+ export declare const colorInputParts: readonly ["root", "control", "input", "preview", "eyeDropper", "content", "picker", "pickerControl", "pickerHandle", "pickerSwatches", "pickerSwatch"];
7
+ export type ColorInputPart = (typeof colorInputParts)[number];
8
+ export interface ColorInputProps extends StylesApiProps<ColorInputPart> {
6
9
  id?: string;
7
10
  name?: string;
8
- modelValue: ColorPickerValue;
11
+ form?: string;
12
+ modelValue?: ColorPickerValue;
13
+ defaultValue?: ColorPickerValue;
9
14
  format?: ColorPickerFormat;
10
15
  size?: InputSize;
11
16
  radius?: InputRadius;
@@ -21,6 +26,7 @@ export interface ColorInputProps {
21
26
  describedby?: string;
22
27
  labelledby?: string;
23
28
  inputAttrs?: InputHTMLAttributes;
29
+ validationMessage?: string;
24
30
  validateColor?: boolean;
25
31
  invalidColorMessage?: string;
26
32
  swatches?: string[];
@@ -4,7 +4,7 @@ interface UseColorInputEmitters {
4
4
  modelValue: (value: ColorPickerValue) => void;
5
5
  open: (value: boolean) => void;
6
6
  }
7
- export declare function useColorInput(props: Readonly<ColorInputProps>, emit: UseColorInputEmitters): {
7
+ export declare function useColorInput(props: Readonly<ColorInputProps>, emit: UseColorInputEmitters, getValue?: () => string): {
8
8
  onInputUpdate: (nextValue: ColorPickerValue) => void;
9
9
  onPickerUpdate: (nextValue: ColorPickerValue) => void;
10
10
  onOpenUpdate: (open: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  import { ColorInputProps } from './types.js';
2
- export declare function useColorInputValue(props: Readonly<ColorInputProps>, isControlInvalid: () => boolean): {
2
+ export declare function useColorInputValue(props: Readonly<ColorInputProps>, isControlInvalid: () => boolean, getValue?: () => string): {
3
3
  previewColor: import('vue').ComputedRef<string | undefined>;
4
4
  hasValidSwatches: import('vue').ComputedRef<boolean>;
5
5
  hasInvalidColor: import('vue').ComputedRef<boolean | undefined>;
@@ -1,3 +1,3 @@
1
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';
2
+ export { colorPickerFormats, colorPickerParts, colorPickerSizes } from './types.js';
3
+ export type { ColorPickerFormat, ColorPickerPart, ColorPickerProps, ColorPickerSelection, ColorPickerSize, ColorPickerValue, } from './types.js';
@@ -1,3 +1,3 @@
1
1
  import { t as color_picker_default } from "../../color-picker.js";
2
- import { n as colorPickerSizes, t as colorPickerFormats } from "../../color-picker2.js";
3
- export { color_picker_default as ColorPicker, colorPickerFormats, colorPickerSizes };
2
+ import { n as colorPickerParts, r as colorPickerSizes, t as colorPickerFormats } from "../../color-picker2.js";
3
+ export { color_picker_default as ColorPicker, colorPickerFormats, colorPickerParts, colorPickerSizes };
@@ -1,3 +1,7 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export declare const colorPickerParts: readonly ["root", "label", "control", "handle", "swatches", "swatch"];
4
+ export type ColorPickerPart = (typeof colorPickerParts)[number];
1
5
  export declare const colorPickerFormats: readonly ["hex", "hexa", "rgb", "rgba", "hsl", "hsla"];
2
6
  export declare const colorPickerSizes: readonly ["xs", "sm", "md", "lg", "xl"];
3
7
  export type ColorPickerFormat = (typeof colorPickerFormats)[number];
@@ -8,7 +12,7 @@ export interface ColorPickerSelection {
8
12
  opacity?: number;
9
13
  }
10
14
  export type ColorPickerValue = string;
11
- export interface ColorPickerProps {
15
+ export interface ColorPickerProps extends StylesApiProps<ColorPickerPart> {
12
16
  id?: string;
13
17
  modelValue: ColorPickerValue;
14
18
  format?: ColorPickerFormat;
@@ -29,6 +33,10 @@ export interface ColorPickerSaturationProps {
29
33
  ariaLabel?: string;
30
34
  describedby?: string;
31
35
  labelledby?: string;
36
+ controlClass?: HTMLAttributes['class'];
37
+ controlStyle?: HTMLAttributes['style'];
38
+ handleClass?: HTMLAttributes['class'];
39
+ handleStyle?: HTMLAttributes['style'];
32
40
  }
33
41
  export type ColorPickerSliderVariant = 'hue' | 'opacity';
34
42
  export interface ColorPickerSliderProps {
@@ -36,4 +44,8 @@ export interface ColorPickerSliderProps {
36
44
  value?: number;
37
45
  color?: string;
38
46
  readonly?: boolean;
47
+ controlClass?: HTMLAttributes['class'];
48
+ controlStyle?: HTMLAttributes['style'];
49
+ handleClass?: HTMLAttributes['class'];
50
+ handleStyle?: HTMLAttributes['style'];
39
51
  }
@@ -1,2 +1,3 @@
1
1
  export { default as ColorSwatch } from './color-swatch.js';
2
- export type { ColorSwatchProps, ColorSwatchSize } from './types.js';
2
+ export { colorSwatchParts } from './types.js';
3
+ export type { ColorSwatchPart, ColorSwatchProps, ColorSwatchSize } from './types.js';
@@ -1,2 +1,3 @@
1
1
  import { t as color_swatch_default } from "../../color-swatch.js";
2
- export { color_swatch_default as ColorSwatch };
2
+ import { t as colorSwatchParts } from "../../color-swatch2.js";
3
+ export { color_swatch_default as ColorSwatch, colorSwatchParts };
@@ -1,5 +1,8 @@
1
+ import { StylesApiProps } from '../../styles-api.js';
2
+ export declare const colorSwatchParts: readonly ["root"];
3
+ export type ColorSwatchPart = (typeof colorSwatchParts)[number];
1
4
  export type ColorSwatchSize = string | number;
2
- export interface ColorSwatchProps {
5
+ export interface ColorSwatchProps extends StylesApiProps<ColorSwatchPart> {
3
6
  color: string;
4
7
  size?: ColorSwatchSize;
5
8
  ariaLabel?: string;
@@ -0,0 +1,21 @@
1
+ import { DialogCloseProps } 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<DialogCloseProps> & (typeof globalThis extends {
4
+ __VLS_PROPS_FALLBACK: infer P;
5
+ } ? P : {});
6
+ expose: (exposed: {}) => void;
7
+ attrs: any;
8
+ slots: {
9
+ default?: (props: {}) => any;
10
+ };
11
+ emit: {};
12
+ }>) => import('vue').VNode & {
13
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
14
+ };
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
18
+ [K in keyof T]: T[K];
19
+ } : {
20
+ [K in keyof T as K]: T[K];
21
+ }) & {};
@@ -0,0 +1,32 @@
1
+ import { DialogCloseReason, DialogContentProps, DialogInteractOutsideEvent } 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<DialogContentProps & {
4
+ onEscapeKeyDown?: ((event: CustomEvent<{
5
+ originalEvent: KeyboardEvent;
6
+ }>) => any) | undefined;
7
+ onPointerDownOutside?: ((event: DialogInteractOutsideEvent) => any) | undefined;
8
+ onInteractOutside?: ((event: DialogInteractOutsideEvent) => any) | undefined;
9
+ }> & (typeof globalThis extends {
10
+ __VLS_PROPS_FALLBACK: infer P;
11
+ } ? P : {});
12
+ expose: (exposed: {}) => void;
13
+ attrs: any;
14
+ slots: {
15
+ default?(props: {
16
+ isOpen: boolean;
17
+ close: (reason?: DialogCloseReason) => void;
18
+ }): unknown;
19
+ };
20
+ emit: ((evt: "escapeKeyDown", event: CustomEvent<{
21
+ originalEvent: KeyboardEvent;
22
+ }>) => void) & ((evt: "pointerDownOutside", event: DialogInteractOutsideEvent) => void) & ((evt: "interactOutside", event: DialogInteractOutsideEvent) => void);
23
+ }>) => import('vue').VNode & {
24
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
25
+ };
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
29
+ [K in keyof T]: T[K];
30
+ } : {
31
+ [K in keyof T as K]: T[K];
32
+ }) & {};
@@ -0,0 +1,27 @@
1
+ import { ComponentPublicInstance, ComputedRef, InjectionKey, Ref } from 'vue';
2
+ import { OverlayLayerContext } from '../../composables/useOverlayLayer.js';
3
+ import { DialogCloseReason } from './types.js';
4
+ export interface DialogRootContext {
5
+ isOpen: ComputedRef<boolean>;
6
+ modal: ComputedRef<boolean>;
7
+ closeOnEscape: ComputedRef<boolean>;
8
+ closeOnOutsideClick: ComputedRef<boolean>;
9
+ returnFocus: ComputedRef<boolean>;
10
+ triggerRef: Ref<HTMLElement | null>;
11
+ contentRef: Ref<HTMLElement | null>;
12
+ contentId: Ref<string>;
13
+ titleIds: Ref<readonly string[]>;
14
+ descriptionIds: Ref<readonly string[]>;
15
+ layer: OverlayLayerContext;
16
+ open: () => void;
17
+ close: (reason?: DialogCloseReason) => void;
18
+ toggle: () => void;
19
+ setTrigger: (element: HTMLElement | null) => void;
20
+ setContent: (element: HTMLElement | null, id: string) => void;
21
+ registerTitle: (id: string) => () => void;
22
+ registerDescription: (id: string) => () => void;
23
+ }
24
+ export declare const dialogRootKey: InjectionKey<DialogRootContext>;
25
+ export declare function resolveDialogCloseReason(reason: unknown): DialogCloseReason;
26
+ export declare function toDialogHTMLElement(value: Element | ComponentPublicInstance | null): HTMLElement | null;
27
+ export declare function createDialogEvent<T>(type: string, detail: T, originalEvent: Event): CustomEvent<T>;
@@ -0,0 +1,21 @@
1
+ import { DialogDescriptionProps } 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<DialogDescriptionProps> & (typeof globalThis extends {
4
+ __VLS_PROPS_FALLBACK: infer P;
5
+ } ? P : {});
6
+ expose: (exposed: {}) => void;
7
+ attrs: any;
8
+ slots: {
9
+ default?: (props: {}) => any;
10
+ };
11
+ emit: {};
12
+ }>) => import('vue').VNode & {
13
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
14
+ };
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
18
+ [K in keyof T]: T[K];
19
+ } : {
20
+ [K in keyof T as K]: T[K];
21
+ }) & {};
@@ -0,0 +1,21 @@
1
+ import { DialogOverlayProps } 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<DialogOverlayProps> & (typeof globalThis extends {
4
+ __VLS_PROPS_FALLBACK: infer P;
5
+ } ? P : {});
6
+ expose: (exposed: {}) => void;
7
+ attrs: any;
8
+ slots: {
9
+ default?: (props: {}) => any;
10
+ };
11
+ emit: {};
12
+ }>) => import('vue').VNode & {
13
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
14
+ };
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
18
+ [K in keyof T]: T[K];
19
+ } : {
20
+ [K in keyof T as K]: T[K];
21
+ }) & {};