@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.
- package/README.md +13 -19
- package/dist/components/accordion/accordion-body.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-body.vue.js +1 -1
- package/dist/components/accordion/accordion-content.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-content.vue.js +1 -1
- package/dist/components/accordion/accordion-header.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-header.vue.js +1 -1
- package/dist/components/accordion/accordion-indicator.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-indicator.vue.js +1 -1
- package/dist/components/accordion/accordion-item.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-item.vue.js +1 -1
- package/dist/components/accordion/accordion-root.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-root.vue.js +1 -1
- package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-trigger.vue.js +1 -1
- package/dist/components/accordion/index.d.ts +15 -15
- package/dist/components/alert/alert-body.vue.d.ts +2 -2
- package/dist/components/alert/alert-body.vue.js +1 -1
- package/dist/components/alert/alert-close.vue.d.ts +2 -1
- package/dist/components/alert/alert-close.vue.js +17 -5
- package/dist/components/alert/alert-content.vue.d.ts +5 -5
- package/dist/components/alert/alert-content.vue.js +2 -5
- package/dist/components/alert/alert-description.vue.d.ts +3 -3
- package/dist/components/alert/alert-description.vue.js +2 -5
- package/dist/components/alert/alert-footer.vue.d.ts +2 -2
- package/dist/components/alert/alert-footer.vue.js +1 -1
- package/dist/components/alert/alert-header.vue.d.ts +3 -3
- package/dist/components/alert/alert-header.vue.js +2 -5
- package/dist/components/alert/alert-icon.vue.d.ts +3 -2
- package/dist/components/alert/alert-icon.vue.js +1 -1
- package/dist/components/alert/alert-root.vue.d.ts +2 -2
- package/dist/components/alert/alert-root.vue.js +6 -2
- package/dist/components/alert/alert-title.vue.d.ts +3 -3
- package/dist/components/alert/alert-title.vue.js +2 -5
- package/dist/components/alert/index.d.ts +19 -19
- package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-fallback.vue.js +1 -1
- package/dist/components/avatar/avatar-group.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-group.vue.js +1 -1
- package/dist/components/avatar/avatar-image.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-image.vue.js +1 -1
- package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-root.vue.js +1 -1
- package/dist/components/avatar/index.d.ts +9 -9
- package/dist/components/badge/badge.vue.d.ts +2 -1
- package/dist/components/badge/badge.vue.js +1 -1
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/components/breadcrumb/breadcrumb-current-link.vue.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb-current-link.vue.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb-item.vue.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb-link.vue.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb-list.vue.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb-root.vue.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb-separator.vue.js +1 -1
- package/dist/components/breadcrumb/index.d.ts +1 -1
- package/dist/components/button/button.vue.d.ts +3 -2
- package/dist/components/button/button.vue.js +6 -26
- package/dist/components/button/index.d.ts +3 -3
- package/dist/components/card/card-body.vue.d.ts +2 -1
- package/dist/components/card/card-body.vue.js +1 -1
- package/dist/components/card/card-footer.vue.d.ts +2 -1
- package/dist/components/card/card-footer.vue.js +1 -1
- package/dist/components/card/card-header.vue.d.ts +2 -1
- package/dist/components/card/card-header.vue.js +1 -1
- package/dist/components/card/card-media.vue.d.ts +2 -1
- package/dist/components/card/card-media.vue.js +1 -1
- package/dist/components/card/card-root.vue.d.ts +2 -1
- package/dist/components/card/card-root.vue.js +1 -1
- package/dist/components/checkbox/checkbox-group-item.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox-group-item.vue.js +1 -1
- package/dist/components/checkbox/checkbox-group.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox-group.vue.js +1 -1
- package/dist/components/checkbox/checkbox-indicator.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox-indicator.vue.js +1 -1
- package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox-label.vue.js +1 -1
- package/dist/components/checkbox/checkbox-root.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox-root.vue.js +1 -1
- package/dist/components/divider/divider.vue.d.ts +2 -1
- package/dist/components/divider/divider.vue.js +1 -1
- package/dist/components/divider/index.d.ts +3 -3
- package/dist/components/index.d.ts +3 -0
- package/dist/components/list/index.d.ts +19 -0
- package/dist/components/list/index.js +10 -0
- package/dist/components/list/list-avatar.vue.d.ts +19 -0
- package/dist/components/list/list-avatar.vue.js +27 -0
- package/dist/components/list/list-avatar.vue2.js +5 -0
- package/dist/components/list/list-content.vue.d.ts +19 -0
- package/dist/components/list/list-content.vue.js +27 -0
- package/dist/components/list/list-content.vue2.js +5 -0
- package/dist/components/list/list-header.vue.d.ts +31 -0
- package/dist/components/list/list-header.vue.js +32 -0
- package/dist/components/list/list-header.vue2.js +5 -0
- package/dist/components/list/list-icon.vue.d.ts +19 -0
- package/dist/components/list/list-icon.vue.js +27 -0
- package/dist/components/list/list-icon.vue2.js +5 -0
- package/dist/components/list/list-item.vue.d.ts +46 -0
- package/dist/components/list/list-item.vue.js +60 -0
- package/dist/components/list/list-item.vue2.js +5 -0
- package/dist/components/list/list-root.vue.d.ts +52 -0
- package/dist/components/list/list-root.vue.js +38 -0
- package/dist/components/list/list-root.vue2.js +5 -0
- package/dist/components/list/list-slot.vue.d.ts +19 -0
- package/dist/components/list/list-slot.vue.js +27 -0
- package/dist/components/list/list-slot.vue2.js +5 -0
- package/dist/components/list/list-subtitle.vue.d.ts +19 -0
- package/dist/components/list/list-subtitle.vue.js +27 -0
- package/dist/components/list/list-subtitle.vue2.js +5 -0
- package/dist/components/list/list-title.vue.d.ts +19 -0
- package/dist/components/list/list-title.vue.js +27 -0
- package/dist/components/list/list-title.vue2.js +5 -0
- package/dist/components/list/list.styles.d.ts +129 -0
- package/dist/components/list/list.styles.js +53 -0
- package/dist/components/spinner/index.d.ts +3 -3
- package/dist/components/spinner/spinner.vue.d.ts +2 -1
- package/dist/components/spinner/spinner.vue.js +1 -1
- package/dist/components/tabs/index.d.ts +11 -0
- package/dist/components/tabs/index.js +6 -0
- package/dist/components/tabs/tabs-content.vue.d.ts +25 -0
- package/dist/components/tabs/tabs-content.vue.js +37 -0
- package/dist/components/tabs/tabs-content.vue2.js +5 -0
- package/dist/components/tabs/tabs-indicator.vue.d.ts +25 -0
- package/dist/components/tabs/tabs-indicator.vue.js +35 -0
- package/dist/components/tabs/tabs-indicator.vue2.js +5 -0
- package/dist/components/tabs/tabs-list.vue.d.ts +26 -0
- package/dist/components/tabs/tabs-list.vue.js +36 -0
- package/dist/components/tabs/tabs-list.vue2.js +5 -0
- package/dist/components/tabs/tabs-root.vue.d.ts +39 -0
- package/dist/components/tabs/tabs-root.vue.js +44 -0
- package/dist/components/tabs/tabs-root.vue2.js +5 -0
- package/dist/components/tabs/tabs-trigger.vue.d.ts +39 -0
- package/dist/components/tabs/tabs-trigger.vue.js +42 -0
- package/dist/components/tabs/tabs-trigger.vue2.js +5 -0
- package/dist/components/tabs/tabs.styles.d.ts +56 -0
- package/dist/components/tabs/tabs.styles.js +13 -0
- package/dist/components/tooltip/index.d.ts +13 -0
- package/dist/components/tooltip/index.js +7 -0
- package/dist/components/tooltip/tooltip-arrow.vue.d.ts +24 -0
- package/dist/components/tooltip/tooltip-arrow.vue.js +37 -0
- package/dist/components/tooltip/tooltip-arrow.vue2.js +5 -0
- package/dist/components/tooltip/tooltip-content.vue.d.ts +34 -0
- package/dist/components/tooltip/tooltip-content.vue.js +51 -0
- package/dist/components/tooltip/tooltip-content.vue2.js +5 -0
- package/dist/components/tooltip/tooltip-portal.vue.d.ts +18 -0
- package/dist/components/tooltip/tooltip-portal.vue.js +33 -0
- package/dist/components/tooltip/tooltip-portal.vue2.js +5 -0
- package/dist/components/tooltip/tooltip-provider.vue.d.ts +23 -0
- package/dist/components/tooltip/tooltip-provider.vue.js +35 -0
- package/dist/components/tooltip/tooltip-provider.vue2.js +5 -0
- package/dist/components/tooltip/tooltip-root.vue.d.ts +30 -0
- package/dist/components/tooltip/tooltip-root.vue.js +38 -0
- package/dist/components/tooltip/tooltip-root.vue2.js +5 -0
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +24 -0
- package/dist/components/tooltip/tooltip-trigger.vue.js +32 -0
- package/dist/components/tooltip/tooltip-trigger.vue2.js +5 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +62 -0
- package/dist/components/tooltip/tooltip.styles.js +14 -0
- package/dist/index.js +23 -0
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type AvatarFallbackProps as RekaAvatarFallbackProps } from "reka-ui";
|
|
2
|
-
import { type Slot } from "vue";
|
|
2
|
+
import { type HTMLAttributes, type Slot } from "vue";
|
|
3
3
|
export interface AvatarFallbackProps extends RekaAvatarFallbackProps {
|
|
4
|
-
class?:
|
|
4
|
+
class?: HTMLAttributes["class"];
|
|
5
5
|
}
|
|
6
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
7
|
default: Slot;
|
|
@@ -5,7 +5,7 @@ import { avatarVariants } from './avatar.styles.js';
|
|
|
5
5
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "avatar-fallback",
|
|
7
7
|
props: {
|
|
8
|
-
class: { type:
|
|
8
|
+
class: { type: null, required: false },
|
|
9
9
|
delayMs: { type: Number, required: false },
|
|
10
10
|
asChild: { type: Boolean, required: false },
|
|
11
11
|
as: { type: null, required: false }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PrimitiveProps } from "reka-ui";
|
|
2
|
-
import { type Slot } from "vue";
|
|
2
|
+
import { type HTMLAttributes, type Slot } from "vue";
|
|
3
3
|
export interface AvatarGroupProps extends PrimitiveProps {
|
|
4
|
-
class?:
|
|
4
|
+
class?: HTMLAttributes["class"];
|
|
5
5
|
/**
|
|
6
6
|
* Limits the number of avatars displayed The rest is displayed as an `+n` avatar
|
|
7
7
|
*/
|
|
@@ -7,7 +7,7 @@ import _sfc_main$2 from './avatar-fallback.vue.js';
|
|
|
7
7
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "avatar-group",
|
|
9
9
|
props: {
|
|
10
|
-
class: { type:
|
|
10
|
+
class: { type: null, required: false },
|
|
11
11
|
max: { type: Number, required: false },
|
|
12
12
|
asChild: { type: Boolean, required: false },
|
|
13
13
|
as: { type: null, required: false, default: "div" }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type AvatarImageProps as RekaAvatarImageProps } from "reka-ui";
|
|
2
|
-
import { type Slot } from "vue";
|
|
2
|
+
import { type HTMLAttributes, type Slot } from "vue";
|
|
3
3
|
export interface AvatarImageProps extends RekaAvatarImageProps {
|
|
4
|
-
class?:
|
|
4
|
+
class?: HTMLAttributes["class"];
|
|
5
5
|
}
|
|
6
6
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarImageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
7
7
|
default: Slot;
|
|
@@ -5,7 +5,7 @@ import { avatarVariants } from './avatar.styles.js';
|
|
|
5
5
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "avatar-image",
|
|
7
7
|
props: {
|
|
8
|
-
class: { type:
|
|
8
|
+
class: { type: null, required: false },
|
|
9
9
|
src: { type: String, required: true },
|
|
10
10
|
referrerPolicy: { type: null, required: false },
|
|
11
11
|
crossOrigin: { type: null, required: false },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type AvatarRootProps as RekaAvatarRootProps } from "reka-ui";
|
|
2
2
|
import type { Sizes, Colors } from "src/components/types/shared-types";
|
|
3
|
-
import { type Slot } from "vue";
|
|
3
|
+
import { type HTMLAttributes, type Slot } from "vue";
|
|
4
4
|
import { type SpinnerProps } from "../spinner";
|
|
5
5
|
export interface AvatarRootProps extends RekaAvatarRootProps {
|
|
6
6
|
/**
|
|
@@ -13,7 +13,7 @@ export interface AvatarRootProps extends RekaAvatarRootProps {
|
|
|
13
13
|
* @default 'flat'
|
|
14
14
|
*/
|
|
15
15
|
variant?: "flat" | "ringed";
|
|
16
|
-
class?:
|
|
16
|
+
class?: HTMLAttributes["class"];
|
|
17
17
|
/** The ring color of the avatar if `variant` prop is `ring`
|
|
18
18
|
* @default 'neutral'
|
|
19
19
|
*/
|
|
@@ -8,7 +8,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8
8
|
props: {
|
|
9
9
|
size: { type: String, required: false, default: "md" },
|
|
10
10
|
variant: { type: String, required: false, default: "flat" },
|
|
11
|
-
class: { type:
|
|
11
|
+
class: { type: null, required: false },
|
|
12
12
|
ringColor: { type: String, required: false, default: "neutral" },
|
|
13
13
|
shape: { type: String, required: false, default: "circle" },
|
|
14
14
|
loading: { type: Boolean, required: false, default: false },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { default as AvatarRoot } from
|
|
2
|
-
export { default as AvatarImage } from
|
|
3
|
-
export { default as AvatarFallback } from
|
|
4
|
-
export { default as AvatarGroup } from
|
|
5
|
-
export { avatarVariants, type AvatarVariantProps } from
|
|
6
|
-
export type { AvatarRootProps } from
|
|
7
|
-
export type { AvatarImageProps } from
|
|
8
|
-
export type { AvatarFallbackProps } from
|
|
9
|
-
export type { AvatarGroupProps } from
|
|
1
|
+
export { default as AvatarRoot } from "./avatar-root.vue";
|
|
2
|
+
export { default as AvatarImage } from "./avatar-image.vue";
|
|
3
|
+
export { default as AvatarFallback } from "./avatar-fallback.vue";
|
|
4
|
+
export { default as AvatarGroup } from "./avatar-group.vue";
|
|
5
|
+
export { avatarVariants, type AvatarVariantProps } from "./avatar.styles";
|
|
6
|
+
export type { AvatarRootProps } from "./avatar-root.vue";
|
|
7
|
+
export type { AvatarImageProps } from "./avatar-image.vue";
|
|
8
|
+
export type { AvatarFallbackProps } from "./avatar-fallback.vue";
|
|
9
|
+
export type { AvatarGroupProps } from "./avatar-group.vue";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "vue";
|
|
1
2
|
import type { Colors, Sizes } from "../types/shared-types";
|
|
2
3
|
/**
|
|
3
4
|
* Props for the VifUI Badge component.
|
|
@@ -70,7 +71,7 @@ export interface BadgeProps {
|
|
|
70
71
|
* <Badge class="uppercase">Custom</Badge>
|
|
71
72
|
* ```
|
|
72
73
|
*/
|
|
73
|
-
class?:
|
|
74
|
+
class?: HTMLAttributes["class"];
|
|
74
75
|
/**
|
|
75
76
|
* Icon to display before the badge content.
|
|
76
77
|
* Should be a component (e.g., from lucide-vue-next or @iconify/vue).
|
|
@@ -16,7 +16,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
rounded: { type: Boolean, required: false, default: false },
|
|
17
17
|
dot: { type: Boolean, required: false, default: false },
|
|
18
18
|
removable: { type: Boolean, required: false, default: false },
|
|
19
|
-
class: { type:
|
|
19
|
+
class: { type: null, required: false },
|
|
20
20
|
startIcon: { type: null, required: false },
|
|
21
21
|
endIcon: { type: null, required: false }
|
|
22
22
|
},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Badge } from
|
|
2
|
-
export { badgeVariants, type BadgeVariantProps } from
|
|
3
|
-
export type { BadgeProps } from
|
|
1
|
+
export { default as Badge } from "./badge.vue";
|
|
2
|
+
export { badgeVariants, type BadgeVariantProps } from "./badge.styles";
|
|
3
|
+
export type { BadgeProps } from "./badge.vue";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
1
2
|
/**
|
|
2
3
|
* Props for the VifUI BreadcrumbCurrentLink component.
|
|
3
4
|
* Represents the current page/item in the breadcrumb and renders
|
|
@@ -13,7 +14,7 @@ export interface BreadcrumbCurrentLinkProps {
|
|
|
13
14
|
* <BreadcrumbCurrentLink class="text-gray-900" />
|
|
14
15
|
* ```
|
|
15
16
|
*/
|
|
16
|
-
class?:
|
|
17
|
+
class?: HTMLAttributes["class"];
|
|
17
18
|
}
|
|
18
19
|
declare var __VLS_1: {};
|
|
19
20
|
type __VLS_Slots = {} & {
|
|
@@ -3,7 +3,7 @@ import { defineComponent, inject, createElementBlock, openBlock, normalizeClass,
|
|
|
3
3
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "breadcrumb-current-link",
|
|
5
5
|
props: {
|
|
6
|
-
class: { type:
|
|
6
|
+
class: { type: null, required: false }
|
|
7
7
|
},
|
|
8
8
|
setup(__props) {
|
|
9
9
|
const props = __props;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
1
2
|
/**
|
|
2
3
|
* Props for the VifUI BreadcrumbItem component.
|
|
3
4
|
* Represents a single `<li>` wrapper for breadcrumb content.
|
|
@@ -12,7 +13,7 @@ export interface BreadcrumbItemProps {
|
|
|
12
13
|
* <BreadcrumbItem class="font-medium" />
|
|
13
14
|
* ```
|
|
14
15
|
*/
|
|
15
|
-
class?:
|
|
16
|
+
class?: HTMLAttributes["class"];
|
|
16
17
|
}
|
|
17
18
|
declare var __VLS_1: {};
|
|
18
19
|
type __VLS_Slots = {} & {
|
|
@@ -3,7 +3,7 @@ import { defineComponent, inject, createElementBlock, openBlock, normalizeClass,
|
|
|
3
3
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "breadcrumb-item",
|
|
5
5
|
props: {
|
|
6
|
-
class: { type:
|
|
6
|
+
class: { type: null, required: false }
|
|
7
7
|
},
|
|
8
8
|
setup(__props) {
|
|
9
9
|
const props = __props;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
1
2
|
/**
|
|
2
3
|
* Props for the VifUI BreadcrumbLink component.
|
|
3
4
|
* Renders an interactive breadcrumb link (`<a>`) when `href` is provided,
|
|
@@ -35,7 +36,7 @@ export interface BreadcrumbLinkProps {
|
|
|
35
36
|
* <BreadcrumbLink class="text-brand-600" />
|
|
36
37
|
* ```
|
|
37
38
|
*/
|
|
38
|
-
class?:
|
|
39
|
+
class?: HTMLAttributes["class"];
|
|
39
40
|
}
|
|
40
41
|
declare var __VLS_6: {};
|
|
41
42
|
type __VLS_Slots = {} & {
|
|
@@ -5,7 +5,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
5
5
|
props: {
|
|
6
6
|
href: { type: String, required: false },
|
|
7
7
|
disabled: { type: Boolean, required: false, default: false },
|
|
8
|
-
class: { type:
|
|
8
|
+
class: { type: null, required: false }
|
|
9
9
|
},
|
|
10
10
|
setup(__props) {
|
|
11
11
|
const props = __props;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
1
2
|
/**
|
|
2
3
|
* Props for the VifUI BreadcrumbList component.
|
|
3
4
|
* Represents the `<ol>` container that holds breadcrumb items.
|
|
@@ -12,7 +13,7 @@ export interface BreadcrumbListProps {
|
|
|
12
13
|
* <BreadcrumbList class="gap-3" />
|
|
13
14
|
* ```
|
|
14
15
|
*/
|
|
15
|
-
class?:
|
|
16
|
+
class?: HTMLAttributes["class"];
|
|
16
17
|
}
|
|
17
18
|
declare var __VLS_1: {};
|
|
18
19
|
type __VLS_Slots = {} & {
|
|
@@ -3,7 +3,7 @@ import { defineComponent, inject, createElementBlock, openBlock, normalizeClass,
|
|
|
3
3
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "breadcrumb-list",
|
|
5
5
|
props: {
|
|
6
|
-
class: { type:
|
|
6
|
+
class: { type: null, required: false }
|
|
7
7
|
},
|
|
8
8
|
setup(__props) {
|
|
9
9
|
const props = __props;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "vue";
|
|
1
2
|
import type { Colors, Sizes } from "../types/shared-types";
|
|
2
3
|
/**
|
|
3
4
|
* Props for the VifUI Breadcrumb root component.
|
|
@@ -58,7 +59,7 @@ export interface BreadcrumbRootProps {
|
|
|
58
59
|
* <Breadcrumb class="mb-4 text-sm" />
|
|
59
60
|
* ```
|
|
60
61
|
*/
|
|
61
|
-
class?:
|
|
62
|
+
class?: HTMLAttributes["class"];
|
|
62
63
|
}
|
|
63
64
|
declare var __VLS_1: {};
|
|
64
65
|
type __VLS_Slots = {} & {
|
|
@@ -7,7 +7,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7
7
|
size: { type: String, required: false, default: "md" },
|
|
8
8
|
color: { type: String, required: false, default: "neutral" },
|
|
9
9
|
align: { type: String, required: false, default: "left" },
|
|
10
|
-
class: { type:
|
|
10
|
+
class: { type: null, required: false }
|
|
11
11
|
},
|
|
12
12
|
setup(__props) {
|
|
13
13
|
const props = __props;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
1
2
|
/**
|
|
2
3
|
* Props for the VifUI BreadcrumbSeparator component.
|
|
3
4
|
* Renders the visual separator between breadcrumb items, typically an icon.
|
|
@@ -23,7 +24,7 @@ export interface BreadcrumbSeparatorProps {
|
|
|
23
24
|
* <BreadcrumbSeparator class="text-gray-400" />
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
|
-
class?:
|
|
27
|
+
class?: HTMLAttributes["class"];
|
|
27
28
|
}
|
|
28
29
|
declare var __VLS_1: {};
|
|
29
30
|
type __VLS_Slots = {} & {
|
|
@@ -5,7 +5,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
5
5
|
__name: "breadcrumb-separator",
|
|
6
6
|
props: {
|
|
7
7
|
icon: { type: String, required: false, default: "lucide:chevron-right" },
|
|
8
|
-
class: { type:
|
|
8
|
+
class: { type: null, required: false }
|
|
9
9
|
},
|
|
10
10
|
setup(__props) {
|
|
11
11
|
const props = __props;
|
|
@@ -4,7 +4,7 @@ export { default as BreadcrumbItem } from "./breadcrumb-item.vue";
|
|
|
4
4
|
export { default as BreadcrumbLink } from "./breadcrumb-link.vue";
|
|
5
5
|
export { default as BreadcrumbCurrentLink } from "./breadcrumb-current-link.vue";
|
|
6
6
|
export { default as BreadcrumbSeparator } from "./breadcrumb-separator.vue";
|
|
7
|
-
export { breadcrumbVariants, type BreadcrumbVariantProps } from "./breadcrumb.styles";
|
|
7
|
+
export { breadcrumbVariants, type BreadcrumbVariantProps, } from "./breadcrumb.styles";
|
|
8
8
|
export type { BreadcrumbRootProps } from "./breadcrumb-root.vue";
|
|
9
9
|
export type { BreadcrumbListProps } from "./breadcrumb-list.vue";
|
|
10
10
|
export type { BreadcrumbItemProps } from "./breadcrumb-item.vue";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "vue";
|
|
1
2
|
import type { Colors, Sizes, Spinners, Variants } from "../types/shared-types";
|
|
2
3
|
/**
|
|
3
4
|
* Props for the VifUI Button component.
|
|
@@ -51,7 +52,7 @@ export interface ButtonProps {
|
|
|
51
52
|
* <Button class="rounded-full">Rounded Button</Button>
|
|
52
53
|
* ```
|
|
53
54
|
*/
|
|
54
|
-
class?:
|
|
55
|
+
class?: HTMLAttributes["class"];
|
|
55
56
|
/**
|
|
56
57
|
* Disables the button, preventing interaction.
|
|
57
58
|
* Also sets `aria-disabled` for accessibility.
|
|
@@ -90,7 +91,7 @@ export interface ButtonProps {
|
|
|
90
91
|
*
|
|
91
92
|
* @example
|
|
92
93
|
* ```vue
|
|
93
|
-
* <Button href="https://
|
|
94
|
+
* <Button href="https://vif.com" target="_blank">Visit Site</Button>
|
|
94
95
|
* ```
|
|
95
96
|
*/
|
|
96
97
|
href?: string;
|
|
@@ -14,7 +14,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
color: { type: String, required: false, default: "brand" },
|
|
15
15
|
size: { type: String, required: false, default: "md" },
|
|
16
16
|
isIconOnly: { type: Boolean, required: false, default: false },
|
|
17
|
-
class: { type:
|
|
17
|
+
class: { type: null, required: false },
|
|
18
18
|
disabled: { type: Boolean, required: false, default: false },
|
|
19
19
|
isPending: { type: Boolean, required: false, default: false },
|
|
20
20
|
type: { type: String, required: false, default: "button" },
|
|
@@ -63,16 +63,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
const isDisabled = computed(() => props.disabled || props.isPending);
|
|
64
64
|
const componentTag = computed(() => props.href ? "a" : "button");
|
|
65
65
|
const spinnerSize = computed(() => props.size || "sm");
|
|
66
|
-
const spinnerContainerSize = computed(() => {
|
|
67
|
-
const sizeMap = {
|
|
68
|
-
xs: "h-3.5 w-3.5",
|
|
69
|
-
sm: "h-3.5 w-3.5",
|
|
70
|
-
md: "h-4 w-4",
|
|
71
|
-
lg: "h-5 w-5",
|
|
72
|
-
xl: "h-5 w-5"
|
|
73
|
-
};
|
|
74
|
-
return sizeMap[props.size || "md"];
|
|
75
|
-
});
|
|
76
66
|
return (_ctx, _cache) => {
|
|
77
67
|
return openBlock(), createBlock(resolveDynamicComponent(componentTag.value), {
|
|
78
68
|
ref_key: "buttonRef",
|
|
@@ -90,21 +80,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
80
|
}, {
|
|
91
81
|
default: withCtx(() => [
|
|
92
82
|
__props.isPending ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
[
|
|
99
|
-
createVNode(unref(_sfc_main$1), {
|
|
100
|
-
size: spinnerSize.value,
|
|
101
|
-
type: __props.spinnerType,
|
|
102
|
-
color: "current"
|
|
103
|
-
}, null, 8, ["size", "type"])
|
|
104
|
-
],
|
|
105
|
-
2
|
|
106
|
-
/* CLASS */
|
|
107
|
-
)
|
|
83
|
+
createVNode(unref(_sfc_main$1), {
|
|
84
|
+
size: spinnerSize.value,
|
|
85
|
+
type: __props.spinnerType,
|
|
86
|
+
color: "current"
|
|
87
|
+
}, null, 8, ["size", "type"])
|
|
108
88
|
])) : createCommentVNode("v-if", true),
|
|
109
89
|
createElementVNode(
|
|
110
90
|
"span",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Button } from
|
|
2
|
-
export { buttonVariants, type ButtonVariantProps } from
|
|
3
|
-
export type { ButtonProps } from
|
|
1
|
+
export { default as Button } from "./button.vue";
|
|
2
|
+
export { buttonVariants, type ButtonVariantProps } from "./button.styles";
|
|
3
|
+
export type { ButtonProps } from "./button.vue";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "vue";
|
|
1
2
|
/**
|
|
2
3
|
* Props for the VifUI CardBody component.
|
|
3
4
|
* Wraps the main content area of a card, typically used for
|
|
@@ -13,7 +14,7 @@ export interface CardBodyProps {
|
|
|
13
14
|
* <CardBody class="p-4 text-gray-700" />
|
|
14
15
|
* ```
|
|
15
16
|
*/
|
|
16
|
-
class?:
|
|
17
|
+
class?: HTMLAttributes["class"];
|
|
17
18
|
}
|
|
18
19
|
declare var __VLS_1: {};
|
|
19
20
|
type __VLS_Slots = {} & {
|
|
@@ -3,7 +3,7 @@ import { defineComponent, inject, createElementBlock, openBlock, normalizeClass,
|
|
|
3
3
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "card-body",
|
|
5
5
|
props: {
|
|
6
|
-
class: { type:
|
|
6
|
+
class: { type: null, required: false }
|
|
7
7
|
},
|
|
8
8
|
setup(__props) {
|
|
9
9
|
const props = __props;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "vue";
|
|
1
2
|
/**
|
|
2
3
|
* Props for the VifUI CardFooter component.
|
|
3
4
|
* Wraps the bottom section of a card, typically used for
|
|
@@ -13,7 +14,7 @@ export interface CardFooterProps {
|
|
|
13
14
|
* <CardFooter class="flex justify-end p-4 gap-2" />
|
|
14
15
|
* ```
|
|
15
16
|
*/
|
|
16
|
-
class?:
|
|
17
|
+
class?: HTMLAttributes["class"];
|
|
17
18
|
}
|
|
18
19
|
declare var __VLS_1: {};
|
|
19
20
|
type __VLS_Slots = {} & {
|
|
@@ -3,7 +3,7 @@ import { defineComponent, inject, createElementBlock, openBlock, normalizeClass,
|
|
|
3
3
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "card-footer",
|
|
5
5
|
props: {
|
|
6
|
-
class: { type:
|
|
6
|
+
class: { type: null, required: false }
|
|
7
7
|
},
|
|
8
8
|
setup(__props) {
|
|
9
9
|
const props = __props;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "vue";
|
|
1
2
|
/**
|
|
2
3
|
* Props for the VifUI CardHeader component.
|
|
3
4
|
* Wraps the top section of a card, typically used for titles,
|
|
@@ -13,7 +14,7 @@ export interface CardHeaderProps {
|
|
|
13
14
|
* <CardHeader class="flex justify-between items-center p-4" />
|
|
14
15
|
* ```
|
|
15
16
|
*/
|
|
16
|
-
class?:
|
|
17
|
+
class?: HTMLAttributes["class"];
|
|
17
18
|
}
|
|
18
19
|
declare var __VLS_1: {};
|
|
19
20
|
type __VLS_Slots = {} & {
|
|
@@ -3,7 +3,7 @@ import { defineComponent, inject, createElementBlock, openBlock, normalizeClass,
|
|
|
3
3
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "card-header",
|
|
5
5
|
props: {
|
|
6
|
-
class: { type:
|
|
6
|
+
class: { type: null, required: false }
|
|
7
7
|
},
|
|
8
8
|
setup(__props) {
|
|
9
9
|
const props = __props;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
1
2
|
/**
|
|
2
3
|
* Props for the VifUI CardMedia component.
|
|
3
4
|
* Displays media content Displays media content (images or videos) within a card.
|
|
@@ -24,7 +25,7 @@ export interface CardMediaProps {
|
|
|
24
25
|
*/
|
|
25
26
|
objectFit?: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
26
27
|
loading?: "lazy" | "eager";
|
|
27
|
-
class?:
|
|
28
|
+
class?: HTMLAttributes["class"];
|
|
28
29
|
}
|
|
29
30
|
declare var __VLS_1: {};
|
|
30
31
|
type __VLS_Slots = {} & {
|
|
@@ -9,7 +9,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
ratio: { type: String, required: false, default: "auto" },
|
|
10
10
|
objectFit: { type: String, required: false, default: "cover" },
|
|
11
11
|
loading: { type: String, required: false, default: "lazy" },
|
|
12
|
-
class: { type:
|
|
12
|
+
class: { type: null, required: false }
|
|
13
13
|
},
|
|
14
14
|
setup(__props) {
|
|
15
15
|
const props = __props;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "vue";
|
|
1
2
|
import type { Colors, Sizes } from "../types/shared-types";
|
|
2
3
|
/**
|
|
3
4
|
* Props for the VifUI Card component.
|
|
@@ -92,7 +93,7 @@ export interface CardRootProps {
|
|
|
92
93
|
* <Card class="rounded-xl p-6" />
|
|
93
94
|
* ```
|
|
94
95
|
*/
|
|
95
|
-
class?:
|
|
96
|
+
class?: HTMLAttributes["class"];
|
|
96
97
|
/**
|
|
97
98
|
* Make entire card clickable
|
|
98
99
|
*/
|
|
@@ -11,7 +11,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
fullHeight: { type: Boolean, required: false, default: false },
|
|
12
12
|
disabled: { type: Boolean, required: false, default: false },
|
|
13
13
|
loading: { type: Boolean, required: false, default: false },
|
|
14
|
-
class: { type:
|
|
14
|
+
class: { type: null, required: false },
|
|
15
15
|
href: { type: String, required: false },
|
|
16
16
|
target: { type: String, required: false }
|
|
17
17
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "vue";
|
|
1
2
|
/**
|
|
2
3
|
* Props for the VifUI CheckboxGroupItem component.
|
|
3
4
|
* Wrapper for individual checkbox items within a CheckboxGroup.
|
|
@@ -6,7 +7,7 @@ export interface CheckboxGroupItemProps {
|
|
|
6
7
|
/**
|
|
7
8
|
* Custom class names for the item wrapper.
|
|
8
9
|
*/
|
|
9
|
-
class?:
|
|
10
|
+
class?: HTMLAttributes["class"];
|
|
10
11
|
}
|
|
11
12
|
declare var __VLS_1: {};
|
|
12
13
|
type __VLS_Slots = {} & {
|
|
@@ -3,7 +3,7 @@ import { defineComponent, inject, createElementBlock, openBlock, normalizeClass,
|
|
|
3
3
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "checkbox-group-item",
|
|
5
5
|
props: {
|
|
6
|
-
class: { type:
|
|
6
|
+
class: { type: null, required: false }
|
|
7
7
|
},
|
|
8
8
|
setup(__props) {
|
|
9
9
|
const props = __props;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CheckboxGroupRootProps as RekaCheckboxGroupRootProps } from "reka-ui";
|
|
2
|
+
import { type HTMLAttributes } from "vue";
|
|
2
3
|
/**
|
|
3
4
|
* Props for the VifUI CheckboxGroup component.
|
|
4
5
|
* Wraps Reka UI's CheckboxGroupRoot for managing multiple checkboxes.
|
|
@@ -12,7 +13,7 @@ export interface CheckboxGroupProps extends RekaCheckboxGroupRootProps {
|
|
|
12
13
|
/**
|
|
13
14
|
* Custom class names for the group wrapper.
|
|
14
15
|
*/
|
|
15
|
-
class?:
|
|
16
|
+
class?: HTMLAttributes["class"];
|
|
16
17
|
}
|
|
17
18
|
declare var __VLS_6: {};
|
|
18
19
|
type __VLS_Slots = {} & {
|
|
@@ -6,7 +6,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6
6
|
__name: "checkbox-group",
|
|
7
7
|
props: {
|
|
8
8
|
orientation: { type: String, required: false, default: "vertical" },
|
|
9
|
-
class: { type:
|
|
9
|
+
class: { type: null, required: false },
|
|
10
10
|
defaultValue: { type: Array, required: false },
|
|
11
11
|
modelValue: { type: Array, required: false },
|
|
12
12
|
rovingFocus: { type: Boolean, required: false },
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CheckboxIndicatorProps as RekaCheckboxIndicatorProps } from "reka-ui";
|
|
2
|
+
import { type HTMLAttributes } from "vue";
|
|
2
3
|
/**
|
|
3
4
|
* Props for the VifUI CheckboxIndicator component.
|
|
4
5
|
* Wraps Reka UI's CheckboxIndicator with icon support.
|
|
@@ -17,7 +18,7 @@ export interface CheckboxIndicatorProps extends RekaCheckboxIndicatorProps {
|
|
|
17
18
|
/**
|
|
18
19
|
* Custom class names for the indicator wrapper.
|
|
19
20
|
*/
|
|
20
|
-
class?:
|
|
21
|
+
class?: HTMLAttributes["class"];
|
|
21
22
|
}
|
|
22
23
|
declare var __VLS_5: {
|
|
23
24
|
checkedIcon: string;
|
|
@@ -7,7 +7,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7
7
|
props: {
|
|
8
8
|
checkedIcon: { type: String, required: false, default: "lucide:check" },
|
|
9
9
|
indeterminateIcon: { type: String, required: false, default: "lucide:minus" },
|
|
10
|
-
class: { type:
|
|
10
|
+
class: { type: null, required: false },
|
|
11
11
|
forceMount: { type: Boolean, required: false },
|
|
12
12
|
asChild: { type: Boolean, required: false },
|
|
13
13
|
as: { type: null, required: false, default: "span" }
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "vue";
|
|
1
2
|
/**
|
|
2
3
|
* Props for the VifUI CheckboxLabel component.
|
|
3
4
|
* Provides accessible label for checkbox.
|
|
@@ -11,7 +12,7 @@ export interface CheckboxLabelProps {
|
|
|
11
12
|
/**
|
|
12
13
|
* Custom class names for the label.
|
|
13
14
|
*/
|
|
14
|
-
class?:
|
|
15
|
+
class?: HTMLAttributes["class"];
|
|
15
16
|
}
|
|
16
17
|
declare var __VLS_1: {};
|
|
17
18
|
type __VLS_Slots = {} & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CheckboxRootProps as RekaCheckboxRootProps } from "reka-ui";
|
|
2
|
+
import { type HTMLAttributes } from "vue";
|
|
2
3
|
import type { Colors, Sizes } from "../types/shared-types";
|
|
3
4
|
/**
|
|
4
5
|
* Props for the VifUI CheckboxRoot component.
|
|
@@ -18,7 +19,7 @@ export interface CheckboxRootProps extends RekaCheckboxRootProps {
|
|
|
18
19
|
/**
|
|
19
20
|
* Custom class names for the checkbox wrapper.
|
|
20
21
|
*/
|
|
21
|
-
class?:
|
|
22
|
+
class?: HTMLAttributes["class"];
|
|
22
23
|
}
|
|
23
24
|
declare var __VLS_6: {};
|
|
24
25
|
type __VLS_Slots = {} & {
|