@vifui/core 0.4.0-alpha.6

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 (166) hide show
  1. package/README.md +204 -0
  2. package/dist/components/accordion/accordion-body.vue.d.ts +29 -0
  3. package/dist/components/accordion/accordion-body.vue.js +27 -0
  4. package/dist/components/accordion/accordion-body.vue2.js +5 -0
  5. package/dist/components/accordion/accordion-content.vue.d.ts +29 -0
  6. package/dist/components/accordion/accordion-content.vue.js +26 -0
  7. package/dist/components/accordion/accordion-content.vue2.js +5 -0
  8. package/dist/components/accordion/accordion-header.vue.d.ts +30 -0
  9. package/dist/components/accordion/accordion-header.vue.js +28 -0
  10. package/dist/components/accordion/accordion-header.vue2.js +5 -0
  11. package/dist/components/accordion/accordion-indicator.vue.d.ts +32 -0
  12. package/dist/components/accordion/accordion-indicator.vue.js +22 -0
  13. package/dist/components/accordion/accordion-indicator.vue2.js +5 -0
  14. package/dist/components/accordion/accordion-item.vue.d.ts +54 -0
  15. package/dist/components/accordion/accordion-item.vue.js +30 -0
  16. package/dist/components/accordion/accordion-item.vue2.js +5 -0
  17. package/dist/components/accordion/accordion-root.vue.d.ts +94 -0
  18. package/dist/components/accordion/accordion-root.vue.js +55 -0
  19. package/dist/components/accordion/accordion-root.vue2.js +5 -0
  20. package/dist/components/accordion/accordion-trigger.vue.d.ts +44 -0
  21. package/dist/components/accordion/accordion-trigger.vue.js +30 -0
  22. package/dist/components/accordion/accordion-trigger.vue2.js +5 -0
  23. package/dist/components/accordion/accordion.styles.d.ts +99 -0
  24. package/dist/components/accordion/accordion.styles.js +42 -0
  25. package/dist/components/accordion/index.d.ts +15 -0
  26. package/dist/components/accordion/index.js +8 -0
  27. package/dist/components/alert/alert-body.vue.d.ts +16 -0
  28. package/dist/components/alert/alert-body.vue.js +54 -0
  29. package/dist/components/alert/alert-body.vue2.js +5 -0
  30. package/dist/components/alert/alert-close.vue.d.ts +12 -0
  31. package/dist/components/alert/alert-close.vue.js +38 -0
  32. package/dist/components/alert/alert-close.vue2.js +5 -0
  33. package/dist/components/alert/alert-content.vue.d.ts +28 -0
  34. package/dist/components/alert/alert-content.vue.js +54 -0
  35. package/dist/components/alert/alert-content.vue2.js +5 -0
  36. package/dist/components/alert/alert-description.vue.d.ts +16 -0
  37. package/dist/components/alert/alert-description.vue.js +41 -0
  38. package/dist/components/alert/alert-description.vue2.js +5 -0
  39. package/dist/components/alert/alert-footer.vue.d.ts +16 -0
  40. package/dist/components/alert/alert-footer.vue.js +54 -0
  41. package/dist/components/alert/alert-footer.vue2.js +5 -0
  42. package/dist/components/alert/alert-header.vue.d.ts +16 -0
  43. package/dist/components/alert/alert-header.vue.js +54 -0
  44. package/dist/components/alert/alert-header.vue2.js +5 -0
  45. package/dist/components/alert/alert-icon.vue.d.ts +8 -0
  46. package/dist/components/alert/alert-icon.vue.js +43 -0
  47. package/dist/components/alert/alert-icon.vue2.js +5 -0
  48. package/dist/components/alert/alert-root.vue.d.ts +48 -0
  49. package/dist/components/alert/alert-root.vue.js +57 -0
  50. package/dist/components/alert/alert-root.vue2.js +5 -0
  51. package/dist/components/alert/alert-title.vue.d.ts +16 -0
  52. package/dist/components/alert/alert-title.vue.js +41 -0
  53. package/dist/components/alert/alert-title.vue2.js +5 -0
  54. package/dist/components/alert/alert.styles.d.ts +96 -0
  55. package/dist/components/alert/alert.styles.js +147 -0
  56. package/dist/components/alert/index.d.ts +19 -0
  57. package/dist/components/alert/index.js +10 -0
  58. package/dist/components/avatar/avatar-fallback.vue.d.ts +14 -0
  59. package/dist/components/avatar/avatar-fallback.vue.js +35 -0
  60. package/dist/components/avatar/avatar-fallback.vue2.js +5 -0
  61. package/dist/components/avatar/avatar-group.vue.d.ts +20 -0
  62. package/dist/components/avatar/avatar-group.vue.js +101 -0
  63. package/dist/components/avatar/avatar-group.vue2.js +5 -0
  64. package/dist/components/avatar/avatar-image.vue.d.ts +14 -0
  65. package/dist/components/avatar/avatar-image.vue.js +37 -0
  66. package/dist/components/avatar/avatar-image.vue2.js +5 -0
  67. package/dist/components/avatar/avatar-root.vue.d.ts +57 -0
  68. package/dist/components/avatar/avatar-root.vue.js +102 -0
  69. package/dist/components/avatar/avatar-root.vue2.js +5 -0
  70. package/dist/components/avatar/avatar.styles.d.ts +209 -0
  71. package/dist/components/avatar/avatar.styles.js +50 -0
  72. package/dist/components/avatar/index.d.ts +9 -0
  73. package/dist/components/avatar/index.js +5 -0
  74. package/dist/components/badge/badge.styles.d.ts +87 -0
  75. package/dist/components/badge/badge.styles.js +41 -0
  76. package/dist/components/badge/badge.vue.d.ts +116 -0
  77. package/dist/components/badge/badge.vue.js +79 -0
  78. package/dist/components/badge/badge.vue2.js +5 -0
  79. package/dist/components/badge/index.d.ts +3 -0
  80. package/dist/components/badge/index.js +2 -0
  81. package/dist/components/breadcrumb/breadcrumb-current-link.vue.d.ts +29 -0
  82. package/dist/components/breadcrumb/breadcrumb-current-link.vue.js +28 -0
  83. package/dist/components/breadcrumb/breadcrumb-current-link.vue2.js +5 -0
  84. package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +28 -0
  85. package/dist/components/breadcrumb/breadcrumb-item.vue.js +27 -0
  86. package/dist/components/breadcrumb/breadcrumb-item.vue2.js +5 -0
  87. package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +53 -0
  88. package/dist/components/breadcrumb/breadcrumb-link.vue.js +30 -0
  89. package/dist/components/breadcrumb/breadcrumb-link.vue2.js +5 -0
  90. package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +28 -0
  91. package/dist/components/breadcrumb/breadcrumb-list.vue.js +27 -0
  92. package/dist/components/breadcrumb/breadcrumb-list.vue2.js +5 -0
  93. package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +78 -0
  94. package/dist/components/breadcrumb/breadcrumb-root.vue.js +39 -0
  95. package/dist/components/breadcrumb/breadcrumb-root.vue2.js +5 -0
  96. package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +41 -0
  97. package/dist/components/breadcrumb/breadcrumb-separator.vue.js +32 -0
  98. package/dist/components/breadcrumb/breadcrumb-separator.vue2.js +5 -0
  99. package/dist/components/breadcrumb/breadcrumb.styles.d.ts +144 -0
  100. package/dist/components/breadcrumb/breadcrumb.styles.js +58 -0
  101. package/dist/components/breadcrumb/index.d.ts +13 -0
  102. package/dist/components/breadcrumb/index.js +7 -0
  103. package/dist/components/button/button.styles.d.ts +90 -0
  104. package/dist/components/button/button.styles.js +41 -0
  105. package/dist/components/button/button.vue.d.ts +144 -0
  106. package/dist/components/button/button.vue.js +131 -0
  107. package/dist/components/button/button.vue2.js +5 -0
  108. package/dist/components/button/index.d.ts +3 -0
  109. package/dist/components/button/index.js +2 -0
  110. package/dist/components/card/card-body.vue.d.ts +29 -0
  111. package/dist/components/card/card-body.vue.js +27 -0
  112. package/dist/components/card/card-body.vue2.js +5 -0
  113. package/dist/components/card/card-footer.vue.d.ts +29 -0
  114. package/dist/components/card/card-footer.vue.js +27 -0
  115. package/dist/components/card/card-footer.vue2.js +5 -0
  116. package/dist/components/card/card-header.vue.d.ts +29 -0
  117. package/dist/components/card/card-header.vue.js +27 -0
  118. package/dist/components/card/card-header.vue2.js +5 -0
  119. package/dist/components/card/card-media.vue.d.ts +44 -0
  120. package/dist/components/card/card-media.vue.js +56 -0
  121. package/dist/components/card/card-media.vue2.js +5 -0
  122. package/dist/components/card/card-root.vue.d.ts +128 -0
  123. package/dist/components/card/card-root.vue.js +58 -0
  124. package/dist/components/card/card-root.vue2.js +5 -0
  125. package/dist/components/card/card.styles.d.ts +216 -0
  126. package/dist/components/card/card.styles.js +86 -0
  127. package/dist/components/card/index.d.ts +11 -0
  128. package/dist/components/card/index.js +6 -0
  129. package/dist/components/checkbox/checkbox-group-item.vue.d.ts +22 -0
  130. package/dist/components/checkbox/checkbox-group-item.vue.js +27 -0
  131. package/dist/components/checkbox/checkbox-group-item.vue2.js +5 -0
  132. package/dist/components/checkbox/checkbox-group.vue.d.ts +35 -0
  133. package/dist/components/checkbox/checkbox-group.vue.js +53 -0
  134. package/dist/components/checkbox/checkbox-group.vue2.js +5 -0
  135. package/dist/components/checkbox/checkbox-indicator.vue.d.ts +40 -0
  136. package/dist/components/checkbox/checkbox-indicator.vue.js +58 -0
  137. package/dist/components/checkbox/checkbox-indicator.vue2.js +5 -0
  138. package/dist/components/checkbox/checkbox-label.vue.d.ts +27 -0
  139. package/dist/components/checkbox/checkbox-label.vue.js +24 -0
  140. package/dist/components/checkbox/checkbox-label.vue2.js +5 -0
  141. package/dist/components/checkbox/checkbox-root.vue.d.ts +42 -0
  142. package/dist/components/checkbox/checkbox-root.vue.js +51 -0
  143. package/dist/components/checkbox/checkbox-root.vue2.js +5 -0
  144. package/dist/components/checkbox/checkbox.styles.d.ts +155 -0
  145. package/dist/components/checkbox/checkbox.styles.js +66 -0
  146. package/dist/components/checkbox/index.d.ts +11 -0
  147. package/dist/components/checkbox/index.js +6 -0
  148. package/dist/components/divider/divider.styles.d.ts +93 -0
  149. package/dist/components/divider/divider.styles.js +43 -0
  150. package/dist/components/divider/divider.vue.d.ts +89 -0
  151. package/dist/components/divider/divider.vue.js +51 -0
  152. package/dist/components/divider/divider.vue2.js +5 -0
  153. package/dist/components/divider/index.d.ts +3 -0
  154. package/dist/components/divider/index.js +2 -0
  155. package/dist/components/index.d.ts +10 -0
  156. package/dist/components/spinner/index.d.ts +3 -0
  157. package/dist/components/spinner/index.js +2 -0
  158. package/dist/components/spinner/spinner.styles.d.ts +112 -0
  159. package/dist/components/spinner/spinner.styles.js +47 -0
  160. package/dist/components/spinner/spinner.vue.d.ts +31 -0
  161. package/dist/components/spinner/spinner.vue.js +102 -0
  162. package/dist/components/spinner/spinner.vue2.js +5 -0
  163. package/dist/components/types/shared-types.d.ts +4 -0
  164. package/dist/index.d.ts +2 -0
  165. package/dist/index.js +54 -0
  166. package/package.json +94 -0
@@ -0,0 +1,54 @@
1
+ import { defineComponent, inject, ref, computed, createBlock, openBlock, Transition, withCtx, withDirectives, createVNode, unref, mergeProps, renderSlot, vShow } from 'vue';
2
+ import { useForwardProps, Primitive } from 'reka-ui';
3
+ import { alertVariants } from './alert.styles.js';
4
+
5
+ var _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "alert-footer",
7
+ props: {
8
+ class: { type: String, required: false },
9
+ asChild: { type: Boolean, required: false },
10
+ as: { type: null, required: false, default: "div" }
11
+ },
12
+ setup(__props) {
13
+ const props = __props;
14
+ const contentContext = inject("alertContentContext", {
15
+ collapsible: false,
16
+ collapsed: ref(false)
17
+ });
18
+ const collapsed = computed(() => contentContext.collapsed.value);
19
+ const delegatedProps = computed(() => {
20
+ const { as, asChild } = props;
21
+ return { as, asChild };
22
+ });
23
+ const forwardedProps = useForwardProps(delegatedProps);
24
+ const classes = computed(
25
+ () => alertVariants({
26
+ class: props.class
27
+ })
28
+ );
29
+ return (_ctx, _cache) => {
30
+ return openBlock(), createBlock(Transition, {
31
+ name: "vif-collapse",
32
+ persisted: ""
33
+ }, {
34
+ default: withCtx(() => [
35
+ withDirectives(createVNode(unref(Primitive), mergeProps(unref(forwardedProps), {
36
+ class: classes.value.contentFooter()
37
+ }), {
38
+ default: withCtx(() => [
39
+ renderSlot(_ctx.$slots, "default")
40
+ ]),
41
+ _: 3
42
+ /* FORWARDED */
43
+ }, 16, ["class"]), [
44
+ [vShow, !collapsed.value]
45
+ ])
46
+ ]),
47
+ _: 3
48
+ /* FORWARDED */
49
+ });
50
+ };
51
+ }
52
+ });
53
+
54
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './alert-footer.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,16 @@
1
+ import { type PrimitiveProps } from 'reka-ui';
2
+ import { type Slot } from 'vue';
3
+ export interface AlertHeaderProps extends PrimitiveProps {
4
+ class?: string;
5
+ }
6
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AlertHeaderProps> & Readonly<{}>, {
7
+ as: import("reka-ui").AsTag | import("vue").Component;
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
9
+ default: Slot;
10
+ }>;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,54 @@
1
+ import { defineComponent, inject, ref, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
2
+ import { useForwardProps, Primitive } from 'reka-ui';
3
+ import { alertVariants } from './alert.styles.js';
4
+
5
+ var _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "alert-header",
7
+ props: {
8
+ class: { type: String, required: false },
9
+ asChild: { type: Boolean, required: false },
10
+ as: { type: null, required: false, default: "div" }
11
+ },
12
+ setup(__props) {
13
+ const props = __props;
14
+ const contentContext = inject("alertContentContext", {
15
+ collapsible: false,
16
+ collapsed: ref(false),
17
+ toggle: () => {
18
+ }
19
+ });
20
+ const delegatedProps = computed(() => {
21
+ const {
22
+ as,
23
+ asChild
24
+ } = props;
25
+ return { as, asChild };
26
+ });
27
+ const computedDelegatedProps = computed(() => ({
28
+ ...delegatedProps.value,
29
+ as: contentContext.collapsible ? "button" : props.as
30
+ }));
31
+ const forwardedProps = useForwardProps(computedDelegatedProps);
32
+ const classes = computed(
33
+ () => alertVariants({
34
+ class: props.class,
35
+ contentCollapsible: contentContext.collapsible
36
+ })
37
+ );
38
+ return (_ctx, _cache) => {
39
+ return openBlock(), createBlock(unref(Primitive), mergeProps({
40
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(contentContext).collapsible && unref(contentContext).toggle())
41
+ }, unref(forwardedProps), {
42
+ class: classes.value.contentHeader()
43
+ }), {
44
+ default: withCtx(() => [
45
+ renderSlot(_ctx.$slots, "default")
46
+ ]),
47
+ _: 3
48
+ /* FORWARDED */
49
+ }, 16, ["class"]);
50
+ };
51
+ }
52
+ });
53
+
54
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './alert-header.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,8 @@
1
+ import { type IconifyIconProps } from '@iconify/vue';
2
+ export interface AlertIconProps extends IconifyIconProps {
3
+ class?: string;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<AlertIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AlertIconProps> & Readonly<{}>, {
6
+ mode: import("@iconify/vue/dist/iconify.js").IconifyRenderMode;
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,43 @@
1
+ import { defineComponent, computed, createBlock, openBlock, resolveDynamicComponent, unref, normalizeProps, guardReactiveProps } from 'vue';
2
+ import { Icon } from '@iconify/vue';
3
+ import { alertVariants } from './alert.styles.js';
4
+
5
+ var _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "alert-icon",
7
+ props: {
8
+ class: { type: String, required: false },
9
+ icon: { type: [Object, String], required: true },
10
+ mode: { type: String, required: false, default: "svg" },
11
+ color: { type: String, required: false },
12
+ flip: { type: String, required: false },
13
+ rotate: { type: [Number, String], required: false },
14
+ hFlip: { type: Boolean, required: false },
15
+ vFlip: { type: Boolean, required: false },
16
+ width: { type: [null, String, Number], required: false },
17
+ height: { type: [null, String, Number], required: false },
18
+ inline: { type: Boolean, required: false }
19
+ },
20
+ setup(__props) {
21
+ const props = __props;
22
+ const classes = computed(
23
+ () => alertVariants({
24
+ class: props.class
25
+ })
26
+ );
27
+ const computedProps = computed(() => ({
28
+ ...props,
29
+ class: classes.value.icon()
30
+ }));
31
+ return (_ctx, _cache) => {
32
+ return openBlock(), createBlock(
33
+ resolveDynamicComponent(unref(Icon)),
34
+ normalizeProps(guardReactiveProps(computedProps.value)),
35
+ null,
36
+ 16
37
+ /* FULL_PROPS */
38
+ );
39
+ };
40
+ }
41
+ });
42
+
43
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './alert-icon.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,48 @@
1
+ import { type PrimitiveProps } from "reka-ui";
2
+ import { type Slot } from "vue";
3
+ import type { Colors, Variants } from "../types/shared-types";
4
+ export interface AlertRootProps extends PrimitiveProps {
5
+ /**
6
+ * The variant of the alert
7
+ * @defaultValue "primary"
8
+ */
9
+ variant?: Extract<Variants, "primary" | "secondary" | "soft" | "outline">;
10
+ /**
11
+ * The color of the alert
12
+ * @defaultValue "brand"
13
+ */
14
+ color?: Colors;
15
+ /**
16
+ * Hides the content of the alert (makes the title a trigger)
17
+ * @defaultValue "false"
18
+ */
19
+ hideContent?: boolean;
20
+ class?: string;
21
+ }
22
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertRootProps & {
23
+ /**
24
+ * Handles the visibility of the alert
25
+ */
26
+ visible?: boolean;
27
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
+ "update:visible": (value: boolean) => any;
29
+ }, string, import("vue").PublicProps, Readonly<AlertRootProps & {
30
+ /**
31
+ * Handles the visibility of the alert
32
+ */
33
+ visible?: boolean;
34
+ }> & Readonly<{
35
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
36
+ }>, {
37
+ variant: Extract<Variants, "primary" | "secondary" | "soft" | "outline">;
38
+ color: Colors;
39
+ as: import("reka-ui").AsTag | import("vue").Component;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
41
+ default: Slot;
42
+ }>;
43
+ export default _default;
44
+ type __VLS_WithSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,57 @@
1
+ import { defineComponent, mergeModels, computed, useModel, createBlock, openBlock, Transition, withCtx, createCommentVNode, unref, mergeProps, renderSlot } from 'vue';
2
+ import { useForwardProps, Primitive } from 'reka-ui';
3
+ import { alertVariants } from './alert.styles.js';
4
+
5
+ var _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "alert-root",
7
+ props: /* @__PURE__ */ mergeModels({
8
+ variant: { type: String, required: false, default: "primary" },
9
+ color: { type: String, required: false, default: "brand" },
10
+ hideContent: { type: Boolean, required: false },
11
+ class: { type: String, required: false },
12
+ asChild: { type: Boolean, required: false },
13
+ as: { type: null, required: false, default: "div" }
14
+ }, {
15
+ "visible": { type: Boolean, default: true },
16
+ "visibleModifiers": {}
17
+ }),
18
+ emits: ["update:visible"],
19
+ setup(__props) {
20
+ const props = __props;
21
+ const delegatedProps = computed(() => {
22
+ const { class: className, color, variant, ...rest } = props;
23
+ return rest;
24
+ });
25
+ const forwardedProps = useForwardProps(delegatedProps);
26
+ const visible = useModel(__props, "visible");
27
+ const classes = computed(
28
+ () => alertVariants({
29
+ class: props.class,
30
+ variant: props.variant,
31
+ color: props.color
32
+ })
33
+ );
34
+ return (_ctx, _cache) => {
35
+ return openBlock(), createBlock(Transition, { name: "vif-alert-fade" }, {
36
+ default: withCtx(() => [
37
+ visible.value ? (openBlock(), createBlock(unref(Primitive), mergeProps({
38
+ key: 0,
39
+ role: "alert"
40
+ }, unref(forwardedProps), {
41
+ class: classes.value.base()
42
+ }), {
43
+ default: withCtx(() => [
44
+ renderSlot(_ctx.$slots, "default", { visible: visible.value })
45
+ ]),
46
+ _: 3
47
+ /* FORWARDED */
48
+ }, 16, ["class"])) : createCommentVNode("v-if", true)
49
+ ]),
50
+ _: 3
51
+ /* FORWARDED */
52
+ });
53
+ };
54
+ }
55
+ });
56
+
57
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './alert-root.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,16 @@
1
+ import { type PrimitiveProps } from 'reka-ui';
2
+ import { type Slot } from 'vue';
3
+ export interface AlertTitleProps extends PrimitiveProps {
4
+ class?: string;
5
+ }
6
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AlertTitleProps> & Readonly<{}>, {
7
+ as: import("reka-ui").AsTag | import("vue").Component;
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
9
+ default: Slot;
10
+ }>;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,41 @@
1
+ import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
2
+ import { useForwardProps, Primitive } from 'reka-ui';
3
+ import { alertVariants } from './alert.styles.js';
4
+
5
+ var _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "alert-title",
7
+ props: {
8
+ class: { type: String, required: false },
9
+ asChild: { type: Boolean, required: false },
10
+ as: { type: null, required: false, default: "div" }
11
+ },
12
+ setup(__props) {
13
+ const props = __props;
14
+ const delegatedProps = computed(() => {
15
+ const {
16
+ as,
17
+ asChild
18
+ } = props;
19
+ return { as, asChild };
20
+ });
21
+ const forwardedProps = useForwardProps(delegatedProps);
22
+ const classes = computed(
23
+ () => alertVariants({
24
+ class: props.class
25
+ })
26
+ );
27
+ return (_ctx, _cache) => {
28
+ return openBlock(), createBlock(unref(Primitive), mergeProps(unref(forwardedProps), {
29
+ class: classes.value.contentHeaderTitle()
30
+ }), {
31
+ default: withCtx(() => [
32
+ renderSlot(_ctx.$slots, "default")
33
+ ]),
34
+ _: 3
35
+ /* FORWARDED */
36
+ }, 16, ["class"]);
37
+ };
38
+ }
39
+ });
40
+
41
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './alert-title.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,96 @@
1
+ import type { VariantProps } from "tailwind-variants";
2
+ /**
3
+ * Alert component variant mapper
4
+ *
5
+ * Maps variant props to @vifui/styles CSS classes
6
+ * Inspired by Vuesax's alert architecture
7
+ */
8
+ export declare const alertVariants: import("tailwind-variants").TVReturnType<{
9
+ variant: {
10
+ primary: string;
11
+ secondary: string;
12
+ soft: string;
13
+ outline: string;
14
+ };
15
+ color: {
16
+ brand: string;
17
+ neutral: string;
18
+ success: string;
19
+ warning: string;
20
+ danger: string;
21
+ };
22
+ contentCollapsible: {
23
+ true: {
24
+ contentHeader: string;
25
+ };
26
+ false: string;
27
+ };
28
+ }, {
29
+ content: string;
30
+ contentHeader: string;
31
+ contentHeaderTitle: string;
32
+ contentHeaderDescription: string;
33
+ contentBody: string;
34
+ contentFooter: string;
35
+ icon: string;
36
+ close: string;
37
+ }, "vif-alert", {
38
+ variant: {
39
+ primary: string;
40
+ secondary: string;
41
+ soft: string;
42
+ outline: string;
43
+ };
44
+ color: {
45
+ brand: string;
46
+ neutral: string;
47
+ success: string;
48
+ warning: string;
49
+ danger: string;
50
+ };
51
+ contentCollapsible: {
52
+ true: {
53
+ contentHeader: string;
54
+ };
55
+ false: string;
56
+ };
57
+ }, {
58
+ content: string;
59
+ contentHeader: string;
60
+ contentHeaderTitle: string;
61
+ contentHeaderDescription: string;
62
+ contentBody: string;
63
+ contentFooter: string;
64
+ icon: string;
65
+ close: string;
66
+ }, import("tailwind-variants").TVReturnType<{
67
+ variant: {
68
+ primary: string;
69
+ secondary: string;
70
+ soft: string;
71
+ outline: string;
72
+ };
73
+ color: {
74
+ brand: string;
75
+ neutral: string;
76
+ success: string;
77
+ warning: string;
78
+ danger: string;
79
+ };
80
+ contentCollapsible: {
81
+ true: {
82
+ contentHeader: string;
83
+ };
84
+ false: string;
85
+ };
86
+ }, {
87
+ content: string;
88
+ contentHeader: string;
89
+ contentHeaderTitle: string;
90
+ contentHeaderDescription: string;
91
+ contentBody: string;
92
+ contentFooter: string;
93
+ icon: string;
94
+ close: string;
95
+ }, "vif-alert", unknown, unknown, undefined>>;
96
+ export type AlertVariantProps = VariantProps<typeof alertVariants>;
@@ -0,0 +1,147 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const alertVariants = tv({
4
+ base: "vif-alert",
5
+ slots: {
6
+ content: "vif-alert__content",
7
+ contentHeader: "vif-alert__header",
8
+ contentHeaderTitle: "vif-alert__title",
9
+ contentHeaderDescription: "vif-alert__description",
10
+ contentBody: "vif-alert__body",
11
+ contentFooter: "vif-alert__footer",
12
+ icon: "vif-alert__icon",
13
+ close: "vif-alert__close"
14
+ },
15
+ variants: {
16
+ variant: {
17
+ primary: "",
18
+ secondary: "",
19
+ soft: "",
20
+ outline: ""
21
+ },
22
+ color: {
23
+ brand: "",
24
+ neutral: "",
25
+ success: "",
26
+ warning: "",
27
+ danger: ""
28
+ },
29
+ contentCollapsible: {
30
+ true: { contentHeader: "vif-alert__content-collapsible" },
31
+ false: ""
32
+ }
33
+ },
34
+ compoundVariants: [
35
+ // Brand
36
+ {
37
+ color: "brand",
38
+ variant: "primary",
39
+ class: "vif-alert-brand-primary"
40
+ },
41
+ {
42
+ color: "brand",
43
+ variant: "secondary",
44
+ class: "vif-alert-brand-secondary"
45
+ },
46
+ {
47
+ color: "brand",
48
+ variant: "soft",
49
+ class: "vif-alert-brand-soft"
50
+ },
51
+ {
52
+ color: "brand",
53
+ variant: "outline",
54
+ class: "vif-alert-brand-outline"
55
+ },
56
+ // Neutral
57
+ {
58
+ color: "neutral",
59
+ variant: "primary",
60
+ class: "vif-alert-neutral-primary"
61
+ },
62
+ {
63
+ color: "neutral",
64
+ variant: "soft",
65
+ class: "vif-alert-neutral-soft"
66
+ },
67
+ {
68
+ color: "neutral",
69
+ variant: "outline",
70
+ class: "vif-alert-neutral-outline"
71
+ },
72
+ {
73
+ color: "neutral",
74
+ variant: "secondary",
75
+ class: "vif-alert-neutral-secondary"
76
+ },
77
+ // Success
78
+ {
79
+ color: "success",
80
+ variant: "primary",
81
+ class: "vif-alert-success-primary"
82
+ },
83
+ {
84
+ color: "success",
85
+ variant: "soft",
86
+ class: "vif-alert-success-soft"
87
+ },
88
+ {
89
+ color: "success",
90
+ variant: "outline",
91
+ class: "vif-alert-success-outline"
92
+ },
93
+ {
94
+ color: "success",
95
+ variant: "secondary",
96
+ class: "vif-alert-success-secondary"
97
+ },
98
+ // Warning
99
+ {
100
+ color: "warning",
101
+ variant: "primary",
102
+ class: "vif-alert-warning-primary"
103
+ },
104
+ {
105
+ color: "warning",
106
+ variant: "soft",
107
+ class: "vif-alert-warning-soft"
108
+ },
109
+ {
110
+ color: "warning",
111
+ variant: "outline",
112
+ class: "vif-alert-warning-outline"
113
+ },
114
+ {
115
+ color: "warning",
116
+ variant: "secondary",
117
+ class: "vif-alert-warning-secondary"
118
+ },
119
+ // Danger
120
+ {
121
+ color: "danger",
122
+ variant: "primary",
123
+ class: "vif-alert-danger-primary"
124
+ },
125
+ {
126
+ color: "danger",
127
+ variant: "soft",
128
+ class: "vif-alert-danger-soft"
129
+ },
130
+ {
131
+ color: "danger",
132
+ variant: "outline",
133
+ class: "vif-alert-danger-outline"
134
+ },
135
+ {
136
+ color: "danger",
137
+ variant: "secondary",
138
+ class: "vif-alert-danger-secondary"
139
+ }
140
+ ],
141
+ defaultVariants: {
142
+ variant: "primary",
143
+ color: "brand"
144
+ }
145
+ });
146
+
147
+ export { alertVariants };
@@ -0,0 +1,19 @@
1
+ export { default as AlertRoot } from './alert-root.vue';
2
+ export { default as AlertIcon } from './alert-icon.vue';
3
+ export { default as AlertContent } from './alert-content.vue';
4
+ export { default as AlertHeader } from './alert-header.vue';
5
+ export { default as AlertTitle } from './alert-title.vue';
6
+ export { default as AlertDescription } from './alert-description.vue';
7
+ export { default as AlertBody } from './alert-body.vue';
8
+ export { default as AlertFooter } from './alert-footer.vue';
9
+ export { default as AlertClose } from './alert-close.vue';
10
+ export type { AlertRootProps } from './alert-root.vue';
11
+ export type { AlertIconProps } from './alert-icon.vue';
12
+ export type { AlertContentProps } from './alert-content.vue';
13
+ export type { AlertHeaderProps } from './alert-header.vue';
14
+ export type { AlertTitleProps } from './alert-title.vue';
15
+ export type { AlertDescriptionProps } from './alert-description.vue';
16
+ export type { AlertBodyProps } from './alert-body.vue';
17
+ export type { AlertFooterProps } from './alert-footer.vue';
18
+ export type { AlertCloseProps } from './alert-close.vue';
19
+ export { alertVariants, type AlertVariantProps } from './alert.styles';
@@ -0,0 +1,10 @@
1
+ export { default as AlertRoot } from './alert-root.vue.js';
2
+ export { default as AlertIcon } from './alert-icon.vue.js';
3
+ export { default as AlertContent } from './alert-content.vue.js';
4
+ export { default as AlertHeader } from './alert-header.vue.js';
5
+ export { default as AlertTitle } from './alert-title.vue.js';
6
+ export { default as AlertDescription } from './alert-description.vue.js';
7
+ export { default as AlertBody } from './alert-body.vue.js';
8
+ export { default as AlertFooter } from './alert-footer.vue.js';
9
+ export { default as AlertClose } from './alert-close.vue.js';
10
+ export { alertVariants } from './alert.styles.js';
@@ -0,0 +1,14 @@
1
+ import { type AvatarFallbackProps as RekaAvatarFallbackProps } from "reka-ui";
2
+ import { type Slot } from "vue";
3
+ export interface AvatarFallbackProps extends RekaAvatarFallbackProps {
4
+ class?: string;
5
+ }
6
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarFallbackProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarFallbackProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
7
+ default: Slot;
8
+ }>;
9
+ export default _default;
10
+ type __VLS_WithSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };