mood-ui 0.4.0 → 0.5.1

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.
@@ -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,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;
@@ -31,6 +31,9 @@ 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
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';
34
37
  export { default as Badge } from './components/feedback/Badge.vue';
35
38
  export { default as Banner } from './components/feedback/Banner.vue';
36
39
  export { default as Chip } from './components/feedback/Chip.vue';
@@ -69,6 +72,8 @@ export { default as AvatarGroup } from './components/data-display/avatar/AvatarG
69
72
  export { default as Kbd } from './components/data-display/Kbd.vue';
70
73
  export { default as Code } from './components/data-display/Code.vue';
71
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';
72
77
  export { default as Calendar } from './components/data-display/calendar/Calendar.vue';
73
78
  export { default as MonthView } from './components/data-display/calendar/MonthView.vue';
74
79
  export { default as WeekView } from './components/data-display/calendar/WeekView.vue';
@@ -102,6 +107,9 @@ export type * from './interfaces/forms/DateField.interface';
102
107
  export type * from './interfaces/forms/DateRangeField.interface';
103
108
  export type * from './interfaces/forms/DateTimeField.interface';
104
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';
105
113
  export type * from './interfaces/feedback/Badge.interface';
106
114
  export type * from './interfaces/feedback/Banner.interface';
107
115
  export type * from './interfaces/feedback/Chip.interface';
@@ -132,3 +140,5 @@ export type * from './interfaces/data-display/Typography.interface';
132
140
  export type * from './interfaces/data-display/Kbd.interface';
133
141
  export type * from './interfaces/data-display/Code.interface';
134
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,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,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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mood-ui",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
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",