mood-ui 0.3.1 → 0.5.0
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/dist/mood-ui.cjs +3 -3
- package/dist/mood-ui.cjs.map +1 -1
- package/dist/mood-ui.css +1 -1
- package/dist/mood-ui.mjs +4234 -2948
- package/dist/mood-ui.mjs.map +1 -1
- package/dist/types/components/data-display/Accordion.vue.d.ts +26 -0
- package/dist/types/components/data-display/Card.vue.d.ts +1 -1
- package/dist/types/components/data-display/Code.vue.d.ts +17 -0
- package/dist/types/components/data-display/Kbd.vue.d.ts +16 -0
- package/dist/types/components/data-display/Stat.vue.d.ts +8 -0
- package/dist/types/components/data-display/Timeline.vue.d.ts +24 -0
- package/dist/types/components/forms/ColorPicker.vue.d.ts +16 -0
- package/dist/types/components/forms/Rating.vue.d.ts +19 -0
- package/dist/types/components/forms/Segmented.vue.d.ts +14 -0
- package/dist/types/components/forms/TagInput.vue.d.ts +21 -0
- package/dist/types/components/navigation/Stepper.vue.d.ts +14 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/interfaces/data-display/Accordion.interface.d.ts +33 -0
- package/dist/types/interfaces/data-display/Code.interface.d.ts +10 -0
- package/dist/types/interfaces/data-display/Kbd.interface.d.ts +8 -0
- package/dist/types/interfaces/data-display/Stat.interface.d.ts +28 -0
- package/dist/types/interfaces/data-display/Timeline.interface.d.ts +29 -0
- package/dist/types/interfaces/forms/ColorPicker.interface.d.ts +20 -0
- package/dist/types/interfaces/forms/Rating.interface.d.ts +22 -0
- package/dist/types/interfaces/forms/Segmented.interface.d.ts +31 -0
- package/dist/types/interfaces/forms/TagInput.interface.d.ts +28 -0
- package/dist/types/interfaces/navigation/Stepper.interface.d.ts +31 -0
- package/package.json +27 -9
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Accordion } from '../../interfaces/data-display/Accordion.interface';
|
|
2
|
+
declare var __VLS_17: any, __VLS_18: {
|
|
3
|
+
item: any;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
[K in NonNullable<typeof __VLS_17>]?: (props: typeof __VLS_18) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import('vue').DefineComponent<Accordion, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
change: (value: string | number | (string | number)[] | null | undefined) => any;
|
|
10
|
+
"update:modelValue": (value: string | number | (string | number)[] | null | undefined) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<Accordion> & Readonly<{
|
|
12
|
+
onChange?: ((value: string | number | (string | number)[] | null | undefined) => any) | undefined;
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string | number | (string | number)[] | null | undefined) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
variant: "separated" | "bordered" | "flush";
|
|
16
|
+
iconPosition: "start" | "end";
|
|
17
|
+
multiple: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -12,8 +12,8 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
declare const __VLS_base: import('vue').DefineComponent<Card, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Card> & Readonly<{}>, {
|
|
13
13
|
variant: "elevated" | "outlined" | "filled";
|
|
14
14
|
padding: "none" | "small" | "medium" | "large";
|
|
15
|
-
hoverable: boolean;
|
|
16
15
|
clickable: boolean;
|
|
16
|
+
hoverable: boolean;
|
|
17
17
|
divided: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Code } from '../../interfaces/data-display/Code.interface';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import('vue').DefineComponent<Code, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Code> & Readonly<{}>, {
|
|
7
|
+
color: "default" | "primary" | "danger" | "success" | "warning";
|
|
8
|
+
variant: "subtle" | "outline" | "ghost";
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Kbd } from '../../interfaces/data-display/Kbd.interface';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import('vue').DefineComponent<Kbd, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Kbd> & Readonly<{}>, {
|
|
7
|
+
variant: "subtle" | "outline" | "solid";
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Stat } from '../../interfaces/data-display/Stat.interface';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<Stat, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Stat> & Readonly<{}>, {
|
|
3
|
+
color: "default" | "primary" | "danger" | "success" | "warning";
|
|
4
|
+
variant: "plain" | "outlined" | "filled";
|
|
5
|
+
loading: boolean;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Timeline } from '../../interfaces/data-display/Timeline.interface';
|
|
2
|
+
declare var __VLS_2: any, __VLS_3: {
|
|
3
|
+
item: any;
|
|
4
|
+
}, __VLS_11: any, __VLS_12: {
|
|
5
|
+
item: any;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
9
|
+
} & {
|
|
10
|
+
[K in NonNullable<typeof __VLS_11>]?: (props: typeof __VLS_12) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import('vue').DefineComponent<Timeline, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Timeline> & Readonly<{}>, {
|
|
13
|
+
color: "default" | "primary" | "danger" | "success" | "warning";
|
|
14
|
+
variant: "dot" | "icon" | "outline";
|
|
15
|
+
side: "left" | "right";
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ColorPicker } from '../../interfaces/forms/ColorPicker.interface';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<ColorPicker, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
change: (v: string) => any;
|
|
4
|
+
"update:modelValue": (v: string) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<ColorPicker> & Readonly<{
|
|
6
|
+
onChange?: ((v: string) => any) | undefined;
|
|
7
|
+
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
placement: "bottom-start" | "bottom-end" | "top-start" | "top-end";
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
modelValue: string;
|
|
12
|
+
showHex: boolean;
|
|
13
|
+
showNative: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Rating } from '../../interfaces/forms/Rating.interface';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<Rating, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
change: (v: number) => any;
|
|
4
|
+
"update:modelValue": (v: number) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<Rating> & Readonly<{
|
|
6
|
+
onChange?: ((v: number) => any) | undefined;
|
|
7
|
+
"onUpdate:modelValue"?: ((v: number) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
color: "default" | "primary" | "danger" | "success" | "warning";
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
modelValue: number;
|
|
12
|
+
readonly: boolean;
|
|
13
|
+
clearable: boolean;
|
|
14
|
+
max: number;
|
|
15
|
+
showValue: boolean;
|
|
16
|
+
allowHalf: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Segmented } from '../../interfaces/forms/Segmented.interface';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<Segmented, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
change: (value: string | number) => any;
|
|
4
|
+
"update:modelValue": (value: string | number) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<Segmented> & Readonly<{
|
|
6
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
color: "default" | "primary" | "danger" | "success" | "warning";
|
|
10
|
+
fullWidth: boolean;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TagInput } from '../../interfaces/forms/TagInput.interface';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<TagInput, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
change: (v: string[]) => any;
|
|
4
|
+
add: (tag: string) => any;
|
|
5
|
+
"update:modelValue": (v: string[]) => any;
|
|
6
|
+
remove: (tag: string, index: number) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<TagInput> & Readonly<{
|
|
8
|
+
onChange?: ((v: string[]) => any) | undefined;
|
|
9
|
+
onAdd?: ((tag: string) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((v: string[]) => any) | undefined;
|
|
11
|
+
onRemove?: ((tag: string, index: number) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
color: "default" | "primary" | "danger" | "success" | "warning";
|
|
14
|
+
variant: "subtle" | "outline" | "solid";
|
|
15
|
+
delimiters: string[];
|
|
16
|
+
modelValue: string[];
|
|
17
|
+
placeholder: string;
|
|
18
|
+
unique: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Stepper, StepperStep } from '../../interfaces/navigation/Stepper.interface';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<Stepper, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
"step-click": (step: StepperStep, index: number) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<Stepper> & Readonly<{
|
|
5
|
+
"onStep-click"?: ((step: StepperStep, index: number) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
color: "default" | "primary" | "danger" | "success" | "warning";
|
|
8
|
+
variant: "numbered" | "dots" | "progress";
|
|
9
|
+
orientation: "horizontal" | "vertical";
|
|
10
|
+
current: number;
|
|
11
|
+
clickable: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -30,6 +30,10 @@ export { default as FileInput } from './components/forms/FileInput.vue';
|
|
|
30
30
|
export { default as DateField } from './components/forms/DateField.vue';
|
|
31
31
|
export { default as DateRangeField } from './components/forms/DateRangeField.vue';
|
|
32
32
|
export { default as DateTimeField } from './components/forms/DateTimeField.vue';
|
|
33
|
+
export { default as Segmented } from './components/forms/Segmented.vue';
|
|
34
|
+
export { default as Rating } from './components/forms/Rating.vue';
|
|
35
|
+
export { default as ColorPicker } from './components/forms/ColorPicker.vue';
|
|
36
|
+
export { default as TagInput } from './components/forms/TagInput.vue';
|
|
33
37
|
export { default as Badge } from './components/feedback/Badge.vue';
|
|
34
38
|
export { default as Banner } from './components/feedback/Banner.vue';
|
|
35
39
|
export { default as Chip } from './components/feedback/Chip.vue';
|
|
@@ -60,10 +64,16 @@ export { default as Tabs } from './components/navigation/Tabs.vue';
|
|
|
60
64
|
export { default as Breadcrumbs } from './components/navigation/Breadcrumbs.vue';
|
|
61
65
|
export { default as DropdownMenu } from './components/navigation/DropdownMenu.vue';
|
|
62
66
|
export { default as Pagination } from './components/navigation/Pagination.vue';
|
|
67
|
+
export { default as Stepper } from './components/navigation/Stepper.vue';
|
|
63
68
|
export { default as Card } from './components/data-display/Card.vue';
|
|
64
69
|
export { default as Typography } from './components/data-display/Typography.vue';
|
|
65
70
|
export { default as Avatar } from './components/data-display/avatar/Avatar.vue';
|
|
66
71
|
export { default as AvatarGroup } from './components/data-display/avatar/AvatarGroup.vue';
|
|
72
|
+
export { default as Kbd } from './components/data-display/Kbd.vue';
|
|
73
|
+
export { default as Code } from './components/data-display/Code.vue';
|
|
74
|
+
export { default as Accordion } from './components/data-display/Accordion.vue';
|
|
75
|
+
export { default as Stat } from './components/data-display/Stat.vue';
|
|
76
|
+
export { default as Timeline } from './components/data-display/Timeline.vue';
|
|
67
77
|
export { default as Calendar } from './components/data-display/calendar/Calendar.vue';
|
|
68
78
|
export { default as MonthView } from './components/data-display/calendar/MonthView.vue';
|
|
69
79
|
export { default as WeekView } from './components/data-display/calendar/WeekView.vue';
|
|
@@ -96,6 +106,10 @@ export type * from './interfaces/forms/FileInput.interface';
|
|
|
96
106
|
export type * from './interfaces/forms/DateField.interface';
|
|
97
107
|
export type * from './interfaces/forms/DateRangeField.interface';
|
|
98
108
|
export type * from './interfaces/forms/DateTimeField.interface';
|
|
109
|
+
export type * from './interfaces/forms/Segmented.interface';
|
|
110
|
+
export type * from './interfaces/forms/Rating.interface';
|
|
111
|
+
export type * from './interfaces/forms/ColorPicker.interface';
|
|
112
|
+
export type * from './interfaces/forms/TagInput.interface';
|
|
99
113
|
export type * from './interfaces/feedback/Badge.interface';
|
|
100
114
|
export type * from './interfaces/feedback/Banner.interface';
|
|
101
115
|
export type * from './interfaces/feedback/Chip.interface';
|
|
@@ -120,5 +134,11 @@ export type * from './interfaces/navigation/Tabs.interface';
|
|
|
120
134
|
export type * from './interfaces/navigation/Breadcrumbs.interface';
|
|
121
135
|
export type * from './interfaces/navigation/DropdownMenu.interface';
|
|
122
136
|
export type * from './interfaces/navigation/Pagination.interface';
|
|
137
|
+
export type * from './interfaces/navigation/Stepper.interface';
|
|
123
138
|
export type * from './interfaces/data-display/Card.interface';
|
|
124
139
|
export type * from './interfaces/data-display/Typography.interface';
|
|
140
|
+
export type * from './interfaces/data-display/Kbd.interface';
|
|
141
|
+
export type * from './interfaces/data-display/Code.interface';
|
|
142
|
+
export type * from './interfaces/data-display/Accordion.interface';
|
|
143
|
+
export type * from './interfaces/data-display/Stat.interface';
|
|
144
|
+
export type * from './interfaces/data-display/Timeline.interface';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
export interface AccordionItem {
|
|
3
|
+
/** Unique value. Used in `modelValue` to identify open items. */
|
|
4
|
+
value: string | number;
|
|
5
|
+
/** Visible title shown in the header trigger. */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Optional plain-text content. Use the `#item-<value>` slot for rich content. */
|
|
8
|
+
content?: string;
|
|
9
|
+
/** Optional leading icon shown in the header. */
|
|
10
|
+
icon?: Component;
|
|
11
|
+
/** Disable interaction with this item. */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface Accordion {
|
|
15
|
+
/** Items to render in order. */
|
|
16
|
+
items: AccordionItem[];
|
|
17
|
+
/**
|
|
18
|
+
* Open value(s).
|
|
19
|
+
* - `multiple: false` (default) → `string | number | null`.
|
|
20
|
+
* - `multiple: true` → `(string | number)[]`.
|
|
21
|
+
*/
|
|
22
|
+
modelValue?: string | number | (string | number)[] | null;
|
|
23
|
+
/** Allow multiple items to be open simultaneously. */
|
|
24
|
+
multiple?: boolean;
|
|
25
|
+
/** Visual variant. */
|
|
26
|
+
variant?: 'separated' | 'bordered' | 'flush';
|
|
27
|
+
/** Size scale. Inherits from `ModoProvider` if omitted. */
|
|
28
|
+
size?: 'small' | 'medium' | 'large';
|
|
29
|
+
/** Corner radius (only for `separated` and `bordered`). */
|
|
30
|
+
radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
31
|
+
/** Position of the chevron icon. */
|
|
32
|
+
iconPosition?: 'start' | 'end';
|
|
33
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface Code {
|
|
2
|
+
/** Size scale. Inherits from `ModoProvider` if omitted. */
|
|
3
|
+
size?: 'small' | 'medium' | 'large';
|
|
4
|
+
/** Visual variant. */
|
|
5
|
+
variant?: 'subtle' | 'outline' | 'ghost';
|
|
6
|
+
/** Semantic color family. */
|
|
7
|
+
color?: 'default' | 'primary' | 'danger' | 'success' | 'warning';
|
|
8
|
+
/** Corner radius. Inherits from `ModoProvider` if omitted. */
|
|
9
|
+
radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface Kbd {
|
|
2
|
+
/** Size scale. Inherits from `ModoProvider` if omitted. */
|
|
3
|
+
size?: 'small' | 'medium' | 'large';
|
|
4
|
+
/** Visual variant. */
|
|
5
|
+
variant?: 'subtle' | 'outline' | 'solid';
|
|
6
|
+
/** Corner radius. Inherits from `ModoProvider` if omitted. */
|
|
7
|
+
radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
8
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
export interface Stat {
|
|
3
|
+
/** Short label (e.g. "Revenue"). */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Main metric value. Pre-formatted by the consumer. */
|
|
6
|
+
value: string | number;
|
|
7
|
+
/** Optional helper text shown below the value. */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Optional leading icon. */
|
|
10
|
+
icon?: Component;
|
|
11
|
+
/** Trend metadata. Renders an arrow + delta. */
|
|
12
|
+
trend?: {
|
|
13
|
+
/** Numeric delta (positive or negative). */
|
|
14
|
+
value: number;
|
|
15
|
+
/** Optional formatted display value. Defaults to `${value}%`. */
|
|
16
|
+
label?: string;
|
|
17
|
+
/** Override the auto direction (positive → up, negative → down). */
|
|
18
|
+
direction?: 'up' | 'down' | 'neutral';
|
|
19
|
+
};
|
|
20
|
+
/** Visual variant for the card. */
|
|
21
|
+
variant?: 'plain' | 'outlined' | 'filled';
|
|
22
|
+
/** Semantic color family for the icon and trend. */
|
|
23
|
+
color?: 'default' | 'primary' | 'danger' | 'success' | 'warning';
|
|
24
|
+
/** Size scale. Inherits from `ModoProvider` if omitted. */
|
|
25
|
+
size?: 'small' | 'medium' | 'large';
|
|
26
|
+
/** Show a decorative loading skeleton instead of the value. */
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
export interface TimelineItem {
|
|
3
|
+
/** Unique identifier. */
|
|
4
|
+
id: string | number;
|
|
5
|
+
/** Title shown in the heading line. */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Optional secondary description. */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Optional timestamp / date label. */
|
|
10
|
+
timestamp?: string;
|
|
11
|
+
/** Optional custom icon shown inside the marker. */
|
|
12
|
+
icon?: Component;
|
|
13
|
+
/** Override the marker color for this item. */
|
|
14
|
+
color?: 'default' | 'primary' | 'danger' | 'success' | 'warning';
|
|
15
|
+
/** Visual marker variant for this item. */
|
|
16
|
+
variant?: 'dot' | 'icon' | 'outline';
|
|
17
|
+
}
|
|
18
|
+
export interface Timeline {
|
|
19
|
+
/** Items to render in order. */
|
|
20
|
+
items: TimelineItem[];
|
|
21
|
+
/** Default semantic color (overridable per item). */
|
|
22
|
+
color?: 'default' | 'primary' | 'danger' | 'success' | 'warning';
|
|
23
|
+
/** Side of the marker rail. */
|
|
24
|
+
side?: 'left' | 'right';
|
|
25
|
+
/** Size scale. Inherits from `ModoProvider` if omitted. */
|
|
26
|
+
size?: 'small' | 'medium' | 'large';
|
|
27
|
+
/** Default marker variant for items that don't override. */
|
|
28
|
+
variant?: 'dot' | 'icon' | 'outline';
|
|
29
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ColorPicker {
|
|
2
|
+
/** Selected color in hex (v-model). */
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
/** Optional preset swatches shown in the popover. */
|
|
5
|
+
swatches?: string[];
|
|
6
|
+
/** Show the hex input field. */
|
|
7
|
+
showHex?: boolean;
|
|
8
|
+
/** Show the native color input as a fallback / advanced picker. */
|
|
9
|
+
showNative?: boolean;
|
|
10
|
+
/** Disable interaction. */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Size scale. Inherits from `ModoProvider` if omitted. */
|
|
13
|
+
size?: 'small' | 'medium' | 'large';
|
|
14
|
+
/** Corner radius. Inherits from `ModoProvider` if omitted. */
|
|
15
|
+
radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
16
|
+
/** Optional accessible name for the trigger button. */
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
/** Placement of the popover relative to the trigger. */
|
|
19
|
+
placement?: 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface Rating {
|
|
2
|
+
/** Current value (v-model). */
|
|
3
|
+
modelValue?: number;
|
|
4
|
+
/** Total number of items (stars). */
|
|
5
|
+
max?: number;
|
|
6
|
+
/** Allow half-step values (0.5 increments). */
|
|
7
|
+
allowHalf?: boolean;
|
|
8
|
+
/** Read-only mode (display, no interaction). */
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
/** Disable interaction completely (lower opacity). */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Allow clicking the active item again to clear back to 0. */
|
|
13
|
+
clearable?: boolean;
|
|
14
|
+
/** Semantic color family. */
|
|
15
|
+
color?: 'default' | 'primary' | 'danger' | 'success' | 'warning';
|
|
16
|
+
/** Size scale. Inherits from `ModoProvider` if omitted. */
|
|
17
|
+
size?: 'small' | 'medium' | 'large';
|
|
18
|
+
/** Show numeric value next to the rating. */
|
|
19
|
+
showValue?: boolean;
|
|
20
|
+
/** Optional accessible name. */
|
|
21
|
+
ariaLabel?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
export interface SegmentedItem {
|
|
3
|
+
/** Unique value emitted via `update:modelValue`. */
|
|
4
|
+
value: string | number;
|
|
5
|
+
/** Visible label. Optional when `icon` is provided. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Optional leading icon (decorative). */
|
|
8
|
+
icon?: Component;
|
|
9
|
+
/** Disable this segment. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Override the accessible name. Required when `label` is omitted. */
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface Segmented {
|
|
15
|
+
/** Segments to render. Order is preserved. */
|
|
16
|
+
items: SegmentedItem[];
|
|
17
|
+
/** Currently selected value (v-model). */
|
|
18
|
+
modelValue?: string | number | null;
|
|
19
|
+
/** Semantic color family for the active segment. */
|
|
20
|
+
color?: 'default' | 'primary' | 'danger' | 'success' | 'warning';
|
|
21
|
+
/** Size scale. Inherits from `ModoProvider` if omitted. */
|
|
22
|
+
size?: 'small' | 'medium' | 'large';
|
|
23
|
+
/** Corner radius. Inherits from `ModoProvider` if omitted. */
|
|
24
|
+
radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
25
|
+
/** Stretch the control to fill its container. */
|
|
26
|
+
fullWidth?: boolean;
|
|
27
|
+
/** Disable the entire control. */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Accessible name for the radiogroup. */
|
|
30
|
+
ariaLabel?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface TagInput {
|
|
2
|
+
/** Current array of tags (v-model). */
|
|
3
|
+
modelValue?: string[];
|
|
4
|
+
/** Placeholder shown when the input is empty. */
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
/** Optional max number of tags. Further input is ignored. */
|
|
7
|
+
max?: number;
|
|
8
|
+
/** Forbid duplicate tags (case-insensitive comparison). */
|
|
9
|
+
unique?: boolean;
|
|
10
|
+
/** Optional validator. Return false to reject the tag. */
|
|
11
|
+
validator?: (tag: string) => boolean;
|
|
12
|
+
/** Characters that, when typed, also commit the current tag. */
|
|
13
|
+
delimiters?: string[];
|
|
14
|
+
/** Disable interaction. */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Mark as readonly (display, no edits). */
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
/** Semantic color family for the chips. */
|
|
19
|
+
color?: 'default' | 'primary' | 'danger' | 'success' | 'warning';
|
|
20
|
+
/** Visual variant for the chips. */
|
|
21
|
+
variant?: 'subtle' | 'outline' | 'solid';
|
|
22
|
+
/** Size scale. Inherits from `ModoProvider` if omitted. */
|
|
23
|
+
size?: 'small' | 'medium' | 'large';
|
|
24
|
+
/** Corner radius. Inherits from `ModoProvider` if omitted. */
|
|
25
|
+
radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
26
|
+
/** Optional accessible name for the input. */
|
|
27
|
+
ariaLabel?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
export interface StepperStep {
|
|
3
|
+
/** Unique identifier. */
|
|
4
|
+
id: string | number;
|
|
5
|
+
/** Visible step title. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Optional secondary description shown under the label. */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Optional custom icon. Defaults to step index when not completed. */
|
|
10
|
+
icon?: Component;
|
|
11
|
+
/** Mark step as disabled (non-interactive). */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Optional state override; otherwise computed from `current`. */
|
|
14
|
+
state?: 'pending' | 'active' | 'completed' | 'error';
|
|
15
|
+
}
|
|
16
|
+
export interface Stepper {
|
|
17
|
+
/** Steps to render in order. */
|
|
18
|
+
steps: StepperStep[];
|
|
19
|
+
/** Current active step index (0-based). Steps before are `completed`, after are `pending`. */
|
|
20
|
+
current?: number;
|
|
21
|
+
/** Visual variant. */
|
|
22
|
+
variant?: 'numbered' | 'dots' | 'progress';
|
|
23
|
+
/** Orientation. */
|
|
24
|
+
orientation?: 'horizontal' | 'vertical';
|
|
25
|
+
/** Semantic color family for active/completed states. */
|
|
26
|
+
color?: 'default' | 'primary' | 'danger' | 'success' | 'warning';
|
|
27
|
+
/** Size scale. Inherits from `ModoProvider` if omitted. */
|
|
28
|
+
size?: 'small' | 'medium' | 'large';
|
|
29
|
+
/** Allow clicking on completed steps to emit `step-click`. */
|
|
30
|
+
clickable?: boolean;
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mood-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Vue 3 component library with full theming, dark mode, palettes, calendar, scheduler, table and AppShell.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,22 +13,36 @@
|
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/alansinbailarin/mood-ui/issues"
|
|
15
15
|
},
|
|
16
|
-
"keywords": [
|
|
16
|
+
"keywords": [
|
|
17
|
+
"vue",
|
|
18
|
+
"vue3",
|
|
19
|
+
"components",
|
|
20
|
+
"ui",
|
|
21
|
+
"tailwindcss",
|
|
22
|
+
"design-system",
|
|
23
|
+
"modo"
|
|
24
|
+
],
|
|
17
25
|
"main": "./dist/mood-ui.cjs",
|
|
18
26
|
"module": "./dist/mood-ui.mjs",
|
|
19
|
-
"types": "./dist/index.d.ts",
|
|
27
|
+
"types": "./dist/types/index.d.ts",
|
|
20
28
|
"style": "./dist/mood-ui.css",
|
|
21
|
-
"sideEffects": [
|
|
29
|
+
"sideEffects": [
|
|
30
|
+
"**/*.css"
|
|
31
|
+
],
|
|
22
32
|
"exports": {
|
|
23
33
|
".": {
|
|
24
|
-
"types": "./dist/index.d.ts",
|
|
34
|
+
"types": "./dist/types/index.d.ts",
|
|
25
35
|
"import": "./dist/mood-ui.mjs",
|
|
26
36
|
"require": "./dist/mood-ui.cjs"
|
|
27
37
|
},
|
|
28
38
|
"./style.css": "./dist/mood-ui.css",
|
|
29
39
|
"./package.json": "./package.json"
|
|
30
40
|
},
|
|
31
|
-
"files": [
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"README.md",
|
|
44
|
+
"LICENSE"
|
|
45
|
+
],
|
|
32
46
|
"scripts": {
|
|
33
47
|
"dev": "vite",
|
|
34
48
|
"build": "BUILD_TARGET=lib vue-tsc -p tsconfig.lib.json --noEmit && BUILD_TARGET=lib vite build",
|
|
@@ -46,10 +60,13 @@
|
|
|
46
60
|
"vue": "^3.4.0"
|
|
47
61
|
},
|
|
48
62
|
"peerDependenciesMeta": {
|
|
49
|
-
"gsap": {
|
|
50
|
-
|
|
63
|
+
"gsap": {
|
|
64
|
+
"optional": true
|
|
65
|
+
},
|
|
66
|
+
"@heroicons/vue": {
|
|
67
|
+
"optional": true
|
|
68
|
+
}
|
|
51
69
|
},
|
|
52
|
-
"dependencies": {},
|
|
53
70
|
"devDependencies": {
|
|
54
71
|
"@heroicons/vue": "^2.2.0",
|
|
55
72
|
"@tailwindcss/vite": "^4.2.4",
|
|
@@ -61,6 +78,7 @@
|
|
|
61
78
|
"gsap": "^3.15.0",
|
|
62
79
|
"jsdom": "^29.1.1",
|
|
63
80
|
"playwright": "^1.59.1",
|
|
81
|
+
"shiki": "^1.29.2",
|
|
64
82
|
"tailwindcss": "^4.2.4",
|
|
65
83
|
"typescript": "~6.0.2",
|
|
66
84
|
"vite": "^8.0.10",
|