ropav 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/dist/accordion.css +10 -10
  2. package/dist/accordion.js +2 -2
  3. package/dist/alert.css +109 -0
  4. package/dist/alert.js +168 -0
  5. package/dist/aspect-ratio.css +17 -0
  6. package/dist/aspect-ratio.js +26 -0
  7. package/dist/avatar.css +97 -0
  8. package/dist/avatar.js +161 -0
  9. package/dist/badge.css +40 -115
  10. package/dist/badge.js +19 -16
  11. package/dist/base.css +609 -180
  12. package/dist/button-link.css +161 -0
  13. package/dist/button-link.js +108 -0
  14. package/dist/button.css +50 -229
  15. package/dist/button.js +7 -9
  16. package/dist/card.css +12 -12
  17. package/dist/check.js +12 -0
  18. package/dist/checkbox.css +16 -57
  19. package/dist/checkbox.js +14 -31
  20. package/dist/collapse.css +2 -2
  21. package/dist/collapse.js +1 -1
  22. package/dist/color-input.css +108 -0
  23. package/dist/color-input.js +349 -0
  24. package/dist/color-picker.css +304 -0
  25. package/dist/color-picker.js +797 -0
  26. package/dist/color-picker2.js +18 -0
  27. package/dist/color-swatch.css +50 -0
  28. package/dist/color-swatch.js +73 -0
  29. package/dist/color.js +190 -0
  30. package/dist/componentColors.js +206 -13
  31. package/dist/components/accordion/accordion-item.d.ts +4 -4
  32. package/dist/components/accordion/accordion.d.ts +1 -1
  33. package/dist/components/accordion/index.d.ts +4 -4
  34. package/dist/components/accordion/types.d.ts +1 -1
  35. package/dist/components/accordion/useAccordion.d.ts +1 -1
  36. package/dist/components/alert/alert.d.ts +30 -0
  37. package/dist/components/alert/index.d.ts +3 -0
  38. package/dist/components/alert/index.js +2 -0
  39. package/dist/components/alert/types.d.ts +20 -0
  40. package/dist/components/alert/useAlertColor.d.ts +3 -0
  41. package/dist/components/aspect-ratio/aspect-ratio.d.ts +21 -0
  42. package/dist/components/aspect-ratio/index.d.ts +2 -0
  43. package/dist/components/aspect-ratio/index.js +2 -0
  44. package/dist/components/aspect-ratio/types.d.ts +3 -0
  45. package/dist/components/avatar/avatar.d.ts +24 -0
  46. package/dist/components/avatar/index.d.ts +3 -0
  47. package/dist/components/avatar/index.js +2 -0
  48. package/dist/components/avatar/types.d.ts +20 -0
  49. package/dist/components/avatar/useAvatarColor.d.ts +3 -0
  50. package/dist/components/badge/badge.d.ts +1 -1
  51. package/dist/components/badge/index.d.ts +3 -3
  52. package/dist/components/badge/types.d.ts +3 -2
  53. package/dist/components/badge/useBadgeColor.d.ts +3 -8
  54. package/dist/components/button/button.d.ts +1 -1
  55. package/dist/components/button/index.d.ts +2 -2
  56. package/dist/components/button/types.d.ts +2 -1
  57. package/dist/components/button/useButtonColor.d.ts +3 -13
  58. package/dist/components/button-group/button-group.d.ts +1 -1
  59. package/dist/components/button-group/index.d.ts +2 -2
  60. package/dist/components/button-link/button-link.d.ts +27 -0
  61. package/dist/components/button-link/index.d.ts +2 -0
  62. package/dist/components/button-link/index.js +2 -0
  63. package/dist/components/button-link/types.d.ts +20 -0
  64. package/dist/components/card/card.d.ts +1 -1
  65. package/dist/components/card/index.d.ts +2 -2
  66. package/dist/components/checkbox/checkbox.d.ts +1 -1
  67. package/dist/components/checkbox/index.d.ts +2 -2
  68. package/dist/components/checkbox/types.d.ts +2 -1
  69. package/dist/components/checkbox/useCheckbox.d.ts +4 -6
  70. package/dist/components/collapse/collapse.d.ts +2 -2
  71. package/dist/components/collapse/index.d.ts +3 -3
  72. package/dist/components/collapse/useCollapse.d.ts +1 -1
  73. package/dist/components/color-input/color-input.d.ts +29 -0
  74. package/dist/components/color-input/index.d.ts +2 -0
  75. package/dist/components/color-input/index.js +2 -0
  76. package/dist/components/color-input/types.d.ts +35 -0
  77. package/dist/components/color-input/useColorInput.d.ts +27 -0
  78. package/dist/components/color-input/useColorInputEyeDropper.d.ts +13 -0
  79. package/dist/components/color-input/useColorInputPopover.d.ts +11 -0
  80. package/dist/components/color-input/useColorInputValue.d.ts +8 -0
  81. package/dist/components/color-picker/color-picker-saturation.d.ts +21 -0
  82. package/dist/components/color-picker/color-picker-slider.d.ts +21 -0
  83. package/dist/components/color-picker/color-picker-utils.d.ts +23 -0
  84. package/dist/components/color-picker/color-picker.d.ts +23 -0
  85. package/dist/components/color-picker/index.d.ts +3 -0
  86. package/dist/components/color-picker/index.js +3 -0
  87. package/dist/components/color-picker/types.d.ts +39 -0
  88. package/dist/components/color-picker/useColorPickerDrag.d.ts +16 -0
  89. package/dist/components/color-picker/useColorPickerSwatches.d.ts +21 -0
  90. package/dist/components/color-picker/useColorPickerValue.d.ts +15 -0
  91. package/dist/components/color-swatch/color-swatch.d.ts +21 -0
  92. package/dist/components/color-swatch/index.d.ts +2 -0
  93. package/dist/components/color-swatch/index.js +2 -0
  94. package/dist/components/color-swatch/types.d.ts +6 -0
  95. package/dist/components/color-swatch/useColorSwatchColor.d.ts +5 -0
  96. package/dist/components/dropdown-menu/dropdown-menu-items.d.ts +15 -6
  97. package/dist/components/dropdown-menu/dropdown-menu-utils.d.ts +1 -1
  98. package/dist/components/dropdown-menu/dropdown-menu.d.ts +3 -3
  99. package/dist/components/dropdown-menu/index.d.ts +3 -3
  100. package/dist/components/dropdown-menu/useDropdownMenu.d.ts +11 -10
  101. package/dist/components/dropdown-menu/useDropdownMenuDisclosure.d.ts +2 -2
  102. package/dist/components/dropdown-menu/useDropdownMenuDom.d.ts +2 -2
  103. package/dist/components/dropdown-menu/useDropdownMenuHoverIntent.d.ts +2 -2
  104. package/dist/components/dropdown-menu/useDropdownMenuInteractions.d.ts +2 -2
  105. package/dist/components/dropdown-menu/useDropdownMenuNavigation.d.ts +3 -3
  106. package/dist/components/dropdown-menu/useDropdownMenuRenderItems.d.ts +12 -4
  107. package/dist/components/dropdown-menu/useDropdownSubmenus.d.ts +3 -3
  108. package/dist/components/field/field.d.ts +2 -2
  109. package/dist/components/field/index.d.ts +2 -2
  110. package/dist/components/field/types.d.ts +0 -2
  111. package/dist/components/field/useField.d.ts +1 -3
  112. package/dist/components/icon-button/icon-button.d.ts +1 -1
  113. package/dist/components/icon-button/index.d.ts +2 -2
  114. package/dist/components/icon-button/types.d.ts +2 -1
  115. package/dist/components/input/index.d.ts +2 -2
  116. package/dist/components/input/input.d.ts +1 -1
  117. package/dist/components/input/types.d.ts +3 -0
  118. package/dist/components/input/useInput.d.ts +2 -2
  119. package/dist/components/modal/index.d.ts +2 -2
  120. package/dist/components/modal/modal.d.ts +1 -1
  121. package/dist/components/modal/types.d.ts +1 -1
  122. package/dist/components/modal/useModal.d.ts +1 -1
  123. package/dist/components/number-input/index.d.ts +2 -0
  124. package/dist/components/number-input/index.js +2 -0
  125. package/dist/components/number-input/number-input.d.ts +29 -0
  126. package/dist/components/number-input/types.d.ts +34 -0
  127. package/dist/components/number-input/useNumberInput.d.ts +31 -0
  128. package/dist/components/overlay/index.d.ts +2 -2
  129. package/dist/components/overlay/overlay.d.ts +1 -1
  130. package/dist/components/overlay/useOverlay.d.ts +1 -1
  131. package/dist/components/popover/index.d.ts +3 -2
  132. package/dist/components/popover/index.js +2 -1
  133. package/dist/components/popover/popover.d.ts +2 -2
  134. package/dist/components/popover/types.d.ts +3 -1
  135. package/dist/components/popover/usePopover.d.ts +2 -1
  136. package/dist/components/progress/index.d.ts +3 -3
  137. package/dist/components/progress/progress.d.ts +1 -1
  138. package/dist/components/progress/types.d.ts +2 -2
  139. package/dist/components/progress/useProgress.d.ts +2 -2
  140. package/dist/components/radio/index.d.ts +3 -3
  141. package/dist/components/radio/radio-group.d.ts +1 -1
  142. package/dist/components/radio/radio.d.ts +1 -1
  143. package/dist/components/radio/types.d.ts +4 -1
  144. package/dist/components/radio/useRadio.d.ts +4 -6
  145. package/dist/components/select/index.d.ts +2 -2
  146. package/dist/components/select/select.d.ts +1 -1
  147. package/dist/components/select/types.d.ts +3 -0
  148. package/dist/components/select/useSelect.d.ts +2 -2
  149. package/dist/components/slider/index.d.ts +4 -3
  150. package/dist/components/slider/index.js +2 -2
  151. package/dist/components/slider/range-slider-tooltip.d.ts +34 -0
  152. package/dist/components/slider/range-slider.d.ts +37 -0
  153. package/dist/components/slider/slider.d.ts +1 -1
  154. package/dist/components/slider/sliderCore.d.ts +35 -0
  155. package/dist/components/slider/types.d.ts +15 -6
  156. package/dist/components/slider/useRangeSlider.d.ts +57 -0
  157. package/dist/components/slider/useRangeSliderPointer.d.ts +19 -0
  158. package/dist/components/slider/useRangeSliderTooltipCollision.d.ts +36 -0
  159. package/dist/components/slider/useRangeSliderTooltipState.d.ts +23 -0
  160. package/dist/components/slider/useSlider.d.ts +11 -15
  161. package/dist/components/switch/index.d.ts +2 -2
  162. package/dist/components/switch/switch.d.ts +1 -1
  163. package/dist/components/switch/types.d.ts +1 -1
  164. package/dist/components/switch/useSwitch.d.ts +4 -5
  165. package/dist/components/tabs/index.d.ts +6 -6
  166. package/dist/components/tabs/tabs-content.d.ts +2 -2
  167. package/dist/components/tabs/tabs-list.d.ts +4 -4
  168. package/dist/components/tabs/tabs-trigger.d.ts +5 -5
  169. package/dist/components/tabs/tabs.d.ts +5 -5
  170. package/dist/components/tabs/useTabs.d.ts +1 -1
  171. package/dist/components/textarea/index.d.ts +2 -2
  172. package/dist/components/textarea/textarea.d.ts +1 -1
  173. package/dist/components/textarea/useTextarea.d.ts +2 -2
  174. package/dist/components/toast/defaults.d.ts +7 -0
  175. package/dist/components/toast/index.d.ts +7 -0
  176. package/dist/components/toast/index.js +2 -0
  177. package/dist/components/toast/toast-provider.d.ts +21 -0
  178. package/dist/components/toast/toast-viewport.d.ts +34 -0
  179. package/dist/components/toast/toast.d.ts +31 -0
  180. package/dist/components/toast/types.d.ts +106 -0
  181. package/dist/components/toast/useToast.d.ts +4 -0
  182. package/dist/components/toast/useToastColor.d.ts +3 -0
  183. package/dist/components/toast/useToastState.d.ts +2 -0
  184. package/dist/components/tooltip/index.d.ts +2 -2
  185. package/dist/components/tooltip/tooltip.d.ts +2 -2
  186. package/dist/components/tooltip/types.d.ts +2 -1
  187. package/dist/components/tooltip/useTooltip.d.ts +3 -1
  188. package/dist/dropdown-menu.css +17 -17
  189. package/dist/dropdown-menu.js +160 -39
  190. package/dist/field.css +15 -18
  191. package/dist/field.js +17 -35
  192. package/dist/icon-button.css +57 -236
  193. package/dist/icon-button.js +5 -6
  194. package/dist/index.d.ts +31 -22
  195. package/dist/index.js +17 -4
  196. package/dist/input.css +40 -46
  197. package/dist/input.js +39 -21
  198. package/dist/minus.js +12 -0
  199. package/dist/modal.css +9 -9
  200. package/dist/modal.js +1 -1
  201. package/dist/number-input.css +86 -0
  202. package/dist/number-input.js +350 -0
  203. package/dist/overlay.css +5 -5
  204. package/dist/overlay.js +3 -3
  205. package/dist/popover.css +62 -29
  206. package/dist/popover.js +33 -19
  207. package/dist/popover2.js +17 -0
  208. package/dist/progress.css +9 -30
  209. package/dist/progress.js +3 -6
  210. package/dist/radio.css +34 -62
  211. package/dist/radio.js +28 -16
  212. package/dist/rafScheduler.js +34 -0
  213. package/dist/select.css +105 -61
  214. package/dist/select.js +12 -8
  215. package/dist/slider.css +719 -125
  216. package/dist/slider.js +1251 -149
  217. package/dist/switch.css +19 -44
  218. package/dist/switch.js +4 -5
  219. package/dist/tabs.css +36 -36
  220. package/dist/tabs.js +1 -1
  221. package/dist/textarea.css +33 -25
  222. package/dist/textarea.js +8 -2
  223. package/dist/toast.css +232 -0
  224. package/dist/toast.js +679 -0
  225. package/dist/tooltip.css +7 -35
  226. package/dist/tooltip.js +30 -18
  227. package/dist/useButtonColor.js +16 -14
  228. package/dist/utils/componentColors.d.ts +60 -0
  229. package/package.json +55 -15
  230. package/src/styles/_mixins.scss +25 -41
  231. package/src/styles/_tokens.scss +615 -182
  232. package/src/styles/_variables.scss +177 -49
@@ -1,4 +1,4 @@
1
- import { ComponentColorValue } from '../../utils/componentColors';
1
+ import { ComponentColorValue } from '../../utils/componentColors.js';
2
2
  export type SwitchColor = ComponentColorValue;
3
3
  export type SwitchSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
4
  export interface SwitchProps {
@@ -1,9 +1,8 @@
1
- import { SwitchProps } from './types';
1
+ import { CSSProperties } from 'vue';
2
+ import { SwitchProps } from './types.js';
2
3
  export declare function useSwitch(props: Readonly<SwitchProps>, emitUpdate: (value: boolean) => void): {
3
- control: import('../../composables/useControlState').ControlState;
4
+ control: import('../../composables/useControlState.js').ControlState;
4
5
  rootClass: import('vue').ComputedRef<string[]>;
5
- rootStyle: import('vue').ComputedRef<{
6
- '--_rp-switch-custom-color': string & {};
7
- } | undefined>;
6
+ rootStyle: import('vue').ComputedRef<CSSProperties | undefined>;
8
7
  onChange: (e: Event) => void;
9
8
  };
@@ -1,6 +1,6 @@
1
- export { default as Tabs } from './tabs';
2
- export { default as TabsContent } from './tabs-content';
3
- export { default as TabsList } from './tabs-list';
4
- export { default as TabsTrigger } from './tabs-trigger';
5
- export { useTabs, useTabsContent, useTabsList, useTabsTrigger } from './useTabs';
6
- export type { TabsActivationMode, TabsContentProps, TabsContentRootProps, TabsContentSlotProps, TabsListProps, TabsListRootProps, TabsListSlotProps, TabsOrientation, TabsPlacement, TabsProps, TabsRootProps, TabsSlotProps, TabsState, TabsSize, TabsTriggerAlign, TabsTriggerProps, TabsTriggerRootProps, TabsTriggerSlotProps, TabsValue, TabsVariant, UseTabsContentReturn, UseTabsListReturn, UseTabsReturn, UseTabsTriggerReturn, } from './types';
1
+ export { default as Tabs } from './tabs.js';
2
+ export { default as TabsContent } from './tabs-content.js';
3
+ export { default as TabsList } from './tabs-list.js';
4
+ export { default as TabsTrigger } from './tabs-trigger.js';
5
+ export { useTabs, useTabsContent, useTabsList, useTabsTrigger } from './useTabs.js';
6
+ export type { TabsActivationMode, TabsContentProps, TabsContentRootProps, TabsContentSlotProps, TabsListProps, TabsListRootProps, TabsListSlotProps, TabsOrientation, TabsPlacement, TabsProps, TabsRootProps, TabsSlotProps, TabsState, TabsSize, TabsTriggerAlign, TabsTriggerProps, TabsTriggerRootProps, TabsTriggerSlotProps, TabsValue, TabsVariant, UseTabsContentReturn, UseTabsListReturn, UseTabsReturn, UseTabsTriggerReturn, } from './types.js';
@@ -1,4 +1,4 @@
1
- import { TabsContentProps } from './types';
1
+ import { TabsContentProps } 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<TabsContentProps> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
@@ -7,7 +7,7 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
7
7
  attrs: any;
8
8
  slots: {
9
9
  default?: (props: {
10
- value: import('./types').TabsValue;
10
+ value: import('./types.js').TabsValue;
11
11
  selected: boolean;
12
12
  }) => any;
13
13
  };
@@ -1,4 +1,4 @@
1
- import { TabsListProps } from './types';
1
+ import { TabsListProps } 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<TabsListProps> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
@@ -8,9 +8,9 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
8
8
  slots: {
9
9
  default?: (props: {
10
10
  disabled: boolean;
11
- variant: import('./types').TabsVariant;
12
- orientation: import('./types').TabsOrientation;
13
- placement: import('./types').TabsPlacement;
11
+ variant: import('./types.js').TabsVariant;
12
+ orientation: import('./types.js').TabsOrientation;
13
+ placement: import('./types.js').TabsPlacement;
14
14
  }) => any;
15
15
  };
16
16
  emit: {};
@@ -1,4 +1,4 @@
1
- import { TabsTriggerProps } from './types';
1
+ import { TabsTriggerProps } 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<TabsTriggerProps> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
@@ -7,12 +7,12 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
7
7
  attrs: any;
8
8
  slots: {
9
9
  default?: (props: {
10
- value: import('./types').TabsValue;
10
+ value: import('./types.js').TabsValue;
11
11
  selected: boolean;
12
- size: import('./types').TabsSize;
13
- variant: import('./types').TabsVariant;
12
+ size: import('./types.js').TabsSize;
13
+ variant: import('./types.js').TabsVariant;
14
14
  disabled: boolean;
15
- align: import('./types').TabsTriggerAlign;
15
+ align: import('./types.js').TabsTriggerAlign;
16
16
  select: () => void;
17
17
  }) => any;
18
18
  };
@@ -1,4 +1,4 @@
1
- import { TabsProps, TabsValue } from './types';
1
+ import { TabsProps, TabsValue } 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<TabsProps & {
4
4
  "onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
@@ -10,11 +10,11 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
10
10
  slots: {
11
11
  default?: (props: {
12
12
  value: TabsValue | null;
13
- size: import('./types').TabsSize;
14
- variant: import('./types').TabsVariant;
13
+ size: import('./types.js').TabsSize;
14
+ variant: import('./types.js').TabsVariant;
15
15
  disabled: boolean;
16
- placement: import('./types').TabsPlacement;
17
- align: import('./types').TabsTriggerAlign;
16
+ placement: import('./types.js').TabsPlacement;
17
+ align: import('./types.js').TabsTriggerAlign;
18
18
  select: (value: TabsValue) => void;
19
19
  }) => any;
20
20
  };
@@ -1,4 +1,4 @@
1
- import { TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TabsValue, UseTabsContentReturn, UseTabsListReturn, UseTabsReturn, UseTabsTriggerReturn } from './types';
1
+ import { TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TabsValue, UseTabsContentReturn, UseTabsListReturn, UseTabsReturn, UseTabsTriggerReturn } from './types.js';
2
2
  export declare function useTabs(props: Readonly<TabsProps>, emitUpdate: (value: TabsValue) => void): UseTabsReturn;
3
3
  export declare function useTabsList(props: Readonly<TabsListProps>): UseTabsListReturn;
4
4
  export declare function useTabsTrigger(props: Readonly<TabsTriggerProps>): UseTabsTriggerReturn;
@@ -1,2 +1,2 @@
1
- export { default as Textarea } from './textarea';
2
- export type { TextareaProps, TextareaRadius, TextareaResize, TextareaSize } from './types';
1
+ export { default as Textarea } from './textarea.js';
2
+ export type { TextareaProps, TextareaRadius, TextareaResize, TextareaSize } from './types.js';
@@ -1,4 +1,4 @@
1
- import { TextareaProps } from './types';
1
+ import { TextareaProps } 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<TextareaProps & {
4
4
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
@@ -1,7 +1,7 @@
1
- import { TextareaProps } from './types';
1
+ import { TextareaProps } from './types.js';
2
2
  export declare function useTextarea(props: Readonly<TextareaProps>, emitUpdate: (value: string) => void): {
3
3
  textareaRef: import('vue').Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
4
- control: import('../../composables/useControlState').ControlState;
4
+ control: import('../../composables/useControlState.js').ControlState;
5
5
  rootClass: import('vue').ComputedRef<string[]>;
6
6
  nativeRows: import('vue').ComputedRef<number | undefined>;
7
7
  onInput: (e: Event) => void;
@@ -0,0 +1,7 @@
1
+ export declare const DEFAULT_TOAST_MAX = 5;
2
+ export declare const DEFAULT_TOAST_DURATION = 5000;
3
+ export declare const DEFAULT_TOAST_ROLE = "status";
4
+ export declare const DEFAULT_TOAST_PAUSE_ON_HOVER = true;
5
+ export declare const DEFAULT_TOAST_PAUSE_ON_FOCUS = true;
6
+ export declare const DEFAULT_TOAST_CLOSABLE = true;
7
+ export declare const DEFAULT_TOAST_CLOSE_LABEL = "Close toast";
@@ -0,0 +1,7 @@
1
+ export { default as Toast } from './toast.js';
2
+ export { default as ToastProvider } from './toast-provider.js';
3
+ export { default as ToastViewport } from './toast-viewport.js';
4
+ export { toastColors, toastPositions, toastRadiuses, toastTypes, toastVariants } from './types.js';
5
+ export { useToast } from './useToast.js';
6
+ export { useToastState } from './useToastState.js';
7
+ export type { ToastCloseReason, ToastColor, ToastCreate, ToastId, ToastInput, ToastItem, ToastOptions, ToastPosition, ToastProps, ToastProviderContext, ToastProviderProps, ToastRadius, ToastRole, ToastStateBindingProps, ToastStateOption, ToastType, ToastUpdateOptions, ToastVariant, ToastViewportProps, ToastViewportSlotProps, UseToastReturn, UseToastStateOptions, UseToastStateReturn, } from './types.js';
@@ -0,0 +1,2 @@
1
+ import { a as toastColors, c as toastTypes, i as useToast, l as toastVariants, n as toast_viewport_default, o as toastPositions, r as toast_provider_default, s as toastRadiuses, t as useToastState, u as toast_default } from "../../toast.js";
2
+ export { toast_default as Toast, toast_provider_default as ToastProvider, toast_viewport_default as ToastViewport, toastColors, toastPositions, toastRadiuses, toastTypes, toastVariants, useToast, useToastState };
@@ -0,0 +1,21 @@
1
+ import { ToastProviderProps } 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<ToastProviderProps> & (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,34 @@
1
+ import { ToastItem, ToastViewportProps } 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<ToastViewportProps> & (typeof globalThis extends {
4
+ __VLS_PROPS_FALLBACK: infer P;
5
+ } ? P : {});
6
+ expose: (exposed: {}) => void;
7
+ attrs: any;
8
+ slots: {
9
+ icon?: (props: {
10
+ toast: ToastItem;
11
+ dismiss: () => void;
12
+ }) => any;
13
+ } & {
14
+ default?: (props: {
15
+ toast: ToastItem;
16
+ dismiss: () => void;
17
+ }) => any;
18
+ } & {
19
+ action?: (props: {
20
+ toast: ToastItem;
21
+ dismiss: () => void;
22
+ }) => any;
23
+ };
24
+ emit: {};
25
+ }>) => import('vue').VNode & {
26
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
27
+ };
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
31
+ [K in keyof T]: T[K];
32
+ } : {
33
+ [K in keyof T as K]: T[K];
34
+ }) & {};
@@ -0,0 +1,31 @@
1
+ import { ToastCloseReason, ToastProps } 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<ToastProps & {
4
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
5
+ onClose?: ((reason: ToastCloseReason) => any) | undefined;
6
+ "onAfter-leave"?: (() => any) | undefined;
7
+ }> & (typeof globalThis extends {
8
+ __VLS_PROPS_FALLBACK: infer P;
9
+ } ? P : {});
10
+ expose: (exposed: {}) => void;
11
+ attrs: any;
12
+ slots: {
13
+ icon?: (props: {}) => any;
14
+ } & {
15
+ title?: (props: {}) => any;
16
+ } & {
17
+ default?: (props: {}) => any;
18
+ } & {
19
+ action?: (props: {}) => any;
20
+ };
21
+ emit: ((evt: "update:open", value: boolean) => void) & ((evt: "close", reason: ToastCloseReason) => void) & ((evt: "after-leave") => 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,106 @@
1
+ import { ComputedRef, InjectionKey, MaybeRefOrGetter } from 'vue';
2
+ import { ComponentColorValue } from '../../utils/componentColors.js';
3
+ export declare const toastColors: readonly ["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "teal", "green", "lime", "yellow", "orange"];
4
+ export declare const toastVariants: readonly ["subtle", "surface", "outline", "solid"];
5
+ export declare const toastRadiuses: readonly ["none", "xs", "sm", "md", "lg", "xl"];
6
+ export declare const toastPositions: readonly ["top-left", "top-center", "top-right", "bottom-left", "bottom-center", "bottom-right"];
7
+ export declare const toastTypes: readonly ["default", "success", "error", "warning", "info"];
8
+ export type ToastColor = ComponentColorValue;
9
+ export type ToastVariant = (typeof toastVariants)[number];
10
+ export type ToastRadius = (typeof toastRadiuses)[number];
11
+ export type ToastPosition = (typeof toastPositions)[number];
12
+ export type ToastType = (typeof toastTypes)[number];
13
+ export type ToastRole = 'alert' | 'status' | 'none';
14
+ export type ToastCloseReason = 'dismiss' | 'timeout';
15
+ export type ToastStateOption<T> = MaybeRefOrGetter<T>;
16
+ export type ToastId = string;
17
+ export interface ToastProps {
18
+ open?: boolean;
19
+ title?: string;
20
+ description?: string;
21
+ variant?: ToastVariant;
22
+ color?: ToastColor;
23
+ autoContrast?: boolean;
24
+ radius?: ToastRadius;
25
+ role?: ToastRole;
26
+ duration?: number;
27
+ pauseOnHover?: boolean;
28
+ pauseOnFocus?: boolean;
29
+ closable?: boolean;
30
+ closeLabel?: string;
31
+ }
32
+ export interface ToastStateBindingProps {
33
+ open: boolean;
34
+ 'onUpdate:open': (open: boolean) => void;
35
+ onClose: (reason: ToastCloseReason) => void;
36
+ }
37
+ export interface UseToastStateOptions {
38
+ open?: ToastStateOption<boolean | undefined>;
39
+ defaultOpen?: boolean;
40
+ onOpenChange?: (open: boolean) => void;
41
+ onClose?: (reason: ToastCloseReason) => void;
42
+ }
43
+ export interface UseToastStateReturn {
44
+ isOpen: ComputedRef<boolean>;
45
+ lastCloseReason: ComputedRef<ToastCloseReason | null>;
46
+ toastProps: ComputedRef<ToastStateBindingProps>;
47
+ setOpen: (open: boolean) => void;
48
+ open: () => void;
49
+ close: (reason?: ToastCloseReason) => void;
50
+ toggle: () => void;
51
+ }
52
+ export interface ToastProviderProps {
53
+ max?: number;
54
+ duration?: number;
55
+ variant?: ToastVariant;
56
+ color?: ToastColor;
57
+ autoContrast?: boolean;
58
+ radius?: ToastRadius;
59
+ role?: ToastRole;
60
+ pauseOnHover?: boolean;
61
+ pauseOnFocus?: boolean;
62
+ closable?: boolean;
63
+ closeLabel?: string;
64
+ }
65
+ export interface ToastViewportProps {
66
+ position?: ToastPosition;
67
+ label?: string;
68
+ teleport?: boolean;
69
+ teleportTo?: string | HTMLElement;
70
+ }
71
+ export interface ToastOptions extends Omit<ToastProps, 'open'> {
72
+ /** Replaces an active toast with the same id and starts a fresh lifecycle. */
73
+ id?: ToastId;
74
+ type?: ToastType;
75
+ onClose?: (reason: ToastCloseReason) => void;
76
+ }
77
+ export type ToastUpdateOptions = Partial<Omit<ToastOptions, 'id'>>;
78
+ export type ToastInput = string | ToastOptions;
79
+ export interface ToastItem {
80
+ readonly id: ToastId;
81
+ /** A unique key for this rendered instance, including replacements that reuse an id. */
82
+ readonly instanceId: string;
83
+ readonly type: ToastType;
84
+ readonly props: Readonly<Omit<ToastProps, 'open'>>;
85
+ readonly onClose?: (reason: ToastCloseReason) => void;
86
+ }
87
+ export interface ToastViewportSlotProps {
88
+ toast: ToastItem;
89
+ dismiss: () => void;
90
+ }
91
+ export type ToastCreate = (input: ToastInput, options?: ToastOptions) => ToastId;
92
+ export interface UseToastReturn {
93
+ toasts: ComputedRef<readonly ToastItem[]>;
94
+ show: ToastCreate;
95
+ success: ToastCreate;
96
+ error: ToastCreate;
97
+ warning: ToastCreate;
98
+ info: ToastCreate;
99
+ update: (id: ToastId, options: ToastUpdateOptions) => void;
100
+ dismiss: (id: ToastId, reason?: ToastCloseReason) => void;
101
+ dismissAll: (reason?: ToastCloseReason) => void;
102
+ }
103
+ export interface ToastProviderContext extends UseToastReturn {
104
+ dismissInstance: (instanceId: string, reason?: ToastCloseReason) => void;
105
+ }
106
+ export declare const toastProviderKey: InjectionKey<ToastProviderContext>;
@@ -0,0 +1,4 @@
1
+ import { ToastProviderContext, ToastProviderProps, UseToastReturn } from './types.js';
2
+ export declare function provideToast(props: Readonly<ToastProviderProps>): ToastProviderContext;
3
+ export declare function useToastContext(consumer: string): ToastProviderContext;
4
+ export declare function useToast(): UseToastReturn;
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'vue';
2
+ import { ToastColor, ToastVariant } from './types.js';
3
+ export declare function getToastColorStyle(color: ToastColor | undefined, variant: ToastVariant | undefined, autoContrast: boolean | undefined): CSSProperties | undefined;
@@ -0,0 +1,2 @@
1
+ import { UseToastStateOptions, UseToastStateReturn } from './types.js';
2
+ export declare function useToastState(options?: Readonly<UseToastStateOptions>): UseToastStateReturn;
@@ -1,2 +1,2 @@
1
- export { default as Tooltip } from './tooltip';
2
- export type { TooltipColor, TooltipOffset, TooltipOffsetOptions, TooltipPlacement, TooltipProps, TooltipSlotProps, TooltipTarget, TooltipTriggerProps, } from './types';
1
+ export { default as Tooltip } from './tooltip.js';
2
+ export type { TooltipColor, TooltipOffset, TooltipOffsetOptions, TooltipPlacement, TooltipProps, TooltipSlotProps, TooltipTarget, TooltipTriggerProps, } from './types.js';
@@ -1,4 +1,4 @@
1
- import { TooltipProps } from './types';
1
+ import { TooltipProps } 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<TooltipProps & {
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').TooltipTriggerProps;
12
+ triggerProps: import('./types.js').TooltipTriggerProps;
13
13
  }) => any;
14
14
  } & {
15
15
  content?: (props: {}) => any;
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { ComponentColorValue } from '../../utils/componentColors';
2
+ import { ComponentColorValue } from '../../utils/componentColors.js';
3
3
  export type TooltipPlacement = 'top' | 'right' | 'bottom' | 'left';
4
4
  export type TooltipColor = ComponentColorValue;
5
5
  export type TooltipTarget = string | HTMLElement | Ref<HTMLElement | null | undefined>;
@@ -20,6 +20,7 @@ export interface TooltipProps {
20
20
  target?: TooltipTarget | null;
21
21
  placement?: TooltipPlacement;
22
22
  color?: TooltipColor;
23
+ autoContrast?: boolean;
23
24
  offset?: TooltipOffset;
24
25
  open?: boolean;
25
26
  openDelay?: number;
@@ -1,5 +1,7 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { TooltipProps, TooltipTriggerProps } from './types';
2
+ import { TooltipOffset, TooltipProps, TooltipTriggerProps } from './types.js';
3
+ export declare function resolveTooltipOffsetStyle(offset: TooltipOffset | undefined): CSSProperties | undefined;
4
+ export declare function resolveTooltipColorStyleWithContrast(color: TooltipProps['color'], autoContrast: TooltipProps['autoContrast']): CSSProperties | undefined;
3
5
  export declare function useTooltip(props: Readonly<TooltipProps>, emitOpenChange?: (open: boolean) => void): {
4
6
  tooltipId: import('vue').ComputedRef<string>;
5
7
  isOpen: import('vue').ComputedRef<boolean>;
@@ -1,13 +1,13 @@
1
1
  .rp-dropdown-menu {
2
2
  --_rp-dropdown-menu-radius: var(--rp-radius-sm);
3
- --_rp-dropdown-menu-focused-bg: var(--rp-color-surface-hover);
3
+ --_rp-dropdown-menu-focused-bg: var(--rp-color-default-hover);
4
4
  position: relative;
5
5
  display: inline-flex;
6
6
  font-family: var(--rp-font-family);
7
7
  vertical-align: middle;
8
8
  }
9
- html.dark .rp-dropdown-menu {
10
- --_rp-dropdown-menu-focused-bg: var(--rp-color-button-default-bg-active);
9
+ html.dark .rp-dropdown-menu, [data-rp-color-scheme=dark] .rp-dropdown-menu {
10
+ --_rp-dropdown-menu-focused-bg: var(--rp-color-disabled);
11
11
  }
12
12
  .rp-dropdown-menu--disabled {
13
13
  opacity: var(--rp-opacity-disabled);
@@ -15,8 +15,8 @@ html.dark .rp-dropdown-menu {
15
15
  }
16
16
  .rp-dropdown-menu__content {
17
17
  z-index: 100;
18
- background-color: var(--rp-color-surface-raised);
19
- border: var(--rp-border-width-thin) solid var(--rp-color-border);
18
+ background-color: var(--rp-color-default);
19
+ border: var(--rp-border-width-thin) solid var(--rp-color-default-border);
20
20
  border-radius: var(--_rp-dropdown-menu-radius);
21
21
  box-shadow: var(--rp-shadow-md);
22
22
  padding: var(--rp-spacing-1) 0;
@@ -27,8 +27,8 @@ html.dark .rp-dropdown-menu {
27
27
  overflow-y: auto;
28
28
  padding: var(--rp-spacing-1);
29
29
  color: var(--rp-color-text);
30
- font-size: var(--rp-font-size-base);
31
- line-height: var(--rp-line-height-normal);
30
+ font-size: var(--rp-font-size-md);
31
+ line-height: var(--rp-line-height-md);
32
32
  outline: none;
33
33
  }
34
34
  .rp-dropdown-menu__content--has-submenu {
@@ -77,10 +77,10 @@ html.dark .rp-dropdown-menu {
77
77
  background-color: var(--_rp-dropdown-menu-focused-bg);
78
78
  }
79
79
  .rp-dropdown-menu__item--destructive {
80
- color: var(--rp-color-danger-fg);
80
+ color: var(--rp-color-red-light-color);
81
81
  }
82
82
  .rp-dropdown-menu__item--disabled {
83
- color: var(--rp-color-text-disabled);
83
+ color: var(--rp-color-disabled-color);
84
84
  cursor: not-allowed;
85
85
  }
86
86
  .rp-dropdown-menu__item--submenu {
@@ -93,7 +93,7 @@ html.dark .rp-dropdown-menu {
93
93
  text-overflow: ellipsis;
94
94
  }
95
95
  .rp-dropdown-menu__shortcut {
96
- color: var(--rp-color-text-secondary);
96
+ color: var(--rp-color-dimmed);
97
97
  font: inherit;
98
98
  font-size: var(--rp-font-size-sm);
99
99
  }
@@ -110,12 +110,12 @@ html.dark .rp-dropdown-menu {
110
110
  }
111
111
  .rp-dropdown-menu__submenu-icon {
112
112
  margin-left: auto;
113
- color: var(--rp-color-text-secondary);
113
+ color: var(--rp-color-dimmed);
114
114
  }
115
115
  .rp-dropdown-menu__submenu {
116
116
  z-index: 100;
117
- background-color: var(--rp-color-surface-raised);
118
- border: var(--rp-border-width-thin) solid var(--rp-color-border);
117
+ background-color: var(--rp-color-default);
118
+ border: var(--rp-border-width-thin) solid var(--rp-color-default-border);
119
119
  border-radius: var(--_rp-dropdown-menu-radius);
120
120
  box-shadow: var(--rp-shadow-md);
121
121
  padding: var(--rp-spacing-1) 0;
@@ -128,8 +128,8 @@ html.dark .rp-dropdown-menu {
128
128
  overflow-y: auto;
129
129
  padding: var(--rp-spacing-1);
130
130
  color: var(--rp-color-text);
131
- font-size: var(--rp-font-size-base);
132
- line-height: var(--rp-line-height-normal);
131
+ font-size: var(--rp-font-size-md);
132
+ line-height: var(--rp-line-height-md);
133
133
  outline: none;
134
134
  }
135
135
  .rp-dropdown-menu__submenu--has-submenu {
@@ -145,8 +145,8 @@ html.dark .rp-dropdown-menu {
145
145
  justify-content: center;
146
146
  min-height: var(--rp-size-control-sm);
147
147
  padding: var(--rp-spacing-2) var(--rp-spacing-4);
148
- color: var(--rp-color-text-secondary);
149
- font-size: var(--rp-font-size-base);
148
+ color: var(--rp-color-dimmed);
149
+ font-size: var(--rp-font-size-md);
150
150
  }
151
151
  .rp-dropdown-menu-content-enter-active,
152
152
  .rp-dropdown-menu-content-leave-active {