@vifui/core 0.4.0-alpha.6 → 0.6.0-alpha.8

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 (164) hide show
  1. package/README.md +13 -19
  2. package/dist/components/accordion/accordion-body.vue.d.ts +2 -1
  3. package/dist/components/accordion/accordion-body.vue.js +1 -1
  4. package/dist/components/accordion/accordion-content.vue.d.ts +2 -1
  5. package/dist/components/accordion/accordion-content.vue.js +1 -1
  6. package/dist/components/accordion/accordion-header.vue.d.ts +2 -1
  7. package/dist/components/accordion/accordion-header.vue.js +1 -1
  8. package/dist/components/accordion/accordion-indicator.vue.d.ts +2 -1
  9. package/dist/components/accordion/accordion-indicator.vue.js +1 -1
  10. package/dist/components/accordion/accordion-item.vue.d.ts +2 -1
  11. package/dist/components/accordion/accordion-item.vue.js +1 -1
  12. package/dist/components/accordion/accordion-root.vue.d.ts +2 -1
  13. package/dist/components/accordion/accordion-root.vue.js +1 -1
  14. package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -1
  15. package/dist/components/accordion/accordion-trigger.vue.js +1 -1
  16. package/dist/components/accordion/index.d.ts +15 -15
  17. package/dist/components/alert/alert-body.vue.d.ts +2 -2
  18. package/dist/components/alert/alert-body.vue.js +1 -1
  19. package/dist/components/alert/alert-close.vue.d.ts +2 -1
  20. package/dist/components/alert/alert-close.vue.js +17 -5
  21. package/dist/components/alert/alert-content.vue.d.ts +5 -5
  22. package/dist/components/alert/alert-content.vue.js +2 -5
  23. package/dist/components/alert/alert-description.vue.d.ts +3 -3
  24. package/dist/components/alert/alert-description.vue.js +2 -5
  25. package/dist/components/alert/alert-footer.vue.d.ts +2 -2
  26. package/dist/components/alert/alert-footer.vue.js +1 -1
  27. package/dist/components/alert/alert-header.vue.d.ts +3 -3
  28. package/dist/components/alert/alert-header.vue.js +2 -5
  29. package/dist/components/alert/alert-icon.vue.d.ts +3 -2
  30. package/dist/components/alert/alert-icon.vue.js +1 -1
  31. package/dist/components/alert/alert-root.vue.d.ts +2 -2
  32. package/dist/components/alert/alert-root.vue.js +6 -2
  33. package/dist/components/alert/alert-title.vue.d.ts +3 -3
  34. package/dist/components/alert/alert-title.vue.js +2 -5
  35. package/dist/components/alert/index.d.ts +19 -19
  36. package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
  37. package/dist/components/avatar/avatar-fallback.vue.js +1 -1
  38. package/dist/components/avatar/avatar-group.vue.d.ts +2 -2
  39. package/dist/components/avatar/avatar-group.vue.js +1 -1
  40. package/dist/components/avatar/avatar-image.vue.d.ts +2 -2
  41. package/dist/components/avatar/avatar-image.vue.js +1 -1
  42. package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
  43. package/dist/components/avatar/avatar-root.vue.js +1 -1
  44. package/dist/components/avatar/index.d.ts +9 -9
  45. package/dist/components/badge/badge.vue.d.ts +2 -1
  46. package/dist/components/badge/badge.vue.js +1 -1
  47. package/dist/components/badge/index.d.ts +3 -3
  48. package/dist/components/breadcrumb/breadcrumb-current-link.vue.d.ts +2 -1
  49. package/dist/components/breadcrumb/breadcrumb-current-link.vue.js +1 -1
  50. package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -1
  51. package/dist/components/breadcrumb/breadcrumb-item.vue.js +1 -1
  52. package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -1
  53. package/dist/components/breadcrumb/breadcrumb-link.vue.js +1 -1
  54. package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -1
  55. package/dist/components/breadcrumb/breadcrumb-list.vue.js +1 -1
  56. package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -1
  57. package/dist/components/breadcrumb/breadcrumb-root.vue.js +1 -1
  58. package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -1
  59. package/dist/components/breadcrumb/breadcrumb-separator.vue.js +1 -1
  60. package/dist/components/breadcrumb/index.d.ts +1 -1
  61. package/dist/components/button/button.vue.d.ts +3 -2
  62. package/dist/components/button/button.vue.js +6 -26
  63. package/dist/components/button/index.d.ts +3 -3
  64. package/dist/components/card/card-body.vue.d.ts +2 -1
  65. package/dist/components/card/card-body.vue.js +1 -1
  66. package/dist/components/card/card-footer.vue.d.ts +2 -1
  67. package/dist/components/card/card-footer.vue.js +1 -1
  68. package/dist/components/card/card-header.vue.d.ts +2 -1
  69. package/dist/components/card/card-header.vue.js +1 -1
  70. package/dist/components/card/card-media.vue.d.ts +2 -1
  71. package/dist/components/card/card-media.vue.js +1 -1
  72. package/dist/components/card/card-root.vue.d.ts +2 -1
  73. package/dist/components/card/card-root.vue.js +1 -1
  74. package/dist/components/checkbox/checkbox-group-item.vue.d.ts +2 -1
  75. package/dist/components/checkbox/checkbox-group-item.vue.js +1 -1
  76. package/dist/components/checkbox/checkbox-group.vue.d.ts +2 -1
  77. package/dist/components/checkbox/checkbox-group.vue.js +1 -1
  78. package/dist/components/checkbox/checkbox-indicator.vue.d.ts +2 -1
  79. package/dist/components/checkbox/checkbox-indicator.vue.js +1 -1
  80. package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -1
  81. package/dist/components/checkbox/checkbox-label.vue.js +1 -1
  82. package/dist/components/checkbox/checkbox-root.vue.d.ts +2 -1
  83. package/dist/components/checkbox/checkbox-root.vue.js +1 -1
  84. package/dist/components/divider/divider.vue.d.ts +2 -1
  85. package/dist/components/divider/divider.vue.js +1 -1
  86. package/dist/components/divider/index.d.ts +3 -3
  87. package/dist/components/index.d.ts +3 -0
  88. package/dist/components/list/index.d.ts +19 -0
  89. package/dist/components/list/index.js +10 -0
  90. package/dist/components/list/list-avatar.vue.d.ts +19 -0
  91. package/dist/components/list/list-avatar.vue.js +27 -0
  92. package/dist/components/list/list-avatar.vue2.js +5 -0
  93. package/dist/components/list/list-content.vue.d.ts +19 -0
  94. package/dist/components/list/list-content.vue.js +27 -0
  95. package/dist/components/list/list-content.vue2.js +5 -0
  96. package/dist/components/list/list-header.vue.d.ts +31 -0
  97. package/dist/components/list/list-header.vue.js +32 -0
  98. package/dist/components/list/list-header.vue2.js +5 -0
  99. package/dist/components/list/list-icon.vue.d.ts +19 -0
  100. package/dist/components/list/list-icon.vue.js +27 -0
  101. package/dist/components/list/list-icon.vue2.js +5 -0
  102. package/dist/components/list/list-item.vue.d.ts +46 -0
  103. package/dist/components/list/list-item.vue.js +60 -0
  104. package/dist/components/list/list-item.vue2.js +5 -0
  105. package/dist/components/list/list-root.vue.d.ts +52 -0
  106. package/dist/components/list/list-root.vue.js +38 -0
  107. package/dist/components/list/list-root.vue2.js +5 -0
  108. package/dist/components/list/list-slot.vue.d.ts +19 -0
  109. package/dist/components/list/list-slot.vue.js +27 -0
  110. package/dist/components/list/list-slot.vue2.js +5 -0
  111. package/dist/components/list/list-subtitle.vue.d.ts +19 -0
  112. package/dist/components/list/list-subtitle.vue.js +27 -0
  113. package/dist/components/list/list-subtitle.vue2.js +5 -0
  114. package/dist/components/list/list-title.vue.d.ts +19 -0
  115. package/dist/components/list/list-title.vue.js +27 -0
  116. package/dist/components/list/list-title.vue2.js +5 -0
  117. package/dist/components/list/list.styles.d.ts +129 -0
  118. package/dist/components/list/list.styles.js +53 -0
  119. package/dist/components/spinner/index.d.ts +3 -3
  120. package/dist/components/spinner/spinner.vue.d.ts +2 -1
  121. package/dist/components/spinner/spinner.vue.js +1 -1
  122. package/dist/components/tabs/index.d.ts +11 -0
  123. package/dist/components/tabs/index.js +6 -0
  124. package/dist/components/tabs/tabs-content.vue.d.ts +25 -0
  125. package/dist/components/tabs/tabs-content.vue.js +37 -0
  126. package/dist/components/tabs/tabs-content.vue2.js +5 -0
  127. package/dist/components/tabs/tabs-indicator.vue.d.ts +25 -0
  128. package/dist/components/tabs/tabs-indicator.vue.js +35 -0
  129. package/dist/components/tabs/tabs-indicator.vue2.js +5 -0
  130. package/dist/components/tabs/tabs-list.vue.d.ts +26 -0
  131. package/dist/components/tabs/tabs-list.vue.js +36 -0
  132. package/dist/components/tabs/tabs-list.vue2.js +5 -0
  133. package/dist/components/tabs/tabs-root.vue.d.ts +39 -0
  134. package/dist/components/tabs/tabs-root.vue.js +44 -0
  135. package/dist/components/tabs/tabs-root.vue2.js +5 -0
  136. package/dist/components/tabs/tabs-trigger.vue.d.ts +39 -0
  137. package/dist/components/tabs/tabs-trigger.vue.js +42 -0
  138. package/dist/components/tabs/tabs-trigger.vue2.js +5 -0
  139. package/dist/components/tabs/tabs.styles.d.ts +56 -0
  140. package/dist/components/tabs/tabs.styles.js +13 -0
  141. package/dist/components/tooltip/index.d.ts +13 -0
  142. package/dist/components/tooltip/index.js +7 -0
  143. package/dist/components/tooltip/tooltip-arrow.vue.d.ts +24 -0
  144. package/dist/components/tooltip/tooltip-arrow.vue.js +37 -0
  145. package/dist/components/tooltip/tooltip-arrow.vue2.js +5 -0
  146. package/dist/components/tooltip/tooltip-content.vue.d.ts +34 -0
  147. package/dist/components/tooltip/tooltip-content.vue.js +51 -0
  148. package/dist/components/tooltip/tooltip-content.vue2.js +5 -0
  149. package/dist/components/tooltip/tooltip-portal.vue.d.ts +18 -0
  150. package/dist/components/tooltip/tooltip-portal.vue.js +33 -0
  151. package/dist/components/tooltip/tooltip-portal.vue2.js +5 -0
  152. package/dist/components/tooltip/tooltip-provider.vue.d.ts +23 -0
  153. package/dist/components/tooltip/tooltip-provider.vue.js +35 -0
  154. package/dist/components/tooltip/tooltip-provider.vue2.js +5 -0
  155. package/dist/components/tooltip/tooltip-root.vue.d.ts +30 -0
  156. package/dist/components/tooltip/tooltip-root.vue.js +38 -0
  157. package/dist/components/tooltip/tooltip-root.vue2.js +5 -0
  158. package/dist/components/tooltip/tooltip-trigger.vue.d.ts +24 -0
  159. package/dist/components/tooltip/tooltip-trigger.vue.js +32 -0
  160. package/dist/components/tooltip/tooltip-trigger.vue2.js +5 -0
  161. package/dist/components/tooltip/tooltip.styles.d.ts +62 -0
  162. package/dist/components/tooltip/tooltip.styles.js +14 -0
  163. package/dist/index.js +23 -0
  164. package/package.json +3 -3
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './tabs-trigger.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,56 @@
1
+ import type { VariantProps } from "tailwind-variants";
2
+ /**
3
+ * Tabs component variant mapper
4
+ *
5
+ * Maps variant props to @vifui/styles CSS classes
6
+ */
7
+ export declare const tabsVariants: import("tailwind-variants").TVReturnType<{
8
+ [key: string]: {
9
+ [key: string]: import("tailwind-variants").ClassValue | {
10
+ root?: import("tailwind-variants").ClassValue;
11
+ trigger?: import("tailwind-variants").ClassValue;
12
+ content?: import("tailwind-variants").ClassValue;
13
+ list?: import("tailwind-variants").ClassValue;
14
+ indicator?: import("tailwind-variants").ClassValue;
15
+ };
16
+ };
17
+ } | {
18
+ [x: string]: {
19
+ [x: string]: import("tailwind-variants").ClassValue | {
20
+ root?: import("tailwind-variants").ClassValue;
21
+ trigger?: import("tailwind-variants").ClassValue;
22
+ content?: import("tailwind-variants").ClassValue;
23
+ list?: import("tailwind-variants").ClassValue;
24
+ indicator?: import("tailwind-variants").ClassValue;
25
+ };
26
+ };
27
+ } | {}, {
28
+ root: string;
29
+ list: string;
30
+ indicator: string;
31
+ trigger: string;
32
+ content: string;
33
+ }, undefined, {
34
+ [key: string]: {
35
+ [key: string]: import("tailwind-variants").ClassValue | {
36
+ root?: import("tailwind-variants").ClassValue;
37
+ trigger?: import("tailwind-variants").ClassValue;
38
+ content?: import("tailwind-variants").ClassValue;
39
+ list?: import("tailwind-variants").ClassValue;
40
+ indicator?: import("tailwind-variants").ClassValue;
41
+ };
42
+ };
43
+ } | {}, {
44
+ root: string;
45
+ list: string;
46
+ indicator: string;
47
+ trigger: string;
48
+ content: string;
49
+ }, import("tailwind-variants").TVReturnType<unknown, {
50
+ root: string;
51
+ list: string;
52
+ indicator: string;
53
+ trigger: string;
54
+ content: string;
55
+ }, undefined, unknown, unknown, undefined>>;
56
+ export type TabsVariantProps = VariantProps<typeof tabsVariants>;
@@ -0,0 +1,13 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const tabsVariants = tv({
4
+ slots: {
5
+ root: "vif-tabs__root",
6
+ list: "vif-tabs__list",
7
+ indicator: "vif-tabs__indicator",
8
+ trigger: "vif-tabs__trigger",
9
+ content: "vif-tabs__content"
10
+ }
11
+ });
12
+
13
+ export { tabsVariants };
@@ -0,0 +1,13 @@
1
+ export { default as TooltipProvider } from "./tooltip-provider.vue";
2
+ export { default as TooltipRoot } from "./tooltip-root.vue";
3
+ export { default as TooltipTrigger } from "./tooltip-trigger.vue";
4
+ export { default as TooltipPortal } from "./tooltip-portal.vue";
5
+ export { default as TooltipContent } from "./tooltip-content.vue";
6
+ export { default as TooltipArrow } from "./tooltip-arrow.vue";
7
+ export { tooltipVariants, type TooltipVariantProps } from "./tooltip.styles";
8
+ export type { TooltipProviderProps } from "./tooltip-provider.vue";
9
+ export type { TooltipRootProps, TooltipRootEmits, TooltipRootSlots, } from "./tooltip-root.vue";
10
+ export type { TooltipTriggerProps, TooltipTriggerSlots, } from "./tooltip-trigger.vue";
11
+ export type { TooltipPortalProps, TooltipPortalSlots, } from "./tooltip-portal.vue";
12
+ export type { TooltipContentProps, TooltipContentSlots, TooltipContentEmits, } from "./tooltip-content.vue";
13
+ export type { TooltipArrowProps, TooltipArrowSlots } from "./tooltip-arrow.vue";
@@ -0,0 +1,7 @@
1
+ export { default as TooltipProvider } from './tooltip-provider.vue.js';
2
+ export { default as TooltipRoot } from './tooltip-root.vue.js';
3
+ export { default as TooltipTrigger } from './tooltip-trigger.vue.js';
4
+ export { default as TooltipPortal } from './tooltip-portal.vue.js';
5
+ export { default as TooltipContent } from './tooltip-content.vue.js';
6
+ export { default as TooltipArrow } from './tooltip-arrow.vue.js';
7
+ export { tooltipVariants } from './tooltip.styles.js';
@@ -0,0 +1,24 @@
1
+ import { type TooltipArrowProps as RekaTooltipArrowProps } from "reka-ui";
2
+ import { type HTMLAttributes, type Slot } from "vue";
3
+ /** Props for the VifUI TooltipArrow component */
4
+ export interface TooltipArrowProps extends RekaTooltipArrowProps {
5
+ /**Custom class names for extending or overriding styles. */
6
+ class?: HTMLAttributes["class"];
7
+ }
8
+ /** TooltipArrow Slots */
9
+ export interface TooltipArrowSlots {
10
+ default: Slot;
11
+ }
12
+ type __VLS_Slots = TooltipArrowSlots;
13
+ declare const __VLS_component: import("vue").DefineComponent<TooltipArrowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipArrowProps> & Readonly<{}>, {
14
+ as: import("reka-ui").AsTag | import("vue").Component;
15
+ width: number;
16
+ height: number;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
2
+ import { useForwardProps, TooltipArrow } from 'reka-ui';
3
+ import { tooltipVariants } from './tooltip.styles.js';
4
+
5
+ var _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "tooltip-arrow",
7
+ props: {
8
+ class: { type: null, required: false },
9
+ width: { type: Number, required: false, default: 10 },
10
+ height: { type: Number, required: false, default: 5 },
11
+ asChild: { type: Boolean, required: false },
12
+ as: { type: null, required: false, default: "svg" }
13
+ },
14
+ setup(__props) {
15
+ const props = __props;
16
+ const arrowProps = useForwardProps(() => {
17
+ const { class: className, ...rest } = props;
18
+ return rest;
19
+ });
20
+ const theme = computed(
21
+ () => tooltipVariants().arrow({
22
+ class: props.class
23
+ })
24
+ );
25
+ return (_ctx, _cache) => {
26
+ return openBlock(), createBlock(unref(TooltipArrow), mergeProps(unref(arrowProps), { class: theme.value }), {
27
+ default: withCtx(() => [
28
+ renderSlot(_ctx.$slots, "default")
29
+ ]),
30
+ _: 3
31
+ /* FORWARDED */
32
+ }, 16, ["class"]);
33
+ };
34
+ }
35
+ });
36
+
37
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './tooltip-arrow.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,34 @@
1
+ import { type TooltipContentProps as RekaTooltipContentProps, type TooltipContentEmits as RekaTooltipContentEmits } from "reka-ui";
2
+ import { type HTMLAttributes, type Slot } from "vue";
3
+ /** Props for the VifUI TooltipContent component */
4
+ export interface TooltipContentProps extends RekaTooltipContentProps {
5
+ /**
6
+ * Custom class names for extending or overriding styles.
7
+ */
8
+ class?: HTMLAttributes["class"];
9
+ }
10
+ /** TooltipContent Emits */
11
+ export interface TooltipContentEmits extends RekaTooltipContentEmits {
12
+ }
13
+ /** TooltipContent Slots */
14
+ export interface TooltipContentSlots {
15
+ default: Slot;
16
+ }
17
+ type __VLS_Slots = TooltipContentSlots;
18
+ declare const __VLS_component: import("vue").DefineComponent<TooltipContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ escapeKeyDown: (event: KeyboardEvent) => any;
20
+ pointerDownOutside: (event: Event) => any;
21
+ }, string, import("vue").PublicProps, Readonly<TooltipContentProps> & Readonly<{
22
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
23
+ onPointerDownOutside?: ((event: Event) => any) | undefined;
24
+ }>, {
25
+ as: import("reka-ui").AsTag | import("vue").Component;
26
+ side: "left" | "right" | "top" | "bottom";
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,51 @@
1
+ import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
2
+ import { useForwardPropsEmits, TooltipContent } from 'reka-ui';
3
+ import { tooltipVariants } from './tooltip.styles.js';
4
+
5
+ var _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "tooltip-content",
7
+ props: {
8
+ class: { type: null, required: false },
9
+ forceMount: { type: Boolean, required: false },
10
+ ariaLabel: { type: String, required: false },
11
+ asChild: { type: Boolean, required: false },
12
+ as: { type: null, required: false, default: "div" },
13
+ side: { type: null, required: false, default: "top" },
14
+ sideOffset: { type: Number, required: false },
15
+ align: { type: null, required: false },
16
+ alignOffset: { type: Number, required: false },
17
+ avoidCollisions: { type: Boolean, required: false },
18
+ collisionBoundary: { type: null, required: false },
19
+ collisionPadding: { type: [Number, Object], required: false },
20
+ arrowPadding: { type: Number, required: false },
21
+ sticky: { type: String, required: false },
22
+ hideWhenDetached: { type: Boolean, required: false },
23
+ positionStrategy: { type: String, required: false },
24
+ updatePositionStrategy: { type: String, required: false }
25
+ },
26
+ emits: ["escapeKeyDown", "pointerDownOutside"],
27
+ setup(__props, { emit: __emit }) {
28
+ const props = __props;
29
+ const emits = __emit;
30
+ const contentPropsEmits = useForwardPropsEmits(() => {
31
+ const { class: className, ...rest } = props;
32
+ return rest;
33
+ }, emits);
34
+ const theme = computed(
35
+ () => tooltipVariants().content({
36
+ class: props.class
37
+ })
38
+ );
39
+ return (_ctx, _cache) => {
40
+ return openBlock(), createBlock(unref(TooltipContent), mergeProps(unref(contentPropsEmits), { class: theme.value }), {
41
+ default: withCtx(() => [
42
+ renderSlot(_ctx.$slots, "default")
43
+ ]),
44
+ _: 3
45
+ /* FORWARDED */
46
+ }, 16, ["class"]);
47
+ };
48
+ }
49
+ });
50
+
51
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './tooltip-content.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,18 @@
1
+ import { type TooltipPortalProps as RekaTooltipPortalProps } from "reka-ui";
2
+ import type { Slot } from "vue";
3
+ /** Props for the VifUI TooltipPortal component */
4
+ export interface TooltipPortalProps extends RekaTooltipPortalProps {
5
+ }
6
+ /** TooltipPortal Slots */
7
+ export interface TooltipPortalSlots {
8
+ default: Slot;
9
+ }
10
+ type __VLS_Slots = TooltipPortalSlots;
11
+ declare const __VLS_component: import("vue").DefineComponent<TooltipPortalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipPortalProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from 'vue';
2
+ import { useForwardProps, TooltipPortal } from 'reka-ui';
3
+
4
+ var _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "tooltip-portal",
6
+ props: {
7
+ to: { type: null, required: false },
8
+ disabled: { type: Boolean, required: false },
9
+ defer: { type: Boolean, required: false },
10
+ forceMount: { type: Boolean, required: false }
11
+ },
12
+ setup(__props) {
13
+ const props = __props;
14
+ const portalProps = useForwardProps(props);
15
+ return (_ctx, _cache) => {
16
+ return openBlock(), createBlock(
17
+ unref(TooltipPortal),
18
+ normalizeProps(guardReactiveProps(unref(portalProps))),
19
+ {
20
+ default: withCtx(() => [
21
+ renderSlot(_ctx.$slots, "default")
22
+ ]),
23
+ _: 3
24
+ /* FORWARDED */
25
+ },
26
+ 16
27
+ /* FULL_PROPS */
28
+ );
29
+ };
30
+ }
31
+ });
32
+
33
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './tooltip-portal.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,23 @@
1
+ import { type TooltipProviderProps as RekaTooltipProviderProps } from "reka-ui";
2
+ import type { Slot } from "vue";
3
+ /** Props for the VifUI tooltip provider component. */
4
+ export interface TooltipProviderProps extends RekaTooltipProviderProps {
5
+ }
6
+ /** TooltipProvider Slots */
7
+ export interface TooltipProviderSlots {
8
+ default: Slot;
9
+ }
10
+ type __VLS_Slots = TooltipProviderSlots;
11
+ declare const __VLS_component: import("vue").DefineComponent<TooltipProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipProviderProps> & Readonly<{}>, {
12
+ delayDuration: number;
13
+ skipDelayDuration: number;
14
+ disableHoverableContent: boolean;
15
+ ignoreNonKeyboardFocus: boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,35 @@
1
+ import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from 'vue';
2
+ import { useForwardProps, TooltipProvider } from 'reka-ui';
3
+
4
+ var _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "tooltip-provider",
6
+ props: {
7
+ delayDuration: { type: Number, required: false, default: 700 },
8
+ skipDelayDuration: { type: Number, required: false, default: 300 },
9
+ disableHoverableContent: { type: Boolean, required: false, default: false },
10
+ disableClosingTrigger: { type: Boolean, required: false },
11
+ disabled: { type: Boolean, required: false },
12
+ ignoreNonKeyboardFocus: { type: Boolean, required: false, default: false }
13
+ },
14
+ setup(__props) {
15
+ const props = __props;
16
+ const providerProps = useForwardProps(props);
17
+ return (_ctx, _cache) => {
18
+ return openBlock(), createBlock(
19
+ unref(TooltipProvider),
20
+ normalizeProps(guardReactiveProps(unref(providerProps))),
21
+ {
22
+ default: withCtx(() => [
23
+ renderSlot(_ctx.$slots, "default")
24
+ ]),
25
+ _: 3
26
+ /* FORWARDED */
27
+ },
28
+ 16
29
+ /* FULL_PROPS */
30
+ );
31
+ };
32
+ }
33
+ });
34
+
35
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './tooltip-provider.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,30 @@
1
+ import { type TooltipRootProps as RekaTooltipRootProps, type TooltipRootEmits as RekaTooltipRootEmits } from "reka-ui";
2
+ import type { Slot } from "vue";
3
+ /** Props for the VifUI TooltipRoot component. */
4
+ export interface TooltipRootProps extends RekaTooltipRootProps {
5
+ }
6
+ /** TooltipRoot Emits */
7
+ export interface TooltipRootEmits extends RekaTooltipRootEmits {
8
+ }
9
+ /** TooltipRoot Slots */
10
+ export interface TooltipRootSlots {
11
+ default: (props: {
12
+ /** Current open state */
13
+ open: boolean;
14
+ }) => Slot;
15
+ }
16
+ type __VLS_Slots = TooltipRootSlots;
17
+ declare const __VLS_component: import("vue").DefineComponent<TooltipRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ "update:open": (value: boolean) => any;
19
+ }, string, import("vue").PublicProps, Readonly<TooltipRootProps> & Readonly<{
20
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
21
+ }>, {
22
+ defaultOpen: boolean;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,38 @@
1
+ import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from 'vue';
2
+ import { useForwardPropsEmits, TooltipRoot } from 'reka-ui';
3
+
4
+ var _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "tooltip-root",
6
+ props: {
7
+ defaultOpen: { type: Boolean, required: false, default: false },
8
+ open: { type: Boolean, required: false },
9
+ delayDuration: { type: Number, required: false },
10
+ disableHoverableContent: { type: Boolean, required: false },
11
+ disableClosingTrigger: { type: Boolean, required: false },
12
+ disabled: { type: Boolean, required: false },
13
+ ignoreNonKeyboardFocus: { type: Boolean, required: false }
14
+ },
15
+ emits: ["update:open"],
16
+ setup(__props, { emit: __emit }) {
17
+ const props = __props;
18
+ const emits = __emit;
19
+ const rootPropsEmits = useForwardPropsEmits(props, emits);
20
+ return (_ctx, _cache) => {
21
+ return openBlock(), createBlock(
22
+ unref(TooltipRoot),
23
+ normalizeProps(guardReactiveProps(unref(rootPropsEmits))),
24
+ {
25
+ default: withCtx(({ open }) => [
26
+ renderSlot(_ctx.$slots, "default", { open })
27
+ ]),
28
+ _: 3
29
+ /* FORWARDED */
30
+ },
31
+ 16
32
+ /* FULL_PROPS */
33
+ );
34
+ };
35
+ }
36
+ });
37
+
38
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './tooltip-root.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,24 @@
1
+ import { type TooltipTriggerProps as RekaTooltipTriggerProps } from "reka-ui";
2
+ import { type HTMLAttributes, type Slot } from "vue";
3
+ /** Props for the VifUI TooltipTrigger component */
4
+ export interface TooltipTriggerProps extends RekaTooltipTriggerProps {
5
+ /**
6
+ * Custom class names for extending or overriding styles.
7
+ */
8
+ class?: HTMLAttributes["class"];
9
+ }
10
+ /** TooltipTrigger Slots */
11
+ export interface TooltipTriggerSlots {
12
+ default: Slot;
13
+ }
14
+ type __VLS_Slots = TooltipTriggerSlots;
15
+ declare const __VLS_component: import("vue").DefineComponent<TooltipTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipTriggerProps> & Readonly<{}>, {
16
+ as: import("reka-ui").AsTag | import("vue").Component;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,32 @@
1
+ import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
2
+ import { useForwardProps, TooltipTrigger } from 'reka-ui';
3
+ import { tooltipVariants } from './tooltip.styles.js';
4
+
5
+ var _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "tooltip-trigger",
7
+ props: {
8
+ class: { type: null, required: false },
9
+ reference: { type: null, required: false },
10
+ asChild: { type: Boolean, required: false },
11
+ as: { type: null, required: false, default: "button" }
12
+ },
13
+ setup(__props) {
14
+ const props = __props;
15
+ const triggerProps = useForwardProps(() => {
16
+ const { class: className, ...rest } = props;
17
+ return rest;
18
+ });
19
+ const theme = computed(() => tooltipVariants().trigger({ class: props.class }));
20
+ return (_ctx, _cache) => {
21
+ return openBlock(), createBlock(unref(TooltipTrigger), mergeProps(unref(triggerProps), { class: theme.value }), {
22
+ default: withCtx(() => [
23
+ renderSlot(_ctx.$slots, "default")
24
+ ]),
25
+ _: 3
26
+ /* FORWARDED */
27
+ }, 16, ["class"]);
28
+ };
29
+ }
30
+ });
31
+
32
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './tooltip-trigger.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,62 @@
1
+ import type { VariantProps } from "tailwind-variants";
2
+ /**
3
+ * tooltip component variant mapper
4
+ *
5
+ * Maps variant props to @vifui/styles CSS classes
6
+ */
7
+ export declare const tooltipVariants: import("tailwind-variants").TVReturnType<{
8
+ [key: string]: {
9
+ [key: string]: import("tailwind-variants").ClassValue | {
10
+ root?: import("tailwind-variants").ClassValue;
11
+ trigger?: import("tailwind-variants").ClassValue;
12
+ content?: import("tailwind-variants").ClassValue;
13
+ provider?: import("tailwind-variants").ClassValue;
14
+ portal?: import("tailwind-variants").ClassValue;
15
+ arrow?: import("tailwind-variants").ClassValue;
16
+ };
17
+ };
18
+ } | {
19
+ [x: string]: {
20
+ [x: string]: import("tailwind-variants").ClassValue | {
21
+ root?: import("tailwind-variants").ClassValue;
22
+ trigger?: import("tailwind-variants").ClassValue;
23
+ content?: import("tailwind-variants").ClassValue;
24
+ provider?: import("tailwind-variants").ClassValue;
25
+ portal?: import("tailwind-variants").ClassValue;
26
+ arrow?: import("tailwind-variants").ClassValue;
27
+ };
28
+ };
29
+ } | {}, {
30
+ provider: string;
31
+ root: string;
32
+ portal: string;
33
+ trigger: string;
34
+ content: string;
35
+ arrow: string;
36
+ }, undefined, {
37
+ [key: string]: {
38
+ [key: string]: import("tailwind-variants").ClassValue | {
39
+ root?: import("tailwind-variants").ClassValue;
40
+ trigger?: import("tailwind-variants").ClassValue;
41
+ content?: import("tailwind-variants").ClassValue;
42
+ provider?: import("tailwind-variants").ClassValue;
43
+ portal?: import("tailwind-variants").ClassValue;
44
+ arrow?: import("tailwind-variants").ClassValue;
45
+ };
46
+ };
47
+ } | {}, {
48
+ provider: string;
49
+ root: string;
50
+ portal: string;
51
+ trigger: string;
52
+ content: string;
53
+ arrow: string;
54
+ }, import("tailwind-variants").TVReturnType<unknown, {
55
+ provider: string;
56
+ root: string;
57
+ portal: string;
58
+ trigger: string;
59
+ content: string;
60
+ arrow: string;
61
+ }, undefined, unknown, unknown, undefined>>;
62
+ export type TooltipVariantProps = VariantProps<typeof tooltipVariants>;
@@ -0,0 +1,14 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const tooltipVariants = tv({
4
+ slots: {
5
+ provider: "",
6
+ root: "",
7
+ portal: "",
8
+ trigger: "vif-tooltip__trigger",
9
+ content: "vif-tooltip__content",
10
+ arrow: "vif-tooltip__arrow"
11
+ }
12
+ });
13
+
14
+ export { tooltipVariants };