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
@@ -1,4 +1,4 @@
1
- import { CollapseProps } from './types';
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').CollapseTriggerProps;
12
+ triggerProps: CollapseTriggerProps;
13
13
  isOpen: boolean;
14
14
  open: () => void;
15
15
  close: () => void;
@@ -1,3 +1,4 @@
1
- export { default as Collapse } from './collapse';
2
- export { useCollapse } from './useCollapse';
3
- export type { CollapseContentProps, CollapseContentRole, CollapseOption, CollapseProps, CollapseRootProps, CollapseSlotProps, CollapseState, CollapseTriggerProps, CollapseTriggerSlotProps, UseCollapseOptions, UseCollapseReturn, } from './types';
1
+ export { default as Collapse } from './collapse.js';
2
+ export { useCollapse } from './useCollapse.js';
3
+ export { 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,2 @@
1
- import { UseCollapseOptions, UseCollapseReturn } from './types';
1
+ import { UseCollapseOptions, UseCollapseReturn } from './types.js';
2
2
  export declare function useCollapse(options?: Readonly<UseCollapseOptions>, emitOpenChange?: (open: boolean) => void): UseCollapseReturn;
@@ -1,4 +1,4 @@
1
- import { ColorInputProps } from './types';
1
+ import { ColorInputProps } from './types.js';
2
2
  declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import('vue').PublicProps & __VLS_PrettifyLocal<ColorInputProps & {
4
4
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
@@ -1,2 +1,3 @@
1
- export { default as ColorInput } from './color-input';
2
- export type { ColorInputProps } from './types';
1
+ export { default as ColorInput } from './color-input.js';
2
+ export { 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 };
@@ -1,8 +1,11 @@
1
1
  import { InputHTMLAttributes } from 'vue';
2
- import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types';
3
- import { InputRadius, InputSize } from '../input/types';
4
- import { PopoverPlacement } from '../popover/types';
5
- export interface ColorInputProps {
2
+ import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types.js';
3
+ import { InputRadius, InputSize } from '../input/types.js';
4
+ import { PopoverPlacement } from '../popover/types.js';
5
+ 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
11
  modelValue: ColorPickerValue;
@@ -27,6 +30,7 @@ export interface ColorInputProps {
27
30
  swatchesPerRow?: number;
28
31
  placement?: PopoverPlacement;
29
32
  open?: boolean;
33
+ keepMounted?: boolean;
30
34
  popoverId?: string;
31
35
  pickerAriaLabel?: string;
32
36
  withEyeDropper?: boolean;
@@ -1,5 +1,5 @@
1
- import { ColorPickerValue } from '../color-picker/types';
2
- import { ColorInputProps } from './types';
1
+ import { ColorPickerValue } from '../color-picker/types.js';
2
+ import { ColorInputProps } from './types.js';
3
3
  interface UseColorInputEmitters {
4
4
  modelValue: (value: ColorPickerValue) => void;
5
5
  open: (value: boolean) => void;
@@ -12,15 +12,15 @@ export declare function useColorInput(props: Readonly<ColorInputProps>, emit: Us
12
12
  isPickingColor: import('vue').Ref<boolean, boolean>;
13
13
  pickScreenColor: (closePicker: () => void) => Promise<void>;
14
14
  getInputTriggerAttrs: (slotProps: unknown) => import('vue').InputHTMLAttributes;
15
- rememberClose: (slotProps: import('../popover').PopoverSlotProps | import('../popover').PopoverContentSlotProps) => void;
16
- onPickerKeydown: (event: KeyboardEvent, popover: import('../popover').PopoverContentSlotProps) => void;
15
+ rememberClose: (slotProps: import('../popover/index.js').PopoverSlotProps | import('../popover/index.js').PopoverContentSlotProps) => void;
16
+ onPickerKeydown: (event: KeyboardEvent, popover: import('../popover/index.js').PopoverContentSlotProps) => void;
17
17
  onFocusOut: (event: FocusEvent) => void;
18
18
  previewColor: import('vue').ComputedRef<string | undefined>;
19
19
  hasValidSwatches: import('vue').ComputedRef<boolean>;
20
20
  hasInvalidColor: import('vue').ComputedRef<boolean | undefined>;
21
21
  isInvalid: import('vue').ComputedRef<boolean | undefined>;
22
22
  colorValidationMessage: import('vue').ComputedRef<string | undefined>;
23
- control: import('../../composables/useControlState').ControlState;
23
+ control: import('../../composables/useControlState.js').ControlState;
24
24
  rootClass: import('vue').ComputedRef<string[]>;
25
25
  popoverDisabled: import('vue').ComputedRef<boolean>;
26
26
  };
@@ -1,4 +1,4 @@
1
- import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types';
1
+ import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types.js';
2
2
  interface UseColorInputEyeDropperOptions {
3
3
  enabled: () => boolean;
4
4
  disabled: () => boolean;
@@ -1,6 +1,6 @@
1
1
  import { InputHTMLAttributes } from 'vue';
2
- import { PopoverContentSlotProps, PopoverSlotProps } from '../popover/types';
3
- import { ColorInputProps } from './types';
2
+ import { PopoverContentSlotProps, PopoverSlotProps } from '../popover/types.js';
3
+ import { ColorInputProps } from './types.js';
4
4
  declare function onPickerKeydown(event: KeyboardEvent, popover: PopoverContentSlotProps): void;
5
5
  export declare function useColorInputPopover(getInputAttrs: () => ColorInputProps['inputAttrs']): {
6
6
  getInputTriggerAttrs: (slotProps: unknown) => InputHTMLAttributes;
@@ -1,4 +1,4 @@
1
- import { ColorInputProps } from './types';
1
+ import { ColorInputProps } from './types.js';
2
2
  export declare function useColorInputValue(props: Readonly<ColorInputProps>, isControlInvalid: () => boolean): {
3
3
  previewColor: import('vue').ComputedRef<string | undefined>;
4
4
  hasValidSwatches: import('vue').ComputedRef<boolean>;
@@ -1,4 +1,4 @@
1
- import { ColorPickerSaturationProps, ColorPickerSelection } from './types';
1
+ import { ColorPickerSaturationProps, ColorPickerSelection } from './types.js';
2
2
  declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import('vue').PublicProps & __VLS_PrettifyLocal<ColorPickerSaturationProps & {
4
4
  "onUpdate:modelValue"?: ((value: ColorPickerSelection) => any) | undefined;
@@ -1,4 +1,4 @@
1
- import { ColorPickerSliderProps } from './types';
1
+ import { ColorPickerSliderProps } from './types.js';
2
2
  declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import('vue').PublicProps & __VLS_PrettifyLocal<ColorPickerSliderProps & {
4
4
  "onUpdate:value"?: ((value: number) => any) | undefined;
@@ -1,4 +1,4 @@
1
- import { ColorPickerFormat } from './types';
1
+ import { ColorPickerFormat } from './types.js';
2
2
  export declare const DEFAULT_HUE = 0;
3
3
  export declare const HUE_MAX = 359;
4
4
  export declare const KEYBOARD_STEP = 1;
@@ -1,4 +1,4 @@
1
- import { ColorPickerProps } from './types';
1
+ import { ColorPickerProps } from './types.js';
2
2
  declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import('vue').PublicProps & __VLS_PrettifyLocal<ColorPickerProps & {
4
4
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
@@ -1,3 +1,3 @@
1
- export { default as ColorPicker } from './color-picker';
2
- export { colorPickerFormats, colorPickerSizes } from './types';
3
- export type { ColorPickerFormat, ColorPickerProps, ColorPickerSelection, ColorPickerSize, ColorPickerValue, } from './types';
1
+ export { default as ColorPicker } from './color-picker.js';
2
+ export { colorPickerFormats, 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,11 +1,16 @@
1
1
  import { Ref } from 'vue';
2
+ export interface ColorPickerPointerCoordinates {
3
+ clientX: number;
4
+ clientY: number;
5
+ }
2
6
  interface UseColorPickerDragOptions {
3
7
  target: Ref<HTMLElement | null>;
4
8
  focusTarget?: Ref<HTMLElement | null>;
5
9
  readonly: () => boolean;
6
- updateFromPointer: (event: PointerEvent, target: HTMLElement) => void;
10
+ isGeometryValid: (rect: DOMRect) => boolean;
11
+ updateFromPointer: (pointer: ColorPickerPointerCoordinates, rect: DOMRect) => void;
7
12
  }
8
- export declare function useColorPickerDrag({ target, focusTarget, readonly, updateFromPointer, }: UseColorPickerDragOptions): {
13
+ export declare function useColorPickerDrag({ target, focusTarget, readonly, isGeometryValid, updateFromPointer, }: UseColorPickerDragOptions): {
9
14
  onPointerDown: (event: PointerEvent) => void;
10
15
  };
11
16
  export {};
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { ColorPickerProps } from './types';
2
+ import { ColorPickerProps } from './types.js';
3
3
  type ColorPickerSwatchesProps = Readonly<Pick<ColorPickerProps, 'swatches' | 'swatchesPerRow'>>;
4
4
  interface UseColorPickerSwatchesOptions {
5
5
  isSelected: (swatch: string) => boolean;
@@ -1,5 +1,5 @@
1
- import { ColorPickerHsvColor } from './color-picker-utils';
2
- import { ColorPickerProps, ColorPickerSelection, ColorPickerValue } from './types';
1
+ import { ColorPickerHsvColor } from './color-picker-utils.js';
2
+ import { ColorPickerProps, ColorPickerSelection, ColorPickerValue } from './types.js';
3
3
  type ColorPickerValueProps = Readonly<Pick<ColorPickerProps, 'modelValue' | 'format' | 'readonly'>>;
4
4
  export declare function useColorPickerValue(props: ColorPickerValueProps, emitUpdate: (value: ColorPickerValue) => void): {
5
5
  selectedColor: import('vue').ComputedRef<ColorPickerHsvColor>;
@@ -1,4 +1,4 @@
1
- import { ColorSwatchProps } from './types';
1
+ import { ColorSwatchProps } from './types.js';
2
2
  declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import('vue').PublicProps & __VLS_PrettifyLocal<ColorSwatchProps> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
@@ -1,2 +1,3 @@
1
- export { default as ColorSwatch } from './color-swatch';
2
- export type { ColorSwatchProps, ColorSwatchSize } from './types';
1
+ export { default as ColorSwatch } from './color-swatch.js';
2
+ export { 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;
@@ -1,15 +1,24 @@
1
- import { PropType } from 'vue';
2
- import { DropdownMenuRenderedItem } from './types';
1
+ import { PropType, VNode } from 'vue';
2
+ import { DropdownMenuItem } from './types.js';
3
+ import { DropdownMenuRenderContext } from './useDropdownMenuRenderItems.js';
3
4
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ context: {
6
+ readonly type: PropType<DropdownMenuRenderContext>;
7
+ readonly required: true;
8
+ };
4
9
  items: {
5
- type: PropType<DropdownMenuRenderedItem[]>;
10
+ type: PropType<DropdownMenuItem[]>;
6
11
  required: true;
7
12
  };
8
- }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
13
+ }>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
9
14
  [key: string]: any;
10
- }>[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ context: {
17
+ readonly type: PropType<DropdownMenuRenderContext>;
18
+ readonly required: true;
19
+ };
11
20
  items: {
12
- type: PropType<DropdownMenuRenderedItem[]>;
21
+ type: PropType<DropdownMenuItem[]>;
13
22
  required: true;
14
23
  };
15
24
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;